/* ============================================================
   CENTAUR STUDIOS — Brand CSS
   Designed by Flux · Built by Forge
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Backgrounds */
  --color-midnight: #0F1219;
  --color-twilight: #1A1F2E;
  --color-walnut: #2A1F17;
  --color-parchment: #F5F0E8;
  --color-vellum: #EDE6DA;
  --color-dusk: #242A3A;
  --color-gloaming: #2E3546;
  --color-horizon: #3A4255;
  --color-linen: #E3DCD0;
  --color-canvas: #D8D0C3;

  /* Text */
  --color-starlight: #E8E4DF;
  --color-ink: #1A1512;
  --color-quill: #9B958D;
  --color-faded: #6B655D;

  /* Accents */
  --color-gold: #D4A54A;
  --color-amber: #E07C3E;
  --color-copper: #8B6543;
  --color-nebula: #6B5CA5;

  /* Semantic */
  --color-success: #5D8A66;
  --color-warning: #D4883A;
  --color-error: #C45B4A;
  --color-info: #5A8AB5;

  /* Glow */
  --glow-gold: 0 0 20px rgba(212, 165, 74, 0.3);
  --glow-gold-strong: 0 0 40px rgba(212, 165, 74, 0.5);

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Type Scale */
  --text-hero: 4.5rem;
  --text-title: 3.375rem;
  --text-heading: 2.5rem;
  --text-subheading: 1.875rem;
  --text-label: 1.375rem;
  --text-body: 1.125rem;
  --text-small: 1rem;
  --text-caption: 0.875rem;

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.65;
  --leading-relaxed: 1.8;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.08em;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

@media (max-width: 768px) {
  :root {
    --text-hero: 2.625rem;
    --text-title: 2rem;
    --text-heading: 1.625rem;
    --text-subheading: 1.375rem;
    --text-label: 1.125rem;
    --text-body: 1rem;
    --text-small: 0.875rem;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-starlight);
  background-color: var(--color-midnight);
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-normal);
}
a:hover {
  color: var(--color-amber);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-snug);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

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

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  transition: background var(--transition-normal), height var(--transition-normal);
}

.nav-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: 72px;
  transition: background var(--transition-normal), height var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.nav-bg.scrolled {
  background: rgba(15, 18, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(212, 165, 74, 0.1);
  height: 56px;
}

nav.scrolled {
  height: 56px;
}

.nav-logo img {
  height: 64px;
  width: auto;
  transition: height var(--transition-normal);
}

nav.scrolled .nav-logo img {
  height: 48px;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size var(--transition-normal);
}

nav.scrolled .nav-wordmark {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-small);
  color: var(--color-starlight);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-gold);
}

.nav-cta {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-midnight) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.nav-cta:hover {
  background: var(--color-amber);
  color: var(--color-midnight) !important;
  box-shadow: var(--glow-gold);
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-gold);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-midnight);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-starlight);
}

.mobile-menu a:hover {
  color: var(--color-gold);
}

.mobile-menu .nav-cta {
  position: fixed;
  bottom: 40px;
  left: 40px;
  right: 40px;
  text-align: center;
  font-size: var(--text-small);
  padding: 16px;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 2rem;
  cursor: pointer;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .nav-links,
  nav > .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  nav {
    padding: 0 20px;
  }
}

/* --- Footer --- */
footer {
  background: var(--color-midnight);
  padding: 80px 0 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-copper), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 56px;
  width: auto;
  border-radius: 4px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-gold);
}

.footer-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--color-quill);
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-starlight);
  font-size: var(--text-small);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-quill);
  margin-bottom: 8px;
}

.footer-copyright {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--color-faded);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-midnight);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: var(--tracking-wide);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-amber);
  color: var(--color-midnight);
  box-shadow: var(--glow-gold);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-small);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-normal), color var(--transition-normal);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(212, 165, 74, 0.1);
  color: var(--color-gold);
}

.btn-ghost {
  display: inline-block;
  background: none;
  border: none;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-small);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.btn-ghost:hover {
  text-decoration: underline;
  color: var(--color-amber);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--color-twilight);
  border: 1px solid rgba(212, 165, 74, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  border-color: rgba(212, 165, 74, 0.25);
  box-shadow: 0 4px 24px rgba(15, 18, 25, 0.4);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-subheading);
  color: var(--color-gold);
  margin-bottom: 16px;
}

.card-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--color-starlight);
  line-height: var(--leading-normal);
}

/* --- Section Animations --- */
.section-enter {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-enter.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-enter {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Constellation Divider --- */
.constellation-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-copper), transparent);
  position: relative;
  margin: 48px auto;
  max-width: 600px;
}

.constellation-line::before,
.constellation-line::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  top: -1.5px;
}

.constellation-line::before { left: 25%; }
.constellation-line::after { right: 25%; }

.constellation-line .dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  top: -1.5px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Pull Quote --- */
.pull-quote {
  text-align: center;
  padding: 32px 0;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-subheading);
  color: var(--color-gold);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pull-quote cite {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-quill);
  font-style: normal;
}

/* --- Sections --- */
.section {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.section-midnight { background: var(--color-midnight); }
.section-twilight { background: var(--color-twilight); }
.section-walnut { background: var(--color-walnut); }
.section-parchment {
  background: var(--color-parchment);
  color: var(--color-ink);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-title);
  color: var(--color-starlight);
  margin-bottom: var(--space-md);
}

.section-parchment .section-title {
  color: var(--color-ink);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-quill);
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.section-parchment .section-subtitle {
  color: var(--color-faded);
}

.text-centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.text-centered .section-title {
  text-align: center;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 40px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  color: var(--color-gold);
  line-height: var(--leading-tight);
  margin-bottom: 24px;
  letter-spacing: var(--tracking-tight);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  color: var(--color-starlight);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 48px;
}

@media (max-width: 768px) {
  .hero-sub {
    font-size: var(--text-body);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
  cursor: pointer;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-indicator svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Three-Card Grid --- */
.card-grid {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.card-grid .card {
  flex: 1;
}

@media (max-width: 768px) {
  .card-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Persona Avatar --- */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-midnight);
  margin: 0 auto 12px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 26px;
}

/* --- Persona Avatar Images --- */
.avatar-img-wrap {
  width: 120px; height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(212,165,74,0.3);
  animation: avatarGlow 5s ease-in-out infinite;
  --glow-color: rgba(212,165,74,0.2);
}
.avatar-img-wrap.avatar-sm {
  width: 90px; height: 90px;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  animation: avatarBreathe 5s ease-in-out infinite;
}
video.avatar-img {
  background: var(--color-midnight);
}

/* Glow overlay from below */
.avatar-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at bottom, var(--glow-color) 0%, transparent 70%);
  animation: avatarGlowOverlay 5s ease-in-out infinite;
  pointer-events: none;
}

/* Hover enhancement */
.persona-card-expanded:hover .avatar-img-wrap {
  border-color: var(--color-gold);
  box-shadow: 0 4px 32px var(--glow-color), 0 0 60px var(--glow-color);
  animation-play-state: paused;
}
.persona-card-expanded:hover .avatar-img {
  filter: brightness(1.12);
  animation-play-state: paused;
}

/* Shimmer sweep on avatar */
.avatar-img-wrap::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 35%, rgba(255,255,255,0.1) 50%, transparent 65%);
  animation: avatarShimmer 7s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}

/* Breathing — brightness pulse visible through the circle */
@keyframes avatarBreathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Border glow pulse — the most visible animation */
@keyframes avatarGlow {
  0%, 100% {
    border-color: rgba(212,165,74,0.2);
    box-shadow: 0 0 8px var(--glow-color), 0 0 2px rgba(212,165,74,0.1);
  }
  50% {
    border-color: rgba(212,165,74,0.5);
    box-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
  }
}

/* Glow overlay fades in and out */
@keyframes avatarGlowOverlay {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}

/* Shimmer sweep */
@keyframes avatarShimmer {
  0% { transform: translateX(-80%) translateY(-80%) rotate(45deg); }
  100% { transform: translateX(80%) translateY(80%) rotate(45deg); }
}

/* Stagger animations so they pulse out of sync */
.persona-grid .persona-card-expanded:nth-child(1) .avatar-img-wrap { animation-delay: 0s; }
.persona-grid .persona-card-expanded:nth-child(1) .avatar-img { animation-delay: 0s; }
.persona-grid .persona-card-expanded:nth-child(2) .avatar-img-wrap { animation-delay: 0.7s; }
.persona-grid .persona-card-expanded:nth-child(2) .avatar-img { animation-delay: 0.7s; }
.persona-grid .persona-card-expanded:nth-child(3) .avatar-img-wrap { animation-delay: 1.4s; }
.persona-grid .persona-card-expanded:nth-child(3) .avatar-img { animation-delay: 1.4s; }
.persona-grid .persona-card-expanded:nth-child(4) .avatar-img-wrap { animation-delay: 2.1s; }
.persona-grid .persona-card-expanded:nth-child(4) .avatar-img { animation-delay: 2.1s; }
.persona-grid .persona-card-expanded:nth-child(5) .avatar-img-wrap { animation-delay: 0.35s; }
.persona-grid .persona-card-expanded:nth-child(5) .avatar-img { animation-delay: 0.35s; }
.persona-grid .persona-card-expanded:nth-child(6) .avatar-img-wrap { animation-delay: 1.05s; }
.persona-grid .persona-card-expanded:nth-child(6) .avatar-img { animation-delay: 1.05s; }
.persona-grid .persona-card-expanded:nth-child(7) .avatar-img-wrap { animation-delay: 1.75s; }
.persona-grid .persona-card-expanded:nth-child(7) .avatar-img { animation-delay: 1.75s; }

/* --- Persona Grid --- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.persona-card {
  background: transparent;
  border: 1px solid rgba(212, 165, 74, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.persona-card:hover {
  background: var(--color-twilight);
  border-color: rgba(212, 165, 74, 0.15);
}

.persona-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-label);
  color: var(--color-starlight);
  margin-bottom: 4px;
}

.persona-role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-quill);
}

/* Expanded persona cards (team page) */
.persona-card-expanded {
  background: var(--color-twilight);
  border: 1px solid rgba(212, 165, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.persona-card-expanded:hover {
  border-color: rgba(212, 165, 74, 0.2);
  box-shadow: 0 4px 24px rgba(15, 18, 25, 0.4);
}

.persona-card-expanded .persona-role {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-caption);
  color: var(--color-gold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.persona-card-expanded .persona-divider {
  height: 1px;
  background: rgba(139, 101, 67, 0.3);
  margin: 16px 0;
}

.persona-card-expanded .persona-desc {
  font-size: 15px;
  color: var(--color-starlight);
  line-height: var(--leading-normal);
  margin-bottom: 12px;
}

.persona-card-expanded .persona-built {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-quill);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Featured Case Study Card --- */
.case-study-featured {
  display: flex;
  max-width: 1100px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 18, 25, 0.4);
}

.case-study-image {
  width: 45%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.case-study-text {
  width: 55%;
  padding: 48px;
}

.case-study-text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-heading);
  color: var(--color-gold);
  margin-bottom: 8px;
}

.case-study-subtitle {
  font-size: var(--text-body);
  color: var(--color-starlight);
  margin-bottom: 16px;
}

.case-study-oneliner {
  font-size: var(--text-small);
  color: var(--color-quill);
  font-style: italic;
  margin-bottom: 16px;
}

.case-study-stats {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .case-study-featured {
    flex-direction: column;
  }
  .case-study-image {
    width: 100%;
    min-height: 200px;
  }
  .case-study-text {
    width: 100%;
    padding: 32px 24px;
  }
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-card {
  flex: 1;
  background: rgba(15, 18, 25, 0.3);
  border: 1px solid rgba(212, 165, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.portfolio-card:hover {
  border-color: rgba(212, 165, 74, 0.2);
  box-shadow: var(--glow-gold);
}

.portfolio-icon {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
  opacity: 0.5;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px rgba(212, 165, 74, 0.2));
}

.portfolio-icon svg {
  width: 100%;
  height: 100%;
}

.portfolio-card:hover .portfolio-icon {
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(212, 165, 74, 0.35));
  transition: opacity var(--transition-normal), filter var(--transition-normal);
}

.portfolio-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.portfolio-card p {
  font-size: 15px;
  color: var(--color-starlight);
}

@media (max-width: 768px) {
  .portfolio-grid {
    flex-direction: column;
  }
}

/* --- Steps --- */
.steps {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4rem;
  color: var(--color-copper);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-subheading);
  margin-bottom: 12px;
}

.section-parchment .step-title {
  color: var(--color-ink);
}

.step-desc {
  font-size: var(--text-small);
  line-height: var(--leading-normal);
}

.section-parchment .step-desc {
  color: rgba(26, 21, 18, 0.8);
}

/* Step connectors */
.step + .step::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 1px;
  height: 60%;
  transform: translateY(-50%);
  background: var(--color-copper);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    gap: 32px;
  }
  .step + .step::before {
    left: 50%;
    top: -16px;
    width: 60%;
    height: 1px;
    transform: translateX(-50%);
  }
}

/* --- Page Header (non-hero pages) --- */
.page-header {
  padding: 160px 0 64px;
  text-align: center;
  background: var(--color-midnight);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  color: var(--color-gold);
  margin-bottom: 16px;
}

.page-header .subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-quill);
  max-width: 720px;
  margin: 0 auto;
}

/* --- Case Study Page Specific --- */
.case-header {
  background: var(--color-walnut);
  padding: 64px 0;
}

.case-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.case-header .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-label);
  color: var(--color-starlight);
  margin-bottom: 16px;
}

.case-header .stats {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

/* Case team roster */
.team-roster {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.roster-card {
  text-align: center;
  min-width: 120px;
  flex-shrink: 0;
}

.roster-card .avatar {
  margin-bottom: 8px;
}

.roster-card .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-starlight);
  margin-bottom: 4px;
}

.roster-card .case-role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-quill);
  max-width: 130px;
  margin: 0 auto;
}

.roster-card.joel-card .name {
  color: var(--color-gold);
  font-size: 1.375rem;
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(212, 165, 74, 0.3);
}

.timeline-block {
  position: relative;
  margin-bottom: 48px;
}

.timeline-block::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

.timeline-week {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-label);
  color: var(--color-gold);
  margin-bottom: 12px;
}

.timeline-content {
  font-size: var(--text-small);
  color: var(--color-starlight);
  line-height: var(--leading-normal);
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.timeline-content li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* The Pivot section */
.pivot-section {
  padding: 96px 0;
}

.pivot-impact {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--color-gold);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.3;
}

.pivot-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: var(--text-body);
  color: var(--color-starlight);
}

.pivot-columns {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.pivot-col {
  flex: 1;
  padding: 32px;
  background: rgba(15, 18, 25, 0.3);
  border-radius: var(--radius-lg);
}

.pivot-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.625rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.pivot-col p {
  font-size: var(--text-small);
  color: var(--color-starlight);
  line-height: var(--leading-normal);
}

.pivot-closing {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--color-starlight);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pivot-columns {
    flex-direction: column;
  }
  .pivot-impact {
    font-size: 1.625rem;
  }
}

/* Deliverables */
.deliverables {
  display: flex;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.deliverables-col {
  flex: 1;
}

.deliverables-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.deliverables-col h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-starlight);
  margin: 16px 0 8px;
}

.deliverables-col ul {
  list-style: none;
  padding: 0;
}

.deliverables-col li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: var(--text-small);
  color: var(--color-starlight);
}

.deliverables-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
}

@media (max-width: 768px) {
  .deliverables {
    flex-direction: column;
    gap: 32px;
  }
}

/* Demonstrates cards */
.demonstrates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.demonstrates-card {
  background: var(--color-twilight);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 4px solid var(--color-gold);
}

.demonstrates-icon {
  width: 28px;
  height: 28px;
  color: var(--color-gold);
  opacity: 0.6;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px rgba(212, 165, 74, 0.2));
}

.demonstrates-icon svg {
  width: 100%;
  height: 100%;
}

.demonstrates-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.demonstrates-card p {
  font-size: 15px;
  color: var(--color-starlight);
  line-height: var(--leading-normal);
}

@media (max-width: 768px) {
  .demonstrates-grid {
    grid-template-columns: 1fr;
  }
}

/* Credits section */
.credits-section {
  text-align: center;
  padding: 64px 0;
  position: relative;
}

.credits-section::before,
.credits-section::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-copper), transparent);
}

.credits-section::before { top: 0; }
.credits-section::after { bottom: 0; }

.credits-section img {
  height: 48px;
  margin: 0 auto 16px;
}

.credits-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-starlight);
  margin-bottom: 12px;
}

.credits-list {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-gold);
  margin-bottom: 8px;
}

.credits-joel {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-quill);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-midnight);
  padding: 96px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 165, 74, 0.04), transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 32px;
}

.cta-section .cta-pre {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-quill);
  margin-bottom: 12px;
}

/* --- About Page Specific --- */
.about-hero {
  padding: 200px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-narrative {
  max-width: 720px;
  margin: 0 auto;
}

.about-narrative p {
  font-size: var(--text-body);
  color: var(--color-starlight);
  line-height: 1.75;
  margin-bottom: 24px;
}

.thesis-block {
  margin-bottom: 48px;
}

.thesis-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-subheading);
  color: var(--color-gold);
  margin-bottom: 16px;
}

.thesis-block p {
  font-size: 17px;
  color: var(--color-starlight);
  line-height: var(--leading-normal);
}

/* Principles cards (light bg) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.principle-card {
  background: var(--color-vellum);
  border: 1px solid var(--color-canvas);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.principle-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-subheading);
  color: var(--color-copper);
  margin-bottom: 12px;
}

.principle-card p {
  font-size: var(--text-small);
  color: var(--color-ink);
}

@media (max-width: 768px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
}

/* Infrastructure cards */
.infra-list {
  max-width: 800px;
  margin: 0 auto;
}

.infra-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
}

.infra-item + .infra-item {
  border-top: 1px solid rgba(139, 101, 67, 0.15);
}

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

.infra-item h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.infra-item p {
  font-size: var(--text-small);
  color: var(--color-starlight);
}

/* --- Contact Page --- */
.path-cards {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.path-card {
  flex: 1;
  background: var(--color-twilight);
  border: 1px solid rgba(212, 165, 74, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.path-card:hover {
  border-color: rgba(212, 165, 74, 0.3);
  box-shadow: var(--glow-gold);
}

.path-icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  opacity: 0.6;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px rgba(212, 165, 74, 0.2));
}

.path-icon svg {
  width: 100%;
  height: 100%;
}

.path-card:hover .path-icon {
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(212, 165, 74, 0.35));
  transition: opacity var(--transition-normal), filter var(--transition-normal);
}

.path-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.path-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.path-card p {
  font-size: var(--text-small);
  color: var(--color-starlight);
  margin-bottom: 8px;
}

.path-card .btn-primary {
  margin-top: auto;
  padding-top: 24px;
}

@media (max-width: 768px) {
  .path-cards {
    flex-direction: column;
  }
}

/* Contact form */
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-dusk);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-small);
  color: var(--color-starlight);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(15, 18, 25, 0.5);
  border: 1px solid rgba(212, 165, 74, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--color-starlight);
  font-family: var(--font-body);
  font-size: var(--text-small);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-quill);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(212, 165, 74, 0.5);
  box-shadow: 0 0 12px rgba(212, 165, 74, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Radio pills */
.radio-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill label {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(15, 18, 25, 0.5);
  border: 1px solid rgba(212, 165, 74, 0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-caption);
  color: var(--color-starlight);
  transition: all var(--transition-normal);
  margin-bottom: 0;
}

.radio-pill input:checked + label {
  background: rgba(212, 165, 74, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.form-submit {
  width: 100%;
  margin-top: 24px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-heading);
  color: var(--color-gold);
  margin-bottom: 16px;
}

.form-success p {
  color: var(--color-starlight);
}

/* --- Collaboration Diagram --- */
.collab-diagram {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
  position: relative;
  padding: 48px 0;
}

.collab-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-gold);
}

.collab-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-quill);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Meta Proof --- */
.meta-proof {
  text-align: center;
  padding: 64px 0;
}

.meta-proof p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.625rem;
  color: var(--color-starlight);
  margin-bottom: 12px;
}

.meta-proof p:last-child {
  font-size: var(--text-small);
  color: var(--color-quill);
}

/* --- Joel Distinguished Card --- */
.joel-card-section {
  max-width: 800px;
  margin: 0 auto 48px;
}

.joel-card {
  background: var(--color-twilight);
  border: 1px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
}

.joel-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.joel-card .role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  color: var(--color-starlight);
  letter-spacing: var(--tracking-wide);
  margin-bottom: 24px;
}

.joel-card .constellation-line {
  max-width: 200px;
  margin: 24px auto;
}

.joel-card .profile-text {
  text-align: left;
  font-size: var(--text-body);
  color: var(--color-starlight);
  line-height: 1.65;
}

.joel-card .profile-text p {
  margin-bottom: 16px;
}

.joel-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-top: 24px;
  line-height: 1.4;
}

/* --- Group Label --- */
.group-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  color: var(--color-gold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
}

/* --- Page Load Animation --- */
body {
  animation: pageIn 0.6s ease;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Staggered Grid Animations --- */
.card-grid .card:nth-child(2) .section-enter,
.card-grid > :nth-child(2) { transition-delay: 0.1s; }
.card-grid .card:nth-child(3) .section-enter,
.card-grid > :nth-child(3) { transition-delay: 0.2s; }

.persona-grid > :nth-child(2) { transition-delay: 0.06s; }
.persona-grid > :nth-child(3) { transition-delay: 0.12s; }
.persona-grid > :nth-child(4) { transition-delay: 0.18s; }
.persona-grid > :nth-child(5) { transition-delay: 0.24s; }
.persona-grid > :nth-child(6) { transition-delay: 0.30s; }
.persona-grid > :nth-child(7) { transition-delay: 0.36s; }
.persona-grid > :nth-child(8) { transition-delay: 0.42s; }
.persona-grid > :nth-child(9) { transition-delay: 0.48s; }
.persona-grid > :nth-child(10) { transition-delay: 0.54s; }
.persona-grid > :nth-child(11) { transition-delay: 0.60s; }

.portfolio-grid > :nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid > :nth-child(3) { transition-delay: 0.2s; }

.path-cards > :nth-child(2) { transition-delay: 0.1s; }
.path-cards > :nth-child(3) { transition-delay: 0.2s; }

.demonstrates-grid > :nth-child(2) { transition-delay: 0.1s; }
.demonstrates-grid > :nth-child(3) { transition-delay: 0.2s; }
.demonstrates-grid > :nth-child(4) { transition-delay: 0.3s; }

.pivot-columns > :nth-child(2) { transition-delay: 0.1s; }
.pivot-columns > :nth-child(3) { transition-delay: 0.2s; }

.steps > :nth-child(2) { transition-delay: 0.15s; }
.steps > :nth-child(3) { transition-delay: 0.3s; }

.timeline-block:nth-child(2) { transition-delay: 0.15s; }
.timeline-block:nth-child(3) { transition-delay: 0.3s; }

/* --- Gold Glow on Titles --- */
.section-title {
  text-shadow: 0 0 40px rgba(212, 165, 74, 0.08);
}

.hero h1 {
  text-shadow: 0 0 60px rgba(212, 165, 74, 0.15);
}

/* --- Enhanced Pull Quotes --- */
.pull-quote blockquote {
  text-shadow: 0 0 30px rgba(212, 165, 74, 0.1);
}

/* --- Breathing Gold Glow --- */
@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.constellation-line .dot {
  box-shadow: 0 0 8px rgba(212, 165, 74, 0.5);
  animation: breathe 3s ease-in-out infinite;
}

.constellation-line::before,
.constellation-line::after {
  box-shadow: 0 0 6px rgba(212, 165, 74, 0.4);
  animation: breathe 3s ease-in-out infinite;
}

.constellation-line::after {
  animation-delay: 1s;
}

/* --- Section Atmosphere Overlays --- */
.section-midnight {
  position: relative;
}

.section-walnut {
  position: relative;
}

/* --- Constellation Dot Decoration --- */
.constellation-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.constellation-dots span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.15;
}

/* --- Enhanced Persona Card Hover --- */
.persona-card-expanded {
  transform: translateY(0);
}

.persona-card-expanded:hover {
  transform: translateY(-4px);
}

/* --- Scroll Indicator Enhancement --- */
.scroll-indicator svg {
  filter: drop-shadow(0 0 6px rgba(212, 165, 74, 0.3));
}

/* --- Enhanced Collaboration Diagram --- */
.collab-center {
  box-shadow: 0 0 30px rgba(212, 165, 74, 0.15);
  transition: box-shadow 0.4s ease;
}

.collab-center:hover {
  box-shadow: 0 0 50px rgba(212, 165, 74, 0.25);
}

.collab-diagram::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 74, 0.06);
  pointer-events: none;
}

.collab-diagram::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 74, 0.03);
  pointer-events: none;
}

/* --- Meta Proof Enhancement --- */
.meta-proof p:first-child {
  text-shadow: 0 0 20px rgba(212, 165, 74, 0.1);
}

/* --- Pivot Section Impact Line --- */
.pivot-impact {
  text-shadow: 0 0 40px rgba(212, 165, 74, 0.12);
}

/* --- Timeline Dot Glow --- */
.timeline-block::before {
  box-shadow: 0 0 10px rgba(212, 165, 74, 0.4);
}

/* --- Button Active States --- */
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary:active,
.btn-ghost:active {
  transform: scale(0.98);
}

/* --- Infrastructure Dot Glow --- */
.infra-dot {
  box-shadow: 0 0 10px rgba(212, 165, 74, 0.3);
  animation: breathe 4s ease-in-out infinite;
}

.infra-item:nth-child(2) .infra-dot { animation-delay: 0.8s; }
.infra-item:nth-child(3) .infra-dot { animation-delay: 1.6s; }
.infra-item:nth-child(4) .infra-dot { animation-delay: 2.4s; }
.infra-item:nth-child(5) .infra-dot { animation-delay: 3.2s; }

/* --- Focus Visible for Accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* --- Utility --- */
.max-720 { max-width: 720px; margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ============================================================
   NEW SECTIONS — Hero Metrics, Capabilities, Comparisons, Metrics
   Added by Flux — Feb 25, 2026
   ============================================================ */

/* --- Hero Metrics Bar --- */
.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  margin-top: 32px;
}

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

.hero-metric-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(212, 165, 74, 0.3);
}

.hero-metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-quill);
  letter-spacing: 0.05em;
  margin-top: 4px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-metrics {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-metric-number {
    font-size: 1.75rem;
  }
}

/* --- Metric Callouts (Work Page) --- */
.metric-callouts {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.metric-callout {
  text-align: center;
  min-width: 80px;
}

.metric-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(212, 165, 74, 0.2);
}

.metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-quill);
  letter-spacing: 0.04em;
  margin-top: 6px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .metric-callouts {
    gap: 20px;
  }
  .metric-number {
    font-size: 2rem;
  }
}

/* --- Capabilities Grid --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}

.capability-card {
  background: var(--color-twilight);
  border: 1px solid rgba(212, 165, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.capability-card:hover {
  border-color: rgba(212, 165, 74, 0.2);
  box-shadow: 0 4px 24px rgba(15, 18, 25, 0.4);
}

.capability-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(212, 165, 74, 0.3));
}

.capability-icon svg {
  width: 100%;
  height: 100%;
}

.capability-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-subheading);
  color: var(--color-gold);
  margin-bottom: 12px;
}

.capability-desc {
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--color-starlight);
  margin-bottom: 16px;
}

.capability-personas {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-quill);
  margin-bottom: 8px;
}

.capability-personas strong {
  color: var(--color-starlight);
}

.capability-proof {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-faded);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 165, 74, 0.06);
}

/* --- Comparison Grid --- */
.comparison-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1fr;
  }
}

.comparison-traditional,
.comparison-centaur {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  font-size: var(--text-small);
  line-height: 1.65;
}

.comparison-traditional {
  background: rgba(15, 18, 25, 0.4);
  border: 1px solid rgba(155, 149, 141, 0.1);
  color: var(--color-quill);
}

.comparison-centaur {
  background: var(--color-twilight);
  border: 1px solid rgba(212, 165, 74, 0.15);
  color: var(--color-starlight);
}

.comparison-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.comparison-traditional .comparison-label {
  color: var(--color-faded);
}

.comparison-centaur .comparison-label {
  color: var(--color-gold);
}

/* --- Compound Effect Diagram --- */
.compound-diagram {
  max-width: 640px;
  margin: 32px auto 40px;
  opacity: 0.85;
}

.compound-diagram svg {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .compound-diagram {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* --- Comparison Icons --- */
.comparison-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.comparison-centaur .comparison-icon {
  color: var(--color-gold);
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(212, 165, 74, 0.25));
}

.comparison-traditional .comparison-icon {
  color: var(--color-quill);
}

.comparison-icon svg {
  width: 100%;
  height: 100%;
}

/* --- Portfolio Grid 2x2 variant --- */
.portfolio-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
}

.portfolio-grid-2x2 .portfolio-card {
  flex: none;
}

@media (max-width: 768px) {
  .portfolio-grid-2x2 {
    grid-template-columns: 1fr;
  }
}
