/* ============================================================
   JOSEPH M. BEEMAN — Personal Brand Site v2.0
   Dark editorial aesthetic, gold accent, recruiter-forward
   ============================================================ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px system) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* ── DARK PALETTE (default) ─────────────── */
  --color-bg:          #0B1017;
  --color-surface:     #111821;
  --color-surface-2:   #16202C;
  --color-border:      rgba(201, 169, 110, 0.12);
  --color-border-hover:rgba(201, 169, 110, 0.3);
  --color-text:        #E8E4DC;
  --color-text-muted:  #8A96A8;
  --color-text-faint:  #556070;
  --color-gold:        #C9A96E;
  --color-gold-hover:  #D9BC85;
  --color-gold-muted:  rgba(201, 169, 110, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

/* ── GLOBAL ─────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ── LAYOUT ─────────────────────────────────── */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

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

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
}

h1 { font-size: var(--text-hero); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: 600; }

.overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-4);
}

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

/* ── HEADER ─────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-5) 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(11, 16, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition-interactive);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  background: var(--color-gold);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.btn-nav:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}
.btn-nav:active { transform: translateY(0); }

/* Resume download button — nav variant */
.btn-nav-resume {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  letter-spacing: 0.03em;
}
.btn-nav-resume:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 110;
  padding: var(--space-2);
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-8);
    background: rgba(11, 16, 23, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 105;
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: var(--text-lg); color: var(--color-text); }
  .hamburger { display: flex; }
}

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(201,169,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,169,110,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Architectural grid pattern */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: -5%;
  width: 55%; height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(201,169,110,0.025) 100px, rgba(201,169,110,0.025) 101px),
    repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(201,169,110,0.025) 100px, rgba(201,169,110,0.025) 101px);
  transform: rotate(-12deg) scale(1.4);
  pointer-events: none;
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
}

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

.hero-text h1 {
  margin-bottom: var(--space-6);
  line-height: 1.05;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--color-gold);
  font-style: italic;
}

.hero-subline {
  font-size: var(--text-lg);
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 52ch;
}

.hero-contact-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.hero-contact-item {
  color: var(--color-gold);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}
.hero-contact-item:hover {
  color: var(--color-gold-hover);
  text-decoration: underline;
}

.hero-contact-sep {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  user-select: none;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-interactive);
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201,169,110,0.25);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text-muted);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-1px);
}

/* Hero headshot area */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.headshot-frame {
  width: 380px;
  height: 460px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headshot-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-gold-muted), transparent 50%);
  pointer-events: none;
}

.headshot-monogram {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-text-faint);
  letter-spacing: -0.04em;
  opacity: 0.5;
}

.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  position: relative;
  z-index: 1;
}

/* Gradient overlays to blend white bg edges with dark theme */
.headshot-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(11,16,23,0.35) 0%, transparent 25%, transparent 65%, rgba(11,16,23,0.6) 90%, rgba(11,16,23,0.85) 100%),
    linear-gradient(90deg, rgba(11,16,23,0.3) 0%, transparent 20%, transparent 80%, rgba(11,16,23,0.3) 100%);
  z-index: 2;
  border-radius: var(--radius-md);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-description { max-width: 100%; margin-inline: auto; }
  .hero-contact-bar { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .headshot-frame { width: 280px; height: 340px; }
  .hero-visual { order: -1; }
}

/* ── STATS BAR ──────────────────────────────── */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-10) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
  white-space: nowrap;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .stat-value { font-size: var(--text-lg); }
}

/* ── ABOUT ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-content h2 { margin-bottom: var(--space-8); }

.about-bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-bio-full {
  margin-top: var(--space-10);
  column-count: 2;
  column-gap: var(--space-16);
}

.about-bio-full p {
  break-inside: avoid;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

@media (max-width: 768px) {
  .about-bio-full { column-count: 1; }
}

.about-bio p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
}

.about-sidebar {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.about-sidebar h4 {
  font-family: var(--font-display);
  color: var(--color-gold);
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sidebar-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}

.sidebar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px; height: 1.5px;
  background: var(--color-gold);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ── EXPERTISE ──────────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.expertise-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.expertise-card:hover {
  border-color: var(--color-border-hover);
  background: rgba(201,169,110,0.03);
  transform: translateY(-2px);
}
.expertise-card:hover::before { transform: scaleX(1); }

.expertise-icon {
  width: 40px; height: 40px;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}

.expertise-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.expertise-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

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

/* ── TRACK RECORD (TIMELINE) ────────────────── */
.timeline {
  position: relative;
  padding: var(--space-8) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  position: relative;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: 50%;
  top: var(--space-6);
  width: 10px; height: 10px;
  background: var(--color-gold);
  border: 3px solid var(--color-bg);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.timeline-entry:nth-child(odd) .timeline-content { grid-column: 1; text-align: left; }
.timeline-entry:nth-child(odd) .timeline-spacer { grid-column: 2; }
.timeline-entry:nth-child(even) .timeline-spacer { grid-column: 1; }
.timeline-entry:nth-child(even) .timeline-content { grid-column: 2; }

.timeline-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color 0.3s ease;
}
.timeline-content:hover { border-color: var(--color-border-hover); }

.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.timeline-role {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.timeline-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .timeline::before { left: 16px; }
  .timeline-entry {
    grid-template-columns: 1fr;
    padding-left: 48px;
    margin-bottom: var(--space-8);
  }
  .timeline-entry::before { left: 16px; top: var(--space-5); }
  .timeline-entry:nth-child(odd) .timeline-content,
  .timeline-entry:nth-child(even) .timeline-content {
    grid-column: 1; text-align: left;
  }
  .timeline-spacer { display: none; }
}

/* ── TIMELINE EXPANDABLE CARDS ───────────────── */
.timeline-expandable .timeline-content {
  cursor: pointer;
}

.timeline-expand-btn {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-interactive);
}

.timeline-expand-btn:hover {
  color: var(--color-text);
}

.timeline-details {
  display: none;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.timeline-details.open {
  display: block;
}

.timeline-expandable.card-open .timeline-content {
  border-color: var(--color-gold);
}

.timeline-subrole {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.timeline-subrole:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-subrole-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline-subrole-period {
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
}

.timeline-subrole p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.timeline-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-detail-list li {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  margin-bottom: var(--space-3);
}

.timeline-detail-list li:last-child {
  margin-bottom: 0;
}

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

/* ── CASE STUDIES ───────────────────────────── */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.case-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}

.case-card-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.case-card-type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.case-card-header h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.case-card-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
}

.case-card-body {
  padding: var(--space-5) var(--space-6);
}

.case-card-body p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.case-metric {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  text-align: center;
}

.case-metric-val {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-gold);
}

.case-metric-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .case-studies-grid { grid-template-columns: 1fr; }
}

/* ── PROJECTS TABLE ─────────────────────────── */
.projects-intro {
  max-width: 700px;
  margin-bottom: var(--space-10);
}

.projects-intro p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

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

.projects-category-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-gold);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.project-row {
  display: grid;
  grid-template-columns: 1.2fr 140px 1fr;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(201,169,110,0.06);
  align-items: baseline;
  transition: background 0.2s ease, padding 0.2s ease;
}

.project-row:hover {
  background: rgba(201,169,110,0.03);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.project-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.project-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
}

.project-detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
}

@media (max-width: 600px) {
  .project-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .project-value, .project-detail { text-align: left; }
}

/* ── CONSULTING SERVICES ────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.service-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  flex: 1;
}

.service-clients {
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

/* ── THOUGHT LEADERSHIP ─────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.insight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.insight-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.insight-type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.insight-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.insight-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

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

/* ── CREDENTIALS ────────────────────────────── */
.education-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.edu-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  transition: border-color 0.3s ease;
}

.edu-card:hover { border-color: var(--color-border-hover); }

/* Logo wrap — fixed-height container so all cards align regardless of logo dimensions */
.edu-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* All logos — transparent PNGs and SVGs, invert to white on dark bg */
.edu-logo-png,
.edu-logo-svg {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  object-fit: contain;
}

.edu-school {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.edu-degree {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
  font-weight: 500;
}

.edu-year {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Cards with courses get a subtle hint */
.edu-card:has(.edu-courses) {
  position: relative;
}
.edu-card:has(.edu-courses)::after {
  content: 'tap to expand';
  display: block;
  margin-top: var(--space-3);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
}
.edu-card.card-open {
  border-color: var(--color-gold);
}
.edu-card.card-open::after {
  content: 'tap to collapse';
}

/* Hide the old button — card click handles it now */
.edu-courses-toggle {
  display: none;
}

/* Course list — hidden by default */
.edu-courses {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: none;
  text-align: left;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}
.edu-courses.open {
  display: block;
}
.edu-courses li {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}
.edu-courses li:last-child {
  border-bottom: none;
}

.certs-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  align-items: center;
}

.cert-item {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.cert-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

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

/* ── PHILOSOPHY ─────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.principle-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color 0.3s ease;
  position: relative;
}

.principle-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.principle-card:hover::after { transform: scaleX(1); }

.principle-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold-muted);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.principle-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.principle-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ── CONTACT ────────────────────────────────── */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 { margin-bottom: var(--space-4); }

.contact-lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.contact-method-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.contact-method-value {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.contact-method-value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.contact-method-value a:hover { color: var(--color-gold); }

.contact-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.contact-closing {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: italic;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .contact-methods { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ── ACTIVE DEVELOPMENT ────────────────────── */
.active-dev-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.active-dev-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.active-dev-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.10);
}

.active-dev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.active-dev-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5dbf80;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5dbf80;
  box-shadow: 0 0 0 0 rgba(93, 191, 128, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(93, 191, 128, 0.5); }
  60%  { box-shadow: 0 0 0 7px rgba(93, 191, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 191, 128, 0); }
}

.active-dev-type {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.active-dev-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.active-dev-location {
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.active-dev-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 80ch;
  margin-bottom: var(--space-8);
}

.active-dev-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
  margin-bottom: var(--space-8);
}

.active-dev-metric {
  text-align: center;
}

.active-dev-metric-val {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.active-dev-metric-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.active-dev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.dev-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(201, 169, 110, 0.10);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

.active-dev-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: background var(--transition-interactive), color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.active-dev-cta:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.25);
  text-decoration: none;
}

@media (max-width: 768px) {
  .active-dev-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .active-dev-card {
    padding: var(--space-6);
  }
  .active-dev-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .active-dev-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
  text-align: center;
}

footer p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

footer a {
  color: var(--color-gold);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* ── SCROLL ANIMATIONS ──────────────────────── */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  .fade-in.visible {
    opacity: 1;
  }
}

/* ── SCROLL TO TOP ──────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px; height: 48px;
  background: var(--color-gold);
  color: var(--color-bg);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 90;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
  cursor: pointer;
  border: none;
}

.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--color-gold-hover); transform: translateY(-3px); }
.scroll-top:active { transform: translateY(0); }
