/* ============================================================
   HORAN Family Foundation — site styles
   Elegant, institutional. Light display type, hairline details,
   palette drawn from the logo: navy, teal, seafoam, gold.
   ============================================================ */

:root {
  --deep:    #16304f;
  --navy:    #2b5d8c;
  --teal:    #4f9daa;
  --seafoam: #79c6bb;
  --gold:    #d9992f;
  --ink:     #0f2338;
  --slate:   #55677a;
  --paper:   #fbfcfd;
  --white:   #ffffff;

  --hairline: rgba(22, 48, 79, .14);
  --hairline-soft: rgba(22, 48, 79, .08);
  --hairline-light: rgba(255, 255, 255, .18);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --section: clamp(5rem, 11vw, 10rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; }

.wrap {
  width: min(1200px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.wrap-wide {
  width: min(1560px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Typography — big light on little bold ---------- */

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 strong, h2 strong, h3 strong { font-weight: 550; }

.display {
  font-size: clamp(3.25rem, 8vw, 7rem);
  font-weight: 200;
  letter-spacing: -0.03em;
}

.h-xl { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 250; }
.h-lg { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 275; }
.h-md { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.kicker::before {
  content: "";
  width: 1.5em;
  height: 1.4em;
  background: url("../assets/heart-mark.png") center / contain no-repeat;
}

/* centered kickers: one larger heart stacked above the label */
.center .kicker {
  flex-direction: column;
  gap: 1.25rem;
}

.center .kicker::before {
  width: 3rem;
  height: 2.8rem;
  margin-inline: auto;
}

/* ruler-tick ornament beneath centered section heads
   (SVG tiles render crisply at any device pixel ratio) */
.section-head.center::after {
  content: "";
  display: block;
  width: 162px;
  height: 10px;
  margin: 2.75rem auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='10'%3E%3Crect width='1.5' height='10' fill='%2316304f' fill-opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}

.section-deep .section-head.center::after,
.cta-band .section-head.center::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='10'%3E%3Crect width='1.5' height='10' fill='white' fill-opacity='0.3'/%3E%3C/svg%3E");
  border-color: var(--hairline-light);
}

.lede {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--slate);
  max-width: 52ch;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 252, 253, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 30px rgba(22, 48, 79, .06);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img { height: 84px; width: auto; }

.brand .brand-name {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .22em;
  line-height: 1.2;
  color: var(--deep);
  white-space: nowrap;
}

.brand .brand-name span {
  display: block;
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Segmented, tactile nav — bordered group, hairline separators,
   gradient surfaces, pressed/active states */
.site-nav {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(22, 48, 79, .1),
    0 10px 28px rgba(22, 48, 79, .1);
  overflow: hidden;
}

.site-nav a {
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--ink);
  padding: .9rem 1.6rem;
  border-left: 1px solid var(--hairline-soft);
  transition: background .2s, color .2s, box-shadow .2s;
}

.site-nav a:first-child { border-left: 0; }

.site-nav a:hover {
  background: linear-gradient(180deg, #234a75 0%, var(--deep) 100%);
  color: var(--gold);
}

.site-nav a:active {
  box-shadow: inset 0 2px 8px rgba(10, 22, 38, .5);
  background: var(--deep);
  color: var(--gold);
}

.site-nav a.active {
  background: linear-gradient(180deg, #234a75 0%, var(--deep) 100%);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -2px 0 var(--gold);
}

.nav-toggle {
  display: none;
  background: linear-gradient(180deg, #ffffff, #f1f5f7);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
  padding: .7rem .8rem;
  box-shadow: 0 1px 2px rgba(22, 48, 79, .1);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--deep);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 1.05rem 2.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}

.btn-gold {
  background: linear-gradient(180deg, #e2a63d 0%, #cf8f22 100%);
  color: var(--white);
  border-color: rgba(160, 106, 16, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 1px 2px rgba(22, 48, 79, .2),
    0 8px 22px rgba(217, 153, 47, .28);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #d99a2c 0%, #bd8018 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 1px 2px rgba(22, 48, 79, .25),
    0 10px 26px rgba(217, 153, 47, .38);
}

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }

.btn-navy {
  background: transparent;
  color: var(--deep);
  border-color: var(--deep);
  box-shadow: inset 0 0 0 0 var(--deep);
}

.btn-navy:hover {
  background: var(--deep);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(22, 48, 79, .25);
}

/* ---------- Hero (full-bleed, video-ready) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  /* water — land — city: deep navy base, teal water glow, seafoam horizon, faint gold light */
  background:
    radial-gradient(120% 90% at 15% 110%, rgba(79, 157, 170, .55) 0%, transparent 55%),
    radial-gradient(90% 70% at 88% 100%, rgba(217, 153, 47, .22) 0%, transparent 50%),
    radial-gradient(140% 100% at 70% -20%, rgba(43, 93, 140, .8) 0%, transparent 65%),
    linear-gradient(180deg, #10263f 0%, #16304f 45%, #1d4266 100%);
}

/* Drop hero.mp4 into /assets and the video takes over automatically. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(16, 38, 63, .5) 0%, rgba(16, 38, 63, .15) 45%, rgba(16, 38, 63, .6) 100%);
}

/* the column-grid overlay read as clutter over footage — retired */
.hero-grid { display: none; }

/* clean inset hairline frame with crisp corner brackets */
.hero-frame {
  position: absolute;
  inset: clamp(1.25rem, 2.5vw, 2.25rem);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
}

.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid rgba(255, 255, 255, .55);
  border-left: 2px solid rgba(255, 255, 255, .55);
}

.hero-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid rgba(255, 255, 255, .55);
  border-right: 2px solid rgba(255, 255, 255, .55);
}

.hero-drift {
  position: absolute;
  inset: -25%;
  z-index: 1;
  background:
    radial-gradient(42% 46% at 24% 68%, rgba(121, 198, 187, .28), transparent 70%),
    radial-gradient(34% 40% at 78% 30%, rgba(43, 93, 140, .5), transparent 70%),
    radial-gradient(26% 30% at 68% 82%, rgba(217, 153, 47, .16), transparent 70%);
  animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

.hero-inner {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 9rem var(--gutter);
  max-width: 1100px;
}

.hero-kicker {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 2.5rem;
  text-shadow:
    0 1px 3px rgba(8, 18, 32, .85),
    0 2px 18px rgba(8, 18, 32, .95);
}

.hero-inner .display {
  color: var(--white);
  /* soft dark glow keeps light type legible over any video frame */
  text-shadow:
    0 1px 4px rgba(8, 18, 32, .7),
    0 4px 28px rgba(8, 18, 32, .9),
    0 10px 50px rgba(8, 18, 32, .85),
    0 18px 90px rgba(8, 18, 32, .7);
}

.hero-rule {
  width: 2.6rem;
  height: 2.4rem;
  background: url("../assets/heart-mark.png") center / contain no-repeat;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, .22))
    drop-shadow(0 3px 16px rgba(10, 22, 38, .55));
  margin: 2.25rem auto;
}

.hero-inner .hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.8;
  max-width: 54ch;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, .88);
  text-shadow:
    0 1px 3px rgba(8, 18, 32, .8),
    0 3px 20px rgba(8, 18, 32, .95),
    0 8px 44px rgba(8, 18, 32, .75);
}

.hero-actions { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

.hero-sm { min-height: 64svh; }
.hero-sm .hero-inner { padding: 10rem var(--gutter) 7rem; }

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 153, 47, .7), transparent);
  z-index: 5;
}

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

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

.section-water {
  background: linear-gradient(180deg, #f5f9fa 0%, #ecf4f5 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 24px 40px -32px rgba(22, 48, 79, .12);
}

.section-land {
  background: linear-gradient(180deg, #f7faf8 0%, #eef5f1 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 24px 40px -32px rgba(22, 48, 79, .12);
}

.section-deep {
  background:
    radial-gradient(100% 80% at 80% 120%, rgba(79, 157, 170, .3) 0%, transparent 55%),
    radial-gradient(80% 60% at 10% -10%, rgba(43, 93, 140, .55) 0%, transparent 60%),
    linear-gradient(180deg, #12293f, #16304f);
  color: rgba(255, 255, 255, .85);
  border-top: 3px double rgba(217, 153, 47, .35);
  border-bottom: 3px double rgba(217, 153, 47, .35);
}

.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep .lede { color: rgba(255, 255, 255, .72); }
.section-deep .kicker { color: var(--seafoam); }
.section-deep .kicker::before, .section-deep .center .kicker::after,
.cta-band .kicker::before, .cta-band .kicker::after {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35));
}

.section-head { max-width: 860px; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Focus cards ---------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -24px rgba(22, 48, 79, .3);
}

.focus-card {
  position: relative;
  padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3vw, 3rem);
  color: var(--white);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: filter .3s;
}

.focus-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  pointer-events: none;
  z-index: 3;
}

.focus-card > * { position: relative; z-index: 2; }

.focus-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .5s ease;
}

.focus-card:hover video { transform: scale(1.04); }

.focus-card .card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 26, 42, .2) 0%, rgba(13, 26, 42, .82) 100%);
}

.focus-card:hover { filter: brightness(1.12); }

.focus-card .card-num {
  position: absolute;
  top: 2.4rem;
  left: clamp(2.4rem, 3.5vw, 3.4rem);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .4em;
  color: rgba(255, 255, 255, .6);
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.focus-card h3 {
  color: var(--white);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 275;
  margin-bottom: 1rem;
}

.focus-card p { color: rgba(255, 255, 255, .78); font-weight: 300; font-size: 1rem; max-width: 34ch; }

.focus-env {
  background:
    radial-gradient(120% 90% at 80% 110%, rgba(121, 198, 187, .35) 0%, transparent 60%),
    linear-gradient(165deg, #1d4d51 0%, #2e6f74 100%);
}

.focus-edu {
  background:
    radial-gradient(120% 90% at 20% 110%, rgba(79, 157, 170, .35) 0%, transparent 60%),
    linear-gradient(165deg, #1a3a5e 0%, #2b5d8c 100%);
}

.focus-health {
  background:
    radial-gradient(120% 90% at 80% 110%, rgba(217, 153, 47, .3) 0%, transparent 60%),
    linear-gradient(165deg, #35322a 0%, #6b5426 100%);
}

.focus-card .card-link {
  margin-top: 2rem;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.focus-card .card-link::after { content: "→"; letter-spacing: 0; }

/* ---------- Stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  text-align: center;
}

.stat {
  padding: 1rem 2rem;
  border-left: 1px solid var(--hairline-light);
}

.stat:first-child { border-left: 0; }

.stat::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 5px;
  margin: 0 auto 1.75rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid rgba(217, 153, 47, .4);
}

.stat .num {
  font-size: clamp(3.25rem, 6.5vw, 5.5rem);
  font-weight: 150;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}

.stat .label {
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: .68rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px -28px rgba(22, 48, 79, .3);
}

@media (max-width: 980px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-tile {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfc 100%);
  padding: 3rem 2.5rem;
}

.value-tile .value-num {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .38em;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(217, 153, 47, .4);
}

.value-tile h4 { font-size: 1.4rem; font-weight: 400; margin-bottom: .6rem; }

.value-tile p { color: var(--slate); font-weight: 300; font-size: .98rem; }

/* ---------- Partner logo wall ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -28px rgba(22, 48, 79, .28);
}

.partner-tile {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
  padding: 2.5rem 2rem;
  transition: background .3s;
}

.partner-tile:hover { background: #ffffff; }

.partner-tile img {
  max-height: 96px;
  max-width: 72%;
  object-fit: contain;
  transition: transform .35s;
}

.partner-tile:hover img { transform: scale(1.05); }

.partner-tile .tile-name {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.6;
}

.partner-tile .tile-name small {
  display: block;
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--gold);
  margin-top: .4rem;
}

/* tiles that link out to the partner's website */
a.partner-tile { cursor: pointer; }

a.partner-tile:hover .tile-name { color: var(--teal); }

a.partner-tile.tile-dark:hover .tile-name { color: var(--white); }

/* dark tile for white/knockout logos (Mote Marine) */
.partner-tile.tile-dark {
  background: linear-gradient(165deg, #16304f 0%, #2b5d8c 100%);
}

.partner-tile.tile-dark:hover { background: linear-gradient(165deg, #1a3a5e 0%, #34689a 100%); }

.partner-tile.tile-dark .tile-name { color: rgba(255, 255, 255, .75); }

/* text-only tile for partners whose logo is still being collected */
.partner-tile.tile-text .tile-wordmark {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--navy);
  line-height: 1.4;
  max-width: 16ch;
}

/* Scrolling logo marquee on home page */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee .partner-tile {
  min-width: 320px;
  min-height: 200px;
  background: transparent;
  border-right: 1px solid var(--hairline);
  padding: 2rem;
}

/* keep the navy surface for knockout logos inside the marquee */
.marquee .partner-tile.tile-dark {
  background: linear-gradient(165deg, #16304f 0%, #2b5d8c 100%);
}

.marquee .partner-tile img { max-height: 84px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Grants timeline ---------- */

.timeline { position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: clamp(8px, 3vw, 40px);
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}

.timeline-year {
  position: relative;
  padding-left: clamp(56px, 9vw, 130px);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.timeline-year .year-dot {
  position: absolute;
  left: clamp(2px, 3vw, 34px);
  top: 13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(217, 153, 47, .35);
}

.timeline-year h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--deep);
  margin-bottom: 1.25rem;
}

.grant-chips { display: flex; flex-wrap: wrap; gap: .55rem; }

.grant-chip {
  background: linear-gradient(180deg, #ffffff, #f8fafb);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: .5rem 1.15rem;
  font-weight: 400;
  font-size: .92rem;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 48, 79, .05);
}

a.grant-chip { transition: border-color .2s, color .2s, box-shadow .2s; }

a.grant-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 4px 14px rgba(79, 157, 170, .18);
}

.grant-chip.g3 { border-color: rgba(217, 153, 47, .5); }

a.grant-chip.g3:hover {
  border-color: var(--gold);
  color: #b07a1a;
  box-shadow: 0 4px 14px rgba(217, 153, 47, .22);
}

.grant-chip.g3::after {
  content: "G3";
  margin-left: .65rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  vertical-align: middle;
}

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.split.reverse > .split-media { order: 2; }

.split-media {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -24px rgba(22, 48, 79, .35);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
  z-index: 3;
}

/* background-video surfaces inside panels */
.split-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.split-media .media-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.media-water .media-tint { background: linear-gradient(165deg, rgba(29, 77, 81, .55) 0%, rgba(53, 119, 124, .2) 100%); }
.media-city .media-tint  { background: linear-gradient(165deg, rgba(26, 58, 94, .55) 0%, rgba(43, 93, 140, .2) 100%); }
.media-land .media-tint  { background: linear-gradient(165deg, rgba(58, 77, 63, .5) 0%, rgba(93, 122, 90, .2) 100%); }

.split-media .panel-num, .split-media .panel-logo { position: relative; z-index: 2; }

.split-media .panel-num {
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 100;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, .32);
  line-height: 1;
  user-select: none;
}

.split-media .panel-logo {
  width: min(46%, 240px);
  opacity: .95;
}

.split-media .panel-logo-wide { width: min(74%, 440px); }

.media-light::after { border-color: rgba(22, 48, 79, .12); }

.media-water {
  background:
    radial-gradient(110% 80% at 75% 110%, rgba(121, 198, 187, .4) 0%, transparent 60%),
    linear-gradient(165deg, #1d4d51, #35777c);
}

.media-city {
  background:
    radial-gradient(110% 80% at 25% 110%, rgba(79, 157, 170, .38) 0%, transparent 60%),
    linear-gradient(165deg, #1a3a5e, #2b5d8c);
}

.media-land {
  background:
    radial-gradient(110% 80% at 75% 110%, rgba(217, 153, 47, .32) 0%, transparent 60%),
    linear-gradient(165deg, #3a4d3f, #5d7a5a);
}

.media-light {
  background: linear-gradient(165deg, #f3f8f9, #e5eff0);
}

.check-list { list-style: none; margin-top: 2rem; }

.check-list li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1rem;
  color: var(--slate);
  font-weight: 350;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 1.2em;
  height: 1.1em;
  background: url("../assets/heart-mark.png") center / contain no-repeat;
}

.section-deep .check-list li::before {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .35));
}

.section-deep .check-list li { color: rgba(255, 255, 255, .8); }

/* ---------- People ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px -28px rgba(22, 48, 79, .3);
}

/* explicit balanced layouts — no orphan columns at any size */
.people-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.people-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1160px) {
  .people-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .people-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .people-grid.cols-4, .people-grid.cols-5 { grid-template-columns: 1fr; }
}

.person-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfc 100%);
  padding: 4rem 1.5rem 4.25rem;
  text-align: center;
  min-width: 0;
  transition: background .25s, box-shadow .25s;
}

.person-card:hover {
  background: #ffffff;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.person-card:hover .avatar {
  border-color: rgba(217, 153, 47, .55);
  outline-color: rgba(217, 153, 47, .25);
  color: var(--deep);
}

.person-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  outline: 1px solid var(--hairline-soft);
  outline-offset: 5px;
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: .08em;
  color: var(--navy);
  background: linear-gradient(180deg, #fdfefe, #f2f7f8);
  transition: border-color .25s, outline-color .25s, color .25s;
}

.person-card h4 { font-size: 1.2rem; font-weight: 450; }

.person-card .role {
  color: var(--gold);
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1.9;
  margin-top: .9rem;
}

.person-card .email {
  display: block;
  margin-top: 1.4rem;
  font-size: .76rem;
  letter-spacing: .01em;
  font-weight: 400;
  color: var(--teal);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(79, 157, 170, .35);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.person-card .email:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

.contact-row .value a {
  text-decoration: underline;
  text-decoration-color: rgba(79, 157, 170, .35);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.contact-row .value a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

/* ---------- Contact ---------- */

.contact-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfc 100%);
  border: 1px solid var(--hairline);
  outline: 1px solid var(--hairline-soft);
  outline-offset: 5px;
  padding: clamp(2rem, 4vw, 4rem);
  box-shadow: 0 24px 60px -28px rgba(22, 48, 79, .28);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-row .label {
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact-row .value { font-weight: 300; font-size: 1.15rem; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background:
    radial-gradient(90% 90% at 85% 120%, rgba(217, 153, 47, .18) 0%, transparent 55%),
    radial-gradient(90% 80% at 10% -20%, rgba(79, 157, 170, .3) 0%, transparent 60%),
    linear-gradient(180deg, #12293f, #16304f);
  color: var(--white);
  text-align: center;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 3px double rgba(217, 153, 47, .4);
  border-bottom: 3px double rgba(217, 153, 47, .4);
}

.cta-band h2 { color: var(--white); }

.cta-band .lede { color: rgba(255, 255, 255, .75); margin-inline: auto; }

.cta-band .btn { margin-top: 3rem; }

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

.site-footer {
  background:
    radial-gradient(80% 60% at 90% 110%, rgba(43, 93, 140, .35) 0%, transparent 60%),
    #0e2135;
  color: rgba(255, 255, 255, .65);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
  font-weight: 300;
  border-top: 3px double rgba(217, 153, 47, .45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: 3.5rem;
}

.footer-brand img {
  height: 116px;
  width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 0 0 5px rgba(255, 255, 255, .05);
}

.footer-brand p { max-width: 40ch; font-size: .95rem; line-height: 1.8; }

.footer-est {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .55rem 1.2rem;
  border: 1px solid rgba(217, 153, 47, .5);
  outline: 1px solid rgba(217, 153, 47, .2);
  outline-offset: 3px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer h5 {
  color: rgba(255, 255, 255, .9);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--hairline-light);
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: .7rem; }

.site-footer a { color: rgba(255, 255, 255, .65); font-weight: 300; transition: color .2s; }

.site-footer a:hover { color: var(--seafoam); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2.5rem;
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .4);
}

.footer-bottom .ticks {
  flex-basis: 100%;
  height: 9px;
  margin-bottom: .85rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Crect width='1.5' height='9' fill='white' fill-opacity='0.22'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2, .6, .2, 1), transform .9s cubic-bezier(.2, .6, .2, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-drift, .marquee-track { animation: none; }
}

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

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .split-media { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: .3rem; }
  .stat { border-left: 0; border-top: 1px solid var(--hairline-light); padding-block: 2rem; }
  .stat:first-child { border-top: 0; }
}

/* nav collapses to a card-style dropdown well before it gets cramped */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: var(--gutter);
    left: auto;
    width: min(360px, calc(100vw - var(--gutter) * 2));
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f6f9fa);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      0 2px 6px rgba(22, 48, 79, .12),
      0 24px 60px rgba(22, 48, 79, .22);
    max-height: 0;
    border-width: 0;
    overflow: hidden;
    transition: max-height .3s ease, border-width 0s .3s;
  }

  .site-nav.open {
    max-height: 480px;
    border-width: 1px;
    transition: max-height .3s ease;
  }

  .site-nav a {
    border-left: 0;
    border-top: 1px solid var(--hairline-soft);
    padding: 1.05rem 1.5rem;
    font-size: 1.05rem;
  }

  .site-nav a:first-child { border-top: 0; }

  .site-nav a.active {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .18),
      inset 3px 0 0 var(--gold);
  }
}

@media (max-width: 560px) {
  .brand img { height: 58px; }
}

/* ---------- Mobile hero: text drops to the lower third so the
   video reads clean up top; type compresses; scrim weight moves down */
@media (max-width: 640px) {
  .hero { place-items: end center; }

  .hero-inner { padding: 40svh var(--gutter) 3.25rem; }

  .hero-sm .hero-inner { padding: 26svh var(--gutter) 3.25rem; }

  .hero-inner .display { font-size: clamp(2.2rem, 10vw, 2.8rem); }

  /* header logo already identifies the site — the kicker is clutter here */
  .hero-kicker { display: none; }

  .hero-rule {
    width: 1.9rem;
    height: 1.75rem;
    margin: 1.1rem auto;
  }

  .hero-inner .hero-sub {
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
  }

  /* two equal buttons on one row — no wrapping */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    max-width: 340px;
    margin-inline: auto;
  }

  .hero-actions .btn {
    padding: .85rem .5rem;
    font-size: .64rem;
    letter-spacing: .14em;
    white-space: nowrap;
  }

  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(16, 38, 63, .4) 0%,
      rgba(16, 38, 63, .05) 30%,
      rgba(16, 38, 63, .35) 55%,
      rgba(16, 38, 63, .82) 100%);
  }

  .hero-frame { display: none; }
}
