/* ==========================================================================
   SIGNAL & STRUCTURE - Core Stylesheet
   Institutions, Markets, and Language Systems
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --color-midnight-slate: #202735;
  --color-petrol: #277C7A;
  --color-coral: #DF705F;
  --color-butter: #F1C968;
  --color-powder: #E9F1F0;
  --color-porcelain: #F8F6F1;
  --color-steel: #65727A;
  --color-ink: #252A30;
  --color-white: #FFFFFF;

  /* Semantic Color Roles */
  --bg-primary: var(--color-porcelain);
  --bg-secondary: var(--color-powder);
  --bg-card: var(--color-white);
  --bg-dark: var(--color-midnight-slate);
  --text-primary: var(--color-ink);
  --text-heading: var(--color-midnight-slate);
  --text-muted: var(--color-steel);
  --text-inverse: var(--color-porcelain);
  --brand-accent: var(--color-petrol);
  --accent-coral: var(--color-coral);
  --accent-butter: var(--color-butter);
  
  /* Borders & Rules */
  --border-subtle: rgba(32, 39, 53, 0.1);
  --border-medium: rgba(32, 39, 53, 0.18);
  --border-petrol: rgba(39, 124, 122, 0.3);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(32, 39, 53, 0.05), 0 1px 2px rgba(32, 39, 53, 0.03);
  --shadow-md: 0 4px 12px rgba(32, 39, 53, 0.06), 0 1px 3px rgba(32, 39, 53, 0.04);
  --shadow-lg: 0 10px 24px rgba(32, 39, 53, 0.08), 0 3px 6px rgba(32, 39, 53, 0.04);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container-max-width: 1180px;
  --container-padding: 1.5rem;
  --header-height: 74px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-midnight-slate);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Accessibility: Skip Link & Focus States
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-midnight-slate);
  color: var(--color-porcelain);
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-butter);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout Containers & Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-powder {
  background-color: var(--bg-secondary);
}

.section-porcelain {
  background-color: var(--bg-primary);
}

.section-header {
  margin-bottom: 3rem;
  max-width: 760px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
  position: relative;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--text-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(248, 246, 241, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(248, 246, 241, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-heading);
  position: relative;
  padding: 0.375rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-accent);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--brand-accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-porcelain);
  background-color: var(--color-midnight-slate);
  border: 1px solid var(--color-midnight-slate);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* Mobile Nav Toggle */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-heading);
  z-index: 1001;
}

.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background-color: var(--color-porcelain);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-coral);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.875rem;
  line-height: 1.18;
  color: var(--color-midnight-slate);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  color: var(--brand-accent);
  position: relative;
  display: inline;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-ink);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background-color: var(--color-midnight-slate);
  color: var(--color-porcelain);
  border: 1px solid var(--color-midnight-slate);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background-color: transparent;
  color: var(--color-midnight-slate);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-note-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-butter);
}

/* --------------------------------------------------------------------------
   Hero Visual: Decision Network (Pure HTML + CSS)
   -------------------------------------------------------------------------- */
.decision-network-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.network-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.network-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-accent);
  background-color: var(--bg-secondary);
  padding: 0.25rem 0.625rem;
  border-radius: var(--border-radius-pill);
}

.network-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pulse-node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(223, 112, 95, 0.2);
}

.network-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Central Hub Overlay */
.network-center-hub {
  position: relative;
  background: var(--color-midnight-slate);
  color: var(--color-porcelain);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.25rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.hub-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-butter);
}

.hub-badge {
  font-size: 0.6875rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.125rem 0.5rem;
  border-radius: var(--border-radius-sm);
  color: var(--color-porcelain);
  font-family: var(--font-mono);
}

/* Structural Nodes */
.network-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.system-node-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--border-radius-sm);
  padding: 0.875rem 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.system-node-item:hover {
  transform: translateX(4px);
  border-color: var(--brand-accent);
}

.system-node-item.node-coral {
  border-left-color: var(--accent-coral);
}

.system-node-item.node-butter {
  border-left-color: var(--accent-butter);
}

.node-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.node-number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand-accent);
}

.node-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-heading);
}

.node-summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.network-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.network-footer-flow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-midnight-slate);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Indicators Bar
   -------------------------------------------------------------------------- */
.indicators-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.indicator-item {
  padding: 0.5rem 1rem;
  border-left: 2px solid var(--border-medium);
}

.indicator-val {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-midnight-slate);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.indicator-val-accent {
  color: var(--brand-accent);
}

.indicator-lbl {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   Connected Systems Section (#systems)
   -------------------------------------------------------------------------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.system-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-petrol);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-coral);
  margin-bottom: 1rem;
  display: inline-block;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--text-heading);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
  opacity: 0.9;
}

.topics-wrapper {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.topics-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  font-size: 0.75rem;
  background-color: var(--bg-secondary);
  color: var(--color-midnight-slate);
  padding: 0.25rem 0.625rem;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
  border: 1px solid rgba(32, 39, 53, 0.06);
}

/* --------------------------------------------------------------------------
   Framework Section (#framework)
   -------------------------------------------------------------------------- */
.framework-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.framework-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.framework-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.framework-step-card:hover {
  border-color: var(--border-petrol);
  box-shadow: var(--shadow-sm);
}

.step-num-box {
  width: 48px;
  height: 48px;
  background-color: var(--bg-secondary);
  color: var(--brand-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
}

.step-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.step-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.checklist-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.checklist-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.checklist-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.framework-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-ink);
  font-weight: 500;
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Researchers Section (#researchers)
   -------------------------------------------------------------------------- */
.researchers-intro-alert {
  background-color: var(--bg-card);
  border-left: 4px solid var(--brand-accent);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.researchers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.researcher-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.researcher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.researcher-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.researcher-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-midnight-slate);
  color: var(--color-porcelain);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--bg-secondary);
}

.country-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-pill);
}

.researcher-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.researcher-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
}

.researcher-inst-box {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.researcher-summary {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.researcher-meta-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.orcid-link-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--brand-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.alias-container {
  background: var(--bg-secondary);
  border: 1px solid rgba(39, 124, 122, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 0.625rem 0.75rem;
  margin-top: 0.5rem;
}

.alias-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.25rem;
  display: block;
}

.alias-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.alias-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-midnight-slate);
  font-weight: 600;
  word-break: break-all;
}

.copy-alias-btn {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background-color: var(--color-white);
  color: var(--color-midnight-slate);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.copy-alias-btn:hover {
  background-color: var(--color-midnight-slate);
  color: var(--color-white);
}

.copy-alias-btn.copied {
  background-color: var(--brand-accent);
  color: var(--color-white);
  border-color: var(--brand-accent);
}

/* --------------------------------------------------------------------------
   Research Notes Section (#notes)
   -------------------------------------------------------------------------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-petrol);
}

.note-category {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 0.75rem;
}

.note-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.note-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   About Section (#about) & Principles
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-narrative p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.principles-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.principle-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
}

.principle-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-accent);
}

.principle-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.principle-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Reference Notice (Prominent Callout Box)
   -------------------------------------------------------------------------- */
.reference-notice-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-coral);
  border-radius: var(--border-radius-md);
  padding: 1.75rem 2rem;
  margin-top: 4rem;
  box-shadow: var(--shadow-sm);
}

.notice-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.notice-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-midnight-slate);
  color: var(--color-porcelain);
  padding-top: 4rem;
  padding-bottom: 3rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark-img {
  width: 44px;
  height: 44px;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-porcelain);
  line-height: 1.2;
}

.footer-subtitle {
  font-size: 0.8125rem;
  color: rgba(233, 241, 240, 0.7);
  margin-top: 0.25rem;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(233, 241, 240, 0.85);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-butter);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(233, 241, 240, 0.6);
}

.back-to-top-btn {
  color: var(--accent-butter);
  font-weight: 600;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Progressive Enhancement Animations (Reveal System)
   -------------------------------------------------------------------------- */
/* By default, elements are completely visible. */
.reveal {
  opacity: 1;
  transform: none;
}

/* When JavaScript is running, initialize hidden state for scroll trigger */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Design & Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-content {
    max-width: 100%;
  }

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

  .framework-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .nav-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--container-padding);
    gap: 2rem;
    border-top: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    overflow-y: auto;
  }

  .nav-wrapper.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.125rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
  }

  .nav-cta-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .indicators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

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

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .framework-step-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .step-num-box {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
