/* ============================================
   Astra — shared design system
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f6f2;
  --ink: #1c1d22;
  --ink-soft: #5b5d68;
  --navy: #11142b;
  --navy-soft: #1c2044;
  --navy-line: rgba(255, 255, 255, 0.14);
  --gold: #e8a33d;
  --line: #e7e5df;

  --container: 1080px;
  --radius: 10px;
  --radius-sm: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

section {
  padding: 88px 0;
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
}

.label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}

.label.on-dark {
  color: rgba(255, 255, 255, 0.6);
}

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink);
}

.section-head p {
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #f0b158;
}

.btn-ghost {
  background: transparent;
  border-color: var(--navy-line);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease), border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}

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

.site-nav.is-scrolled {
  background: var(--navy);
  padding: 16px 0;
  border-color: var(--navy-line);
}

.site-nav.on-light {
  background: var(--bg);
  padding: 16px 0;
  border-color: var(--line);
}

.site-nav.on-light .nav-links a,
.site-nav.on-light .logo {
  color: var(--ink);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.logo .dot {
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: block;
    width: 26px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
  }

  .nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .nav-toggle span:nth-child(1) { top: 0; }
  .nav-toggle span:nth-child(2) { top: 9px; }
  .nav-toggle span:nth-child(3) { top: 18px; }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  padding-top: 100px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  color: #fff;
}

.hero .lede {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-visual {
  aspect-ratio: 4 / 5;
}

/* ---------- placeholder photo blocks ----------
   Swap out .photo-placeholder for a real <img> whenever
   Astra has non-AI photography ready to use. */

.photo-placeholder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  display: flex;
  align-items: flex-end;
  min-height: 220px;
}

.photo-placeholder .caption {
  padding: 16px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.photo-placeholder.on-light {
  background: var(--bg-alt);
  border-color: var(--line);
}

.photo-placeholder.on-light .caption {
  color: var(--ink-soft);
  opacity: 0.55;
}

/* ---------- scroll indicator ---------- */

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- problem / narrative sections ---------- */

.narrative {
  background: var(--bg);
}

.narrative .container {
  max-width: 700px;
}

.narrative .lead-line {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 24px;
}

.narrative p {
  font-size: 1.05rem;
}

/* ---------- core initiatives ---------- */

.initiatives {
  background: var(--bg);
}

.initiative-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.initiative-row:first-of-type {
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .initiative-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }
  .initiative-row .initiative-visual {
    order: -1;
  }
}

.initiative-index {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.initiative-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.initiative-copy p {
  font-size: 1.02rem;
}

.initiative-copy .kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.initiative-visual {
  aspect-ratio: 4 / 3;
}

/* ---------- CTA / get involved ---------- */

.cta {
  background: var(--navy);
  color: #fff;
}

.cta .section-head {
  max-width: 640px;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.65);
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 0 28px;
  border-top: 1px solid var(--navy-line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-line);
}

.footer-top .logo {
  margin-bottom: 12px;
}

.footer-blurb {
  max-width: 300px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.83rem;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ---------- other initiatives page ---------- */

.page-header {
  background: var(--navy);
  color: #fff;
  padding: 150px 0 64px;
}

.page-header .container {
  max-width: 680px;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.page-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tool-card {
  padding: 32px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-card .status {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.tool-card p.desc {
  font-size: 0.95rem;
  margin: 0;
}

.note-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 56px;
}

.note-banner p {
  margin: 0;
  font-size: 0.96rem;
  max-width: 640px;
}
