@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --navy:      #0A1E3C;
  --teal:      #70B7C0;
  --teal-dark: #256A73;
  --orange:    #EF762F;
  --orange-lt: #F99D6B;
  --bg:        #F5F6F8;
  --bg-white:  #FFFFFF;
  --bg-card:   #FFFFFF;
  --border:    #E2E8EE;
  --text-dark: #0A1E3C;
  --text-mid:  #3D5068;
  --text-muted:#7A8EA8;
  --shadow-sm: 0 2px 8px rgba(10,30,60,.06);
  --shadow-md: 0 6px 24px rgba(10,30,60,.10);
  --shadow-lg: 0 16px 48px rgba(10,30,60,.14);
  --radius:    16px;
  --radius-sm: 8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── UTILITIES ───────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.text-teal   { color: var(--teal-dark); }
.text-orange { color: var(--orange); }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .9rem; border-radius: 999px; font-size: 0.85rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
/* opt-out for labels that carry a product name, so 'Oftac' isn't shouted */
.no-caps { text-transform: none; letter-spacing: .02em; }
.chip-teal   { background: rgba(112,183,192,.15); color: var(--teal-dark); border: 1px solid rgba(112,183,192,.4); }
.chip-orange { background: rgba(239,118,47,.12);  color: var(--orange);    border: 1px solid rgba(239,118,47,.35); }
.chip-navy   { background: rgba(10,30,60,.08);    color: var(--navy);      border: 1px solid rgba(10,30,60,.18); }

/* ─── NAV ─────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { height: 32px; }
.nav-logo-text {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 1rem; font-weight: 500; color: var(--text-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: .5rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600 !important; transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ─── HERO ─────────────────────────────────────────────── */
#hero {
  padding: 140px 0 96px;
  background: linear-gradient(160deg, #fff 0%, #EEF3F8 60%, #D8ECF0 100%);
  position: relative; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--teal); top: -120px; right: -100px; }
.hero-orb-2 { width: 320px; height: 320px; background: var(--orange); bottom: -80px; left: -60px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero-eyebrow {
  font-size: 0.9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.15;
  color: var(--navy); letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.hero-title span { color: var(--teal-dark); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-mid); line-height: 1.7;
  margin-bottom: 2rem; max-width: 480px;
}
.hero-pills { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff; padding: .8rem 1.75rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 1.05rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,106,115,.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--navy); color: var(--navy); padding: .8rem 1.75rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 1.05rem;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.hero-visual { display: flex; justify-content: center; }
.hero-card-stack { position: relative; width: 100%; max-width: 420px; }
.hero-prog-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  transition: transform var(--transition);
}
.hero-prog-card:hover { transform: translateY(-4px); }
.hero-prog-card + .hero-prog-card { margin-top: 1rem; }
.prog-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; margin-bottom: 1rem; }
.prog-card-icon.teal { background: rgba(112,183,192,.18); }
.prog-card-icon.orange { background: rgba(239,118,47,.15); }
.prog-card-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.prog-card-desc { font-size: 0.95rem; color: var(--text-muted); }
.prog-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: .35rem;
}
.prog-card-top .chip { flex-shrink: 0; }

/* ─── SECTION HEADERS ─────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  font-size: 0.88rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
  color: var(--navy); letter-spacing: -.02em; line-height: 1.2;
}
.section-sub { font-size: 1.05rem; color: var(--text-mid); max-width: 580px; margin: 1rem auto 0; }

/* ─── DIVIDER ─────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── PROGRAMS OVERVIEW ───────────────────────────────── */
#programs { background: var(--bg-white); }
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.prog-card {
  border-radius: var(--radius); padding: 2.5rem;
  border: 1px solid var(--border); background: var(--bg);
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.prog-card.teal::before { background: linear-gradient(90deg, var(--teal-dark), var(--teal)); }
.prog-card.orange::before { background: linear-gradient(90deg, var(--orange), var(--orange-lt)); }
.prog-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; }
.prog-tag { font-size: 2.5rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.prog-tag.teal { color: var(--teal-dark); }
.prog-tag.orange { color: var(--orange); }
.prog-card-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.prog-card-text { font-size: 1rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem; }
.prog-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stat { }
.stat-val { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.stat-lbl { font-size: 0.85rem; color: var(--text-muted); margin-top: .1rem; }
.prog-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 1rem; font-weight: 600; margin-top: 1.5rem;
  transition: gap var(--transition);
}
.prog-link.teal { color: var(--teal-dark); }
.prog-link.orange { color: var(--orange); }
.prog-link:hover { gap: .7rem; }

/* ─── PROGRAM DETAIL SECTIONS ─────────────────────────── */
.prog-detail { background: var(--bg); }
.prog-detail.alt { background: var(--bg-white); }
.prog-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.prog-detail-inner.flip { direction: rtl; }
.prog-detail-inner.flip > * { direction: ltr; }
.prog-label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.prog-label.teal { color: var(--teal-dark); }
.prog-label.orange { color: var(--orange); }
.prog-detail-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800;
  color: var(--navy); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 1.25rem;
}
.prog-detail-text { font-size: 1.05rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.5rem; }
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.bullet-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; color: var(--text-mid); }
.bullet-list li::before {
  content: ''; flex-shrink: 0; width: 8px; height: 8px;
  border-radius: 50%; margin-top: .45rem;
}
.bullet-list.teal li::before { background: var(--teal); }
.bullet-list.orange li::before { background: var(--orange); }

/* partner badge */
.partner-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .75rem 1.25rem;
  margin-top: .5rem; box-shadow: var(--shadow-sm);
}
.partner-badge-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.partner-badge-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); }

/* data card */
.data-panel {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden;
}
.data-panel-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.data-panel-title { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.data-panel-body { padding: 1.5rem; }
.data-panel img { border-radius: var(--radius-sm); width: 100%; }
.data-panel-caption { font-size: 0.85rem; color: var(--text-muted); margin-top: .75rem; text-align: center; line-height: 1.6; }

/* highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(112,183,192,.1), rgba(37,106,115,.08));
  border: 1px solid rgba(112,183,192,.35);
  border-radius: var(--radius); padding: 1.5rem;
  margin-top: 1.5rem;
}
.highlight-box.orange {
  background: linear-gradient(135deg, rgba(239,118,47,.08), rgba(249,157,107,.06));
  border-color: rgba(239,118,47,.3);
}
.highlight-box-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-dark); margin-bottom: .5rem; }
.highlight-box.orange .highlight-box-label { color: var(--orange); }
.highlight-box-text { font-size: 1rem; color: var(--text-dark); line-height: 1.6; font-weight: 500; }

/* ─── TIMELINE ─────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--teal), var(--border));
}
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -1.85rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-white); border: 3px solid var(--teal); flex-shrink: 0;
}
.tl-dot.filled { background: var(--teal); }
.tl-dot.future { border-color: var(--border); }
.tl-year { font-size: 0.85rem; font-weight: 700; color: var(--teal-dark); letter-spacing: .06em; margin-bottom: .2rem; }
.tl-event { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: .15rem; }
.tl-detail { font-size: 0.9rem; color: var(--text-muted); }

/* ─── BNSO ─────────────────────────────────────────────── */
#bnso {
  background: linear-gradient(135deg, var(--navy) 0%, #0D2D52 100%);
  color: #fff;
}
#bnso .section-eyebrow { color: var(--teal); }
#bnso .section-title { color: #fff; }
#bnso .section-sub { color: rgba(255,255,255,.65); }
/* single centred column: the section header is centred, so the body follows the same axis */
.bnso-body { max-width: 780px; margin: 0 auto; text-align: center; }
.bnso-person { max-width: 380px; margin: 0 auto; }
.bnso-info { }
.bnso-info-text { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.75; }
.bnso-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm); padding: .65rem 1.15rem;
  font-size: 1rem; font-weight: 600; color: #fff;
}
/* facts sit in one wrapped row under both columns, not stacked with <br> */
.bnso-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
  margin: 2.5rem 0 3rem;
}
.bnso-col-label {
  text-align: center; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.45); margin-bottom: 1rem;
}
.bnso-link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: .7rem 1.25rem;
  font-size: 0.95rem; font-weight: 600; color: #fff;
  transition: background var(--transition);
}
.bnso-link:hover { background: rgba(255,255,255,.22); }
.bnso-person {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.25rem; transition: background var(--transition);
}
.bnso-person:hover { background: rgba(255,255,255,.12); }
.bnso-person-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.bnso-person-role { font-size: 0.88rem; color: rgba(255,255,255,.55); }

/* ─── TEAM ─────────────────────────────────────────────── */
#team { background: var(--bg-white); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-founder { text-align: center; margin-bottom: 3.5rem; }
.founder-card {
  display: inline-block; max-width: 360px; text-align: center;
  background: var(--bg); border-radius: var(--radius); padding: 2.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.founder-photo-wrap {
  width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 1.25rem; border: 3px solid var(--teal);
  background: var(--bg-white);
}
.founder-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.founder-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .5rem; }
.founder-name { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.founder-title { font-size: 0.9rem; color: var(--teal-dark); font-weight: 600; margin-bottom: .75rem; }
.founder-bio { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.board-label {
  text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem;
}
.board-card {
  background: var(--bg); border-radius: var(--radius); padding: 1.75rem 1.5rem;
  border: 1px solid var(--border); text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.board-avatar {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 1rem; background: var(--bg-white); border: 2px solid var(--border);
}
.board-avatar img { width: 100%; height: 100%; object-fit: cover; }
.board-avatar-initials {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
}
.board-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.board-role { font-size: 0.85rem; color: var(--teal-dark); font-weight: 600; margin-bottom: .5rem; }
.board-bio { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ─── CONTACT ─────────────────────────────────────────── */
#contact { background: var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info-block { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(112,183,192,.15); border: 1px solid rgba(112,183,192,.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.contact-info-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .25rem; }
.contact-info-val { font-size: 1.05rem; color: var(--navy); font-weight: 500; line-height: 1.6; }
.contact-form-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-mid); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .7rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: inherit; font-size: 1rem; color: var(--text-dark);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(112,183,192,.2); }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; padding: .85rem; background: var(--navy); color: #fff;
  border: none; border-radius: var(--radius-sm); font-family: inherit;
  font-size: 1.05rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.form-submit:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,.65);
  padding: 2.5rem 0; font-size: 0.95rem;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: .6rem; }
.footer-logo img { height: 24px; opacity: .85; }
.footer-logo-text { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.8); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--teal); }

/* ─── SCROLL ANIMATIONS ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .programs-grid { grid-template-columns: 1fr; }
  .prog-detail-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .prog-detail-inner.flip { direction: ltr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: #fff; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); gap: 1.25rem; box-shadow: var(--shadow-md); }
  .nav-burger { display: flex; }
  .section-pad { padding: 64px 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── FIGURE LIGHTBOX ─────────────────────────────────── */
img.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,16,34,.94); padding: 4rem 1.5rem 2rem;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  max-width: 100%; max-height: 100%;
}
.lightbox-figure img {
  max-width: min(1400px, 94vw); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  background: #fff; border-radius: 10px; padding: .85rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-caption {
  color: rgba(255,255,255,.82); font-size: 0.9rem; line-height: 1.65;
  max-width: 820px; text-align: center;
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }
@media (max-width: 640px) {
  .lightbox { padding: 4rem .75rem 1.5rem; }
  .lightbox-figure img { max-height: 66vh; }
  .lightbox-caption { font-size: 0.85rem; }
}

/* ─── BACKGROUND TEXTURE ──────────────────────────────────
   Faint molecular lattice + nano-droplet rings. Two tiling SVGs
   (~1.5 KB each). Tune visibility with the two opacity values below. */
#hero, .page-hero, #bnso, .science-section.dark, footer {
  position: relative; z-index: 0;
}
#hero::before, .page-hero::before,
#bnso::before, .science-section.dark::before, footer::before {
  content: ''; position: absolute; inset: 0;
  z-index: -1; pointer-events: none;
  background-repeat: repeat, repeat;
  background-position: 30% -10%, center;
  background-size: 480px 480px, 55.4256px 96px;
}
/* light sections: deep-teal linework, barely perceptible */
#hero::before, .page-hero::before {
  background-image: url('assets/images/texture-droplets-dark.svg'),
                    url('assets/images/texture-lattice-dark.svg');
  opacity: .08;
}
/* dark sections: pale teal linework */
#bnso::before, .science-section.dark::before, footer::before {
  background-image: url('assets/images/texture-droplets-teal.svg'),
                    url('assets/images/texture-lattice-teal.svg');
  opacity: .16;
}
@media (max-width: 640px) {
  #hero::before, .page-hero::before,
  #bnso::before, .science-section.dark::before, footer::before {
    background-size: 340px 340px, 44px 76px;
  }
}
