/* Fonts: self-hosted, SIL Open Font Licence (see fonts/LICENSE-*.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1d3557;
  --navy-deep: #14263f;
  --navy-mid: #24436c;
  --accent: #ffffff;
  --accent-hover: #e7eef8;
  --bronze: #3d6390;
  --stone: #f6f4ef;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #3f4a58;
  --line: #e4e0d6;
  --on-navy: #d5deea;
  --shadow: 0 1px 2px rgba(20, 38, 63, 0.04), 0 10px 28px rgba(20, 38, 63, 0.06);
  --radius: 14px;
  --max: 1200px;
  --head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--navy-mid); text-underline-offset: 3px; }

a:hover { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 18px; letter-spacing: -0.025em; }

h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0; }

h3 { font-size: 1.25rem; margin: 0 0 10px; font-weight: 600; }

p { margin: 0 0 14px; }

p:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.eyebrow-light { color: #b9c6d8; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  min-height: 80px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}

.brand:hover { text-decoration: none; color: var(--navy); }

.logo { width: auto; height: 34px; flex: 0 0 auto; }

.brand-text { padding-left: 14px; border-left: 1px solid var(--line); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.brand-tag {
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; flex-wrap: wrap; gap: 4px 4px; }

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a:hover { background: var(--stone); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--navy);
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; text-decoration: none; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }

.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--navy-deep); }

.btn-outline { background: transparent; color: var(--navy); }

.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-portal { white-space: nowrap; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 38, 63, 0.95) 0%, rgba(20, 38, 63, 0.86) 40%, rgba(20, 38, 63, 0.35) 72%, rgba(20, 38, 63, 0.2) 100%);
}

.hero-copy { position: relative; z-index: 1; padding: 88px 0; }

.hero-copy .wrap > * { max-width: 640px; }

.hero h1, .hero .lede { color: #fff; }

.lede {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: var(--on-navy);
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: 80px 0; }

section[id] { scroll-margin-top: 96px; }

.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 32px; max-width: 46rem; }

.section-head > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.section-head .more { margin-top: 8px; }

/* Welcome */
.welcome-intro {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  gap: 24px 64px;
  align-items: start;
  margin-bottom: 48px;
}

.welcome-intro .section-head { margin-bottom: 0; }

.welcome-intro .welcome { margin: 0; max-width: none; }

.welcome {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  max-width: 50rem;
}

.welcome p {
  font-family: var(--head);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.welcome footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
}

.welcome footer::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--navy-mid);
}

/* Grids and cards */
.pillars, .cards, .team, .listing-layout, .articles { display: grid; gap: 20px; }

.pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pillar;
}

.pillars li, .card, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.pillars li { counter-increment: pillar; }

.pillars li::before {
  content: "0" counter(pillar);
  display: block;
  margin-bottom: 12px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bronze);
}

.pillars p, .cards p, .profile p { color: #2c3644; }

.section-alt .card { background: var(--stone); box-shadow: none; }

.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.listing-layout { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr); align-items: stretch; }

.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

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

.card-body { padding: 24px 28px 28px; }

.kicker {
  margin: 0 0 10px;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listing-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.listing-title h3 { margin: 0; font-size: 1.6rem; }

.listing .card-body > p:not(.kicker):not(.more) { color: var(--muted); }

.pill {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.more { margin-top: 18px; font-weight: 600; }

.section-alt .listing { background: #fff; box-shadow: var(--shadow); }

.callout { background: var(--navy); border-color: var(--navy); box-shadow: none; }

.callout .card-photo { flex: 1 1 auto; height: 0; min-height: 200px; object-fit: cover; }

.callout .card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; }

.callout h3 { color: #fff; font-size: 1.4rem; }

.callout p { color: var(--on-navy); margin-bottom: 22px; }

.callout .btn { margin-top: auto; background: var(--accent); color: var(--navy-deep); border-color: var(--accent); }

.callout .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Team */
.team { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.who { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }

.who h3 { margin: 0; font-size: 1.4rem; }

.portrait {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e8edf3;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line);
}

.portrait-tim { object-position: center 15%; }

.portrait-merianah { object-position: center 20%; }

/* Articles */
.articles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }

.article {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  padding: 24px 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article:hover { border-color: #b9b2a1; transform: translateY(-2px); text-decoration: none; }

.article h3 { font-size: 1.2rem; }

.article-date {
  margin: 0 0 10px;
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.article-sub { color: var(--muted); }

.subscribe-card {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding: 32px;
  width: fit-content;
  max-width: 100%;
}

.subscribe-card iframe {
  width: min(100%, 480px);
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* Contact */
.section-contact { background: var(--navy); color: #fff; }

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.contact-intro h2 { color: #fff; margin-bottom: 32px; }

.facts {
  margin: 0;
  padding: 12px 32px;
  background: var(--navy-mid);
  border-radius: var(--radius);
}

.facts div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }

.facts div:first-child { border-top: 0; }

.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9c6d8;
}

.facts dd { margin: 4px 0 0; font-weight: 500; font-size: 1.1rem; color: #fff; }

.facts a { color: #fff; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: 28px 0;
  font-size: 0.95rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer p { margin: 0; }

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-brand img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.site-footer a { color: #fff; font-weight: 600; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid #5b7fb5;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .pillars, .team, .listing-layout, .cards, .articles, .contact-wrap, .welcome-intro { grid-template-columns: 1fr; }
  .welcome-intro { margin-bottom: 36px; }
  .hero { min-height: 0; }
  .hero-media { position: relative; height: 240px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(20, 38, 63, 0.05), rgba(20, 38, 63, 0.3)); }
  .hero-copy { background: var(--navy-deep); padding: 40px 0 52px; }
  .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand portal"
      "nav nav";
    align-items: center;
    gap: 10px 12px;
    min-height: 0;
  }
  .brand { grid-area: brand; margin-right: 0; }
  .btn-portal { grid-area: portal; justify-self: end; }
  .nav {
    grid-area: nav;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  section[id] { scroll-margin-top: 170px; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 40px)); }
  body { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { display: none; }
  .logo { height: 28px; }
  .brand { gap: 10px; }
  .brand-text { padding-left: 10px; }
  .brand-name { font-size: 0.92rem; }
  .btn-portal { padding: 10px 14px; min-height: 44px; }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .nav a { padding: 10px 0; font-size: 0.95rem; }
  .hero-media { height: 200px; }
  .pillars li, .card, .subscribe-card { padding: 24px; }
  .card-body { padding: 24px; }
  .article { padding: 24px; }
  .facts { padding: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .article { transition: none; }
  .article:hover { transform: none; }
}
