/* ==========================================================================
   Ascent — Design Tokens
   Palette pulled directly from the brand mark: deep ink navy + rose mauve.
   ========================================================================== */

:root {
  /* Color */
  --color-ink: #17182a;          /* brand navy — primary dark surface */
  --color-ink-soft: #1e2036;     /* slightly raised navy surface (cards) */
  --color-ink-line: #2c2e49;     /* hairline borders on dark surfaces */
  --color-rose: #cf8294;         /* brand rose mauve — primary accent */
  --color-rose-deep: #a4576c;    /* pressed / hover state of rose */
  --color-rose-tint: #e9c3cc;    /* pale rose for highlights on dark */
  --color-cream: #faf6f1;        /* warm paper background (light sections) */
  --color-cream-2: #f1ebe2;      /* slightly deeper cream (cards on light) */
  --color-text-dark: #211f2b;    /* body text on light backgrounds */
  --color-text-muted-dark: #6b6879; /* secondary text on light backgrounds */
  --color-text-light: #f6f2ee;   /* body text on dark backgrounds */
  --color-text-muted-light: #9d9bb3; /* secondary text on dark backgrounds */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

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

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-rose-deep);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 700px) {
  .container {
    padding: 0 var(--space-4);
  }
}

section {
  padding: var(--space-6) 0;
}

.section-dark {
  background: var(--color-ink);
  color: var(--color-text-light);
}

.section-tight {
  padding: var(--space-5) 0;
}

/* Eyebrow label — used above section headings */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-rose-deep);
  margin-bottom: var(--space-2);
}

.section-dark .eyebrow {
  color: var(--color-rose);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6em;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-head p {
  margin-top: var(--space-2);
  color: var(--color-text-muted-dark);
  font-size: 1.05rem;
}

.section-dark .section-head p {
  color: var(--color-text-muted-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-rose);
  color: var(--color-ink);
}

.btn-primary:hover {
  background: var(--color-rose-tint);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-text-light);
}

section:not(.section-dark) .btn-outline {
  color: var(--color-text-dark);
}

.btn-outline:hover {
  background: rgba(207, 130, 148, 0.12);
}

.btn-sm {
  padding: 0.6em 1.3em;
  font-size: 0.85rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-ink-line);
}

/*
  The frosted-glass background lives on a pseudo-element rather than
  directly on .site-header. Putting `backdrop-filter` on .site-header
  itself creates a new CSS "containing block" for any position:fixed
  descendant (like the mobile nav panel below) — which traps that panel
  inside the header's own small box instead of letting it fill the
  screen. Keeping backdrop-filter off the real element (and on this
  ::before layer instead) keeps the same visual effect without that bug.
*/
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(23, 24, 42, 0.92);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text-light);
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted-light);
  transition: color 0.2s var(--ease);
  position: relative;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-text-light);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--color-rose);
  border-radius: 2px;
}

.nav-cta {
  margin-left: var(--space-1);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--color-ink);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    overflow-y: auto;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav .container {
    padding-top: var(--space-4);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

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

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-2);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--color-ink);
  color: var(--color-text-light);
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-5);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-4);
}

.hero-path {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.hero-eyebrow {
  color: var(--color-rose);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 16ch;
}

.hero .lede {
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--color-text-muted-light);
  margin-top: var(--space-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-stats {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  border-top: 1px solid var(--color-ink-line);
  padding-top: var(--space-4);
  max-width: 760px;
  /* Without this, this grid's own minimum width (3 columns x 160px+)
     gets inherited by its parent (.hero .container, also a grid),
     forcing the whole hero wider than the screen on narrow phones. */
  min-width: 0;
}

/* Defensive: applies the same fix to every direct child of the hero grid,
   so no future item added here can silently reintroduce this bug. */
.hero .container > * {
  min-width: 0;
}

.hero-stats .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-rose-tint);
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
  margin-top: 0.3rem;
}

/* ==========================================================================
   Cards — Values / Guides / Opportunities
   ========================================================================== */

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.value-card {
  background: var(--color-cream-2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid rgba(33, 31, 43, 0.06);
}

.section-dark .value-card {
  background: var(--color-ink-soft);
  border-color: var(--color-ink-line);
}

.value-card .mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(207, 130, 148, 0.16);
  color: var(--color-rose-deep);
  margin-bottom: var(--space-3);
}

.section-dark .value-card .mark {
  color: var(--color-rose);
}

.value-card .mark svg {
  width: 20px;
  height: 20px;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--color-text-muted-dark);
  font-size: 0.98rem;
}

.section-dark .value-card p {
  color: var(--color-text-muted-light);
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--color-rose) 0%, var(--color-rose-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar .initials {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--color-ink);
  opacity: 0.85;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-top: var(--space-1);
}

.team-card .role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-rose-deep);
}

.section-dark .team-card .role {
  color: var(--color-rose);
}

.team-card .bio {
  font-size: 0.95rem;
  color: var(--color-text-muted-dark);
}

.section-dark .team-card .bio {
  color: var(--color-text-muted-light);
}

/* ==========================================================================
   Content list cards (Guides / Opportunities)
   ========================================================================== */

.list-card {
  background: #ffffff;
  border: 1px solid rgba(33, 31, 43, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.list-card:hover {
  box-shadow: 0 18px 40px -24px rgba(23, 24, 42, 0.35);
  transform: translateY(-3px);
}

.list-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-rose-deep);
  background: rgba(207, 130, 148, 0.14);
  padding: 0.3em 0.8em;
  border-radius: 999px;
}

.list-card h3 {
  font-size: 1.15rem;
}

.list-card .meta {
  font-size: 0.85rem;
  color: var(--color-text-muted-dark);
}

.list-card p.summary {
  color: var(--color-text-muted-dark);
  font-size: 0.95rem;
}

.list-card .list-card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-rose-deep);
  font-size: 0.9rem;
}

.empty-state {
  border: 1px dashed rgba(33, 31, 43, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--color-text-muted-dark);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
  background: var(--color-ink-soft);
  border: 1px solid var(--color-ink-line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.form-row {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (min-width: 640px) {
  .form-row.two-up {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted-light);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--color-ink);
  border: 1px solid var(--color-ink-line);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-rose);
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted-light);
  margin-top: var(--space-2);
}

.form-status {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* Newsletter inline form */
.subscribe-card {
  background: var(--color-ink-soft);
  border: 1px solid var(--color-ink-line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 780px) {
  .subscribe-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: var(--space-5);
  }
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.subscribe-form input[type="email"] {
  flex: 1 1 220px;
  background: var(--color-ink);
  border: 1px solid var(--color-ink-line);
  border-radius: 999px;
  padding: 0.85em 1.3em;
  color: var(--color-text-light);
  font-family: var(--font-body);
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--color-rose);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-ink);
  color: var(--color-text-muted-light);
  border-top: 1px solid var(--color-ink-line);
  padding: var(--space-5) 0 var(--space-3);
}

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

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

.footer-brand .brand {
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--color-text-light);
}

.footer-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.92rem;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s var(--ease);
}

.footer-link-button:hover {
  color: var(--color-text-light);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: var(--space-2);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-ink-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-social a:hover {
  border-color: var(--color-rose);
  color: var(--color-rose);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
}

/* ==========================================================================
   Page header (non-home pages)
   ========================================================================== */

.page-header {
  background: var(--color-ink);
  color: var(--color-text-light);
  padding: var(--space-5) 0 var(--space-4);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  max-width: 20ch;
}

.page-header .lede {
  margin-top: var(--space-2);
  color: var(--color-text-muted-light);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mt-0 { margin-top: 0; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
}

.filter-chip {
  border: 1px solid rgba(33, 31, 43, 0.18);
  background: transparent;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted-dark);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-chip:hover {
  border-color: var(--color-rose);
  color: var(--color-text-dark);
}

.filter-chip.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-text-light);
}

.two-col {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.prose p + p {
  margin-top: 1em;
}

.prose h3 {
  margin-top: var(--space-4);
  margin-bottom: 0.6em;
  font-size: 1.3rem;
}

.quote-block {
  border-left: 3px solid var(--color-rose);
  padding-left: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--color-text-dark);
}

.section-dark .quote-block {
  color: var(--color-text-light);
}

.map-embed {
  position: relative;
}

.cms-note {
  background: rgba(207, 130, 148, 0.08);
  border: 1px dashed var(--color-rose-deep);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 0.88rem;
  color: var(--color-text-muted-dark);
}

.guides-intro {
  background: var(--color-cream-2);
  border-left: 3px solid var(--color-rose);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 1.02rem;
  color: var(--color-text-dark);
}

.guides-intro a {
  color: var(--color-rose-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Launch card — used on Guides & Opportunities to point out to an
   external Google Doc / Sheet, styled as a real feature rather than a
   bare link.
   ========================================================================== */

.launch-section {
  position: relative;
  background: var(--color-ink);
  color: var(--color-text-light);
  overflow: hidden;
}

.launch-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

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

.launch-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(207, 130, 148, 0.16);
  color: var(--color-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.launch-icon svg {
  width: 28px;
  height: 28px;
}

.launch-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: var(--space-2);
}

.launch-card p.lede {
  color: var(--color-text-muted-light);
  font-size: 1.05rem;
  max-width: 46ch;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.launch-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
}

.launch-panel {
  background: var(--color-ink-soft);
  border: 1px solid var(--color-ink-line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.launch-panel h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-rose);
  margin-bottom: var(--space-3);
}

.launch-panel ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.launch-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--color-text-muted-light);
}

.launch-panel li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-rose);
  margin-top: 0.2rem;
}

.launch-path {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-rose);
  color: var(--color-ink);
  padding: 0.8em 1.2em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}