/* ---------- Tokens ---------- */

:root {
  --ink: #0b0b0b;
  --muted-ink: #1e242e;
  --grey-mid: #5a5f68;
  --grey-line: #e6e6e6;
  --paper: #ffffff;

  --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-section: clamp(64px, 9vw, 116px);
  --wrap-max: 1320px;
  --wrap-narrow-max: 920px;
  --wrap-pad: clamp(20px, 4vw, 48px);
  --radius: 3px;
}

:root {
  --accent: #2474AA;
  --accent-ink: #ffffff;
  --accent-soft: #DBEAFD;
  --accent-soft-strong: #cfe4fb;
  /* Six-tone pastel family (SO Capital fundraising palette + conference colors,
     lightened) – spread across cards instead of one wash, as on steward-ownership.com */
  --tint-1: #DBEAFD; /* blue */
  --tint-2: #ECF7F7; /* turquoise, matched to steward-ownership.com's section tint */
  --tint-3: #FDEBC3; /* ochre */
  --tint-4: #E8D6EA; /* violet */
  --tint-5: #FBE1E1; /* blush */
  --tint-6: #DFF3E8; /* mint */
  /* Stage-dot pastels lifted directly from steward-ownership.com's own SVG fills */
  --dot-1: #DEE9FC; /* pale blue */
  --dot-2: #C3E9E9; /* pale mint/teal */
  --dot-3: #FCEFEA; /* pale blush */
  --dot-4: #EEEAFE; /* pale lavender */
  --dot-line-1: #A8C5EE;
  --dot-line-2: #8FCFCE;
  --dot-line-3: #EFC7BA;
  --dot-line-4: #C7BEEE;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--muted-ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); margin: 0; }

a { color: inherit; }

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

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

/* Aligned to .wrap's left edge rather than independently centered,
   so narrower content doesn't drift right of the wider hero/CTA content. */
.wrap--narrow {
  max-width: var(--wrap-narrow-max);
  margin-right: auto;
  margin-left: max(var(--wrap-pad), calc((100% - var(--wrap-max)) / 2 + var(--wrap-pad)));
  padding-left: 0;
  padding-right: var(--wrap-pad);
}

.eyebrow {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin: 0 0 18px;
}

.eyebrow--on-dark { color: color-mix(in srgb, var(--accent) 55%, white 45%); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-line);
}

.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.site-header__logo { height: 32px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a { text-decoration: none; color: var(--muted-ink); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 900; }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper) !important;
  background: var(--ink);
  padding: 0 18px;
  border-radius: 999px;
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.site-nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(56px, 11vw, 128px) clamp(24px, 4vw, 48px);
}

#mission { padding-top: clamp(16px, 2vw, 32px); }

.hero__headline {
  font-weight: 900;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero__logo {
  display: block;
  height: clamp(56px, 9vw, 120px);
  width: auto;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.hero__statement { max-width: 780px; }

.hero__quote {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.pull-quote.hero__quote {
  margin-bottom: 8px;
}

.hero__quote + .section-note {
  margin-top: 0;
  margin-bottom: clamp(28px, 5vw, 40px);
}

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

.hero--compact {
  padding-block: clamp(40px, 7vw, 76px) clamp(12px, 2vw, 20px);
}

.hero__headline--compact {
  font-size: clamp(2rem, 4.2vw, 3rem);
  max-width: 18ch;
}

/* ---------- Page-to-page CTA band ---------- */

.page-cta { border-top: 1px solid var(--grey-line); }

.page-cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cta__inner .section-note {
  max-width: 58ch;
  margin-bottom: 8px;
}

.page-cta__inner .btn { margin-top: 20px; }

.hero__sub {
  margin: 28px 0 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted-ink);
}

.hero__sub a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.hero__sub a:hover { text-decoration-color: currentColor; }

.text-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.text-link:hover { text-decoration-color: currentColor; }

.copy-emphasis {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted-ink);
}

.deal-strip {
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--grey-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.deal-strip__item dt {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 8px;
}

.deal-strip__item dd {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.deal-strip__item dd span {
  display: block;
  font-weight: 400;
  font-size: 0.42em;
  text-transform: none;
  letter-spacing: 0;
  color: #1c5c85;
  margin-top: 4px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-section);
}

.section--tint { background: var(--tint-1); --stage-bg: var(--tint-1); }
.section--turquoise { background: var(--tint-2); --stage-bg: var(--tint-2); }
.section--dark { background: var(--ink); color: rgba(255,255,255,0.82); }
.section--dark h2, .section--dark h3 { color: var(--paper); }

.section h2 {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

#team h2 { max-width: none; }
#responsibilities h2 { max-width: none; white-space: nowrap; }
#opportunity { padding-top: calc(var(--space-section) / 2); }
.page-cta__inner h2 { max-width: none; }

#so-capital-mission p:not(.copy-emphasis) {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted-ink);
  margin-top: 20px;
  max-width: 70ch;
}

.section-note {
  margin-top: 28px;
  color: var(--grey-mid);
  font-size: 0.97rem;
}

.section-note.copy-emphasis {
  color: var(--muted-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* ---------- Principles ---------- */

.principle-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.principle h3 {
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.principle p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}


/* ---------- Inline illustrations ---------- */

.principles-illustration,
.barriers-illustration,
.ecosystem-illustration,
.soaf-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin: clamp(28px, 5vw, 40px) 0;
}

.principles-illustration { max-width: 480px; margin-inline: auto; }
.ecosystem-illustration { max-width: 460px; margin-inline: auto; }
.soaf-illustration { max-width: 480px; margin-inline: auto; }

.section-subhead {
  margin-top: clamp(40px, 6vw, 56px);
  margin-bottom: 4px;
  font-weight: 900;
  font-size: 1.4rem;
}

/* ---------- Ecosystem text + graphic side by side ---------- */

.ecosystem-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.ecosystem-row .section-note {
  margin-top: 0;
  color: var(--muted-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.ecosystem-row .section-note + .section-note {
  margin-top: 16px;
}

.ecosystem-row .ecosystem-illustration {
  margin: 0;
  width: 100%;
  max-width: 660px;
  justify-self: end;
}

@media (max-width: 760px) {
  .ecosystem-row { grid-template-columns: 1fr; }
}

/* ---------- Mood photography ---------- */

.claim-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
}

.claim-row__text { flex: 1 1 auto; }

.claim-row__photo {
  flex: 0 0 176px;
  margin: 0;
}

.claim-row__photo img {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 700px) {
  .claim-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .claim-row__photo { flex: none; }
}

/* ---------- Collapsible bio detail ---------- */

.bio-more { margin-top: 12px; }

.bio-more p { margin-top: 12px; }

.bio-more summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

.bio-more summary::-webkit-details-marker { display: none; }

.bio-more summary::before {
  content: "+";
  font-weight: 900;
}

.bio-more[open] summary::before { content: "\2013"; }

.bio-more__label-less { display: none; }
.bio-more[open] .bio-more__label-more { display: none; }
.bio-more[open] .bio-more__label-less { display: inline; }

/* ---------- Pull quote ---------- */

.pull-quote {
  position: relative;
  margin: clamp(44px, 7vw, 72px) 0;
  padding-left: clamp(8px, 3vw, 28px);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
}

/* ---------- Check lists ---------- */

.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 3px;
  background: var(--accent);
}


.about-you__title {
  margin-top: clamp(48px, 7vw, 72px);
  font-weight: 900;
  font-size: 1.4rem;
}

.responsibility-group__title {
  margin-top: clamp(36px, 5vw, 48px);
  font-weight: 900;
  font-size: 1.05rem;
}

/* ---------- Stage line ---------- */

.stage-line {
  list-style: none;
  margin: 40px 0 32px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.stage-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
  background: var(--grey-line);
}

.stage-line li {
  position: relative;
  background: var(--stage-bg, var(--paper));
  padding-right: 18px;
}

.stage-line li:last-child { padding-right: 0; }

.stage-line li::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 14px;
}

.stage-line li::before { border: 1.5px solid transparent; }
.stage-line li:nth-child(1)::before { background: #5B92D6; border-color: var(--dot-line-1); }
.stage-line li:nth-child(2)::before { background: var(--dot-2); border-color: var(--dot-line-2); }
.stage-line li:nth-child(3)::before { background: var(--dot-3); border-color: var(--dot-line-3); }
.stage-line li:nth-child(4)::before { background: var(--dot-4); border-color: var(--dot-line-4); }

.stage-line__label {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* ---------- Team ---------- */

.team-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.team-member {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.team-member__photo {
  display: block;
  width: 176px;
  height: 176px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.team-member h3 {
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.team-member h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-line);
}

.team-member h3 a:hover { border-bottom-color: currentColor; }


.team-member__role {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--grey-mid);
  margin: 0 0 14px;
  min-height: calc(3 * 0.85rem * 1.35);
}

.team-member p:not(.team-member__role) { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* ---------- Further reading & listening ---------- */

.quote-card {
  display: block;
  margin-inline: auto;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

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

.resource-tile-grid {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.resource-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.resource-tile:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.resource-tile__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--tint-1);
}

.resource-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource-tile__media .reading-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.resource-tile__label {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.resource-tile__title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

.reading-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}

.reading-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.portfolio-columns {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
}

.portfolio-column__logo {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 24px;
}

.portfolio-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portfolio-logo-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--paper);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-logo-grid a:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.portfolio-logo-grid img { display: block; width: 100%; height: auto; max-height: 44px; object-fit: contain; }

.portfolio-logo-grid--scale-up img { max-height: 62px; }

.portfolio-logo--dark { background: var(--ink); padding: 6px; border-radius: 2px; }

.resources-cta-text {
  margin-top: clamp(40px, 6vw, 56px);
  font-weight: 700;
  font-size: 1.1rem;
}

.resources-cta-text + .btn { margin-top: 16px; }

@media (max-width: 760px) {
  .resource-tile-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-columns { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .resource-tile-grid { grid-template-columns: 1fr; }
  .portfolio-logo-grid { grid-template-columns: 1fr; }
}

/* ---------- Inline mission pointer ---------- */

.more-about-us {
  margin-top: clamp(40px, 6vw, 56px);
  font-weight: 700;
  font-size: 1.05rem;
}

.more-about-us__arrow {
  display: inline-block;
  margin-right: 6px;
  color: var(--accent);
}

.more-about-us + .btn { margin-top: 16px; }

/* ---------- CTA / contact ---------- */

.cta-headline {
  max-width: 24ch;
}

.cta-sub {
  margin: 20px 0 32px;
  max-width: 58ch;
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
}

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

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--grey-line);
  padding-block: 24px;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--grey-mid);
}

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--grey-mid);
  text-decoration: none;
}

.site-footer__legal a:hover { color: var(--ink); }

/* ---------- Legal pages (Impressum) ---------- */

.legal-header {
  padding-block: clamp(48px, 8vw, 84px) 0;
}

.legal-header h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
}

.legal-block {
  margin-top: clamp(32px, 5vw, 48px);
}

.legal-block h2 {
  font-weight: 900;
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.legal-block p, .legal-block address {
  font-style: normal;
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.legal-placeholder {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 8px;
  border: 1px dashed #c33;
  border-radius: 4px;
  color: #a02020;
  background: #fff4f4;
  font-size: 0.92rem;
}

.legal-back {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--grey-mid);
  text-decoration: none;
}

.legal-back:hover { color: var(--ink); }

/* ---------- Reveal-on-scroll ---------- */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.site-nav__cta) { display: none; }
  .site-nav__toggle { display: flex; }

  .site-nav.is-open {
    flex-basis: 100%;
    order: 10;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--grey-line);
  }

  .site-nav.is-open a:not(.site-nav__cta) {
    display: block;
    width: 100%;
    padding: 12px 2px;
  }

  .site-nav.is-open .site-nav__cta { margin-top: 10px; }

  .deal-strip { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stage-line { flex-direction: column; gap: 20px; }
  .stage-line::before { display: none; }
  .stage-line li { padding-right: 0; padding-left: 18px; border-left: 1px solid var(--grey-line); }
  .stage-line li::before { position: absolute; left: -7px; top: 0; margin: 0; }
  #responsibilities h2 { white-space: normal; }
}
