/* ================================================================
   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.15;
  letter-spacing: -0.02em;
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

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

h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

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);
}

.section__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-5);
}

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

.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;
}

.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.1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.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,
.nav__link.is-active {
  color: var(--text-primary);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  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;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.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(2.8rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

.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.02em;
}

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

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

.hero__reg-label {
  font-size: 0.58rem;
  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.65rem;
  color: var(--text-tertiary);
  padding: 3px 10px;
  border-radius: var(--radius-s);
  background: var(--bg-elevated);
}

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

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.hero__social {
  display: flex;
  gap: var(--space-3);
  align-items: 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);
  transition: color var(--duration-fast), background var(--duration-fast);
}

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

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--text-muted), transparent);
  opacity: 0.5;
}


/* ================================================================
   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-10) 0 var(--space-7);
}

.works__separator-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  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:last-child {
  margin-bottom: var(--space-7);
}

.project__number {
  display: none;
  /* shown on desktop */
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: var(--space-3);
}

.project__image {
  overflow: hidden;
  border-radius: var(--radius-m);
  margin-bottom: var(--space-3);
}

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

.project:hover .project__image img {
  transform: scale(1.02);
}

.project__details {
  max-width: 740px;
}

.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.5rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.project__tagline {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.project__desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

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

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

.project__insight {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-tertiary);
  padding: var(--space-3) 0;
  margin: var(--space-2) 0 var(--space-4);
}

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

.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(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}


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

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

.enterprise__hero-card:hover {
  opacity: 0.85;
}

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

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

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

.enterprise__meta-label {
  font-size: 0.62rem;
  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;
  transition: transform var(--duration-base) var(--ease);
}

.subproject:hover {
  transform: translateY(-2px);
}

.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: 2px 8px;
  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);
}

.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);
}

.compliance-system__stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.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;
}


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

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.evidence {
  border-bottom: 1px solid var(--border);
}

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

.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.58rem;
  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);
  margin-bottom: var(--space-1);
}

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

.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.7;
  color: var(--text-secondary);
  padding-left: var(--space-5);
  position: relative;
}

.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.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.research-synthesis__date {
  font-size: 0.58rem;
  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.58rem;
  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: 1px;
  background: var(--border);
}

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

.research-finding__label {
  font-size: 0.55rem;
  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(--accent);
}

.research-outcome__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--success);
}

.research-outcome__desc {
  font-size: 0.62rem;
  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);
}

.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);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
}

.dl-quote__role {
  font-size: 0.62rem;
  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-tertiary);
  line-height: 1.6;
  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.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: var(--space-7);
  max-width: 720px;
}

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

.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 h4 {
  margin-bottom: var(--space-1);
}

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

.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);
}

.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.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  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);
}

.story-card__metric-label {
  font-size: 0.62rem;
  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.8rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-2);
  text-align: center;
}

.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 h4 {
  margin-bottom: var(--space-2);
}

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


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

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

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

.contact__desc {
  font-size: 1rem;
  color: var(--text-tertiary);
  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(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.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-9) var(--gutter) var(--space-6);
  border-top: 1px solid var(--border);
}

.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.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.footer__tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.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.88rem;
  font-weight: 500;
  border-radius: var(--radius-s);
  transition: all var(--duration-fast) var(--ease);
}

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

.btn--primary:hover {
  background: var(--text-secondary);
}

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
}

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

/* 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);
}


/* ================================================================
   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;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.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);
  }
}


/* ================================================================
   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__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .hero__stat-value {
    font-size: 2rem;
  }

  .hero__regs {
    gap: 4px;
  }

  .hero__reg-tag {
    font-size: 0.58rem;
    padding: 2px 7px;
  }

  .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%;
  }

  /* ══ V1 SUBPAGE INLINE STYLE OVERRIDES ══
     V1 pages use inline grid styles that break on mobile.
     These !important rules are the ONLY way to override inline styles. */

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

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

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

  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

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

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

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

  /* Fix inline flex that breaks on mobile */
  [style*="display: flex"][style*="gap: 1.5rem"],
  [style*="display: flex"][style*="gap: 2rem"],
  [style*="display:flex"][style*="gap:1.5rem"],
  [style*="display:flex"][style*="gap:2rem"] {
    flex-wrap: wrap !important;
  }

  /* Fix wide inline elements */
  [style*="max-width: 780px"],
  [style*="max-width: 700px"],
  [style*="max-width:780px"],
  [style*="max-width:700px"] {
    max-width: 100% !important;
  }

  /* Fix inline font-size that's too large for mobile */
  [style*="font-size: clamp(2.5rem"],
  [style*="font-size: clamp(2rem"],
  [style*="font-size:clamp(2.5rem"],
  [style*="font-size:clamp(2rem"] {
    font-size: 1.6rem !important;
  }

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

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

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

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

  /* 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 !important;
  }

  /* 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 — catch common patterns */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(2,1fr)"] {
    grid-template-columns: 1fr 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%;
  }

  /* Catch inline-styled wide fixed widths */
  [style*="min-width: 600px"],
  [style*="min-width: 700px"],
  [style*="min-width: 800px"],
  [style*="min-width:600px"],
  [style*="min-width:700px"],
  [style*="min-width:800px"] {
    min-width: 0 !important;
    width: 100% !important;
  }
}


/* ================================================================
   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 ── */
  .hero__stats {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
  }

  .hero__stat-value {
    font-size: 2.5rem;
  }

  /* ── 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;
  }

  .t3-desc {
    display: block;
  }
}


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

@media (min-width: 1280px) {

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

  /* ── Projects ── */
  .project {
    grid-template-columns: 60px 1fr;
    gap: var(--space-4);
  }

  .project__number {
    display: block;
  }

  .project__details {
    max-width: 800px;
  }

  /* ── 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);
  }

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

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

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

}


/* ================================================================
   20. 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.62rem;
  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 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;
}

.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;
  -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 {
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

.subproject:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 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 — subtle hover */
.dl-quote {
  transition: background var(--duration-base) var(--ease);
}

.dl-quote:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Stance method cards — subtle hover */
.stance-method {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  transition: background var(--duration-base);
}

.stance-method:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* 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 */
.hero__scroll {
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {

  0%,
  100% {
    opacity: 0.3;
    height: 48px;
  }

  50% {
    opacity: 0.6;
    height: 56px;
  }
}

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

.project__tags span {
  padding: 0 2px;
}

/* 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 {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    padding: 2rem 0;
  }

  a {
    color: #111;
  }

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

/* Contact location */
.contact__location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-4);
  letter-spacing: 0.02em;
}

/* ================================================================
   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) !important;
  }

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

  .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;
  }

  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [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.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(201,169,89,0.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: rgba(201,169,89,0.03);
}

.t3-badge {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  padding: 1px 6px;
  border-radius: var(--radius-s);
  background: rgba(201,169,89,0.1);
  border: 1px solid rgba(201,169,89,0.2);
  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.58rem;
  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.
   ================================================================ */

/* ── Kill ALL inline borders globally ── */
[style*="border:"],
[style*="border-left:"],
[style*="border-right:"],
[style*="border-top: 1px"],
[style*="border-bottom: 1px"],
[style*="border: 1px"],
[style*="border: 2px"] {
  border: none !important;
}

/* Preserve borders on images and specific UI elements */
img[style*="border"],
.project-detail-hero-image img {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-m) !important;
}

/* ── Kill ALL inline shadows ── */
[style*="box-shadow"],
[style*="text-shadow"] {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ── Kill ALL inline backdrop-filter ── */
[style*="backdrop-filter"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Force font-family to v2 system ── */
[style*="font-family"] {
  font-family: var(--font-body) !important;
}

/* ── Neutralize competing accent colors ── */
[style*="color: #6495ed"],
[style*="color:#6495ed"],
[style*="color: rgb(100, 149, 237)"],
[style*="color: rgba(100, 149, 237"] {
  color: var(--text-secondary) !important;
}

[style*="color: #d4af37"],
[style*="color:#d4af37"],
[style*="color: #c9a959"],
[style*="color:#c9a959"] {
  color: var(--accent) !important;
}

[style*="color: #00d4aa"],
[style*="color:#00d4aa"],
[style*="color: #4caf50"],
[style*="color:#4caf50"],
[style*="color: #22c55e"],
[style*="color: #ff6b6b"],
[style*="color: #ff9800"],
[style*="color: #ff9999"],
[style*="color: #d97757"] {
  color: var(--text-secondary) !important;
}

/* ── Kill inline gradient backgrounds ── */
[style*="linear-gradient"],
[style*="radial-gradient"] {
  background: var(--bg-elevated) !important;
}

/* Preserve gradient on elements that need it for functionality */
.hero__scroll,
.nav.is-scrolled {
  background: revert;
}

/* ── Force rounded corners consistently ── */
[style*="border-radius: 50px"],
[style*="border-radius:50px"] {
  border-radius: var(--radius-l) !important;
}

[style*="border-radius: 16px"],
[style*="border-radius:16px"],
[style*="border-radius: 12px"],
[style*="border-radius:12px"] {
  border-radius: var(--radius-m) !important;
}

/* ── 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);
}

/* ── 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 rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.05);
  border: 1px solid rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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__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: 1px;
}

.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: 2px var(--space-2);
  border-radius: 10px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

.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: 2px;
  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: rgba(0, 212, 170, 0.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: rgba(0, 212, 170, 0.7);
}

.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.06);
  border: 1px solid rgba(201, 169, 89, 0.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 rgba(201, 169, 89, 0.25);
  background: rgba(201, 169, 89, 0.12);
  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;
}

/* ─────────────────────────────────────────────
   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: rgba(201, 169, 89, 0.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 */
  .project-detail-grid {
    grid-template-columns: 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.55rem;
  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.55rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dashboard-ob__spread-hdr {
  font-size: 0.55rem;
  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.62rem;
  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.62rem;
}

.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: 1px;
  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;
}

/* ── 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 !important;
  }

  .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: rgba(201, 169, 89, 0.12);
  --xanthos-green-bg: rgba(74, 124, 89, 0.10);
  --xanthos-border: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.9);
}

.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: rgba(201, 169, 89, 0.2);
  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 rgba(201, 169, 89, 0.25);
  border-radius: var(--radius-l);
  background: rgba(201, 169, 89, 0.04);
  text-decoration: none;
  transition: all var(--duration-base);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.xp-launch-card:hover {
  border-color: rgba(201, 169, 89, 0.5);
  background: rgba(201, 169, 89, 0.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 rgba(201, 169, 89, 0.2);
  border-radius: 20px;
  color: rgba(201, 169, 89, 0.7);
  background: rgba(201, 169, 89, 0.04);
  white-space: nowrap;
}

.xp-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(201, 169, 89, 0.12);
  border: 1px solid rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.2);
}

/* ── 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: 4px;
}

/* ── 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 ID overrides (needed since panels use inline grid styles) */
@media (max-width: 800px) {
  #pb-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #pb-stats-grid>div {
    border-right: none !important;
    border-bottom: 1px solid #edf0f4;
    padding: 16px 0 !important;
  }

  #rm-delta-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #rm-delta-grid>div {
    border-right: none !important;
    border-bottom: 1px solid #edf0f4;
    padding: 12px 0 !important;
  }
}

@media (max-width: 500px) {
  #pb-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   § 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 {
  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);
}

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: rgba(201, 169, 89, 0.05);
}

.cr-box--gold-warm {
  background: rgba(212, 175, 55, 0.05);
}

.cr-box--gold-med {
  background: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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);
}

/* ── 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: rgba(201, 169, 89, 0.2);
}

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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.1);
  border-bottom: 2px solid rgba(201, 169, 89, 0.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: 1rem;
  font-style: italic;
  opacity: 0.8;
}

.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 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-top: 1.5rem;
  letter-spacing: 0.02em;
}

/* 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.55rem;
  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 !important;
}

/* 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.62rem;
  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.62rem;
  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.62rem;
  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.62rem;
  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.62rem;
  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.62rem;
  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.62rem;
  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.62rem;
  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.62rem;
  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.62rem;
  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.58rem;
  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: 600px) {
  .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: 600px) {
  .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);
  margin-bottom: var(--space-6);
}

.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.62rem;
  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.62rem;
  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-6);
  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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.20);
}

.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.1);
  border-color: rgba(201, 169, 89, 0.4);
}

@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: rgba(201, 169, 89, 0.1);
  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: rgba(201, 169, 89, 0.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.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 {
  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.62rem;
  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;
}

.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;
  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.58rem;
  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.62rem;
  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.62rem;
  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.58rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flx-v2-greek-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a2332;
}

/* RWD */
@media (max-width: 900px) {
  .flx-v2-body {
    grid-template-columns: 180px 1fr;
  }

  .flx-v2-right {
    display: none;
  }
}

@media (max-width: 640px) {
  .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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.1);
}

.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.2);
  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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.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: rgba(201, 169, 89, 0.22);
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(201, 169, 89, 0.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: 640px) {
  .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-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: rgba(201, 169, 89, 0.08);
  border: 1px solid rgba(201, 169, 89, 0.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: var(--space-10) 0;
}

.about-stat {
  background: var(--bg-surface);
  padding: var(--space-6) var(--space-5);
}

.about-stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.about-stat__label {
  font-size: 0.72rem;
  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);
}

/* Timeline */
.about-timeline {
  border-top: 1px solid var(--border);
}

.about-timeline__item {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--border);
}

.about-timeline__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.about-timeline__period {
  font-size: 0.73rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.about-timeline__role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.about-timeline__company {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-timeline__context {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  border-left: 2px solid var(--border);
}

.about-timeline__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}

.about-timeline__bullets li {
  display: flex;
  gap: var(--space-3);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-tertiary);
}

.about-timeline__bullets li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* Skills */
.about-skills {
  border-top: 1px solid var(--border);
}

.about-skills__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.about-skills__cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 4px;
}

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

.about-skill-tag {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Education */
.about-edu {
  border-top: 1px solid var(--border);
}

.about-edu__item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.about-edu__degree {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.about-edu__school {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.about-edu__year {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Awards */
.about-awards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-award {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.about-award::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.55rem;
  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);
}

/* About responsive — tablet */
@media (min-width: 640px) {
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-skills__row {
    grid-template-columns: 150px 1fr;
    align-items: start;
  }
}

/* About responsive — desktop: true 50/50 split */
@media (min-width: 900px) {
  .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;
  }
}

@media (min-width: 1280px) {
  .about-hero__layout {
    gap: calc(var(--space-12) + var(--space-6));
  }
}


/* ================================================================
   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: 680px) {
  .decision-row__compare {
    grid-template-columns: 1fr;
  }
  .decision-col--rejected {
    order: 2; /* chosen first on mobile */
  }
  .decision-col--chosen {
    order: 1;
  }
}