/* ============================================================
   XHealth: Main Stylesheet
   Mobile-first. 8px grid. Georgia everywhere + Outfit numbers.
   Brand palette: Teal #00B4D8, Black #111111, Off-white #F8FAFC,
                  Sage-green #A3B18A (accents), Sage-light #BCECAC (backgrounds), Slate #475569
   ============================================================ */


/* ================================================================
   CUSTOM PROPERTIES
   ================================================================ */

:root {
  /* Brand colors */
  --teal:       #00B4D8;
  --teal-hover: #0096B7;
  --black:      #111111;
  --off-white:  #F8FAFC;
  --white:      #FFFFFF;
  --sage:       #A3B18A;
  --sage-lt:    #BCECAC;
  --slate:      #475569;
  --slate-lt:   #94A3B8;

  /* Typography */
  --serif: Georgia, 'Times New Roman', serif;
  --num:   'Outfit', Georgia, serif;

  /* Spacing (8px base grid) */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  40px;
  --s6:  48px;
  --s8:  64px;
  --s10: 80px;
  --s12: 96px;
  --s15: 120px;
  --s18: 144px;

  /* Layout */
  --max-w:  1200px;
  --nav-h:  72px;
  --radius: 8px;

  /* Transitions */
  --tf: 200ms ease;
  --tb: 300ms ease;
}


/* ================================================================
   RESET
   ================================================================ */

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

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

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { max-width: 100%; height: auto; display: block; }
ul,ol { list-style: none; }
a     { color: inherit; text-decoration: none; }

/* Skip-to-content: visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s3);
  background: var(--teal);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: top var(--tf);
}

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


/* ================================================================
   CONTAINER
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s3);
}

@media (min-width: 640px)  { .container { padding: 0 var(--s4); } }
@media (min-width: 1024px) { .container { padding: 0 var(--s6); } }


/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--tf),
    color var(--tf),
    border-color var(--tf),
    transform var(--tf);
}

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

/* Primary: solid teal */
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }

/* Ghost light: outlined white, for dark sections */
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.07); }

/* Secondary: outlined teal, on light bg */
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: var(--white); }

/* Nav CTA */
.btn-nav { background: var(--teal); color: var(--white); border-color: var(--teal); padding: 10px 22px; font-size: 16px; }
.btn-nav:hover { background: var(--teal-hover); border-color: var(--teal-hover); }



/* ================================================================
   SHARED TYPOGRAPHY
   ================================================================ */

.section-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s2);
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--black);
  margin-bottom: var(--s4);
  letter-spacing: -0.015em;
}

.heading-num {
  font-family: var(--num);
  font-weight: 700;
}



/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */

.reveal, .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible, .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   NAVIGATION
   ================================================================ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--tb), box-shadow var(--tb);
}

/* Default: transparent over dark hero */
#navbar .logo-dark  { display: none; }
#navbar .logo-light { display: block; }
.nav-links a        { color: rgba(255,255,255,0.8); }
.nav-links a:hover  { color: var(--white); }
.bar                { background: var(--white); }

/* Scrolled: white background */
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled .logo-dark   { display: block; }
#navbar.scrolled .logo-light  { display: none; }
#navbar.scrolled .nav-links a { color: var(--slate); }
#navbar.scrolled .nav-links a:hover { color: var(--black); }
#navbar.scrolled .bar         { background: var(--black); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--s3);
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (min-width: 1024px) { .nav-container { padding: 0 var(--s6); } }

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo .logo {
  height: 72px;
  width: auto;
}

/* Desktop nav links */
.nav-links {
  display: none;
  gap: var(--s5);
  align-items: center;
}

@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  transition: color var(--tf);
}

/* Hamburger toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s1);
}

@media (min-width: 768px) { .nav-toggle { display: none; } }

.bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  transition: background var(--tb), transform var(--tb), opacity var(--tf);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: #0D1B2A;
  padding: var(--s6) var(--s4);
  gap: var(--s4);
  z-index: 99;
}

.nav-links.open a {
  font-size: 22px !important;
  font-weight: 600;
  color: var(--white) !important;
}

.nav-links.open .btn-nav {
  margin-top: var(--s2);
  font-size: 16px !important;
}


/* ================================================================
   HERO
   ================================================================ */

#hero {
  position: relative;
  min-height: 100vh;
  background: #0D1B2A;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Hero layout: two-column on desktop, stacked on mobile */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s8);
  padding-top: var(--s15);
  padding-bottom: var(--s10);
}

@media (min-width: 768px) {
  .hero-content {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: var(--s8);
    padding-top: var(--s10);
    padding-bottom: var(--s8);
  }
}

.hero-copy {
  max-width: 100%;
}

/* Hero image column */
.hero-img-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid rgba(0,180,216,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Hero label tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s3);
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

/* Hero brand name */
.hero-brand {
  font-family: var(--serif);
  font-size: clamp(52px, 10vw, 100px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s2);
  text-align: left;
}

/* Hero headline: editorial scale */
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.07;
  color: var(--white);
  letter-spacing: -0.022em;
  margin-bottom: var(--s4);
}

.hero-headline em {
  font-style: italic;
  color: var(--teal);
}

/* Hero mission tagline */
.hero-mission {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--sage-lt);
  letter-spacing: 0.01em;
  margin-bottom: var(--s4);
  text-align: left;
}

/* Hero body copy */
.hero-body {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.68);
  max-width: 700px;
  margin-bottom: var(--s5);
}

/* Hero CTA row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* Hero stagger delays */
.hero-copy .fade-up:nth-child(1) { transition-delay:  60ms; }
.hero-copy .fade-up:nth-child(2) { transition-delay: 180ms; }
.hero-copy .fade-up:nth-child(3) { transition-delay: 300ms; }
.hero-copy .fade-up:nth-child(4) { transition-delay: 420ms; }
.hero-copy .fade-up:nth-child(5) { transition-delay: 540ms; }

/* Hero proof strip: editorial metric bar */
.hero-proof {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: var(--s5) 0;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

.hero-proof-divider { display: none; }

@media (min-width: 640px) {
  .hero-proof-grid {
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: 0;
    align-items: center;
  }
  .hero-proof-divider { display: block; }
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

@media (min-width: 640px) {
  .hero-proof-item { padding: 0 var(--s5); }
  .hero-proof-item:first-child { padding-left: 0; }
}

/* Proof strip stagger delays */
.hero-proof .hero-proof-item:nth-child(1) { transition-delay: 580ms; }
.hero-proof .hero-proof-item:nth-child(3) { transition-delay: 660ms; }
.hero-proof .hero-proof-item:nth-child(5) { transition-delay: 740ms; }

.hpi-num {
  font-family: var(--num);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.015em;
}

.hpi-unit {
  font-weight: 500;
  font-size: 0.75em;
  color: var(--teal);
}

.hpi-lbl {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hero-proof-divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.1);
}


/* ================================================================
   ABOUT / MISSION
   ================================================================ */

#about {
  background: var(--white);
  padding: var(--s12) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s10);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 42% 58%; gap: var(--s15); }
}

/* Editorial pull quote: much larger than before */
.about-quote blockquote p {
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--black);
  letter-spacing: -0.01em;
  text-align: left;
}

.about-body p {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.78;
  margin-bottom: var(--s3);
  text-align: justify;
}

.quote-attr {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  margin-top: var(--s3);
  letter-spacing: 0.04em;
  text-align: center;
}

.about-body .btn { margin-top: var(--s3); }


/* ================================================================
   THE CHALLENGE
   ================================================================ */

#challenge {
  background: var(--sage-lt);
  padding: var(--s12) 0;
}

/* Left-aligned for editorial feel */
.challenge-header {
  margin-bottom: var(--s8);
}

@media (min-width: 768px) {
  .challenge-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
  }
}

.challenge-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid #000000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  opacity: 0;
}

.challenge-img.visible img {
  animation: crack-in 800ms ease both;
}

@keyframes crack-in {
  0% { opacity: 0; transform: scale(0.92); }
  60% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.challenge-sub {
  color: var(--slate);
  font-size: 18px;
  line-height: 1.75;
  margin-top: var(--s2);
  max-width: 560px;
  text-align: justify;
}

/* Stats: bordered grid with generous padding */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(163,177,138,0.4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

@media (min-width: 640px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-cell {
  background: var(--white);
  padding: var(--s8) var(--s6);
  transition: background var(--tb);
}

.stat-cell:hover { background: rgba(0,180,216,0.04); }

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--s3);
}

.stat-num {
  font-family: var(--num);
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.025em;
}

.stat-unit {
  font-family: var(--num);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.stat-desc {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.65;
  max-width: 200px;
}


/* ================================================================
   OUR APPROACH
   ================================================================ */

#approach {
  background: var(--sage-lt);
  padding: var(--s10) 0;
}

.approach-header {
  max-width: 100%;
  margin-bottom: var(--s8);
}

/* Ruled editorial list */
.approach-list {
  border-top: 1px solid rgba(163,177,138,0.45);
}

.approach-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  padding: var(--s8) 0;
  border-bottom: 1px solid rgba(163,177,138,0.45);
  transition: background var(--tb);
  position: relative;
}

@media (min-width: 768px) {
  .approach-item {
    grid-template-columns: 88px 1fr;
    align-items: start;
    gap: var(--s8);
  }
}

.approach-num {
  font-family: var(--num);
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.025em;
  transition: color var(--tb);
}

.approach-item:hover .approach-num { color: var(--teal-hover); }

.approach-content h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--s2);
  letter-spacing: -0.012em;
}

.approach-content p {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.78;
}


/* ================================================================
   IMPACT / SAVINGS BREAKDOWN
   ================================================================ */

#impact {
  background: var(--white);
  padding: var(--s12) 0;
}

.impact-header {
  position: relative;
  margin-bottom: var(--s8);
}

.impact-icon {
  position: absolute;
  top: 0;
  right: 5%;
  width: 200px;
  height: auto;
  opacity: 1;
}

.impact-sub {
  color: var(--slate);
  font-size: 18px;
  line-height: 1.75;
  margin-top: var(--s2);
}

/* Savings list: ranked breakdown with proportional bars */
.savings-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(163,177,138,0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.savings-item {
  background: var(--white);
  padding: var(--s5) var(--s6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  align-items: center;
  transition: background var(--tb);
}

@media (min-width: 768px) {
  .savings-item {
    grid-template-columns: 340px 1fr;
    gap: var(--s8);
    padding: var(--s6) var(--s6);
  }
}

.savings-item:hover { background: var(--sage-lt); }

.savings-left {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
}

.savings-num {
  font-family: var(--num);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.savings-unit {
  font-weight: 500;
  font-size: 0.62em;
  color: var(--teal);
}

.savings-cat {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

/* Proportional bar: visual scale indicator */
.savings-bar-wrap {
  height: 6px;
  background: rgba(163,177,138,0.25);
  border-radius: 3px;
  overflow: hidden;
}

.savings-bar {
  height: 100%;
  width: 0;
  background: var(--teal);
  border-radius: 3px;
  opacity: 0.75;
  transition: width 800ms ease;
}

.savings-item.visible .savings-bar {
  width: var(--bar-pct);
}


/* ================================================================
   BUILDING THE FUTURE
   ================================================================ */

#prototype {
  background: var(--sage-lt);
  padding-top: var(--s10);
  padding-bottom: var(--s12);
}

/* Content area */
.proto-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s12);
}

.proto-header {
}

@media (min-width: 768px) {
  .proto-header {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 48px;
  }
}

.proto-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Body text */
.proto-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.78;
  color: var(--slate);
  margin-top: var(--s2);
  max-width: 560px;
  text-align: justify;
}

/* Wide wrapper for cards: breaks out of normal container */
.proto-wide {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: var(--s8);
}

/* Before / After image cards: stacked vertically */
.proto-cards {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.proto-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.proto-card-label {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--s2) var(--s2);
}

.proto-card-label--before {
  color: #991B1B;
  background: rgba(220,60,60,0.08);
}

.proto-card-label--after {
  color: var(--teal);
  background: rgba(0,180,216,0.08);
}

.proto-card-img {
  width: 100%;
  height: auto;
  display: block;
}


/* ================================================================
   CLINICAL STANDARDS
   ================================================================ */

#standards {
  background: var(--white);
  padding: var(--s12) 0;
}

.std-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--s8);
}

.std-sub {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--slate);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* Two-column layout: ring left, description right */
.std-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

@media (min-width: 768px) {
  .std-layout {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 48px;
  }
}

/* Ring diagram container */
.std-ring-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  background: none;
}

.std-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ring draw animation */
.std-ring-circle {
  stroke-dasharray: 1056;
  stroke-dashoffset: 1056;
  transition: stroke-dashoffset 800ms ease;
}

.std-ring-wrap.animate .std-ring-circle {
  stroke-dashoffset: 0;
}

/* Connector lines */
.std-line {
  opacity: 0;
  transition: opacity 500ms ease, stroke 200ms ease;
}

.std-line.visible {
  opacity: 1;
}

.std-line.active {
  stroke: #00B4D8;
}

/* Center circle */
.std-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #0D1B2A;
  border: 3px solid var(--teal);
  box-shadow: 0 0 40px rgba(0,180,216,0.25), 0 0 80px rgba(0,180,216,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease;
}

.std-center.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.std-center-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.std-center-sub {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Standard nodes */
.std-node {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.7);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--sage-lt);
  border: 2px solid rgba(0,180,216,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease, border-color 200ms ease, box-shadow 200ms ease;
  padding: 0;
  font-family: inherit;
}

.std-node.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.std-node:hover {
  border-color: var(--teal);
  transform: translate(-50%, -50%) scale(1.08);
}

.std-node.active {
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 6px rgba(0,180,216,0.12);
  transform: translate(-50%, -50%) scale(1.08);
}

.std-node-code {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}

.std-node-label {
  font-family: var(--serif);
  font-size: 13px;
  color: #1a1a2e;
  line-height: 1.3;
  margin-top: 3px;
}

/* Description area */
.std-desc {
  text-align: left;
  min-height: auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.std-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

.std-desc-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--s1);
}

.std-desc-text {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--slate);
  max-width: 100%;
  line-height: 1.7;
}

/* Animated elements: start hidden */
.std-anim {
  opacity: 0;
}


/* ================================================================
   CONTACT / CTA
   ================================================================ */

#contact {
  background: var(--sage-lt);
  padding: var(--s10) 0;
}

.cta-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: var(--s5);
  letter-spacing: -0.022em;
}

.cta-body {
  color: var(--slate);
  font-size: 18px;
  line-height: 1.78;
  margin-bottom: var(--s8);
}


/* ================================================================
   FOOTER
   ================================================================ */

#footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: var(--s12) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}

.footer-logo {
  height: 200px;
  width: auto;
  margin-bottom: var(--s3);
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color var(--tf);
}

.footer-nav a:hover { color: var(--white); }

.footer-email {
  display: inline-block;
  color: var(--teal);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: var(--s3);
  transition: color var(--tf);
}

.footer-email:hover { color: var(--teal-hover); }

.footer-copy {
  color: rgba(255,255,255,0.48);
  font-size: 14px;
}
