/* ==========================================================================
   Frontier Objectives — site styles
   ==========================================================================
   Organized by section:
     1. Design tokens (colors)
     2. Base elements
     3. Buttons
     4. Header / navigation
     5. Hero
     6. Services
     7. Approach
     8. Apply / inquire
     9. Footer
    10. Insights page
    11. Engagement page
    12. Principles
    13. Essay pages
    14. Mobile / responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --cream:          #fff1e5;  /* page background, text on dark */
  --ink:            #0d0d0d;  /* primary text, dark sections   */
  --ink-soft:       #26211c;  /* body copy                     */
  --cognac:         #7b3520;  /* eyebrows          */
  --coral:          #ff9a7a;  /* accents on dark sections      */
  --teal:           #3f8a85;  /* logo mark, link hover         */
  --crimson:        #a81043;  /* footer column headings        */
  --highlight:      #ffd9a0;  /* text selection                */
  --panel-dark:     #181818;  /* narrative cards, apply card, structures */
  --panel-hover:    #1c1c1c;  /* hover state on dark cards     */
}

/* 2. Base elements ------------------------------------------------------- */
body { margin: 0; background: var(--cream); }
a { color: var(--ink); }
a:hover { color: var(--teal); }
::selection { background: var(--highlight); }

.page {
  color: var(--ink);
  min-height: 100vh;
  font-family: 'Source Serif 4', Georgia, serif;
}


/* Solid dark call-to-action button */
.btn {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  text-decoration: none;
  background: var(--ink);
  color: var(--coral);
}

.btn--apply {
  font-weight: 400;
  padding: 13px 24px;
}

/* 4. Header / navigation ------------------------------------------------- */
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 32px 0px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 3px double var(--ink);
}

.nav__logo {
  justify-self: center;
  display: flex;
  align-items: center;
}

.nav__logo svg {
  display: block;
  width: 100px;
  height: 100px;
}

.nav__brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  justify-self: start;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.nav__links {
  justify-self: end;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav__link {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav__link:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav__link--cta {
  font-weight: 600;
  text-decoration-line: underline;
  text-underline-offset: 3px;
}

/* 5. Hero ---------------------------------------------------------------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cognac);
  white-space: nowrap;
}
.hero__title {
  font-family: 'Fraunces', serif;    
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 18px 0 60px;
  max-width: 15ch;
}
.hero__lead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 30px;
  color: var(--ink-soft);
}
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  height: 435px;
  padding-top: 20px;
  gap: 24px;
}


/* 6. Services ------------------------------------------------------------ */
.services { background: var(--cream); }
.services__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 0px;
}
.services__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.services__heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cognac);
}


.service {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.18);
}
.service__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  font-size: 20px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.service__title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--teal);
}
.service__body {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  color: var(--ink-soft);
}

/* 7. Approach ------------------------------------------------------------ */
.approach {
  background: var(--ink);
  color: var(--teal);
  padding: 64px 0;
}
.approach__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.approach__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
}

.values {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.value {
  flex: 1;
  min-width: 140px;
  border-top: 1px solid rgba(255, 241, 229, 0.3);
  padding-top: 16px;
}
.value__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
}
.value__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 32px);
  line-height: 1.2;
  margin: 8px 8px 16px;
  color: var(--teal); 
}

.narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 26px;
}
.narrative__card {
  background: var(--panel-dark);
  padding: 26px;
}
.narrative__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}
.narrative__body {
  font-family: 'Fraunces', serif;
  font-weight: 100;
  font-size: 18px;
  line-height: 1.7;
  margin: 12px 0 0;
  color: var(--cream);
}

/* 8. Apply / inquire ----------------------------------------------------- */
.apply {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0;
}
.apply__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.apply__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
}
.apply__heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  margin: 16px 0 24px;
  max-width: 40ch;
  color: var(--teal);
  text-align: left;
}
.apply__card {
  background: var(--panel-dark);
  padding: 32px;
  max-width: none;
}
.apply__lead {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 24px;
  color: var(--cream);
  text-align: left;
}
.apply__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}


/* 9. Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--cream);
  color: var(--ink);
  padding: 24px 32px 32px;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
  padding-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 13, 13, 0.14);
  border-bottom: 1px solid rgba(13, 13, 13, 0.14);
}

.site-footer__tag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  max-width: 30ch;
  margin-top: 4px;
}

.site-footer__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer__col a {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

.site-footer__col a:hover {
  opacity: 1;
  color: var(--teal);
}

.site-footer__copy {
  max-width: 1180px;
  margin: 18px auto 0;
  font-family: 'Fraunces', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

@media (max-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Insights page ── */

    /* ── Article list ── */

    .insights-list {
      max-width: 100%;
      background: var(--ink);
      padding: 0;
    }

    .insights-list__inner {
      max-width: 1180px;
      margin: 0 auto;
      padding: 18px 32px 48px;
    }


    .insights-list__count {
      font-family: 'Montserrat', sans-serif;
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--cream);
      opacity: 0.6;
      margin-bottom: 24px;
    }

    .article-item {
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      color: var(--cream);
      padding: 20px 0;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      gap: 32px;
      transition: opacity 0.2s;
    }

    .article-item:last-child {
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .article-item:hover .article-item__title {
      color: var(--teal);
    }

    .article-item:hover .article-item__arrow {
      transform: translateX(4px);
      color: var(--teal);
    }

    .article-item__meta {
      font-family: 'Montserrat', sans-serif;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--coral);
      margin-bottom: 12px;
    }

    .article-item__title {
      font-family: 'Fraunces', serif;
      font-weight: 400;
      font-size: clamp(20px, 2.2vw, 26px);
      line-height: 1.2;
      color: var(--cream);
      transition: color 0.2s;
      max-width: 52ch;
    }

    .article-item__excerpt {
      font-family: 'Fraunces', serif;
      font-weight: 300;
      font-size: 15px;
      line-height: 1.7;
      color: var(--cream);
      opacity: 0.6;
      margin-top: 12px;
      max-width: 60ch;
    }

    .article-item__arrow {
      font-size: 22px;
      color: var(--cream);
      opacity: 0.3;
      transition: transform 0.2s, color 0.2s;
      padding-top: 4px;
      flex-shrink: 0;
    }


/* ========================================================================
   ENGAGEMENT PAGE
   ======================================================================== */

.structures {
  background: var(--ink);
  color: var(--cream);
}

.structures__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 72px;
}

/* this section reuses .hero__eyebrow, which is cognac for the cream
   pages — override it here so it reads on black */
.structures .hero__eyebrow {
  color: var(--cream);
}

.structures__heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--teal);
  margin-bottom: 18px;
  max-width: none;
}

.structures__lead {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.75;
  max-width: none;
  margin-bottom: 24px;
}

/* --- Track (Founders / Investors) --- */

.track {
  margin-bottom: 56px;
}

.track:last-of-type {
  margin-bottom: 40px;
}

.track__header {
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
}

.track__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}

.track__intro {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.6;
  max-width: none;
}

/* --- Individual structure --- */

.struct {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  background: var(--panel-dark);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px 36px;
  margin-top: 12px;
}

.struct__marker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.struct__shape {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--cream);
  opacity: 0.8;
  line-height: 1.3;
}

.struct__terms {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
}

.struct__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 10px;
  line-height: 1.2;
}

.struct__desc {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.85;
  max-width: none;
  margin-bottom: 20px;
}

/* --- Stage sequence inside each structure --- */

.stages {
  list-style: none;
  counter-reset: stage;
  padding: 0;
  margin: 0 0 18px 0;
  border-left: 2px solid rgba(63, 138, 133, 0.6);
}

.stage {
  counter-increment: stage;
  position: relative;
  padding: 0 0 12px 46px;
  max-width: 64ch;
}

.stage:last-child {
  padding-bottom: 0;
}

.stage::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 1px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.stage__name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 2px;
}

.stage__note {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cream);
  opacity: 0.55;
}

/* --- Fit line --- */

.struct__fit {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
  color: var(--coral);
  opacity: 0.7;
  max-width: 60ch;
}

/* --- Closing note --- */

.structures__note {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.55;
  max-width: 64ch;
  padding-top: 8px;
}

/* --- Responsive --- */

@media (max-width: 860px) {
  .struct {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .struct__marker {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }
}


/* --- CTA --- */
.eng-cta {
  background: var(--ink);
  color: var(--cream);
}

.eng-cta__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 36px 36px;
}

.eng-cta__heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--coral);
  margin-bottom: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: none;
}


.eng-cta__btn {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.eng-cta__btn:hover {
  background: var(--teal);
  color: var(--cream);
}


/* ========================================================================
   PRINCIPLES  —  cream background, sits below the dark .structures section
   ======================================================================== */

.principles__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 56px;
}

.principles__eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cognac);
  margin-bottom: 24px;
  white-space: nowrap;
}


.principles__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 48px;
}

.principle {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.principle__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--teal);
  margin: 0 0 14px;
}


.principle__desc {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
}

/* --- Responsive --- */

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

/* ========================================================================
   ESSAY PAGES  —  standalone article pages, and the insights list as links
   ======================================================================== */

/* --- Hero images: one rule replaces the inline styles on all pages ------ */
.hero__visual img {
  display: block;
  width: 100%;
  max-width: 400px;
  max-height: 435px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* --- The insights list items are now <a> elements ---------------------- */
.article-item {
  text-decoration: none;
}

/* --- Essay page --------------------------------------------------------- */
.essay {
  display: block;
  background: var(--cream);
}

.essay__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 72px;
}

.essay__back {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.68;
  text-decoration: none;
  margin-bottom: 40px;
  transition: opacity 0.2s, color 0.2s;
}

.essay__back:hover {
  opacity: 1;
  color: var(--teal);
}

.essay__meta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cognac);
  margin: 0 0 18px;
}

.essay__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.14);
}

/* --- Essay body typography --------------------------------------------- */
.essay__body p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.essay__body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 23px;
  line-height: 1.3;
  color: var(--cognac);
  margin: 44px 0 16px;
}

.essay__body ul,
.essay__body ol {
  margin: 0 0 24px;
  padding-left: 26px;
}

.essay__body ol {
  list-style: decimal;
}

.essay__body li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.essay__body li::marker {
  color: var(--teal);
}

.essay__body li strong,
.essay__body p strong {
  font-weight: 600;
  color: var(--ink);
}

.essay__body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.essay__body a:hover {
  color: var(--teal);
}

/* --- Continue reading (dark band under each essay) --------------------- */
.essay-more {
  background: var(--ink);
  color: var(--cream);
}

.essay-more__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 64px;
}

.essay-more__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 28px;
}

.essay-more__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.essay-more__item {
  display: block;
  background: var(--panel-dark);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 26px 28px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.essay-more__item:hover {
  border-color: var(--teal);
  background: var(--panel-hover);
}

.essay-more__meta {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}

.essay-more__title {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
  color: var(--cream);
  transition: color 0.2s;
}

.essay-more__item:hover .essay-more__title {
  color: var(--teal);
}

.essay-more__cta {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.75;
  margin: 32px 0 0;
}

.essay-more__cta a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 760px) {
  .essay__inner {
    padding: 32px 20px 56px;
  }
  .essay-more__list {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   MOBILE / RESPONSIVE  —  must stay last in the file
   ------------------------------------------------------------------------
   900px and below — layout collapses to one column
   560px and below — type and spacing tighten further
   ======================================================================== */

/* --- Global safety ----------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;   /* stop iOS inflating text on rotate */
}

img,
svg {
  max-width: 100%;                  /* nothing can push the page wider */
}


/* ========================================================================
   900px and below — tablets and phones
   ======================================================================== */
@media (max-width: 900px) {

  /* --- Navigation: brand left, logo right, links wrapped underneath --- */
  .nav {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    padding: 12px 20px 0;
  }

  .nav__brand {
    font-size: 22px;
    justify-self: start;
  }

  .nav__logo {
    justify-self: end;
  }

  .nav__logo svg {
    width: 56px;
    height: 56px;
  }

  .nav__links {
    grid-column: 1 / -1;        /* full width, on its own row */
    justify-self: start;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-bottom: 10px;
  }

  .nav__link {
    font-size: 15px;
    padding: 4px 0;             /* a bigger tap target */
  }

  /* --- Hero: single column, visual below the text --- */
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 36px;
  }

  .hero__eyebrow {
    white-space: normal;        /* was nowrap — overflowed on phones */
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .hero__title {
    font-size: clamp(30px, 7.5vw, 42px);
    margin: 14px 0 22px;
    max-width: 100%;
  }

  .hero__lead {
    font-size: 16px;
    max-width: 100%;
    margin-bottom: 0;
  }

  .hero__visual {
    width: 100%;                /* was a fixed 400px */
    height: auto;
    padding-top: 0;
  }

  .hero__visual img {
    max-width: 340px;
  }

  /* --- Shared section padding --- */
  .approach__inner,
  .services__inner,
  .structures__inner,
  .principles__inner,
  .apply__inner,
  .eng-cta__inner,
  .insights-list__inner,
  .essay-more__inner,
  .site-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- Approach: founders / investors cards stack --- */
  .narrative {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 0 20px;
  }

  .narrative__card {
    padding: 22px 20px;
  }

  .narrative__body {
    font-size: 16px;
  }

  .value__title {
    margin-left: 0;
    margin-right: 0;
  }

  /* --- Services: number beside the title, body indented beneath --- */
  .service {
    grid-template-columns: 42px 1fr;
    gap: 6px 14px;
    padding: 22px 0;
  }

  .service__num {
    grid-row: 1;
    grid-column: 1;
    font-size: 15px;
  }

  .service__title {
    grid-row: 1;
    grid-column: 2;
    font-size: 19px;
  }

  .service__body {
    grid-row: 2;
    grid-column: 2;
    font-size: 16px;
  }

  /* --- Engagement structures --- */
  .struct {
    padding: 24px 20px;
  }

  .structures__lead br {
    display: none;              /* forced breaks make ragged short lines */
  }

  .stage {
    padding-left: 34px;
  }

  .stage::before {
    left: 10px;
  }

  /* --- Apply / CTA cards --- */
  .apply {
    padding: 44px 0;
  }

  .apply__card {
    padding: 24px 20px;
  }

  .approach {
    padding: 44px 0;
  }

  /* --- Essay pages --- */
  .essay__title {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .essay__body p,
  .essay__body li {
    font-size: 17px;
  }

  .essay__body h2 {
    font-size: 21px;
    margin-top: 34px;
  }

  /* --- Insights article list --- */
  .article-item {
    gap: 16px;
  }

  .article-item__excerpt {
    font-size: 14px;
  }
}


/* ========================================================================
   560px and below — phones
   ======================================================================== */
@media (max-width: 560px) {

  .nav__brand {
    font-size: 19px;
  }

  .nav__logo svg {
    width: 46px;
    height: 46px;
  }

  .nav__links {
    gap: 8px 16px;
  }

  .nav__link {
    font-size: 14px;
  }

  .hero {
    padding: 24px 18px 28px;
  }

  .hero__eyebrow {
    font-size: 13px;
  }

  .hero__title {
    font-size: clamp(26px, 8.5vw, 34px);
  }

  .hero__lead {
    font-size: 15px;
  }

  .approach__inner,
  .services__inner,
  .structures__inner,
  .principles__inner,
  .apply__inner,
  .eng-cta__inner,
  .insights-list__inner,
  .essay-more__inner,
  .site-footer__inner,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Services: number above the title, everything full width */
  .service {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service__num,
  .service__title,
  .service__body {
    grid-column: 1;
    grid-row: auto;
  }

  .service__title {
    font-size: 18px;
  }

  .approach__eyebrow,
  .apply__eyebrow,
  .services__heading,
  .principles__eyebrow {
    font-size: 15px;
    white-space: normal;
  }

  .apply__heading,
  .structures__heading {
    font-size: 24px;
  }

  .narrative__body,
  .struct__desc {
    font-size: 15px;
  }

  .essay__inner {
    padding: 28px 18px 48px;
  }

  .essay__body p,
  .essay__body li {
    font-size: 16px;
  }

  .essay__body ul,
  .essay__body ol {
    padding-left: 20px;
  }

  .struct {
    padding: 20px 16px;
  }

  .essay-more__item {
    padding: 20px 18px;
  }

  .site-footer__copy {
    font-size: 11px;
  }
}