/* Springbok Ventures */
:root {
  --sky: #81a8df;
  --sky-light: #b9d0ef;
  --slate: #607799;
  --slate-dark: #4a5d7a;
  --gold: #ffb612;
  --gold-dark: #e09c00;
  --ink: #2b2f36;
  --charcoal: #333;
  --muted: #5d6573;
  --tint: #f3f4f6;
  --line: #e3e6eb;
  --white: #fff;

  --font-head: "Montserrat", Tahoma, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 8px 24px rgba(20, 30, 50, .08);
  --shadow-lg: 0 2px 4px rgba(20, 30, 50, .08), 0 24px 48px rgba(20, 30, 50, .16);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 0;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-gold { background: var(--gold); color: var(--charcoal); box-shadow: 0 6px 18px rgba(255, 182, 18, .35); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-lg { font-size: 1.05rem; padding: 18px 34px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(96, 119, 153, .96); box-shadow: 0 4px 20px rgba(0, 0, 0, .12); backdrop-filter: blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 180px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--white); text-decoration: none; font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px;
  transition: background-color .15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, .15); }
.site-nav a.nav-cta { background: var(--gold); color: var(--charcoal); margin-left: 8px; }
.site-nav a.nav-cta:hover { background: var(--gold-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .brand img { width: 150px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-radius: 14px; padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { color: var(--slate); font-size: 1.1rem; padding: 14px 16px; border-radius: 10px; }
  .site-nav a:hover { background: var(--tint); }
  .site-nav a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 88vh, 820px);
  display: flex; align-items: center;
  color: var(--white);
}
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, .35), transparent 55%),
    linear-gradient(180deg, #6f97d3 0%, var(--sky) 45%, var(--sky-light) 100%);
}
.hero-grass {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: url(/img/grass-only.webp) center bottom / 100% calc(100% + 6px) no-repeat;
  z-index: 2;
}
.hero-grass::before {
  /* soft horizon so the grass doesn't start on a hard line */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 18px;
  background: linear-gradient(180deg, transparent, rgba(255, 182, 18, .45));
  filter: blur(4px);
}
.hero-inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-top: var(--header-h); padding-bottom: clamp(60px, 10vh, 120px); }
.hero-title {
  font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08;
  text-shadow: 0 2px 24px rgba(40, 60, 100, .35);
  max-width: 60%;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-btn { margin-top: 32px; }

.springbok {
  position: absolute; z-index: 1; left: 2%; bottom: 13%;
  width: min(50vw, 640px); padding: 0; border: 0; background: none;
  transform: translateY(120%);
}
.springbok img { width: 100%; filter: drop-shadow(0 18px 18px rgba(40, 40, 60, .25)); }
.springbok.is-in { animation: slideUp .7s cubic-bezier(.2, .9, .3, 1.15) forwards; }
.springbok.is-bounce { transform: none; animation: bounce .8s ease; }
@keyframes slideUp { from { transform: translateY(120%); } to { transform: translateY(0); } }
@keyframes bounce {
  0% { transform: translateY(0); }
  40%, 55% { transform: translateY(95%); }
  100% { transform: translateY(0); }
}

@media (max-width: 760px) {
  .hero { align-items: flex-start; min-height: 0; height: clamp(600px, 100svh, 760px); }
  .hero-inner { align-items: center; text-align: center; padding-top: calc(var(--header-h) + clamp(24px, 6vh, 56px)); padding-bottom: 0; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); max-width: none; }
  .hero-title span { display: block; }
  .springbok { width: 104vw; left: -4vw; bottom: 9%; }
  .hero-grass { height: 18%; }
}

@media (max-width: 760px) and (max-height: 700px) { .hero-btn { display: none; } }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-tint { background: var(--tint); }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 10px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; color: var(--charcoal); margin-bottom: 24px; }
.section-title sup { color: var(--gold-dark); font-size: .5em; vertical-align: super; }
.lede { max-width: 760px; font-size: 1.12rem; color: var(--muted); }

/* Pillars */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.pillar {
  border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pillar h3 { font-size: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.pillar p { font-size: 1.1rem; flex: 1; }
.pillar-gold { background: var(--gold); color: var(--charcoal); }
.pillar-gold h3 { color: var(--white); text-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.pillar-dark { background: var(--charcoal); color: #e9eaec; }
.pillar-dark h3 { color: var(--gold); }
.pillar::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
  background: url(/safari-pinned-tab.svg) center / contain no-repeat; opacity: .07;
}
.pillar-link {
  align-self: flex-start; margin-top: 24px; background: none; border: 0; padding: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.pillar-link span { display: inline-block; transition: transform .15s ease; }
.pillar-link:hover span { transform: translateX(4px); }
.pillar-dark .pillar-link { color: var(--gold); }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 28px; margin-top: 48px; }
.person {
  background: var(--white); border: 0; border-radius: var(--radius); padding: 36px 24px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  border-top: 5px solid var(--gold);
}
.person:nth-child(2) { border-top-color: var(--charcoal); }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.person img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--tint); }
.person-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-top: 20px; color: var(--charcoal); }
.person-title { color: var(--muted); margin-top: 2px; }
.person-link { margin-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--slate); }

/* Logos */
.logos {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.logos li {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 12px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.logos li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logos img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.footnote { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
  color: var(--white); padding: clamp(72px, 10vw, 110px) 0; text-align: center;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold);
}
.contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.contact p { font-size: 1.15rem; opacity: .9; margin-bottom: 32px; }
.contact .contact-addr { margin: 18px 0 0; font-size: .95rem; opacity: .75; }

/* Footer */
.site-footer { background: var(--charcoal); color: #aeb3bb; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer img { width: 140px; }

/* Responsive grids */
@media (max-width: 900px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; margin-top: 40px; }
  .pillar { padding: 32px 26px; }
  .people { grid-template-columns: 1fr; justify-items: stretch; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* Modals */
.modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 22px; color: var(--ink);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modalIn .22s ease; }
.modal::backdrop { background: rgba(40, 52, 72, .6); backdrop-filter: blur(4px); animation: fadeIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-head {
  display: flex; align-items: center; gap: 20px; padding: 28px 64px 28px 32px; position: relative; flex-shrink: 0;
}
.modal-gold .modal-head { background: var(--gold); color: var(--charcoal); }
.modal-dark .modal-head { background: var(--charcoal); color: var(--white); }
.modal-head h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; }
.modal-kicker { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 4px; opacity: .8; }
.modal-dark .modal-kicker { color: var(--gold); opacity: 1; }
.modal-icon { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; background: var(--white); border-radius: 16px; padding: 6px; }
.modal-icon.round { border-radius: 50%; padding: 0; }
.modal-icon.photo { object-fit: cover; box-shadow: 0 0 0 4px rgba(255, 255, 255, .6); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .12); color: inherit; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background-color .15s ease;
}
.modal-close:hover { background: rgba(0, 0, 0, .25); }
.modal-dark .modal-close { background: rgba(255, 255, 255, .12); }
.modal-dark .modal-close:hover { background: rgba(255, 255, 255, .25); }

.modal-body { padding: 28px 32px 36px; overflow-y: auto; font-size: 1.05rem; color: #3b414b; }
.modal-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.modal-body cite { font-style: italic; }

.criteria, .stages { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.criteria { counter-reset: e; }
.criteria li, .stages li {
  position: relative; background: var(--tint); border-radius: 14px; padding: 18px 20px 18px 72px;
}
.criteria li::before {
  counter-increment: e; content: counter(e);
  position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--charcoal); font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center;
}
.criteria h3 b { color: var(--gold-dark); font-size: 1.25em; }
.stages { counter-reset: s; }
.stages li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--charcoal); color: var(--gold); font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center;
}
.stage-tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

@media (max-width: 600px) {
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; max-width: none; border-radius: 0; margin: 0; }
  .modal-head { padding: 22px 60px 22px 20px; gap: 14px; }
  .modal-icon { width: 64px; height: 64px; }
  .modal-body { padding: 22px 20px 32px; }
  .criteria li, .stages li { padding: 16px 16px 16px 64px; }
  .criteria li::before, .stages li::before { left: 14px; width: 34px; height: 34px; }
}

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .springbok { transform: none; }
}

.modal:focus, .modal:focus-visible { outline: none; }
