/* ==========================================================
   Ibadan Bacteriophage Research Team — site stylesheet
   Type system: DM Serif Display (headings) + DM Sans (body)
   ========================================================== */
:root {
  --ink:        #101C33;
  --ink-2:      #3A4760;
  --mute:       #6A7489;
  --primary:    #18335B;   /* IBRT navy (logo) */
  --primary-d:  #122849;
  --primary-dd: #0C1C36;
  --teal:       #00B37D;   /* IBRT green (logo) */
  --teal-soft:  #E2F6EE;
  --gold:       #D6B38F;   /* IBRT tan, lifted for dark backgrounds */
  --tan:        #AC8B6D;   /* IBRT tan (logo) */
  --gold-ink:   #7A5A3C;
  --gold-soft:  #F6EFE7;
  --bg:         #F5F7FA;
  --paper:      #FFFFFF;
  --line:       rgba(24,51,91,.10);
  --line-2:     rgba(24,51,91,.18);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;

  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --sh-sm: 0 4px 16px rgba(24,51,91,.06);
  --sh:    0 14px 40px rgba(24,51,91,.12);
  --sh-lg: 0 30px 80px rgba(12,28,54,.22);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
em.it { font-family: var(--serif); font-style: italic; color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--primary-dd); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: rgba(255,255,255,.75); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border-radius: 999px; font-weight: 600; font-size: .98rem; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer; font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(0,179,125,.3); }
.btn-primary:hover { background: #009A6B; color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #C9A37E; color: var(--ink); }
.btn-ghost { border-color: var(--line-2); color: var(--primary); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow::after { content: "→"; transition: transform .2s; }
.btn:hover .arrow::after, a:hover > .arrow::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--sh-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; color: var(--primary); }
.brand-text span { font-size: .72rem; color: var(--mute); letter-spacing: .04em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink-2); font-weight: 500; font-size: .92rem; padding: 8px 10px; white-space: nowrap; border-radius: 999px; transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--teal-soft); color: var(--primary); }
.site-nav a.active { color: var(--primary); background: var(--teal-soft); font-weight: 600; }
.site-nav .btn { padding: 10px 18px; margin-left: 8px; color: #fff; white-space: nowrap; }
.site-nav .btn:hover { color: #fff; background: #009A6B; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 24px; gap: 4px; transform: translateX(100%); transition: transform .3s, visibility .3s; overflow-y: auto; visibility: hidden;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a { font-size: 1.1rem; padding: 14px 16px; border-radius: 12px; }
  .site-nav .btn { margin: 12px 0 0; justify-content: center; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(0,179,125,.45), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(172,139,109,.18), transparent 60%),
              linear-gradient(160deg, var(--primary) 0%, var(--primary-dd) 70%);
  padding: 96px 0 120px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { color: rgba(255,255,255,.8); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .88rem; margin-bottom: 24px; color: #fff;
}
.hero .pill b { background: var(--gold); color: var(--ink); padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .06em; }
.hero .pill:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-visual { position: relative; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/5; border: 6px solid rgba(255,255,255,.08); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-lg);
  display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.3;
}
.float-card strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--primary); display: block; }
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; flex: none; }
.float-card.a { left: -36px; bottom: 56px; }
.float-card.b { right: -20px; top: 40px; }
.phage-bg { position: absolute; right: -80px; bottom: -120px; width: 520px; opacity: .08; z-index: 1; pointer-events: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 88px 0 76px;
  background: radial-gradient(900px 420px at 90% -20%, rgba(0,179,125,.45), transparent 60%),
              linear-gradient(160deg, var(--primary) 0%, var(--primary-dd) 80%);
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 680px; font-size: 1.12rem; }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: #fff; }
.page-hero .phage-bg { width: 380px; right: -40px; bottom: -110px; opacity: .1; }

/* ---------- Stats ---------- */
.stats-band { margin-top: -64px; position: relative; z-index: 5; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh); overflow: hidden;
}
.stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--primary); }
.stat .lbl { font-size: .92rem; color: var(--mute); margin-top: 8px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-l { grid-template-columns: 1.2fr .8fr; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px;
  box-shadow: var(--sh-sm); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative;
}
a.card { color: inherit; display: block; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line-2); color: inherit; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ic svg { width: 26px; height: 26px; }
.card .more { display: inline-flex; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--primary); font-size: .95rem; }
.card.feature { background: linear-gradient(160deg, var(--primary), var(--primary-dd)); color: #fff; border: 0; }
.card.feature h3 { color: #fff; }
.card.feature p { color: rgba(255,255,255,.78); }
.card.feature .ic { background: rgba(255,255,255,.1); color: var(--gold); }
.card.feature .more { color: var(--gold); }

.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--teal-soft); color: #00805A;
}
.tag.gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag.blue { background: #E8EDF5; color: var(--primary); }

.photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4/5; }
.photo.wide { aspect-ratio: 16/10; }
.photo-cap { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(12,28,54,.78); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: .85rem; backdrop-filter: blur(6px); }

.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-2); }
.check li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B37D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section.dark .check li { color: rgba(255,255,255,.82); }

/* ---------- Quote ---------- */
.quote {
  background: var(--paper); border-radius: var(--r-lg); padding: 48px; box-shadow: var(--sh-sm); border: 1px solid var(--line); position: relative;
}
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; color: var(--ink); }
.quote blockquote::before { content: "“"; font-size: 5rem; line-height: .6; color: var(--teal); display: block; height: 40px; }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-weight: 600; color: var(--primary); }
.quote cite span { display: block; font-weight: 400; color: var(--mute); font-size: .92rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--primary)); opacity: .35; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 40px; padding-bottom: 40px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 103px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--teal);
}
.timeline .yr { font-family: var(--serif); font-size: 1.9rem; color: var(--primary); line-height: 1; text-align: right; padding-right: 24px; }
.timeline .body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; box-shadow: var(--sh-sm); }
.timeline .body h4 { margin-bottom: .3em; }
.timeline .body p { margin-bottom: .6em; }
.timeline .body p:last-child { margin-bottom: 0; }

/* ---------- People ---------- */
.person { text-align: center; }
.person .av {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-soft), #E3E9F2); display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.6rem; color: var(--primary); border: 4px solid #fff; box-shadow: var(--sh-sm);
}
.person .av img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { margin-bottom: 4px; font-size: 1.2rem; }
.person .role { font-size: .9rem; color: var(--teal); font-weight: 600; }
.person .dept { font-size: .85rem; color: var(--mute); margin-top: 4px; }
.person.lg .av { width: 168px; height: 168px; }

.namelist { columns: 3 220px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.namelist li { break-inside: avoid; padding: 9px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); font-size: .97rem; }

/* ---------- Tables / phage library ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-sm); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F1F4F8; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td .ph { font-family: var(--serif); font-size: 1.2rem; color: var(--primary); }
td code { font-family: ui-monospace, Consolas, monospace; background: var(--teal-soft); color: #00805A; padding: 3px 8px; border-radius: 6px; font-size: .88rem; }

.phage-card { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 26px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.phage-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--teal-soft); }
.phage-card .ph { font-family: var(--serif); font-size: 1.7rem; color: var(--primary); position: relative; z-index: 1; }
.phage-card .host { font-style: italic; color: var(--mute); font-size: .92rem; margin-bottom: 14px; position: relative; z-index: 1; }
.phage-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; position: relative; z-index: 1; }
.phage-card dt { color: var(--mute); }
.phage-card dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border-radius: var(--r); padding: 32px; border: 1px solid var(--line); box-shadow: var(--sh-sm); position: relative; }
.step::before {
  counter-increment: s; content: "Year " counter(s); display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.steps.plain .step::before { content: "Step " counter(s); }

/* ---------- Publications ---------- */
.pub { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 24px; }
.pub:last-child { border-bottom: 0; }
.pub .yr { font-family: var(--serif); font-size: 1.6rem; color: var(--teal); line-height: 1; }
.pub h4 { font-family: var(--sans); font-weight: 600; font-size: 1.06rem; line-height: 1.4; margin-bottom: 6px; }
.pub p { font-size: .93rem; margin-bottom: 4px; }
.pub .src { font-size: .88rem; color: var(--mute); }

/* ---------- Events ---------- */
.event-hero {
  background: linear-gradient(135deg, var(--primary-dd), var(--primary)); border-radius: var(--r-lg); color: #fff;
  padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--sh-lg);
}
.event-hero h2 { color: #fff; }
.event-hero p { color: rgba(255,255,255,.8); }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.event-meta span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.countdown div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 20px 8px; text-align: center; }
.countdown b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--gold); }
.countdown small { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }

.edition { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.edition .top { padding: 26px 28px 0; }
.edition .ed { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--teal-soft); -webkit-text-stroke: 1px var(--teal); }
.edition h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.edition .body { padding: 0 28px 26px; flex: 1; }
.edition ul { padding-left: 18px; margin: 8px 0 0; color: var(--ink-2); font-size: .93rem; }
.edition ul li { margin-bottom: 6px; }
.edition .foot { padding: 14px 28px; background: #F1F4F8; font-size: .86rem; color: var(--mute); border-top: 1px solid var(--line); }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner {
  padding: 14px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600;
  color: var(--ink-2); font-size: .95rem; box-shadow: var(--sh-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(700px 300px at 100% 0%, rgba(172,139,109,.25), transparent 60%), linear-gradient(135deg, var(--teal), #00805A);
  border-radius: var(--r-lg); padding: 64px; color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--sh-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filters button {
  font-family: var(--sans); font-size: .92rem; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); cursor: pointer; transition: .2s;
}
.filters button.active, .filters button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery { columns: 3 280px; column-gap: 18px; }
.g-item { break-inside: avoid; margin: 0 0 18px; border-radius: var(--r); overflow: hidden; cursor: zoom-in; position: relative; box-shadow: var(--sh-sm); background: #E3E8EF; }
.g-item img { width: 100%; transition: transform .5s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 32px 16px 14px; color: #fff; font-size: .86rem;
  background: linear-gradient(transparent, rgba(12,28,54,.85)); opacity: 0; transition: opacity .3s;
}
.g-item:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(6,20,30,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 82vh; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: rgba(255,255,255,.8); margin-top: 14px; font-size: .95rem; }

/* ---------- Forms / contact ---------- */
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.contact-card h4 { margin-bottom: 2px; }
.contact-card p { margin: 0; font-size: .95rem; }
.form { background: #fff; border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh); border: 1px solid var(--line); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  margin-bottom: 18px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,179,125,.15); background: #fff; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .note { font-size: .85rem; color: var(--mute); margin-top: 12px; }

.callout { background: var(--gold-soft); border: 1px solid rgba(172,139,109,.45); border-radius: var(--r); padding: 22px 26px; color: var(--ink-2); }
.callout strong { color: var(--gold-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dd); color: rgba(255,255,255,.7); padding: 80px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer h5 { font-family: var(--sans); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .95rem; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: rgba(255,255,255,.55); }
.site-footer p { color: rgba(255,255,255,.65); font-size: .95rem; }
.motto { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--gold); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .split.wide-l, .event-hero, .cta-band { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 64px 0 104px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .float-card.a { left: 8px; bottom: 16px; }
  .float-card.b { right: 8px; top: 16px; }
  .stat { padding: 22px 18px; }
  .stat .num { font-size: 2.2rem; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .timeline li::before { left: 0; }
  .timeline .yr { text-align: left; padding: 0; }
  .event-hero, .cta-band, .quote, .form { padding: 32px 22px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .countdown b { font-size: 1.8rem; }
}

/* ---------- Overflow guards ---------- */
.split > *, .grid > * { min-width: 0; }
.contact-card p, .site-footer li { overflow-wrap: anywhere; }

/* ---------- Logo ---------- */
.brand img.brand-logo { height: 48px; width: auto; max-width: 70vw; object-fit: contain; display: block; }
.site-footer .brand img.brand-logo { height: 54px; }
.eyebrow { color: var(--teal); }
.page-hero .eyebrow, .hero .eyebrow, .event-hero .eyebrow { color: var(--teal); }
.hero h1 em, .page-hero h1 em { color: var(--teal); }
.motto { color: var(--gold); }
.underline-accent { height: 4px; width: 64px; background: var(--teal); border-radius: 4px; }
.page-hero::after, .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--teal); }
.cta-band { background: radial-gradient(700px 300px at 100% 0%, rgba(172,139,109,.28), transparent 60%), linear-gradient(135deg, var(--primary), var(--primary-dd)); }
.cta-band::after { content: ""; position: absolute; left: 64px; right: 64px; bottom: 0; height: 4px; background: var(--teal); border-radius: 4px 4px 0 0; }
.btn-gold { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(0,179,125,.28); }
.btn-gold:hover { background: #009A6B; color: #fff; }
.hero .pill b { background: var(--teal); color: #fff; }
.stat .num { color: var(--primary); }
.stat { border-top: 4px solid transparent; }
.stat:nth-child(odd) { border-top-color: var(--teal); }
.stat:nth-child(even) { border-top-color: var(--tan); }
.countdown b { color: #fff; }
.countdown div { border-top: 3px solid var(--teal); }
.timeline .yr { color: var(--primary); }
.person .role { color: #00805A; }
.tag { color: #00805A; }
@media (max-width: 680px) { .brand img.brand-logo { height: 40px; } .cta-band::after { left: 22px; right: 22px; } }
