@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --display: 'Source Serif 4', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --navy: #1B3260;
  --steel: #4A5568;
  --teal: #4E8C87;
  --teal-light: #E8F4F2;
  --lavender: #7B6FA0;
  --cloud: #F0F2F5;
  --text: #4A5568;
  --text-light: #64748B;
  --border: #E2E8F0;
  --link: #2B6CB0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #1a2332;
  font-family: var(--body);
}

::selection {
  background: var(--teal);
  color: white;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: transparent;
  transition: all 0.35s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-cta {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  transition: all 0.25s;
}

.nav-cta:hover {
  background: var(--navy);
  color: white;
}

/* ── LAYOUT ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 48px 0;
}

.section--lg {
  padding: 72px 0;
}

/* ── TYPOGRAPHY ── */
.label {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
}

.body-text {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ── HERO ── */
.hero {
  padding-top: 100px;
  padding-bottom: 40px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, var(--teal-light) 0%, white 70%);
  text-align: center;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0;
}

.hero-divider {
  width: 80px;
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px auto;
}

.hero-headline-alert {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #D97706;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.44rem, 3.2vw, 2.24rem);
  color: var(--navy);
  line-height: 1.2;
  margin-top: 8px;
  text-align: center;
}

.hero-body {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── HERO WAVEFORM ── */
.hero-waveform {
  max-width: 750px;
  margin: 24px auto 0;
  opacity: 0;
}

.hero-waveform.visible {
  opacity: 1;
}

.waveform-svg {
  width: 100%;
  height: 80px;
}

.waveform-line {
  opacity: 0;
}

.waveform-line--left {
  stroke-dasharray: 416;
  stroke-dashoffset: 416;
}

.waveform-line--alert {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
}

.waveform-line--right {
  stroke-dasharray: 344;
  stroke-dashoffset: 344;
}

/* Sequential: left draws → alert draws → right draws → fade out → restart */
/* Total cycle: 9s, no hold, no pause */
.hero-waveform.visible .waveform-line--left {
  animation: drawLeft 9s linear 0.3s infinite;
}

.hero-waveform.visible .waveform-line--alert {
  animation: fadeAlert 9s linear 0.3s infinite;
}

.hero-waveform.visible .waveform-line--right {
  animation: drawRight 9s linear 0.3s infinite;
}

/* Left teal: draws 0–22% (0–2s), fades 89–100% */
@keyframes drawLeft {
  0%   { stroke-dashoffset: 416; opacity: 0; }
  1%   { opacity: 0.7; }
  22%  { stroke-dashoffset: 0; opacity: 0.7; }
  89%  { stroke-dashoffset: 0; opacity: 0.7; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Orange alert: draws 23–67% (2.1–6s), fades 89–100% */
@keyframes fadeAlert {
  0%   { stroke-dashoffset: 176; opacity: 0; }
  22%  { stroke-dashoffset: 176; opacity: 0; }
  23%  { opacity: 0.85; }
  67%  { stroke-dashoffset: 0; opacity: 0.85; }
  89%  { stroke-dashoffset: 0; opacity: 0.85; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Right teal: draws 67–89% (6–8s), fades 89–100% */
@keyframes drawRight {
  0%   { stroke-dashoffset: 344; opacity: 0; }
  66%  { stroke-dashoffset: 344; opacity: 0; }
  67%  { opacity: 0.7; }
  89%  { stroke-dashoffset: 0; opacity: 0.7; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ── DIVIDERS ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.teal-divider {
  width: 40px;
  height: 2px;
  background: var(--navy);
  margin-bottom: 24px;
}

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
}

.stat-block {
  border-left: 2px solid var(--navy);
  padding-left: 24px;
}

.stat-number {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-context {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 6px;
}

.stat-cite {
  font-family: var(--body);
  font-size: 0.68rem;
  color: #94A3B8;
  margin-top: 8px;
  font-style: italic;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--cloud);
  border-radius: 8px;
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.card-title {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-text {
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

.cite-text {
  font-family: var(--body);
  font-size: 0.68rem;
  color: #94A3B8;
  margin-top: 20px;
  font-style: italic;
}

/* ── MINI LABELS ── */
.mini-label-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.mini-label-item {
  padding: 16px 0;
  border-top: 2px solid var(--navy);
}

.mini-label-title {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.mini-label-desc {
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── CAPACITY STATS ── */
.capacity-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 8px;
}

.capacity-stat {
  text-align: center;
}

.capacity-number {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.capacity-label {
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── VISION BOX ── */
.vision-box {
  background: var(--navy);
  border-radius: 12px;
  padding: 64px 56px;
  color: white;
  text-align: center;
}

.vision-box .label {
  color: var(--teal-light);
}

.vision-box .heading {
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.vision-box .body-text {
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* ── WORKFLOW ── */
.workflow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 8px;
}

.workflow-step {
  text-align: center;
  flex: 1;
  max-width: 160px;
}

.workflow-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.workflow-title {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.workflow-desc {
  font-family: var(--body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.workflow-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.4rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.pillars {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pillar {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-light);
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(78, 140, 135, 0.3);
}

.vision-disclaimer {
  font-family: var(--body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 40px;
  font-style: italic;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-member {
  text-align: center;
  padding: 24px 12px;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cloud);
  border: 1px solid var(--border);
  margin: 0 auto 14px;
}

.team-title {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--teal);
  margin: 4px 0 8px;
  font-weight: 500;
}

.team-bio {
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── CONTACT / FOOTER ── */
.footer-section {
  background: var(--cloud);
  padding: 80px 0 48px;
}

.contact-email {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.contact-form {
  margin-top: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Netlify honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.input {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.25s;
}

.input:focus {
  border-color: var(--teal);
}

.input::placeholder {
  color: #94A3B8;
}

.btn {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.btn:hover {
  background: #3D7A75;
}

.footer-bottom {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-family: var(--body);
  font-size: 0.7rem;
  color: #94A3B8;
}

.footer-disclaimer {
  font-family: var(--body);
  font-size: 0.65rem;
  color: #94A3B8;
  margin-top: 6px;
  font-style: italic;
}

.footer-legal {
  font-family: var(--body);
  font-size: 0.65rem;
  color: #94A3B8;
  margin-top: 10px;
}

.footer-legal a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--navy);
}

.footer-legal-sep {
  margin: 0 8px;
  color: #CBD5E0;
}

/* ── REFERENCES ── */
.references {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 32px;
}

.references-list {
  list-style: decimal;
  padding-left: 20px;
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.8;
}

.references-list a {
  color: var(--link);
  text-decoration: none;
}

.references-list a:hover {
  text-decoration: underline;
}

.stat-cite a,
.cite-text a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in.d1 { transition-delay: 0.08s; }
.fade-in.d2 { transition-delay: 0.16s; }
.fade-in.d3 { transition-delay: 0.24s; }
.fade-in.d4 { transition-delay: 0.32s; }
.fade-in.fade-in--slow { transition-delay: 1.2s; transition-duration: 1.2s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }

  .container,
  .container--narrow {
    padding: 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section--lg {
    padding: 56px 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .contact-row {
    grid-template-columns: 1fr;
  }

  .vision-box {
    padding: 40px 24px;
  }

  .pillars {
    gap: 20px;
  }

  .mini-label-grid {
    grid-template-columns: 1fr;
  }

  .capacity-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workflow {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    margin: 0;
  }
}
