/* ================================================================
   MAIN STYLESHEET — Ed Chen Portfolio
   Single file. BEM naming. Mobile-first. Zero inline styles.

   Table of Contents:
   01. Reset & Base
   02. Typography
   03. Layout
   04. Navigation
   05. Hero
   06. Selected Works
   07. Enterprise Systems
   08. Compliance
   09. Evidence
   10. Design Leadership
   11. Design Stance & Beyond
   12. Contact & Footer
   13. Components (cards, badges, buttons, tags)
   14. Command Palette
   15. Utilities
   16. Animations
   17. Responsive — Tablet (600px)
   18. Responsive — Desktop (1024px)
   19. Responsive — Wide (1440px)
   ================================================================ */


/* ================================================================
   01. RESET & BASE
   ================================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection {
  background: var(--accent-subtle);
  color: var(--text-primary);
}


/* ================================================================
   02. TYPOGRAPHY
   ================================================================ */

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.10;
  letter-spacing: -0.04em;
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.018em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 0.95rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

.text-display {
  font-family: var(--font-display);
  font-weight: 300;
}

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

.text-tertiary {
  color: var(--text-tertiary);
}

.text-accent {
  color: var(--accent);
}


/* ================================================================
   03. LAYOUT
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-10) 0;
}

.section--deep {
  background: var(--bg-deep);
}

.section--surface {
  background: var(--bg-surface);
}

.section__intro {
  text-align: center;
  margin-bottom: var(--space-9);
}

/* Thin gold rule announces each section — Ferrari editorial signal */
.section__intro::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto var(--space-4);
  opacity: 0.60;
}

.section__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.section__desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.70;
  color: var(--text-secondary);
  max-width: 640px;
  margin: var(--space-3) auto 0;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr 1fr;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--accent);
  color: var(--bg-void);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-2);
}


/* ================================================================
   04. NAVIGATION
   ================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: background var(--duration-base) var(--ease), padding var(--duration-base) var(--ease);
}

.nav.is-scrolled {
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  transition: opacity var(--duration-fast) var(--ease);
}

.nav__logo:hover {
  opacity: 0.75;
}

.nav__links {
  display: none;
  gap: var(--space-6);
  align-items: center;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link.is-active {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent-50);
  text-decoration-thickness: 1px;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: transform var(--duration-base) var(--ease);
}

.nav__lang {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  cursor: pointer;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border-radius: var(--radius-m);
  padding: var(--space-2) 0;
  min-width: 200px;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-xl);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.is-open .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__dropdown-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Mobile nav overlay */
.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.95);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.nav__mobile-overlay.is-open {
  display: flex;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.nav__mobile-link:hover {
  color: var(--text-primary);
}


/* ================================================================
   05. HERO
   ================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--gutter) var(--space-10);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero__role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-7);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto var(--space-8);
  letter-spacing: -0.005em;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-7);
  margin-bottom: var(--space-5);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.hero__stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.hero__regs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.hero__reg-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: center;
  margin-right: var(--space-1);
}

.hero__reg-tag {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding: 3px 10px;
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.hero__reg-tag span {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 3px;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__social {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}

.hero__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-m);
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: color var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast);
}

.hero__social-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.45;
}

.hero__scroll::before {
  content: 'SCROLL';
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-muted), transparent);
}


/* ================================================================
   06. SELECTED WORKS
   ================================================================ */

.works__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.works__legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.works__separator {
  margin: var(--space-12) 0 var(--space-9);
  padding-top: var(--space-9);
  border-top: 1px solid var(--border);
  position: relative;
}

.works__separator-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.works__separator-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  max-width: 600px;
  line-height: 1.65;
}

/* Project card */
.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.project__number {
  display: none;
  /* shown on desktop */
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding-top: var(--space-4);
  opacity: 0.45;
}

.project__image {
  overflow: hidden;
  border-radius: var(--radius-m);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

.project__image img {
  transition: transform var(--duration-slow) var(--ease-out), filter var(--duration-slow) var(--ease-out);
}

.project:hover .project__image {
  border-color: var(--accent-18);
  box-shadow: var(--shadow-card-hover);
}

.project:hover .project__image img {
  transform: scale(1.025);
  filter: brightness(1.05);
}

.project__details {
  max-width: none;
}

.project__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-s);
  margin-bottom: var(--space-2);
}

.project__badge--shipped {
  background: var(--accent-subtle);
  color: var(--accent);
}

.project__badge--concept {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
}

.project__title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.project__tagline {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.project__desc {
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--text-secondary);
  letter-spacing: 0.010em;
  max-width: none;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  letter-spacing: 0.012em;
}

.project__tags span+span::before {
  content: '·';
  position: relative;
  left: calc(var(--space-3) * -0.5);
  color: var(--text-muted);
}

.project__insight {
  font-size: 0.90rem;
  line-height: 1.82;
  color: var(--text-secondary);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  margin: var(--space-4) 0;
  border-left: 1px solid var(--accent-35);
  font-style: italic;
  max-width: none;
}

.project__insight strong {
  color: var(--text-secondary);
  font-style: normal;
}

.project__links {
  display: flex;
  gap: var(--space-6);
}

.project__link {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.project__link:hover {
  color: var(--text-primary);
}

.project__link--primary {
  color: var(--accent);
  opacity: 0.85;
  text-decoration: underline;
  text-decoration-color: var(--accent-35);
  text-underline-offset: 3px;
  transition: opacity var(--duration-fast), text-decoration-color var(--duration-fast);
}

.project__link--primary:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.project__link--live {
  color: var(--accent);
  font-weight: 500;
  opacity: 0.9;
  border: 1px solid var(--accent-35);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-s);
  transition: opacity var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}

.project__link--live:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}


/* ================================================================
   07. ENTERPRISE SYSTEMS
   ================================================================ */

.enterprise__hero-card {
  display: block;
  background: var(--bg-elevated);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: opacity var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.enterprise__hero-card:hover {
  opacity: 0.92;
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.enterprise__hero-image img {
  width: 100%;
}

.enterprise__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  background: var(--border);
}

.enterprise__meta-item {
  padding: var(--space-5);
  background: var(--bg-void);
}

.enterprise__meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.enterprise__meta-value {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Subproject cards */
.subproject {
  display: block;
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
}

.subproject:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-14);
}

.subproject__image img {
  width: 100%;
}

.subproject__body {
  padding: var(--space-4);
}

.subproject__title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.subproject__desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.subproject__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.subproject__tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-s);
}


/* ================================================================
   08. COMPLIANCE
   ================================================================ */

.jurisdiction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.jurisdiction {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

.jurisdiction:hover {
  border-color: var(--accent-14);
  box-shadow: var(--shadow-md);
}

.jurisdiction__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.jurisdiction__desc {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}

.compliance-systems {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.compliance-system {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

.compliance-system:hover {
  border-color: var(--accent-14);
  box-shadow: var(--shadow-card-hover);
}

.compliance-system__stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.compliance-system__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.compliance-system__desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* Compliance board — Jurisdictions section */
.rc-jurisdiction-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--border);
}

.rc-jurisdiction-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--rc-color);
  box-shadow: 0 0 6px currentColor;
  opacity: 0.6;
}

.rc-jurisdiction-content {
  flex: 1;
}

.rc-jurisdiction-title {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}

.rc-jurisdiction-reg {
  font-size: 0.60rem;
  color: var(--text-tertiary);
}

.rc-jurisdiction-status {
  font-size: 0.60rem;
  font-weight: 700;
  color: var(--rc-color);
}

/* Compliance board — Pipeline section */
.rc-pipeline-item {
  margin-bottom: var(--space-1);
}

.rc-pipeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  margin-bottom: 3px;
}

.rc-pipeline-label {
  color: var(--text-secondary);
}

.rc-pipeline-pct {
  font-weight: 700;
  color: var(--rc-color);
}

.rc-pipeline-bar {
  height: var(--space-1);
  background: var(--bg-elevated);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.rc-pipeline-bar-fill {
  width: var(--rc-width, 0%);
  height: 100%;
  background: var(--rc-color);
  border-radius: var(--radius-s);
  transition: width 1s ease-out;
}

/* Compliance board — Gates section */
.rc-gate-badge {
  font-size: 0.60rem;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-s);
  font-weight: 600;
  display: inline-block;
  margin-right: var(--space-1);
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.2);
}

.rc-gate-badge--pass {
  color: var(--color-teal);
  border-color: var(--color-teal-20);
  background: var(--color-teal-10);
}

.rc-gate-badge--pending {
  color: #C9A959;
  border-color: var(--accent-hover);
  background: var(--accent-10);
}

/* Compliance board — Metrics section */
.rc-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--border);
}

.rc-metric-meta {
  flex: 1;
}

.rc-metric-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.rc-metric-sub {
  font-size: 0.56rem;
  color: var(--text-tertiary);
}

.rc-metric-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rc-color);
}

/* Compliance board — Audit section */
.rc-audit-item {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: 0.62rem;
  margin-bottom: 5px;
}

.rc-audit-time {
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.rc-audit-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  background: var(--rc-color);
}

.rc-audit-action {
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}


/* ================================================================
   09. EVIDENCE
   ================================================================ */

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.evidence {
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding var(--duration-base) var(--ease);
}

.evidence:last-child {
  border-bottom: none;
}

/* Gold accent bar for open evidence — positioned via pseudo element, no layout shift */
.evidence::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-5);
  bottom: var(--space-5);
  width: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
}

.evidence.is-open::before {
  opacity: 0.4;
}

.evidence__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-5) 0;
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-fast);
}

.evidence__header:hover {
  color: var(--text-primary);
}

.evidence__badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  display: block;
}

.evidence__meta {
  grid-column: 1;
}

.evidence__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.010em;
  margin-bottom: var(--space-1);
  transition: color var(--duration-fast);
}

.evidence__header:hover .evidence__title {
  color: var(--text-primary);
}

.evidence__signal {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.evidence__chevron {
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: transform var(--duration-base);
  flex-shrink: 0;
  padding-top: var(--space-1);
}

.evidence.is-open .evidence__chevron {
  transform: rotate(180deg);
}

/* evidence__body: smooth reveal via max-height (defined in refinements section) */

.evidence__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.evidence__list li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-left: var(--space-5);
  position: relative;
  max-width: 68ch;
}

.evidence__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.85em;
}

.evidence__list a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.evidence__list a:hover {
  color: var(--text-primary);
}

/* Research synthesis */
.research-synthesis {
  margin-top: var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.research-synthesis__header {
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research-synthesis__title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.research-synthesis__date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.research-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: var(--space-4);
}

.research-pipeline__step {
  padding: var(--space-3);
  text-align: center;
}

.research-pipeline__num {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.research-pipeline__desc {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.research-findings {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  background: var(--border);
}

.research-finding {
  padding: var(--space-4);
  background: var(--bg-deep);
}

.research-finding__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.research-finding__body {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.research-finding__action {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.research-outcome__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--success);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.research-outcome__desc {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}


/* ================================================================
   10. DESIGN LEADERSHIP
   ================================================================ */

.dl-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.dl-pillar {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.dl-pillar:hover {
  border-color: var(--accent-14);
  box-shadow: var(--shadow-card-hover);
}

.dl-pillar h3 {
  margin-bottom: var(--space-2);
}

.dl-pillar p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-tertiary);
}

/* Validation block */
.dl-validation {
  margin-top: var(--space-8);
}

.dl-validation__title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.dl-validation__desc {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 680px;
}

.dl-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.dl-quote {
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  border-left: 1px solid var(--accent-30);
  transition: border-color var(--duration-base), background var(--duration-base);
}

.dl-quote:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-hover);
  border-left-color: var(--accent-55);
}

.dl-quote__role {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.dl-quote__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.dl-links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.dl-link {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.dl-link:hover {
  color: var(--text-primary);
}


/* ================================================================
   11. DESIGN STANCE & BEYOND
   ================================================================ */

.stance__lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-7);
}

.stance__body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-tertiary);
}

.stance__body p {
  margin-bottom: var(--space-5);
  color: inherit;
}

.stance-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.stance-method h3,
.stance-method h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-1);
}

.stance-method p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.stance__contrarian {
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
  padding: var(--space-6) var(--space-7);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border: 3px solid var(--accent);
  border-radius: var(--radius-m);
  max-width: 720px;
}

.stance__contrarian-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.stance__contrarian-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.stance__contrarian-body em {
  font-style: italic;
  color: var(--text-primary);
}

.stance__closing {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-top: var(--space-8);
  max-width: 720px;
}

/* Beyond */
.story-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  margin-bottom: var(--space-8);
  border: 1px solid var(--accent-10);
  box-shadow: var(--shadow-card);
}

/* Gradient scrim for legibility */
.story-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(6, 8, 16, 0.92) 0%,
      rgba(6, 8, 16, 0.55) 40%,
      rgba(6, 8, 16, 0.0) 100%);
  z-index: 0;
}

.story-card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.story-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
}

.story-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.story-card__title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.story-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 560px;
}

.story-card__metrics {
  display: flex;
  gap: var(--space-6);
}

.story-card__metric-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.story-card__metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Philosophy */
.philosophy__quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: -0.02em;
  margin: 0 auto var(--space-4);
  text-align: center;
  max-width: 820px;
  position: relative;
}

/* Opening quote mark */
.philosophy__quote::before {
  content: '\201C';
  font-size: 4em;
  line-height: 0;
  vertical-align: -0.55em;
  color: var(--accent);
  opacity: 0.25;
  margin-right: 0.08em;
  font-style: normal;
}

.philosophy__author {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-7);
}

.philosophy__body {
  max-width: 700px;
  margin: 0 auto var(--space-8);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-tertiary);
}

/* Differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.diff-card {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.diff-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.diff-card h3,
.diff-card h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.diff-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ================================================================
   12. CONTACT & FOOTER
   ================================================================ */

.contact {
  text-align: center;
  padding: var(--space-12) var(--gutter);
}

/* Ceremonial gold rule before the contact title */
.contact::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto var(--space-7);
  opacity: 0.60;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.contact__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

.contact__links {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.contact__link {
  font-size: 0.92rem;
  color: var(--accent);
  opacity: 0.80;
  text-decoration: underline;
  text-decoration-color: var(--accent-30);
  text-underline-offset: 3px;
  letter-spacing: 0.01em;
  transition: opacity var(--duration-fast), text-decoration-color var(--duration-fast);
}

.contact__link:hover {
  opacity: 1;
  text-decoration-color: var(--accent);
}

.contact__availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--space-5);
}

.contact__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Footer */
.footer {
  padding: var(--space-10) var(--gutter) var(--space-7);
  border-top: 1px solid var(--border);
  position: relative;
}

/* Thin accent above the footer — ceremonial closure */
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.40;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.footer__col-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast);
}

.footer__col-link:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ================================================================
   13. COMPONENTS
   ================================================================ */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-s);
  transition: all var(--duration-fast) var(--ease);
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-void);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-35);
  background: var(--accent-04);
}

.btn--live-demo {
  color: var(--accent);
  border-color: var(--accent-40);
}

.btn--live-demo:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* ── Hero demo hint (ACY context teaser below hero actions) ── */
.hero__demo-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.hero__demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 200, 150, 0.85);
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── Project demo CTA (TradeX card demo block) ── */
.project__demo-cta {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project__demo-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 52ch;
}

.project__demo-note kbd {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-s);
  padding: 1px 5px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-tertiary);
  border-radius: var(--radius-m);
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 100;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.back-to-top.is-visible {
  display: flex;
}

.back-to-top:hover {
  color: var(--text-primary);
  background: var(--border-hover);
}


/* ================================================================
   13b. 404 PAGE
   ================================================================ */

/* 404 Error Container */
.error-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, rgba(100, 149, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, var(--accent-08) 0%, transparent 50%),
    var(--bg-void);
}

/* Animated stars background */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* Error Content */
.error-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
}

.error-code {
  font-size: clamp(8rem, 20vw, 14rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, #6495ed 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite;
  letter-spacing: -0.02em;
}

@keyframes glow {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(100, 149, 237, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 40px rgba(100, 149, 237, 0.5));
  }
}

.error-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-8) 0 var(--space-4);
  line-height: 1.3;
}

.error-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.error-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.btn-primary-404 {
  display: inline-flex;



  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg-void);
  background: linear-gradient(135deg, #6495ed 0%, #5a85d8 100%);
  border-radius: var(--radius-l);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3),
    0 2px 6px rgba(100, 149, 237, 0.2);
}

.btn-primary-404:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4),
    0 4px 10px rgba(100, 149, 237, 0.3);
  background: linear-gradient(135deg, #7aa5f7 0%, #6495ed 100%);
}

.btn-secondary-404 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-l);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.btn-secondary-404:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Suggested Projects */
.suggested-projects {
  max-width: 900px;
  margin: 0 auto;
}

.suggested-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.project-card {
  position: relative;
  padding: var(--space-8);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-l);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6495ed, var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   14. COMMAND PALETTE
   ================================================================ */

.cmd-palette {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}

.cmd-palette.is-open {
  display: flex;
}

.cmd-palette__box {
  width: 90%;
  max-width: 560px;
  background: var(--bg-surface);
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 64px rgba(0, 0, 0, 0.60), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cmd-palette__input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.cmd-palette__input::placeholder {
  color: var(--text-muted);
}

.cmd-palette__results {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-2) 0;
}

.cmd-palette__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.cmd-palette__item:hover,
.cmd-palette__item.is-selected {
  background: var(--bg-elevated);
}

.cmd-palette__item-icon {
  width: 28px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  flex-shrink: 0;
}

.cmd-palette__item-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cmd-palette__item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.cmd-palette__footer {
  padding: var(--space-2) var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-4);
}


/* ================================================================
   15. UTILITIES
   ================================================================ */

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

.text-center {
  text-align: center;
}

.text-italic {
  font-style: italic;
}

.m-0 {
  margin: 0;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-7 {
  margin-bottom: var(--space-7);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-9 {
  margin-bottom: var(--space-9);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-7 {
  margin-top: var(--space-7);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-10 {
  margin-top: var(--space-10);
}

.my-5 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.my-6 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.my-7 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-7);
}

.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.my-9 {
  margin-top: var(--space-9);
  margin-bottom: var(--space-9);
}

.my-10 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-10);
}

.p-9 {
  padding: var(--space-9);
}

.pb-4 {
  padding-bottom: var(--space-4);
}

.mw-900 {
  max-width: 900px;
}

.mw-680 {
  max-width: 680px;
}

.d-block {
  display: block;
}

.img-full {
  width: 100%;
  border-radius: var(--radius-l);
  display: block;
}

.img-full--m {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  display: block;
}

/* fade-in: progressive enhancement — visible by default, animated only when JS is ready */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.js-ready .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   16. ANIMATIONS
   ================================================================ */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ================================================================
   TERMINAL COMPONENTS — Global (TradeX, LogixTrader, Finlogix demos)
   These must live at global scope — NOT inside any media query.
   ================================================================ */

/* Venue/Allocation bar containers */
.terminal__bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.terminal__bar-row--end {
  justify-content: flex-end;
  padding-right: 4px;
}

.terminal__bar-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.65);
}

.terminal__bar-track {
  width: 46px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.terminal__bar-fill {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-s);
  transition: width 0.55s;
}

.terminal__bar-value {
  font-size: 0.63rem;
  font-weight: 700;
}

/* Grid layouts for order book / allocation tables */
.terminal__grid-3col {
  display: grid;
  grid-template-columns: 1fr 66px 1fr;
}

.terminal__grid-5col {
  display: grid;
  grid-template-columns: 44px 58px 68px 1fr 76px;
  align-items: center;
  padding: var(--space-1) var(--space-5);
}

.terminal__grid-6col {
  display: grid;
  grid-template-columns: 110px 70px 70px 70px 1fr;
  align-items: center;
  padding: var(--space-3) var(--space-5);
}

.terminal__grid-7col {
  display: grid;
  grid-template-columns: 75px 85px 85px 75px 85px 1fr;
  padding: var(--space-2) var(--space-5);
  font-size: 0.7rem;
}

.terminal__grid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: var(--space-1) var(--space-4);
}

.terminal__grid-row--tight {
  padding: 0.28rem var(--space-5);
}

/* Background bar indicators (buy/sell pressure) */
.terminal__bg-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.terminal__bg-bar--buy {
  right: 0;
  background: rgba(76, 175, 80, 0.10);
}

.terminal__bg-bar--buy-tight {
  right: 0;
  background: rgba(76, 175, 80, 0.09);
}

.terminal__bg-bar--sell {
  left: 0;
  background: rgba(255, 82, 82, 0.10);
}

.terminal__bg-bar--sell-tight {
  left: 0;
  background: rgba(255, 82, 82, 0.09);
}

/* Text elements — various sizes */
.terminal__text-xs {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
}

.terminal__text-tiny {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.terminal__text-sm {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.terminal__text-sm--secondary {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
}

.terminal__text-sm--tertiary {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.30);
  position: relative;
}

.terminal__text-base {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.terminal__text-base--secondary {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
}

.terminal__text-md {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.30);
  position: relative;
}

.terminal__text-md--secondary {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
}

.terminal__text-lg {
  font-size: 0.7rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
}

.terminal__text-lg--secondary {
  font-size: 0.7rem;
  color: var(--text-primary);
  position: relative;
}

.terminal__text-lg--secondary--green {
  font-size: 0.7rem;
  color: #4caf92;
  position: relative;
}

.terminal__text-lg--tertiary {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.terminal__text-lg--muted {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: right;
  position: relative;
}

.terminal__text-bold {
  font-size: 0.68rem;
  font-weight: 700;
}

.terminal__text-bold--lg {
  font-size: 0.72rem;
  font-weight: 600;
}

.terminal__text-bold--md {
  font-size: 0.7rem;
  font-weight: 700;
}

.terminal__text-bold--md--white {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

.terminal__text-bold--sm {
  font-size: 0.58rem;
  font-weight: 600;
}

.terminal__text-price {
  font-size: 0.74rem;
  font-weight: 700;
  position: relative;
}

.terminal__text-price--buy {
  font-size: 0.78rem;
  font-weight: 600;
  position: relative;
}

.terminal__text-price--sm {
  font-size: 0.62rem;
  text-align: right;
  min-width: 28px;
}

.terminal__text-right {
  text-align: right;
  font-weight: 700;
}

.terminal__text-center {
  text-align: center;
}

/* Spread display widget */
.terminal__spread-widget {
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal__spread-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.terminal__spread-label {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
}

.terminal__spread-value {
  font-size: 0.68rem;
  font-weight: 700;
}

/* Progress bars */
.terminal__progress-container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.terminal__progress-bar {
  width: 56px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.terminal__progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-s);
  transition: width 0.4s;
}

.terminal__progress-percent {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.58);
}

/* Wide allocation bar */
.terminal__alloc-bar {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.terminal__alloc-fill {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-s);
  transition: width 0.5s ease;
}

.terminal__alloc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
  min-width: 28px;
}

/* Execution / Settlement panes */
.terminal__execution-pane {
  background: #030308;
  border-radius: var(--radius-l);
  padding: 0.65rem var(--space-5);
  margin-bottom: var(--space-2);
}

.terminal__execution-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.terminal__execution-ticker {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.40);
}

.terminal__execution-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.22);
}

.terminal__execution-stages {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.terminal__execution-stage {
  flex: 1;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-s);
  text-align: center;
  font-size: 0.58rem;
}

.terminal__execution-divider {
  width: 5px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Dynamic CSS-variable utilities */
.terminal__dynamic-color {
  color: var(--terminal-color, inherit);
}

.terminal__dynamic-width {
  width: var(--terminal-width, 100%);
}

.terminal__dynamic-bg {
  background: var(--terminal-bg, transparent);
}

.terminal__dynamic-fill {
  width: var(--terminal-width, 100%);
  height: 100%;
  background: var(--terminal-bg, var(--accent));
  border-radius: var(--radius-s);
  transition: width 0.55s;
}

/* ================================================================
   17. RESPONSIVE — Mobile (375px–767px) — BASE STYLES ABOVE
   All base styles are mobile-first. This section handles
   mobile-specific overrides and inline style fixes.
   ================================================================ */

@media (max-width: 767px) {

  /* ── Layout ── */
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .section {
    padding: var(--space-8) 0;
  }

  .section__intro {
    margin-bottom: var(--space-6);
  }

  /* ── Typography ── */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  /* ── Hero ── */
  .hero {
    min-height: 90vh;
    padding-top: var(--space-10);
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }


  .hero__scroll {
    display: none;
  }

  .hero__social {
    gap: var(--space-2);
  }

  /* ── Projects ── */
  .project {
    margin-bottom: var(--space-7);
  }

  .project__number {
    display: none;
  }

  .project__title {
    font-size: 1.25rem;
  }

  .project__tagline {
    font-size: 0.88rem;
    margin-bottom: var(--space-3);
  }

  .project__tags {
    gap: var(--space-2);
    font-size: 0.75rem;
  }

  .project__links {
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  .works__legend {
    gap: var(--space-3);
    flex-direction: column;
    align-items: flex-start;
  }

  /* ── Grids: everything single column ── */
  .grid--2,
  .grid--3,
  .grid--4,
  .jurisdiction-grid,
  .compliance-systems,
  .dl-pillars,
  .dl-quotes,
  .stance-methods,
  .diff-grid,
  .enterprise__meta,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  /* ── Research ── */
  .research-pipeline {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .research-findings {
    grid-template-columns: 1fr;
  }

  /* ── Story card ── */
  .story-card {
    min-height: auto;
    padding: var(--space-5);
  }

  .story-card__metrics {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  /* ── Footer ── */
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  /* ── Contact ── */
  .contact {
    padding: var(--space-9) var(--gutter);
  }

  .contact__title {
    font-size: 2rem;
  }

  .contact__links {
    flex-direction: column;
    align-items: center;
  }

  /* ── Command palette ── */
  .cmd-palette__box {
    width: 95%;
  }


  /* REMOVED: V1 SUBPAGE INLINE STYLE OVERRIDES
     All project pages are now clean (zero inline styles).
     Only design-system-showcase.html has inline grid styles (repeat(auto-fit/auto-fill, ...)),
     which are NOT targeted by the specific selectors below.
     Grid-template-columns: repeat(4|3|2), 1fr 1fr, 2fr 1fr, and clamp() sizes
     no longer exist in any active HTML files. */

  /* Project detail pages */
  .project-detail-header {
    padding: 80px 0 var(--space-5);
  }

  .project-detail-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-links {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Gallery and comparison grids */
  .gallery-grid,
  .comparison-grid,
  .perspective-grid,
  .philosophy-grid,
  .showcase-grid,
  .bridge-grid,
  .annotation-grid,
  .tools-grid,
  .example-grid,
  .persona-grid,
  .challenge-grid,
  .variable-grid,
  .design-showcase-grid,
  .problem-grid,
  .proposal-pair {
    grid-template-columns: 1fr;
  }

  /* Awwwards tier 2 grid */
  .awwwards-tier-2-grid {
    grid-template-columns: 1fr;
  }

  /* Hide desktop-only decorative elements */
  .t3-desc {
    display: none;
  }

  /* Card table responsive */
  .card-table thead {
    display: none;
  }

  .card-table tr {
    display: block;
    margin-bottom: var(--space-4);
    background: var(--bg-elevated);
    border-radius: var(--radius-m);
    padding: var(--space-3);
  }

  .card-table td {
    display: block;
    padding: var(--space-1) 0;
    font-size: 0.85rem;
  }

  .card-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
  }

  /* Responsive table wrapper */
  .responsive-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-4) calc(var(--space-4) * -1);
    padding: 0 var(--space-4);
  }

  /* Image overflow prevention */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Process/Compliance page content width */
  .project-content__main {
    max-width: 100%;
  }

  /* Inline grid column overrides — only repeat(3, 1fr) is used (design-md files) */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Prevent any table in project pages from causing full-page horizontal scroll */
  .page-project table,
  .project-detail-page table,
  .cosmic-void table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* REMOVED: min-width selectors (600px, 700px, 800px) - no HTML files use these inline styles anymore */

  /* ── 404 Page ── */
  .error-code {
    font-size: clamp(6rem, 25vw, 10rem);
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-404,
  .btn-secondary-404 {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   18. RESPONSIVE — Tablet (768px–1279px)
   ================================================================ */

@media (min-width: 768px) {

  /* ── Navigation: show desktop nav ── */
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  /* ── Layout ── */
  .container {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  /* Hero content wider on tablet */
  .hero__content {
    max-width: 860px;
  }

  /* ── Grids: 2 columns ── */
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jurisdiction-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compliance-systems {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-quotes {
    grid-template-columns: repeat(2, 1fr);
  }

  .stance-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .enterprise__meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-findings {
    grid-template-columns: repeat(3, 1fr);
  }

  .research-pipeline {
    grid-template-columns: repeat(5, 1fr);
  }

  /* ── Footer ── */
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr;
  }

  /* ── Projects ── */
  .awwwards-tier-2-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Subpage grids ── */
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  /* ── Nova responsive: explainer cards stack on constrained width ── */
  .nova-explainer__grid {
    grid-template-columns: 1fr;
  }

  /* ── Nova responsive: comparison cards stack on narrower containers ── */
  .nova-compare {
    grid-template-columns: 1fr;
  }

  .nova-compare__arrow {
    text-align: center;
    transform: rotate(90deg);
    padding: 0;
  }

  .t3-desc {
    display: block;
  }
}


/* ================================================================
   19. RESPONSIVE — Desktop (1280px+)
   ================================================================ */

@media (min-width: 1280px) {

  /* ── Section rhythm — more cinematic breathing room ── */
  .section {
    padding: var(--space-11) 0;
  }

  .section__intro {
    margin-bottom: var(--space-10);
  }

  .section__desc {
    max-width: 760px;
  }

  /* ── Hero ── */
  .hero__title {
    font-size: clamp(3.5rem, 6vw, 5rem);
  }

  .hero__content {
    max-width: 960px;
  }

  /* ── Projects: full-width editorial — image commands the full canvas ── */
  .project {
    display: block;
    position: static;
    margin-bottom: var(--space-12);
  }

  /* Chapter number: flows above the image as a small editorial label */
  .project__number {
    display: block;
    position: static;
    font-family: var(--font-body);
    font-size: 0.60rem;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.50;
    margin-bottom: var(--space-4);
  }

  /* Inner wrapper: single column — image full-width above, details below */
  .project>div:last-child {
    display: block;
  }

  /* Full-width cinematic image — the showcase, not a thumbnail */
  .project__image {
    margin-bottom: var(--space-8);
    position: static;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-l);
  }

  .project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* Details: editorial caption zone — clean single column with ruled separator */
  .project__details {
    max-width: none;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
  }

  /* Project title: Cormorant Garamond at desktop — institutional weight */
  .project__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.035em;
    line-height: 1.10;
    margin-bottom: var(--space-2);
  }

  .project__tagline {
    font-size: 0.95rem;
    margin-bottom: var(--space-5);
  }

  .project__desc {
    font-size: 0.95rem;
  }

  /* ── Grids: full columns ── */
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .compliance-systems {
    grid-template-columns: repeat(3, 1fr);
  }

  .dl-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .dl-quotes {
    grid-template-columns: repeat(3, 1fr);
  }

  .enterprise__meta {
    grid-template-columns: repeat(4, 1fr);
  }

  /* ── Design Leadership ── */
  .dl-pillar {
    padding: var(--space-6);
  }

  .dl-validation__desc {
    max-width: 820px;
  }

  /* ── Stance section ── */
  .stance__lead {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  }

  .stance__body {
    color: var(--text-secondary);
  }

  /* ── Contact wider at desktop ── */
  .contact {
    padding: var(--space-12) var(--gutter) var(--space-11);
  }

  /* ── Evidence: IBM information architecture ── */
  .evidence-list {
    max-width: 840px;
  }

  .evidence__header {
    padding: var(--space-6) 0;
  }

  .evidence__signal {
    letter-spacing: 0.014em;
  }

  /* ── Subpage grids ── */
  .project-detail-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .project-content__grid {
    grid-template-columns: 1fr 240px;
  }

  /* ── Nova responsive: restore two-column layout in full-width context ── */
  .project-detail-grid .nova-explainer__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ── Nova responsive: restore comparison cards side-by-side ── */
  .project-detail-grid .nova-compare {
    grid-template-columns: 1fr auto 1fr;
  }

  .project-detail-grid .nova-compare__arrow {
    text-align: center;
    transform: none;
    padding-top: var(--space-6);
  }

  /* ── Awwwards tier 2 ── */
  .awwwards-tier-2-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── Typography: tighter letter-spacing at desktop scale ── */
  h2 {
    letter-spacing: -0.032em;
  }

}


/* ================================================================
   20. RESPONSIVE — Wide (1440px+)
   Maximum expression — full cinematic scale
   ================================================================ */

@media (min-width: 1440px) {

  /* ── Section: maximum breathing room ── */
  .section {
    padding: var(--space-12) 0;
  }

  .section__intro {
    margin-bottom: var(--space-11);
  }

  /* ── Typography: maximum scale ── */
  h2 {
    font-size: 3.8rem;
  }

  /* ── Hero: full expression ── */
  .hero__title {
    font-size: 6rem;
    letter-spacing: -0.048em;
    line-height: 0.98;
  }

  /* ── Projects: maximum cinematic presence at wide screens ── */
  .project {
    margin-bottom: clamp(6rem, 12vh, 10rem);
  }

  .project__title {
    font-size: 3rem;
    letter-spacing: -0.03em;
  }

  .project__details {
    max-width: none;
  }

  /* ── Philosophy quote: full reading size ── */
  .philosophy__quote {
    font-size: 2.2rem;
  }

  /* ── Contact: ceremonial maximum ── */
  .contact__title {
    font-size: 5.5rem;
    letter-spacing: -0.04em;
  }

  .contact {
    padding: clamp(8rem, 14vh, 12rem) var(--gutter);
  }

  /* ── Footer: 4-column institutional layout ── */
  .footer__top {
    grid-template-columns: 3fr 1fr 1fr 1fr;
  }

  /* ── Stance lead: editorial scale ── */
  .stance__lead {
    font-size: 2rem;
  }

  /* ── Nav: more generous spacing ── */
  .nav__links {
    gap: var(--space-7);
  }

}


/* ================================================================
   21. PROJECT DETAIL PAGES
   ================================================================ */

.page-project {
  background: var(--bg-void);
}

/* Project header */
.project-hero {
  padding: clamp(100px, 14vh, 160px) 0 clamp(48px, 8vh, 80px);
}

.project-hero__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.project-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.project-hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: var(--space-6);
}

.project-hero__links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Project content */
.project-content {
  padding: var(--space-9) 0;
}

.project-content__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.project-content__main {
  max-width: 780px;
}

.project-content__main h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: 1.2rem;
}

.project-content__main p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.project-content__main img {
  border-radius: var(--radius-m);
  margin: var(--space-6) 0;
}

/* Project sidebar */
.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.project-sidebar__item {
  font-size: 0.85rem;
}

.project-sidebar__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.project-sidebar__value {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Metric grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.metric-card {
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
}

.metric-card__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.metric-card__label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Project nav (back) */
.project-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.project-nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.project-nav__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.project-nav__back:hover {
  color: var(--text-primary);
}

.project-nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.project-nav__right .lang-dropdown {
  position: relative;
}

.project-nav__right .lang-selector-btn {
  padding: var(--space-1) var(--space-3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Project page responsive */
@media (min-width: 1280px)
/* project detail */
  {
  .project-content__grid {
    grid-template-columns: 1fr 240px;
  }
}

/* (moved to main responsive section) */


/* ================================================================
   21. V1 COMPATIBILITY — Subpage support
   These rules support the full-content v1 project pages
   ================================================================ */

/* Header (v1 pattern) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: background 0.3s, padding 0.3s;
}

.header.scrolled {
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo-link {
  text-decoration: none;
  color: var(--text-primary);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link.back-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link.back-link:hover,
.back-link:hover {
  color: var(--text-primary);
}

/* Project detail page */
.project-detail-page {
  background: var(--bg-void);
  color: var(--text-secondary);
}

.project-detail-main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.project-detail-header {
  padding: clamp(100px, 14vh, 160px) 0 clamp(48px, 8vh, 80px);
  background: var(--bg-void);
}

.project-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.project-detail-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 780px;
}

.project-detail-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.project-detail-content {
  padding: var(--space-9) 0;
}

.project-detail-hero-image {
  margin-bottom: var(--space-6);
  overflow: hidden;
  border-radius: var(--radius-m);
}

.project-detail-hero-image img {
  width: 100%;
  display: block;
  border-radius: var(--radius-m);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.project-detail-main {
  max-width: 780px;
  min-width: 0;
  overflow-wrap: break-word;
}

.project-detail-main h3 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  font-size: 1.2rem;
}

.project-detail-main p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.project-detail-main img {
  border-radius: var(--radius-m);
  margin: var(--space-6) 0;
}

.project-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 0.85rem;
}

/* (moved to main responsive section) */

/* Project badge */
.project-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

/* Tags */
.project-tags-detail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

/* Button small */
.btn-small,
.btn.btn-small {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-small:hover {
  background: var(--border-hover);
  color: var(--text-primary);
}

/* Animations (v1 pattern) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: none;
}

.animate-on-load {
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards;
}

/* Responsive table */
.responsive-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  /* Ensure scrollbar shows on mobile Safari */
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.responsive-table-wrapper table {
  /* Prevent squishing — forces horizontal scroll on narrow viewports */
  min-width: 480px;
  width: 100%;
}

/* Section intro (v1 pattern) */
.section-intro {
  text-align: center;
  margin-bottom: var(--space-9);
}

/* Headings (v1 pattern) */
.heading-refined {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: var(--space-5);
}

.heading-large {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: var(--space-5);
}

.heading-colossal {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
}

/* Labels */
.label-minimal {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Description */
.description-wide {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.description-compact {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Container (v1 pattern) */
.container-standard {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-fluid {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

/* (covered by mobile responsive) */

/* Verification badge */
.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* Font Awesome icon compat (v1 pages still use fa- classes) */
.fas,
.fab,
.far {
  display: inline-block;
  font-style: normal;
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
  list-style: none;
}

.lang-selector-btn {
  cursor: pointer;
}

.lang-options {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-m);
  padding: var(--space-1) 0;
  min-width: 120px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}

.lang-dropdown.active .lang-options {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-4);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lang-option:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.lang-option.active {
  color: var(--accent);
}

/* Ensure chevron SVG doesn't block click events */
.evidence__chevron,
.evidence__chevron svg {
  pointer-events: none;
}

/* (evidence__header cursor already defined above) */

/* Story card without background image */
.story-card--no-bg {
  background: var(--bg-surface);
  min-height: auto;
  align-items: flex-start;
  padding: var(--space-8);
}

/* Mobile nav language dropdown */
.nav__mobile-lang {
  margin-top: var(--space-6);
}

/* (moved to main responsive section 17) */

/* ================================================================
   22. VISUAL REFINEMENTS — Institutional polish
   ================================================================ */

/* Section transitions — subtle bg gradient between sections */
.section+.section {
  border-top: 1px solid var(--border);
}

/* First section after hero — no border */
.hero+.section {
  border-top: none;
}

/* Project card image — subtle radius and shadow */
.project__image {
  border-radius: var(--radius-l);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Subproject cards — subtle hover lift */
/* Subproject hover — defined in Section 07 above */

/* Compliance system stat — display font for numbers */
.compliance-system__stat {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Evidence chevron rotation */
.evidence__chevron {
  transition: transform var(--duration-base) var(--ease);
  display: flex;
  align-items: center;
}

.evidence.is-open .evidence__chevron {
  transform: rotate(180deg);
}

/* Evidence body — smooth reveal */
.evidence__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.evidence.is-open .evidence__body {
  display: block;
  max-height: 2000px;
  opacity: 1;
  padding: 0 0 var(--space-6);
}

/* DL quote cards — hover defined in Section 10 above */

/* Stance method cards — gold hover consistent with other card family */
.stance-method {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

.stance-method:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--accent-14);
  box-shadow: var(--shadow-card-hover);
}

/* Differentiator cards */
.diff-card {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  transition: background var(--duration-base);
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Contact section — generous vertical space */
.contact {
  padding: var(--space-12) var(--gutter) var(--space-11);
}

/* Smooth page load */
body {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Links in evidence/insight — underline */
.evidence__list a,
.project__insight a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Btn hover states — refined */
.btn--primary {
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  transition: color var(--duration-fast), background var(--duration-fast);
}

/* Nav link hover — subtle underline */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease);
}

.nav__link {
  position: relative;
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Scroll hint — breathing animation on the gradient line */
.hero__scroll::after {
  animation: scroll-hint 2.4s ease-in-out infinite;
}

@keyframes scroll-hint {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
    transform-origin: top;
  }

  50% {
    opacity: 0.85;
    transform: scaleY(1.18);
    transform-origin: top;
  }
}

/* Project tags separator dot — refined spacing */
.project__tags {
  gap: 0 var(--space-4);
}

.project__tags span {
  padding: 0 var(--space-1);
}

/* Section label — gold accent on hover */
.section__label {
  transition: color var(--duration-fast);
}

/* Command palette — backdrop */
.cmd-palette {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Research outcome highlight */
.research-outcome__value {
  color: var(--accent);
}

/* Jurisdiction cards — hover */
.jurisdiction {
  transition: background var(--duration-base);
}

.jurisdiction:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Print styles */
@media print {

  .nav,
  .hero__canvas,
  .hero__scroll,
  .back-to-top,
  .cmd-palette,
  .hero__social,
  .hero__actions,
  .contact__availability {
    display: none;
  }

  :root {
    --text-primary: #111;
    --text-secondary: #333;
    --text-tertiary: #555;
    --text-muted: #777;
    --bg-void: #fff;
    --bg-deep: #fff;
    --bg-surface: #f8f8f8;
    --bg-elevated: #f0f0f0;
    --accent: #8b7332;
    --border: #ddd;
    --border-hover: #bbb;
  }

  body {
    background: #fff;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #111;
    break-after: avoid;
  }

  a {
    color: #111;
    text-decoration: underline;
  }

  .btn {
    border: 1px solid #111;
  }

  img {
    break-inside: avoid;
  }

  @page {
    margin: 2cm;
  }
}

/* Contact location */
.contact__location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: var(--space-4) auto 0;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: var(--container-narrow);
}

/* ================================================================
   23. SUBPAGE MOBILE FIXES
   ================================================================ */

/* Header always visible and horizontal */
.header,
.project-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 8, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container,
.project-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Logo always inline */
.logo-link,
.project-nav__logo {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Back link always inline */
.nav-link.back-link,
.back-link,
.project-nav__back {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Project detail responsive */
@media (max-width: 767px)
/* legacy compat */
  {
  .project-detail-header {
    padding: clamp(80px, 12vh, 120px) 0 var(--space-6);
  }

  .project-detail-title {
    font-size: 1.8rem;
  }

  .project-detail-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Fix inline style containers on mobile */
  [style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
  }

  /* REMOVED: selector for grid-template-columns: 1fr 1fr (no HTML files use this) */

  [style*="display: grid"][style*="repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  /* Gallery grids */
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  /* Container padding */
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* cosmic-void body class (used by v1 pages) */
.cosmic-void {
  background: var(--bg-void);
  color: var(--text-secondary);
}

/* Fade in scale (used in projects.html) */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-scale.revealed {
  opacity: 1;
  transform: none;
}

/* Section breathe (v1 spacing) */
.section-breathe {
  padding: var(--space-10) 0;
}

/* Awwwards tier system (projects.html) */
.awwwards-hero {
  padding: clamp(100px, 14vh, 160px) 0 var(--space-8);
  text-align: center;
}

.awwwards-hero-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.awwwards-hero-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.awwwards-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.awwwards-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

.awwwards-hero-subdesc {
  display: inline-block;
  opacity: 0.75;
  font-size: 0.88em;
  margin-top: var(--space-3);
  letter-spacing: 0.025em;
}

/* Archive grid wrapper */
.archive-grid {
  padding-bottom: var(--space-12);
}

.archive-framing {
  padding-bottom: var(--space-10);
  text-align: center;
}

.archive-framing .description-wide {
  margin: 0 auto;
}

.heading-colossal {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.heading-refined {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.description-wide {
  font-size: 1rem;
  color: var(--text-tertiary);
  max-width: 640px;
  line-height: 1.7;
}

.description-compact {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tier-header {
  text-align: left;
  margin-bottom: var(--space-10);
}

.awwwards-tier-1-section,
.awwwards-tier-2-section,
.awwwards-tier-3-section {
  padding: var(--space-8) 0;
}

/* Tier 1 editorial rows */
.awwwards-tier-1-section {
  margin-bottom: var(--space-12);
}

.awwwards-tier-1-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-11);
  align-items: center;
}

/* Mobile: image always on top regardless of DOM order */
.awwwards-t1-image-wrapper {
  order: -1;
}

.awwwards-t1-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 1;
}

/* Desktop: 2-column editorial layout — must come AFTER base rule above */
@media (min-width: 768px) {
  .awwwards-tier-1-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
  }

  /* Default: text-left, image-right */
  .awwwards-tier-1-row .awwwards-t1-text {
    order: 1;
  }

  .awwwards-tier-1-row .awwwards-t1-image-wrapper {
    order: 2;
  }

  /* Reverse: image-left, text-right */
  .awwwards-tier-1-row.reverse .awwwards-t1-image-wrapper {
    order: 1;
  }

  .awwwards-tier-1-row.reverse .awwwards-t1-text {
    order: 2;
  }
}

.awwwards-t1-text h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

.awwwards-t1-text p {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.awwwards-t1-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  display: block;
}

.awwwards-t1-image-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.awwwards-t1-image-wrapper:hover img {
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 16, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.image-reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.image-reveal.revealed {
  opacity: 1;
}

.awwwards-t1-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.awwwards-t1-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-3) 0;
}

.awwwards-meta-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 3px 10px;
  border-radius: var(--radius-s);
}

.deep-case-study-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-25);
  padding: 3px 10px;
  border-radius: var(--radius-s);
}

.awwwards-t1-impact {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: var(--space-3) 0;
}

.impact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.impact-stats {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.awwwards-t1-link-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.awwwards-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
}

.awwwards-link-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.awwwards-link-btn--alt {
  background: rgba(100, 149, 237, 0.06);
  border-color: rgba(100, 149, 237, 0.25);
}

/* Tier 2 */
.awwwards-tier-2-section {
  margin-bottom: var(--space-12);
}

.awwwards-t2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

/* Status badges (shipped / concept) */
.status-badge--shipped {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  padding: 2px var(--space-2);
  border-radius: 20px;
  font-size: 0.6rem;
  letter-spacing: 1px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.status-badge--concept {
  background: rgba(255, 167, 38, 0.12);
  color: #ffa726;
  padding: 2px var(--space-2);
  border-radius: 20px;
  font-size: 0.6rem;
  letter-spacing: 1px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: var(--space-2);
}

/* Filter button shipped/concept variant colors */
.filter-btn[data-filter="shipped"]:hover,
.filter-btn[data-filter="shipped"].active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.filter-btn[data-filter="concept"]:hover,
.filter-btn[data-filter="concept"].active {
  background: rgba(255, 167, 38, 0.15);
  color: #ffa726;
}

/* Shipped/concept default border colors */
.filter-btn--shipped {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
}

.filter-btn--concept {
  color: #ffa726;
  border-color: rgba(255, 167, 38, 0.4);
}

/* Tier 2 grid */
.awwwards-tier-2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.awwwards-t2-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.3s;
}

.awwwards-t2-card:hover {
  transform: translateY(-2px);
}

.awwwards-t2-image {
  display: block;
  overflow: hidden;
}

.awwwards-t2-image img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.awwwards-t2-card:hover .awwwards-t2-image img {
  transform: scale(1.03);
}

[data-category].hidden {
  display: none;
}

.awwwards-t2-content {
  padding: var(--space-4);
}

.awwwards-t2-content h3 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.awwwards-t2-content p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.awwwards-t2-proves {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Tier 3 */
.awwwards-tier-3-section {
  margin-bottom: var(--space-10);
}

.awwwards-t3-row--featured {
  padding-left: var(--space-5);
  background: var(--accent-03);
}

.t3-badge {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  padding: var(--space-1) var(--space-1);
  border-radius: var(--radius-s);
  background: var(--accent-10);
  border: 1px solid var(--accent-hover);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
}

/* Tier 3 list */
.awwwards-tier-3-list {
  border-top: 1px solid var(--border);
}

.awwwards-t3-row {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-3);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.awwwards-t3-row:hover {
  background: var(--bg-elevated);
}

.awwwards-t3-row:hover .t3-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.t3-num {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.t3-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.awwwards-t3-row:hover .t3-title {
  color: var(--text-primary);
}

.t3-title-main {
  display: block;
}

.t3-desc {
  display: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--space-1);
}

.t3-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
  justify-self: end;
}

@media (min-width: 768px) {
  .awwwards-t3-row {
    grid-template-columns: 40px 220px 1fr 20px;
    gap: var(--space-6);
    padding: var(--space-5) var(--space-4);
  }

  .t3-desc {
    display: block;
  }
}

/* Shipped/concept overlay labels */
.shipped-overlay-label,
.concept-overlay-label {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 10px;
  border-radius: var(--radius-s);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.shipped-overlay-label {
  background: rgba(4, 22, 10, 0.85);
  color: var(--success);
}

.concept-overlay-label {
  background: rgba(20, 16, 8, 0.85);
  color: #ffa726;
}

/* Concept images: desaturated until hover */
.awwwards-tier-1-row[data-category*="concept"]:not([data-category*="shipped"]) .awwwards-t1-image-wrapper img {
  filter: saturate(0.75);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.awwwards-tier-1-row[data-category*="concept"]:not([data-category*="shipped"]) .awwwards-t1-image-wrapper:hover img {
  filter: saturate(1);
}

/* Tier 2 concept cards: muted opacity */
.awwwards-t2-card[data-category*="concept"]:not([data-category*="shipped"]) {
  opacity: 0.82;
}

.awwwards-t2-card[data-category*="concept"]:not([data-category*="shipped"]):hover {
  opacity: 1;
}

/* Tag filter bar (projects.html) */
.tag-filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.filter-btn {
  font-size: 0.78rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-primary);
  background: var(--border-hover);
}

/* Archive footer (projects.html) */
.archive-footer {
  padding: clamp(60px, 10vh, 100px) 5vw var(--space-10);
  text-align: center;
  margin-top: var(--space-12);
  border-top: 1px solid var(--border);
}

.archive-footer__inner {
  max-width: 700px;
  margin: 0 auto;
}

.archive-footer__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.archive-footer__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.archive-footer__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.archive-footer__stats {
  display: inline-flex;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-7) var(--space-9);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-8);
}

.archive-footer__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.archive-footer__stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 200;
  color: var(--accent);
}

.archive-footer__stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.archive-footer__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.archive-footer__copy {
  margin-top: var(--space-8);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Footer link for v1 pages */
.footer-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Premium panel (process, compliance subpages) */
.premium-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

/* Executive recognition page */
.executive-hero {
  padding: clamp(100px, 14vh, 160px) 0 var(--space-8);
}

.exec-collaboration-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

/* NDA badge */
.nda-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-l);
  margin-bottom: var(--space-5);
}

/* Institutional relevance block */
.institutional-relevance {
  background: var(--bg-elevated);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  margin: var(--space-7) 0;
}

/* Data verification page */
.verification-container {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.verification-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px)
/* legacy compat */
  {
  .verification-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Subtitle refined (v1 hero pages) */
.subtitle-refined {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
}

/* ================================================================
   24. V1 SUBPAGE DEEP CLEANUP — Override remaining inline styles
   These rules use attribute selectors to neutralize common
   toxic inline patterns without editing 5000+ lines of HTML.
   ================================================================ */

/* Section 24 attribute-selector kill-rules removed 2026-04-15 —
   all project pages now use BEM classes or CSS custom property injection,
   so the global [style*="..."] !important hacks are no longer needed. */



/* ── Subpage content defaults ── */
.page-project .container,
.project-detail-page .container,
.cosmic-void .container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Subpage typography overrides ── */
.page-project h1,
.project-detail-page h1,
.cosmic-void h1 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text-primary);
}

.page-project h2,
.project-detail-page h2,
.cosmic-void h2 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text-primary);
}

.page-project h3,
.page-project h4,
.project-detail-page h3,
.project-detail-page h4,
.cosmic-void h3,
.cosmic-void h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.page-project h3:first-child,
.page-project h4:first-child,
.project-detail-page h3:first-child,
.project-detail-page h4:first-child {
  margin-top: 0;
}

.page-project p,
.project-detail-page p,
.cosmic-void p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.page-project a,
.project-detail-page a,
.cosmic-void a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.page-project a:hover,
.project-detail-page a:hover,
.cosmic-void a:hover {
  color: var(--text-primary);
}

/* Restore button colors overridden by the broad a { color } rule above */
.page-project a.btn--primary,
.project-detail-page a.btn--primary,
.cosmic-void a.btn--primary {
  color: var(--bg-void);
}

.page-project a.btn--primary:hover,
.project-detail-page a.btn--primary:hover,
.cosmic-void a.btn--primary:hover {
  color: var(--bg-void);
}

/* ── Subpage strong/bold text ── */
.page-project strong,
.project-detail-page strong,
.cosmic-void strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Subpage list styling ── */
/* Only apply indent to bare prose ul/ol — not component-internal lists */
.project-detail-main>ul,
.project-detail-main>ol,
.project-detail-main .callout>ul,
.project-detail-main .callout>ol,
.project-detail-main .acc-box>ul,
.project-detail-main .pr-box>ul,
.project-detail-main .cr-box>ul {
  padding-left: var(--space-5);
}

/* Component-level lists — always reset */
.sidebar-nav-list,
.sidebar-meta,
.project-detail-sidebar ul,
.variable-card ul,
.info-card ul,
.annotation-card ul,
.challenge-card ul,
.flx-sidebar-card ul,
.term-block ul,
.project-tags-detail,
.subproject__tags,
nav ul,
.nav ul {
  padding-left: 0;
}

.page-project li,
.project-detail-page li,
.cosmic-void li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

/* ── Subpage image defaults ── */
.page-project img,
.project-detail-page img,
.cosmic-void img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}

/* ── Kill old v1 animation classes that cause invisible content ── */
.animate-on-load {
  opacity: 1 !important;
  animation: none !important;
}

.animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Subpage inline divs that act as cards/panels ── */
.page-project [style*="background: rgba"],
.project-detail-page [style*="background: rgba"],
.cosmic-void [style*="background: rgba"] {
  border-radius: var(--radius-m);
  padding: var(--space-4);
}


/* ================================================================
   24. PROJECT PAGE COMPONENTS
   Clean BEM components replacing all inline styles in project pages.
   Breakpoints: mobile 375–768 | tablet 769–1280 | desktop 1280+
   ================================================================ */

/* ─────────────────────────────────────────────
   pd-label: Small uppercase tag/badge above headings
   Usage: <div class="pd-label pd-label--blue">SECTION TITLE</div>
   ───────────────────────────────────────────── */
.pd-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-s);
  margin-bottom: var(--space-4);
  color: var(--text-tertiary);
  background: var(--bg-elevated);
}

.pd-label--neutral {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.pd-label--blue {
  color: #6495ed;
  background: rgba(100, 149, 237, 0.10);
}

.pd-label--gold {
  color: var(--accent);
  background: var(--accent-subtle);
}

.pd-label--green {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.10);
}

.pd-label--teal {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.10);
}

.pd-label--red {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
}

.pd-label--orange {
  color: #ffa726;
  background: rgba(255, 167, 38, 0.10);
}

.pd-label--purple {
  color: #9370db;
  background: rgba(147, 112, 219, 0.10);
}

.pd-label--cyan {
  color: #00d1ff;
  background: rgba(0, 209, 255, 0.08);
}

/* Extend existing .project-badge with color variants */
.project-badge--neutral {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.project-badge--blue {
  color: #6495ed;
  background: rgba(100, 149, 237, 0.10);
}

.project-badge--gold {
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-25);
}

.project-badge--green {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.10);
}

.project-badge--orange {
  color: #ff832c;
  background: rgba(255, 131, 44, 0.10);
}

.project-badge--purple {
  color: #9370db;
  background: rgba(147, 112, 219, 0.10);
}

.project-badge--cyan {
  color: #00d1ff;
  background: rgba(0, 209, 255, 0.08);
}

.project-badge--concept {
  color: #ffa726;
  background: rgba(255, 167, 38, 0.10);
}

/* Badge row: flex row of multiple pd-labels in the header */
.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

/* ─────────────────────────────────────────────
   btn-small color variants
   ───────────────────────────────────────────── */
.btn-small--lg {
  padding: var(--space-3) var(--space-6);
  font-size: 0.95rem;
}

.btn-small--blue {
  background: rgba(100, 149, 237, 0.12);
  color: #6495ed;
}

.btn-small--purple {
  background: rgba(162, 89, 255, 0.12);
  color: #a259ff;
}

.btn-small--green {
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
}

.btn-small--orange {
  background: rgba(255, 131, 44, 0.12);
  color: #ff832c;
}

.btn-small--cyan {
  background: rgba(0, 209, 255, 0.08);
  color: #00d1ff;
  border-color: rgba(0, 209, 255, 0.30);
}

.btn-small--gold {
  background: var(--accent-subtle);
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   callout: Colored info/insight/note boxes
   ───────────────────────────────────────────── */
.callout {
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-6);
}

.callout__heading-flex {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.callout--insight {
  background: var(--accent-05);
  border: 1px solid var(--accent-15);
}

.callout--blue {
  background: rgba(100, 149, 237, 0.05);
  border: 1px solid rgba(100, 149, 237, 0.12);
}

.callout--green {
  background: rgba(76, 175, 80, 0.05);
}

.callout--gold {
  background: var(--accent-05);
}

.callout--warning {
  background: rgba(255, 167, 38, 0.06);
}

.callout--muted {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.callout p {
  max-width: none;
}

.callout__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--text-muted);
}

.callout--green .callout__label {
  color: #4caf50;
}

.callout--blue .callout__label {
  color: #6495ed;
}

.callout--insight .callout__label,
.callout--gold .callout__label {
  color: var(--accent);
}

.callout__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────
   attr-table: Attribution / metrics with source pills
   ───────────────────────────────────────────── */
.attr-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.attr-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.attr-row:last-child {
  border-bottom: none;
}

.attr-row__info {
  flex: 1;
  min-width: 0;
}

.attr-row__title {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.5;
}

.attr-row__desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.attr-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-l);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: var(--space-1);
}

.attr-pill--company {
  background: rgba(255, 167, 38, 0.12);
  color: #ffa726;
}

.attr-pill--output {
  background: rgba(100, 149, 237, 0.12);
  color: #6495ed;
}

.attr-pill--impact {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.attr-pill--verify {
  background: rgba(100, 149, 237, 0.08);
  color: rgba(100, 149, 237, 0.8);
  text-decoration: none;
  transition: opacity var(--duration-fast);
}

.attr-pill--verify:hover {
  opacity: 0.75;
}

/* ─────────────────────────────────────────────
   compare-grid: Before / After two-panel comparison
   ───────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.compare-grid__panel {
  padding: var(--space-6);
}

.compare-grid__before {
  background: rgba(255, 107, 107, 0.05);
}

.compare-grid__after {
  background: var(--color-teal-04);
}

.compare-grid__heading {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.compare-grid__before .compare-grid__heading {
  color: rgba(255, 107, 107, 0.7);
}

.compare-grid__after .compare-grid__heading {
  color: var(--color-teal-70);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.compare-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.compare-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1.4;
}

.compare-item__title {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 2px;
}

.compare-item__desc {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────────────────────
   decision-stack / decision-card: Key decisions in 2-col layout
   ───────────────────────────────────────────── */
.decision-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.decision-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.decision-card__number {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.decision-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.decision-card__body {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin: 0;
}

.decision-card__solution {
  padding-left: var(--space-5);
  border-left: 1px solid var(--border);
}

.decision-card__solution-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: var(--space-2);
}

.decision-card__solution-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ─────────────────────────────────────────────
   platform-grid / platform-card: Ecosystem / platform cards
   ───────────────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-7) 0;
}

.platform-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  transition: background var(--duration-base) var(--ease);
}

.platform-card:hover {
  background: rgba(0, 0, 0, 0.4);
}

.platform-card--highlight {
  border: 2px solid rgba(79, 237, 248, 0.3);
}

.platform-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-s);
  margin-bottom: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.platform-card__tag--gold {
  background: var(--accent-10);
  color: var(--accent);
}

.platform-card__tag--blue {
  background: rgba(100, 149, 237, 0.10);
  color: #6495ed;
}

.platform-card__tag--purple {
  background: rgba(147, 112, 219, 0.10);
  color: #9370db;
}

.platform-card__tag--green {
  background: rgba(76, 175, 80, 0.10);
  color: #4caf50;
}

.platform-card__tag--red {
  background: rgba(255, 107, 107, 0.10);
  color: #ff6b6b;
}

.platform-card__tag--cyan {
  background: rgba(0, 209, 255, 0.08);
  color: #00d1ff;
}

.platform-card__tag--orange {
  background: rgba(255, 167, 38, 0.10);
  color: #ffa726;
}

.platform-card__title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  line-height: 1.35;
}

.platform-card__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.platform-card__meta {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   info-grid: 2–3 column feature/insight cards
   ───────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.info-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.info-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.info-card__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* 2-col utility (explicit 2 columns at all sizes >= 600px) */
.info-grid--2 {
  grid-template-columns: 1fr 1fr;
}

/* ─────────────────────────────────────────────
   img-caption: Caption below project images
   ───────────────────────────────────────────── */
.img-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: var(--space-3);
}

/* ─────────────────────────────────────────────
   gallery-grid: Image galleries
   ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.gallery-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.gallery-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gallery-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-m);
  object-fit: cover;
}

/* ─────────────────────────────────────────────
   concept-banner: Concept work disclaimer banner
   ───────────────────────────────────────────── */
.concept-banner {
  background: var(--accent-06);
  border: 1px solid var(--accent-25);
  border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-7);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.concept-banner strong {
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   flow-section: Sequential design flow sections
   ───────────────────────────────────────────── */
.flow-section {
  margin-bottom: var(--space-11);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.flow-section:first-of-type {
  border-top: none;
}

.flow-number {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

/* ─────────────────────────────────────────────
   annotation-grid / annotation-card
   ───────────────────────────────────────────── */
.annotation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.annotation-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-5);
}

.annotation-card__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.annotation-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.annotation-card__body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────────
   xanthos-label / xanthos-label--green
   (private banking project-specific labels — moved from inline style)
   ───────────────────────────────────────────── */
.xanthos-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-25);
  background: var(--accent-subtle);
  border-radius: var(--radius-s);
  padding: 0.35rem 0.9rem;
  margin-bottom: var(--space-3);
}

.xanthos-label--green {
  color: #6bbf84;
  border-color: rgba(74, 124, 89, 0.30);
  background: rgba(74, 124, 89, 0.10);
}

/* ─────────────────────────────────────────────
   risk-matrix: PawsRoam institutional risk table
   ───────────────────────────────────────────── */
.risk-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.risk-matrix th {
  background: rgba(255, 255, 255, 0.08);
  padding: var(--space-4);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.risk-matrix td {
  padding: var(--space-3) var(--space-4);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.risk-matrix tr:last-child td {
  border-bottom: none;
}

/* ─────────────────────────────────────────────
   ACYVerse — Project-specific BEM components
   ───────────────────────────────────────────── */

/* Badge: purple concept variant */
.project-badge--acyverse {
  color: #b8a9e8;
  background: rgba(74, 45, 193, 0.1);
}

/* Institutional context block below subtitle */
.acyverse-context {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* Callout: purple tint (used for reflection/insight) */
.callout--purple {
  background: rgba(140, 120, 220, 0.05);
}

/* Info-card title color variants */
.info-card__title--orange {
  color: #ffa500;
}

.info-card__title--purple {
  color: #8c78dc;
}

.info-card__title--green {
  color: #50c878;
}

/* Phase card: stacked card with subtle bg */
.pd-phase {
  background: var(--bg-elevated);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-5);
}

.pd-phase:last-child {
  margin-bottom: 0;
}

.pd-phase__title {
  margin-top: 0;
}

.pd-phase__body {
  font-size: 0.95rem;
}

.pd-phase__note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0;
}

/* Evolution grid: V1 → V2 comparison */
.evo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
}

.evo-grid__panel {
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.evo-grid__panel--before {
  background: rgba(255, 107, 107, 0.08);
}

.evo-grid__panel--after {
  background: rgba(140, 120, 220, 0.08);
}

.evo-grid__panel-title {
  margin-top: 0;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.evo-grid__panel-title--purple {
  color: #8c78dc;
}

.evo-grid__panel-list {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.evo-grid__arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Compliance table header color variants */
.card-table__th--green {
  text-align: center;
  color: #50c878;
}

.card-table__th--center {
  text-align: center;
}

.card-table__td--center {
  text-align: center;
}

.card-table__td--green {
  text-align: center;
  color: #50c878;
}

/* Sidebar status box */
.sidebar-status {
  background: rgba(140, 120, 220, 0.1);
  padding: var(--space-4);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-4);
}

.sidebar-status__text {
  font-size: 0.85rem;
  margin: 0;
  color: #b8a9e8;
}

/* Sidebar influence list */
.sidebar-influence-list {
  font-size: 0.85rem;
  line-height: 1.8;
}

/* B2C Banking application section */
.banking-section {
  max-width: 960px;
  margin: 0 auto;
}

.banking-card {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.banking-card__title {
  margin: 0 0 var(--space-3) 0;
  font-size: 0.95rem;
}

.banking-card__body {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.banking-intro {
  margin-bottom: var(--space-5);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

.banking-principle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: var(--space-4);
  background: var(--accent-08);
  border-radius: var(--radius-m);
  opacity: 0.9;
}

/* Responsive: evolution grid stacks on mobile */
@media (max-width: 599px) {
  .evo-grid {
    grid-template-columns: 1fr;
  }

  .evo-grid__arrow {
    text-align: center;
    transform: rotate(90deg);
  }
}

/* ─────────────────────────────────────────────
   card-table: Generic comparison/data tables (Finlogix etc.)
   ───────────────────────────────────────────── */
.card-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.card-table thead tr {
  background: rgba(255, 255, 255, 0.05);
}

.card-table th {
  text-align: left;
  padding: var(--space-4);
  border-bottom: 2px solid var(--border-hover);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-table td {
  padding: var(--space-4);
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ─────────────────────────────────────────────
   Christie's — Light theme
   Usage: <body class="page-project page-project--light">
   ───────────────────────────────────────────── */
:root {
  --cr-red: #9E2335;
  --cr-red-bg: rgba(158, 35, 53, 0.06);
  --cr-gold: #C6A84B;
  --cr-gold-bg: rgba(198, 168, 75, 0.07);
  --cr-black: #111009;
  --cr-mid: #4a4030;
  --cr-dim: #8a7a68;
  --cr-bg: #FAFAF8;
  --cr-surface: #FFFFFF;
  --cr-border: rgba(0, 0, 0, 0.08);
}

.page-project--light {
  background: var(--cr-bg);
  color: var(--cr-black);
}

.page-project--light .project-nav {
  background: rgba(250, 250, 248, 0.97);
  border-bottom: 1px solid var(--cr-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-project--light .project-nav__logo,
.page-project--light .project-nav__back {
  color: var(--cr-black);
}

.page-project--light .project-nav__back:hover {
  color: var(--cr-red);
}

.page-project--light .project-detail-header {
  background: linear-gradient(175deg, #f8f0f2 0%, var(--cr-bg) 55%);
  border-bottom: 1px solid rgba(158, 35, 53, 0.10);
}

.page-project--light .project-detail-title {
  color: var(--cr-black);
  font-weight: 200;
}

.page-project--light .project-detail-subtitle {
  color: var(--cr-mid);
}

.page-project--light .project-detail-content {
  background: var(--cr-bg);
}

.page-project--light h1,
.page-project--light h2,
.page-project--light h3,
.page-project--light h4 {
  color: var(--cr-black);
}

.page-project--light p {
  color: var(--cr-mid);
}

.page-project--light li {
  color: var(--cr-mid);
}

.page-project--light strong {
  color: var(--cr-black);
}

/* Christie's token overrides in light context */
.page-project--light .pd-label--gold,
.page-project--light .project-badge--gold {
  color: var(--cr-gold);
  background: var(--cr-gold-bg);
  border-color: rgba(198, 168, 75, 0.3);
}

.page-project--light .pd-label--red {
  color: var(--cr-red);
  background: var(--cr-red-bg);
}

.page-project--light .callout {
  background: rgba(0, 0, 0, 0.03);
}

.page-project--light .callout--gold,
.page-project--light .callout--insight {
  background: var(--cr-gold-bg);
  border-color: var(--cr-gold);
}

.page-project--light .platform-card {
  background: rgba(0, 0, 0, 0.04);
}

.page-project--light .platform-card:hover {
  background: rgba(0, 0, 0, 0.07);
}

.page-project--light .decision-card {
  background: rgba(0, 0, 0, 0.04);
}

.page-project--light .attr-row {
  border-color: var(--cr-border);
}

.page-project--light .compare-grid__before {
  background: rgba(158, 35, 53, 0.04);
}

.page-project--light .compare-grid__after {
  background: rgba(198, 168, 75, 0.05);
}

.page-project--light .btn-small {
  background: rgba(0, 0, 0, 0.06);
  color: var(--cr-black);
  border: 1px solid var(--cr-border);
}

.page-project--light .btn-small:hover {
  background: rgba(158, 35, 53, 0.08);
  color: var(--cr-red);
}

.page-project--light a {
  color: var(--cr-mid);
}

.page-project--light a:hover {
  color: var(--cr-red);
}

/* ─────────────────────────────────────────────
   project-detail-main: remove max-width when in grid context
   ───────────────────────────────────────────── */
.project-detail-grid .project-detail-main {
  max-width: none;
}

/* ─────────────────────────────────────────────
   Image sizing defaults for project pages
   ───────────────────────────────────────────── */
.project-detail-main img,
.project-detail-sidebar img {
  max-width: 100%;
  height: auto;
  display: block;
}

.project-detail-hero-image {
  max-width: 100%;
  overflow: hidden;
}

.project-detail-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-m);
}

/* ─────────────────────────────────────────────
   RWD — Mobile  375–768px
   ───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Project header */
  .project-detail-header {
    padding: clamp(72px, 12vh, 100px) 0 var(--space-7);
  }

  .project-detail-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .project-detail-subtitle {
    font-size: 0.95rem;
  }

  .project-detail-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* Compare grid: stack on mobile */
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid__panel {
    padding: var(--space-5);
  }

  /* Decision card: stack on mobile */
  .decision-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .decision-card__solution {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: var(--space-4);
  }

  /* Gallery grids: collapse to single column */
  .gallery-grid--2,
  .gallery-grid--3 {
    grid-template-columns: 1fr;
  }

  /* info-grid: auto already handles it, but explicit for --2 */
  .info-grid--2 {
    grid-template-columns: 1fr;
  }

  /* Platform grid: single column */
  .platform-grid {
    grid-template-columns: 1fr;
  }

  /* Callout: reduce padding */
  .callout {
    padding: var(--space-4);
  }

  /* Attr row: stack on very small */
  .attr-row {
    flex-direction: column;
    gap: var(--space-2);
  }

  .attr-pill {
    align-self: flex-start;
  }

  /* btn-small: full width stacking in links area */
  .project-detail-links .btn-small,
  .project-detail-links .btn {
    width: 100%;
    justify-content: center;
  }

  /* Badge row: wrap naturally */
  .badge-row {
    gap: var(--space-1);
  }

  /* Font Awesome icon buttons: stack vertically */
  .btn-small.btn-small--lg {
    padding: var(--space-3) var(--space-5);
    font-size: 0.88rem;
  }

  /* Annotation grid */
  .annotation-grid {
    grid-template-columns: 1fr;
  }

  /* Flow section spacing */
  .flow-section {
    margin-bottom: var(--space-9);
    padding-top: var(--space-6);
  }

  /* risk-matrix: horizontal scroll on mobile */
  .risk-matrix-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* responsive-table-wrapper already exists */
  .card-table th,
  .card-table td {
    padding: var(--space-3);
    font-size: 0.82rem;
  }
}

/* ─────────────────────────────────────────────
   RWD — Tablet  769–1280px
   ───────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1280px) {
  .project-detail-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

  /* Decision card: 2-col still works */
  .decision-card {
    gap: var(--space-5);
  }

  /* Gallery: --3 becomes 2 col on tablet */
  .gallery-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  /* Platform grid: min 2 columns */
  .platform-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  /* project-detail-grid: no sidebar yet */
  .project-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   deep-dive-link: Sidebar navigation links
   ───────────────────────────────────────────── */
.deep-dive-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.deep-dive-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease);
}

.deep-dive-link--blue {
  background: rgba(100, 149, 237, 0.08);
}

.deep-dive-link--gold {
  background: rgba(212, 175, 55, 0.08);
}

.deep-dive-link--green {
  background: rgba(76, 175, 80, 0.08);
}

.deep-dive-link--cyan {
  background: rgba(0, 209, 255, 0.06);
}

.deep-dive-link--purple {
  background: rgba(147, 112, 219, 0.08);
}

.deep-dive-link--orange {
  background: rgba(255, 131, 44, 0.08);
}

.deep-dive-link--blue:hover {
  background: rgba(100, 149, 237, 0.16);
}

.deep-dive-link--gold:hover {
  background: rgba(212, 175, 55, 0.16);
}

.deep-dive-link--green:hover {
  background: rgba(76, 175, 80, 0.16);
}

.deep-dive-link--cyan:hover {
  background: rgba(0, 209, 255, 0.12);
}

.deep-dive-link--purple:hover {
  background: rgba(147, 112, 219, 0.16);
}

.deep-dive-link--orange:hover {
  background: rgba(255, 131, 44, 0.16);
}

.deep-dive-link__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.deep-dive-link__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.deep-dive-link__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.deep-dive-link__arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   verify-section: Data verification badge section
   ───────────────────────────────────────────── */
.verify-section {
  background: rgba(100, 149, 237, 0.03);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  margin: var(--space-7) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.verify-section__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(100, 149, 237, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.verify-section__body {
  flex: 1;
  min-width: 0;
}

.verify-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.verify-section__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-4);
}

.verify-section__links .btn-small {
  transition: all var(--duration-fast) var(--ease);
}

/* ─────────────────────────────────────────────
   details / summary component
   ───────────────────────────────────────────── */
details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style-type: none;
}

.details-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  user-select: none;
}

.details-body {
  padding: 0 var(--space-5) var(--space-5);
}

.details-arrow {
  font-size: 0.8rem;
  transition: transform var(--duration-base) var(--ease);
  flex-shrink: 0;
}

details[open] .details-arrow {
  transform: rotate(180deg);
}

/* ─────────────────────────────────────────────
   outcome-row: Metrics/outcomes displayed as labeled rows
   ───────────────────────────────────────────── */
.outcome-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.outcome-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-5);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.6;
}

.outcome-row:last-child {
  border-bottom: none;
}

.outcome-row__label {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
}

.outcome-row__label--blue {
  color: #00d1ff;
}

.outcome-row__label--green {
  color: #4caf50;
}

.outcome-row__value {
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────
   cross-ref: Code/lessons cross-reference blocks
   ───────────────────────────────────────────── */
.cross-ref {
  border-radius: var(--radius-l);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.cross-ref--purple {
  background: rgba(167, 139, 250, 0.08);
}

.cross-ref--red {
  background: rgba(255, 107, 107, 0.08);
}

.cross-ref__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.cross-ref--purple .cross-ref__title {
  color: #a78bfa;
}

.cross-ref__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0;
}

.cross-ref__link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-m);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease);
}

.cross-ref--purple .cross-ref__link {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.cross-ref--red .cross-ref__link {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.cross-ref__link:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────────
   metric-grid-4: 4-up metric cards (impact metrics)
   ───────────────────────────────────────────── */
.metric-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.metric-tile {
  padding: var(--space-5);
  border-radius: var(--radius-l);
  text-align: center;
}

.metric-tile--green {
  background: rgba(76, 175, 80, 0.08);
}

.metric-tile--gold {
  background: var(--accent-08);
}

.metric-tile--blue {
  background: rgba(100, 149, 237, 0.08);
}

.metric-tile--purple {
  background: rgba(156, 39, 176, 0.08);
}

.metric-tile__value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.metric-tile--green .metric-tile__value {
  color: #4caf50;
}

.metric-tile--blue .metric-tile__value {
  color: #6495ed;
}

.metric-tile--purple .metric-tile__value {
  color: #9c27b0;
}

.metric-tile__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.metric-tile__note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   process-artifact: Image + caption card
   ───────────────────────────────────────────── */
.process-artifact {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  margin: var(--space-6) 0;
}

.process-artifact img {
  width: 100%;
  height: auto;
  display: block;
}

.process-artifact__caption {
  padding: var(--space-5) var(--space-6);
  background: rgba(0, 0, 0, 0.45);
}

.process-artifact__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.process-artifact__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.process-artifact__sublabel {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   what-i-didnt-do: Attribution footer section
   ───────────────────────────────────────────── */
.attribution-section {
  padding: var(--space-10) 0 var(--space-9);
}

.attribution-section h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
}

/* ─────────────────────────────────────────────
   sidebar-nav-list: Clean sidebar metadata list
   ───────────────────────────────────────────── */
.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.sidebar-nav-list li {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.sidebar-nav-list li strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sidebar-nav-list li span {
  display: block;
  overflow-wrap: break-word;
  line-height: 1.6;
}

.sidebar-nav-list li i {
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   iteration-grid: 2×2 or 2×n iteration images
   ───────────────────────────────────────────── */
.iteration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.iteration-item {
  border-radius: var(--radius-m);
  overflow: hidden;
}

.iteration-item__label {
  padding: var(--space-2) var(--space-4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.iteration-item__label--orange {
  background: rgba(255, 165, 0, 0.10);
  color: #ffa500;
}

.iteration-item__label--green {
  background: rgba(76, 175, 80, 0.10);
  color: #4caf50;
}

.iteration-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────────
   RWD — Desktop  1280px+
   ───────────────────────────────────────────── */
@media (min-width: 1280px) {

  /* Sidebar layout — minmax(0, 1fr) prevents child overflow */
  .project-detail-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  /* Gallery --3 gets full 3 columns */
  .gallery-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Platform grid: up to 3 cols */
  .platform-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /* info-grid: max 3 */
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* ─────────────────────────────────────────────
   25. TRADEX PAGE — Shared interactive components
   ───────────────────────────────────────────── */

/* Image caption under gallery images */
.gallery-caption {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: var(--space-3);
  font-style: italic;
}

/* Context paragraph below project title (smaller, muted) */
.project-detail-context {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: var(--space-5);
}

.project-detail-context a {
  color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 2px;
}

.project-detail-context a:hover {
  color: var(--text-primary);
}

/* ── Pulse animation + live badge ── */
@keyframes pulse-live {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.badge-live-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(76, 175, 146, 0.1);
  border-radius: var(--radius-s);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: #4caf92;
  text-transform: uppercase;
}

.badge-live__dot {
  width: 6px;
  height: 6px;
  background: #4caf92;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-live 1.5s ease-in-out infinite;
}

.badge-live--blue {
  background: rgba(100, 149, 237, 0.1);
  color: #6495ed;
}

.badge-live--blue .badge-live__dot {
  background: #6495ed;
}

.badge-live-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Dashboard wrapper ── */
.dashboard-wrapper {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #030308;
  margin-bottom: 0.75rem;
}

.dashboard-caption {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.38;
  margin-top: 0.6rem;
  font-style: italic;
  margin-bottom: var(--space-7);
}

/* Hero dashboard layout (replaces inline styles on static elements) */
#hero-dashboard * {
  box-sizing: border-box;
}

.dashboard-statusbar {
  background: rgba(100, 149, 237, 0.07);
  padding: 0.45rem var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dashboard-statusbar__tickers {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-statusbar__meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(270px, 340px) 1fr;
  height: 390px;
}

.dashboard-ob {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-ob__header {
  padding: 0.38rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.dashboard-ob__cols {
  display: grid;
  grid-template-columns: 1fr 66px 1fr;
  padding: 0.22rem 0.5rem;
  flex-shrink: 0;
}

.dashboard-ob__bids {
  display: flex;
  justify-content: space-between;
  padding-right: 0.4rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dashboard-ob__asks {
  display: flex;
  justify-content: space-between;
  padding-left: 0.4rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dashboard-ob__spread-hdr {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  text-transform: uppercase;
}

.dashboard-ob__footer {
  padding: 0.32rem 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.dashboard-right {
  display: grid;
  grid-template-rows: 1fr 145px;
  overflow: hidden;
}

.dashboard-chart {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-chart__header {
  padding: 0.38rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.dashboard-chart__ohlc {
  display: flex;
  gap: 0.9rem;
  font-size: 0.72rem;
}

.dashboard-positions {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-positions__header {
  padding: 0.38rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.dashboard-microstructure {
  padding: 0.4rem var(--space-5);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-microstructure__label {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-microstructure__stat {
  font-size: 0.65rem;
}

.dashboard-microstructure__keys {
  margin-left: auto;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.42);
}

.dashboard-sor {
  padding: 0.38rem var(--space-5);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-sor__label {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Callout extensions ── */
.callout--red {
  background: rgba(232, 93, 93, 0.04);
  border: 1px solid rgba(232, 93, 93, 0.10);
}

.callout--orange {
  background: rgba(255, 107, 0, 0.04);
  border: 1px solid rgba(255, 107, 0, 0.10);
}

.callout--flex {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.callout__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.callout__footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

/* ── Comparison two-column (Rejected vs Chosen) ── */
.compare-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.compare-two__label--rejected {
  font-size: 0.78rem;
  color: rgba(255, 107, 107, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.compare-two__label--chosen {
  font-size: 0.78rem;
  color: rgba(76, 175, 80, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

/* ── Comparison boxes (bid/ask demo) ── */
.comparison-box {
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.comparison-box--bid {
  background: rgba(255, 107, 107, 0.05);
}

.comparison-box--ask {
  background: rgba(76, 175, 80, 0.05);
}

/* ── Microstructure grid (exchange infra) ── */
.microstructure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: var(--space-7);
}

.microstructure-tile {
  background: #050508;
  padding: var(--space-5);
}

.microstructure-tile__label {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.microstructure-tile__value {
  font-size: 1.35rem;
  font-weight: 700;
}

.microstructure-tile__value--red {
  color: var(--danger);
}

.microstructure-tile__value--green {
  color: #4caf92;
}

.microstructure-tile__note {
  font-size: 0.67rem;
  margin-top: 0.25rem;
}

.microstructure-tile__note--orange {
  color: rgba(255, 152, 0, 0.65);
}

.microstructure-tile__note--red {
  color: rgba(255, 82, 82, 0.65);
}

.microstructure-tile__note--green {
  color: rgba(76, 175, 146, 0.65);
}

.microstructure-tile__note--blue {
  color: rgba(100, 149, 237, 0.65);
}

/* ── Terminal panel (exchange infra sections) ── */
.terminal-panel {
  background: #030308;
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: var(--space-7);
}

.terminal-panel__header {
  padding: 0.55rem var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-panel__header--blue {
  background: rgba(100, 149, 237, 0.06);
}

/* ── TradeX prototype launch card ── */
.tx-launch-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-6);
  padding: 1.75rem 2.25rem;
  border: 1px solid rgba(100, 149, 237, 0.2);
  border-radius: var(--radius-l);
  background: rgba(100, 149, 237, 0.03);
  text-decoration: none;
  transition: all var(--duration-base);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.tx-launch-card:hover {
  border-color: rgba(100, 149, 237, 0.45);
  background: rgba(100, 149, 237, 0.07);
}

.tx-launch-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tx-launch-card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.tx-screen-chip {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(100, 149, 237, 0.18);
  border-radius: 20px;
  color: rgba(100, 149, 237, 0.65);
  margin: 0.2rem 0.2rem 0.2rem 0;
  white-space: nowrap;
}

.tx-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: rgba(100, 149, 237, 0.1);
  border: 1px solid rgba(100, 149, 237, 0.3);
  border-radius: var(--radius-m);
  color: #6495ed;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--duration-fast);
}

.tx-open-btn:hover {
  background: rgba(100, 149, 237, 0.2);
}

/* ── Concept evolution link (AI-native hedge fund) ── */
.concept-link--orange {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 107, 0, 0.05);
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: background var(--duration-base);
}

.concept-link--orange:hover {
  background: rgba(255, 107, 0, 0.1);
}

.concept-link__title {
  color: #ff6b00;
  font-weight: 600;
  font-size: 0.85rem;
}

.concept-link__desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ── TradeX Institutional page — BEM utility classes ── */

/* Dashboard statusbar ticker text */
.dashboard-ticker {
  font-size: 0.71rem;
  color: #fff;
}

.dashboard-ticker__change--up {
  color: #4caf92;
  font-size: 0.64rem;
}

.dashboard-ticker__change--down {
  color: #ff5252;
  font-size: 0.64rem;
}

/* Dashboard statusbar meta */
.dashboard-meta__exchange {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.dashboard-meta__indicator {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.3);
}

.dashboard-meta__clock {
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Dashboard panel header labels */
.dashboard-panel-label {
  font-size: 0.61rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dashboard-panel-ts {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.5);
}

/* OB body & positions body: flex fill with hidden overflow */
.dashboard-flex-fill {
  flex: 1;
  overflow: hidden;
}

/* OB footer stat labels */
.dashboard-ob__stat-label {
  color: rgba(255, 255, 255, 0.6);
}

.dashboard-ob__stat-label--right {
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
}

.dashboard-ob__stat-value--up {
  color: #4caf92;
  font-weight: 700;
}

.dashboard-ob__stat-value--down {
  color: #ff5252;
  font-weight: 700;
}

/* Chart OHLC labels */
.dashboard-chart__ohlc-label {
  color: rgba(255, 255, 255, 0.6);
}

.dashboard-chart__ohlc-val {
  color: #fff;
  margin-left: 2px;
}

.dashboard-chart__ohlc-val--up {
  color: #4caf92;
  margin-left: 2px;
}

.dashboard-chart__ohlc-val--down {
  color: #ff5252;
  margin-left: 2px;
}

/* Chart SVG */
.dashboard-chart__svg {
  flex: 1;
  width: 100%;
  display: block;
}

/* Positions total P&L */
.dashboard-positions__total {
  font-size: 0.65rem;
  color: #4caf92;
  font-weight: 700;
}

/* SOR bars container */
.dashboard-sor__bars {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

/* Shared accent value styles for microstructure */
.dashboard-val--green-bold {
  color: #4caf92;
  font-weight: 700;
}

.dashboard-val--red-bold {
  color: #ff5252;
  font-weight: 700;
}

/* ── Content section utility classes for TradeX ── */

/* Spacing helpers — gallery/image vertical margins */
.u-margin-v-5 {
  margin: var(--space-5) 0;
}

.u-margin-v-6 {
  margin: var(--space-6) 0;
}

.u-margin-v-7 {
  margin: var(--space-7) 0;
}

/* Callout box modifiers for padding/radius overrides */
.callout--padded-lg {
  border-radius: var(--radius-l);
  padding: var(--space-7);
}

.callout--padded-md {
  border-radius: var(--radius-l);
  padding: var(--space-6);
}

/* Headings with flex icon alignment */
.heading--flex {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.heading--flex-sm {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Heading margin-top:0 reset */
.u-mt-0 {
  margin-top: 0;
}

/* Heading with space-3 top margin */
.u-mt-3 {
  margin-top: var(--space-3);
}

/* margin-top helper for space-4 */
.u-mt-4 {
  margin-top: var(--space-4);
}

/* margin-bottom helpers */
.u-mb-4 {
  margin-bottom: var(--space-4);
}

.u-mb-5 {
  margin-bottom: var(--space-5);
}

.u-mb-6 {
  margin-bottom: var(--space-6);
}

/* margin-top helper for space-6 */
.u-mt-6 {
  margin-top: var(--space-6);
}

/* Strong block display with bottom margin */
.callout__strong-label {
  display: block;
  margin-bottom: 0.8rem;
}

/* Colored callout headings */
.callout__heading--orange {
  color: #ff6b00;
}

.callout__heading--green {
  color: #4CAF50;
}

.callout__heading--accent {
  color: var(--accent);
}

/* Comparison table header row */
.card-table__header--blue {
  background: rgba(100, 149, 237, 0.1);
  border-bottom: 2px solid rgba(100, 149, 237, 0.3);
}

/* Table cell text-align-right */
.u-text-right {
  text-align: right;
}

/* Inline badge chip colors */
.ob-chip--bid-light {
  background: rgba(76, 175, 80, 0.3);
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
}

.ob-chip--bid-dark {
  background: rgba(76, 175, 80, 0.6);
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
}

.ob-chip--ask-light {
  background: rgba(255, 107, 107, 0.3);
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
}

.ob-chip--ask-dark {
  background: rgba(255, 107, 107, 0.6);
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
}

/* Status badge chip (buy limit etc) */
.ob-chip--buy {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

/* Card table background styling */
.card-table--terminal {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-m);
  overflow: hidden;
}

/* Ask column title color override */
.text-green {
  color: #4CAF50;
}

/* Project detail subtitle description size */
.project-detail-subtitle--sm {
  font-size: 0.88rem;
  margin-bottom: var(--space-6);
}

/* Callout nested red without left border */
.callout--nested-red {
  border-left: none;
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

/* Compliance divider section */
.callout__divider--red {
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  border-top: 2px solid rgba(255, 107, 107, 0.15);
}

/* Strong highlight with inline accent */
.text-accent-strong {
  color: var(--accent);
}

/* Info grid spacing helpers */
.info-grid--mt-5 {
  margin-top: var(--space-5);
}

/* Callout strong styled block labels */
.callout__feature-label--gold {
  color: rgba(230, 180, 80, 0.9);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.8rem;
}

.callout__feature-label--blue {
  color: rgba(180, 200, 240, 0.9);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.8rem;
}

/* Principal design perspective heading */
.callout__subheading {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

/* Heading5 margin-bottom helper */
.u-mb-2 {
  margin-bottom: 0.5rem;
}

/* Bridge callout link color orange */
.link--orange {
  color: #ff6b00;
  text-decoration: none;
}

/* Exchange infrastructure section headings */
.tx-section-heading {
  margin: var(--space-6) 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tx-section-heading--first {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Exchange infra descriptive text */
.tx-section-desc {
  font-size: 0.83rem;
  margin: 0 0 var(--space-4);
}

/* Terminal panel header label */
.terminal-panel__label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.terminal-panel__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.terminal-panel__timestamp {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Badge live small padding variant */
.badge-live--compact {
  padding: 0.2rem 0.5rem;
}

/* Terminal OB column headers grid */
.terminal-ob__cols {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  padding: 0.3rem var(--space-5);
}

.terminal-ob__col-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.terminal-ob__col-labels--left {
  padding-right: var(--space-5);
}

.terminal-ob__col-labels--right {
  padding-left: var(--space-5);
}

.terminal-ob__spread-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Terminal OB footer */
.terminal-ob__footer {
  padding: 0.45rem var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 0.67rem;
}

.terminal-ob__footer-stat {
  color: rgba(255, 255, 255, 0.3);
}

.terminal-ob__footer-stat--center {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
}

.terminal-ob__footer-stat--right {
  text-align: right;
  color: rgba(255, 255, 255, 0.3);
}

/* SOR table header grid */
.terminal-sor__header {
  display: grid;
  grid-template-columns: 110px 70px 70px 70px 1fr;
  gap: 0;
  padding: 0.4rem var(--space-5);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* TCA table header grid */
.terminal-tca__header {
  display: grid;
  grid-template-columns: 75px 85px 85px 75px 85px 1fr;
  padding: 0.4rem var(--space-5);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Settlement grid container */
.terminal-settlement {
  display: grid;
  gap: 0.65rem;
  margin-bottom: var(--space-5);
}

/* Callout why-this heading */
.callout__why-heading {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Heading inside exchange section with no margin */
.tx-heading--flush {
  margin: 0 0 0.4rem;
}

.tx-heading--primary {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

/* Sidebar deep-dive link text colors */
.text-cyan {
  color: #00d1ff;
}

.text-purple {
  color: #b8a0e0;
}

.text-orange {
  color: #ff832c;
}

/* Concept link emoji */
.concept-link__emoji {
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

/* Heading5 with flex + gap + margin-bottom */
.heading5--flex-mb {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
}

/* ── RWD extensions for Section 25 ── */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .dashboard-right {
    grid-template-rows: auto auto;
  }

  #hero-chart-svg {
    height: 140px;
  }

  .compare-two {
    grid-template-columns: 1fr;
  }

  .microstructure-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tx-launch-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: var(--space-4);
  }

  .tx-open-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   26. PRIVATE BANKING PAGE — Xanthos (light-theme B2B2C portal)
   ═══════════════════════════════════════════════════════════════ */

/* ── Xanthos palette tokens ── */
:root {
  --xanthos-gold: #C9A959;
  --xanthos-green: #4A7C59;
  --xanthos-cream: var(--accent-subtle);
  --xanthos-green-bg: rgba(74, 124, 89, 0.10);
  --xanthos-border: var(--accent-25);
  --xanthos-green-border: rgba(74, 124, 89, 0.30);
}

/* ── Salt DS color tokens (JPMorgan-inspired, light-theme) ── */
:root {
  --salt-brown-100: rgb(243, 238, 232);
  --salt-brown-200: rgb(237, 229, 216);
  --salt-brown-300: rgb(215, 186, 157);
  --salt-brown-400: rgb(184, 138, 103);
  --salt-brown-500: rgb(153, 108, 72);
  --salt-brown-600: rgb(125, 83, 47);
  --salt-brown-700: rgb(103, 63, 27);
  --salt-brown-800: rgb(66, 36, 7);
  --salt-brown-900: rgb(46, 25, 5);
  --salt-teal-100: rgb(219, 245, 247);
  --salt-teal-200: rgb(175, 224, 237);
  --salt-teal-300: rgb(131, 192, 214);
  --salt-teal-700: rgb(30, 90, 120);
  --salt-bg: var(--salt-brown-100);
  --salt-surface: #FFFFFF;
  --salt-surface-2: var(--salt-brown-200);
  --salt-border: var(--salt-brown-300);
  --salt-text: var(--salt-brown-900);
  --salt-text-2: var(--salt-brown-700);
  --salt-text-3: var(--salt-brown-500);
  --salt-accent: var(--salt-teal-300);
  --salt-accent-bg: var(--salt-teal-100);
  --salt-accent-bd: var(--salt-teal-200);
  --salt-accent-tx: var(--salt-teal-700);
}

/* ── Concept banner ── */
.concept-banner {
  background: var(--accent-06);
  border: 1px solid var(--xanthos-border);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.concept-banner strong {
  color: var(--xanthos-gold);
}

/* ── Screen caption ── */
.screen-caption {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.45;
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── Xanthos screen image ── */
.xanthos-screen {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 10px;
}

/* ── Hero stats bar ── */
.pb-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: var(--space-6);
  max-width: 760px;
}

.pb-stat-item {
  padding: 1.25rem 1.5rem;
}

.pb-stat-val {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--xanthos-gold);
  line-height: 1;
}

.pb-stat-val--sm {
  font-size: 1.1rem;
  line-height: 1.3;
}

.pb-stat-lbl {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.3rem;
  letter-spacing: 0.5px;
}

/* ── Hero image wrapper ── */
.pb-hero-img {
  margin-top: var(--space-4);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.pb-hero-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Section wrapper ── */
.pb-section {
  margin-bottom: var(--space-10);
  padding-top: var(--space-9);
}

/* ── Narrative heading + lead paragraph ── */
.pb-h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
}

.pb-lead {
  max-width: 740px;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: var(--space-5);
}

/* ── Research methodology table ── */
.pb-table-header {
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-methodology-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 560px;
}

.research-methodology-table th {
  text-align: left;
  padding: 0.5rem 1rem 0.7rem 0;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-methodology-table th+th {
  padding-left: 1rem;
}

.research-methodology-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.research-methodology-table td+td {
  padding-left: 1rem;
}

.research-methodology-table td:first-child {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.research-methodology-table td:nth-child(2) {
  color: rgba(255, 255, 255, 0.7);
}

.research-methodology-table td:nth-child(3) {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.research-methodology-table tr:last-child td {
  border-bottom: none;
}

/* ── Domain comparison table ── */
.domain-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.65;
}

.domain-compare-table thead th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.domain-compare-table thead th:first-child {
  color: rgba(255, 255, 255, 0.4);
  width: 22%;
}

.domain-compare-table thead th:last-child {
  color: var(--xanthos-gold);
  width: 39%;
}

.domain-compare-table tbody td {
  padding: 1rem 1.5rem;
}

.domain-compare-table tbody td:first-child {
  opacity: 0.55;
  font-weight: 500;
}

.domain-compare-table tbody td:nth-child(2) {
  opacity: 0.8;
}

.domain-compare-table tbody td:last-child {
  color: var(--accent-90);
}

.domain-compare-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.domain-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.domain-compare-note {
  font-size: 0.82rem;
  opacity: 0.5;
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── Persona cards ── */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.persona-card {
  border-radius: 10px;
  padding: 2rem;
}

.persona-card--client {
  background: var(--xanthos-cream);
  border: 1px solid var(--xanthos-border);
}

.persona-card--rm {
  background: var(--xanthos-green-bg);
  border: 1px solid var(--xanthos-green-border);
}

.persona-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}

.persona-card--client h4 {
  color: var(--xanthos-gold);
}

.persona-card--rm h4 {
  color: #6BBF84;
}

.persona-role {
  font-size: 0.8rem;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.persona-jtbd {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.85;
}

.persona-jtbd li {
  margin-bottom: 0.4rem;
}

.persona-insight {
  margin-top: 1.2rem;
  padding-top: 1rem;
  font-size: 0.82rem;
  opacity: 0.65;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── IA nav demo ── */
.xanthos-nav-demo {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.xanthos-nav-demo__label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  opacity: 0.4;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.xanthos-nav-demo__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.xanthos-nav-item {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.xanthos-nav-item--active {
  background: rgba(255, 255, 255, 0.08);
}

.xanthos-nav-item--rm {
  background: rgba(74, 124, 89, 0.1);
  color: #6BBF84;
}

.xanthos-nav-item--dim {
  opacity: 0.7;
}

.xanthos-nav-sep {
  opacity: 0.2;
  font-size: 0.9rem;
}

.xanthos-ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.xanthos-ia-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-m);
}

.xanthos-ia-card--gold {
  background: var(--xanthos-cream);
  border: 1px solid var(--xanthos-border);
}

.xanthos-ia-card--green {
  background: var(--xanthos-green-bg);
  border: 1px solid var(--xanthos-green-border);
}

.xanthos-ia-card--neutral {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.xanthos-ia-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.xanthos-ia-card--gold .xanthos-ia-card__title {
  color: var(--xanthos-gold);
}

.xanthos-ia-card--green .xanthos-ia-card__title {
  color: #6BBF84;
}

.xanthos-ia-card--neutral .xanthos-ia-card__title {
  color: rgba(255, 255, 255, 0.7);
}

.xanthos-ia-card p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
}

/* ── Challenge cards ── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.challenge-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.75rem;
}

.challenge-card__num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-hover);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.challenge-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem 0;
  color: var(--xanthos-gold);
}

.challenge-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0;
}

/* ── Decision list ── */
.decision-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.decision-list li {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.decision-list li:last-child {
  border-bottom: none;
}

.decision-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--xanthos-cream);
  border: 1px solid var(--xanthos-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.decision-text strong {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.3rem;
}

.decision-text p {
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.75;
  margin: 0;
}

/* ── Onboarding gallery ── */
.onboarding-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.onboarding-step {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.onboarding-step img {
  width: 100%;
  display: block;
}

.onboarding-step-label {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.onboarding-step-label strong {
  display: block;
  color: var(--xanthos-gold);
  font-size: 0.82rem;
  opacity: 1;
  margin-bottom: 0.15rem;
}

.onboarding-callout {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--xanthos-cream);
  border: 1px solid var(--xanthos-border);
  border-radius: 10px;
}

.onboarding-callout h4 {
  color: var(--xanthos-gold);
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.onboarding-callout p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0;
  opacity: 0.85;
}

/* ── Proposal pair ── */
.proposal-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.proposal-pair img {
  width: 100%;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

/* ── Bridge grid ── */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.bridge-card {
  padding: 1.5rem;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.bridge-card__from {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.45;
  margin-bottom: 0.4rem;
}

.bridge-card h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--xanthos-gold);
  margin: 0 0 0.5rem 0;
}

.bridge-card p {
  font-size: 0.84rem;
  line-height: 1.65;
  opacity: 0.75;
  margin: 0;
}

/* ── Validate list ── */
.validate-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.validate-list li {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-m);
  font-size: 0.86rem;
  line-height: 1.6;
  opacity: 0.85;
}

.validate-list li::before {
  content: '→ ';
  color: var(--xanthos-green);
  font-weight: 600;
}

/* ── Rejected directions ── */
.pb-rejected-grid {
  display: grid;
  gap: 1.25rem;
}

.pb-rejected-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
}

.pb-rejected-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pb-rejected-tag {
  color: rgba(255, 107, 107, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.pb-rejected-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.pb-rejected-body {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
}

/* ── Role alignment grid ── */
.pb-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
}

.pb-role-cell {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.5rem;
}

.pb-role-cell--alt {
  background: rgba(255, 255, 255, 0.03);
}

.pb-role-cell--header {
  background: rgba(255, 255, 255, 0.08);
}

.pb-role-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.pb-role-label--gold {
  color: var(--xanthos-gold);
}

.pb-role-label--muted {
  color: rgba(255, 255, 255, 0.3);
}

.pb-role-capability {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.2rem;
}

.pb-role-note {
  font-size: 0.8rem;
  opacity: 0.55;
}

.pb-role-evidence {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ── Xanthos prototype launch card ── */
.xp-launch-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-6);
  padding: 2rem 2.5rem;
  border: 1px solid var(--accent-25);
  border-radius: var(--radius-l);
  background: var(--accent-04);
  text-decoration: none;
  transition: all var(--duration-base);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.xp-launch-card:hover {
  border-color: var(--accent-50);
  background: var(--accent-08);
}

.xp-launch-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--xanthos-gold);
  margin-bottom: 0.3rem;
}

.xp-launch-card__meta {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 0.9rem;
}

.xp-screens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.xp-screen-chip {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent-hover);
  border-radius: 20px;
  color: var(--accent-70);
  background: var(--accent-04);
  white-space: nowrap;
}

.xp-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-35);
  border-radius: var(--radius-m);
  color: var(--xanthos-gold);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--duration-fast);
}

.xp-launch-btn:hover {
  background: var(--accent-hover);
}

/* ── Interactive prototype panel wrapper ── */
.proto-panel {
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid #d4dbe6;
  background: #f5f7fa;
}

/* ══════════════════════════════════════════════════════════════
   XANTHOS LIGHT THEME — Salt DS color system
   ══════════════════════════════════════════════════════════════ */
body.light-theme {
  --xanthos-gold: var(--salt-brown-700);
  --xanthos-green: var(--salt-teal-700);
  --xanthos-cream: var(--salt-teal-100);
  --xanthos-green-bg: var(--salt-teal-100);
  --xanthos-border: var(--salt-border);
  --xanthos-green-border: var(--salt-accent-bd);
  background: var(--salt-bg);
  color: var(--salt-text);
}

/* ── Navigation ── */
body.light-theme .project-nav {
  background: rgba(243, 238, 232, 0.97);
  border-bottom: 1px solid var(--salt-border);
}

body.light-theme .project-nav__logo {
  color: var(--salt-text);
}

body.light-theme .project-nav__back {
  color: var(--salt-text-3);
}

body.light-theme .project-nav__back:hover {
  color: var(--salt-accent-tx);
}

/* ── Header + content ── */
body.light-theme .project-detail-header {
  background: linear-gradient(170deg, var(--salt-brown-200) 0%, var(--salt-bg) 60%);
  border-bottom: 1px solid var(--salt-border);
}

body.light-theme .project-detail-title {
  color: var(--salt-brown-900);
  font-weight: 200;
}

body.light-theme .project-detail-subtitle {
  color: var(--salt-text-2);
}

body.light-theme .project-detail-content {
  background: var(--salt-bg);
}

/* ── Typography ── */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
  color: var(--salt-brown-800);
}

body.light-theme p {
  color: var(--salt-text-2);
}

body.light-theme li {
  color: var(--salt-text-2);
}

body.light-theme strong {
  color: var(--salt-text);
}

/* ── Colour mapping: dark inline prototype styles → Salt DS ── */
body.light-theme [style*="color: rgba(255, 255, 255, 0.9)"],
body.light-theme [style*="color: rgba(255,255,255,0.9)"] {
  color: var(--salt-text);
}

body.light-theme [style*="color: rgba(255, 255, 255, 0.85)"],
body.light-theme [style*="color: rgba(255,255,255,0.85)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.8)"],
body.light-theme [style*="color: rgba(255,255,255,0.8)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.7)"],
body.light-theme [style*="color: rgba(255,255,255,0.7)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.65)"],
body.light-theme [style*="color: rgba(255,255,255,0.65)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.6)"],
body.light-theme [style*="color: rgba(255,255,255,0.6)"] {
  color: var(--salt-text-2);
}

body.light-theme [style*="color: rgba(255, 255, 255, 0.55)"],
body.light-theme [style*="color: rgba(255,255,255,0.55)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.5)"],
body.light-theme [style*="color: rgba(255,255,255,0.5)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.45)"],
body.light-theme [style*="color: rgba(255,255,255,0.45)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.4)"],
body.light-theme [style*="color: rgba(255,255,255,0.4)"],
body.light-theme [style*="color: rgba(255, 255, 255, 0.3)"],
body.light-theme [style*="color: rgba(255,255,255,0.3)"] {
  color: var(--salt-text-3);
}

body.light-theme [style*="color: #C9A959"],
body.light-theme [style*="color: #c9a959"],
body.light-theme [style*="color: var(--xanthos-gold)"] {
  color: var(--salt-brown-700);
}

body.light-theme [style*="color: #6BBF84"],
body.light-theme [style*="color: #4A7C59"] {
  color: var(--salt-accent-tx);
}

/* ── Dark overlay backgrounds → Salt surfaces ── */
body.light-theme [style*="rgba(255, 255, 255, 0.01)"],
body.light-theme [style*="rgba(255,255,255,0.01)"],
body.light-theme [style*="rgba(255, 255, 255, 0.02)"],
body.light-theme [style*="rgba(255,255,255,0.02)"],
body.light-theme [style*="rgba(255, 255, 255, 0.03)"],
body.light-theme [style*="rgba(255,255,255,0.03)"],
body.light-theme [style*="rgba(255, 255, 255, 0.04)"],
body.light-theme [style*="rgba(255,255,255,0.04)"],
body.light-theme [style*="rgba(255, 255, 255, 0.05)"],
body.light-theme [style*="rgba(255,255,255,0.05)"] {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme [style*="rgba(0, 0, 0, 0.3)"],
body.light-theme [style*="rgba(0,0,0,0.3)"],
body.light-theme [style*="rgba(0, 0, 0, 0.2)"],
body.light-theme [style*="rgba(0,0,0,0.2)"],
body.light-theme [style*="rgba(0, 0, 0, 0.15)"],
body.light-theme [style*="rgba(0,0,0,0.15)"] {
  background: var(--salt-surface-2);
}

body.light-theme [style*="border: 1px solid rgba(255, 255, 255, 0.07)"],
body.light-theme [style*="border: 1px solid rgba(255,255,255,0.07)"],
body.light-theme [style*="border: 1px solid rgba(255, 255, 255, 0.08)"],
body.light-theme [style*="border: 1px solid rgba(255,255,255,0.08)"],
body.light-theme [style*="border: 1px solid rgba(255, 255, 255, 0.1)"],
body.light-theme [style*="border: 1px solid rgba(255,255,255,0.1)"],
body.light-theme [style*="border-top: 1px solid rgba(255, 255, 255, 0.07)"],
body.light-theme [style*="border-top: 1px solid rgba(255,255,255,0.07)"] {
  border-color: var(--salt-border);
}

body.light-theme [style*="rgba(201, 169, 89, 0.08)"],
body.light-theme [style*="rgba(201,169,89,0.08)"],
body.light-theme [style*="rgba(201, 169, 89, 0.12)"],
body.light-theme [style*="rgba(201,169,89,0.12)"] {
  background: var(--salt-surface-2);
  border-color: var(--salt-border);
}

body.light-theme [style*="rgba(74, 124, 89, 0.10)"],
body.light-theme [style*="rgba(74,124,89,0.10)"],
body.light-theme [style*="rgba(74, 124, 89, 0.08)"],
body.light-theme [style*="rgba(74,124,89,0.08)"] {
  background: var(--salt-accent-bg);
  border-color: var(--salt-accent-bd);
}

body.light-theme [style*="border-bottom: 1px solid rgba(255, 255, 255, 0.05)"],
body.light-theme [style*="border-bottom: 1px solid rgba(255,255,255,0.05)"],
body.light-theme [style*="border-bottom: 1px solid rgba(255, 255, 255, 0.06)"],
body.light-theme [style*="border-bottom: 1px solid rgba(255,255,255,0.06)"],
body.light-theme [style*="border-top: 1px solid rgba(255, 255, 255, 0.06)"],
body.light-theme [style*="border-top: 1px solid rgba(255,255,255,0.06)"] {
  border-color: var(--salt-border);
}

body.light-theme [style*="background: rgba(255, 255, 255, 0.07)"],
body.light-theme [style*="background: rgba(255,255,255,0.07)"] {
  background: var(--salt-border);
}

/* ── Component class overrides ── */
body.light-theme .concept-banner {
  background: var(--salt-surface-2);
  border-color: var(--salt-border);
  color: var(--salt-text-2);
}

body.light-theme .concept-banner strong {
  color: var(--salt-brown-700);
}

body.light-theme .xanthos-label {
  color: var(--salt-brown-700);
  border-color: var(--salt-border);
  background: var(--salt-surface-2);
}

body.light-theme .xanthos-label--green {
  color: var(--salt-accent-tx);
  border-color: var(--salt-accent-bd);
  background: var(--salt-accent-bg);
}

body.light-theme .flow-section {
  border-top-color: var(--salt-border);
}

body.light-theme .flow-number {
  color: var(--salt-text-3);
}

body.light-theme .annotation-card {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .annotation-card h5 {
  color: var(--salt-brown-700);
}

body.light-theme .annotation-card p {
  color: var(--salt-text-2);
}

body.light-theme .persona-card--client {
  background: var(--salt-surface-2);
  border-color: var(--salt-border);
}

body.light-theme .persona-card--client h4 {
  color: var(--salt-brown-700);
}

body.light-theme .persona-card--rm {
  background: var(--salt-accent-bg);
  border-color: var(--salt-accent-bd);
}

body.light-theme .persona-card--rm h4 {
  color: var(--salt-accent-tx);
}

body.light-theme .persona-role {
  color: var(--salt-text-3);
}

body.light-theme .persona-jtbd {
  color: var(--salt-text-2);
}

body.light-theme .persona-insight {
  color: var(--salt-text-3);
  border-top-color: var(--salt-border);
}

body.light-theme .challenge-card {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .challenge-card h4 {
  color: var(--salt-brown-700);
}

body.light-theme .decision-icon {
  background: var(--salt-surface-2);
  border-color: var(--salt-border);
}

body.light-theme .decision-text strong {
  color: var(--salt-text);
}

body.light-theme .decision-text p {
  color: var(--salt-text-2);
}

body.light-theme .onboarding-step {
  border-color: var(--salt-border);
  background: var(--salt-surface);
}

body.light-theme .onboarding-step-label {
  border-top-color: var(--salt-border);
  color: var(--salt-text-2);
  opacity: 1;
}

body.light-theme .onboarding-step-label strong {
  color: var(--salt-brown-700);
}

body.light-theme .onboarding-callout {
  background: var(--salt-surface-2);
  border-color: var(--salt-border);
}

body.light-theme .onboarding-callout h4 {
  color: var(--salt-brown-700);
}

body.light-theme .onboarding-callout p {
  color: var(--salt-text-2);
  opacity: 1;
}

body.light-theme .validate-list li {
  background: var(--salt-surface);
  border-color: var(--salt-border);
  color: var(--salt-text-2);
  opacity: 1;
}

body.light-theme .bridge-card {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .bridge-card h5 {
  color: var(--salt-brown-700);
}

body.light-theme .bridge-card p {
  color: var(--salt-text-2);
}

body.light-theme .pb-rejected-item {
  background: var(--salt-surface);
}

body.light-theme .pb-rejected-tag {
  color: rgba(180, 60, 60, 0.8);
}

body.light-theme .pb-rejected-title {
  color: var(--salt-text);
}

body.light-theme .pb-rejected-body {
  color: var(--salt-text-2);
}

body.light-theme .pb-role-grid {
  background: var(--salt-border);
}

body.light-theme .pb-role-cell {
  background: var(--salt-surface);
}

body.light-theme .pb-role-cell--alt {
  background: var(--salt-surface-2);
}

body.light-theme .pb-role-cell--header {
  background: var(--salt-surface-2);
  border-bottom: 2px solid var(--salt-border);
}

body.light-theme .pb-role-label--gold {
  color: var(--salt-brown-700);
}

body.light-theme .pb-role-label--muted {
  color: var(--salt-text-3);
}

body.light-theme .pb-role-capability {
  color: var(--salt-text);
}

body.light-theme .pb-role-note {
  color: var(--salt-text-3);
}

body.light-theme .pb-role-evidence {
  color: var(--salt-text-2);
}

body.light-theme .pb-stat-val {
  color: var(--salt-brown-700);
}

body.light-theme .pb-stat-lbl {
  color: var(--salt-text-3);
  opacity: 0.7;
}

body.light-theme .screen-caption {
  color: var(--salt-text-3);
  opacity: 1;
}

body.light-theme .research-methodology-table th {
  color: var(--salt-text-3);
}

body.light-theme .research-methodology-table td {
  color: var(--salt-text);
  border-bottom-color: var(--salt-border);
}

body.light-theme .research-methodology-table td:nth-child(2) {
  color: var(--salt-text-2);
}

body.light-theme .research-methodology-table td:nth-child(3) {
  color: var(--salt-text-2);
}

body.light-theme .pb-table-header {
  color: var(--salt-text-2);
}

body.light-theme .domain-compare-table thead th:first-child {
  color: var(--salt-text-3);
}

body.light-theme .domain-compare-table thead th:last-child {
  color: var(--salt-brown-700);
}

body.light-theme .domain-compare-table tbody td {
  border-bottom-color: var(--salt-border);
}

body.light-theme .domain-compare-table tbody td:first-child {
  color: var(--salt-text-3);
}

body.light-theme .domain-compare-table tbody td:nth-child(2) {
  color: var(--salt-text-2);
}

body.light-theme .domain-compare-table tbody td:last-child {
  color: var(--salt-brown-700);
}

body.light-theme .domain-compare-table tbody tr:nth-child(even) {
  background: var(--salt-surface-2);
}

body.light-theme .domain-compare-note {
  color: var(--salt-text-3);
}

body.light-theme .xanthos-nav-demo {
  background: var(--salt-surface-2);
}

body.light-theme .xanthos-nav-demo__label {
  color: var(--salt-text-3);
  opacity: 1;
}

body.light-theme .xanthos-nav-item--active {
  background: var(--salt-border);
}

body.light-theme .xanthos-nav-item--rm {
  background: var(--salt-accent-bg);
  color: var(--salt-accent-tx);
}

body.light-theme .xanthos-ia-card--gold {
  background: var(--salt-surface-2);
  border-color: var(--salt-border);
}

body.light-theme .xanthos-ia-card--gold .xanthos-ia-card__title {
  color: var(--salt-brown-700);
}

body.light-theme .xanthos-ia-card--green {
  background: var(--salt-accent-bg);
  border-color: var(--salt-accent-bd);
}

body.light-theme .xanthos-ia-card--green .xanthos-ia-card__title {
  color: var(--salt-accent-tx);
}

body.light-theme .xanthos-ia-card--neutral {
  background: var(--salt-surface);
}

body.light-theme .xanthos-ia-card--neutral .xanthos-ia-card__title {
  color: var(--salt-text-2);
}

body.light-theme .xanthos-ia-card p {
  color: var(--salt-text-3);
  opacity: 1;
}

body.light-theme .xp-launch-card {
  border-color: var(--salt-border);
  background: var(--salt-surface);
  color: var(--salt-text);
}

body.light-theme .xp-launch-card:hover {
  border-color: var(--salt-brown-400);
  background: var(--salt-surface-2);
}

body.light-theme .xp-launch-card__title {
  color: var(--salt-brown-700);
}

body.light-theme .xp-launch-card__meta {
  color: var(--salt-text-3);
  opacity: 1;
}

body.light-theme .xp-screen-chip {
  border-color: var(--salt-border);
  color: var(--salt-text-3);
  background: transparent;
}

body.light-theme .xp-launch-btn {
  background: var(--salt-surface-2);
  border-color: var(--salt-brown-400);
  color: var(--salt-brown-700);
}

body.light-theme .xp-launch-btn:hover {
  background: var(--salt-brown-200);
}

body.light-theme .proto-panel {
  background: #f5f7fa;
  border-color: #d4dbe6;
}

body.light-theme .footer {
  background: var(--salt-brown-200);
  border-top: 1px solid var(--salt-border);
}

body.light-theme .footer p,
body.light-theme .footer-link {
  color: var(--salt-text-3);
}

body.light-theme ::-webkit-scrollbar-track {
  background: var(--salt-brown-200);
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: var(--salt-brown-400);
  border-radius: var(--radius-s);
}

/* ── Argos / generic light-theme component overrides ── */

body.light-theme .decision-row {
  border-bottom-color: var(--salt-border);
}

body.light-theme .decision-row__topic {
  color: var(--salt-text-3);
}

body.light-theme .decision-col--rejected {
  background: rgba(180, 60, 60, 0.05);
  border-color: rgba(180, 60, 60, 0.18);
}

body.light-theme .decision-col--chosen {
  background: rgba(30, 90, 60, 0.05);
  border-color: rgba(30, 90, 60, 0.18);
}

body.light-theme .decision-col__label--rejected {
  color: #b83c3c;
}

body.light-theme .decision-col__label--chosen {
  color: #1e5a3c;
}

body.light-theme .decision-col__title {
  color: var(--salt-text);
}

body.light-theme .decision-col__body {
  color: var(--salt-text-2);
}

body.light-theme .info-card {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .info-card__title {
  color: var(--salt-brown-700);
}

body.light-theme .info-card__body {
  color: var(--salt-text-2);
}

body.light-theme .callout {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .callout--insight {
  background: var(--salt-surface-2);
  border-color: var(--salt-border);
}

body.light-theme .callout--muted {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .callout__label {
  color: var(--salt-brown-700);
}

body.light-theme .callout__icon svg {
  stroke: var(--salt-brown-500);
}

body.light-theme .callout p {
  color: var(--salt-text-2);
}

body.light-theme .outcome-list {
  border-color: var(--salt-border);
}

body.light-theme .outcome-row {
  border-bottom-color: var(--salt-border);
}

body.light-theme .outcome-row__label {
  color: var(--salt-brown-700);
}

body.light-theme .outcome-row__value {
  color: var(--salt-text-2);
}

body.light-theme .pd-label {
  color: var(--salt-text-3);
  border-color: var(--salt-border);
}

body.light-theme .text-secondary {
  color: var(--salt-text-2);
}

body.light-theme .text-body-l {
  color: var(--salt-text-2);
}

body.light-theme .text-body-m {
  color: var(--salt-text-2);
}

body.light-theme .platform-card {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .platform-card__tag {
  color: var(--salt-text-3);
}

body.light-theme .platform-card__title {
  color: var(--salt-brown-700);
}

body.light-theme .platform-card__body {
  color: var(--salt-text-2);
}

body.light-theme .gallery-caption {
  color: var(--salt-text-3);
}

body.light-theme .badge-row .project-badge {
  color: var(--salt-text-3);
  border-color: var(--salt-border);
  background: var(--salt-surface);
}

body.light-theme .btn-small--cyan {
  color: var(--salt-brown-700);
  border-color: var(--salt-border);
  background: var(--salt-surface);
}

body.light-theme .btn-small--cyan:hover {
  background: var(--salt-surface-2);
}

body.light-theme .card {
  background: var(--salt-surface);
  border-color: var(--salt-border);
}

body.light-theme .card__title {
  color: var(--salt-brown-700);
}

body.light-theme .card__body {
  color: var(--salt-text-2);
}

body.light-theme .persona-jtbd li {
  color: var(--salt-text-2);
}

body.light-theme .persona-insight {
  color: var(--salt-text-2);
}

body.light-theme .challenge-card p {
  color: var(--salt-text-2);
}

body.light-theme .challenge-card__num {
  color: var(--salt-brown-500);
}

body.light-theme .xanthos-label--purple {
  color: var(--salt-brown-500);
}

body.light-theme .proposal-pair img {
  border-color: var(--salt-border);
}

body.light-theme .xanthos-screen {
  border-color: var(--salt-border);
}

/* ── Prototype panel BEM classes ── */

.pb-proto-header {
  background: #ffffff;
  border-bottom: 1px solid #e4e7ec;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pb-proto-header__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pb-proto-header__left--narrow {
  gap: var(--space-3);
}

.pb-proto-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pb-proto-header__right--narrow {
  gap: var(--space-4);
}

.pb-proto-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-proto-logo--round {
  border-radius: 50%;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.20);
}

.pb-proto-logo__text {
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pb-proto-logo__text--sm {
  font-size: 0.60rem;
}

.pb-proto-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1f36;
  letter-spacing: 0.04em;
}

.pb-proto-title--light {
  font-size: 0.70rem;
  color: #ffffff;
}

.pb-proto-subtitle {
  font-size: 0.62rem;
  color: #8c95a6;
  letter-spacing: 0.03em;
}

.pb-proto-subtitle--light {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.70);
}

.pb-section-label {
  font-size: 0.64rem;
  color: #8c95a6;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pb-section-label--sm {
  font-size: 0.60rem;
  margin-bottom: 5px;
}

.pb-section-label--xs {
  font-size: 0.66rem;
  margin-bottom: 16px;
}

.pb-section-label--tight {
  margin-bottom: 14px;
}

.pb-section-label--tighter {
  margin-bottom: 12px;
}

.pb-section-label--gap {
  margin-bottom: 10px;
}

.pb-value-xl {
  font-size: 2.0rem;
  font-weight: 300;
  color: #1a1f36;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pb-value-lg {
  font-size: 1.3rem;
  font-weight: 300;
  color: #1a1f36;
}

.pb-value-md {
  font-size: 1.4rem;
  font-weight: 300;
  color: #1a1f36;
  line-height: 1;
}

.pb-value-change--up {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-positive);
}

.pb-value-change--sm {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-positive);
}

.pb-value-change--gold {
  color: #C9A959;
  line-height: 1;
}

.pb-proto-muted {
  font-size: 0.60rem;
  color: #a0a8b8;
  margin-top: 4px;
}

.pb-proto-muted--xs {
  font-size: 0.56rem;
  margin-top: 3px;
}

.pb-proto-muted--inline {
  font-size: 0.62rem;
  color: #8c95a6;
  letter-spacing: 0.04em;
  margin-top: 0;
}

.pb-proto-muted--green {
  font-size: 0.56rem;
  color: var(--color-positive);
  margin-top: 3px;
}

.pb-proto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-positive);
}

.pb-proto-grid-4 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 0;
  align-items: end;
}

.pb-proto-grid-4--even {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.pb-proto-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
}

.pb-proto-grid-2col--rm {
  grid-template-columns: 1.2fr 1fr;
}

.pb-proto-section {
  background: #ffffff;
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-bottom: 1px solid #e4e7ec;
}

.pb-proto-section--flush {
  padding: var(--space-5) var(--space-6);
}

.pb-proto-section--sm {
  padding: var(--space-5) var(--space-6);
}

.pb-proto-cell--pr {
  padding-right: var(--space-5);
}

.pb-proto-cell--pl {
  padding-left: var(--space-5);
}

.pb-proto-cell--pr-sm {
  padding-right: var(--space-5);
}

.pb-proto-cell--pl-sm {
  padding-left: var(--space-5);
}

.pb-proto-flex {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.pb-proto-flex--center {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.pb-proto-flex--gap8 {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.pb-proto-flex--gap6 {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.pb-proto-flex--between {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.pb-proto-flex--col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pb-proto-flex--center-gap8 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pb-proto-flex--mb14 {
  margin-bottom: var(--space-4);
}

.pb-proto-flex--mb8 {
  margin-bottom: var(--space-2);
}

.pb-proto-flex--center-gap14 {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pb-proto-footer {
  background: #ffffff;
  border-top: 1px solid #e4e7ec;
  padding: var(--space-2) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pb-proto-footer__left {
  font-size: 0.58rem;
  color: #a0a8b8;
  letter-spacing: 0.04em;
}

.pb-proto-footer__right {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.pb-proto-footer__right--gold {
  color: #C9A959;
}

.pb-proto-footer__right--green {
  color: #4A7C59;
}

.pb-proto-card {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: var(--radius-l);
  padding: var(--space-4);
  margin-bottom: var(--space-2);
  transition: border-color 0.3s ease;
}

.pb-proto-card--sm {
  border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-4);
}

.pb-proto-card--last {
  margin-bottom: 0;
}

.pb-proto-card--mb16 {
  margin-bottom: 16px;
}

.pb-proto-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 6px;
}

.pb-proto-card__title--sm {
  font-size: 0.76rem;
  margin-bottom: 3px;
}

.pb-proto-card__body {
  font-size: 0.74rem;
  color: #5a6678;
  line-height: 1.6;
}

.pb-proto-card__sub {
  font-size: 0.66rem;
  color: #5a6678;
}

.pb-proto-badge {
  font-size: 0.56rem;
  padding: 2px var(--space-2);
  border-radius: var(--radius-l);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pb-proto-badge--market {
  background: rgba(59, 111, 212, 0.10);
  color: #3b6fd4;
}

.pb-proto-badge--performance {
  background: rgba(22, 130, 93, 0.10);
  color: var(--color-positive);
}

.pb-proto-badge--tax {
  background: var(--accent-15);
  color: #a88830;
}

.pb-proto-badge--ai {
  font-size: 0.52rem;
  background: rgba(74, 124, 89, 0.12);
  color: #4A7C59;
}

.pb-progress-track {
  height: 4px;
  background: #edf0f4;
  border-radius: var(--radius-s);
  margin-top: var(--space-2);
  overflow: hidden;
}

.pb-progress-fill {
  width: var(--pb-fill, 0%);
  height: 100%;
  border-radius: var(--radius-s);
}

.pb-event-days {
  font-size: 0.60rem;
  font-weight: 700;
  white-space: nowrap;
}

.pb-event-days--gold {
  color: #C9A959;
}

.pb-event-days--blue {
  color: #3b6fd4;
}

.pb-event-days--purple {
  color: #7c5cbf;
}

.pb-alert {
  border-radius: var(--radius-s);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pb-alert--warn {
  background: #fff8f0;
  border: 1px solid #f0dcc0;
}

.pb-alert--info {
  background: #f0f7f3;
  border: 1px solid #c5e0cf;
}

.pb-alert__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pb-alert__dot--gold {
  background: #C9A959;
}

.pb-alert__dot--green {
  background: #4A7C59;
}

.pb-alert__text--warn {
  font-size: 0.70rem;
  color: #6b5a30;
}

.pb-alert__text--info {
  font-size: 0.70rem;
  color: #2d5a3c;
}

.pb-proto-panel-bg {
  background: #f5f7fa;
}

.pb-proto-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.20);
}

.pb-proto-chrome {
  padding: var(--space-2) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  background: #1a2035;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pb-proto-meta {
  text-align: right;
}

.pb-proto-meta__label {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.60);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pb-proto-meta__value {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
}

.pb-proto-meta__value--sm {
  font-size: 0.68rem;
  font-weight: 600;
}

.pb-proto-score-suffix {
  font-size: 0.64rem;
  color: #8c95a6;
}

.pb-table-scroll {
  overflow-x: auto;
}

.pb-table-scroll--rounded {
  overflow-x: auto;
  border-radius: var(--radius-l);
}

.pb-table-col--method {
  width: 22%;
}

.pb-table-col--source {
  width: 28%;
}

.pb-table-col--insight {
  width: 50%;
}

.pb-lead--dim {
  opacity: 0.5;
}

.pb-lead--medium {
  opacity: 0.7;
}

.pb-lead--semi {
  opacity: 0.75;
}

.pb-donut-svg {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.pb-legend-text {
  font-size: 0.72rem;
  line-height: 2.1;
  color: #3a4255;
}

.pb-decision-wrap {
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.pb-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
}

.proto-panel--rounded {
  border-radius: var(--radius-l);
}

.pb-legend-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pb-legend-swatch {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-s);
  display: inline-block;
  background: var(--pb-swatch);
}

.pb-legend-pct {
  color: #8c95a6;
  font-weight: 600;
  margin-left: auto;
}

.pb-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.pb-bar-row--geo {
  grid-template-columns: 110px 1fr 36px;
  margin-bottom: var(--space-1);
}

.pb-bar-label {
  font-size: 0.70rem;
  color: #5a6678;
}

.pb-bar-label--sm {
  font-size: 0.68rem;
}

.pb-bar-track {
  height: 14px;
  background: #edf0f4;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.pb-bar-track--sm {
  height: 12px;
}

.pb-bar-fill {
  height: 100%;
  border-radius: 3px;
  opacity: 0.80;
  transition: width 1s ease;
  width: var(--pb-w);
  background: var(--pb-bg);
}

.pb-bar-fill--geo {
  opacity: 0.65;
}

.pb-bar-val {
  font-size: 0.70rem;
  font-weight: 600;
  text-align: right;
  color: var(--pb-val-color);
}

.pb-bar-val--sm {
  font-size: 0.68rem;
  color: #3a4255;
}

.pb-proto-perf-bars {
  margin-bottom: 22px;
}

/* ── RWD for private banking ── */
@media (max-width: 768px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .proposal-pair {
    grid-template-columns: 1fr;
  }

  .pb-stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .pb-role-grid {
    grid-template-columns: 1fr;
  }

  .xp-launch-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: var(--space-4);
  }

  .xp-launch-btn {
    width: 100%;
    justify-content: center;
  }

  .pb-section {
    margin-bottom: var(--space-9);
    padding-top: var(--space-7);
  }
}

@media (max-width: 480px) {
  .onboarding-gallery {
    grid-template-columns: 1fr;
  }

  .validate-list {
    grid-template-columns: 1fr;
  }

  .pb-stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }
}

/* Prototype panel responsive overrides */
@media (max-width: 768px) {
  #pb-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  #pb-stats-grid>div {
    border-right: none;
    border-bottom: 1px solid #edf0f4;
    padding: var(--space-4) 0;
  }

  #rm-delta-grid {
    grid-template-columns: 1fr 1fr;
  }

  #rm-delta-grid>div {
    border-right: none;
    border-bottom: 1px solid #edf0f4;
    padding: var(--space-3) 0;
  }
}

@media (max-width: 500px) {
  #pb-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════
   § 27 — PROJECT: CHRISTIE'S LUXURY DEFINED
   Christie's International Real Estate editorial platform.
   Palette: White · Black · Gold #C6A84B · Christie's Red #9E2335
   Body class: page-project + light-theme
   ════════════════════════════════════════════════════════════════════ */

/* ── Christie's color tokens ── */
:root {
  --cr-red: #9E2335;
  --cr-red-bg: rgba(158, 35, 53, 0.06);
  --cr-red-bd: rgba(158, 35, 53, 0.25);
  --cr-gold: #C6A84B;
  --cr-gold-bg: rgba(198, 168, 75, 0.07);
  --cr-gold-bd: rgba(198, 168, 75, 0.30);
  --cr-black: #111009;
  --cr-mid: #4a4030;
  --cr-dim: #8a7a68;
  --cr-bg: #FAFAF8;
  --cr-surface: #FFFFFF;
  --cr-border: rgba(0, 0, 0, 0.08);
}

/* ── Base light-theme ── */
body.light-theme {
  background: var(--cr-bg);
  color: var(--cr-black);
}

/* ── Nav / header ── */
body.light-theme .project-nav {
  background: rgba(250, 250, 248, 0.97);
  border-bottom: 1px solid var(--cr-border);
}

body.light-theme .project-nav__logo {
  color: var(--cr-black);
}

body.light-theme .project-nav__back {
  color: var(--cr-dim);
}

body.light-theme .project-nav__back:hover {
  color: var(--cr-red);
}

body.light-theme .header,
body.light-theme .header.scrolled,
body.light-theme header#header {
  background: rgba(250, 250, 248, 0.97);
  border-bottom: 1px solid var(--cr-border);
}

body.light-theme .logo-text,
body.light-theme .logo-link {
  color: var(--cr-black);
}

/* ── Hero ── */
body.light-theme .project-detail-header {
  background: linear-gradient(175deg, #f8f0f2 0%, var(--cr-bg) 55%);
  border-bottom: 1px solid rgba(158, 35, 53, 0.10);
}

body.light-theme .project-detail-title {
  color: var(--cr-black);
  font-weight: 200;
}

body.light-theme .project-detail-subtitle {
  color: var(--cr-mid);
}

body.light-theme .project-detail-content {
  background: var(--cr-bg);
}

/* ── Typography ── */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .project-detail-main h1,
body.light-theme .project-detail-main h2,
body.light-theme .project-detail-main h3,
body.light-theme .project-detail-main h4,
body.light-theme .project-detail-main h5,
body.light-theme .project-detail-main h6,
body.light-theme .cr-box h3,
body.light-theme .cr-box h4,
body.light-theme .responsive-inset-block h3,
body.light-theme .responsive-inset-block h4 {
  color: var(--cr-black);
}

body.light-theme p {
  color: var(--cr-mid);
}

body.light-theme li {
  color: var(--cr-mid);
}

body.light-theme strong {
  color: var(--cr-black);
}

/* ── Project badge ── */
.project-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 231, 77, 0.1);
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

body.light-theme .project-badge {
  background: var(--cr-red-bg);
  border-color: var(--cr-red-bd);
  color: var(--cr-red);
}

/* ── Buttons ── */
body.light-theme .btn {
  border-color: var(--cr-red-bd);
  color: var(--cr-red);
}

body.light-theme .btn:hover {
  background: var(--cr-red-bg);
}

/* ── Footer ── */
body.light-theme .footer {
  background: #F4F2EF;
  border-top: 1px solid var(--cr-border);
}

body.light-theme .footer p {
  color: var(--cr-dim);
}

body.light-theme .footer-link {
  color: var(--cr-red);
}

/* ── Scrollbar ── */
body.light-theme ::-webkit-scrollbar-track {
  background: #F4F2EF;
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(158, 35, 53, 0.25);
}

/* ── Tech diagrams ── */
body.light-theme .tech-diagram-container {
  background: var(--cr-surface);
  border-color: var(--cr-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

body.light-theme .tech-diagram-header {
  border-bottom-color: var(--cr-border);
}

body.light-theme .tech-diagram-title {
  color: var(--cr-dim);
}

body.light-theme .schema-table {
  background: #F4F2EF;
  border-color: var(--cr-border);
}

body.light-theme .schema-title {
  background: rgba(0, 0, 0, 0.04);
  border-bottom-color: var(--cr-border);
  color: var(--cr-black);
}

body.light-theme .schema-row {
  color: var(--cr-dim);
}

/* ── Editorial spec mockup ── */
body.light-theme .editorial-mockup {
  background: #FAF7F2;
  border-color: rgba(198, 168, 75, 0.3);
}

body.light-theme .editorial-mockup::before {
  background:
    linear-gradient(rgba(158, 35, 53, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 35, 53, 0.05) 1px, transparent 1px);
  background-size: 8px 8px;
}

body.light-theme .editorial-h1 {
  color: #111009;
}

body.light-theme .editorial-p {
  color: rgba(17, 16, 9, 0.55);
}

body.light-theme .brand-redline {
  background: rgba(158, 35, 53, 0.75);
}

body.light-theme .brand-spec {
  background: rgba(250, 247, 242, 0.96);
  border-color: rgba(158, 35, 53, 0.3);
  color: var(--cr-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Impact / perspective cards ── */
body.light-theme .premium-panel {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-theme .premium-panel:hover {
  box-shadow: 0 8px 32px rgba(158, 35, 53, 0.10);
  border-color: rgba(158, 35, 53, 0.20);
}

body.light-theme .tech-grid-bg {
  display: none;
}

body.light-theme .pc-title {
  color: var(--cr-black);
}

body.light-theme .pc-body {
  color: var(--cr-mid);
}

body.light-theme .pc-icon-wrapper {
  background: #F4F2EF;
  border-color: rgba(0, 0, 0, 0.10);
  color: var(--cr-mid);
  box-shadow: none;
}

body.light-theme .pc-huge-metric span {
  color: var(--cr-dim);
}

body.light-theme .pc-business {
  --card-accent: var(--cr-gold);
}

body.light-theme .pc-ux {
  --card-accent: var(--cr-red);
}

body.light-theme .pc-eng {
  --card-accent: var(--cr-gold);
}

body.light-theme .pc-reg {
  --card-accent: var(--cr-red);
}

/* ── Learnings section ── */
body.light-theme .learnings-section {
  background: #F4F2EF;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: clamp(80px, 10vh, 128px) var(--gutter);
}

body.light-theme .learnings-section h2 {
  color: var(--cr-black);
}

body.light-theme .learnings-section .label-minimal {
  color: var(--cr-red);
}

/* ══════════════════════════════════════════
   CHRISTIE'S CONTENT BOX SYSTEM
   ══════════════════════════════════════════ */
.cr-box {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.cr-box--lg {
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.cr-box--gold {
  background: var(--accent-05);
}

.cr-box--gold-warm {
  background: rgba(212, 175, 55, 0.05);
}

.cr-box--gold-med {
  background: var(--accent-08);
  border-radius: 10px;
}

.cr-box--gold-obs {
  background: rgba(212, 175, 55, 0.04);
  border-radius: 12px;
}

.cr-box--blue {
  background: rgba(100, 149, 237, 0.05);
}

.cr-box--blue-med {
  background: rgba(100, 149, 237, 0.08);
  border-radius: 10px;
}

.cr-box--danger {
  background: rgba(255, 107, 107, 0.05);
}

.cr-box--success {
  background: rgba(76, 175, 80, 0.05);
}

.cr-box--success-med {
  background: rgba(76, 175, 80, 0.08);
  border-radius: 10px;
}

.cr-box--orange {
  background: rgba(255, 152, 0, 0.05);
}

.cr-box--dark {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1.4rem;
}

.cr-box--dark-note {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.cr-box--surface {
  background: rgba(255, 255, 255, 0.02);
}

.cr-box--note-gold {
  padding: 1rem;
  background: var(--accent-08);
  border-radius: 6px;
}

.cr-box--note-green {
  padding: 1rem;
  background: rgba(76, 175, 80, 0.08);
  border-radius: 6px;
}

/* light-theme overrides for content boxes */
body.light-theme .cr-box--gold,
body.light-theme .cr-box--gold-warm,
body.light-theme .cr-box--gold-med,
body.light-theme .cr-box--gold-obs {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-box--blue,
body.light-theme .cr-box--blue-med {
  background: var(--cr-red-bg);
}

body.light-theme .cr-box--danger {
  background: var(--cr-red-bg);
}

body.light-theme .cr-box--success,
body.light-theme .cr-box--success-med {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-box--orange {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-box--dark {
  background: #F4F2EF;
  color: var(--cr-mid);
}

body.light-theme .cr-box--dark p {
  color: var(--cr-mid);
}

body.light-theme .cr-box--dark strong {
  color: var(--cr-black);
}

body.light-theme .cr-box--dark-note {
  background: #F4F2EF;
  color: var(--cr-mid);
}

body.light-theme .cr-box--surface {
  background: var(--cr-surface);
  border-color: var(--cr-border);
}

body.light-theme .cr-box--note-gold {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-box--note-green {
  background: var(--cr-gold-bg);
}

/* ── Headings — light theme overrides ── */
body.light-theme .cr-box__heading,
body.light-theme .cr-box__heading--plain,
body.light-theme .cr-box__subheading,
body.light-theme .cr-box__subheading--sm {
  color: var(--cr-black);
}

/* ── Sidebar meta — light theme overrides ── */
body.light-theme .sidebar-meta li {
  border-bottom-color: var(--cr-border);
}

body.light-theme .sidebar-meta li .ti {
  color: var(--cr-dim);
}

body.light-theme .sidebar-meta li strong {
  color: var(--cr-black);
}

body.light-theme .sidebar-meta li span {
  color: var(--cr-mid);
}

/* ── Typography helpers ── */
.cr-h-success {
  color: #4CAF50;
  margin-top: 0;
}

.cr-h-orange {
  color: #FF9800;
  margin-top: 0;
}

.cr-h-blue {
  color: #6495ED;
  margin-top: 0;
}

.cr-text-success {
  color: #4CAF50;
}

.cr-text-orange {
  color: #FF9800;
}

.cr-text-blue {
  color: #6495ED;
}

.cr-text-dim {
  color: rgba(255, 255, 255, 0.3);
}

.cr-observation-strong {
  color: rgba(212, 175, 55, 0.7);
}

.cr-observation-strong strong {
  color: rgba(212, 175, 55, 0.9);
}

body.light-theme .cr-h-success {
  color: var(--cr-gold);
}

body.light-theme .cr-h-orange {
  color: var(--cr-gold);
}

body.light-theme .cr-h-blue {
  color: var(--cr-red);
}

body.light-theme .cr-text-success {
  color: var(--cr-gold);
}

body.light-theme .cr-text-orange {
  color: var(--cr-gold);
}

body.light-theme .cr-text-blue {
  color: var(--cr-red);
}

body.light-theme .cr-text-dim {
  color: rgba(0, 0, 0, 0.2);
}

body.light-theme .cr-observation-strong {
  color: var(--cr-mid);
}

body.light-theme .cr-observation-strong strong {
  color: var(--cr-black);
}

/* ── Grids ── */
.cr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.cr-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cr-grid-auto--sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.cr-grid-decision {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.cr-grid-3arrow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: start;
  margin: var(--space-5) 0;
}

.cr-grid-tension {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: 1.5rem;
}

.cr-grid-tension-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: start;
}

.cr-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Decision pills ── */
.cr-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cr-pill--danger {
  background: rgba(255, 107, 107, 0.2);
}

.cr-pill--blue {
  background: rgba(100, 149, 237, 0.2);
}

.cr-pill--gold {
  background: var(--accent-hover);
}

body.light-theme .cr-pill--danger {
  background: var(--cr-red-bg);
  color: var(--cr-red);
}

body.light-theme .cr-pill--blue {
  background: var(--cr-red-bg);
  color: var(--cr-red);
}

body.light-theme .cr-pill--gold {
  background: var(--cr-gold-bg);
  color: var(--cr-black);
}

/* ── Pros/cons row ── */
.cr-pros-row {
  display: flex;
  gap: var(--space-5);
  margin-top: 0.8rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ── Arrow divider (V1 → V2) ── */
.cr-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  align-self: center;
  padding-top: 2rem;
  text-align: center;
}

body.light-theme .cr-arrow {
  color: rgba(0, 0, 0, 0.2);
}

/* ── Metrics grid ── */
.cr-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.cr-metric-card {
  padding: 1.8rem;
  border-radius: 10px;
  text-align: center;
}

.cr-metric-card--green {
  background: rgba(76, 175, 80, 0.08);
}

.cr-metric-card--blue {
  background: rgba(100, 149, 237, 0.08);
}

.cr-metric-card--gold {
  background: var(--accent-08);
}

.cr-metric-card--orange {
  background: rgba(255, 152, 0, 0.08);
}

.cr-metric-num {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cr-metric-num--green {
  color: #4CAF50;
}

.cr-metric-num--blue {
  color: #6495ED;
}

.cr-metric-num--orange {
  color: #FF9800;
}

.cr-metric-lbl {
  font-size: 0.9rem;
  opacity: 0.9;
}

.cr-metric-sub {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

body.light-theme .cr-metric-card--green {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-metric-card--blue {
  background: var(--cr-red-bg);
}

body.light-theme .cr-metric-card--gold {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-metric-card--orange {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-metric-num {
  color: var(--cr-black);
}

body.light-theme .cr-metric-num--green {
  color: var(--cr-gold);
}

body.light-theme .cr-metric-num--blue {
  color: var(--cr-red);
}

body.light-theme .cr-metric-num--orange {
  color: var(--cr-gold);
}

/* ── Stakeholder tension ── */
.cr-tension-label {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.cr-tension-label--brand {
  background: var(--accent-15);
}

.cr-tension-label--editorial {
  background: rgba(100, 149, 237, 0.15);
}

.cr-tension-label--crm {
  background: rgba(255, 152, 0, 0.15);
}

.cr-tension-priority {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

body.light-theme .cr-tension-label--brand {
  background: var(--cr-gold-bg);
}

body.light-theme .cr-tension-label--editorial {
  background: var(--cr-red-bg);
}

body.light-theme .cr-tension-label--crm {
  background: var(--cr-gold-bg);
}

/* ── Gallery ── */
.cr-gallery-full {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.cr-gallery-full img {
  width: 100%;
  height: auto;
  display: block;
}

.cr-gallery-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.cr-gallery-item {
  border-radius: 10px;
  overflow: hidden;
}

.cr-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.cr-gallery-caption {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.cr-gallery-caption--sm {
  padding: 0.75rem 1rem;
}

body.light-theme .cr-gallery-caption {
  background: rgba(0, 0, 0, 0.07);
  color: var(--cr-mid);
}

/* ── Section intro ── */
.cr-section-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.cr-section-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--accent-15);
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.cr-section-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: 0.5rem 0;
}

.cr-section-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

body.light-theme .cr-section-badge {
  color: var(--cr-mid);
}

body.light-theme .cr-section-heading {
  color: var(--cr-black);
}

body.light-theme .cr-section-lead {
  color: var(--cr-mid);
}

/* ── Observation block ── */
.cr-observation-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cr-observation-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.6);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.cr-observation-intro {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cr-observation-cards {
  display: grid;
  gap: 1.25rem;
}

.cr-honest-framing {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

body.light-theme .cr-observation-badge {
  color: var(--cr-gold);
}

body.light-theme .cr-observation-intro {
  color: var(--cr-mid);
}

body.light-theme .cr-honest-framing {
  background: #F4F2EF;
}

/* ── Code blocks ── */
.cr-code-block {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.cr-code-block--green {
  color: #4CAF50;
}

.cr-code-block--orange {
  color: #FF9800;
}

body.light-theme .cr-code-block {
  background: #F4F2EF;
}

body.light-theme .cr-code-block--green {
  color: var(--cr-gold);
}

body.light-theme .cr-code-block--orange {
  color: var(--cr-gold);
}

/* ── Performance evidence table ── */
.cr-table-wrap {
  overflow-x: auto;
  margin: var(--space-5) 0;
}

.cr-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
}

.cr-results-table thead tr {
  background: var(--accent-10);
  border-bottom: 2px solid var(--accent-25);
}

.cr-results-table th {
  padding: 1rem;
  text-align: left;
}

.cr-results-table th:not(:first-child) {
  text-align: center;
}

.cr-results-table th.cr-th--success {
  color: #4CAF50;
}

.cr-results-table td {
  padding: 0.8rem 1rem;
}

.cr-results-table td:not(:first-child) {
  text-align: center;
}

.cr-results-table td.cr-td--success {
  color: #4CAF50;
}

.cr-results-table td.cr-td--strong {
  font-weight: 600;
}

body.light-theme .cr-results-table {
  background: var(--cr-surface);
}

body.light-theme .cr-results-table thead tr {
  background: var(--cr-gold-bg);
  border-color: var(--cr-gold-bd);
}

body.light-theme .cr-results-table th.cr-th--success {
  color: var(--cr-gold);
}

body.light-theme .cr-results-table td.cr-td--success {
  color: var(--cr-gold);
}

/* ── Wf-circle variants ── */
.wf-circle--dim {
  background: rgba(255, 255, 255, 0.3);
}

.wf-circle--accent {
  background: var(--accent);
}

/* ── Brand translation mockup panel ── */
.cr-brand-translation {
  min-height: 260px;
  padding: 20px;
}

/* ── Auction venue section ── */
.cr-auction-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.cr-auction-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cr-venue-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.cr-venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

body.light-theme .cr-auction-caption {
  color: var(--cr-mid);
  opacity: 1;
}

body.light-theme .cr-venue-box {
  background: var(--cr-surface);
  border: 1px solid var(--cr-border);
}

/* ── Learnings grid ── */
.cr-learnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.cr-learnings-highlight {
  margin-top: 3rem;
  border-radius: 16px;
  text-align: center;
}

.responsive-inset-block {
  padding: var(--space-6);
}

/* ── Christie's content typography helpers ── */
.cr-box__heading {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cr-box__heading--plain {
  margin-top: 0;
}

.cr-box__subheading {
  margin-top: 0;
  font-size: 1.05rem;
}

.cr-box__subheading--sm {
  margin-top: 0;
  font-size: 1rem;
}

.cr-box__intro {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.cr-box__intro--md {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  opacity: 0.9;
}

.cr-box__intro--base {
  font-size: 1.05rem;
  margin: 0;
}

.cr-box__text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.cr-box__text--tight {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cr-box__text--flush {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.cr-box__text--base {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.cr-box__text--base-flush {
  font-size: 1rem;
  margin: 0;
}

.cr-box__text--lg {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.cr-box__list {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.2rem;
}

.cr-box__list--wide {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.5rem;
}

.cr-box__list--sm {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.5rem;
}

.cr-box__list--xs {
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.2rem;
}

.cr-box__list--md {
  font-size: 0.92rem;
  line-height: 1.8;
}

.cr-box__list--cols {
  font-size: 0.92rem;
  line-height: 1.8;
  columns: 2;
  column-gap: var(--space-5);
}

.cr-box__list--spaced {
  margin-bottom: 0;
  margin-top: 1rem;
}

.cr-box__ordered-list {
  line-height: 1.8;
  margin: 0;
  padding-left: 1.5rem;
}

/* ── Dark card content elements ── */
.cr-dark__title {
  font-size: 0.95rem;
  margin: 0 0 0.8rem 0;
}

.cr-dark__label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.6rem;
}

.cr-dark__body {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.cr-dark__body--note {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

/* ── Note paragraphs ── */
.cr-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
}

.cr-note--sm {
  font-size: 0.83rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

.cr-note--italic {
  font-size: 0.88rem;
  margin-top: 1rem;
  margin-bottom: 0;
  opacity: 0.85;
  font-style: italic;
}

.cr-note--result {
  font-size: 0.88rem;
  margin-top: 1rem;
  margin-bottom: 0;
  opacity: 0.8;
}

.cr-note--rationale {
  font-size: 0.85rem;
  margin-top: 1rem;
  opacity: 0.9;
}

.cr-note--reflection {
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
  opacity: 0.8;
}

/* ── Decision card header ── */
.cr-decision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cr-decision-header h4 {
  margin: 0;
}

/* ── Section label headings ── */
.cr-section-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cr-section-label--lg {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.cr-section-label--md {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

/* ── Block-level content text sizes ── */
.cr-body--sm {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cr-body--sm-flush {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.cr-body--sm-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cr-body--xs {
  font-size: 0.88rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cr-body--quote {
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
}

.cr-body--quote-sub {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.cr-body--paragraph {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.cr-body--top-spaced {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ── Tension label inner elements ── */
.cr-tension-label__name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cr-tension-label__role {
  font-size: 0.85rem;
  opacity: 0.8;
}

.cr-tension__body {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Venue box elements ── */
.cr-venue-box__heading {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.cr-venue-box__text {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Border radius modifiers ── */
.cr-box--radius-s {
  border-radius: 8px;
}

.cr-box--radius-m {
  border-radius: 10px;
}

.cr-box--radius-l {
  border-radius: 12px;
}

/* ── Layout spacing ── */
.cr-box--mt-gap {
  margin-top: 1.5rem;
}

.cr-box--mb-0 {
  margin-bottom: 0;
}

.cr-grid-auto--mb {
  margin-bottom: 1.5rem;
}

.cr-grid-auto--sm-my {
  margin: var(--space-5) 0;
}

.cr-grid-decision--gap-sm {
  gap: var(--space-5);
}

.cr-grid-2--gap-sm {
  gap: var(--space-4);
}

/* ── Learnings section helpers ── */
.cr-learnings__center {
  text-align: center;
  margin-bottom: 3rem;
}

.cr-learnings__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  margin: 1rem 0;
}

.cr-learnings__heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cr-learnings-highlight--padded {
  padding: 2rem;
}

.cr-learnings__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.cr-learnings__insight {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Browser demo positioning ── */
.cr-browser--inline {
  position: relative;
  margin: 2rem 0;
}

/* ── SVG icon opacity ── */
.cr-icon--muted {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Gallery bottom flush ── */
.cr-gallery-2col--flush {
  margin-bottom: 0;
}

/* ── Gallery top spacing ── */
.cr-gallery--mt {
  margin-top: var(--space-10);
}

/* ── Hidden section ── */
.cr-section--hidden {
  display: none;
}

/* ── Toast hidden by default (JS toggles) ── */
.cr-pub-toast--hidden {
  display: none;
}

/* ── No margin-top for h5 ── */
.cr-h--mt0 {
  margin-top: 0;
}

/* ── Last list item no bottom margin ── */
.cr-li--mb0 {
  margin-bottom: 0;
}

/* ── Related card tag ── */
.cr-related-card .cr-tag {
  padding: 0.5rem 0.75rem 0;
}

/* ── CMS prop location span ── */
.cr-cms-prop-loc {
  font-size: 0.66rem;
  color: rgba(0, 0, 0, 0.38);
}

/* ═══════════════════════════════════════════════
   CHRISTIE'S EDITORIAL DEMO — CSS
   ═══════════════════════════════════════════════ */

.cr-demo-section {
  padding: 5rem 0;
  background: var(--cr-bg);
}

.cr-demo-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr-red);
  margin-bottom: 1rem;
  font-weight: 500;
}

.cr-demo-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--cr-black);
  margin: 0.4rem 0 1rem;
  letter-spacing: -0.02em;
}

.cr-demo-intro {
  color: var(--cr-mid);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.cr-demo-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--cr-dim);
  margin: 1.5rem auto 0;
  letter-spacing: 0.02em;
  max-width: 640px;
}

/* Browser chrome */
.cr-browser {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.cr-browser-bar {
  background: #e8e6e3;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cr-browser-dots {
  display: flex;
  gap: 6px;
}

.cr-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.cr-dot-r {
  background: #ff5f57;
}

.cr-dot-y {
  background: #febc2e;
}

.cr-dot-g {
  background: #28c840;
}

.cr-browser-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: #555;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 380px;
}

.cr-browser-badge {
  font-size: 0.65rem;
  color: var(--cr-red);
  background: var(--cr-red-bg);
  border: 1px solid var(--cr-red-bd);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Demo viewport */
.cr-demo-viewport {
  background: #fff;
  max-height: 680px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cr-demo-viewport::-webkit-scrollbar {
  width: 5px;
}

.cr-demo-viewport::-webkit-scrollbar-track {
  background: #f4f2ef;
}

.cr-demo-viewport::-webkit-scrollbar-thumb {
  background: rgba(158, 35, 53, 0.25);
  border-radius: 4px;
}

/* Mini site header */
.cr-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cr-site-logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cr-red);
  line-height: 1.2;
}

.cr-site-logo span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--cr-mid);
}

.cr-site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--cr-mid);
}

.cr-site-nav span {
  cursor: default;
}

.cr-nav-active {
  color: var(--cr-red);
  font-weight: 600;
  border-bottom: 1.5px solid var(--cr-red);
  padding-bottom: 2px;
}

/* Category filter */
.cr-categories {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  scrollbar-width: none;
}

.cr-categories::-webkit-scrollbar {
  display: none;
}

.cr-cat {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.73rem;
  color: var(--cr-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cr-cat:hover {
  border-color: var(--cr-red);
  color: var(--cr-red);
}

.cr-cat-active {
  background: var(--cr-red);
  border-color: var(--cr-red);
  color: #fff;
}

/* Tag pill (inside demo) */
.cr-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cr-red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Image placeholders */
.cr-img-hk {
  background: linear-gradient(145deg, #0d1b2a 0%, #1a3a5c 30%, #2d6a8f 55%, #c9a959 80%, #9e2335 100%);
  position: relative;
}

.cr-img-hk::after {
  content: 'The Peak · Hong Kong';
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.cr-img-nyc {
  background: linear-gradient(145deg, #2c2015 0%, #4a3520 30%, #7a6040 60%, #c0a878 90%, #d4b896 100%);
  position: relative;
}

.cr-img-nyc::after {
  content: 'Upper East Side · New York';
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.cr-img-london {
  background: linear-gradient(145deg, #1c2534 0%, #2e3e50 35%, #4a6080 60%, #8fa8c0 90%, #b0c8d8 100%);
  position: relative;
}

.cr-img-london::after {
  content: 'Mayfair · London';
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.cr-img-tokyo {
  background: linear-gradient(145deg, #1a2215 0%, #2e3e28 35%, #5a7048 60%, #a0b890 90%, #c8d8b8 100%);
  position: relative;
}

.cr-img-tokyo::after {
  content: 'Minato-ku · Tokyo';
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.cr-img-property {
  background: linear-gradient(145deg, #2a2015 0%, #4a3828 40%, #8a7060 70%, #c8b8a0 100%);
}

/* Featured card */
.cr-featured-card {
  margin: 1.5rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}

.cr-featured-card:hover {
  box-shadow: 0 8px 32px rgba(158, 35, 53, 0.12);
  transform: translateY(-2px);
}

.cr-featured-img {
  height: 280px;
  width: 100%;
}

.cr-featured-body {
  padding: 1.5rem 1.75rem;
}

.cr-article-title {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cr-black);
  line-height: 1.4;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.cr-article-excerpt {
  font-size: 0.88rem;
  color: var(--cr-mid);
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.cr-article-meta {
  font-size: 0.72rem;
  color: var(--cr-dim);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.cr-sep {
  opacity: 0.4;
}

/* Card grid */
.cr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 2rem 2rem;
}

.cr-card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}

.cr-card:hover {
  box-shadow: 0 4px 20px rgba(158, 35, 53, 0.10);
  transform: translateY(-2px);
}

.cr-card-img {
  height: 140px;
}

.cr-card-body {
  padding: 1rem 1.1rem;
}

.cr-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cr-black);
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.cr-card-excerpt {
  font-size: 0.78rem;
  color: var(--cr-mid);
  line-height: 1.55;
  margin: 0 0 0.6rem;
}

/* Article view */
.cr-back-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--cr-red);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 1rem 2rem;
  letter-spacing: 0.02em;
}

.cr-back-btn:hover {
  opacity: 0.7;
}

.cr-view {}

.cr-article-hero {
  height: 320px;
  width: 100%;
}

.cr-article-layout {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.cr-article-tag {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr-red);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cr-article-h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  color: var(--cr-black);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.cr-article-byline {
  font-size: 0.75rem;
  color: var(--cr-dim);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cr-article-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cr-mid);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.cr-article-p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--cr-mid);
  margin-bottom: 1.25rem;
}

.cr-article-h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cr-black);
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
}

/* Pull quote */
.cr-pull-quote {
  border-left: 3px solid var(--cr-red);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--cr-red-bg);
  border-radius: 0 6px 6px 0;
}

.cr-pull-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cr-black);
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

.cr-pull-quote cite {
  font-size: 0.72rem;
  color: var(--cr-dim);
  letter-spacing: 0.06em;
}

/* Property spotlight */
.cr-property-spotlight {
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.cr-property-img {
  min-height: 160px;
}

.cr-property-details {
  padding: 1.25rem 1.5rem;
}

.cr-property-exclusive {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr-gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cr-property-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cr-black);
  margin: 0 0 0.2rem;
}

.cr-property-location {
  font-size: 0.78rem;
  color: var(--cr-dim);
  margin-bottom: 0.6rem;
}

.cr-property-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cr-black);
  margin-bottom: 0.4rem;
}

.cr-property-specs {
  font-size: 0.72rem;
  color: var(--cr-mid);
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.cr-property-cta {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--cr-red);
  border: 1px solid var(--cr-red-bd);
  border-radius: 4px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  transition: background 0.2s;
}

.cr-property-cta:hover {
  background: var(--cr-red-bg);
}

/* Related articles */
.cr-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cr-related-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr-dim);
  margin-bottom: 1rem;
}

.cr-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cr-related-card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.cr-related-card:hover {
  box-shadow: 0 4px 16px rgba(158, 35, 53, 0.10);
}

.cr-related-img {
  height: 100px;
}

.cr-related-card .cr-tag {
  padding: 0.5rem 0.75rem 0;
}

.cr-related-card-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cr-black);
  line-height: 1.4;
  padding: 0.3rem 0.75rem 0.75rem;
}

/* Interactions */
.cr-clickable {
  cursor: pointer;
}

.cr-card-fade {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   §27b — Christie's CMS Editor Demo
   ═══════════════════════════════════════════════════════════════ */

.cr-editor-section {
  padding: 5rem 0;
  background: var(--cr-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cr-editor-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* 3-panel CMS root */
.cr-cms-root {
  display: grid;
  grid-template-columns: 168px 1fr 296px;
  min-height: 560px;
  max-height: 560px;
  overflow: hidden;
}

/* Admin sidebar */
.cr-cms-sidebar {
  background: #1d2327;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.cr-cms-brand {
  padding: 0.85rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.cr-cms-nav {
  padding: 0.4rem 0;
  overflow-y: auto;
  flex: 1;
}

.cr-cms-nav-item {
  padding: 0.4rem 0.8rem;
  cursor: default;
  color: rgba(240, 230, 210, 0.6);
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-left: 2px solid transparent;
}

.cr-cms-nav-item.cr-cms-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--cr-red);
}

.cr-cms-nav-sub {
  margin: 0;
  padding: 0;
}

.cr-cms-nav-subitem {
  padding: 0.28rem 0.8rem 0.28rem 2.1rem;
  font-size: 0.71rem;
  color: rgba(240, 230, 210, 0.45);
  cursor: default;
}

.cr-cms-nav-subitem.cr-cms-active {
  color: #e2d6b8;
}

/* Editor main */
.cr-cms-main {
  background: #f0ede8;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Top bar */
.cr-cms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cr-cms-breadcrumb {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.38);
}

.cr-cms-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cr-cms-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.73rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.cr-cms-btn--ghost {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
  color: #333;
}

.cr-cms-btn--ghost:hover {
  background: #f5f5f5;
}

.cr-cms-btn--pub {
  background: var(--cr-red);
  color: #fff;
}

.cr-cms-btn--pub:hover {
  background: #8a1e2d;
}

.cr-cms-btn--pub.cr-published {
  background: #4caf50;
}

/* Market presets */
.cr-cms-presets {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  flex-wrap: wrap;
}

.cr-cms-presets-label {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.38);
  margin-right: 0.15rem;
  white-space: nowrap;
}

.cr-cms-preset {
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  font-size: 0.71rem;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #444;
  font-family: inherit;
  transition: all 0.15s;
}

.cr-cms-preset:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
}

.cr-cms-preset.cr-cms-active {
  background: var(--cr-red);
  color: #fff;
  border-color: var(--cr-red);
}

/* Fields */
.cr-cms-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cr-cms-field-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cr-cms-title-input {
  padding: 0.5rem 0.7rem;
  font-size: 0.86rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.cr-cms-title-input:focus {
  outline: 2px solid var(--cr-red);
  outline-offset: 0;
  border-color: transparent;
}

.cr-cms-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.cr-cms-select {
  padding: 0.3rem 0.55rem;
  font-size: 0.76rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}

/* Image picker */
.cr-cms-img-picker {
  display: flex;
  gap: 0.45rem;
}

.cr-cms-img-opt {
  flex: 1;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  overflow: hidden;
  text-align: center;
  background: rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s;
}

.cr-cms-img-opt:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.cr-cms-img-opt.cr-cms-active {
  border-color: var(--cr-red);
}

.cr-cms-img-opt span {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.63rem;
  color: rgba(0, 0, 0, 0.45);
}

.cr-img-thumb {
  width: 100%;
  height: 40px;
  display: block;
}

/* Body editor */
.cr-cms-editor-toolbar {
  display: flex;
  gap: 0.2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 0.3rem 0.45rem;
  flex-wrap: wrap;
}

.cr-tb-btn {
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  background: transparent;
  color: #555;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.1s;
}

.cr-tb-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.cr-tb-btn--sep {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  margin-left: 0.2rem;
  padding-left: 0.55rem;
  font-weight: 400;
}

.cr-cms-editor-body {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 0.65rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #333;
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
}

/* Property bridge */
.cr-cms-prop-bridge {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}

.cr-cms-prop-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(9, 130, 231, 0.1);
  color: #0982e7;
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
}

.cr-cms-prop-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.74rem;
  color: #444;
}

.cr-cms-prop-row:last-of-type {
  border-bottom: none;
}

.cr-cms-prop-name {
  flex: 1;
  font-weight: 500;
}

.cr-cms-prop-price {
  color: var(--cr-gold);
  font-weight: 500;
  white-space: nowrap;
}

.cr-cms-prop-live {
  font-size: 0.72rem;
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
  padding: 0.12rem 0.38rem;
  border-radius: 3px;
  white-space: nowrap;
}

.cr-cms-prop-status-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.67rem;
  color: rgba(0, 0, 0, 0.38);
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.cr-cms-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cr-cms-status-dot--live {
  background: #4caf50;
}

/* Preview pane */
.cr-cms-preview {
  border-left: 1px solid rgba(0, 0, 0, 0.09);
  background: var(--cr-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cr-cms-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  background: #e8e5e0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.cr-preview-bp-row {
  display: flex;
  gap: 0.25rem;
}

.cr-preview-bp {
  padding: 0.18rem 0.45rem;
  font-size: 0.66rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.cr-preview-bp.cr-bp-active {
  background: var(--cr-red);
  color: #fff;
  border-color: var(--cr-red);
}

.cr-cms-preview-body {
  flex: 1;
  overflow-y: auto;
  background: var(--cr-surface);
  transition: max-width 0.3s;
}

.cr-cms-preview-body.cr-pv-mobile {
  max-width: 260px;
  margin: 0 auto;
  border-left: 1px solid rgba(0, 0, 0, 0.07);
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

/* Preview article */
.cr-pv-hero {
  width: 100%;
  height: 130px;
  display: block;
}

.cr-pv-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cr-red);
  margin: 0.7rem 0.75rem 0.2rem;
}

.cr-pv-title {
  font-family: var(--cr-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cr-black);
  margin: 0 0.75rem 0.2rem;
  line-height: 1.3;
}

.cr-pv-byline {
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.38);
  margin: 0 0.75rem 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cr-pv-lead {
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.62);
  margin: 0 0.75rem 0.75rem;
}

.cr-pv-prop-card {
  margin: 0 0.75rem 0.75rem;
  background: var(--cr-gold-bg);
  border: 1px solid var(--cr-gold-bd);
  border-radius: 5px;
  overflow: hidden;
}

.cr-pv-prop-img {
  width: 100%;
  height: 60px;
  display: block;
}

.cr-pv-prop-body {
  padding: 0.5rem 0.65rem;
}

.cr-pv-prop-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cr-gold);
  margin-bottom: 0.15rem;
}

.cr-pv-prop-name {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--cr-black);
}

.cr-pv-prop-price {
  font-size: 0.7rem;
  color: var(--cr-gold);
  margin-top: 0.15rem;
}

/* Published toast */
.cr-pub-toast {
  position: absolute;
  top: 48px;
  right: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 3px solid #4caf50;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-size: 0.76rem;
  color: #222;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
  z-index: 10;
  animation: cr-toast-in 0.25s ease;
  max-width: 260px;
  line-height: 1.5;
}

.cr-pub-toast strong {
  color: #4caf50;
}

@keyframes cr-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RWD — CMS demo */
@media (max-width: 960px) {
  .cr-cms-root {
    grid-template-columns: 148px 1fr;
  }

  .cr-cms-preview {
    display: none;
  }
}

@media (max-width: 768px) {
  .cr-cms-root {
    grid-template-columns: 1fr;
  }

  .cr-cms-sidebar {
    display: none;
  }

  .cr-cms-meta-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── RWD — Christie's ── */
@media (max-width: 768px) {
  .cr-grid-2 {
    grid-template-columns: 1fr;
  }

  .cr-grid-3arrow {
    grid-template-columns: 1fr;
  }

  .cr-arrow {
    display: none;
  }

  .cr-grid-tension-row {
    grid-template-columns: 1fr;
  }

  .cr-gallery-2col {
    grid-template-columns: 1fr;
  }

  .cr-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cr-data-grid {
    grid-template-columns: 1fr;
  }

  .cr-property-spotlight {
    grid-template-columns: 1fr;
  }

  .cr-property-img {
    height: 120px;
  }

  .cr-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cr-related-grid {
    grid-template-columns: 1fr;
  }

  .cr-site-nav {
    display: none;
  }

  .cr-featured-card,
  .cr-card-grid {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .cr-categories {
    padding-left: 1rem;
  }

  .learnings-section {
    padding: clamp(40px, 6vh, 80px) var(--gutter);
  }
}

@media (max-width: 768px) {
  .cr-metrics-grid {
    grid-template-columns: 1fr;
  }

  .cr-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   §28 — ACY Connect Institutional Platform
   Prefix: acc-
   ═══════════════════════════════════════════════════════════════ */

/* ── Color tokens ── */
:root {
  --acc-blue: #6495ed;
  --acc-blue-bg: rgba(100, 149, 237, 0.08);
  --acc-blue-subtle: rgba(100, 149, 237, 0.04);
  --acc-green: #22c55e;
  --acc-green-bg: rgba(34, 197, 94, 0.10);
  --acc-green-subtle: rgba(34, 197, 94, 0.04);
  --acc-orange: #ffa726;
  --acc-orange-bg: rgba(255, 152, 0, 0.08);
}

/* ── Content boxes ── */
.acc-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-5);
}

.acc-box--dark {
  background: rgba(0, 0, 0, 0.30);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
}

.acc-box--sm {
  padding: var(--space-4);
}

.acc-box--blue {
  background: var(--acc-blue-subtle);
}

.acc-box--green {
  background: var(--acc-green-subtle);
  border-radius: 10px;
}

/* ── Section eyebrow ── */
.acc-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-subtle);
  border-radius: var(--radius-s);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* ── Flow section header (badge + title row) ── */
.acc-flow-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.acc-flow-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.acc-flow-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-s);
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.acc-flow-badge--orange {
  background: rgba(255, 152, 0, 0.12);
  color: var(--acc-orange);
}

.acc-flow-badge--green {
  background: rgba(34, 197, 94, 0.10);
  color: var(--acc-green);
}

/* ── Grid systems ── */
.acc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: 1.2rem;
}

.acc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: 1.2rem;
}

.acc-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.acc-grid-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: var(--space-5);
}

/* ── Step label / caption ── */
.acc-step-label {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.acc-step-label--orange {
  color: var(--acc-orange);
}

.acc-step-label--green {
  color: var(--acc-green);
}

.acc-step-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ── Visual grammar grid ── */
.acc-grammar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.acc-grammar-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.acc-grammar-swatch {
  flex-shrink: 0;
  display: inline-block;
  width: 28px;
  height: 16px;
  background: #f5c518;
  border-radius: 3px;
  margin-top: 3px;
}

.acc-grammar-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── User type table ── */
.acc-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.75rem;
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.acc-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.acc-table td {
  padding: 0.7rem 0.9rem;
}

.acc-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.acc-table td:not(:first-child) {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.acc-td--orange {
  color: var(--acc-orange);
}

.acc-td--green {
  color: var(--acc-green);
}

/* ── Documentation layers stack ── */
.acc-layers {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

/* ── Partial fill state grid ── */
.acc-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: 1.2rem;
}

.acc-state-cell--blue {
  background: var(--acc-blue-bg);
  padding: var(--space-4);
  border-radius: 6px;
}

.acc-state-cell--orange {
  background: var(--acc-orange-bg);
  padding: var(--space-4);
  border-radius: 6px;
}

/* ── FIX → TradeX mapping table ── */
.acc-mapping-table {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-7);
}

.acc-mapping-header {
  padding: 0.7rem 1.1rem;
  background: rgba(0, 0, 0, 0.30);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.acc-mapping-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.acc-mapping-arrow {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.15);
  flex: 1;
  text-align: center;
}

.acc-mapping-row {
  display: flex;
  align-items: stretch;
  padding: 0.85rem 1.1rem;
  gap: var(--space-4);
}

.acc-mapping-cell {
  flex: 1;
  min-width: 0;
}

.acc-mapping-cell__title {
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.acc-mapping-cell__body {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.acc-mapping-sep {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── TradeX image gallery ── */
.acc-tradex-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.acc-tradex-caption {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.acc-tradex-caption__text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Knowledge loop (production → concept flow) ── */
.acc-loop-flow {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-7);
  background: rgba(0, 0, 0, 0.20);
  border-radius: 10px;
  overflow: hidden;
}

.acc-loop-cell {
  flex: 1;
  padding: 1.1rem 1.3rem;
}

.acc-loop-badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.acc-loop-badge--orange {
  color: #ff6b00;
}

.acc-loop-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.acc-loop-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.acc-loop-sep {
  padding: 0 var(--space-4);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
}

/* ── Impact metrics ── */
.acc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

.acc-metric-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  text-align: center;
}

.acc-metric-num {
  font-size: 2rem;
  font-weight: 700;
}

.acc-metric-num--green {
  color: #4caf50;
}

.acc-metric-label {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── Sidebar: live status widget ── */
.acc-live-widget {
  margin-top: var(--space-7);
  border-radius: 10px;
  overflow: hidden;
}

.acc-live-header {
  padding: 0.6rem var(--space-4);
  background: rgba(34, 197, 94, 0.10);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc-green);
  display: inline-block;
  flex-shrink: 0;
}

.acc-live-label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--acc-green);
  font-weight: 700;
}

.acc-live-body {
  padding: 1.2rem var(--space-4);
}

.acc-live-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  transition: background var(--duration-fast) var(--ease);
}

.acc-live-link:last-child {
  margin-bottom: 0;
}

.acc-live-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Skills / transferable skills grid ── */
.acc-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin: var(--space-6) 0;
}

/* ── Docs frame wrapper ── */
.acc-docs-frame {
  margin: 3rem 0 3.5rem;
}

/* ── RWD (ACY Connect) ─────────────────────────── */
@media (max-width: 768px) {
  .acc-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .acc-grid-2 {
    grid-template-columns: 1fr;
  }

  .acc-grammar-grid {
    grid-template-columns: 1fr;
  }

  .acc-state-grid {
    grid-template-columns: 1fr;
  }

  .acc-tradex-grid-2 {
    grid-template-columns: 1fr;
  }

  .acc-skills-grid {
    grid-template-columns: 1fr;
  }

  .acc-mapping-row {
    flex-direction: column;
  }

  .acc-mapping-sep {
    display: none;
  }

  .acc-loop-flow {
    flex-direction: column;
  }

  .acc-loop-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .acc-grid-4 {
    grid-template-columns: 1fr;
  }

  .acc-grid-docs {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Misc modifiers ── */
.acc-step-label--muted {
  color: var(--text-muted);
}

.acc-step-label--spaced {
  margin-bottom: var(--space-4);
}

.acc-grammar-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
}

.acc-grammar-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

/* Inline code tag badges */
.acc-tag {
  flex-shrink: 0;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 1px;
  white-space: nowrap;
}

.acc-tag--lg {
  font-size: 0.72rem;
}

.acc-tag--gold {
  background: var(--accent-08);
}

.acc-tag--blue {
  background: var(--acc-blue-bg);
}

.acc-tag--green {
  color: var(--acc-green);
  background: var(--acc-green-bg);
}

.acc-tag--red {
  background: rgba(255, 107, 107, 0.08);
}

.acc-tag--orange {
  color: var(--acc-orange);
  background: var(--acc-orange-bg);
}

/* Heading color helpers */
.acc-h--orange {
  color: var(--acc-orange);
}

.acc-h--green {
  color: #50c878;
}

/* Knowledge loop link reset */
.acc-loop-title a {
  color: inherit;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   §29 — TradingCup Copy Trading Platform
   Prefix: tc-
   ═══════════════════════════════════════════════════════════════ */

/* ── Extended callout variants ── */
.callout--danger {
  background: rgba(255, 107, 107, 0.05);
}

.callout--orange {
  background: rgba(255, 131, 44, 0.05);
}

/* ── Phase / week badge pills ── */
.tc-phase-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.tc-phase-badge--red {
  background: rgba(255, 107, 107, 0.20);
}

.tc-phase-badge--blue {
  background: rgba(100, 149, 237, 0.20);
}

.tc-phase-badge--gold {
  background: var(--accent-hover);
}

.tc-phase-badge--orange {
  background: rgba(255, 165, 0, 0.20);
  color: var(--acc-orange);
}

/* ── Research step / failure header row ── */
.tc-step-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.tc-step-header h4 {
  margin: 0;
  color: var(--text-primary);
}

/* ── Compare grid (1fr auto 1fr) ── */
.tc-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: center;
  margin: var(--space-6) 0;
}

.tc-compare-sep {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.30);
  text-align: center;
}

/* ── Decision option header row ── */
.tc-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.tc-option-header h4 {
  margin: 0;
}

/* ── Status badges (REJECTED / WARNING / CHOSEN) ── */
.tc-status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.tc-status-badge--rejected {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.tc-status-badge--warning {
  background: rgba(255, 165, 0, 0.15);
  color: var(--acc-orange);
}

.tc-status-badge--chosen {
  background: rgba(100, 149, 237, 0.15);
  color: var(--acc-blue);
}

/* ── Legal checklist items ── */
.tc-check-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.tc-check-item:last-child {
  margin-bottom: 0;
}

.tc-check-icon {
  color: #50c878;
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ── Risk/compliance table status badges ── */
.tc-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.tc-badge--mandatory {
  background: rgba(255, 107, 107, 0.20);
}

.tc-badge--advisory {
  background: rgba(255, 165, 0, 0.20);
  color: var(--acc-orange);
}

/* ── Table header color modifier ── */
.tc-th--orange {
  color: #ff832c;
}

/* ── Dark architecture box (slightly lighter than acc-box--dark) ── */
.tc-dark-box {
  background: rgba(0, 0, 0, 0.20);
  border-radius: var(--radius-l);
  padding: var(--space-7);
  margin: var(--space-6) 0;
}

.tc-dark-box__image {
  text-align: center;
  margin-bottom: var(--space-7);
}

.tc-dark-box__caption {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: var(--space-4);
}

/* ── Heading with emoji/icon row ── */
.tc-icon-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0;
}

.tc-icon-inline {
  vertical-align: middle;
  margin-right: 0.4rem;
}

/* ── Compliance section heading + lead ── */
.tc-section-header {
  color: #ff832c;
  text-align: center;
  margin-top: 0;
}

.tc-section-lead {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-7);
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ── Verification legend (inside verification-notice) ── */
.verification-notice {
  margin: var(--space-7) 0;
}

.verification-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.verification-legend-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: 0.9rem;
}

.verification-legend-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.verification-legend-icon.tier-1 {
  background: rgba(76, 175, 80, 0.15);
}

.verification-legend-icon.tier-2 {
  background: rgba(100, 149, 237, 0.15);
}

.verification-legend-icon.tier-3 {
  background: rgba(255, 165, 0, 0.15);
}

.verification-legend__label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ── RWD (TradingCup) ── */
@media (max-width: 768px) {
  .tc-compare-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .tc-compare-sep {
    display: none;
  }

  .tc-option-header {
    flex-wrap: wrap;
  }

  .tc-dark-box {
    padding: var(--space-5);
  }
}

/* ============================================================
   §30 · PROJECT PAGE — PAWSROAM
   ============================================================ */

/* ── Grid overflow guard (global project-page fix) ── */
.project-detail-grid>* {
  min-width: 0;
}

/* ── Color tokens ── */
:root {
  --pr-green: #4ade80;
  --pr-green-bg: rgba(74, 222, 128, 0.05);
  --pr-orange-jp: #FF9800;
}

.pr-h--orange {
  color: var(--pr-orange-jp);
}

.pr-h--green {
  color: var(--pr-green);
}

/* ── Project badge ── */
.project-badge--pawsroam {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(74, 222, 128, 0.15);
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--pr-green);
  font-weight: 600;
}

/* ── Button variants ── */
.btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-small--live {
  background: rgba(74, 222, 128, 0.10);
  border-color: rgba(74, 222, 128, 0.30);
  color: var(--pr-green);
}

/* ── Hero image wrapper (PawsRoam-specific: dark panel, shadow) ── */
.pr-hero-wrapper {
  max-width: 900px;
  margin: 0 auto 80px;
  background: #111;
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pr-hero-wrapper img {
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ── Content boxes ── */
.pr-exec-box {
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.pr-next-box {
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.pr-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: var(--space-6);
}

.pr-box--surface {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.pr-box--green {
  background: rgba(74, 222, 128, 0.05);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.pr-box--green-sm {
  background: rgba(74, 222, 128, 0.04);
  border-radius: 8px;
  padding: 1.5rem;
}

.pr-box--dark {
  background: rgba(0, 0, 0, 0.30);
  border-radius: 10px;
  padding: 2rem;
}

/* ── Accent bars ── */
.pr-accent-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--pr-green);
}

.pr-accent-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pr-green), transparent);
}

/* ── Executive summary pillars ── */
.pr-exec-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pr-exec-pillar {
  padding-left: 1rem;
}

/* ── Blockquote ── */
.pr-blockquote {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--border-hover);
  border-radius: 8px;
}

.pr-blockquote__main {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-style: italic;
}

.pr-blockquote__trans {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-style: italic;
}

/* ── Research note ── */
.pr-research-note {
  background: rgba(74, 222, 128, 0.04);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.pr-research-note strong {
  color: rgba(74, 222, 128, 0.8);
}

/* ── Email component ── */
.pr-email-box {
  background: #0d1117;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.pr-email-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding-bottom: 1rem;
}

.pr-email-tag {
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.7;
}

.pr-email-p {
  margin: 0 0 0.8rem 0;
}

.pr-email-p--indent {
  margin: 0 0 0 1.2rem;
}

.pr-email-p--gap {
  margin: 0.8rem 0;
}

.pr-email-sig {
  margin: 0;
  font-size: 0.88rem;
}

.pr-email-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── Market stat cards ── */
.pr-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pr-stat-card {
  background: rgba(74, 222, 128, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
}

.pr-stat-label {
  margin-top: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pr-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.pr-stat-desc {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0;
}

/* ── Insights grid (problem cards) ── */
.pr-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ── Competitive table ── */
.pr-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pr-comp-table thead tr {
  background: rgba(74, 222, 128, 0.08);
}

.pr-comp-table th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.pr-comp-table th.pr-th--muted {
  color: rgba(255, 255, 255, 0.7);
}

.pr-comp-table td {
  padding: 0.7rem 0.9rem;
}

.pr-comp-table td.pr-td--name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.pr-comp-table td.pr-td--desc {
  color: rgba(255, 255, 255, 0.6);
}

.pr-comp-table td.pr-td--gap {
  color: #ff9080;
}

.pr-comp-note {
  font-size: 0.85rem;
  margin: 1rem 0 0 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  font-style: italic;
}

/* ── Photo grids ── */
.pr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pr-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.pr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.pr-img-rounded {
  border-radius: 8px;
  overflow: hidden;
}

.pr-img-rounded img {
  width: 100%;
  height: auto;
  display: block;
}

.pr-img-full {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.pr-img-full img {
  width: 100%;
  display: block;
}

/* ── Captions + sub-heads ── */
.pr-caption {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.pr-caption--center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pr-caption--mb {
  margin-bottom: 3rem;
}

.pr-sub-head {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.pr-section-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

/* ── Akihabara feature (image + text) ── */
.pr-feature-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  background: rgba(74, 222, 128, 0.04);
  border-radius: 10px;
  overflow: hidden;
}

.pr-feature-2col__img {
  overflow: hidden;
  min-height: 240px;
}

.pr-feature-2col__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
}

.pr-feature-2col__body {
  padding: 1.5rem;
}

/* ── 3-tier marker cards (dynamic marker system) ── */
.pr-marker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.pr-marker-card {
  padding: 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.pr-marker-card--gold {
  background: rgba(212, 175, 55, 0.05);
}

.pr-marker-card--green {
  background: rgba(74, 222, 128, 0.05);
}

/* ── Data layer / pet profile grid ── */
.pr-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ── Main three pillars (PawStar / PawsSafe / Ecosystem) ── */
.pr-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.pr-pillar-card {
  padding: 2.5rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.pr-pillar-card--green {
  background: rgba(74, 222, 128, 0.05);
}

.pr-pillar-watermark {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 5rem;
  opacity: 0.05;
  transform: rotate(15deg);
  pointer-events: none;
  line-height: 1;
}

.pr-pillar-watermark--lo {
  opacity: 0.10;
}

.pr-pillar-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.pr-pillar-sub--dim2 {
  color: rgba(255, 255, 255, 0.6);
}

/* ── 6-tier verification steps ── */
.pr-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pr-step-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pr-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.6;
  display: block;
}

/* ── Revenue stream cards ── */
.pr-revenue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.pr-revenue-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 12px;
  border-top: 3px solid var(--pr-green);
}

/* ── Go-to-market phasing ── */
.pr-gtm-box {
  background: rgba(0, 0, 0, 0.40);
  border-radius: 16px;
  padding: 2.5rem;
  overflow: hidden;
  position: relative;
}

.pr-gtm-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--pr-green);
  color: #000;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-bottom-left-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pr-phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pr-phase-card {
  background: rgba(74, 222, 128, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
}

.pr-phase-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── Firebase metrics ── */
.pr-firebase-box {
  background: rgba(74, 222, 128, 0.06);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.pr-firebase-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.5rem 0;
}

.pr-firebase-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pr-metric-big {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.pr-metric-label-sm {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ── Strategic alignment ── */
.pr-strategic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.pr-strategic-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ── Internationalization ── */
.pr-i18n-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

/* ── Regulatory compliance ── */
.pr-reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pr-reg-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 10px;
}

.pr-reg-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.pr-reg-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pr-reg-badge--orange {
  background: rgba(255, 152, 0, 0.15);
  color: var(--pr-orange-jp);
}

.pr-reg-badge--green {
  background: rgba(74, 222, 128, 0.15);
  color: var(--pr-green);
}

.pr-reg-badge--blue {
  background: rgba(100, 149, 237, 0.15);
  color: var(--acc-blue);
}

.pr-reg-badge--gold {
  background: var(--accent-15);
  color: var(--accent);
}

.pr-reg-badge--red {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.pr-reg-label {
  font-size: 0.85rem;
  margin: 0 0 0.8rem;
  opacity: 0.6;
}

.pr-reg-body {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Cross-jurisdiction comparison ── */
.pr-jurisd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pr-jurisd-note {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── Next steps (What's next) ── */
.pr-next-date {
  background: rgba(74, 222, 128, 0.15);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pr-next-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ── Timeline ── */
.pr-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-timeline__date {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.pr-timeline__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ── B2C proof cards ── */
.pr-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pr-proof-card {
  background: rgba(74, 222, 128, 0.05);
  padding: 2rem;
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pr-proof-icon {
  background: rgba(74, 222, 128, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Retrospective cards ── */
.pr-retro-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pr-retro-card {
  background: rgba(255, 107, 107, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
}

/* ── Sidebar origin quote ── */
.pr-origin-quote {
  margin-top: 2rem;
  padding: 1.2rem;
  background: rgba(74, 222, 128, 0.07);
  border-radius: 8px;
}

.pr-origin-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: block;
}

.pr-origin-text {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
  font-style: italic;
}

.pr-origin-attr {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0.3rem 0 0 0;
  font-style: italic;
}

/* ── Risk matrix (moved from PawsRoam <style> block) ── */
.risk-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.risk-matrix thead th {
  background: rgba(13, 17, 23, 0.8);
  color: var(--pr-green);
  padding: 1.2rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  border-bottom: 2px solid rgba(74, 222, 128, 0.2);
}

.risk-matrix tbody td {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
  transition: background 0.2s ease;
}

.risk-matrix tbody tr:last-child td {
  border-bottom: none;
}

.risk-matrix tbody tr:hover td {
  background: rgba(74, 222, 128, 0.02);
}

.risk-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
}

.badge-high {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.badge-med {
  background: rgba(255, 179, 71, 0.12);
  color: #ffb347;
  border-color: rgba(255, 179, 71, 0.3);
}

.badge-low {
  background: rgba(74, 222, 128, 0.12);
  color: var(--pr-green);
  border-color: rgba(74, 222, 128, 0.3);
}

.risk-category-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #fff;
}

.risk-category-cell svg {
  color: var(--pr-green);
  flex-shrink: 0;
  opacity: 0.8;
}

.risk-row__mitigation {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ── RWD (PawsRoam) ── */
@media (max-width: 768px) {
  .pr-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .pr-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .pr-tier-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pr-feature-2col {
    grid-template-columns: 1fr;
  }

  .pr-i18n-grid {
    grid-template-columns: 1fr;
  }

  .pr-jurisd-grid {
    grid-template-columns: 1fr;
  }

  .pr-strategic-grid {
    grid-template-columns: 1fr;
  }

  .pr-revenue-grid {
    grid-template-columns: 1fr;
  }

  .pr-proof-card {
    grid-template-columns: 1fr;
  }

  .pr-exec-box,
  .pr-next-box,
  .pr-gtm-box,
  .pr-revenue-card,
  .pr-box--surface {
    padding: 1.5rem;
  }

  .pr-email-box {
    padding: 1.25rem 1.5rem;
  }

  .risk-matrix,
  .risk-matrix thead,
  .risk-matrix tbody,
  .risk-matrix th,
  .risk-matrix td,
  .risk-matrix tr {
    display: block;
  }

  .risk-matrix thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .risk-matrix tr {
    margin-bottom: 2rem;
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
  }

  .risk-matrix td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .risk-matrix td:last-child {
    border-bottom: none;
    text-align: left;
    padding-left: 1.2rem;
  }

  .risk-matrix td::before {
    position: absolute;
    top: 1.5rem;
    left: 1.2rem;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    color: var(--pr-green);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
  }

  .risk-category-cell {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {

  .pr-grid-3,
  .pr-grid-4 {
    grid-template-columns: 1fr;
  }

  .pr-tier-grid {
    grid-template-columns: 1fr;
  }

  .pr-hero-wrapper {
    padding: 1rem;
  }
}

/* ================================================================
   31. FINLOGIX PAGE (flx-)
   Breakpoints: mobile 375–768 | tablet 769–1280 | desktop 1280+
   ================================================================ */

/* ── Context box (institutional context in project header) ── */
.flx-context-box {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Bloomberg comparison box ── */
.flx-bloomberg-box {
  background: rgba(212, 175, 55, 0.05);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.flx-bloomberg-table {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* ── Decision framework (3-option A/B/C cards) ── */
.flx-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.flx-decision-card {
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
}

.flx-decision-card--red {
  background: rgba(255, 59, 48, 0.05);
}

.flx-decision-card--orange {
  background: rgba(255, 152, 0, 0.05);
}

.flx-decision-card--cyan {
  background: rgba(0, 209, 255, 0.05);
}

.flx-decision-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.flx-decision-badge--red {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
}

.flx-decision-badge--orange {
  background: rgba(255, 152, 0, 0.15);
  color: #ffa500;
}

.flx-decision-badge--cyan {
  background: rgba(0, 209, 255, 0.15);
  color: #00d1ff;
}

.flx-decision-note {
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.flx-decision-note p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-tertiary);
}

.flx-decision-note strong {
  color: var(--text-secondary);
}

/* ── ASIC regulatory design section ── */
.flx-asic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: var(--space-5) 0;
}

.flx-asic-card {
  border-radius: 10px;
  padding: 1.75rem;
}

.flx-asic-card--red {
  background: rgba(255, 107, 107, 0.05);
}

.flx-asic-card--orange {
  background: rgba(255, 152, 0, 0.05);
}

.flx-asic-card--blue {
  background: rgba(100, 149, 237, 0.05);
}

.flx-asic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.flx-asic-header h4 {
  margin: 0;
  font-size: 1rem;
}

.flx-asic-card--orange .flx-asic-header h4 {
  color: #ffa500;
}

.flx-asic-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.flx-asic-tag--red {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
}

.flx-asic-tag--orange {
  background: rgba(255, 152, 0, 0.12);
  color: #ffa500;
}

.flx-asic-tag--blue {
  background: rgba(100, 149, 237, 0.12);
  color: #6495ed;
}

.flx-asic-inner {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.flx-asic-inner strong {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Platform depth (stacked artifact grid) ── */
.flx-depth-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.flx-depth-img-wrap {
  max-width: 900px;
}

.flx-depth-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.flx-depth-img-wrap {
  border-radius: 10px;
  overflow: hidden;
}

.flx-depth-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.flx-depth-cap {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.flx-depth-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}

/* ── Key takeaway (end of §5) ── */
.flx-takeaway {
  background: var(--accent-05);
  border-radius: 12px;
  padding: var(--space-6);
  margin: 4rem 0;
}

.flx-takeaway h3 {
  margin-top: 0;
}

/* ── Widget architecture grid ── */
.flx-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.flx-widget-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 6px;
}

.flx-title--cyan {
  color: #00d1ff;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ── Colour helpers ── */
.flx-h4--orange {
  color: #ffa726;
  margin-top: 0;
}

.flx-h5--cyan {
  color: #00d1ff;
  margin-top: 0;
}

.flx-h5--green {
  color: #4caf50;
  margin-top: 0;
}

.flx-text--green {
  color: #4caf50;
  font-weight: 600;
}

/* ── State evolution container (V1/V2 density visualiser) ── */
.state-evolution-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 3rem 0;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.state-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 200px;
}

.state-info {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v1-indicator,
.v2-indicator {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.state-tag {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.state-tag.v1::before {
  content: "X";
  font-size: 0.9rem;
}

.state-tag.v2::before {
  content: "V";
  font-size: 0.9rem;
}

.state-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
}

.state-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.density-visualizer {
  padding: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.density-v1 {
  background: repeating-linear-gradient(45deg,
      rgba(255, 107, 107, 0.02), rgba(255, 107, 107, 0.02) 10px,
      rgba(0, 0, 0, 0) 10px, rgba(0, 0, 0, 0) 20px);
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
}

.term-block {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.density-v2 {
  background: radial-gradient(circle at center, rgba(100, 149, 237, 0.08) 0%, transparent 80%);
}

.clean-dashboard {
  width: 85%;
  height: 85%;
  background: rgba(13, 13, 18, 0.6);
  border: 1px solid rgba(100, 149, 237, 0.15);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 220px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.dashboard-3d-float {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-chart-widget {
  width: 100%;
  background: rgba(20, 20, 26, 0.8);
  border: 1px solid rgba(100, 149, 237, 0.3);
  border-radius: 8px;
  overflow: hidden;
  animation: flxMasterFloat 5s ease-in-out infinite alternate;
}

.chart-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.chart-pair {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

.chart-live-price {
  font-size: 1.1rem;
  color: #4caf50;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trend-up {
  font-size: 0.7rem;
  animation: flxArrowPulse 2s infinite;
}

.svg-chart-container {
  width: 100%;
  height: 140px;
  position: relative;
}

.floating-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.data-metric {
  letter-spacing: -0.5px;
}

.dashboard-sidebar {
  background: rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-panel {
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-panel.active {
  background: var(--accent-10);
  border-color: var(--accent-40);
}

@keyframes flxMasterFloat {
  0% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(0);
  }

  100% {
    transform: perspective(1000px) rotateX(4deg) rotateY(1deg) translateY(-12px);
  }
}

@keyframes flxArrowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ── Design process section (from HTML style block #1) ── */
.design-process-section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  margin: 4rem 0;
}

.process-header {
  text-align: center;
  margin-bottom: 3rem;
}

.process-header h3 {
  color: #00d1ff;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.process-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.design-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin: var(--space-6) 0;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showcase-item.reverse {
  flex-direction: column;
}

.showcase-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 209, 255, 0.15);
  transition: transform var(--duration-base) var(--ease);
}

.showcase-image:hover {
  transform: translateY(-2px);
}

.showcase-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.showcase-content {
  padding: 1.5rem;
}

.showcase-number {
  font-size: 3rem;
  font-weight: 200;
  color: rgba(0, 209, 255, 0.3);
  line-height: 1;
  margin-bottom: 1rem;
}

.showcase-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00d1ff;
  margin-bottom: 1rem;
}

.showcase-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.design-decision-box {
  background: rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-top: 1.5rem;
}

.design-decision-box h5 {
  color: #00d1ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.design-decision-box p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
  font-style: italic;
}

.design-decision-box--centered {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.full-width-showcase {
  margin: 4rem 0;
}

.full-width-showcase img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 209, 255, 0.15);
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* ── Before/After comparison ── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.comparison-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-header {
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-before .comparison-header {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.comparison-after .comparison-header {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.comparison-image {
  padding: 1rem;
}

.comparison-image img {
  width: 100%;
  border-radius: 8px;
}

.comparison-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.comparison-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.statistical-note--lg {
  margin-top: 2rem;
}

/* ── Metrics (from HTML style block #2) ── */
.metric-card-enhanced {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid #4caf50;
  border-radius: 8px;
  padding: 2rem;
  margin: var(--space-5) 0;
}

.metric-card-enhanced--blue {
  border-top-color: #6495ed;
}

.metric-headline {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #4caf50;
  line-height: 1;
}

.metric-card-enhanced--blue .metric-number {
  color: #6495ed;
}

.metric-label {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 300;
}

.metric-methodology {
  font-size: 0.95rem;
  line-height: 1.7;
}

.metric-methodology h5 {
  color: #4caf50;
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.metric-card-enhanced--blue .metric-methodology h5 {
  color: #6495ed;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.results-table th {
  background: rgba(76, 175, 80, 0.15);
  padding: 12px 16px;
  text-align: left;
  color: #4caf50;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.metric-card-enhanced--blue .results-table th {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

.results-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table .improvement-row {
  background: rgba(76, 175, 80, 0.08);
  font-weight: 600;
}

.results-table strong {
  color: #4caf50;
}

.statistical-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  padding: 12px 16px;
  background: rgba(100, 149, 237, 0.08);
  border-top: 2px solid rgba(100, 149, 237, 0.5);
  border-radius: 4px;
  line-height: 1.6;
}

.statistical-note strong {
  color: #6495ed;
}

.benchmark-list {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.benchmark-list li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.benchmark-list strong {
  color: #4caf50;
  font-weight: 600;
}

.data-highlight {
  background: var(--accent-10);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  color: var(--accent);
}

.methodology-badge {
  display: inline-block;
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 8px;
  text-transform: uppercase;
}

.flx-metrics-intro {
  font-size: 1.05rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.flx-italic-note {
  margin-top: 1rem;
  font-style: italic;
  opacity: 0.8;
}

/* ── Verification cards ── */
.flx-verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.flx-verify-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  transition: background var(--duration-fast) var(--ease);
}

.flx-verify-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.flx-verify-card[data-tier="1"] .flx-verify-link:hover {
  color: #4caf50;
}

.flx-verify-card[data-tier="2"] .flx-verify-link:hover {
  color: #ff9800;
}

.flx-verify-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.flx-verify-card__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.flx-verify-card__icon {
  font-size: 1.2rem;
}

.flx-verify-card__value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.flx-verify-card__sub {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin: 0;
}

.flx-verify-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.75rem 0 1rem;
}

.flx-verify-card__verify {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.flx-verify-link {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--duration-fast) var(--ease);
}

/* ── Evidence list ── */
.flx-evidence {
  margin-top: 3rem;
  padding-top: 2rem;
}

.flx-evidence__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 1.5rem;
}

.flx-evidence__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flx-evidence__item {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.flx-evidence__item:last-child {
  border-bottom: none;
}

.flx-evidence__item a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.flx-evidence__item a:hover {
  color: var(--text-primary);
}

/* ── Sidebar challenge cards ── */
.flx-sidebar-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.flx-sidebar-card p {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ── B2C section footer note ── */
.flx-b2c-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 1rem;
  background: var(--accent-08);
  border-radius: 6px;
  opacity: 0.9;
}

/* ── Density Demo (V1 vs V2 interactive) ── */
.flx-density-demo {
  margin: 2rem 0;
}

.flx-density-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  width: fit-content;
}

.flx-density-tab {
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
}

.flx-density-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.flx-density-tab__note {
  opacity: 0.5;
  font-weight: 400;
  font-size: 0.75rem;
}

.flx-density-tab.flx-tab-active {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
}

.flx-density-tab--v1.flx-tab-active {
  border-bottom: 2px solid rgba(255, 107, 107, 0.6);
}

.flx-density-tab--v2.flx-tab-active {
  border-bottom: 2px solid #0082d9;
}

.flx-density-panel {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 var(--radius-m) var(--radius-m) var(--radius-m);
  overflow: hidden;
}

.flx-density-panel.flx-panel-active {
  display: block;
}

/* Light-theme trading UI wrapper */
.flx-ui-chrome {
  background: #f5f6f8;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.flx-ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a2332;
  padding: 0.55rem 1rem;
  gap: 1rem;
}

.flx-ui-logo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.flx-ui-logo span {
  color: #0082d9;
}

.flx-ui-topnav {
  display: flex;
  gap: 1.2rem;
}

.flx-ui-topnav a {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  cursor: default;
}

.flx-ui-topnav a.active {
  color: #fff;
}

.flx-ui-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}

.flx-ui-account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}

/* V1 — Too Clean body */
.flx-v1-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 2rem;
  background: #fff;
  gap: 1.5rem;
}

.flx-v1-chart-area {
  width: 100%;
  max-width: 700px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.flx-v1-chart-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.flx-v1-pair {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2332;
}

.flx-v1-price {
  font-size: 1.4rem;
  font-weight: 300;
  color: #1a2332;
  letter-spacing: -0.02em;
}

.flx-v1-change {
  font-size: 0.78rem;
  color: #4caf50;
}

.flx-v1-svg {
  width: 100%;
  height: 120px;
  display: block;
}

.flx-v1-empty-hint {
  width: 100%;
  max-width: 700px;
  background: rgba(255, 107, 107, 0.06);
  border: 1px dashed rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flx-v1-empty-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: rgba(255, 107, 107, 0.7);
}

.flx-v1-empty-text {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
}

.flx-v1-empty-text strong {
  color: rgba(255, 107, 107, 0.8);
}

.flx-v1-feedback__stat {
  font-style: normal;
  color: #e67e22;
}

.flx-v1-feedback {
  width: 100%;
  max-width: 700px;
  background: #fff8f0;
  border-left: 3px solid #ff9800;
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: #666;
  font-style: italic;
}

/* V2 — Contextual Modular body */
.flx-v2-body {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  min-height: 480px;
  background: #f5f6f8;
}

.flx-v2-watchlist {
  background: #fff;
  border-right: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flx-v2-panel-header {
  padding: 0.55rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flx-v2-panel-header span {
  font-weight: 400;
  color: #bbb;
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
}

.flx-v2-wl-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid #f0f0f0;
  gap: 0.5rem;
  cursor: default;
  transition: background 0.1s;
}

.flx-v2-wl-item:hover {
  background: #f5f6f8;
}

.flx-v2-wl-item.active {
  background: #eef4ff;
}

.flx-v2-wl-sym {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a2332;
}

.flx-v2-wl-name {
  font-size: 0.72rem;
  color: #999;
}

.flx-v2-wl-price {
  font-size: 0.78rem;
  font-weight: 500;
  color: #1a2332;
  text-align: right;
}

.flx-v2-wl-chg {
  font-size: 0.65rem;
  text-align: right;
}

.flx-v2-wl-chg.up {
  color: #4caf50;
}

.flx-v2-wl-chg.dn {
  color: #f44336;
}

/* V2 main chart area */
.flx-v2-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flx-v2-chart-bar {
  padding: 0.55rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flx-v2-sym {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2332;
}

.flx-v2-price-big {
  font-size: 1.35rem;
  font-weight: 300;
  color: #1a2332;
  letter-spacing: -0.02em;
}

.flx-v2-chg-row {
  font-size: 0.75rem;
}

.flx-v2-chg-row.up {
  color: #4caf50;
}

.flx-v2-chg-row.dn {
  color: #f44336;
}

.flx-v2-bid-ask {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
}

.flx-v2-bid {
  color: #f44336;
}

.flx-v2-ask {
  color: #4caf50;
}

.flx-v2-bid strong,
.flx-v2-ask strong {
  font-size: 0.88rem;
}

.flx-v2-chart-container {
  flex: 1;
  padding: 0.75rem;
  background: #fafbfc;
  position: relative;
}

.flx-v2-timeframes {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.flx-v2-tf {
  padding: 0.18rem 0.45rem;
  font-size: 0.65rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: #999;
  transition: all 0.15s;
}

.flx-v2-tf:hover {
  background: #e8eaed;
  color: #555;
}

.flx-v2-tf.active {
  background: #0082d9;
  color: #fff;
  border-color: #0082d9;
}

.flx-v2-indicators {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.flx-v2-ind-btn {
  padding: 0.15rem 0.5rem;
  font-size: 0.63rem;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  font-family: inherit;
  background: #fff;
  color: #666;
  transition: all 0.15s;
}

.flx-v2-ind-btn.active {
  border-color: #0082d9;
  color: #0082d9;
  background: #eef4ff;
}

.flx-v2-svg-wrap {
  width: 100%;
}

.flx-v2-archetype-bar {
  padding: 0.4rem 0.75rem;
  background: #eef4ff;
  border-top: 1px solid #d0e4ff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: #0082d9;
}

.flx-v2-arch-btn {
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  border-radius: 20px;
  border: 1px solid #0082d9;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: #0082d9;
  transition: all 0.15s;
}

.flx-v2-arch-btn.active {
  background: #0082d9;
  color: #fff;
}

/* V2 right panel */
.flx-v2-right {
  background: #fff;
  border-left: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flx-v2-right-tabs {
  display: flex;
  border-bottom: 1px solid #e8eaed;
}

.flx-v2-rtab {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bbb;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}

.flx-v2-rtab.active {
  color: #0082d9;
  border-bottom-color: #0082d9;
}

.flx-v2-right-content {
  flex: 1;
  overflow-y: auto;
}

/* Order book */
.flx-v2-ob-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  padding: 0.2rem 0.8rem;
  font-size: 0.69rem;
  font-family: 'Roboto Mono', monospace;
  gap: 0.5rem;
  position: relative;
}

.flx-v2-ob-row.header {
  color: #999;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.3rem;
}

.flx-v2-ob-row.ask .flx-v2-ob-price {
  color: #f44336;
}

.flx-v2-ob-row.bid .flx-v2-ob-price {
  color: #4caf50;
}

.flx-v2-ob-bar-cell {
  position: relative;
}

.flx-v2-ob-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--ob-width, 0%);
  opacity: 0.12;
  border-radius: 2px;
}

.flx-v2-ob-bar.ask {
  background: #f44336;
}

.flx-v2-ob-bar.bid {
  background: #4caf50;
}

.flx-v2-ob-mid {
  text-align: center;
  padding: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a2332;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Roboto Mono', monospace;
}

/* News feed */
.flx-v2-news-item {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: default;
}

.flx-v2-news-item:hover {
  background: #f9f9fb;
}

.flx-v2-news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0082d9;
  margin-bottom: 0.2rem;
}

.flx-v2-news-hl {
  font-size: 0.72rem;
  color: #1a2332;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.flx-v2-news-time {
  font-size: 0.72rem;
  color: #bbb;
}

/* V2 order entry */
.flx-v2-order-entry {
  padding: 0.75rem 0.8rem;
  background: #f9fbff;
  border-top: 1px solid #e8eaed;
}

.flx-v2-oe-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.6rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.flx-v2-oe-tab {
  flex: 1;
  text-align: center;
  padding: 0.3rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #999;
  border: none;
  font-family: inherit;
}

.flx-v2-oe-tab.buy.active {
  background: #4caf50;
  color: #fff;
}

.flx-v2-oe-tab.sell.active {
  background: #f44336;
  color: #fff;
}

.flx-v2-oe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.flx-v2-oe-field label {
  display: block;
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 0.15rem;
}

.flx-v2-oe-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  color: #1a2332;
  font-family: inherit;
}

.flx-v2-oe-submit {
  width: 100%;
  padding: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  transition: opacity 0.15s;
}

.flx-v2-oe-submit.buy {
  background: #4caf50;
}

.flx-v2-oe-submit.sell {
  background: #f44336;
}

.flx-v2-oe-submit:hover {
  opacity: 0.88;
}

/* V2 analyst mode extras */
.flx-v2-analyst-strip {
  display: none;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-top: 1px solid #e8eaed;
  gap: 1rem;
  font-size: 0.7rem;
  color: #555;
}

.flx-v2-analyst-strip.visible {
  display: flex;
  flex-wrap: wrap;
}

.flx-v2-greek {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f6f8;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  min-width: 56px;
}

.flx-v2-greek-label {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flx-v2-greek-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a2332;
}

.flx-v2-greek-value--warn {
  color: #ff9800;
}

/* RWD */
@media (max-width: 900px) {
  .flx-v2-body {
    grid-template-columns: 180px 1fr;
  }

  .flx-v2-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .flx-v2-body {
    grid-template-columns: 1fr;
  }

  .flx-v2-watchlist {
    display: none;
  }
}

/* ── RWD ── */
@media (max-width: 968px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .flx-decision-grid {
    grid-template-columns: 1fr;
  }

  .state-panel {
    grid-template-columns: 1fr;
  }

  .flx-verify-grid {
    grid-template-columns: 1fr;
  }

  .design-process-section {
    padding: 2rem 1.5rem;
  }

  .process-header h3 {
    font-size: 1.4rem;
  }

  .metric-number {
    font-size: 2.5rem;
  }
}

/* ════════════════════════════════════════════════════════════════════
   § 32 — PROJECT: REACTΩ DESIGN SYSTEM
   Open-source design system built on 5 years of FinTech product design.
   Prefix: roa-  |  Shared: tech-diagram, arch-*, sb-*, perspective-*
   ════════════════════════════════════════════════════════════════════ */

/* ── Shared visual components (migrated from archive) ── */

.tech-diagram-container {
  background: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.tech-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
  flex-shrink: 0;
}

.tech-diagram-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.wf-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.arch-monorepo {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.arch-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.arch-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 11px;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-box.core {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #fff;
  justify-content: center;
}

.arch-arrow {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.sandbox-view {
  display: flex;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  min-height: 160px;
}

.sb-code {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}

.sb-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.sb-line.pink {
  background: rgba(236, 72, 153, 0.5);
  width: 40%;
}

.sb-line.blue {
  background: rgba(99, 102, 241, 0.5);
  width: 70%;
  margin-left: 12px;
}

.sb-line.yellow {
  background: rgba(250, 204, 21, 0.5);
  width: 50%;
  margin-left: 12px;
}

.sb-line.bracket {
  width: 10px;
}

.sb-preview {
  flex: 1;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.sb-component {
  padding: 10px 20px;
  border-radius: 6px;
  background: linear-gradient(45deg, var(--accent-nebula), #4f46e5);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.tech-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.perspective-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s ease;
}

.perspective-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px var(--card-glow, rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.15);
}

.pc-business {
  --card-glow: var(--accent-15);
  --card-accent: #c9a959;
}

.pc-ux {
  --card-glow: rgba(100, 149, 237, 0.15);
  --card-accent: #6495ed;
}

.pc-eng {
  --card-glow: rgba(76, 175, 80, 0.15);
  --card-accent: #4CAF50;
}

.pc-reg {
  --card-glow: rgba(255, 152, 0, 0.15);
  --card-accent: #FF9800;
}

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pc-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--card-accent, var(--text-secondary));
  color: #fff;
  box-shadow: 0 0 20px var(--card-glow, rgba(255, 255, 255, 0.03));
}

.pc-huge-metric {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--card-accent, var(--accent));
  line-height: 1;
  text-align: right;
}

.pc-huge-metric span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
  font-family: inherit;
}

.pc-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.pc-content {
  position: relative;
  z-index: 2;
}

.pc-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ── ReactOmega page-specific ── */

.gallery-grid a img {
  border-radius: var(--radius-s);
}

.roa-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.roa-list {
  font-size: 0.93rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.2rem;
}

.roa-principle-card {
  background: var(--accent-05);
  padding: 1.5rem;
  border-radius: 8px;
}

.roa-principle-num {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 300;
}

.roa-principle-cap {
  font-size: 0.82rem;
  opacity: 0.6;
  margin-bottom: 0;
  margin-top: 0.8rem;
  font-style: italic;
}

.card-table--gold-head thead tr {
  background: var(--accent-10);
}

.card-table--compact th,
.card-table--compact td {
  padding: 0.8rem 1rem;
}

.roa-cell--center {
  text-align: center;
  font-weight: 600;
}

.roa-cell--small {
  font-size: 0.88rem;
}

.roa-motion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.roa-motion-card {
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.roa-motion-card--green {
  background: rgba(76, 175, 80, 0.05);
}

.roa-motion-card--blue {
  background: rgba(100, 149, 237, 0.05);
}

.roa-motion-card--gold {
  background: var(--accent-05);
}

.roa-motion-label {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.roa-motion-label--green {
  color: #4CAF50;
}

.roa-motion-label--blue {
  color: #6495ED;
}

.roa-motion-sub {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0.3rem 0 1rem;
}

.roa-arch-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.roa-arch-option {
  padding: 1.5rem;
  border-radius: 8px;
}

.roa-arch-option--red {
  background: rgba(255, 107, 107, 0.05);
}

.roa-arch-option--blue {
  background: rgba(100, 149, 237, 0.05);
}

.roa-arch-option--gold {
  background: var(--accent-05);
}

.roa-arch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.roa-arch-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.roa-arch-badge--rejected {
  background: rgba(255, 107, 107, 0.2);
  color: rgba(255, 107, 107, 0.9);
}

.roa-arch-badge--rejected-blue {
  background: rgba(100, 149, 237, 0.2);
  color: rgba(100, 149, 237, 0.9);
}

.roa-arch-badge--chosen {
  background: var(--accent-hover);
  color: var(--accent);
}

.roa-arch-pros {
  display: flex;
  gap: var(--space-5);
  margin-top: 0.8rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.roa-arch-pros .pro {
  color: #4CAF50;
}

.roa-arch-pros .con {
  color: rgba(255, 107, 107, 0.8);
}

.roa-process-steps {
  margin: var(--space-5) 0;
}

.roa-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.roa-step:last-child {
  margin-bottom: 0;
}

.roa-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.roa-perf-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: start;
  margin: var(--space-5) 0;
}

.roa-perf-v1 {
  background: rgba(255, 107, 107, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
}

.roa-perf-v2 {
  background: rgba(76, 175, 80, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
}

.roa-perf-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  align-self: center;
  padding-top: 2rem;
}

.roa-italic-note {
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 0;
}

.roa-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.roa-metric-card {
  padding: 1.8rem;
  border-radius: 10px;
  text-align: center;
}

.roa-metric-card--green {
  background: rgba(76, 175, 80, 0.08);
}

.roa-metric-card--blue {
  background: rgba(100, 149, 237, 0.08);
}

.roa-metric-card--gold {
  background: var(--accent-08);
}

.roa-metric-card--orange {
  background: rgba(255, 152, 0, 0.08);
}

.roa-metric-val {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.roa-metric-val--green {
  color: #4CAF50;
}

.roa-metric-val--blue {
  color: #6495ED;
}

.roa-metric-val--orange {
  color: #FF9800;
}

.roa-metric-lbl {
  font-size: 0.9rem;
  opacity: 0.9;
}

.roa-metric-sub {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.roa-verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.roa-verify-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  transition: background 0.2s ease;
}

.roa-verify-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.roa-verify-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.roa-verify-card__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.roa-verify-card__icon {
  font-size: 1.2rem;
}

.roa-verify-card__val {
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.roa-verify-card__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.roa-verify-card__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0.75rem 0 1rem;
}

.roa-verify-card__footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.roa-verify-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.roa-verify-card[data-tier="1"] .roa-verify-link:hover {
  color: #4caf50;
}

.roa-verify-card[data-tier="2"] .roa-verify-link:hover {
  color: #ff9800;
}

.roa-evidence {
  margin-top: 3rem;
  padding-top: 2rem;
}

.roa-evidence__title {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
}

.roa-evidence__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roa-evidence__item {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.roa-evidence__item:last-child {
  border-bottom: none;
}

.roa-evidence__item a {
  text-decoration: underline;
}

.roa-h4--green {
  color: #4CAF50;
  margin-top: 0;
}

.roa-h4--orange {
  color: #ffa500;
  margin-top: 0;
}

.roa-quote {
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
}

/* ── RWD ── */
@media (max-width: 968px) {
  .roa-perf-grid {
    grid-template-columns: 1fr;
  }

  .roa-perf-arrow {
    display: none;
  }

  .roa-two-col-grid {
    grid-template-columns: 1fr;
  }

  .roa-motion-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .perspective-grid {
    grid-template-columns: 1fr;
  }

  .roa-motion-grid {
    grid-template-columns: 1fr;
  }

  .roa-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roa-verify-grid {
    grid-template-columns: 1fr;
  }

  .roa-two-col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .roa-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════
   § 33 — TABLER ICON UTILITY + SIDEBAR META LIST
   ════════════════════════════════════════════════════════════════════ */

/* Inline tabler icon sizing — use on <svg class="ti"> */
.ti {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sidebar metadata list — stacked: icon + label on first line, value below */
.sidebar-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
}

.sidebar-meta li {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  margin: 0;
}

.sidebar-meta li:last-child {
  border-bottom: none;
}

.sidebar-meta li .ti {
  display: inline;
  color: var(--text-muted);
  vertical-align: -0.15em;
  margin-right: var(--space-2);
}

.pc-icon-wrapper .ti {
  width: 22px;
  height: 22px;
}

.sidebar-meta li strong {
  display: inline;
  color: var(--text-primary);
  font-weight: 600;
}

.sidebar-meta li span {
  display: block;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: var(--space-1);
}


/* ================================================================
   34. PROJECT PAGE — ACY SECURITIES
   ================================================================ */

/* ─ Info card color variants ─ */
.info-card--red {
  background: rgba(255, 107, 107, 0.05);
}

.info-card--green {
  background: rgba(76, 175, 80, 0.05);
}

.info-card--purple {
  background: rgba(147, 112, 219, 0.05);
}

.info-card--orange {
  background: rgba(255, 165, 0, 0.05);
}

.info-card__title--cyan {
  color: #4de8ff;
}

.info-card__title--orange {
  color: #ffa500;
}

/* ─ Platform card title color modifiers ─ */
.platform-card__title--purple {
  color: #9370db;
}

.platform-card__title--purple a {
  color: #9370db;
}

.platform-card__title--orange>a {
  color: #ff6b00;
}

.platform-card__title--cyan a {
  color: #00d1ff;
}

.platform-card__title--green {
  color: #4caf50;
}

/* ─ Table modifiers ─ */
.card-table--glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.tr--blue {
  background: rgba(100, 149, 237, 0.10);
}

.tr--success {
  background: rgba(76, 175, 80, 0.05);
}

.td--green {
  color: #4caf50;
}

.td--orange {
  color: #ffa500;
}

.td--italic {
  font-style: italic;
  opacity: 0.7;
}

.td--approved {
  font-weight: 600;
  color: #4caf50;
}

.th--orange {
  color: #ffa500;
}

.th--green {
  color: #4caf50;
}

/* ─ Link color utilities ─ */
.link--orange {
  color: rgba(217, 119, 87, 0.7);
  text-decoration: underline;
}

.link--orange-vv {
  color: #ff6b00;
}

.link--blue {
  color: rgba(100, 149, 237, 0.7);
}

.link--blue-dim {
  color: rgba(100, 149, 237, 0.6);
}

.link--cyan {
  color: rgba(0, 209, 255, 0.6);
}

.link--cyan-full {
  color: #00d1ff;
}

.link--green {
  color: rgba(76, 175, 80, 0.6);
}

.link--red {
  color: rgba(255, 107, 107, 0.7);
}

.link--gold {
  color: #ffaa00;
}

.link--cornflower {
  color: #6495ed;
}

/* ─ List content size/color variants ─ */
.list-content {
  margin: 0;
  padding-left: var(--space-5);
  line-height: 1.9;
  font-size: 0.95rem;
}

.list-content--sm {
  margin: 0;
  padding-left: var(--space-5);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.85;
}

.list-content--xs {
  font-size: 0.85rem;
  margin: 0;
  padding-left: var(--space-4);
  line-height: 1.7;
  color: var(--text-tertiary);
}

.list-content--md {
  margin: 0;
  padding-left: var(--space-5);
  line-height: 1.8;
  font-size: 0.95rem;
}

.list-decisions {
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.list-outcomes {
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.list-body {
  line-height: 1.8;
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
}

/* ─ Executive card details accordion ─ */
.details--orange {
  background: rgba(255, 165, 0, 0.08);
  border-radius: var(--radius-m);
  margin-top: var(--space-4);
}

.details-summary--orange {
  color: #ffa500;
}

.details-summary--orange~.details-body {
  /* inherits from existing .details-body */
}

/* ─ Cross-ref research variant ─ */
.cross-ref--research {
  background: rgba(100, 149, 237, 0.08);
}

.cross-ref__link--cornflower {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

.cross-ref__icon-lg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

/* ─ Process artifact caption variants ─ */
.process-artifact__label--cyan {
  color: #00d1ff;
}

.process-artifact__heading--cyan {
  color: #00d1ff;
  margin-top: var(--space-2);
}

.process-artifact__caption--note {
  margin: 0 0 var(--space-3);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.process-artifact__caption--signal {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 107, 107, 0.7);
}

.process-artifact__caption--signal strong {
  color: rgba(255, 107, 107, 0.9);
}

/* ─ ACY layout helpers ─ */
.acy-img-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.acy-img-stack--sm {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  margin: var(--space-6) 0;
}

.acy-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.acy-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acy-tier-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.acy-img-center {
  text-align: center;
}

.acy-analytics-block {
  margin: var(--space-6) 0;
}

/* ─ Callout flush variant (no radius, no margin, compact padding) ─ */
.callout--flush {
  border-radius: 0;
  margin: 0;
  padding: var(--space-3) var(--space-4);
}

/* ─ Deep-dive icon SVG sizing ─ */
.deep-dive-link__icon .ti {
  width: 20px;
  height: 20px;
}

/* ─ ACY compliance verification section (full-width, moved out of sidebar) ─ */
.acy-compliance-section {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

/* ─ Verify section ─ */
.verify-section__links-note {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─ Attribution section ─ */
.attribution-section .container {
  max-width: 900px;
}

/* ─ Callout label muted ─ */
.callout__label--muted {
  color: var(--text-muted);
}

/* ─ Text size / line-height helpers ─ */
.text-body-xl {
  font-size: 1.1rem;
  line-height: 1.8;
}

.text-body-l {
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-body-m {
  font-size: 1rem;
  line-height: 1.7;
}

.text-body-sm {
  font-size: 0.95rem;
  line-height: 1.7;
}

.text-body-xs {
  font-size: 0.85rem;
  line-height: 1.7;
}

.text-body-tiny {
  font-size: 0.82rem;
  line-height: 1.85;
}

.text-micro {
  font-size: 0.7rem;
}

.text-semi {
  font-weight: 500;
  color: var(--text-primary);
}

/* ─ Image block with bottom margin ─ */
.img-block-mb3 {
  width: 100%;
  display: block;
  margin-bottom: var(--space-3);
}


/* ================================================================
   ENTERPRISE VERIFICATION VIDEOS
   ================================================================ */

.ent-verification {
  margin-top: var(--space-10);
  padding-top: var(--space-9);
  border-top: 1px solid var(--border);
}

.ent-verification__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.ent-verification__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-7);
}

.ent-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.ent-video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.ent-video-cover {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.ent-video-cover--hidden {
  opacity: 0;
  pointer-events: none;
}

.ent-video-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.52;
  transition: opacity 0.35s ease, transform 0.5s ease;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
}

.ent-video-cover:hover .ent-video-backdrop {
  opacity: 0.72;
  transform: scale(1.04);
}

.ent-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 2;
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}

.ent-video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 4px;
  /* optical centre for play triangle */
  fill: currentColor;
}

.ent-video-cover:hover .ent-video-play {
  background: var(--accent-22);
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-35);
  transform: translate(-50%, -50%) scale(1.1);
}

.ent-video-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ent-video-quote {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-7);
  right: var(--space-7);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: center;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  opacity: 0.88;
  transition: opacity var(--duration-fast);
}

.ent-video-cover:hover .ent-video-quote {
  opacity: 1;
}

.ent-video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border: none;
}

@media (min-width: 769px) {
  .ent-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ent-video-play {
    width: 56px;
    height: 56px;
  }
}


/* ================================================================
   ABOUT PAGE
   ================================================================ */

/* Hero */
.about-hero {
  padding: calc(80px + var(--space-12)) 0 var(--space-12);
}

.about-hero .container {
  max-width: var(--container-wide);
}

.about-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.about-hero__photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.about-hero__photo img {
  width: 100%;
  border-radius: var(--radius-l);
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.about-hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: var(--space-3) 0 var(--space-2);
}

.about-hero__role {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.about-hero__focus {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.about-hero__bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  max-width: 560px;
}

.about-why-finance {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  padding: var(--space-5) var(--space-6);
  border-left: 2px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  max-width: 560px;
}

.about-why-finance__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.about-why-finance__text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.about-why-finance__text:last-child {
  margin-bottom: 0;
}

.about-availability {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.about-availability__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px;
  background: var(--accent-08);
  border: 1px solid var(--accent-22);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-availability__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.4s ease infinite;
}

.about-availability__locations {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* CTA row */
.about-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.about-cta-link {
  font-size: 0.84rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast), border-color var(--duration-fast);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.about-cta-link:hover {
  color: var(--text-primary);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin: 0;
}

.about-stat {
  background: var(--bg-surface);
  padding: var(--space-7) var(--space-6);
  text-align: center;
}

.about-stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.about-stat__label {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

/* Section title */
.about-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

/* Timeline */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.about-timeline__item {
  padding: var(--space-7);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  transition: border-color 0.3s ease;
}

.about-timeline__item:hover {
  border-color: var(--border-hover);
}

.about-timeline__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.about-timeline__period {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 10px;
  background: var(--accent-08);
  border: 1px solid var(--accent-18);
  border-radius: 100px;
  font-weight: 500;
}

.about-timeline__role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.about-timeline__company {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.about-timeline__context {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-left: 2px solid var(--accent);
  background: var(--accent-03);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.about-timeline__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.about-timeline__bullets li {
  display: flex;
  gap: var(--space-3);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.about-timeline__bullets li:last-child {
  border-bottom: none;
}

.about-timeline__bullets li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Skills */
.about-skills {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-skills__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.about-skills__cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 2px;
}

.about-skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.about-skill-tag {
  padding: 5px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.about-skill-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Education */
.about-edu {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-edu__item {
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.about-edu__degree {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.about-edu__school {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-edu__year {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
}

/* Awards */
.about-awards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-award {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.about-award::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.68rem;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

/* Languages */
.about-languages {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.about-language__name {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.about-language__level {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: var(--space-1);
}

/* ── Design Philosophy cards ── */
.about-philosophy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.about-philosophy__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  transition: border-color 0.2s ease;
}

.about-philosophy__card:hover {
  border-color: var(--border-hover);
}

.about-philosophy__icon {
  color: var(--accent);
  margin-bottom: var(--space-3);
  opacity: 0.8;
}

.about-philosophy__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.about-philosophy__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Conviction / Why This Matters ── */
.about-conviction {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-conviction__quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  padding: var(--space-6) var(--space-4);
  border-left: 2px solid var(--accent);
  text-align: left;
}

.about-conviction__attribution {
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.about-conviction__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: left;
}

/* About responsive — tablet (769px+) */
@media (min-width: 769px) {
  .about-philosophy__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-skills__row {
    grid-template-columns: 140px 1fr;
    align-items: start;
    gap: var(--space-2) var(--space-7);
  }

  .about-hero__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }

  .about-hero__photo {
    max-width: none;
    margin: 0;
    position: sticky;
    top: 88px;
  }

  .about-hero__bio {
    max-width: 560px;
  }
}

/* About responsive — desktop (1280px+) */
@media (min-width: 1280px) {
  .about-hero__layout {
    gap: calc(var(--space-12) + var(--space-6));
  }
}

/* ────────────────────────────────────────────────────────────────
   ABOUT v2 — new sections
   ──────────────────────────────────────────────────────────────── */

/* Hero headline statement */
.about-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}

.about-hero__headline em {
  font-style: italic;
  color: var(--accent);
}

/* 6-stat variant */
.about-stats--6 {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 769px) {
  .about-stats--6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* What I Architect — 3 pillars */
.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 769px) {
  .about-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-pillar {
  padding: var(--space-7);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-pillar:hover {
  border-color: var(--border-hover);
}

.about-pillar__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--accent-10);
  line-height: 1;
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  pointer-events: none;
  user-select: none;
}

.about-pillar__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-07);
  border: 1px solid var(--accent-15);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--accent);
  flex-shrink: 0;
}

.about-pillar__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.about-pillar__body {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
}

.about-pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
}

.about-pillar__tag {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* TradeX Terminal Demo Callout */
.about-demo-callout {
  padding: var(--space-11) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about-demo-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 75% 50%, var(--accent-05) 0%, transparent 70%);
  pointer-events: none;
}

.about-demo-callout__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .about-demo-callout__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-demo-callout__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.about-demo-callout__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease infinite;
}

.about-demo-callout__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.about-demo-callout__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.about-demo-callout__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-demo-callout__features li {
  display: flex;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.about-demo-callout__features li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 1px;
}

.about-demo-callout__visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--accent-15);
  background: var(--bg-void);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.about-demo-callout__screen-mock {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about-demo-callout__mock-nav {
  height: 36px;
  background: #0c0f1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  flex-shrink: 0;
}

.about-demo-callout__mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-70);
}

.about-demo-callout__mock-title {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-left: auto;
  margin-right: auto;
  font-family: monospace;
}

.about-demo-callout__mock-live {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  color: #00c896;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: auto;
  font-family: monospace;
}

.about-demo-callout__mock-live::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00c896;
  animation: pulse 2s infinite;
}

.about-demo-callout__mock-body {
  flex: 1;
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  overflow: hidden;
}

.about-demo-callout__mock-col {
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 8px;
  overflow: hidden;
}

.about-demo-callout__mock-col:last-child {
  border-right: none;
}

.about-demo-callout__mock-label {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  font-family: monospace;
  margin-bottom: 6px;
}

.about-demo-callout__mock-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.about-demo-callout__mock-sym {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  font-family: monospace;
}

.about-demo-callout__mock-price {
  font-size: 7px;
  font-family: monospace;
  color: #00c896;
}

.about-demo-callout__mock-price--neg {
  color: #e0475b;
}

.about-demo-callout__mock-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 4px 0 0;
}

.about-demo-callout__mock-bar {
  flex: 1;
  background: var(--accent-30);
  min-height: 4px;
  border-radius: 1px 1px 0 0;
  height: 50%;
}

/* Individual bar heights for the chart mock */
.about-demo-callout__mock-bar:nth-child(1) { height: 38%; }
.about-demo-callout__mock-bar:nth-child(2) { height: 52%; }
.about-demo-callout__mock-bar:nth-child(3) { height: 44%; }
.about-demo-callout__mock-bar:nth-child(4) { height: 61%; }
.about-demo-callout__mock-bar:nth-child(5) { height: 55%; }
.about-demo-callout__mock-bar:nth-child(6) { height: 70%; }
.about-demo-callout__mock-bar:nth-child(7) { height: 82%; background: var(--accent-55); }
.about-demo-callout__mock-bar:nth-child(8) { height: 78%; background: var(--accent-55); }
.about-demo-callout__mock-bar:nth-child(9) { height: 88%; background: var(--accent-70); }

.about-demo-callout__mock-ob-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.about-demo-callout__mock-bid {
  font-size: 6.5px;
  font-family: monospace;
  color: rgba(0, 200, 150, 0.7);
}

.about-demo-callout__mock-ask {
  font-size: 6.5px;
  font-family: monospace;
  color: rgba(224, 71, 91, 0.7);
}

.about-demo-callout__mock-footer {
  height: 22px;
  background: #0c0f1a;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 12px;
  flex-shrink: 0;
}

.about-demo-callout__mock-status {
  font-size: 6.5px;
  color: rgba(255,255,255,0.2);
  font-family: monospace;
  letter-spacing: 0.3px;
}

.about-demo-callout__mock-status--green {
  color: #00c896;
}

/* Demo mini-stats */
.about-demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-top: var(--space-6);
}

.about-demo-stat {
  background: var(--bg-surface);
  padding: var(--space-4) var(--space-5);
}

.about-demo-stat__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.about-demo-stat__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-top: var(--space-1);
  line-height: 1.4;
}

/* Target Roles */
.about-target__intro {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.about-target__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

@media (min-width: 769px) {
  .about-target__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-target__group {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  transition: border-color 0.3s ease;
}

.about-target__group:hover {
  border-color: var(--border-hover);
}

.about-target__group-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: block;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.about-target__names {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-target__names li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: color 0.2s ease;
}

.about-target__names li:last-child {
  border-bottom: none;
}

.about-target__names li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-35);
  flex-shrink: 0;
}

.about-target__note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  padding: var(--space-4) var(--space-6);
  border-left: 2px solid var(--accent);
  background: var(--accent-03);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  line-height: 1.75;
  font-style: italic;
}


/* ================================================================
   DECISION LOG — Design Decisions component
   Full-width rows, each decision shown as rejected vs chosen split
   ================================================================ */

.decision-log {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: var(--space-5);
}

.decision-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}

.decision-row__topic {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.decision-row__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.decision-col {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
}

.decision-col--rejected {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.14);
}

.decision-col--chosen {
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.14);
}

.decision-col__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.decision-col__label--rejected {
  color: #f87171;
}

.decision-col__label--chosen {
  color: #4ade80;
}

.decision-col__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.decision-col__body {
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin: 0;
}

@media (max-width: 768px) {
  .decision-row__compare {
    grid-template-columns: 1fr;
  }

  .decision-col--rejected {
    order: 2;
    /* chosen first on mobile */
  }

  .decision-col--chosen {
    order: 1;
  }
}


/* ================================================================
   AI COLLABORATION MODEL
   ================================================================ */

.ai-collab {
  margin: var(--space-10) 0;
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}

.ai-collab__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.ai-collab__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-primary);
  margin: var(--space-3) 0 var(--space-4);
}

.ai-collab__desc {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.ai-collab__flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.ai-collab__role {
  flex: 0 1 220px;
  padding: var(--space-5);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  text-align: center;
}

.ai-collab__role--ed {
  border-color: var(--accent-hover);
}

.ai-collab__role--ai {
  border-color: rgba(100, 149, 237, 0.2);
}

.ai-collab__role-icon {
  margin-bottom: var(--space-3);
  color: var(--text-tertiary);
}

.ai-collab__role--ed .ai-collab__role-icon {
  color: var(--accent);
}

.ai-collab__role--ai .ai-collab__role-icon {
  color: #6495ed;
}

.ai-collab__role-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.ai-collab__pills {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ai-collab__pills span {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding: 3px 0;
}

.ai-collab__arrow {
  color: var(--text-muted);
  align-self: center;
  flex-shrink: 0;
  margin-top: var(--space-4);
}

.ai-collab__trace {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.ai-collab__trace-label {
  padding: var(--space-3) var(--space-5);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.ai-collab__decisions {
  padding: var(--space-2) 0;
}

.ai-collab__decision {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.ai-collab__decision:last-child {
  border-bottom: none;
}

.ai-collab__decision-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ai-collab__decision--kept .ai-collab__decision-badge {
  color: var(--color-teal);
}

.ai-collab__decision--modified .ai-collab__decision-badge {
  color: #ffa500;
}

.ai-collab__decision--replaced .ai-collab__decision-badge {
  color: #ff6b6b;
}

.ai-collab__decision-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.ai-collab__decision-reason {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.ai-collab__capabilities {
  margin-top: var(--space-8);
}

.ai-collab__cap-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  text-align: center;
}

.ai-collab__cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.ai-collab__cap-card {
  padding: var(--space-5);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color 0.3s ease;
}

.ai-collab__cap-card:hover {
  border-color: var(--border-hover);
}

.ai-collab__cap-icon {
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.ai-collab__cap-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.ai-collab__cap-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.65;
  margin: 0;
}

.ai-collab__footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-7);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Terminal Model entry strip — links from AI demo section to case study */
.ai-collab__entry {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: rgba(201, 169, 89, 0.05);
  border: 1px solid rgba(201, 169, 89, 0.22);
  border-radius: var(--radius-l);
  margin-top: var(--space-6);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ai-collab__entry:hover {
  background: rgba(201, 169, 89, 0.1);
  border-color: rgba(201, 169, 89, 0.45);
}

.ai-collab__entry-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
}

.ai-collab__entry-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.ai-collab__entry-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.ai-collab__entry-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: var(--space-1);
}

.ai-collab__entry-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ai-collab__entry:hover .ai-collab__entry-cta {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .ai-collab__entry {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .ai-collab__entry-cta {
    align-self: flex-start;
  }

  .ai-collab {
    padding: var(--space-5);
  }

  .ai-collab__flow {
    flex-direction: column;
    align-items: center;
  }

  .ai-collab__role {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
  }

  .ai-collab__arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .ai-collab__decision {
    grid-template-columns: 80px 1fr;
    gap: var(--space-2);
  }

  .ai-collab__decision-reason {
    grid-column: 1 / -1;
  }

  .ai-collab__cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   AI WORKSPACE — Tabs, Panels, Shell, Tools
   ================================================================ */

/* Workspace container */
.ai-workspace {
  margin-top: var(--space-7);
}

/* ── Tab bar ── */
.ai-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.ai-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-l);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.55);
}

.ai-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}

.ai-tab--active {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ai-tab__icon {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-1);
  opacity: 0.7;
}

.ai-tab--active .ai-tab__icon {
  opacity: 1;
  color: #d97757;
}

.ai-tab__label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.ai-tab__sub {
  font-size: 0.7rem;
  opacity: 0.55;
  line-height: 1.3;
}

.ai-tab--active .ai-tab__sub {
  opacity: 0.5;
  color: #444;
}

/* ── Panels ── */
.ai-panel {
  display: none;
}

.ai-panel--active {
  display: block;
}

/* ── Shell (light card wrapper) ── */
.ai-shell {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Shell header */
.ai-shell__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ai-shell__header--collab {
  background: linear-gradient(135deg, #c05030 0%, #d97757 100%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ai-shell__header--sentiment {
  background: #fafafa;
}

.ai-shell__header--copy {
  background: #fafafa;
}

.ai-shell__header--persona {
  background: #fafafa;
}

/* Shell avatar */
.ai-shell__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ai-shell__avatar--collab {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ai-shell__avatar--sentiment {
  background: #0f4c75;
}

.ai-shell__avatar--copy {
  background: #6366f1;
}

.ai-shell__avatar--persona {
  background: #b45309;
}

/* Shell header info */
.ai-shell__header-info {
  flex: 1;
  min-width: 0;
}

.ai-shell__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
}

.ai-shell__name--light {
  color: #ffffff;
}

.ai-shell__status {
  font-size: 0.72rem;
  color: #888;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-shell__status--light {
  color: rgba(255, 255, 255, 0.65);
}

.ai-shell__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
  animation: ai-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.ai-shell__dot--light {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.ai-shell__dot--blue {
  background: #3b82f6;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.ai-shell__dot--indigo {
  background: #6366f1;
  box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
}

.ai-shell__dot--amber {
  background: #b45309;
  box-shadow: 0 0 5px rgba(180, 83, 9, 0.4);
}

@keyframes ai-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* Shell badge */
.ai-shell__badge {
  font-size: 0.67rem;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

.ai-shell__badge--collab {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.ai-shell__badge--sentiment {
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #1d4ed8;
}

.ai-shell__badge--copy {
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #4338ca;
}

.ai-shell__badge--persona {
  background: #fffbeb;
  border: 1px solid rgba(180, 83, 9, 0.2);
  color: #92400e;
}

/* Shell body */
.ai-shell__body {
  padding: 1.5rem 1.25rem;
  background: #f9f9fb;
  min-height: 320px;
}

.ai-shell__body--collab {
  padding: 1.25rem 1.25rem 1rem;
}

/* Shell disclaimer */
.ai-shell__disclaimer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.25rem;
  font-size: 0.68rem;
  color: #aaa;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.4;
}

/* ── Collab panel (reusing some existing ai-collab classes, adding new ones) ── */

/* Override flow for inside shell context */
.ai-shell__body .ai-collab__flow {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.ai-shell__body .ai-collab__role {
  flex: 1;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
}

.ai-shell__body .ai-collab__role--ed {
  background: var(--accent-04);
  border-color: transparent;
}

.ai-shell__body .ai-collab__role--ai {
  background: rgba(217, 119, 87, 0.04);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.05);
}

.ai-shell__body .ai-collab__role-icon {
  display: flex;
  align-items: center;
  margin-bottom: 0.15rem;
}

.ai-shell__body .ai-collab__role-title {
  font-size: 0.73rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.ai-shell__body .ai-collab__pills {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ai-shell__body .ai-collab__pills span {
  font-size: 0.65rem;
  color: #777;
  line-height: 1.4;
  padding: 0;
}

.ai-shell__body .ai-collab__pills span::before {
  content: '· ';
  opacity: 0.45;
}

.ai-shell__body .ai-collab__arrow {
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
  color: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  align-self: center;
  margin-top: 0;
  transform: none;
}

/* Trace label in collab shell */
.ai-shell__body .ai-collab__trace-label {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.3);
  margin-bottom: 1.1rem;
  padding: 0 0 0.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  border-top: none;
}

/* Section blocks */
.ai-collab__section {
  margin-bottom: 1.25rem;
}

.ai-collab__section-hd {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ai-collab__section-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.ai-collab__section-meta {
  font-size: 0.63rem;
  color: #aaa;
  margin-left: auto;
}

.ai-collab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-collab__dot--ed {
  background: #C9A959;
}

.ai-collab__dot--ai {
  background: #d97757;
}

/* Brief conflict card */
.ai-collab__brief {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  padding: 0.9rem 1.1rem;
}

.ai-collab__brief-context {
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  color: rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.ai-collab__brief-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.ai-collab__brief-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.ai-collab__brief-divider {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-s);
}

.ai-collab__brief-desc {
  font-size: 0.69rem;
  color: rgba(0, 0, 0, 0.48);
  line-height: 1.4;
}

.ai-collab__brief-tension {
  font-size: 0.74rem;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 500;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-collab__reg-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #C9A959;
  background: var(--accent-10);
  border: 1px solid var(--accent-25);
  border-radius: var(--radius-s);
  padding: 2px 6px;
}

/* Claude's Response */
.ai-collab__response {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 9px;
  padding: 0.9rem 1rem;
}

.ai-collab__response-list {
  margin: 0 0 0.7rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-collab__response-list li {
  font-size: 0.75rem;
  color: #333;
  line-height: 1.65;
}

/* Annotation badges */
.cann {
  display: inline;
  padding: 1px 5px 2px;
  border-radius: 3px;
  font-size: inherit;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
  font-weight: 500;
  position: relative;
}

.cann::after {
  font-size: 0.58rem;
  vertical-align: super;
  margin-left: 1px;
  font-weight: 700;
}

.cann--kept {
  background: var(--color-teal-10);
  border-bottom: 2px solid var(--color-teal);
  color: #006b55;
}

.cann--kept::after {
  content: '\2713';
  color: var(--color-teal);
}

.cann--replaced {
  background: rgba(229, 115, 115, 0.1);
  border-bottom: 2px solid #e57373;
  color: #a31515;
}

.cann--replaced::after {
  content: '\2717';
  color: #e57373;
}

.cann--modified {
  background: var(--accent-subtle);
  border-bottom: 2px solid #C9A959;
  color: #6b4e00;
}

.cann--modified::after {
  content: '\27F3';
  color: #C9A959;
}

.cann:hover,
.cann:focus {
  filter: brightness(0.9);
  outline: none;
}

.cann.cann--active {
  filter: brightness(0.85);
}

/* Legend */
.ai-collab__response-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.ai-collab__legend {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.ai-collab__legend--kept {
  background: var(--color-teal-10);
  color: #006b55;
}

.ai-collab__legend--modified {
  background: var(--accent-10);
  color: #6b4e00;
}

.ai-collab__legend--replaced {
  background: rgba(229, 115, 115, 0.1);
  color: #a31515;
}

.ai-collab__legend-note {
  font-size: 0.62rem;
  color: #bbb;
  margin-left: auto;
}

/* Decision log inside shell */
.ai-shell__body .ai-collab__decisions {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-m);
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.ai-shell__body .ai-collab__decision {
  display: grid;
  grid-template-columns: 82px 1fr 1.5fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  transition: background 0.15s;
  border-left: 3px solid transparent;
  font-size: 0.82rem;
}

.ai-shell__body .ai-collab__decision:last-child {
  border-bottom: none;
}

.ai-shell__body .ai-collab__decision--kept {
  border-left-color: var(--color-teal);
}

.ai-shell__body .ai-collab__decision--replaced {
  border-left-color: #e57373;
}

.ai-shell__body .ai-collab__decision--modified {
  border-left-color: #C9A959;
}

.ai-shell__body .ai-collab__decision--highlight[data-type="kept"] {
  background: var(--color-teal-06);
}

.ai-shell__body .ai-collab__decision--highlight[data-type="replaced"] {
  background: rgba(229, 115, 115, 0.06);
}

.ai-shell__body .ai-collab__decision--highlight[data-type="modified"] {
  background: var(--accent-07);
}

.ai-shell__body .ai-collab__decision-badge {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.ai-shell__body .ai-collab__decision--kept .ai-collab__decision-badge {
  background: var(--color-teal-10);
  color: #006b55;
}

.ai-shell__body .ai-collab__decision--replaced .ai-collab__decision-badge {
  background: rgba(229, 115, 115, 0.1);
  color: #a31515;
}

.ai-shell__body .ai-collab__decision--modified .ai-collab__decision-badge {
  background: var(--accent-subtle);
  color: #6b4e00;
}

.ai-shell__body .ai-collab__decision-title {
  font-size: 0.73rem;
  font-weight: 600;
  color: #1a1a1a;
}

.ai-shell__body .ai-collab__decision-reason {
  font-size: 0.69rem;
  color: rgba(0, 0, 0, 0.48);
  line-height: 1.45;
}

/* ── Market Sentiment panel ── */
.ai-snt {
  padding: 1.25rem;
}

.ai-snt__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 0.85rem;
}

.ai-snt__label--spaced {
  margin-top: 1.5rem;
}

.ai-snt__gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.ai-snt__gauge-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-l);
  padding: 1rem 0.75rem 0.85rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ai-snt__gauge-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.4rem;
}

.ai-snt__arc-wrap {
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
}

.ai-snt__arc-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ai-snt__arc-fill {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-snt__gauge-result {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.ai-snt__gauge-result--bullish {
  color: #16a34a;
}

.ai-snt__gauge-result--bearish {
  color: #dc2626;
}

.ai-snt__gauge-result--greed {
  color: #b45309;
}

.ai-snt__gauge-result--moderate {
  color: #0369a1;
}

.ai-snt__gauge-result--neutral {
  color: #555;
}

.ai-snt__gauge-sub {
  font-size: 0.62rem;
  color: #999;
  margin-top: 3px;
  line-height: 1.4;
}

/* Asset class bars */
.ai-snt__bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-snt__bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 70px;
  align-items: center;
  gap: 0.6rem;
}

.ai-snt__bar-asset {
  font-size: 0.78rem;
  color: #444;
  font-weight: 500;
}

.ai-snt__bar-track {
  height: 8px;
  border-radius: 4px;
  background: #f3f4f6;
  display: flex;
  overflow: hidden;
}

.ai-snt__bar-fill {
  height: 100%;
  transition: width 1s ease;
}

.ai-snt__bar-fill--bull {
  background: #22c55e;
  border-radius: 4px 0 0 4px;
}

.ai-snt__bar-fill--bear {
  background: #ef4444;
  border-radius: 0 4px 4px 0;
}

/* Width utility classes for sentiment bars */
.ai-snt__bar-w19 {
  width: 19%;
}

.ai-snt__bar-w28 {
  width: 28%;
}

.ai-snt__bar-w36 {
  width: 36%;
}

.ai-snt__bar-w41 {
  width: 41%;
}

.ai-snt__bar-w45 {
  width: 45%;
}

.ai-snt__bar-w55 {
  width: 55%;
}

.ai-snt__bar-w59 {
  width: 59%;
}

.ai-snt__bar-w64 {
  width: 64%;
}

.ai-snt__bar-w72 {
  width: 72%;
}

.ai-snt__bar-w81 {
  width: 81%;
}

.ai-snt__bar-pct {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.ai-snt__bar-pct--bullish {
  color: #16a34a;
}

.ai-snt__bar-pct--bearish {
  color: #dc2626;
}

.ai-snt__bar-pct--neutral {
  color: #555;
}

/* Calendar */
.ai-snt__calendar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-snt__cal-row {
  display: grid;
  grid-template-columns: 56px 56px 1fr 28px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.78rem;
}

.ai-snt__cal-row--high {
  border-left: 3px solid #ef4444;
}

.ai-snt__cal-row--medium {
  border-left: 3px solid #f59e0b;
}

.ai-snt__cal-impact {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  font-weight: 600;
  color: #888;
}

.ai-snt__impact-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-snt__impact-dot--high {
  background: #ef4444;
}

.ai-snt__impact-dot--med {
  background: #f59e0b;
}

.ai-snt__cal-time {
  font-size: 0.72rem;
  color: #666;
  white-space: nowrap;
}

.ai-snt__cal-event {
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.78rem;
}

.ai-snt__cal-exp {
  font-weight: 400;
  color: #888;
  margin-left: 4px;
  font-size: 0.72rem;
}

.ai-snt__cal-flag {
  font-size: 1rem;
  text-align: center;
}

.ai-snt__inline-disclaimer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1rem;
  font-size: 0.67rem;
  color: #aaa;
  letter-spacing: 0.02em;
}

/* ── Tool panels (UX Copy, Persona) ── */
.ai-tool {
  padding: 1.5rem 1.25rem;
  background: #f9f9fb;
  min-height: 320px;
}

.ai-tool__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-tool__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ai-tool__label--inline {
  margin: 0;
  flex-shrink: 0;
}

.ai-tool__textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  line-height: 1.6;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.ai-tool__textarea:focus {
  border-color: #6366f1;
}

.ai-tool__tone-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ai-tool__tone-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ai-tool__tone {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #555;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.ai-tool__tone--active {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.ai-tool__tone:hover:not(.ai-tool__tone--active) {
  border-color: #6366f1;
  color: #6366f1;
}

/* Generate buttons */
.ai-tool__generate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.2rem;
  background: #d97757;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(217, 119, 87, 0.35);
}

.ai-tool__generate:hover {
  background: #c46240;
  box-shadow: 0 3px 10px rgba(217, 119, 87, 0.45);
}

.ai-tool__generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-tool__generate--persona {
  background: #b45309;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.3);
}

.ai-tool__generate--persona:hover {
  background: #92400e;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.4);
}

/* Tool output areas */
.ai-tool__output {
  padding-top: 1rem;
}

.ai-tool__output--hidden {
  display: none;
}

.ai-tool__generating {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.ai-tool__generating--hidden {
  display: none;
}

.ai-tool__generating-text {
  font-size: 0.8rem;
  color: #888;
  margin-left: 6px;
}

.ai-tool__result--hidden {
  display: none;
}

.ai-tool__empty {
  padding: 1rem;
  color: #888;
  font-size: 0.85rem;
}

/* Typing dots animation */
.ai-tool__typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97757;
  display: inline-block;
  margin-right: 4px;
  animation: ai-typing-bounce 1.4s ease-in-out infinite;
}

.ai-tool__typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-tool__typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.ai-tool__typing-dot--indigo {
  background: #6366f1;
}

.ai-tool__typing-dot--amber {
  background: #b45309;
}

@keyframes ai-typing-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ── Copy output rows ── */
.ai-copy__row {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-l);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ai-copy__row-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.ai-copy__variants {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-copy__variant {
  font-size: 0.875rem;
  color: #1a1a1a;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.ai-copy__variant:hover {
  background: #f0f0ff;
  border-color: rgba(99, 102, 241, 0.2);
}

.ai-copy__variant--headline {
  font-size: 1rem;
  font-weight: 600;
}

.ai-copy__variant--cta {
  font-weight: 600;
  color: #4338ca;
}

/* ── Persona card ── */
.ai-persona__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.ai-persona__card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-bottom: 1px solid rgba(180, 83, 9, 0.1);
}

.ai-persona__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: #b45309;
}

.ai-persona__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.ai-persona__role {
  font-size: 0.8rem;
  color: #b45309;
  font-weight: 500;
  margin-top: 2px;
}

.ai-persona__meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.ai-persona__card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ai-persona__section {
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-persona__section:nth-child(even) {
  border-right: none;
}

.ai-persona__section:nth-last-child(-n+2) {
  border-bottom: none;
}

.ai-persona__section--full {
  grid-column: 1 / -1;
  border-bottom: none;
  border-right: none;
  padding: 1rem 1.25rem 0;
}

.ai-persona__section-title {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.5rem;
}

.ai-persona__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-persona__list li {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.5;
  padding: 2px 0;
}

.ai-persona__list li::before {
  content: "\2192 ";
  color: #b45309;
  font-size: 0.7rem;
}

.ai-persona__tech-text {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

.ai-persona__quote {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border-top: 1px solid rgba(180, 83, 9, 0.08);
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  line-height: 1.6;
}

.ai-persona__quote::before {
  content: '\201C';
  font-size: 1.5rem;
  color: #b45309;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 2px;
}

/* Persona selects */
.ai-tool__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ai-tool__select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-tool__select {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ── AI Workspace responsive ── */
@media (max-width: 860px) {
  .ai-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ai-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-tab__sub {
    display: none;
  }

  .ai-snt__gauges {
    grid-template-columns: 1fr 1fr;
  }

  .ai-snt__gauges .ai-snt__gauge-card:last-child {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
  }

  .ai-snt__bar-row {
    grid-template-columns: 76px 1fr 58px;
  }

  .ai-snt__cal-row {
    grid-template-columns: 44px 48px 1fr 22px;
    gap: 0.35rem;
  }

  .ai-persona__card-body {
    grid-template-columns: 1fr;
  }

  .ai-persona__section {
    border-right: none;
  }

  .ai-tool__selects {
    grid-template-columns: 1fr;
  }

  .ai-shell__body .ai-collab__flow {
    flex-direction: column;
  }

  .ai-shell__body .ai-collab__role--ai {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .ai-shell__body .ai-collab__arrow {
    transform: rotate(90deg);
    align-self: center;
    padding: 0.3rem 0;
  }

  .ai-collab__legend-note {
    display: none;
  }

  .ai-collab__section-meta {
    display: none;
  }

  .ai-collab__brief-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-collab__brief-divider {
    align-self: flex-start;
  }

  .ai-shell__body .ai-collab__decision {
    grid-template-columns: 76px 1fr;
  }

  .ai-shell__body .ai-collab__decision-reason {
    display: none;
  }
}

@media (max-width: 420px) {
  .ai-snt__gauges {
    grid-template-columns: 1fr;
  }

  .ai-snt__gauges .ai-snt__gauge-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .ai-snt__cal-exp {
    display: none;
  }

  .ai-shell__badge {
    display: none;
  }
}


/* ================================================================
   DEEP DIVE PAGES
   (code-prototypes, lessons-learned, user-research-methodology,
    visual-design-evolution)
   ================================================================ */

/* --- Shared layout --- */

.dd-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px);
  position: relative;
  overflow: hidden;
}

.dd-hero--purple {
  background: linear-gradient(135deg, rgba(108, 66, 255, 0.15) 0%, rgba(100, 149, 237, 0.08) 100%), var(--bg-void);
}

.dd-hero--red {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(139, 69, 19, 0.08) 100%), var(--bg-void);
}

.dd-hero--blue {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.1) 0%, transparent 60%), var(--bg-void);
  border-bottom: 1px solid var(--border);
}

.dd-hero--gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.95));
  text-align: center;
}

.dd-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dd-hero__inner--center {
  text-align: center;
}

.dd-hero__badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-weight: 600;
}

.dd-hero__badge--purple {
  background: rgba(108, 66, 255, 0.15);
  border: 1px solid rgba(108, 66, 255, 0.4);
  color: #a78bfa;
}

.dd-hero__badge--red {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.dd-hero__badge--gold {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 2rem;
}

.dd-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.dd-hero__title--gradient-red {
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff9999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dd-hero__title--large {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.dd-hero__desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 800px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.dd-hero__desc--center {
  margin: 0 auto;
}

.dd-section {
  padding: 6rem 0;
  background: var(--bg-void);
}

.dd-section--alt {
  background: linear-gradient(180deg, var(--bg-void) 0%, #080b12 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.dd-section--cta {
  text-align: center;
}

.dd-section--cta-blue {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.12), rgba(0, 0, 0, 0.95));
  text-align: center;
}

.dd-section--cta-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.95));
  text-align: center;
}

.dd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dd-container--narrow {
  max-width: 1000px;
}

.dd-container--wide {
  max-width: 1400px;
}

.dd-container--xs {
  max-width: 800px;
}

.dd-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.dd-section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.dd-section-title--sm {
  font-size: 2rem;
}

.dd-section-subtitle {
  text-align: center;
  color: var(--text-tertiary);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.dd-section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #d4af37;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* --- Shared components --- */

.dd-intro-box {
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 4rem;
}

.dd-intro-box--purple {
  background: rgba(108, 66, 255, 0.05);
  border: 1px solid rgba(108, 66, 255, 0.2);
}

.dd-intro-box--red {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 107, 107, 0.02) 100%);
  border: 1px solid rgba(255, 107, 107, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.1);
}

.dd-intro-box__title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.dd-intro-box__title--purple {
  color: #a78bfa;
}

.dd-intro-box__title--red {
  color: #ff6b6b;
}

.dd-intro-box__text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
  color: var(--text-secondary);
}

.dd-intro-box__list {
  font-size: 1.05rem;
  line-height: 1.8;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.dd-heading--blue {
  color: #6495ed;
}

.dd-heading--green {
  color: #4caf50;
}

.dd-heading--orange {
  color: #ffa500;
}

.dd-heading--red {
  color: #ff6b6b;
}

.dd-heading--gold {
  color: #d4af37;
}

.dd-heading--teal {
  color: var(--color-teal);
}

.dd-text-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.dd-highlight-box {
  padding: 1.2rem;
  border-radius: var(--radius-m);
  margin-top: 1rem;
}

.dd-highlight-box--blue {
  background: rgba(100, 149, 237, 0.05);
}

.dd-highlight-box--green {
  background: rgba(76, 175, 80, 0.05);
}

.dd-highlight-box--orange {
  background: rgba(255, 152, 0, 0.05);
}

.dd-outcome-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: var(--radius-m);
}

.dd-outcome-box--sm {
  padding: 1.5rem;
  margin-top: 2rem;
}

.dd-outcome-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.dd-note-box {
  border-radius: var(--radius-m);
  padding: 2rem;
  margin: 4rem 0;
}

.dd-note-box--red {
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.dd-note-box__title {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.dd-note-box__text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  color: var(--text-secondary);
}

.dd-grid {
  display: grid;
  gap: 2rem;
}

.dd-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.dd-grid--3col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dd-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.dd-step-grid {
  display: grid;
  gap: 3rem;
}

.dd-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.dd-step__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-void);
}

.dd-step__number--blue {
  background: linear-gradient(135deg, #6495ed, #4169e1);
  box-shadow: 0 8px 24px rgba(100, 149, 237, 0.3);
}

.dd-step__number--green {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.dd-step__number--orange {
  background: linear-gradient(135deg, #ffa500, #ff6f00);
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
}

.dd-step__title {
  margin-top: 0;
  margin-bottom: 1rem;
}

.dd-step__text {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.dd-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dd-cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.dd-back-btn {
  text-align: center;
  margin-top: 5rem;
}

.dd-footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.dd-footer a {
  color: #6495ed;
  text-decoration: none;
}

.dd-footer a:hover {
  text-decoration: underline;
}

.dd-return-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  transition: border-color var(--duration-fast) var(--ease);
}

.dd-return-link:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.dd-list {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.dd-list--wide {
  line-height: 2;
}

.dd-list--sm {
  font-size: 0.9rem;
}

.dd-muted {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.dd-emphasis {
  opacity: 0.75;
  font-style: italic;
}

.dd-disclosure {
  margin-top: 2rem;
  background: rgba(100, 149, 237, 0.05);
  border: 1px solid rgba(100, 149, 237, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
}

.dd-disclosure__label {
  color: #6495ed;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dd-disclosure__text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.dd-disclosure__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.85rem;
}

.dd-disclosure__grid strong {
  color: var(--text-secondary);
}

.dd-disclosure__grid ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.dd-pointer {
  margin-top: 3rem;
  padding: 1.2rem 1.8rem;
  background: rgba(100, 149, 237, 0.04);
  border: 1px solid rgba(100, 149, 237, 0.15);
  border-radius: var(--radius-m);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.dd-pointer__arrow {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dd-pointer__title {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dd-pointer__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.dd-pointer__desc a {
  color: rgba(100, 149, 237, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 149, 237, 0.3);
}

.dd-contrast-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.dd-contrast-box__title {
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.dd-contrast-label {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* --- Code Prototypes page --- */

.prototype-gallery {
  display: grid;
  gap: 3rem;
  margin: 4rem 0;
}

.prototype-item {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.05), rgba(100, 149, 237, 0.01));
  border: 1px solid rgba(100, 149, 237, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.prototype-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(100, 149, 237, 0.2);
  border-color: rgba(100, 149, 237, 0.4);
}

.prototype-item img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--border);
}

.prototype-item figcaption {
  padding: 2rem;
}

.prototype-item h3 {
  color: #6495ed;
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
}

.prototype-item p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.code-snippet {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.code-snippet strong {
  display: block;
  color: #a78bfa;
  margin-bottom: 0.8rem;
  font-family: inherit;
}

.code-snippet pre {
  margin: 0;
  overflow-x: auto;
}

.code-snippet code {
  color: #e8eeff;
  font-size: 0.9rem;
  line-height: 1.6;
}

.impact-section {
  background: rgba(76, 175, 80, 0.05);
  border-left: 4px solid #4caf50;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-s);
}

.impact-section strong {
  color: #4caf50;
  display: block;
  margin-bottom: 0.8rem;
}

.impact-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.impact-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tech-highlights {
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  margin: 2rem 0;
}

.tech-highlights h4 {
  color: #6495ed;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.tech-highlights ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-highlights li {
  padding: 0.8rem 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tech-highlights li::before {
  content: "\2713";
  color: #4caf50;
  font-weight: bold;
  margin-right: 0.8rem;
}

.jp-relevance {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03));
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
}

.jp-relevance h4 {
  color: #d4af37;
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.jp-relevance p {
  line-height: 1.8;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.dd-impact-box {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.02));
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 5rem 0;
}

.dd-impact-box__title {
  color: #4caf50;
  margin-top: 0;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* --- Lessons Learned page --- */

.failure-case {
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.failure-case:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.failure-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.failure-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.failure-title {
  flex: 1;
}

.failure-title h3 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #ff6b6b;
  font-weight: 600;
}

.failure-title .hypothesis {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.ll-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.version-card {
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid;
}

.version-card--fail {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 107, 107, 0.02) 100%);
  border-color: rgba(255, 107, 107, 0.3);
}

.version-card--pass {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.02) 100%);
  border-color: rgba(76, 175, 80, 0.3);
}

.version-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-label--fail {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.version-label--pass {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.version-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.version-card ul {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.9;
}

.version-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.learning-box {
  background: rgba(100, 149, 237, 0.05);
  border: 1px solid rgba(100, 149, 237, 0.2);
  box-shadow: inset 0 0 0 1px rgba(100, 149, 237, 0.1);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.learning-box h4 {
  margin: 0 0 1rem 0;
  color: #6495ed;
  font-size: 1.2rem;
}

.learning-box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.ll-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ll-metric-card {
  background: var(--bg-elevated);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.ll-metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff6b6b, #ff9999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ll-metric-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.ll-cta-section {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.08) 0%, rgba(100, 149, 237, 0.02) 100%);
  border: 1px solid rgba(100, 149, 237, 0.2);
  border-radius: 16px;
  padding: 3rem;
  margin: 5rem 0;
  text-align: center;
}

.ll-cta-section h3 {
  margin: 0 0 1rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #6495ed;
}

.ll-cta-section p {
  margin: 0 0 2rem 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.dd-btn,
.ll-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 1rem 2rem;
  border-radius: var(--radius-m);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0.5rem;
  background: linear-gradient(135deg, #6495ed 0%, #5a85d8 100%);
  color: var(--bg-void);
  box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
}

.dd-btn:hover,
.ll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
  background: linear-gradient(135deg, #7aa5f7 0%, #6495ed 100%);
}

.dd-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 1rem 2rem;
  border-radius: var(--radius-m);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

.dd-btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  background: var(--border-hover);
  border-color: var(--border-hover);
}

/* --- User Research page --- */

.persona-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.persona-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(100, 149, 237, 0.05), transparent 50%);
  pointer-events: none;
}

.persona-card:hover {
  transform: translateY(-8px);
  border-color: rgba(100, 149, 237, 0.3);
  box-shadow: 0 16px 48px rgba(100, 149, 237, 0.15);
}

.persona-card--gold {
  border-color: rgba(212, 175, 55, 0.2);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), transparent);
}

.persona-card--teal {
  border-color: var(--color-teal-15);
  background: linear-gradient(135deg, var(--color-teal-03), transparent);
}

.persona-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.persona-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6495ed, #4169e1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(100, 149, 237, 0.3);
}

.persona-avatar--orange {
  background: linear-gradient(135deg, #ff9800, #ff5722);
}

.persona-avatar--gold {
  background: linear-gradient(135deg, #d4af37, #8b6914);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.persona-avatar--teal {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
  box-shadow: 0 8px 24px var(--color-teal-20);
}

.persona-info h3 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  color: #6495ed;
}

.persona-info h3.dd-heading--gold {
  color: #d4af37;
}

.persona-info h3.dd-heading--teal {
  color: var(--color-teal);
}

.persona-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.persona-tag {
  padding: 0.4rem 1rem;
  background: rgba(100, 149, 237, 0.1);
  border: 1px solid rgba(100, 149, 237, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #6495ed;
}

.persona-tag--gold {
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
}

.persona-tag--teal {
  color: var(--color-teal);
  border-color: var(--color-teal-30);
  background: var(--color-teal-06);
}

.quote-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 149, 237, 0.25);
  border-top: 3px solid #6495ed;
  border-radius: var(--radius-m);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
  color: var(--text-secondary);
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 80px;
  color: rgba(100, 149, 237, 0.2);
  font-family: Georgia, serif;
}

.quote-block--gold {
  border-top-color: #d4af37;
  border-color: rgba(212, 175, 55, 0.2);
}

.quote-block--teal {
  border-top-color: var(--color-teal);
  border-color: var(--color-teal-15);
}

.persona-section-title {
  margin-bottom: 1rem;
}

.journey-map {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.journey-map__label {
  margin-top: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.journey-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.journey-stage {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.journey-stage:hover {
  background: rgba(100, 149, 237, 0.08);
  border-color: rgba(100, 149, 237, 0.3);
  transform: translateY(-4px);
}

.journey-stage__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.journey-stage__icon--muted {
  filter: grayscale(100%) opacity(0.5);
}

.journey-stage h6 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.journey-stage p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.pain-point {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.03));
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.pain-point__title {
  color: #ff6b6b;
  margin-top: 0;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.solution-point {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.03));
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.solution-point__title {
  color: #4caf50;
  margin-top: 0;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.research-method {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.research-method__title {
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.research-method__text {
  margin: 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

.research-method__stat {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-m);
}

.research-method__stat--blue {
  background: rgba(100, 149, 237, 0.05);
}

.research-method__stat--green {
  background: rgba(76, 175, 80, 0.05);
}

.research-method__stat--orange {
  background: rgba(255, 152, 0, 0.05);
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.impact-metric {
  text-align: center;
}

.impact-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6495ed, #4caf50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.impact-label {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.dd-measured-impact {
  background: rgba(100, 149, 237, 0.08);
  border: 1px solid rgba(100, 149, 237, 0.25);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.dd-measured-impact--gold {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.2);
}

.dd-measured-impact--teal {
  background: var(--color-teal-05);
  border-color: var(--color-teal-15);
}

.dd-measured-impact__label {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dd-measured-impact__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.dd-workflow-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.dd-workflow-box--teal {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--color-teal-12);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

.dd-workflow-box__label {
  margin-top: 0;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dd-fix-stage {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-teal-12);
  background: var(--color-teal-06);
}

.dd-fix-stage__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.dd-fix-stage__title {
  font-size: 0.72rem;
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.dd-fix-stage__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Visual Design Evolution page --- */

.comparison-container {
  position: relative;
  margin: 4rem 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 800px);
  overflow: hidden;
}

.comparison-slider .comparison-before,
.comparison-slider .comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-slider .comparison-before {
  z-index: 1;
}

.comparison-slider .comparison-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.3s ease;
}

.comparison-slider .comparison-before img,
.comparison-slider .comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.comparison-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #6495ed, #4caf50);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6495ed, #4caf50);
  border: 4px solid var(--bg-void);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-void);
  box-shadow: 0 8px 24px rgba(100, 149, 237, 0.5);
  transition: transform 0.2s ease;
}

.comparison-handle:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.comparison-labels {
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 4;
  pointer-events: none;
}

.comparison-label {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  border: 1px solid;
}

.comparison-label--before {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.comparison-label--after {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.4);
  color: #4caf50;
}

.improvement-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.4);
}

.improvement-metric {
  text-align: center;
}

.improvement-metric__value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6495ed, #4caf50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.improvement-metric__value--sm {
  font-size: 1.6rem;
}

.improvement-metric__label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.design-decision-box {
  background: rgba(100, 149, 237, 0.08);
  border: 1px solid rgba(100, 149, 237, 0.25);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.design-decision-box__title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.design-decision-box .decision-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.decision-card__title {
  margin-top: 0;
  margin-bottom: 1rem;
}

.decision-card__list {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.dd-tradeoff-box {
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.dd-tradeoff-box--blue {
  background: rgba(100, 149, 237, 0.08);
  border: 1px solid rgba(100, 149, 237, 0.25);
}

.dd-tradeoff-box--green {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.dd-tradeoff-box--orange {
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.dd-tradeoff-box__title {
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dd-tradeoff-box__text {
  margin: 0;
  line-height: 1.8;
  color: var(--text-secondary);
}

.dd-tradeoff-box__quote {
  margin: 1rem 0 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-top: 3px solid #4caf50;
  border-radius: var(--radius-m);
  font-style: italic;
  color: var(--text-secondary);
}

.dd-tradeoff-box__attribution {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.6rem 0 0;
  font-style: italic;
}

.design-principles {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.design-principles__title {
  color: #d4af37;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  text-align: center;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.principle-item:last-child {
  border-bottom: none;
}

.principle-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.principle-item h4 {
  margin: 0 0 0.8rem;
  color: #d4af37;
  font-size: 1.2rem;
}

.principle-item p {
  margin: 0;
  line-height: 1.8;
  color: var(--text-secondary);
}

.dd-system-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.dd-system-card__title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dd-typo-demo {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  font-family: 'Roboto Mono', monospace;
}

.dd-color-swatch {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dd-color-swatch__block {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
}

.dd-color-swatch__block--profit {
  background: #4caf50;
}

.dd-color-swatch__block--loss {
  background: #ff6b6b;
}

.dd-color-swatch__block--primary {
  background: #6495ed;
}

.dd-color-swatch__block--warning {
  background: #ffa500;
}

.dd-ref-section {
  padding: 3rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.dd-ref-section h3 {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.dd-ref-section ol {
  padding-left: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
  list-style-type: decimal;
}

/* --- Deep Dive responsive --- */

@media (max-width: 768px) {
  .dd-hero {
    padding: 100px 0 50px;
  }

  .persona-header {
    flex-direction: column;
  }

  .journey-stages {
    grid-template-columns: 1fr;
  }

  .dd-grid--2col {
    grid-template-columns: 1fr;
  }

  .ll-comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .failure-header {
    flex-direction: column;
    gap: 1rem;
  }

  .failure-icon {
    font-size: 2.5rem;
  }

  .dd-intro-box,
  .learning-box,
  .ll-cta-section {
    padding: 2rem 1.5rem;
  }

  .ll-metrics-grid {
    grid-template-columns: 1fr;
  }

  .dd-disclosure__grid {
    grid-template-columns: 1fr;
  }

  .dd-step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }

  .dd-step__number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .dd-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1280px) {
  .comparison-slider {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .prototype-item {
    padding: 1.2rem;
    margin: 1.5rem 0;
  }

  .prototype-item h3 {
    font-size: 1.2rem;
  }

  .code-snippet pre {
    font-size: 0.75rem;
    padding: 1rem;
  }

  .dd-grid--4col {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   22. RECOGNITION PAGE
   ================================================================ */

.container--medium {
  max-width: 960px;
}

/* Hero */
.recog-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--border);
}

.recog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px var(--space-4);
  border: 1px solid var(--accent-28);
  border-radius: var(--radius-s);
  background: var(--accent-subtle);
  margin-bottom: var(--space-6);
  opacity: 0.85;
}

.recog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.recog-hero__lead {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: var(--space-4);
  letter-spacing: 0.010em;
}

.recog-hero__sub {
  font-size: 0.90rem;
  line-height: 1.70;
  color: var(--text-tertiary);
  max-width: 660px;
  letter-spacing: 0.010em;
}

/* Body */
.recog-body {
  padding: var(--space-10) 0;
}

/* Sections */
.recog-block {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.recog-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.recog-block__label {
  display: block;
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: var(--space-3);
}

.recog-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.10;
  letter-spacing: -0.020em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.recog-block__lead {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: var(--space-7);
  letter-spacing: 0.010em;
}

/* Evidence rows */
.ev-rows {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-6);
}

.ev-row {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.ev-row:first-child {
  border-top: 1px solid var(--border);
}

.ev-row__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-14);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.ev-row__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.010em;
}

.ev-row__desc {
  font-size: 0.85rem;
  line-height: 1.72;
  color: var(--text-tertiary);
  letter-spacing: 0.010em;
}

.ev-row__desc a {
  color: var(--accent);
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--duration-fast);
}

.ev-row__desc a:hover {
  opacity: 1;
}

/* Outcome rows — executive-recognition.html variant (scoped to .outcome-rows parent) */
.outcome-rows {
  display: flex;
  flex-direction: column;
}

.outcome-rows .outcome-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.outcome-rows .outcome-row:first-child {
  border-top: 1px solid var(--border);
}

.outcome-row__check {
  width: 32px;
  height: 32px;
  background: var(--accent-subtle);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.outcome-row__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: 0.010em;
}

.outcome-row__desc {
  font-size: 0.80rem;
  line-height: 1.68;
  color: var(--text-muted);
  letter-spacing: 0.010em;
}

.outcome-row__desc a {
  color: var(--accent);
  opacity: 0.80;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.outcome-row__tag {
  flex-shrink: 0;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  margin-top: 4px;
  align-self: flex-start;
}

/* Callout box */
.recog-callout {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-38);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin-top: var(--space-6);
}

.recog-callout p {
  font-size: 0.90rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.010em;
}

/* Notice / disclosure boxes */
.recog-notice {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
}

.recog-notice--accent {
  border-color: var(--accent-18);
  background: var(--accent-03);
}

.recog-notice__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: 0.010em;
}

.recog-notice__icon {
  color: var(--accent);
  opacity: 0.70;
  flex-shrink: 0;
}

.recog-notice p {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  letter-spacing: 0.010em;
}

.recog-notice p:last-child {
  margin-bottom: 0;
}

.recog-notice ul {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-tertiary);
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
}

.recog-notice li {
  list-style: disc;
}

.recog-notice__note {
  font-size: 0.80rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.70;
}

/* Executive person cards */
.exec-person {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: border-color var(--duration-base);
}

.exec-person:hover {
  border-color: var(--border-hover);
}

.exec-person__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.exec-person__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.exec-person__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.exec-person__role {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.010em;
}

.exec-person__tag {
  margin-left: auto;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-s);
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-18);
  white-space: nowrap;
  opacity: 0.85;
  align-self: flex-start;
}

.exec-person__body p {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  letter-spacing: 0.010em;
}

.exec-person__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.exec-person__meta-item {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border-radius: var(--radius-s);
}

.exec-person__meta-label {
  display: block;
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.exec-person__meta-value {
  font-size: 0.80rem;
  line-height: 1.65;
  color: var(--text-tertiary);
  letter-spacing: 0.010em;
}

.exec-person__note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border-radius: var(--radius-s);
  margin-top: var(--space-4);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
  letter-spacing: 0.010em;
}

.exec-person__note-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.55;
  margin-top: 1px;
}

/* Public recognition strip */
.recog-strip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}

.recog-strip__label {
  display: block;
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: var(--space-5);
}

.recog-strip__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.recog-strip__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recog-strip__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--bg-surface);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.recog-strip__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.010em;
}

.recog-strip__desc {
  font-size: 0.82rem;
  line-height: 1.68;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.010em;
}

.recog-strip__link {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--duration-fast);
}

.recog-strip__link:hover {
  opacity: 1;
}

/* LinkedIn recommendation cards */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.rec-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-6);
  transition: border-color var(--duration-base);
}

.rec-card:hover {
  border-color: var(--border-hover);
}

.rec-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.rec-card__info {
  flex: 1;
  min-width: 0;
}

.rec-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.rec-card__role {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.010em;
  margin-bottom: 2px;
}

.rec-card__date {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.010em;
}

.rec-card__tag {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-s);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  align-self: flex-start;
}

.rec-card__quote {
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-radius: var(--radius-s);
  border-left: 2px solid var(--accent-28);
}

.rec-card__highlight {
  background: var(--accent-05);
  border: 1px solid var(--accent-14);
  border-radius: var(--radius-s);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  font-size: 0.85rem;
  line-height: 1.68;
  color: var(--text-secondary);
  letter-spacing: 0.010em;
}

.rec-card__expand {
  cursor: pointer;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: var(--space-2) 0;
  user-select: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--duration-fast);
  list-style: none;
  letter-spacing: 0.010em;
}

.rec-card__expand::-webkit-details-marker {
  display: none;
}

.rec-card__expand:hover {
  color: var(--text-primary);
}

.rec-card__expand svg {
  transition: transform var(--duration-base);
}

details[open] .rec-card__expand svg {
  transform: rotate(180deg);
}

.rec-card__full {
  margin-top: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-surface);
  border-radius: var(--radius-s);
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

.rec-card__full p {
  margin-bottom: var(--space-3);
  color: inherit;
  letter-spacing: 0.010em;
}

.rec-card__full p:last-child {
  margin-bottom: 0;
}

.rec-card__signal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border-radius: var(--radius-s);
  font-size: 0.80rem;
  line-height: 1.65;
  color: var(--text-muted);
  letter-spacing: 0.010em;
}

.rec-card__signal-icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.55;
  margin-top: 1px;
}

.rec-card__verify {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
  letter-spacing: 0.010em;
}

.rec-card__verify:hover {
  color: var(--text-primary);
}

/* Weakness accordions */
.weakness-list {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-6);
}

.weakness-item {
  border-bottom: 1px solid var(--border);
}

.weakness-item:first-child {
  border-top: 1px solid var(--border);
}

.weakness-item__summary {
  cursor: pointer;
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-5) 0;
  user-select: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  transition: color var(--duration-fast);
  letter-spacing: 0.008em;
}

.weakness-item__summary::-webkit-details-marker {
  display: none;
}

.weakness-item__summary:hover {
  color: var(--text-primary);
}

.weakness-item__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--duration-base);
  margin-left: auto;
}

details[open] .weakness-item__chevron {
  transform: rotate(180deg);
}

/* ================================================================
   LOGIXPANEL / SHARED PROJECT-DETAIL COMPONENTS
   Reusable BEM classes for project case-study pages.
   ================================================================ */

/* ── project-badge variant: green operations ── */
.project-badge--green-ops {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 55, 9, 0.3);
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-5);
  color: #50c878;
}

/* ── pd-context: Institutional context / info banner ── */
.pd-context {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pd-context strong {
  color: rgba(255, 255, 255, 0.9);
}

/* ── pd-grid: Auto-fit responsive grid ── */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.pd-grid--narrow {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pd-grid--stat {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.pd-grid--2col {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.pd-grid--stack {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* ── pd-card: Generic content card ── */
.pd-card {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.pd-card--elevated {
  background: rgba(255, 255, 255, 0.03);
}

.pd-card--center {
  text-align: center;
}

.pd-card--red {
  background: rgba(255, 107, 107, 0.05);
}

.pd-card--blue {
  background: rgba(100, 149, 237, 0.05);
}

.pd-card--danger-light {
  background: rgba(255, 107, 107, 0.08);
}

.pd-card--blue-light {
  background: rgba(100, 149, 237, 0.08);
}

.pd-card p:last-child {
  margin-bottom: 0;
}

/* ── pd-card__heading: Small uppercase heading inside card ── */
.pd-card__heading {
  margin-top: 0;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ── pd-card__list: List inside a card with smaller text ── */
.pd-card__list {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.pd-card__list--sm {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ── pd-card__text: Paragraphs inside cards ── */
.pd-card__text {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.pd-card__text--sm {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
}

.pd-card__text--sub {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

/* ── pd-option-header: Flex row with title + status pill ── */
.pd-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pd-option-header h4 {
  margin: 0;
}

/* ── pd-status: Status pill (REJECTED / CHOSEN / etc.) ── */
.pd-status {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pd-status--rejected {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.pd-status--warning {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
}

.pd-status--chosen {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

/* ── h4 color variants (used inside cards) ── */
.pd-h4--orange {
  color: #ffa500;
  margin-top: 0;
}

.pd-h4--green {
  color: #50c878;
  margin-top: 0;
}

.pd-h4--fire {
  color: #ff832c;
  margin-top: 0;
}

/* ── pd-tab-icon: Emoji icon above tab card labels ── */
.pd-tab-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-2);
}

.pd-tab-label {
  font-size: 0.9rem;
}

.pd-tab-desc {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 0;
}

/* ── pd-stat: Stat number card ── */
.pd-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  text-align: center;
}

.pd-stat__value {
  font-size: 2rem;
  font-weight: 700;
}

.pd-stat__value--green {
  color: #50c878;
}

.pd-stat__value--orange {
  color: #ff832c;
}

.pd-stat__label {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── pd-arrow: Directional arrow between panels ── */
.pd-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── pd-evolution: 3-col before/arrow/after layout ── */
.pd-evolution {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
}

/* ── card-table overrides for inline-style-free usage ── */
.card-table--full {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* ── pd-verify: Data verification badge block ── */
.pd-verify {
  background: rgba(100, 149, 237, 0.05);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.pd-verify__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(100, 149, 237, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-verify__icon svg {
  width: 22px;
  height: 22px;
  stroke: #6495ed;
}

.pd-verify__title {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.pd-verify__desc {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.pd-verify__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.pd-verify__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.2rem;
  background: rgba(100, 149, 237, 0.12);
  border-radius: var(--radius-m);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.pd-verify__link:hover {
  opacity: 0.8;
}

.pd-verify__link--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}

.pd-verify__validated {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── sidebar list without bullets ── */
.sidebar-list {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── Responsive: stack pd-grid--2col and pd-evolution on mobile ── */
@media (max-width: 599px) {
  .pd-grid--2col {
    grid-template-columns: 1fr;
  }

  .pd-evolution {
    grid-template-columns: 1fr;
  }

  .pd-arrow {
    transform: rotate(90deg);
  }

  .pd-verify {
    flex-direction: column;
  }

  .pd-verify__validated {
    margin-left: 0;
  }
}

.weakness-item__body {
  padding: 0 0 var(--space-5);
}

.weakness-item__body p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  letter-spacing: 0.010em;
}

.weakness-item__body ul {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-tertiary);
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
}

.weakness-item__body li {
  list-style: disc;
  margin-bottom: var(--space-2);
}

.weakness-item__result {
  padding: var(--space-3) var(--space-4);
  background: var(--accent-subtle);
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  line-height: 1.70;
  color: var(--text-secondary);
  letter-spacing: 0.010em;
}

/* Verification options */
.verify-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.verify-option {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.verify-option__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.010em;
}

.verify-option__desc {
  font-size: 0.82rem;
  line-height: 1.68;
  color: var(--text-tertiary);
  margin: 0;
  letter-spacing: 0.010em;
}

/* NDA items */
.nda-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.nda-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.nda-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-14);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.85;
}

.nda-item__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: 0.010em;
}

.nda-item__desc {
  font-size: 0.80rem;
  line-height: 1.65;
  color: var(--text-muted);
  letter-spacing: 0.010em;
}

/* Framework points */
.framework-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.framework-point {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.framework-point__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.010em;
}

.framework-point__desc {
  font-size: 0.85rem;
  line-height: 1.70;
  color: var(--text-tertiary);
  margin: 0;
  letter-spacing: 0.010em;
}

/* CTA */
.recog-cta {
  text-align: center;
  padding: var(--space-10) 0 var(--space-8);
}

.recog-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.020em;
  line-height: 1.10;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.recog-cta__desc {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-7);
  letter-spacing: 0.010em;
}

.recog-cta__note {
  margin-top: var(--space-5);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: 0.010em;
}

.recog-cta__nda {
  text-align: left;
  margin-bottom: var(--space-7);
}

/* Footer */
.recog-footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .verify-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY PAGE (a11y-)
   ═══════════════════════════════════════════════════════════════ */

.a11y-main {
  padding: clamp(80px, 12vh, 140px) 5vw 80px;
  max-width: 900px;
  margin: 0 auto;
}

.a11y-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--stardust-gold);
  opacity: 0.8;
}

.a11y-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
  color: var(--star-primary);
  line-height: 1.1;
}

.a11y-title__accent {
  color: var(--stardust-gold);
}

.a11y-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--star-secondary);
  max-width: 700px;
}

.a11y-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--star-secondary);
}

.a11y-section {
  margin-bottom: var(--space-9);
  padding: var(--space-6);
  border-radius: var(--radius-l);
}

.a11y-section--blue {
  background: rgba(100, 149, 237, 0.05);
}

.a11y-section--red {
  background: rgba(255, 107, 107, 0.05);
}

.a11y-section--subtle {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-l);
}

.a11y-section--plain {
  background: none;
  padding: 0;
}

.a11y-h2 {
  font-size: 24px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.a11y-h2--blue {
  color: var(--pulsar-blue);
}

.a11y-h2--gold {
  color: var(--stardust-gold);
}

.a11y-h2--primary {
  color: var(--star-primary);
}

.a11y-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.a11y-list__item {
  margin-bottom: 1.2rem;
  display: flex;
  gap: var(--space-4);
}

.a11y-list__bullet {
  color: var(--stardust-gold);
}

.a11y-check-list__item {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.a11y-check-icon {
  color: #4CAF50;
  margin-top: 5px;
  flex-shrink: 0;
}

.a11y-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.a11y-card {
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-m);
}

.a11y-card__title {
  color: var(--star-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.a11y-notice {
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgba(212, 175, 55, 0.06);
  border-radius: var(--radius-s);
}

.a11y-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.a11y-tag {
  padding: 0.5rem var(--space-4);
  background: rgba(212, 175, 55, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
}

.a11y-link-row {
  display: flex;
  gap: var(--space-6);
}

.a11y-link {
  color: var(--stardust-gold);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.a11y-meta {
  margin-top: var(--space-7);
  font-size: 13px;
  opacity: 0.5;
}

.a11y-footer {
  padding: var(--space-10) 5vw;
  text-align: center;
}

.a11y-footer__text {
  font-size: 13px;
  color: var(--star-tertiary);
}

/* ================================================================
   LOGIXTRADER / ADDITIONAL SHARED PD COMPONENTS
   ================================================================ */

.pd-card--green {
  background: rgba(76, 175, 80, 0.05);
}

.pd-card--green-med {
  background: rgba(76, 175, 80, 0.08);
}

.pd-card--orange {
  background: rgba(255, 152, 0, 0.04);
}

.pd-card--purple {
  background: rgba(150, 120, 220, 0.05);
}

.pd-card--purple-med {
  background: rgba(150, 120, 220, 0.08);
}

.pd-card--gold-med {
  background: var(--accent-08);
}

.pd-card--danger {
  background: rgba(255, 59, 48, 0.04);
}

.pd-card--danger-med {
  background: rgba(255, 59, 48, 0.05);
}

.pd-card--success-light {
  background: rgba(52, 199, 89, 0.05);
}

.pd-card--lg {
  padding: 2rem;
  border-radius: var(--radius-l);
}

.pd-card--xl {
  padding: 2rem;
  border-radius: var(--radius-l);
  margin-bottom: var(--space-7);
}

.pd-status--green {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.pd-h4--green {
  color: #4CAF50;
  margin-top: 0;
}

.pd-h4--purple {
  color: #b8a0e0;
  margin-bottom: var(--space-2);
}

.pd-h4--blue {
  color: #6495ed;
  margin-bottom: var(--space-2);
}

.pd-h4--red {
  color: #ff832c;
  margin-top: 0;
}

.pd-artifact {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.pd-artifact__header {
  padding: var(--space-4) var(--space-5);
}

.pd-artifact__header--purple {
  background: rgba(150, 120, 220, 0.08);
}

.pd-artifact__header--red {
  background: rgba(255, 59, 48, 0.06);
}

.pd-artifact__header--orange {
  background: rgba(255, 152, 0, 0.06);
}

.pd-artifact__header--green {
  background: rgba(76, 175, 80, 0.06);
}

.pd-artifact__header--blue {
  background: rgba(100, 149, 237, 0.06);
}

.pd-artifact__label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.pd-artifact__label--purple {
  color: #b8a0e0;
}

.pd-artifact__label--orange {
  color: #FF9800;
}

.pd-artifact__label--green {
  color: #4CAF50;
}

.pd-artifact__img {
  width: 100%;
  display: block;
}

.pd-artifact__caption {
  padding: var(--space-4) var(--space-5);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
}

.pd-testimonial {
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-4);
}

.pd-testimonial--green {
  background: rgba(76, 175, 80, 0.08);
}

.pd-testimonial--blue {
  background: rgba(100, 149, 237, 0.08);
}

.pd-testimonial__quote {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.pd-testimonial__author {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.pd-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: var(--space-4);
  font-style: italic;
}

.pd-note--sm {
  font-size: 0.8rem;
  opacity: 0.6;
  font-style: italic;
  margin-top: var(--space-4);
}

.pd-stat--green {
  background: rgba(76, 175, 80, 0.08);
}

.pd-stat--purple {
  background: rgba(150, 120, 220, 0.08);
}

.pd-stat--gold {
  background: var(--accent-08);
}

.pd-stat--blue {
  background: rgba(100, 149, 237, 0.08);
}

.pd-stat__value--lg {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pd-stat__value--purple {
  color: #b8a0e0;
}

.pd-stat__value--blue {
  color: #6495ED;
}

.pd-stat__sublabel {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: var(--space-2);
}

.pd-quote {
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin: var(--space-5) 0;
}

.pd-quote--purple {
  background: rgba(150, 120, 220, 0.05);
}

.pd-quote__text {
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
}

.pd-quote__follow {
  margin-top: var(--space-4);
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.pd-list--spaced {
  margin: 0;
  padding-left: var(--space-5);
  line-height: 1.8;
}

.pd-list--sm {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 1.2rem;
}

.pd-insight {
  background: var(--bg-elevated);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  border-radius: var(--radius-m);
}

.pd-insight__text {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
}

.pd-competitive {
  background: rgba(150, 120, 220, 0.1);
  padding: var(--space-4);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-4);
}

.pd-competitive__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #b8a0e0;
}

.pd-competitive__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.pd-competitive__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.pd-competitive__subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

.pd-a11y {
  background: rgba(76, 175, 80, 0.08);
  padding: var(--space-4);
  border-radius: var(--radius-m);
}

.pd-a11y__text {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.pd-a11y__link {
  display: inline-block;
  margin-top: 0.8rem;
  color: #4CAF50;
  text-decoration: none;
  font-size: 0.85rem;
}

.pd-a11y__link:hover {
  text-decoration: underline;
}

.pd-methodology-link {
  font-size: 0.78em;
  color: rgba(100, 149, 237, 0.7);
  text-decoration: none;
}

.pd-legend-desc {
  opacity: 0.8;
  font-size: 0.85rem;
}

.pd-desc {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: var(--space-5);
}

.pd-desc--lg {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pd-artifacts-note {
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin-top: 2rem;
}

.pd-artifacts-note__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.card-table__th--left {
  text-align: left;
}

.card-table__th--highlight {
  background: rgba(76, 175, 80, 0.1);
}

.card-table__td--muted {
  color: #a0a0a0;
}

.card-table__td--highlight {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.05);
}

.card-table__span--sub {
  font-size: 0.8em;
  opacity: 0.7;
}

.pd-results {
  margin: var(--space-6) 0;
}

.btn--parent {
  background: rgba(100, 149, 237, 0.1);
}

.sidebar-list--links a {
  text-decoration: none;
}

.pd-grid--sub2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 599px) {
  .pd-grid--sub2col {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   NOVA PROJECT PAGE — BEM Components
   ================================================================ */

/* ── nova-badge: cyan badge in header ── */
.nova-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(77, 232, 255, 0.1);
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-5);
  color: #4de8ff;
}

/* ── nova-summary: executive summary box ── */
.nova-summary {
  background: var(--accent-05);
  padding: var(--space-6);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-7);
}

.nova-summary p:last-of-type,
.nova-summary ul:last-child {
  margin-bottom: 0;
}

.nova-summary ul {
  margin-top: var(--space-4);
}

/* ── nova-status: orange status/warning panel ── */
.nova-status {
  background: rgba(255, 152, 0, 0.05);
  padding: var(--space-6);
  border-radius: var(--radius-l);
  margin: var(--space-5) 0;
}

.nova-status__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.nova-status__icon {
  font-size: 2.5rem;
}

.nova-status__title {
  margin: 0;
  color: #FF9800;
}

.nova-status__body {
  margin-bottom: var(--space-4);
  font-size: 1.05rem;
}

.nova-status__detail {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.nova-status__detail ul {
  margin: 0;
  line-height: 1.8;
}

.nova-status__footnote {
  margin: var(--space-5) 0 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ── nova-iteration: agile iteration section ── */
.nova-iteration {
  margin-top: var(--space-8);
  margin-bottom: var(--space-9);
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
  align-items: center;
  background: var(--accent-03);
  padding: var(--space-6);
  border-radius: 24px;
}

.nova-iteration__content {
  flex: 1;
  min-width: 320px;
}

.nova-iteration__title {
  margin-top: 0;
  font-size: 1.75rem;
}

.nova-iteration__desc {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--space-5);
  color: #ddd;
}

.nova-iteration__proof {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-10);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nova-iteration__proof-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ── nova-phone: mobile device mockup ── */
.nova-phone {
  flex: 0 0 280px;
  position: relative;
  margin: 0 auto;
}

.nova-phone__frame {
  width: 280px;
  height: 520px;
  background: #000;
  border: 8px solid #1a1a1a;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.nova-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.nova-phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: #1a1a1a;
  border-bottom-left-radius: var(--radius-l);
  border-bottom-right-radius: var(--radius-l);
  z-index: 10;
}

.nova-phone__scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nova-phone__scroll::-webkit-scrollbar {
  display: none;
}

.nova-phone__scroll img {
  width: 100%;
  display: block;
}

.nova-phone__caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-5);
  text-align: center;
  font-style: italic;
}

/* ── nova-threat-grid: triple-threat cards ── */
.nova-threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.nova-threat-card {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.nova-threat-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.nova-threat-card .h4--orange {
  color: #ffa500;
  margin-top: 0;
}

/* ── nova-quote: blue quote/callout ── */
.nova-quote {
  background: rgba(100, 149, 237, 0.05);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin: var(--space-5) 0;
}

.nova-quote p {
  font-size: 1.05rem;
  margin: 0;
}

/* ── nova-options: decision framework ── */
.nova-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.nova-option {
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.nova-option--red {
  background: rgba(255, 107, 107, 0.05);
}

.nova-option--blue {
  background: rgba(100, 149, 237, 0.05);
}

.nova-option--gold {
  background: var(--accent-05);
}

.nova-option__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.nova-option__tag {
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nova-option__tag--rejected {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.nova-option__tag--blue {
  background: rgba(100, 149, 237, 0.2);
  color: #6495ed;
}

.nova-option__tag--chosen {
  background: var(--accent-hover);
  color: var(--accent);
}

.nova-option__body {
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.nova-option__traits {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-3);
  font-size: 0.85rem;
}

/* ── nova-explainer: cyan AI explainability section ── */
.nova-explainer {
  background: rgba(77, 232, 255, 0.05);
  padding: var(--space-6);
  border-radius: 16px;
  margin: var(--space-8) 0;
}

.nova-explainer__title {
  color: var(--color-teal);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nova-explainer__intro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.nova-explainer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.nova-explainer__card {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.nova-explainer__card-title {
  color: var(--color-teal);
  display: block;
  margin-bottom: var(--space-3);
}

.nova-explainer__card-title--default {
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-3);
}

.nova-explainer__card-body {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
}

.nova-explainer__footnote {
  margin: 0;
  font-size: 0.92rem;
  font-style: italic;
  opacity: 0.7;
}

/* ��─ nova-evidence: caption text below diagrams ── */
.nova-evidence__caption {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: var(--space-3);
  text-align: center;
}

/* ── nova-test-table: user testing comparison table ── */
.nova-test-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-m);
  overflow: hidden;
  table-layout: fixed;
}

.nova-test-table thead tr {
  background: var(--accent-10);
}

.nova-test-table th {
  padding: var(--space-4);
  text-align: left;
}

.nova-test-table th:nth-child(2),
.nova-test-table th:nth-child(3) {
  text-align: center;
}

.nova-test-table .th--highlight {
  color: var(--success);
}

.nova-test-table td {
  padding: var(--space-3) var(--space-4);
}

.nova-test-table td:nth-child(2),
.nova-test-table td:nth-child(3) {
  text-align: center;
}

.nova-test-table .td--highlight {
  color: var(--success);
}

/* ── nova-compare: failure to fix two-panel layout ── */
.nova-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: start;
  margin: var(--space-5) 0;
}

.nova-compare__fail {
  background: rgba(255, 107, 107, 0.05);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.nova-compare__arrow {
  font-size: 2rem;
  color: var(--text-muted);
  align-self: center;
  padding-top: var(--space-6);
}

.nova-compare__fix {
  background: rgba(76, 175, 80, 0.05);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.nova-compare__fix-title {
  color: var(--success);
  margin-top: 0;
}

.nova-compare__list {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.2rem;
}

.nova-compare__note {
  font-size: 0.9rem;
  margin-top: var(--space-4);
  font-style: italic;
  opacity: 0.8;
}

/* ── nova-impact: metric stat cards ── */
.nova-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.nova-impact-card {
  padding: var(--space-5);
  border-radius: 10px;
  text-align: center;
}

.nova-impact-card--green {
  background: rgba(76, 175, 80, 0.08);
}

.nova-impact-card--blue {
  background: rgba(100, 149, 237, 0.08);
}

.nova-impact-card--gold {
  background: var(--accent-08);
}

.nova-impact-card--orange {
  background: rgba(255, 152, 0, 0.08);
}

.nova-impact-card__value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.nova-impact-card__value--green {
  color: var(--success);
}

.nova-impact-card__value--blue {
  color: var(--color-slate-blue);
}

.nova-impact-card__value--orange {
  color: var(--color-amber);
}

.nova-impact-card__label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.nova-impact-card__source {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: var(--space-2);
}

.nova-impact-card__detail {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: var(--space-2);
}

/* ── heat-meter: visual risk gauge using conic-gradient ── */
.heat-meter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
}

.heat-arc {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      var(--success) 0deg 180deg,
      var(--color-amber) 180deg 270deg,
      var(--danger) 270deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.heat-arc-inner {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-void);
  z-index: 2;
}

.heat-needle {
  position: absolute;
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, var(--color-teal), var(--color-teal-70));
  border-radius: 2px;
  transform: translateY(-40px) rotate(234deg);
  z-index: 3;
  transform-origin: center 40px;
  box-shadow: 0 0 10px var(--color-teal-30);
}

.heat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-top: var(--space-2);
}

.heat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── nova-pc-content: perspective card content z-fix ── */
.nova-pc-content {
  position: relative;
  z-index: 2;
}

/* ── nova-insight: hard-won insight box ── */
.nova-insight {
  background: rgba(100, 149, 237, 0.05);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin: var(--space-5) 0;
}

.nova-insight__quote {
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
}

.nova-insight__reflection {
  margin-top: var(--space-4);
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ── nova-banking: B2C private banking section ── */
.nova-banking {
  max-width: 960px;
  margin: 0 auto;
}

.nova-banking__box {
  background: var(--accent-05);
  padding: var(--space-6);
  border-radius: var(--radius-l);
  margin-bottom: var(--space-6);
}

.nova-banking__heading {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nova-banking__intro {
  margin-bottom: var(--space-5);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

.nova-banking__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.nova-banking__card {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-5);
  border-radius: var(--radius-m);
}

.nova-banking__card h4 {
  margin: 0 0 var(--space-3) 0;
  font-size: 0.95rem;
}

.nova-banking__card p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.nova-banking__principle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: var(--space-4);
  background: var(--accent-08);
  border-radius: 6px;
  opacity: 0.9;
}

/* ── nova responsive ── */
@media (max-width: 768px) {
  .nova-explainer__grid {
    grid-template-columns: 1fr;
  }

  .nova-compare {
    grid-template-columns: 1fr;
  }

  .nova-compare__arrow {
    text-align: center;
    padding-top: 0;
  }

  .nova-iteration {
    padding: var(--space-5);
  }

  .nova-phone {
    flex: 1 1 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Institutional Readiness Page
   ═══════════════════════════════════════════════════════════════ */

.ir-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px);
}

.ir-hero__title {
  color: rgba(255, 255, 255, 0.97);
  margin-bottom: var(--space-6);
}

.ir-hero__subtitle {
  max-width: 800px;
}

.ir-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: var(--space-6);
  align-items: center;
}

.ir-tags__label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-right: 6px;
}

.ir-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) 10px;
  border-radius: 3px;
  font-size: 10.5px;
  color: rgba(100, 149, 237, 0.85);
  letter-spacing: 0.05em;
  background: rgba(100, 149, 237, 0.05);
}

.ir-tag__sub {
  color: var(--text-muted);
  font-size: 9px;
}

.ir-content {
  max-width: 1200px;
  margin: 0 auto;
}

.ir-thesis {
  background: rgba(100, 149, 237, 0.04);
  padding: var(--space-8) 2.25rem;
  border-radius: 10px;
  margin-bottom: 3.5rem;
}

.ir-thesis__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(100, 149, 237, 0.7);
  margin-bottom: 0.9rem;
}

.ir-thesis__text {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.75rem;
}

.ir-thesis__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.ir-thesis__item {
  padding: 1.1rem 1.25rem 0.8rem 0;
}

.ir-thesis__item--mid {
  padding: 1.1rem 1.25rem 0.8rem;
}

.ir-thesis__item--last {
  padding: 1.1rem 0 0.8rem 1.25rem;
}

.ir-thesis__num {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(100, 149, 237, 0.6);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.ir-thesis__principle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.5;
}

.ir-competencies-intro {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  opacity: 0.9;
}

.ir-table-wrap {
  overflow-x: auto;
  margin-bottom: 4rem;
}

.ir-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.ir-table th {
  padding: 1.2rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(100, 149, 237, 0.3);
}

.ir-table td {
  padding: var(--space-6);
  vertical-align: top;
}

.ir-table__row--odd {
  background: rgba(255, 255, 255, 0.02);
}

.ir-table__row--even {
  background: rgba(255, 255, 255, 0.01);
}

.ir-table__strong {
  color: rgba(255, 255, 255, 0.95);
}

.ir-table__detail {
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.6;
  display: block;
  margin-top: 0.5rem;
}

.ir-table__link {
  text-decoration: none;
  font-size: 0.88rem;
}

.ir-table__meta {
  font-size: 0.8rem;
  opacity: 0.6;
  display: block;
  margin-top: 0.3rem;
}

.ir-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-bottom: 4rem;
}

.ir-insights-card {
  background: rgba(100, 149, 237, 0.05);
  padding: var(--space-8);
  border-radius: var(--radius-l);
}

.ir-insights-card__list {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  padding-left: var(--space-6);
}

.ir-trajectory {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-8);
  border-radius: var(--radius-l);
  margin-bottom: 3rem;
}

.ir-trajectory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.ir-trajectory__year {
  display: block;
  margin-bottom: 0.5rem;
}

.ir-trajectory__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

.ir-proves {
  padding: 2.5rem;
  border-radius: var(--radius-l);
  margin-bottom: 3rem;
}

.ir-proves__intro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
}

.ir-proves__list {
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 0 var(--space-6) var(--space-6);
  color: rgba(255, 255, 255, 0.80);
}

.ir-proves__conclusion {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
}

.ir-disclosure {
  border-radius: var(--radius-l);
  padding: var(--space-6) var(--space-8);
  margin-bottom: 2.5rem;
}

.ir-disclosure__text {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  font-weight: 500;
}

.ir-section-intro {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.ir-archetypes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: 3.5rem;
}

.ir-archetype {
  border-radius: var(--radius-l);
  padding: 1.8rem;
}

.ir-archetype__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.ir-archetype__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ir-archetype__parallel {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
  font-style: italic;
}

.ir-principles {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}

.ir-principles__title {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: var(--space-6);
}

.ir-principles__caveat {
  font-size: 0.88rem;
  opacity: 0.65;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.ir-principles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.ir-principles__label {
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 0.5rem;
}

.ir-principles__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  opacity: 0.8;
}

.ir-gaps {
  border-radius: var(--radius-l);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.ir-gaps__title {
  margin-top: 0;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ir-gaps__caveat {
  font-size: 0.88rem;
  opacity: 0.65;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.ir-gaps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: var(--space-6);
}

.ir-gaps__card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-m);
  padding: 1.2rem;
}

.ir-gaps__card-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.ir-gaps__list {
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.2rem;
  opacity: 0.85;
}

.ir-gaps__conclusion {
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
  opacity: 0.85;
  padding-top: 1rem;
}

.ir-bridging {
  border-radius: var(--radius-l);
  padding: var(--space-8);
  margin-bottom: 3.5rem;
}

.ir-bridging__title {
  margin-top: 0;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ir-bridging__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.ir-bridging__label {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.ir-bridging__desc {
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0;
  opacity: 0.8;
}

.ir-evidence {
  padding: 2.5rem;
  border-radius: var(--radius-l);
  margin-bottom: 3rem;
}

.ir-evidence__title {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
}

.ir-evidence__intro {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-8);
  opacity: 0.9;
}

.ir-evidence__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: var(--space-8);
}

.ir-evidence__card {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.3rem;
  border-radius: var(--radius-m);
}

.ir-evidence__card-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.ir-evidence__card-link {
  text-decoration: none;
}

.ir-evidence__card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

.ir-evidence__throughline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  padding: 1rem;
  background: var(--accent-07);
  border-radius: 6px;
  opacity: 0.9;
}

.ir-ci {
  margin-bottom: 3.5rem;
  padding-top: 3rem;
}

.ir-ci__badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(100, 149, 237, 0.1);
  border-radius: var(--radius-s);
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.ir-ci__title {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

.ir-ci__intro {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 800px;
}

.ir-ci__grid {
  display: grid;
  gap: var(--space-6);
}

.ir-terminal {
  border-radius: 10px;
  overflow: hidden;
}

.ir-terminal--bloomberg {
  background: rgba(255, 165, 0, 0.04);
}

.ir-terminal--factset {
  background: rgba(100, 149, 237, 0.04);
}

.ir-terminal--lseg {
  background: rgba(76, 175, 80, 0.04);
}

.ir-terminal__header {
  padding: 1.25rem var(--space-6);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ir-terminal__badge {
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ir-terminal__badge--bloomberg {
  background: rgba(255, 165, 0, 0.12);
  color: #ffa500;
}

.ir-terminal__badge--factset {
  background: rgba(100, 149, 237, 0.12);
}

.ir-terminal__badge--lseg {
  background: rgba(76, 175, 80, 0.12);
}

.ir-terminal__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ir-terminal__body {
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.ir-terminal__col-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ir-terminal__col-label--bloomberg {
  color: rgba(255, 165, 0, 0.7);
}

.ir-terminal__col-label--factset {
  color: rgba(100, 149, 237, 0.7);
}

.ir-terminal__col-label--lseg {
  color: rgba(76, 175, 80, 0.7);
}

.ir-terminal__col-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.6;
}

.ir-pattern {
  background: var(--accent-05);
  border-radius: 10px;
  padding: var(--space-6);
}

.ir-pattern__title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ir-pattern__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.ir-pattern__text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin: 0 0 0.8rem;
}

.ir-pattern__text:last-child {
  margin-bottom: 0;
}

.ir-pattern__highlight {
  color: rgba(255, 255, 255, 0.9);
}

.ir-pattern__thesis-label {
  font-size: 0.78rem;
  color: var(--accent-80);
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ir-pattern__caveat {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin: 0;
  font-style: italic;
}

.ir-cta {
  text-align: center;
  padding: 3rem 0;
}

.ir-cta__btn {
  font-size: 1rem;
  padding: 1rem var(--space-8);
}

.ir-cta__icon {
  margin-right: 0.5rem;
}

.ir-footer {
  background: var(--bg-void, #000);
  padding: 3rem 0;
  text-align: center;
}

.ir-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-3) 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-s);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
}

.ir-footer__copy {
  margin: 0;
  opacity: 0.4;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .ir-thesis__grid {
    grid-template-columns: 1fr;
  }

  .ir-thesis__item,
  .ir-thesis__item--mid,
  .ir-thesis__item--last {
    padding: 0.8rem 0;
  }

  .ir-terminal__body {
    grid-template-columns: 1fr;
  }

  .ir-pattern__grid {
    grid-template-columns: 1fr;
  }

  .ir-table td {
    padding: var(--space-4);
  }
}


/* ================================================================
   20. DESIGN SYSTEM SHOWCASE
   Self-contained styles for design-system-showcase.html.
   Migrated from embedded <style> blocks + inline styles.
   ================================================================ */

/* ── Root tokens (scoped to showcase page) ── */
.page-ds-showcase {
  --ds-bg: #f8f9fb;
  --ds-surface: #ffffff;
  --ds-surface2: #f0f2f5;
  --ds-border: #e2e6ed;
  --ds-border2: #d0d5dd;
  --ds-text1: #1a1f36;
  --ds-text2: #5a6678;
  --ds-text3: #8c95a6;
  --ds-accent: #1a1f36;
  --ds-accent2: #3b6fd4;
  --ds-green: #16825d;
  --ds-red: #c5303f;
  --ds-gold: #C9A959;
  --ds-purple: #7b1fa2;
  --ds-radius: 10px;
  --ds-sidebar-w: 260px;
  --ds-header-h: 56px;
  --ds-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ds-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-family: var(--ds-font);
  background: var(--ds-bg);
  color: var(--ds-text1);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

.page-ds-showcase a {
  color: var(--ds-accent2);
  text-decoration: none;
}

[data-theme="dark"] .page-ds-showcase {
  --ds-bg: #0a0a12;
  --ds-surface: #12121e;
  --ds-surface2: #1a1c2e;
  --ds-border: #1e2030;
  --ds-border2: #2a2d42;
  --ds-text1: #e8eaf0;
  --ds-text2: #8c95a6;
  --ds-text3: #5a6678;
  --ds-accent: #6495ed;
  --ds-accent2: #7aabff;
}

/* ── Header ── */
.ds-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ds-header-h);
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 16px;
  transition: background 0.3s, border 0.3s;
}

.ds-top-logo {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ds-text1);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-top-logo svg {
  color: var(--ds-accent2);
}

.ds-top-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.ds-top-search input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  background: var(--ds-surface2);
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  font-size: 0.80rem;
  color: var(--ds-text1);
  outline: none;
  transition: all 0.2s;
  font-family: var(--ds-font);
}

.ds-top-search input:focus {
  border-color: var(--ds-accent2);
  box-shadow: 0 0 0 3px rgba(59, 111, 212, 0.10);
}

.ds-top-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text3);
}

.ds-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds-theme-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface2);
  color: var(--ds-text2);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: var(--ds-font);
}

.ds-theme-btn:hover {
  border-color: var(--ds-accent2);
  color: var(--ds-accent2);
}

.ds-back {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--ds-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.ds-back:hover {
  opacity: 0.85;
}

[data-theme="dark"] .ds-back {
  background: var(--ds-accent2);
  color: #0a0a12;
}

/* ── Sidebar ── */
.ds-sidebar {
  position: fixed;
  top: var(--ds-header-h);
  left: 0;
  width: var(--ds-sidebar-w);
  height: calc(100vh - var(--ds-header-h));
  overflow-y: auto;
  background: var(--ds-surface);
  border-right: 1px solid var(--ds-border);
  padding: 20px 0;
  z-index: 90;
  transition: background 0.3s, border 0.3s;
}

.ds-sidebar::-webkit-scrollbar {
  width: 4px;
}

.ds-sidebar::-webkit-scrollbar-thumb {
  background: var(--ds-border);
  border-radius: 2px;
}

.ds-nav-group {
  margin-bottom: 8px;
}

.ds-nav-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ds-text3);
  padding: 8px 24px 6px;
  user-select: none;
}

.ds-nav-link {
  display: block;
  padding: 7px 24px 7px 28px;
  font-size: 0.80rem;
  color: var(--ds-text2);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.ds-nav-link:hover {
  color: var(--ds-text1);
  background: var(--ds-surface2);
}

.ds-nav-link.active {
  color: var(--ds-accent2);
  background: rgba(59, 111, 212, 0.06);
  border-left-color: var(--ds-accent2);
  font-weight: 600;
}

.ds-nav-link svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 8px;
  opacity: 0.55;
}

/* ── Main content ── */
.ds-main {
  margin-left: var(--ds-sidebar-w);
  margin-top: var(--ds-header-h);
  padding: 40px 48px 80px;
  max-width: 960px;
  transition: margin 0.3s;
}

.ds-section {
  display: none;
  animation: dsFadeIn 0.25s ease;
}

.ds-section.active {
  display: block;
}

@keyframes dsFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ds-section-title {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ds-text1);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.ds-section-subtitle {
  font-size: 0.88rem;
  color: var(--ds-text2);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 640px;
}

.ds-h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ds-text1);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-h3 svg {
  color: var(--ds-accent2);
}

.ds-paragraph {
  font-size: 0.88rem;
  color: var(--ds-text2);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 640px;
}

/* ── Preview Box ── */
.ds-preview {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--ds-surface);
  transition: border 0.3s, background 0.3s;
}

.ds-preview-header {
  padding: 8px 16px;
  background: var(--ds-surface2);
  border-bottom: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.64rem;
  color: var(--ds-text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: background 0.3s;
}

.ds-preview-body {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ds-preview-body.col {
  flex-direction: column;
  align-items: stretch;
}

.ds-preview-code {
  padding: 14px 16px;
  background: var(--ds-bg);
  border-top: 1px solid var(--ds-border);
  font-family: var(--ds-mono);
  font-size: 0.72rem;
  color: var(--ds-text2);
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  display: none;
}

.ds-preview.show-code .ds-preview-code {
  display: block;
}

.ds-code-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ds-text3);
  transition: color 0.15s;
  font-family: var(--ds-font);
}

.ds-code-toggle:hover {
  color: var(--ds-accent2);
}

/* ── Token Grid ── */
.ds-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.ds-token-swatch {
  border-radius: var(--ds-radius);
  overflow: hidden;
  border: 1px solid var(--ds-border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ds-token-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ds-token-color {
  height: 52px;
}

.ds-token-info {
  padding: 8px 10px;
  background: var(--ds-surface);
}

.ds-token-info .name {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--ds-text1);
}

.ds-token-info .hex {
  font-size: 0.60rem;
  color: var(--ds-text3);
  font-family: var(--ds-mono);
}

/* ── Table ── */
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 28px;
}

.ds-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.66rem;
  color: var(--ds-text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  border-bottom: 2px solid var(--ds-border);
  background: var(--ds-surface2);
}

.ds-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ds-border);
  color: var(--ds-text1);
  transition: background 0.1s;
}

.ds-table tr:hover td {
  background: var(--ds-surface2);
}

.ds-table code {
  font-family: var(--ds-mono);
  font-size: 0.74rem;
  padding: 2px 6px;
  background: var(--ds-surface2);
  border-radius: 4px;
  color: var(--ds-accent2);
}

/* ── Component styles ── */
.c-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--ds-font);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.c-btn:active {
  transform: scale(0.97);
}

.c-btn-primary {
  background: var(--ds-accent);
  color: #fff;
}

.c-btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.c-btn-accent {
  background: var(--ds-accent2);
  color: #fff;
}

.c-btn-accent:hover {
  opacity: 0.88;
}

.c-btn-secondary {
  background: var(--ds-surface2);
  color: var(--ds-text1);
  border: 1px solid var(--ds-border);
}

.c-btn-secondary:hover {
  border-color: var(--ds-text3);
}

.c-btn-outline {
  background: transparent;
  color: var(--ds-text1);
  border: 1px solid var(--ds-border2);
}

.c-btn-outline:hover {
  border-color: var(--ds-text1);
}

.c-btn-danger {
  background: var(--ds-red);
  color: #fff;
}

.c-btn-danger:hover {
  opacity: 0.88;
}

.c-btn-ghost {
  background: transparent;
  color: var(--ds-text2);
}

.c-btn-ghost:hover {
  background: var(--ds-surface2);
  color: var(--ds-text1);
}

.c-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.c-btn-sm {
  padding: 6px 14px;
  font-size: 0.72rem;
}

.c-btn-lg {
  padding: 13px 28px;
  font-size: 0.88rem;
}

.c-btn.loading {
  color: transparent;
  position: relative;
  pointer-events: none;
}

.c-btn.loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dsSpin 0.6s linear infinite;
}

@keyframes dsSpin {
  to {
    transform: rotate(360deg);
  }
}

[data-theme="dark"] .c-btn-primary {
  background: var(--ds-accent2);
  color: #0a0a12;
}

[data-theme="dark"] .c-btn.loading::after {
  border-color: rgba(10, 10, 18, 0.3);
  border-top-color: #0a0a12;
}

.c-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ds-border2);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--ds-text1);
  background: var(--ds-surface);
  outline: none;
  transition: all 0.2s;
  font-family: var(--ds-font);
}

.c-input:focus {
  border-color: var(--ds-accent2);
  box-shadow: 0 0 0 3px rgba(59, 111, 212, 0.10);
}

.c-input.error {
  border-color: var(--ds-red);
  box-shadow: 0 0 0 3px rgba(197, 48, 63, 0.08);
}

.c-input.success {
  border-color: var(--ds-green);
}

.c-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6678' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.c-label {
  display: block;
  font-size: 0.70rem;
  color: var(--ds-text2);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.c-hint {
  font-size: 0.66rem;
  color: var(--ds-text3);
  margin-top: 4px;
}

.c-hint--green {
  color: var(--ds-green);
}

.c-error {
  font-size: 0.66rem;
  color: var(--ds-red);
  margin-top: 4px;
}

.c-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: var(--ds-border2);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.c-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.c-toggle:checked {
  background: var(--ds-accent2);
}

.c-toggle:checked::after {
  left: 20px;
}

.c-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ds-border2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  flex-shrink: 0;
}

.c-checkbox:checked {
  background: var(--ds-accent2);
  border-color: var(--ds-accent2);
}

.c-checkbox:checked::after {
  content: '\2713';
  position: absolute;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-radio {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ds-border2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  flex-shrink: 0;
}

.c-radio:checked {
  border-color: var(--ds-accent2);
}

.c-radio:checked::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--ds-accent2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-badge {
  font-size: 0.64rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

.c-badge-blue {
  background: rgba(59, 111, 212, 0.10);
  color: var(--ds-accent2);
  border: 1px solid rgba(59, 111, 212, 0.20);
}

.c-badge-green {
  background: rgba(22, 130, 93, 0.08);
  color: var(--ds-green);
  border: 1px solid rgba(22, 130, 93, 0.20);
}

.c-badge-red {
  background: rgba(197, 48, 63, 0.08);
  color: var(--ds-red);
  border: 1px solid rgba(197, 48, 63, 0.20);
}

.c-badge-gold {
  background: var(--accent-10);
  color: var(--ds-gold);
  border: 1px solid var(--accent-hover);
}

.c-badge-gray {
  background: var(--ds-surface2);
  color: var(--ds-text3);
  border: 1px solid var(--ds-border);
}

.c-badge-purple {
  background: rgba(123, 31, 162, 0.08);
  color: var(--ds-purple);
  border: 1px solid rgba(123, 31, 162, 0.20);
}

.c-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 20px;
  transition: box-shadow 0.2s, border 0.2s;
}

.c-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: var(--ds-border2);
}

.c-alert {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--ds-radius);
  font-size: 0.82rem;
  line-height: 1.5;
}

.c-alert svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.c-alert-info {
  background: rgba(59, 111, 212, 0.06);
  border: 1px solid rgba(59, 111, 212, 0.18);
  color: var(--ds-text1);
}

.c-alert-info svg {
  color: var(--ds-accent2);
}

.c-alert-success {
  background: rgba(22, 130, 93, 0.06);
  border: 1px solid rgba(22, 130, 93, 0.18);
  color: var(--ds-text1);
}

.c-alert-success svg {
  color: var(--ds-green);
}

.c-alert-warning {
  background: var(--accent-08);
  border: 1px solid var(--accent-hover);
  color: var(--ds-text1);
}

.c-alert-warning svg {
  color: var(--ds-gold);
}

.c-alert-error {
  background: rgba(197, 48, 63, 0.06);
  border: 1px solid rgba(197, 48, 63, 0.18);
  color: var(--ds-text1);
}

.c-alert-error svg {
  color: var(--ds-red);
}

.c-range {
  width: 100%;
  height: 4px;
  appearance: none;
  background: var(--ds-border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.c-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ds-accent2);
  box-shadow: 0 0 6px rgba(59, 111, 212, 0.35);
  cursor: pointer;
}

.c-progress {
  height: 6px;
  background: var(--ds-surface2);
  border-radius: 3px;
  overflow: hidden;
}

.c-progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* ── Skeleton & Spinner ── */
@keyframes dsShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.ds-skel {
  background: linear-gradient(90deg, var(--ds-surface2) 25%, var(--ds-border) 50%, var(--ds-surface2) 75%);
  background-size: 200% 100%;
  animation: dsShimmer 1.8s ease-in-out infinite;
  border-radius: 6px;
}

.ds-spin {
  border: 2px solid var(--ds-border);
  border-top-color: var(--ds-accent2);
  border-radius: 50%;
  animation: dsSpin 0.7s linear infinite;
}

/* ── Chip select ── */
.ds-chip {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
}

.ds-chip.ds-chip--active {
  background: var(--ds-accent2);
  color: #fff;
  border-color: var(--ds-accent2);
}

/* ── Toast container ── */
.ds-toast-container {
  position: fixed;
  top: 70px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* ── Pulse animation ── */
@keyframes dsPulseBlue {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ── Figma embed ── */
.ds-figma-embed {
  border-radius: var(--ds-radius);
  overflow: hidden;
  border: 1px solid var(--ds-border);
  margin-bottom: 32px;
}

.ds-figma-embed:last-child {
  margin-bottom: 0;
}

.ds-figma-embed iframe {
  border: none;
  display: block;
  width: 100%;
  height: 600px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ds-sidebar {
    display: none;
  }

  .ds-main {
    margin-left: 0;
    padding: 24px 20px 60px;
  }
}

/* ==========================================================================
   Data Verification Page
   ========================================================================== */

/* Hero */
.dv-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px);
  background: var(--bg-void);
  border-bottom: 1px solid var(--border);
}

.dv-hero__badge {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: rgba(100, 149, 237, 0.08);
  border: 1px solid rgba(100, 149, 237, 0.3);
  border-radius: var(--radius-s);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #6495ed;
  margin-bottom: var(--space-6);
}

.dv-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.dv-hero__description {
  font-size: 1.15rem;
  max-width: 780px;
  opacity: 0.85;
  line-height: 1.8;
}

.dv-hero__description strong {
  color: #6495ed;
  font-weight: 600;
}

/* Manifest Link */
.dv-manifest-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: rgba(100, 149, 237, 0.1);
  border-radius: var(--radius-m);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dv-manifest-link__external-icon {
  opacity: 0.7;
}

.dv-manifest-link__caption {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 700px;
}

/* Tier Grid */
.dv-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.dv-tier-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-s);
  padding: var(--space-7);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.dv-tier-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.dv-tier-card--1 {
  --tier-accent: #4caf50;
}

.dv-tier-card--2 {
  --tier-accent: #ff9800;
}

.dv-tier-card--3 {
  --tier-accent: #9370db;
}

.dv-tier-card--4 {
  --tier-accent: #d4af37;
}

.dv-tier-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-5);
  opacity: 0.9;
}

.dv-tier-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tier-accent);
  margin-bottom: var(--space-4);
}

.dv-tier-card__desc {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.dv-tier-card__label {
  display: block;
  margin: var(--space-5) 0 var(--space-3);
  font-size: 0.9rem;
}

.dv-tier-card__list {
  list-style: none;
  margin: var(--space-5) 0;
  padding: 0;
}

.dv-tier-card__list li {
  padding: var(--space-3) 0;
  padding-left: var(--space-5);
  position: relative;
  font-size: 0.92rem;
  opacity: 0.85;
}

.dv-tier-card__list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--tier-accent);
  font-weight: bold;
}

.dv-tier-card__link {
  text-decoration: underline;
}

/* Designer Context */
.dv-designer-context {
  background: rgba(100, 149, 237, 0.03);
  border: 1px solid rgba(100, 149, 237, 0.1);
  border-radius: var(--radius-m);
  padding: var(--space-8) var(--space-7);
  margin: var(--space-10) 0;
}

.dv-designer-context__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  color: #6495ed;
  margin-bottom: var(--space-7);
}

.dv-context-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-6);
}

.dv-context-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.dv-context-box ul {
  list-style: none;
  margin: var(--space-5) 0;
  padding-left: 0;
}

.dv-context-box li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
}

.dv-context-box li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #6495ed;
  font-size: 1.5rem;
  line-height: 1;
}

/* Metrics Philosophy */
.dv-metrics-philosophy {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.dv-metrics-philosophy__title {
  color: #d4af37;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.dv-philosophy-grid {
  display: grid;
  gap: var(--space-5);
}

.dv-philosophy-item__title {
  color: #d4af37;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.dv-philosophy-item__text {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* Calculation Section */
.dv-calc-section {
  background: rgba(100, 149, 237, 0.03);
  border-radius: var(--radius-l);
  padding: var(--space-8) var(--space-7);
  margin: var(--space-10) 0;
}

.dv-calc-section__title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: var(--space-4);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.dv-calc-section__title svg {
  opacity: 0.8;
}

.dv-calc-section__intro {
  text-align: center;
  opacity: 0.85;
  max-width: 900px;
  margin: 0 auto var(--space-7);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Formula Grid & Cards */
.dv-formula-grid {
  display: grid;
  gap: var(--space-7);
  margin-top: var(--space-7);
}

.dv-formula-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-l);
  padding: var(--space-7);
  scroll-margin-top: 100px;
}

.dv-formula-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.dv-formula-card__emoji {
  font-size: 2rem;
}

.dv-formula-card__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.dv-formula-card__title--green {
  color: #50c878;
}

/* Claim boxes */
.dv-formula-card__claim {
  border-radius: var(--radius-m);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.dv-formula-card__claim--green {
  background: rgba(76, 175, 80, 0.08);
}

.dv-formula-card__claim--blue {
  background: rgba(100, 149, 237, 0.08);
}

.dv-formula-card__claim--seo {
  background: rgba(80, 200, 120, 0.08);
}

.dv-formula-card__claim-text {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.dv-formula-card__claim-text--green {
  color: #50c878;
}

/* Formula display */
.dv-formula-card__formula {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.dv-formula-card__formula-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: var(--space-2);
}

.dv-formula-card__formula-text {
  font-size: 1.1rem;
  margin: 0;
}

.dv-formula-card__formula-text+.dv-formula-card__formula-text {
  margin-top: var(--space-4);
}

.dv-formula-card__formula-text--green {
  color: #50c878;
}

.dv-formula-card__formula-note {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: var(--space-4);
  font-family: -apple-system, sans-serif;
}

/* Data list */
.dv-formula-card__data-title {
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.dv-formula-card__data-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dv-formula-card__data-item {
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
}

.dv-formula-card__arrow {
  position: absolute;
  left: 0;
}

/* Warning block */
.dv-formula-card__warning {
  background: rgba(255, 107, 107, 0.05);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  margin-top: var(--space-5);
}

.dv-formula-card__warning-title {
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dv-formula-card__warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.dv-formula-card__warning-list li {
  padding: var(--space-1) 0;
}

.dv-formula-card__warning-list-conclusion {
  margin-top: var(--space-2);
  font-weight: 600;
}

/* Info block */
.dv-formula-card__info {
  background: rgba(212, 175, 55, 0.05);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  margin-top: var(--space-5);
}

.dv-formula-card__info-title {
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dv-formula-card__info-text {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.7;
  margin: 0;
}

/* Disclaimer block */
.dv-formula-card__disclaimer {
  background: rgba(100, 149, 237, 0.05);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  margin-top: var(--space-5);
}

.dv-formula-card__disclaimer-title {
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dv-formula-card__disclaimer-text {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.7;
  margin: 0;
}

/* Rigor Section */
.dv-rigor-section {
  margin-top: var(--space-8);
  background: rgba(100, 149, 237, 0.05);
  border-radius: var(--radius-l);
  padding: var(--space-7);
}

.dv-rigor-section__title {
  margin-top: 0;
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dv-rigor-section__block {
  border-radius: var(--radius-m);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.dv-rigor-section__block--orange {
  background: rgba(255, 165, 0, 0.08);
}

.dv-rigor-section__block--green {
  background: rgba(76, 175, 80, 0.08);
}

.dv-rigor-section__block-title {
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
}

.dv-rigor-section__block-title--orange {
  color: #ffa500;
}

.dv-rigor-section__text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.dv-rigor-section__text:last-child {
  margin-bottom: 0;
}

.dv-rigor-section__list {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
}

.dv-rigor-section__callout {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  font-style: italic;
  padding: var(--space-4);
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--radius-s);
}

.dv-rigor-section__callout strong {
  font-style: normal;
}

/* Manifest Footer */
.dv-manifest-footer {
  margin-top: var(--space-7);
  text-align: center;
  padding-top: var(--space-6);
}

.dv-manifest-footer__text {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: var(--space-4);
}

.dv-manifest-footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(100, 149, 237, 0.1);
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Examples Section */
.dv-examples-section {
  margin: var(--space-10) 0;
}

.dv-examples-section__title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: var(--space-4);
  text-align: center;
}

.dv-examples-section__intro {
  text-align: center;
  opacity: 0.85;
  max-width: 800px;
  margin: 0 auto var(--space-7);
  font-size: 1.05rem;
}

.dv-example-grid {
  display: grid;
  gap: var(--space-7);
  margin: var(--space-7) 0;
}

.dv-example-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-l);
  padding: var(--space-7);
}

.dv-example-card__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dv-example-card__icon {
  font-size: 1.5rem;
}

.dv-example-card strong {
  color: #6495ed;
}

/* Screenshot */
.dv-screenshot {
  background: #f8f9fa;
  padding: var(--space-4);
  border-radius: var(--radius-m);
  margin: var(--space-5) 0;
}

.dv-screenshot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-s);
  border: 1px solid #dee2e6;
}

.dv-screenshot__caption {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
}

/* Attribution Notice */
.dv-attribution-notice {
  background: rgba(255, 152, 0, 0.05);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin: var(--space-4) 0;
}

.dv-attribution-notice__title {
  margin-top: 0;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dv-attribution-notice__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Verify List */
.dv-verify-list {
  list-style: none;
  padding-left: 0;
  margin: var(--space-4) 0;
}

.dv-verify-list__item {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
}

.dv-verify-list__check {
  position: absolute;
  left: 0;
}

/* Contribution Box */
.dv-contribution-box {
  background: rgba(100, 149, 237, 0.05);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin-top: var(--space-5);
}

.dv-contribution-box__title {
  margin-top: 0;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dv-contribution-box__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.dv-contribution-box__list {
  font-size: 0.9rem;
  margin-top: var(--space-3);
}

/* Privacy Notice */
.dv-privacy-notice {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6);
  border-radius: var(--radius-m);
  margin: var(--space-6) 0;
}

.dv-privacy-notice__title {
  color: #4caf50;
  font-size: 1rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dv-privacy-notice__text {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Ethics Box */
.dv-ethics-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: var(--space-6);
  border-radius: var(--radius-m);
  margin-top: var(--space-5);
}

.dv-ethics-box__text {
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.dv-ethics-box__text strong {
  color: #d4af37;
}

/* Data Verification Responsive */
@media (max-width: 768px) {
  .dv-tier-grid {
    grid-template-columns: 1fr;
  }

  .dv-hero {
    padding: 120px 0 60px;
  }

  .dv-designer-context {
    padding: var(--space-7) var(--space-5);
  }

  .dv-example-card {
    padding: var(--space-5);
  }

  .dv-calc-section {
    padding: var(--space-6) var(--space-5);
  }

  .dv-rigor-section {
    padding: var(--space-5);
  }
}

/* ════════════════════════════════════════════════════════════════
   PROCESS & METHODOLOGY PAGE (.pm-*)
   ════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.pm-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px);
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.15) 0%, rgba(108, 66, 255, 0.08) 100%), #000;
}

.pm-hero__subtitle {
  max-width: 800px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.pm-hero__callout {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  max-width: 800px;
}

.pm-hero__callout-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ── Section ── */
.pm-section {
  padding: var(--space-8) 0;
}

.pm-section__heading {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: var(--space-5);
}

.pm-section__heading--center {
  text-align: center;
  margin-bottom: var(--space-7);
  font-weight: 300;
  font-size: 2rem;
}

/* ── Section intro ── */
.pm-section-intro {
  text-align: center;
  margin-bottom: var(--space-7);
}

.pm-section-intro__heading {
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: var(--space-3) 0 var(--space-4);
}

.pm-section-intro__desc {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Badges ── */
.pm-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.pm-badge--accent {
  background: rgba(212, 175, 55, 0.1);
}

.pm-badge--blue {
  background: rgba(100, 149, 237, 0.1);
}

.pm-badge--green {
  background: rgba(80, 200, 120, 0.1);
  color: #50c878;
}

/* ── Variable grid (Choosing the Right Route) ── */
.pm-variable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.pm-variable-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-6);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pm-variable-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(100, 149, 237, 0.4);
}

.pm-variable-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #6495ed;
  margin-bottom: var(--space-5);
  display: block;
}

.pm-variable-card h3 {
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 300;
}

.pm-variable-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pm-variable-card li {
  margin-bottom: var(--space-4);
  line-height: 1.6;
  padding-left: var(--space-5);
  position: relative;
  font-size: 0.95rem;
  opacity: 0.85;
}

.pm-variable-card li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: #6495ed;
}

.pm-variable-card__practice {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  font-size: 0.78rem;
  opacity: 0.55;
  line-height: 1.6;
}

.pm-variable-card__practice-label {
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* ── Decision tree ── */
.pm-decision-tree {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-8) var(--space-6);
  margin: var(--space-8) 0;
  text-align: center;
}

.pm-decision-tree__title {
  margin-bottom: var(--space-8);
  font-weight: 300;
  letter-spacing: 1px;
}

.pm-decision-tree__caption {
  margin-top: var(--space-10);
  opacity: 0.5;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

.pm-tree-node {
  display: inline-block;
  padding: var(--space-4) var(--space-6);
  background: #111;
  border: 1px solid #333;
  border-radius: var(--radius-m);
  margin: var(--space-4);
  position: relative;
  font-weight: 500;
  color: var(--text-primary);
}

.pm-tree-node--root {
  border-color: #6495ed;
  background: rgba(100, 149, 237, 0.1);
  font-size: 1.2rem;
}

.pm-tree-node--high-risk {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.pm-tree-branch-line {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #6495ed, rgba(100, 149, 237, 0.2));
  margin: 0 auto;
}

.pm-tree-connector-horizontal {
  width: 340px;
  height: 2px;
  background: #6495ed;
  margin: 0 auto;
  opacity: 0.3;
  position: relative;
  top: -10px;
}

.pm-tree-branch-container {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 0;
}

/* ── Mobile tree fallback ── */
.pm-mobile-tree-fallback {
  display: none;
  padding: var(--space-6);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-l);
  margin: var(--space-6) 0;
}

/* ── Principles ── */
.pm-principles-grid {
  display: grid;
  gap: var(--space-6);
}

.pm-principle {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-6);
  align-items: start;
}

.pm-principle__number {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.pm-principle__number--blue {
  color: rgba(100, 149, 237, 0.7);
}

.pm-principle__number--red {
  color: rgba(255, 107, 107, 0.7);
}

.pm-principle__number--gold {
  color: var(--accent-70);
}

.pm-principle__number--green {
  color: rgba(76, 175, 80, 0.7);
}

.pm-principle__number--purple {
  color: rgba(147, 112, 219, 0.7);
}

.pm-principle__number--orange {
  color: rgba(255, 165, 0, 0.7);
}

.pm-principle__title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 var(--space-3);
  line-height: 1.4;
}

.pm-principle__title--purple {
  color: #9370db;
}

.pm-principle__title--orange {
  color: #ffa500;
}

.pm-principle__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pm-principle__body {
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 var(--space-4);
}

.pm-principle__examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.pm-principle__example {
  border-radius: var(--radius-m);
  padding: var(--space-3);
}

.pm-principle__example--blue {
  background: rgba(100, 149, 237, 0.06);
}

.pm-principle__example--gold {
  background: var(--accent-06);
}

.pm-principle__example--purple {
  background: rgba(147, 112, 219, 0.06);
}

.pm-principle__example-label {
  font-size: 0.75rem;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.pm-principle__example-label--purple {
  color: #9370db;
}

.pm-principle__example-label--orange {
  color: #ffa500;
}

.pm-principle__example-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

.pm-principle__outcome {
  padding: var(--space-3) var(--space-4);
  background: rgba(76, 175, 80, 0.06);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-4);
}

.pm-principle__outcome--orange {
  background: rgba(255, 165, 0, 0.06);
}

.pm-principle__tension {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 107, 107, 0.05);
  border-radius: var(--radius-s);
}

.pm-principle__tension-label {
  font-size: 0.78rem;
  color: rgba(255, 107, 107, 0.8);
  font-weight: 600;
}

.pm-principle__tension-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Stakeholder ── */
.pm-stakeholder {
  margin: var(--space-11) 0;
  background: rgba(100, 149, 237, 0.03);
  border-radius: 16px;
  padding: var(--space-7);
}

.pm-stakeholder__heading {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pm-stakeholder__intro {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.pm-stakeholder__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
  align-items: stretch;
}

@media (min-width: 900px) {
  .pm-stakeholder__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.pm-stakeholder__card {
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pm-stakeholder__card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.pm-stakeholder__card--red,
.pm-stakeholder__card--gold,
.pm-stakeholder__card--purple,
.pm-stakeholder__card--green {
  background: rgba(255, 255, 255, 0.015);
}

.pm-stakeholder__card > *:last-child {
  margin-bottom: 0;
}

.pm-stakeholder__card-heading {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pm-stakeholder__card-heading--purple {
  color: #9370db;
}

.pm-stakeholder__card-heading--green {
  color: #50c878;
}

.pm-stakeholder__text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.pm-stakeholder__text--muted {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
}

.pm-stakeholder__link {
  font-size: 0.82rem;
  opacity: 0.8;
  text-decoration: none;
  display: inline-block;
  margin-top: var(--space-3);
}

.pm-stakeholder__observation {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(147, 112, 219, 0.06);
  border-radius: var(--radius-m);
  margin-top: var(--space-4);
}

.pm-stakeholder__observation-label {
  color: rgba(147, 112, 219, 0.9);
}

.pm-stakeholder__lesson {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-m);
}

.pm-stakeholder__lesson-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ── Arc (Compounding Knowledge) ── */
.pm-arc {
  position: relative;
  margin: var(--space-7) 0;
}

.pm-arc__item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.pm-arc__item:last-child {
  margin-bottom: 0;
}

.pm-arc__flow {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
}

.pm-arc__flow-meta {
  text-align: center;
  min-width: 80px;
}

.pm-arc__flow-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.pm-arc__flow-tag {
  border-radius: var(--radius-m);
  padding: var(--space-2) var(--space-3);
  font-size: 0.8rem;
  font-weight: 600;
}

.pm-arc__flow-tag--blue {
  background: rgba(100, 149, 237, 0.1);
}

.pm-arc__flow-tag--purple {
  background: rgba(147, 112, 219, 0.1);
  color: #9370db;
}

.pm-arc__flow-tag--gold {
  background: var(--accent-10);
}

.pm-arc__flow-arrow {
  font-size: 1.2rem;
  margin: var(--space-2) 0;
  opacity: 0.4;
}

.pm-arc__heading {
  margin: 0 0 var(--space-3);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.pm-arc__body {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin: 0 0 var(--space-4);
}

.pm-arc__emphasis {
  color: rgba(255, 255, 255, 0.9);
}

.pm-arc__carry-over {
  border-radius: var(--radius-m);
  padding: var(--space-3) var(--space-4);
}

.pm-arc__carry-over--blue {
  background: rgba(100, 149, 237, 0.05);
}

.pm-arc__carry-over--gold {
  background: var(--accent-05);
}

.pm-arc__carry-over-label {
  font-size: 0.78rem;
  font-weight: 600;
}

.pm-arc__carry-over-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Research grid ── */
.pm-research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  align-items: stretch;
}

@media (min-width: 900px) {
  .pm-research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.pm-research-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pm-research-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.pm-research-card > *:last-child {
  margin-top: auto;
}

.pm-research-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pm-research-card__number {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pm-research-card__number--blue {
  background: rgba(100, 149, 237, 0.15);
}

.pm-research-card__number--gold {
  background: var(--accent-15);
}

.pm-research-card__number--green {
  background: rgba(76, 175, 80, 0.15);
}

.pm-research-card__number--purple {
  background: rgba(147, 112, 219, 0.15);
  color: #9370db;
}

.pm-research-card__title {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.pm-research-card__body {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.pm-research-card__strong {
  color: rgba(255, 255, 255, 0.8);
}

.pm-research-card__example {
  border-radius: var(--radius-m);
  padding: var(--space-3);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.pm-research-card__example--blue {
  background: rgba(100, 149, 237, 0.06);
}

.pm-research-card__example--gold {
  background: var(--accent-06);
}

.pm-research-card__example--green {
  background: rgba(76, 175, 80, 0.06);
}

.pm-research-card__example--purple {
  background: rgba(147, 112, 219, 0.06);
}

.pm-research-card__example-label--blue {
  color: rgba(100, 149, 237, 0.8);
}

.pm-research-card__example-label--gold {
  color: var(--accent-80);
}

.pm-research-card__example-label--green {
  color: rgba(76, 175, 80, 0.8);
}

.pm-research-card__example-label--purple {
  color: rgba(147, 112, 219, 0.8);
}

/* ── Anti-patterns ── */
.pm-anti-patterns {
  padding: var(--space-5);
  background: rgba(255, 107, 107, 0.04);
  border-radius: var(--radius-m);
}

.pm-anti-patterns__heading {
  margin: 0 0 var(--space-3);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pm-anti-patterns__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.pm-anti-patterns__item {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

.pm-anti-patterns__marker {
  color: rgba(255, 107, 107, 0.7);
}

/* ── Tools ── */
.pm-tools__intro {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.8;
  max-width: 800px;
}

.pm-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin: var(--space-7) 0;
}

.pm-tools-grid__item {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-5);
  border-radius: var(--radius-l);
  text-align: center;
  border: 1px solid var(--border);
}

.pm-tools-grid__item strong {
  display: block;
  color: #6495ed;
  margin-bottom: var(--space-2);
}

/* ── Handoff ── */
.pm-handoff {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-6);
  border-radius: var(--radius-l);
  margin-top: var(--space-7);
}

.pm-handoff__heading {
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  font-weight: 400;
}

.pm-handoff__list {
  padding-left: var(--space-5);
  line-height: 1.9;
}

/* ── Performance handoff ── */
.pm-perf-handoff {
  background: rgba(100, 149, 237, 0.05);
  padding: var(--space-6);
  border-radius: var(--radius-l);
  margin-top: var(--space-8);
}

.pm-perf-handoff__heading {
  margin-top: 0;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pm-perf-handoff__body {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-5);
  opacity: 0.9;
}

.pm-perf-handoff__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.pm-perf-handoff__option {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-4);
  border-radius: var(--radius-m);
}

.pm-perf-handoff__option-label {
  display: block;
  margin-bottom: var(--space-2);
}

.pm-perf-handoff__option-label--highlight {
  color: #ff6b00;
}

.pm-perf-handoff__option-text {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.pm-perf-handoff__signal {
  margin-top: var(--space-5);
  font-size: 0.92rem;
  font-style: italic;
  opacity: 0.7;
}

/* ── Failures ── */
.pm-failures {
  margin: var(--space-11) 0;
  background: rgba(255, 107, 107, 0.03);
  border-radius: 16px;
  padding: var(--space-7);
}

.pm-failures__heading {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pm-failures__intro {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.pm-failures__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 1100px) {
  .pm-failures__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.pm-failure-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pm-failure-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.pm-failure-card > *:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.pm-failure-card__heading {
  margin-top: 0;
  font-size: 1.2rem;
}

.pm-failure-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.pm-failure-card__text--muted {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.pm-failure-card__correction {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
  padding: var(--space-4);
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--radius-m);
}

.pm-failures__meta-lesson {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-m);
}

.pm-failures__meta-lesson-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Learning ── */
.pm-learning {
  margin: var(--space-11) 0;
  background: rgba(100, 149, 237, 0.03);
  border-radius: 16px;
  padding: var(--space-7);
}

.pm-learning__heading {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pm-learning__intro {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.pm-learning__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1100px) {
  .pm-learning__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.pm-learning-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pm-learning-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.pm-learning-card > *:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.pm-learning-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-learning-card__icon-wrap {
  padding: var(--space-3);
  border-radius: var(--radius-m);
  min-width: 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-learning-card__icon-wrap--orange {
  background: rgba(255, 165, 0, 0.1);
}

.pm-learning-card__icon-wrap--purple {
  background: rgba(147, 112, 219, 0.1);
}

.pm-learning-card__icon-wrap--gold {
  background: rgba(212, 175, 55, 0.1);
}

.pm-learning-card__icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
}

.pm-learning-card__icon-wrap--orange svg {
  color: #ffa500;
}

.pm-learning-card__icon-wrap--purple svg {
  color: #9370db;
}

.pm-learning-card__title {
  margin: 0 0 var(--space-2) 0;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pm-learning-card__title--orange {
  color: #ffa500;
}

.pm-learning-card__title--purple {
  color: #9370db;
}

.pm-learning-card__badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  margin-bottom: var(--space-4);
}

.pm-learning-card__badge--orange {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
}

.pm-learning-card__badge--purple {
  background: rgba(147, 112, 219, 0.15);
  color: #9370db;
}

.pm-learning-card__badge--gold {
  background: rgba(212, 175, 55, 0.15);
}

.pm-learning-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.pm-learning-card__text--muted {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.pm-learning-card__list {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.pm-learning-card__apply {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0;
  padding: var(--space-4);
  background: rgba(147, 112, 219, 0.08);
  border-radius: var(--radius-m);
}

.pm-learning-card__apply--gold {
  background: rgba(212, 175, 55, 0.08);
}

.pm-learning__open-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: rgba(100, 149, 237, 0.1);
  border-radius: var(--radius-m);
}

.pm-learning__open-note-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Relevance ── */
.pm-relevance {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03));
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

.pm-relevance__heading {
  color: #d4af37;
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pm-relevance__body {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.pm-relevance__value {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-5);
  border-radius: var(--radius-m);
  margin-top: var(--space-6);
}

.pm-relevance__value-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Footer ── */
.pm-footer {
  background: var(--bg-void, #000);
  padding: var(--space-7) 0;
  text-align: center;
}

.pm-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-3) var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-s);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

.pm-footer__copy {
  margin: 0;
  opacity: 0.4;
  font-size: 0.85rem;
}

/* ── PM responsive — mobile ── */
@media (max-width: 768px) {
  .pm-hero {
    padding: 100px 0 40px;
  }

  .pm-variable-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin: var(--space-6) 0;
  }

  .pm-variable-card {
    padding: var(--space-5);
  }

  .pm-decision-tree {
    display: none;
  }

  .pm-mobile-tree-fallback {
    display: block;
  }

  .pm-tools-grid {
    grid-template-columns: 1fr;
  }

  .pm-relevance {
    padding: var(--space-5);
  }

  .pm-principle {
    grid-template-columns: 1fr;
  }

  .pm-principle__examples {
    grid-template-columns: 1fr;
  }

  .pm-perf-handoff__compare {
    grid-template-columns: 1fr;
  }

  .pm-arc__flow {
    grid-template-columns: 1fr;
  }

  .pm-arc__flow-meta {
    display: flex;
    gap: var(--space-3);
    align-items: center;
  }

  .pm-arc__flow-arrow {
    margin: 0;
    transform: rotate(-90deg);
  }

  .pm-research-grid {
    grid-template-columns: 1fr;
  }

  .pm-anti-patterns__grid {
    grid-template-columns: 1fr;
  }

  .pm-stakeholder__grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   Hedge Fund Case Study (hedge_fund.html)
   ══════════════════════════════════════════════════════════════ */

.page-project .project-detail-main h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 3.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 107, 0, 0.12);
}

.page-project .project-detail-main h3:first-child {
  margin-top: 0;
}

.hf-outcome {
  margin-top: 1.1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 107, 0, 0.03);
  border-left: 2px solid rgba(255, 107, 0, 0.38);
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hf-outcome strong {
  color: #ff6b00;
  font-weight: 600;
}

.hf-tradeoff {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.815rem;
  line-height: 1.6;
}

.hf-tradeoff strong {
  color: rgba(255, 255, 255, 0.55);
}

.hf-launch-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2.25rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: var(--radius-l);
  background: rgba(255, 107, 0, 0.03);
  text-decoration: none;
  transition: all 0.25s;
  margin-bottom: 0.75rem;
}

.hf-launch-card:hover {
  border-color: rgba(255, 107, 0, 0.45);
  background: rgba(255, 107, 0, 0.07);
}

.hf-launch-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff6b00;
  margin-bottom: 0.25rem;
}

.hf-launch-card__meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.85rem;
}

.hf-screen-chip {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 20px;
  color: rgba(255, 107, 0, 0.65);
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.hf-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-m);
  color: #ff6b00;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
}

.hf-open-btn:hover {
  background: rgba(255, 107, 0, 0.2);
}

.hf-my-5 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.hf-mt-5 {
  margin-top: var(--space-5);
}

.hf-mb-0 {
  margin-bottom: 0;
}

.hf-mb-2 {
  margin-bottom: 0.5rem;
}

.hf-mb-4 {
  margin-bottom: 1.5rem;
}

.hf-mb-6 {
  margin-bottom: 3rem;
}

.hf-hero {
  background: var(--bg-void);
  text-align: left;
  padding: clamp(80px, 10vh, 120px) 0 clamp(50px, 7vh, 80px);
}

.hf-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.hf-badge {
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: var(--radius-s);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hf-badge--orange {
  background: rgba(255, 107, 0, 0.10);
  color: #ff6b00;
}

.hf-badge--amber {
  background: rgba(255, 167, 38, 0.10);
  color: #ffa726;
}

.hf-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hf-title__sub {
  color: rgba(255, 255, 255, 0.75);
}

.hf-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 680px;
  opacity: 0.9;
}

.hf-context {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-tertiary);
  margin-bottom: 1.8rem;
  max-width: 720px;
}

.hf-context__link {
  color: rgba(255, 255, 255, 0.65);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.hf-ctas {
  justify-content: flex-start;
}

.hf-cta--blue {
  background: rgba(100, 149, 237, 0.10);
  border-color: rgba(100, 149, 237, 0.3);
}

.hf-cta--orange {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.25);
  color: rgba(255, 107, 0, 0.8);
}

.hf-methodology {
  background: #040407;
  padding: 1rem clamp(1.5rem, 5vw, 3rem);
}

.hf-methodology__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hf-methodology__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.hf-methodology__icon {
  color: #ff6b00;
  font-size: 0.85rem;
}

.hf-methodology__label {
  color: #ff6b00;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.hf-methodology__note {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-left: auto;
}

.hf-methodology__body {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem 0;
  max-width: 900px;
}

.hf-research-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.hf-research-card {
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
}

.hf-research-card__label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hf-research-card__label--primary {
  color: #ff6b00;
}

.hf-research-card__label--muted {
  color: rgba(255, 255, 255, 0.35);
}

.hf-research-card__body {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.hf-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 107, 0, 0.15);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin: 2rem 0 3rem;
}

.hf-stats-strip__item {
  background: var(--bg-void);
  padding: 1.5rem;
  text-align: center;
}

.hf-stats-strip__value {
  font-size: 2rem;
  font-weight: 700;
  color: #ff6b00;
  line-height: 1;
}

.hf-stats-strip__label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.hf-summary-box {
  background: rgba(255, 107, 0, 0.05);
  padding: 2rem;
  border-radius: var(--radius-m);
  margin-bottom: 3rem;
}

.hf-summary-box__heading {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--accent);
}

.hf-research-box {
  background: rgba(100, 149, 237, 0.04);
  padding: 2rem;
  border-radius: var(--radius-l);
}

.hf-research-box__heading {
  margin-top: 0;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.hf-research-box__intro {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.hf-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.hf-research-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-l);
  padding: 2rem;
  transition: all 0.3s ease;
}

.hf-research-item__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hf-research-item__title--orange {
  color: #ff6b00;
}

.hf-research-item__title--green {
  color: #4CAF50;
}

.hf-research-item__body {
  font-size: 0.88rem;
  margin: 0.5rem 0 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.hf-caveat-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.hf-caveat-box__text {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.hf-thesis-box {
  background: rgba(255, 107, 0, 0.04);
  padding: 2rem 2.25rem;
  border-radius: 10px;
}

.hf-thesis-box__label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 107, 0, 0.75);
  margin-bottom: 1rem;
}

.hf-thesis-box__statement {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
  max-width: 680px;
}

.hf-thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hf-thesis-col {
  padding: 1.25rem 2rem 0 0;
}

.hf-thesis-col--mid {
  padding: 1.25rem 2rem 0;
}

.hf-thesis-col--last {
  padding: 1.25rem 0 0 2rem;
}

.hf-thesis-col__num {
  font-size: 0.62rem;
  color: rgba(255, 107, 0, 0.6);
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
}

.hf-thesis-col__title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.hf-thesis-col__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.62;
}

.hf-blockquote {
  padding: 0.6rem 1rem;
  margin: 0 0 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  line-height: 1.6;
}

.hf-demand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.hf-demand-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-l);
  padding: 2rem;
  transition: all 0.3s ease;
}

.hf-demand-card__icon {
  color: #ff6b00;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.hf-demand-card__title {
  color: #ff6b00;
  margin-top: 0;
}

.hf-demand-card p {
  font-size: 0.95rem;
}

.hf-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.hf-state-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  overflow: hidden;
}

.hf-state-card__header {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
}

.hf-state-card__header--green {
  background: rgba(76, 175, 80, 0.08);
}

.hf-state-card__phase {
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.hf-state-card__phase--crisis {
  color: #ff6b00;
}

.hf-state-card__phase--narrative {
  color: #4CAF50;
}

.hf-state-card__name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.hf-state-card__time {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.hf-state-card__body {
  padding: 1.25rem 1.5rem;
}

.hf-state-card__text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hf-state-card__ux {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 0.8rem;
}

.hf-callout-box {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: var(--radius-m);
}

.hf-callout-box p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.hf-barrier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.hf-barrier-card {
  padding: 1.5rem;
  border-radius: var(--radius-m);
}

.hf-barrier-card--red {
  background: rgba(255, 107, 107, 0.05);
}

.hf-barrier-card--blue {
  background: rgba(100, 149, 237, 0.05);
}

.hf-barrier-card--gold {
  background: var(--accent-05);
}

.hf-barrier-card__body {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.hf-barrier-card__implication {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
  padding-top: 0.75rem;
}

.hf-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.hf-compare-table thead tr {
  background: rgba(255, 107, 0, 0.1);
}

.hf-compare-table th {
  padding: 1rem;
  text-align: left;
  color: #ff6b00;
}

.hf-compare-table td {
  padding: 0.8rem 1rem;
}

.hf-compare-table__type {
  font-weight: 600;
  white-space: nowrap;
}

.hf-compare-table__examples {
  color: rgba(255, 255, 255, 0.6);
}

.hf-compare-table__limit {
  color: rgba(255, 255, 255, 0.8);
}

.hf-pullquote {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  margin: 2rem 0;
}

.hf-pullquote__text {
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.hf-screen-block {
  margin: 3rem 0;
  padding: 2rem;
  background: #1a0900;
  border-radius: var(--radius-l);
}

.hf-screen-block__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hf-screen-block__header--wrap {
  flex-wrap: wrap;
}

.hf-screen-tag {
  background: rgba(255, 107, 0, 0.1);
  color: #ff6b00;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.hf-screen-block__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.hf-screen-block__img {
  width: 100%;
  border-radius: var(--radius-m);
  margin-bottom: 1.5rem;
}

.hf-screen-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hf-screen-panel {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.25rem;
  border-radius: 6px;
}

.hf-screen-panel__heading {
  margin-top: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hf-screen-panel__heading--green {
  color: #4CAF50;
}

.hf-screen-panel p {
  font-size: 0.95rem;
}

.hf-cross-project-note {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.25rem;
  border-radius: var(--radius-m);
}

.hf-cross-project-note p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.hf-cross-project-note__link {
  text-decoration: none;
}

.hf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hf-kpi-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.hf-kpi-card--green {
  background: rgba(76, 175, 80, 0.04);
}

.hf-kpi-card__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff6b00;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hf-kpi-card__value--green {
  color: #4CAF50;
}

.hf-kpi-card__value--white {
  color: var(--text-primary);
}

.hf-kpi-card__label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hf-kyc-intro {
  margin: 4rem 0 2rem;
  padding-bottom: 1rem;
}

.hf-kyc-intro__heading {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.2;
}

.hf-kyc-intro__body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 820px;
  margin: 0;
}

.hf-tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0;
}

.hf-tab-card {
  background: #1a0900;
  border-radius: 10px;
  overflow: hidden;
}

.hf-tab-card--full {
  grid-column: 1 / -1;
}

.hf-tab-card__header {
  padding: 0.6rem 1rem;
  background: rgba(255, 107, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hf-tab-card__num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ff6b00;
}

.hf-tab-card__name {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.hf-tab-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.hf-tab-card__body {
  padding: 1rem 1.25rem;
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.hf-tab-card__highlight {
  color: rgba(255, 255, 255, 0.8);
}

.hf-principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.hf-principle-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.75rem;
  border-radius: var(--radius-m);
}

.hf-principle-card__title {
  margin-top: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hf-principle-card__title--orange {
  color: #e87a40;
}

.hf-principle-card__title--blue {
  color: rgba(180, 200, 240, 0.9);
}

.hf-principle-card__title--green {
  color: rgba(160, 210, 160, 0.9);
}

.hf-principle-card p {
  font-size: 0.95rem;
}

.hf-problem-box {
  background: rgba(255, 107, 107, 0.04);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-m);
  margin: 2rem 0;
}

.hf-problem-box__label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hf-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.hf-option-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: var(--radius-m);
}

.hf-option-card--red {
  background: rgba(255, 107, 107, 0.05);
}

.hf-option-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hf-option-card__body {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.hf-option-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.hf-option-tag--red {
  background: rgba(255, 107, 107, 0.15);
}

.hf-option-tag--blue {
  background: rgba(100, 149, 237, 0.15);
}

.hf-option-tag--gold {
  background: var(--accent-15);
}

.hf-chosen-box {
  background: var(--accent-05);
  padding: 1.5rem;
  border-radius: var(--radius-m);
}

.hf-chosen-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hf-chosen-box__body {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.hf-chosen-box__caveat {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 0.75rem;
}

.hf-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.hf-visual-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-m);
}

.hf-visual-row--blue {
  background: rgba(100, 149, 237, 0.05);
}

.hf-visual-row--red {
  background: rgba(255, 107, 107, 0.05);
}

.hf-visual-row__icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hf-visual-row__icon-box--dot {
  color: #ff6b00;
  font-weight: 700;
}

.hf-visual-row__icon-box--blue {
  background: rgba(100, 149, 237, 0.1);
}

.hf-visual-row__icon-box--red {
  background: rgba(255, 107, 107, 0.1);
}

.hf-visual-row__title {
  color: #ff6b00;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.hf-visual-row__title--white {
  color: var(--text-primary);
}

.hf-visual-row__body {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.hf-visual-row__body--bright {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.8rem;
}

.hf-visual-row__list {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.hf-hypothesis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.hf-hypothesis-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-m);
}

.hf-hypothesis-card__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hf-hypothesis-card__title--orange {
  color: #ff6b00;
}

.hf-hypothesis-card__title--green {
  color: #4CAF50;
}

.hf-hypothesis-card__body {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.hf-hypothesis-card__method {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: var(--text-tertiary);
}

.hf-hypothesis-card__method-label--orange {
  color: rgba(255, 107, 0, 0.7);
}

.hf-hypothesis-card__method-label--blue {
  color: rgba(100, 149, 237, 0.7);
}

.hf-hypothesis-card__method-label--green {
  color: rgba(76, 175, 80, 0.7);
}

.hf-connected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.hf-connected-card {
  text-decoration: none;
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.hf-connected-card--cyan {
  background: rgba(77, 232, 255, 0.04);
}

.hf-connected-card--purple {
  background: rgba(147, 112, 219, 0.04);
}

.hf-connected-card__label {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hf-connected-card__label--cyan {
  color: #4de8ff;
}

.hf-connected-card__label--purple {
  color: #9370db;
}

.hf-connected-card__title {
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.hf-connected-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.hf-related-projects {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hf-related-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: all 0.2s ease;
}

.hf-related-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hf-related-link--cyan {
  background: rgba(77, 232, 255, 0.05);
}

.hf-related-link--cyan:hover {
  background: rgba(77, 232, 255, 0.1);
}

.hf-related-link--purple {
  background: rgba(147, 112, 219, 0.04);
}

.hf-related-link--purple:hover {
  background: rgba(147, 112, 219, 0.1);
}

.hf-related-link__emoji {
  font-size: 1.2rem;
}

.hf-related-link__name {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.85rem;
}

.hf-related-link__name--cyan {
  color: #4de8ff;
}

.hf-related-link__name--purple {
  color: #9370db;
}

.hf-related-link__desc {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.hf-related-link__arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
}

.hf-related-link__arrow--cyan {
  color: rgba(77, 232, 255, 0.4);
}

.hf-related-link__arrow--gold {
  color: var(--accent-30);
}

.hf-related-link__arrow--purple {
  color: rgba(147, 112, 219, 0.5);
}

.hf-concept-note {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  margin-top: 2rem;
}

.hf-concept-note__label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #ff6b00;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hf-concept-note__body {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

@media (max-width: 599px) {
  .hf-research-cards {
    grid-template-columns: 1fr;
  }

  .hf-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hf-thesis-grid {
    grid-template-columns: 1fr;
  }

  .hf-thesis-col,
  .hf-thesis-col--mid,
  .hf-thesis-col--last {
    padding: 1rem 0 0 0;
  }

  .hf-screen-split {
    grid-template-columns: 1fr;
  }

  .hf-option-grid {
    grid-template-columns: 1fr;
  }

  .hf-tab-grid {
    grid-template-columns: 1fr;
  }

  .hf-kpi-grid {
    grid-template-columns: 1fr;
  }

  .hf-launch-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hf-methodology__note {
    margin-left: 0;
  }
}

/* ── 20. Finlogix Live Widget Demo (moved from project-finlogix.html inline style) ── */
.flx-live-demo {
  margin: var(--space-7) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-surface);
}
.flx-live-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  gap: var(--space-4);
}
.flx-live-demo__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.flx-live-demo__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.flx-live-demo__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.flx-live-demo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  animation: flx-pulse 2s ease infinite;
}
@keyframes flx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.flx-live-btn {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--duration-fast);
}
.flx-live-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}
.flx-live-btn--active {
  background: var(--accent-subtle);
  border-color: var(--accent-25);
  color: var(--accent);
}
.flx-live-demo__sym {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.flx-live-demo__price {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.flx-live-demo__chg {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.flx-live-demo__chg--pos {
  background: rgba(0, 212, 170, 0.12);
  color: var(--color-teal);
}
.flx-live-demo__chg--neg {
  background: var(--color-negative-subtle);
  color: var(--color-negative);
}
.flx-live-demo__chart {
  height: 280px;
  position: relative;
}
.flx-live-demo__note {
  padding: var(--space-3) var(--space-5);
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flx-live-demo__note a {
  color: var(--accent);
  text-decoration: none;
}
.flx-live-demo__note a:hover {
  text-decoration: underline;
}
.flx-ctrl-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-right: 4px;
}
.flx-ctrl-label--spaced {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: var(--space-3);
  margin-right: 4px;
}

.btn-small--accent {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-25);
  color: var(--accent);
}
.btn-small--accent:hover {
  background: var(--accent-18);
  border-color: var(--accent-40);
  color: var(--accent);
}


/* ================================================================
   LIVE MARKET TICKER — Real-time forex data strip (Frankfurter API)
   ================================================================ */

.market-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(12, 15, 26, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 var(--gutter);
  height: 36px;
  position: relative;
  z-index: 10;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.market-ticker__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00c896;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  margin-right: 14px;
  flex-shrink: 0;
  position: relative;
  padding-left: 10px;
}

.market-ticker__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00c896;
  animation: ticker-pulse 2s infinite;
}

@keyframes ticker-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,200,150,0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0,200,150,0); }
}

.market-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.market-ticker__track::-webkit-scrollbar { display: none; }

.market-ticker__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  transition: background 0.15s;
}

.market-ticker__item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.market-ticker__sym {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.market-ticker__price {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.market-ticker__price.flash-up {
  animation: ticker-flash-green 0.6s ease-out;
}

.market-ticker__price.flash-down {
  animation: ticker-flash-red 0.6s ease-out;
}

@keyframes ticker-flash-green {
  0%   { color: #00c896; text-shadow: 0 0 8px rgba(0,200,150,0.6); }
  100% { color: rgba(255,255,255,0.88); text-shadow: none; }
}

@keyframes ticker-flash-red {
  0%   { color: #e0475b; text-shadow: 0 0 8px rgba(224,71,91,0.6); }
  100% { color: rgba(255,255,255,0.88); text-shadow: none; }
}

.market-ticker__chg {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.market-ticker__chg.pos { color: #00c896; }
.market-ticker__chg.neg { color: #e0475b; }

.market-ticker__source {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-left: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .market-ticker__source { display: none; }
  .market-ticker__item { padding: 0 10px; }
}

/* ══════════════════════════════════════════════════════
   DATA TERMINAL (INSTITUTIONAL AI CLI)
   ══════════════════════════════════════════════════════ */

.term-fab {
  position: fixed;
  bottom: var(--space-6);
  right: calc(var(--space-6) + 40px + 12px);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  color: var(--text-tertiary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  transition: color var(--duration-fast), background var(--duration-fast), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.term-fab:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.term-fab__icon {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.term-modal {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: min(440px, calc(100vw - 48px));
  height: 480px;
  z-index: 899;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.term-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.term-modal__box {
  width: 100%;
  height: 100%;
  background: #0d1117; /* Deep Ink */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.term-modal__header {
  height: 36px;
  background: rgba(13, 17, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  user-select: none;
}

.term-modal__title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.term-modal__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.term-modal__close:hover {
  color: #fff;
}

.term-modal__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}

.term-output {
  flex: 1;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #c9d1d9;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.term-output::-webkit-scrollbar {
  width: 6px;
}
.term-output::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.term-line {
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.02);
}

.term-line--info { color: #7ee787; text-shadow: 0 0 8px rgba(126, 231, 135, 0.1); } /* Mint */
.term-line--success { color: #ffa657; text-shadow: 0 0 8px rgba(255, 166, 87, 0.1); } /* Amber */
.term-line--accent { color: #ff7b72; text-shadow: 0 0 8px rgba(255, 123, 114, 0.1); } /* Rose */
.term-line--error { color: #f85149; }
.term-line--dim { color: #484f58; opacity: 0.9; }

.term-cmd-echo {
  color: #fff;
  font-weight: 600;
}

.term-system {
  color: #484f58;
}

.term-caret {
  display: inline-block;
  width: 8px;
  animation: termBlink 1s step-end infinite;
  color: #7ee787;
  vertical-align: middle;
}

@keyframes termBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.term-prompt {
  color: #7ee787;
  font-weight: 700;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.term-modal__footer {
  height: 28px;
  background: #0d1117;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 10px;
  color: #484f58;
  user-select: none;
}

/* ── Input wrapper — holds suggestions + input row ── */
.term-input-wrap {
  position: relative;
  flex-shrink: 0;
}

/* ── Autocomplete suggestion strip ── */
.term-suggestions {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.term-suggestions.is-visible {
  display: flex;
  flex-direction: column;
}

.term-suggestion-item {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #8b949e;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s, color 0.1s;
}

.term-suggestion-item:hover,
.term-suggestion-item--active {
  background: rgba(126, 231, 135, 0.08);
  color: #7ee787;
}

/* ── Input placeholder ── */
.term-input::placeholder {
  color: #30363d;
  font-style: italic;
}

/* ── Warning colour (new) ── */
.term-line--warning {
  color: #e3b341;
  text-shadow: 0 0 8px rgba(227, 179, 65, 0.15);
}

/* ── Highlighted search match ── */
.term-line mark {
  background: var(--accent-hover);
  color: #c9a959;
  border-radius: 2px;
  padding: 0 2px;
}

/* ── Input row border polish ── */
.term-input-row {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* ── Scrollbar — match system dark ── */
.term-output {
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

@media (max-width: 640px) {
  .term-modal {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100svh;
    border-radius: 0;
    transform: translateY(100%);
  }
  .term-modal__box {
    border-radius: 0;
    border: none;
  }
  .term-suggestion-item {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ─────────────────────────────────────────────
   PROMPT CHIPS — suggested questions on open
───────────────────────────────────────────── */

.term-prompts {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px 0;
  flex-shrink: 0;
}

.term-prompts.is-visible {
  display: flex;
}

.term-prompt-chip {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.2px;
}

.term-prompt-chip:hover {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.35);
  background: rgba(126, 231, 135, 0.06);
  transform: translateY(-1px);
}

.term-prompt-chip:active {
  transform: translateY(0);
}

/* fade-out animation when chips are dismissed */
.term-prompts.is-hiding {
  animation: chipsFade 0.25s ease forwards;
}

@keyframes chipsFade {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(4px); }
}

/* chips animate in on open */
.term-prompts.is-visible .term-prompt-chip {
  animation: chipIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.term-prompts.is-visible .term-prompt-chip:nth-child(1) { animation-delay: 0.35s; }
.term-prompts.is-visible .term-prompt-chip:nth-child(2) { animation-delay: 0.45s; }
.term-prompts.is-visible .term-prompt-chip:nth-child(3) { animation-delay: 0.55s; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .term-prompt-chip {
    font-size: 12px;
    padding: 7px 14px;
  }
}


/* ================================================================
   AI COWORK PAGE  (artificial_intelligence_cowork.html)
   BEM namespace: .aic-*
   ================================================================ */

/* ── Hero tags ── */
.aic-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

/* ── Three-mode grid ── */
.aic-mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.aic-mode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.aic-mode-card--accent {
  border-color: var(--accent-25);
  background: linear-gradient(135deg, var(--bg-surface), rgba(201,169,89,0.04));
}

.aic-mode-card__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.aic-mode-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.aic-mode-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.aic-mode-card__examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.aic-mode-card__examples span {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

.aic-mode-card__design-note {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
  border-left: 2px solid var(--accent-25);
  padding-left: var(--space-3);
  line-height: 1.5;
}

/* ── Portfolio artifact block ── */
.aic-artifact-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-l);
  padding: var(--space-7);
  margin-bottom: var(--space-7);
}

.aic-artifact-block__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.aic-artifact-block__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.aic-artifact-block__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.aic-artifact-block__specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.aic-spec-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 0.82rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.aic-spec-item:last-child { border-bottom: none; }

.aic-spec-item__label {
  color: var(--text-tertiary);
  min-width: 160px;
  flex-shrink: 0;
}

.aic-spec-item__value {
  color: var(--text-secondary);
}

/* ── Evidence cards ── */
.aic-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.aic-evidence-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-6);
}

.aic-evidence-card__context {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.aic-evidence-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.aic-evidence-card__body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.aic-evidence-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.aic-stat-inline {
  display: flex;
  flex-direction: column;
}

.aic-stat-inline__num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.aic-stat-inline__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
  max-width: 180px;
  line-height: 1.4;
}

/* ── OpenStock context ── */
.aic-openstock-context {
  margin-bottom: var(--space-7);
}

.aic-openstock-context p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.aic-openstock-context p:last-child { margin-bottom: 0; }

/* ── Gap analysis grid ── */
.aic-gap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-9);
}

.aic-gap-item {
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  border-left: 2px solid var(--border);
  transition: border-color 0.2s ease;
}

.aic-gap-item:hover {
  border-color: var(--accent-40);
}

.aic-gap-item__num {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.aic-gap-item__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.aic-gap-item__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Demo wrap ── */
.aic-demo-wrap {
  margin-top: var(--space-4);
}

.aic-demo-label {
  margin-bottom: var(--space-5);
}

.aic-demo-label__sub {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* ── Demo toggle controls ── */
.aic-demo-controls {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.aic-demo-toggle-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: left;
}

.aic-demo-toggle-btn:hover {
  border-color: var(--accent-40);
  color: var(--text-primary);
}

.aic-demo-toggle-btn.active {
  border-color: var(--accent);
  background: var(--accent-08);
  color: var(--text-primary);
}

.aic-demo-toggle-btn__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}

.aic-demo-toggle-btn__sub {
  font-size: 0.72rem;
  opacity: 0.6;
}

/* ── Demo frame ── */
.aic-demo-frame {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* inst-only: hidden in retail, shown in institutional */
.aic-demo-frame[data-view="retail"] .inst-only {
  display: none;
}

.aic-demo-frame[data-view="institutional"] .inst-only {
  display: flex;
  animation: aic-reveal 0.25s ease;
}

@keyframes aic-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Demo header ── */
.aic-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.aic-demo-ticker-group {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.aic-demo-ticker-symbol {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.aic-demo-ticker-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.aic-demo-ticker-change {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.aic-demo-ticker-change.positive { color: #4ddb84; }
.aic-demo-ticker-change.negative { color: #f05252; }

.aic-demo-ticker-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* session context - only in institutional */
.aic-demo-session {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.aic-session-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.aic-session-metric__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aic-session-metric__val {
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.aic-session-metric__val.positive { color: #4ddb84; }
.aic-session-metric__val.safe { color: var(--accent); }

/* ── Compliance bar ── */
.aic-compliance-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: rgba(201,169,89,0.07);
  border-bottom: 1px solid rgba(201,169,89,0.18);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.aic-compliance-bar svg {
  flex-shrink: 0;
  color: var(--accent);
}

.warn-text { color: #f5a623; }

/* ── Demo body ── */
.aic-demo-body {
  display: flex;
  min-height: 360px;
}

.aic-demo-chart-area {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: var(--space-4);
  background: transparent;
}

#aic-chart {
  width: 100%;
  height: 340px;
}

/* Price line annotation labels (positioned absolute within chart area) */
.aic-chart-annotation {
  position: absolute;
  right: var(--space-6);
  font-size: 0.68rem;
  color: var(--accent);
  pointer-events: none;
  background: rgba(12,15,26,0.85);
  padding: 2px 6px;
  border-radius: var(--radius-s);
  white-space: nowrap;
  bottom: 20%;
}

.aic-chart-annotation--tp {
  color: #4ddb84;
  bottom: auto;
  top: 25%;
}

/* ── Institutional side panel ── */
.aic-demo-panel {
  flex-direction: column;
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.aic-panel-section {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.aic-panel-section:last-child { border-bottom: none; }

.aic-panel-section__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* Position calc */
.aic-panel-calc {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.aic-panel-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 3px 0;
}

.aic-panel-row--warn {
  color: #f5a623;
}

/* Compliance checklist */
.aic-panel-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.aic-check-item {
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: var(--radius-s);
  font-variant-numeric: tabular-nums;
}

.aic-check-item--pass {
  color: #4ddb84;
  background: rgba(77,219,132,0.08);
}

.aic-check-item--warn {
  color: #f5a623;
  background: rgba(245,166,35,0.08);
}

/* Execution quality bars */
.aic-panel-exec {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.aic-exec-row {
  display: grid;
  grid-template-columns: 70px 1fr 36px;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.aic-exec-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.aic-exec-bar__fill {
  height: 100%;
  width: var(--fill, 0%);
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.aic-exec-bar__fill--high {
  background: #4ddb84;
}

/* ── Audit trail ── */
.aic-audit-trail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: rgba(77,219,132,0.04);
  border-top: 1px solid rgba(77,219,132,0.12);
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
}

.aic-audit-trail__label {
  color: #4ddb84;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Design decision callouts ── */
.aic-decision-callouts {
  margin-top: var(--space-5);
}

.aic-decision-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-5) var(--space-6);
}

.aic-decision-callout__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.aic-decision-callout__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.aic-decision-callout__list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: var(--space-4);
  border-left: 2px solid var(--border);
}

.aic-decision-callout__list li strong {
  color: var(--text-primary);
}

/* ── Research grid ── */
.aic-research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.aic-research-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 0.2s ease;
}

.aic-research-card:hover {
  border-color: var(--border-hover);
}

.aic-research-card__header {
  margin-bottom: var(--space-1);
}

.aic-research-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-s);
}

.aic-research-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.aic-research-card__subtitle {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin: 0;
}

.aic-research-card__body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.aic-research-card__body strong {
  color: var(--text-primary);
}

.aic-research-card__link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-25);
  width: fit-content;
  transition: border-color 0.2s ease;
}

.aic-research-card__link:hover {
  border-color: var(--accent);
}

/* ── Decision framework ── */
.aic-framework-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.aic-framework-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.aic-framework-card--featured {
  border-color: var(--accent-40);
  background: linear-gradient(135deg, var(--bg-surface), rgba(201,169,89,0.05));
}

.aic-framework-card__verb {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.aic-framework-card--featured .aic-framework-card__verb {
  font-size: 1.15rem;
}

.aic-framework-card__when {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.aic-framework-card__example {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-s);
  border-left: 2px solid var(--border);
}

.aic-framework-card__example-label {
  display: block;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aic-framework-principle {
  background: var(--bg-surface);
  border: 1px solid var(--accent-18);
  border-radius: var(--radius-l);
  padding: var(--space-6);
}

.aic-framework-principle p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
  font-style: italic;
}

.aic-framework-principle em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ── CTA ── */
.aic-cta {
  text-align: center;
  padding: var(--space-9) var(--space-6);
  max-width: 680px;
  margin: 0 auto;
}

.aic-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.aic-cta__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-7);
}

.aic-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── Link accent ── */
a.link-accent {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-25);
  transition: border-color 0.2s ease;
}

a.link-accent:hover {
  border-color: var(--accent);
}

/* ── AIC Responsive ── */
@media (min-width: 600px) {
  .aic-mode-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aic-mode-grid .aic-mode-card:last-child {
    grid-column: 1 / -1;
  }

  .aic-artifact-block__specs {
    grid-template-columns: 1fr 1fr;
  }

  .aic-gap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aic-evidence-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aic-research-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aic-framework-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .aic-mode-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .aic-mode-grid .aic-mode-card:last-child {
    grid-column: auto;
  }

  .aic-demo-panel {
    width: 240px;
  }

  .aic-gap-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .aic-gap-grid .aic-gap-item:nth-child(4),
  .aic-gap-grid .aic-gap-item:nth-child(5) {
    grid-column: span 1;
  }

  .aic-research-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aic-framework-grid {
    grid-template-columns: 1fr 1fr;
  }
}



/* ================================================================
   35. ARTIFICIAL INTELLIGENCE COWORK — TERMINAL MODEL v2
   Components: .tmodel-*, .roi-*, .trust-*, .kyc-*, .gsig-*
   ================================================================ */

/* ── § 35a  Terminal Model — Signal Stack ── */

.tmodel-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.tmodel-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.tmodel-row--problem,
.tmodel-row--terminal,
.tmodel-row--output {
  width: 100%;
}

.tmodel-row--sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: 100%;
}

.tmodel-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.6;
  padding: var(--space-2) 0;
  text-align: center;
  width: 100%;
}

/* Problem & Terminal nodes */
.tmodel-node {
  width: 100%;
  border-radius: var(--radius-l);
  padding: var(--space-5) var(--space-6);
  text-align: center;
}

.tmodel-node--problem {
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.tmodel-node--terminal {
  background: linear-gradient(135deg, rgba(201,169,89,0.08), rgba(201,169,89,0.04));
  border: 1px solid var(--accent);
}

.tmodel-node__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.tmodel-node--terminal .tmodel-node__label {
  color: var(--accent);
}

.tmodel-node__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.tmodel-node__desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}

/* Source cards */
.tmodel-source {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 0.2s ease;
}

.tmodel-source:hover {
  border-color: var(--border-hover);
}

.tmodel-source__icon {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.8;
}

.tmodel-source__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.tmodel-source__items {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Output rankings */
.tmodel-output {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tmodel-output__rank {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-m);
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.tmodel-output__rank--1 {
  background: rgba(77, 219, 132, 0.08);
  border-color: rgba(77, 219, 132, 0.25);
  color: var(--text-primary);
}

.tmodel-output__rank--1 strong {
  color: #4ddb84;
}

.tmodel-output__rank--2 {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.tmodel-output__rank--3 {
  background: var(--bg-surface);
  color: var(--text-tertiary);
}

.tmodel-output__rank--4 {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-style: italic;
}

/* Argument section */
.tmodel-argument {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-9) var(--space-8);
  max-width: 720px;
  margin: 0 auto;
}

.tmodel-argument__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-7);
}

.tmodel-argument__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.tmodel-argument__body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.tmodel-argument__body em {
  color: var(--accent);
  font-style: italic;
}


/* ── § 35b  ROI Solution Explorer ── */

.roi-explorer {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.roi-tabs {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.roi-tab {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.roi-tab:last-child {
  border-bottom: none;
}

.roi-tab:hover {
  background: var(--bg-elevated);
}

.roi-tab.active {
  background: rgba(201,169,89,0.06);
  border-left: 3px solid var(--accent);
}

.roi-tab__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.roi-tab.active .roi-tab__label {
  color: var(--accent);
}

.roi-tab__sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.roi-context {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.roi-context-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.roi-context-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.roi-solutions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.roi-card {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.roi-card:last-child {
  border-bottom: none;
}

.roi-card--chosen {
  background: rgba(77,219,132,0.04);
  border-left: 3px solid rgba(77,219,132,0.5);
}

.roi-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.roi-card-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.roi-card--chosen .roi-card-id {
  background: rgba(77,219,132,0.12);
  border-color: rgba(77,219,132,0.3);
  color: #4ddb84;
}

.roi-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.roi-chosen {
  display: inline-block;
  padding: 2px var(--space-2);
  background: rgba(77,219,132,0.15);
  color: #4ddb84;
  border-radius: var(--radius-s);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.roi-card-sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.roi-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px var(--space-2);
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
}

.roi-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.roi-metric {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.roi-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.roi-bars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.roi-bar {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.roi-bar--on {
  background: var(--accent);
  border-color: var(--accent);
}

.roi-card--chosen .roi-bar--on {
  background: #4ddb84;
  border-color: #4ddb84;
}

.roi-card-note {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0 0 var(--space-2);
}

.roi-card-result {
  font-size: 0.8rem;
  color: #4ddb84;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  background: rgba(77,219,132,0.06);
  border-radius: var(--radius-s);
  border: 1px solid rgba(77,219,132,0.2);
}


/* ── § 35c  AI Signal Trust Layer ── */

.trust-demo {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.trust-frame {
  padding: var(--space-5) var(--space-6);
}

.trust-context-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-5);
}

.trust-ticker {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.trust-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.trust-change {
  font-size: 0.82rem;
  font-weight: 500;
}

.trust-change.positive {
  color: #4ddb84;
}

.trust-change.negative {
  color: #f05252;
}

.trust-session {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Consumer view */
.trust-view {
  display: none;
}

.trust-consumer-signal {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-7) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  margin-bottom: var(--space-4);
}

.trust-consumer-badge {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-m);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-consumer-badge--buy {
  background: rgba(77,219,132,0.15);
  color: #4ddb84;
  border: 1px solid rgba(77,219,132,0.3);
}

.trust-consumer-pct {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.trust-consumer-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

.trust-consumer-target-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.trust-warning-note {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(240,82,82,0.06);
  border: 1px solid rgba(240,82,82,0.2);
  border-radius: var(--radius-m);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  align-items: flex-start;
}

.trust-warning-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #f05252;
}

.trust-warning-note strong {
  color: #f05252;
}

/* Agent cards */
.trust-agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.trust-agents-grid--compact {
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.trust-agent {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.trust-agent--bull {
  border-color: rgba(77,219,132,0.2);
  background: rgba(77,219,132,0.04);
}

.trust-agent--bear {
  border-color: rgba(240,82,82,0.2);
  background: rgba(240,82,82,0.04);
}

.trust-agent--neutral {
  border-color: rgba(201,169,89,0.2);
  background: rgba(201,169,89,0.04);
}

.trust-agent--sm {
  padding: var(--space-3) var(--space-4);
}

.trust-agent__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-agent__signal {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ddb84;
  letter-spacing: 0.05em;
}

.trust-agent__signal--bear {
  color: #f05252;
}

.trust-agent__signal--neutral {
  color: var(--accent);
}

.trust-agent__reasoning {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.trust-agent__confidence {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.trust-agent__confidence span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-conf-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.trust-conf-bar--bear {
  background: rgba(240,82,82,0.12);
}

.trust-conf-bar--neutral {
  background: rgba(201,169,89,0.12);
}

.trust-conf-fill {
  height: 100%;
  width: var(--cf, 0%);
  background: #4ddb84;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.trust-conf-fill--bear {
  background: #f05252;
}

.trust-conf-fill--neutral {
  background: var(--accent);
}

.trust-consensus-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-4);
}

.trust-consensus-verdict {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-consensus-note {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  font-style: italic;
}

/* Institutional reflection */
.trust-reflection {
  background: var(--bg-elevated);
  border: 1px solid rgba(201,169,89,0.2);
  border-radius: var(--radius-l);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}

.trust-reflection__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.trust-reflection__title svg {
  flex-shrink: 0;
}

.trust-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.trust-check-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.trust-checkbox {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.trust-execute-btn {
  display: block;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.trust-execute-btn--ready {
  background: rgba(201,169,89,0.1);
  border-color: var(--accent);
  color: var(--accent);
  cursor: pointer;
}

.trust-execute-btn--ready:hover {
  background: rgba(201,169,89,0.18);
}

.trust-audit-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
  text-align: center;
  line-height: 1.5;
}

.trust-design-note {
  padding: var(--space-4) var(--space-5);
  background: rgba(201,169,89,0.04);
  border: 1px solid rgba(201,169,89,0.15);
  border-radius: var(--radius-m);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.trust-design-note strong {
  color: var(--accent);
}


/* ── § 35d  KYC Drop-off Optimization ── */

.kyc-demo {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.kyc-frame {
  padding: var(--space-5) var(--space-6);
}

.kyc-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-5);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.kyc-step {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
  position: relative;
}

.kyc-step::after {
  content: '→';
  margin-left: var(--space-2);
  color: var(--border-hover);
}

.kyc-step:last-child::after {
  display: none;
}

.kyc-step--done {
  color: var(--text-tertiary);
}

.kyc-step--done::before {
  content: '✓ ';
  color: #4ddb84;
  font-size: 0.65rem;
}

.kyc-step--active {
  color: var(--accent);
  font-weight: 600;
}

/* View header */
.kyc-view__header {
  margin-bottom: var(--space-5);
}

.kyc-view__header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.kyc-view__sub {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin: 0;
}

.kyc-view__header--optimized h3 {
  color: var(--text-primary);
}

.kyc-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-3);
}

.kyc-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Form fields */
.kyc-field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.kyc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.kyc-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.kyc-field input,
.kyc-field select {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  width: 100%;
}

.kyc-field--error input {
  border-color: rgba(240,82,82,0.5);
}

.kyc-error {
  font-size: 0.72rem;
  color: #f05252;
}

.req {
  color: #f05252;
}

/* Upload area */
.kyc-upload-area {
  border-radius: var(--radius-l);
  margin-bottom: var(--space-4);
}

.kyc-upload-area--original {
  border: 2px dashed var(--border);
  padding: var(--space-5) var(--space-5);
}

.kyc-upload-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.kyc-upload-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.kyc-upload-btn-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.kyc-upload-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: not-allowed;
}

.kyc-upload-none {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kyc-original-disclosure {
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.kyc-original-disclosure p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.kyc-submit {
  display: block;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  cursor: not-allowed;
  transition: opacity 0.2s ease;
}

.kyc-submit--original {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.kyc-submit--optimized {
  background: var(--accent);
  border: none;
  color: #000;
}

/* Optimized form */
.kyc-upload-area--optimized {
  border: 2px dashed rgba(201,169,89,0.3);
  background: rgba(201,169,89,0.03);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}

.kyc-upload-icon {
  margin-bottom: var(--space-3);
  color: var(--accent);
  display: flex;
  justify-content: center;
}

.kyc-upload-title-opt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.kyc-upload-desc-opt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.kyc-upload-example {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.kyc-example-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(77,219,132,0.06);
  border: 1px solid rgba(77,219,132,0.2);
  border-radius: var(--radius-m);
  font-size: 0.75rem;
}

.kyc-example-card__icon {
  font-size: 0.75rem;
  color: #4ddb84;
  font-weight: 700;
}

.kyc-example-card__text {
  color: var(--text-secondary);
}

.kyc-example-card--bad {
  background: rgba(240,82,82,0.05);
  border-color: rgba(240,82,82,0.2);
}

.kyc-example-card--bad .kyc-example-card__icon {
  color: #f05252;
}

.kyc-upload-btn--opt {
  display: inline-block;
  width: auto;
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-m);
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: not-allowed;
}

.kyc-name-confirm {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.kyc-name-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.kyc-name-input {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  width: 100%;
}

.kyc-name-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kyc-disclosure-minimal {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
}

.kyc-disclosure-icon {
  flex-shrink: 0;
  font-size: 0.82rem;
}

/* Annotations */
.kyc-annotation {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
}

.kyc-annotation--problem {
  background: rgba(240,82,82,0.04);
  border: 1px solid rgba(240,82,82,0.15);
}

.kyc-annotation--solution {
  background: rgba(77,219,132,0.04);
  border: 1px solid rgba(77,219,132,0.15);
}

.kyc-annotation__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.kyc-annotation__item {
  font-size: 0.78rem;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-s);
  line-height: 1.5;
  display: block;
}

.kyc-annotation__item--bad {
  color: rgba(240,82,82,0.85);
}

.kyc-annotation__item--bad::before {
  content: '✗  ';
  font-weight: 700;
}

.kyc-annotation__item--good {
  color: rgba(77,219,132,0.85);
}

.kyc-annotation__item--good::before {
  content: '✓  ';
  font-weight: 700;
}

/* Results strip */
.kyc-result-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.kyc-result-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.kyc-result-metric:last-child {
  border-bottom: none;
}

.kyc-result-metric__num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.kyc-result-metric__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}


/* ── § 35e  GitHub Signal Network ── */

.gsig-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.gsig-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gsig-card:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.02);
}

.gsig-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.8;
}

.gsig-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.gsig-card__what {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.gsig-card__signal {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  font-style: italic;
}


/* ── § 35f  Responsive ── */

@media (min-width: 600px) {
  .tmodel-row--sources {
    grid-template-columns: 1fr 1fr;
  }

  .roi-tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .roi-tab {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .roi-tab:last-child {
    border-right: none;
  }

  .roi-tab.active {
    border-left: none;
    border-top: 3px solid var(--accent);
    border-bottom: none;
  }

  .roi-solutions {
    grid-template-columns: 1fr 1fr;
  }

  .roi-card {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .roi-card:nth-child(even) {
    border-right: none;
  }

  .roi-card:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }

  .kyc-result-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .kyc-result-metric {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .kyc-result-metric:last-child {
    border-right: none;
  }

  .gsig-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .tmodel-row--sources {
    grid-template-columns: repeat(4, 1fr);
  }

  .roi-solutions {
    grid-template-columns: 1fr 1fr;
  }

  .trust-agents-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-agents-grid--compact {
    grid-template-columns: repeat(4, 1fr);
  }

  .gsig-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .kyc-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .kyc-upload-area--original {
    grid-column: 1 / -1;
  }
}


/* ================================================================
   36. ARTIFICIAL INTELLIGENCE COWORK — v2 ADDITIONS
   Components: .aic-thread-*, .adu-*, .gsig-card--active
   ================================================================ */

/* ── § 36a  Narrative Thread Connector ── */

.aic-thread {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.aic-thread__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.aic-thread__rows {
  display: flex;
  flex-direction: column;
}

.aic-thread__row {
  display: grid;
  grid-template-columns: 28px 1fr 20px 1fr;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s ease;
}

.aic-thread__row:last-child {
  border-bottom: none;
}

.aic-thread__row:hover {
  background: var(--bg-elevated);
}

.aic-thread__row--new {
  background: rgba(201,169,89,0.03);
}

.aic-thread__row--new:hover {
  background: rgba(201,169,89,0.07);
}

.aic-thread__num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.aic-thread__concept {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.aic-thread__row--new .aic-thread__concept {
  color: var(--accent);
}

.aic-thread__arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.aic-thread__proof {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}


/* ── § 36b  Demo 05 — Agent-Dual-UI ── */

.adu-demo {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.adu-frame {
  padding: var(--space-5) var(--space-6);
}

.adu-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-5);
}

.adu-feed-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.adu-feed-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Human view — signal card */
.adu-signal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.adu-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.adu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,169,89,0.3), rgba(201,169,89,0.1));
  border: 1px solid rgba(201,169,89,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.adu-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.adu-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.adu-card-track {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.adu-confidence-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-s);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.adu-confidence-badge--high {
  background: rgba(77,219,132,0.12);
  color: #4ddb84;
  border: 1px solid rgba(77,219,132,0.25);
}

.adu-signal-body {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.adu-signal-direction {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-s);
}

.adu-signal-direction--bull {
  color: #4ddb84;
  background: rgba(77,219,132,0.1);
  border: 1px solid rgba(77,219,132,0.2);
}

.adu-signal-asset {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.adu-signal-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.adu-perf-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.adu-perf-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.adu-perf-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.adu-perf-bar {
  display: block;
  width: 8px;
  height: 18px;
  border-radius: 2px;
}

.adu-perf-bar--up {
  background: rgba(77,219,132,0.6);
}

.adu-perf-bar--down {
  background: rgba(240,82,82,0.5);
  height: 10px;
}

.adu-perf-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4ddb84;
  font-variant-numeric: tabular-nums;
}

.adu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.adu-community {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.adu-follow-btn {
  padding: var(--space-2) var(--space-5);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-m);
  color: #000;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: not-allowed;
}

/* Agent view — terminal */
.adu-terminal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.adu-terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.adu-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.adu-terminal-dot--red    { background: #ff5f57; }
.adu-terminal-dot--yellow { background: #ffbd2e; }
.adu-terminal-dot--green  { background: #28c840; }

.adu-terminal-title {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-left: var(--space-2);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.adu-code {
  display: block;
  padding: var(--space-5) var(--space-6);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  background: transparent;
}

.adu-code-field  { color: #79c0ff; }
.adu-code-str    { color: #a5d6ff; }
.adu-code-num    { color: #f2cc60; }
.adu-code-key    { color: rgba(255,255,255,0.55); }
.adu-code-colon  { color: rgba(255,255,255,0.4); }
.adu-code-comment { color: rgba(255,255,255,0.28); font-style: italic; }
.adu-code-method { color: #ffa657; font-weight: 700; }
.adu-code-ann    { color: rgba(201,169,89,0.9); font-weight: 700; }

/* Annotations — shared + variants */
.adu-annotation-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.adu-annotation-list--agent {
  margin-top: var(--space-4);
}

.adu-annotation {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.adu-annotation--agent {
  background: rgba(121,192,255,0.04);
  border-color: rgba(121,192,255,0.12);
}

.adu-ann-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201,169,89,0.15);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.adu-ann-num--agent {
  background: rgba(121,192,255,0.12);
  color: #79c0ff;
}

.adu-ann-text {
  flex: 1;
}

.adu-ann-text strong {
  color: var(--text-primary);
}

/* Design note */
.adu-design-note {
  padding: var(--space-5) var(--space-6);
  background: rgba(201,169,89,0.04);
  border-top: 1px solid rgba(201,169,89,0.15);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.adu-design-note strong {
  color: var(--accent);
}

/* ── § 36c  GitHub Signal Card — Active variant ── */

.gsig-card--active {
  border-color: rgba(201,169,89,0.2);
  background: rgba(201,169,89,0.03);
}

.gsig-card--active .gsig-card__tag {
  opacity: 1;
  color: var(--accent);
}

.gsig-card--active:hover {
  border-color: rgba(201,169,89,0.4);
  background: rgba(201,169,89,0.06);
}


/* ── § 36d  Responsive ── */

@media (max-width: 600px) {
  .aic-thread__row {
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
  }

  .aic-thread__arrow {
    display: none;
  }

  .aic-thread__proof {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.75rem;
  }

  .adu-card-header {
    gap: var(--space-2);
  }

  .adu-confidence-badge {
    order: 3;
    margin-left: 0;
  }

  .adu-code {
    font-size: 0.7rem;
    padding: var(--space-4);
  }

  .adu-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .adu-annotation-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
}


/* ══════════════════════════════════════════════════════════════════
   § 37  Hero Timeline  (.aic-timeline-*)
══════════════════════════════════════════════════════════════════ */

.aic-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: var(--space-8) 0 var(--space-7);
  max-width: 580px;
}

.aic-timeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 140px;
  text-align: center;
}

.aic-timeline__year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.aic-timeline__node--active .aic-timeline__year {
  color: var(--accent);
}

.aic-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.25);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.aic-timeline__dot--active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(201,169,89,0.5);
}

.aic-timeline__line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-top: 20px;
  min-width: 40px;
}

.aic-timeline__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.aic-timeline__node--active .aic-timeline__desc {
  color: var(--text-tertiary);
}

@media (max-width: 600px) {
  .aic-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    max-width: 100%;
  }

  .aic-timeline__node {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    text-align: left;
    min-width: 0;
  }

  .aic-timeline__year {
    margin-bottom: 0;
    white-space: nowrap;
    min-width: 100px;
  }

  .aic-timeline__dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .aic-timeline__line {
    width: 2px;
    height: 20px;
    min-width: 0;
    margin-top: 0;
    margin-left: 24px;
  }
}


/* ══════════════════════════════════════════════════════════════════
   § 38  Tool Attribution Grid  (.aic-tools-*)
══════════════════════════════════════════════════════════════════ */

.aic-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-9);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .aic-tools-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.aic-tools-col {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  transition: border-color 0.2s;
}

.aic-tools-col:hover {
  border-color: var(--border-hover);
}

.aic-tools-col--override {
  border-color: rgba(201, 169, 89, 0.18);
  background: rgba(201, 169, 89, 0.03);
}

.aic-tools-col--override:hover {
  border-color: rgba(201, 169, 89, 0.35);
}

.aic-tools-col__header {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.aic-tools-col__item {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.aic-tools-col__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


/* ══════════════════════════════════════════════════════════════════
   § 38  Case Study Linkback  (.aic-casestudy-link)
══════════════════════════════════════════════════════════════════ */

.aic-casestudy-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: rgba(201, 169, 89, 0.04);
  border: 1px solid rgba(201, 169, 89, 0.15);
  border-radius: var(--radius-m);
  transition: background 0.2s, border-color 0.2s;
}

.aic-casestudy-link:hover {
  background: rgba(201, 169, 89, 0.08);
  border-color: rgba(201, 169, 89, 0.3);
}

.aic-casestudy-link__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.aic-casestudy-link__cta {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  flex: 1;
  transition: color 0.2s;
}

.aic-casestudy-link:hover .aic-casestudy-link__cta {
  color: var(--text-primary);
}

.aic-casestudy-link__arrow {
  font-size: 14px;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════════
   § 39  Prompt Snippet  (.aic-prompt-*)
══════════════════════════════════════════════════════════════════ */

.aic-prompt-wrap {
  margin-top: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 8px 32px rgba(0,0,0,0.4);
}

.aic-prompt-block {
  padding: var(--space-5) var(--space-6);
}

.aic-prompt-block--user {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.aic-prompt-block--claude {
  background: rgba(139, 92, 246, 0.04);
}

.aic-prompt-role {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.aic-prompt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.aic-prompt-avatar--user {
  background: rgba(201, 169, 89, 0.12);
  color: var(--accent);
  border: 1px solid rgba(201, 169, 89, 0.3);
}

.aic-prompt-avatar--claude {
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.aic-prompt-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aic-prompt-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.aic-prompt-body p {
  margin-bottom: var(--space-3);
}

.aic-prompt-body pre {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 12.5px;
  color: #dde3ea;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-s);
  padding: var(--space-5);
  margin: var(--space-3) 0 0;
  overflow-x: auto;
  line-height: 1.9;
  white-space: pre;
}

.aic-prompt-body--response {
  color: var(--text-primary);
}

.aic-prompt-body--response pre {
  color: #e8edf2;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.aic-prompt-result {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgba(77, 219, 132, 0.06);
  border: 1px solid rgba(77, 219, 132, 0.18);
  border-radius: var(--radius-s);
}

.aic-prompt-result__label {
  font-size: 10.5px;
  font-weight: 700;
  color: #4ddb84;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-top: 2px;
}

.aic-prompt-result__text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.aic-prompt-note {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  background: var(--bg-surface);
}

@media (max-width: 600px) {
  .aic-prompt-block {
    padding: var(--space-4);
  }

  .aic-prompt-body pre {
    font-size: 10.5px;
    padding: var(--space-4);
  }

  .aic-prompt-note {
    padding: var(--space-3) var(--space-4);
  }

  .aic-casestudy-link {
    flex-wrap: wrap;
  }

  .aic-casestudy-link__arrow {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════════════
   § 40  Synthesis Capstone  (.aic-synthesis-*)
══════════════════════════════════════════════════════════════════ */

.aic-synthesis-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-8) 0 var(--space-7);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.aic-synthesis-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}

.aic-synthesis-item:last-child {
  border-bottom: none;
}

.aic-synthesis-item:hover {
  background: var(--bg-elevated);
}

.aic-synthesis-item--new {
  background: rgba(201, 169, 89, 0.03);
}

.aic-synthesis-item--new:hover {
  background: rgba(201, 169, 89, 0.07);
}

.aic-synthesis-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 2px;
  flex-shrink: 0;
  width: 20px;
}

.aic-synthesis-item--new .aic-synthesis-num {
  color: var(--accent);
}

.aic-synthesis-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.aic-synthesis-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.aic-synthesis-proof {
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.55;
}

/* CTA */
.aic-synthesis-cta {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(201, 169, 89, 0.25);
  border-radius: var(--radius-m);
  background: rgba(201, 169, 89, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.aic-synthesis-cta:hover {
  background: rgba(201, 169, 89, 0.09);
  border-color: rgba(201, 169, 89, 0.5);
  transform: translateY(-1px);
}

.aic-synthesis-cta__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
}

.aic-synthesis-cta__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.aic-synthesis-cta__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.aic-synthesis-cta__meta {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.aic-synthesis-cta__arrow {
  font-size: 22px;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.aic-synthesis-cta:hover .aic-synthesis-cta__arrow {
  transform: translateX(4px);
  opacity: 1;
}

@media (max-width: 600px) {
  .aic-synthesis-item {
    padding: var(--space-4);
  }

  .aic-synthesis-cta__inner {
    padding: var(--space-4);
  }

  .aic-synthesis-cta__title {
    font-size: 14px;
  }
}
