/* ═══════════════════════════════════════════════════════════════
   THE BIO PANEL — Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivory-50:  #FDFBF3;
  --ivory-100: #FAF6EB;
  --ivory-200: #F2EAD6;
  --ivory-300: #E6DBC0;

  --forest-900: #0F2A1F;
  --forest-800: #1A3D2E;
  --forest-700: #245040;
  --forest-600: #2F6552;

  --gold-700: #8A6525;
  --gold-600: #A67B35;
  --gold-500: #B8893D;
  --gold-400: #C9A05C;
  --gold-300: #DFC28E;

  --ink: #141815;
  --stone: #6B6A62;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 1px 2px rgba(20,53,42,0.04), 0 8px 24px -12px rgba(20,53,42,0.08);
  --shadow-hover: 0 2px 4px rgba(20,53,42,0.05), 0 16px 40px -16px rgba(20,53,42,0.14);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ivory-100);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--forest-800); color: var(--ivory-100); }
*:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 3px; }

/* ─── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) { .container { padding-inline: 32px; } }

.section { padding-block: 80px; }
@media (min-width: 640px) { .section { padding-block: 112px; } }
.section--cream { background: var(--ivory-50); }
.section--forest { background: var(--forest-800); color: var(--ivory-100); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--forest-800); color: var(--ivory-100);
  padding: 12px 20px; border-radius: var(--radius);
}
.skip:focus { left: 16px; top: 16px; }

/* ─── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-600);
  margin-bottom: 24px;
}
.eyebrow--gold { color: var(--gold-400); }

.h2 { font-size: 36px; color: var(--forest-900); max-width: 780px; }
@media (min-width: 640px) { .h2 { font-size: 52px; } }
.h2--light { color: var(--ivory-100); }

.lede { margin-top: 24px; max-width: 620px; font-size: 16px; line-height: 1.7; color: var(--stone); }
.lede--light { color: rgba(250, 246, 235, 0.72); }
.lede.center { margin-inline: auto; text-align: center; }

.muted { font-size: 13px; color: var(--stone); }
.text-forest { color: var(--forest-800); }

.center-narrow { max-width: 720px; margin-inline: auto; text-align: center; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 40px; padding-inline: 16px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--lg { height: 48px; padding-inline: 24px; font-size: 15px; }
.btn--full { width: 100%; }

.btn--primary { background: var(--forest-800); color: var(--ivory-100); }
.btn--primary:hover { background: var(--forest-700); }

.btn--secondary { border: 1px solid rgba(26,61,46,0.15); color: var(--forest-800); }
.btn--secondary:hover { border-color: rgba(26,61,46,0.4); background: rgba(26,61,46,0.03); }

.btn--light { background: var(--ivory-100); color: var(--forest-900); }
.btn--light:hover { background: #fff; }

.btn--ghost-light { border: 1px solid rgba(250,246,235,0.25); color: var(--ivory-100); }
.btn--ghost-light:hover { border-color: rgba(250,246,235,0.6); }

/* ─── Link underline ─────────────────────────────────────────── */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
}
.link-underline:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250,246,235,0.85);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: rgba(26,61,46,0.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest-800); }
.brand__mark { color: var(--gold-500); width: 24px; height: 24px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-family: 'Fraunces', serif; font-size: 19px; letter-spacing: -0.025em; }

.nav { display: none; gap: 28px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav__link { font-size: 14px; color: rgba(26,61,46,0.8); }
.nav__link:hover { color: var(--forest-800); }

.header__actions { display: none; align-items: center; gap: 20px; }
@media (min-width: 1024px) { .header__actions { display: flex; } }
.header__login { font-size: 14px; color: rgba(26,61,46,0.8); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--forest-800); border-radius: var(--radius);
}
.menu-toggle:hover { background: rgba(26,61,46,0.05); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 50; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(15,42,31,0.5); }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 86%; max-width: 380px;
  background: var(--ivory-100); padding: 24px;
  display: flex; flex-direction: column; gap: 32px;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }
.menu-close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.menu-close:hover { background: rgba(26,61,46,0.05); }

.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a {
  padding-block: 16px;
  border-bottom: 1px solid rgba(26,61,46,0.08);
  font-family: 'Fraunces', serif;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--forest-800);
}
.mobile-nav__actions { display: flex; flex-direction: column; gap: 12px; }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(184,137,61,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(26,61,46,0.06), transparent 60%);
}
 .hero__mark {
  position: absolute;
  top: 60px;
  right: -80px;
  width: 700px;
  height: 700px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}
.hero__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 1023px) {
  .hero__mark {
    width: 400px;
    height: 400px;
    right: -100px;
    top: 40px;
    opacity: 0.04;
  }
}

.hero__inner {
  position: relative;
  padding-block: 80px 96px;
  text-align: center;
}
.hero__inner .hero__sub,
.hero__inner .lede { margin-left: auto; margin-right: auto; }
.hero__inner .hero__cta { justify-content: center; }
.hero__title {
  max-width: 900px;
  font-size: 44px; line-height: 1.05;
  color: var(--forest-900);
}
@media (min-width: 640px) { .hero__title { font-size: 64px; } }
@media (min-width: 768px) { .hero__title { font-size: 76px; } }

.hero__sub { margin-top: 32px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--stone); }

.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__tagline {
  margin-top: 64px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(26,61,46,0.5);
}

/* ─── Section head ────────────────────────────────────────────── */
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px;
}

/* ─── Pillars ─────────────────────────────────────────────────── */
.pillars {
  margin-top: 64px;
  display: grid; gap: 40px 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar { border-top: 1px solid rgba(26,61,46,0.10); padding-top: 24px; }
.pillar__num { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11px; color: var(--gold-600); }
.pillar__title { margin-top: 12px; font-size: 24px; color: var(--forest-900); }
.pillar__desc { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--stone); }

/* ─── Grids ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.mt-64 { margin-top: 64px; }

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(26,61,46,0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card--link { cursor: pointer; }
.card--link:hover { transform: translateY(-2px); }

.card__title {
  margin-top: 20px;
  font-size: 22px; line-height: 1.25;
  color: var(--forest-900);
  letter-spacing: -0.025em;
}
.card__meta { margin-top: 8px; font-size: 13px; color: var(--stone); }
.card__desc { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--stone); }
.card__arrow { margin-top: 24px; display: inline-block; font-size: 13px; color: var(--gold-600); transition: transform .3s ease; }
.card--link:hover .card__arrow { transform: translateX(4px); }

.card__footer {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(26,61,46,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--stone);
}
.card__cta { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--gold-600); display: inline-block; }
.card > .btn { margin-top: 24px; }

/* ─── Badges / chips ─────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--ivory-200); color: var(--forest-800);
  list-style: none;
}
.badge--gold { background: rgba(223,194,142,0.5); color: var(--gold-700); }
.badge--outline { background: transparent; border: 1px solid rgba(26,61,46,0.15); color: rgba(26,61,46,0.8); }

.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }

.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26,61,46,0.12);
  font-size: 13px;
  color: var(--forest-800);
}
.region-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Key/value list ─────────────────────────────────────────── */
.kv {
  margin-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
}
.kv dt { color: var(--stone); }
.kv dd { text-align: right; color: var(--forest-800); margin: 0; }

/* ─── Notice ─────────────────────────────────────────────────── */
.notice {
  margin-top: 32px;
  max-width: 780px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(26,61,46,0.10);
  background: var(--ivory-50);
  font-size: 13.5px; line-height: 1.65; color: var(--stone);
}
.notice strong { color: var(--forest-800); }

/* ─── Opportunities ──────────────────────────────────────────── */
.opp {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(250,246,235,0.12);
  background: rgba(36,80,64,0.4);
  transition: background-color .3s ease, border-color .3s ease;
}
.opp:hover { border-color: rgba(201,160,92,0.4); background: rgba(36,80,64,0.7); }
.opp__kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold-400); }
.opp__title { margin-top: 12px; font-size: 22px; color: var(--ivory-100); }
.opp__meta { margin-top: 32px; font-size: 13px; color: rgba(250,246,235,0.7); }
.opp__meta p + p { margin-top: 4px; }

/* ─── Two column ─────────────────────────────────────────────── */
.two-col { display: grid; gap: 56px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ─── Checklist ──────────────────────────────────────────────── */
.checklist {
  margin-top: 32px;
  list-style: none; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.checklist li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--forest-800);
}
.checklist .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); flex-shrink: 0; }

/* ─── Network field ──────────────────────────────────────────── */
.network {
  margin-top: 80px;
  height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26,61,46,0.08);
  background: var(--ivory-50);
  overflow: hidden;
}
.network svg { width: 100%; height: 100%; display: block; }

/* ─── Final CTA ──────────────────────────────────────────────── */
.final-cta {
  position: relative; overflow: hidden;
  background: var(--forest-800); color: var(--ivory-100);
}
.final-cta__mark {
  position: absolute;
  bottom: -96px; right: -64px;
  width: 520px; height: 520px;
  color: rgba(184,137,61,0.12);
  pointer-events: none;
}
.final-cta__mark svg { width: 100%; height: 100%; }
.final-cta__inner { position: relative; padding-block: 112px; max-width: 780px; }
@media (min-width: 640px) { .final-cta__inner { padding-block: 144px; } }

.final-cta__title { font-size: 40px; line-height: 1.05; color: var(--ivory-100); }
@media (min-width: 640px) { .final-cta__title { font-size: 64px; } }

.final-cta__sub {
  margin-top: 24px;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--gold-400);
}
@media (min-width: 640px) { .final-cta__sub { font-size: 28px; } }

.final-cta__buttons { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ivory-50);
  border-top: 1px solid rgba(26,61,46,0.10);
  padding-block: 64px 32px;
}
.footer__grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer__brand .brand { margin-bottom: 20px; }
.footer__blurb { max-width: 320px; font-size: 14px; line-height: 1.65; color: var(--stone); }
.footer__contact { margin-top: 20px; font-size: 13px; line-height: 1.9; }
.footer__contact a { color: var(--forest-800); }

.footer__col h4 {
  font-family: 'Inter', sans-serif; font-weight: 500;
  margin-bottom: 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(26,61,46,0.6);
}
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: rgba(26,61,46,0.8); }

.footer__bottom {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid rgba(26,61,46,0.08);
  display: flex; flex-direction: column; gap: 16px;
  font-size: 13px; color: var(--stone);
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

.footer__disclaimer { max-width: 640px; line-height: 1.6; }

/* ─── Forms ──────────────────────────────────────────────────── */
.form { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: block; }
.field__label {
  display: block; margin-bottom: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(26,61,46,0.6);
}
.field__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(26,61,46,0.15);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.field__input:focus { border-color: rgba(26,61,46,0.5); }

.fieldset { border: none; padding: 0; margin: 0; }
.fieldset legend { padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26,61,46,0.15);
  font-size: 13px;
  color: var(--forest-800);
  transition: all .2s ease;
}
.chip-check input:checked + span {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--ivory-100);
}

.form__notice {
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ivory-50);
  border: 1px solid rgba(26,61,46,0.08);
}

.form-errors {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(180,60,60,0.25);
  background: rgba(220,80,80,0.06);
  color: #8a2020;
  font-size: 14px;
}
.form-errors p + p { margin-top: 6px; }

/* ─── Success card ───────────────────────────────────────────── */
.success-card {
  text-align: center;
  padding: 48px 24px;
}
.success-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(184,137,61,0.12);
  color: var(--gold-600);
}
.success-card .h2 { margin-inline: auto; }

/* ─── Contact block ──────────────────────────────────────────── */
.contact-block {
  margin-top: 40px;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .contact-block { grid-template-columns: 1fr 1fr; } }

.contact-block__label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold-600);
  margin-bottom: 8px;
}
.contact-block__value {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--forest-900);
}

/* ─── Letter (about page) ────────────────────────────────────── */
.letter { font-size: 16px; line-height: 1.75; color: var(--forest-800); }
.letter p + p { margin-top: 20px; }
.letter__sign {
  margin-top: 32px !important;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--gold-600);
}

/* ─── Resource grid (resources page) ─────────────────────────── */
.resource-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .resource-grid { grid-template-columns: repeat(3, 1fr); } }

.resource-card {
  display: flex; flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(26,61,46,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s ease, transform .3s ease;
}
.resource-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.resource-card__num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--gold-600);
}
.resource-card__title { margin-top: 16px; font-size: 24px; color: var(--forest-900); }
.resource-card__desc { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--stone); }
.resource-card__cta { margin-top: 24px; font-size: 13px; color: var(--gold-600); }

/* ─── Reveal ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
/* ─── Hero logo refinement ─────────────────────────────────────── */
.hero__logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 0 auto 48px auto;
}
@media (min-width: 640px) {
  .hero__logo { max-width: 480px; margin: 0 auto 58px auto; }
}
@media (min-width: 1024px) {
  .hero__logo { max-width: 560px; }
}
.hero__inner { text-align: center !important; }

.hero__title {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ═══════════════════════════════════════════════════════════════
   CROSS-BROWSER COMPATIBILITY
   Targets: iOS Safari, iPadOS, macOS Safari, Chrome (desktop+Android),
   Firefox, Edge, Samsung Internet
   ═══════════════════════════════════════════════════════════════ */

/* ─── iOS Safari: prevent text zoom on rotate ─────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ─── iOS Safari: fix 100vh issue (address bar) ───────────────── */
body {
  min-height: 100vh;
  min-height: 100dvh; /* modern browsers — falls back to vh */
  -webkit-tap-highlight-color: transparent;
}

/* ─── iOS Safari: prevent overscroll bounce on the body ───────── */
body {
  overscroll-behavior-y: none;
}

/* ─── Safari: backdrop-filter prefix for the header blur ─────── */
.site-header.is-scrolled {
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}

/* ─── Safari: -webkit- prefixes for input appearance ─────────── */
input,
select,
textarea,
button {
  -webkit-appearance: none;
  appearance: none;
  border-radius: inherit;
  font-family: inherit;
}

/* ─── iOS Safari: stop input text from being tiny ─────────────── */
input,
select,
textarea {
  font-size: 16px; /* anything below 16px causes iOS to auto-zoom */
}

/* ─── Safe area for iPhone notch / home indicator ─────────────── */
.site-footer {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

/* ─── Mobile: 44×44 minimum tap target (Apple HIG) ────────────── */
@media (max-width: 1023px) {
  .btn {
    min-height: 44px;
    padding-inline: 20px;
  }
  .nav__link,
  .header__login,
  .footer__col a,
  .share-btn,
  .tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ─── Smooth sticky header on iOS ─────────────────────────────── */
@supports (-webkit-touch-callout: none) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* ─── Firefox: consistent selection color ─────────────────────── */
::-moz-selection {
  background: var(--forest-800);
  color: var(--ivory-100);
}

/* ─── Reduce motion for accessibility (already there, reinforcing) ─ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Old Safari (< 15.4): object-fit fallback for logo images ── */
.hero__mark img,
.featured-post__visual {
  object-fit: contain;
  /* Fallback: if object-fit unsupported, center the image */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ─── Chrome/Safari: disable gray tap flash on mobile ─────────── */
a,
button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ─── iPad: prevent accidental zoom on double-tap of buttons ──── */
button,
.btn,
a.btn {
  touch-action: manipulation;
}

/* ─── Ensure horizontal scroll never appears on mobile ────────── */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ─── Windows high-contrast / forced colors support ──────────── */
@media (forced-colors: active) {
  .btn {
    border: 1px solid currentColor;
  }
}
/* ─── Founder photo — Instagram-style circle ──────────────────── */
.founder-photo {
  display: block;
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50% !important;
  border: 3px solid var(--ivory-100);
  box-shadow:
    0 0 0 1px rgba(26, 61, 46, 0.10),
    0 12px 32px -12px rgba(26, 61, 46, 0.20);
  margin: 0 auto 24px;
}
@media (min-width: 900px) {
  .founder-photo { margin: 0 0 24px; }
}
/* ─── Header brand mark — circular badge ──────────────────────── */
.brand__mark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--forest-800);
  color: var(--gold-400);
  padding: 8px;
  box-sizing: border-box;
  transition: transform .25s ease;
}
.brand__mark svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.brand:hover .brand__mark {
  transform: scale(1.06);
}
/* ─── Hero badge — circular crop of logo.png ──────────────────── */
.hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--ivory-100);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(26, 61, 46, 0.10),
    0 16px 40px -16px rgba(26, 61, 46, 0.20);
}
.hero__badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
@media (min-width: 640px) {
  .hero__badge {
    width: 112px;
    height: 112px;
    margin-bottom: 36px;
  }
}

/* ─── Header brand mark — same logo.png, small ────────────────── */
.brand__mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: var(--ivory-100) !important;
}
.brand__mark img,
.brand__mark svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center 22% !important;
}
/* ─── Header brand mark — small logo.png ─────────────────────── */
.brand__mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: var(--ivory-100) !important;
}
.brand__mark img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center 22% !important;
}
/* ─── Brand mark — crisp SVG tree, no circle ─────────────────── */
.brand__mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  color: var(--gold-500) !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.brand__mark svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.brand__mark img { display: none !important; }

/* Safety net — hide any leftover hero badge or watermark */
.hero__badge,
.hero__mark {
  display: none !important;
}
/* ═══ LOGO CIRCLES + ARRIVAL ANIMATION ══════════════════════════ */

/* ─── Hero logo — circular, centered, arrival animation ─────── */
.hero__logo {
  display: block;
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 32px;
  box-shadow:
    0 0 0 1px rgba(26, 61, 46, 0.08),
    0 24px 60px -24px rgba(26, 61, 46, 0.28);
  animation: logo-arrival 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@media (min-width: 640px) {
  .hero__logo {
    width: 260px;
    height: 260px;
    margin-bottom: 40px;
  }
}

@keyframes logo-arrival {
  0% {
    opacity: 0;
    transform: scale(1.28);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Rest of hero — fades in AFTER logo settles ─────────────── */
.hero__inner h1,
.hero__inner .hero__sub,
.hero__inner .hero__cta,
.hero__inner .hero__tagline {
  animation: content-fade-in 0.7s ease 0.6s both;
}

@keyframes content-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Header + footer brand mark — small circle ─────────────── */
.brand__mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: transparent !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.brand__mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
}
.brand__mark svg { display: none !important; }

/* ─── Founder photo on About — matches hero logo size ────────── */
.founder-photo {
  width: 220px !important;
  height: 220px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50% !important;
  margin: 0 auto 24px !important;
  box-shadow:
    0 0 0 1px rgba(26, 61, 46, 0.08),
    0 24px 60px -24px rgba(26, 61, 46, 0.20);
}
@media (min-width: 640px) {
  .founder-photo {
    width: 260px !important;
    height: 260px !important;
  }
}

/* ─── Accessibility — respect reduced motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__inner h1,
  .hero__inner .hero__sub,
  .hero__inner .hero__cta,
  .hero__inner .hero__tagline {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ═══ GLOBAL INSTITUTIONS ═══════════════════════════════════════ */
.institutions {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 64px;
}
@media (min-width: 900px) {
  .institutions { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.institution {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(26, 61, 46, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s ease;
}
.institution:hover { box-shadow: var(--shadow-hover); }

.institution__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-600);
}
.institution__title {
  margin-top: 8px;
  font-family: 'Fraunces', serif;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--forest-900);
}
.institution__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--stone);
}
.institution__facts {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 61, 46, 0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  font-size: 13px;
}
.institution__facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(26, 61, 46, 0.5);
}
.institution__facts dd {
  margin: 2px 0 0;
  color: var(--forest-900);
  line-height: 1.5;
}
.institution__link {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--gold-600);
}

.institutions__note {
  margin-top: 48px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 61, 46, 0.10);
  background: var(--ivory-100);
  font-size: 13px;
  line-height: 1.65;
  color: var(--stone);
  max-width: 860px;
}
.institutions__note strong { color: var(--forest-800); }

/* ═══ THE PANEL — teaser ════════════════════════════════════════ */
.panel-teaser { max-width: 720px; }

.panel-teaser__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(201, 160, 92, 0.12);
  border: 1px solid rgba(201, 160, 92, 0.3);
  font-size: 13px;
  color: var(--gold-400);
}
.panel-teaser__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.panel-teaser__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .panel-teaser__form {
    grid-template-columns: 1fr 1fr;
  }
  .panel-teaser__form input:nth-child(3),
  .panel-teaser__form button {
    grid-column: span 2;
  }
}
.panel-teaser__form input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(250, 246, 235, 0.2);
  background: rgba(250, 246, 235, 0.06);
  color: var(--ivory-100);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.panel-teaser__form input::placeholder {
  color: rgba(250, 246, 235, 0.45);
}
.panel-teaser__form input:focus {
  border-color: rgba(201, 160, 92, 0.6);
}

.panel-teaser__note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(250, 246, 235, 0.5);
}

.panel-teaser__success {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(201, 160, 92, 0.14);
  border: 1px solid rgba(201, 160, 92, 0.4);
  color: var(--ivory-100);
  font-size: 15px;
}
.panel-teaser__success strong { color: var(--gold-400); }