/* ==========================================================================
   ZLCSCVI — Zambia Library, Cultural and Skills Center for the Visually Impaired
   Design tokens: deep blue + warm brown, Playfair Display + Roboto
   Signature motif: the braille cell — used as dividers, bullets, hovers
   Refined: lighter typographic scale, restrained icons/buttons, tighter spacing
   ========================================================================== */

:root{
  --blue:        #0A3D62;
  --blue-dark:   #072B46;
  --blue-tint:   #E7EEF3;
  --brown:       #8B5A2B;
  --brown-dark:  #5C4033;
  --brown-tint:  #F1E7DB;
  --white:       #FFFFFF;
  --off-white:   #F7F4EE;
  --grey:        #DDD7CC;
  --text:        #211C17;
  --text-soft:   #55524C;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Roboto', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(10,61,98,0.08);
  --shadow-md: 0 8px 24px rgba(10,61,98,0.12);
  --shadow-lg: 0 16px 40px rgba(10,61,98,0.18);

  --container: 1200px;
  --header-h: 56px;

  /* spacing scale */
  --space-section: 72px;
  --space-section-tight: 48px;

  /* type scale */
  --fs-h1: clamp(1.9rem, 3.6vw, 2.55rem);
  --fs-h2: clamp(1.55rem, 2.7vw, 2rem);
  --fs-h3: clamp(1.12rem, 1.5vw, 1.32rem);
  --fs-h4: 1.06rem;
  --fs-body: 1rem;
  --fs-small: .85rem;
  --fs-eyebrow: .76rem;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight:700; color: var(--blue-dark);
  line-height:1.22; margin: 0 0 .6em;
  letter-spacing:-0.004em;
}
h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); font-weight:600; line-height:1.3; }
h4{ font-size: var(--fs-h4); font-weight:600; line-height:1.35; }

p{ margin: 0 0 1em; color: var(--text-soft); font-size: var(--fs-body); }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible{
  outline: 3px solid var(--brown);
  outline-offset: 2px;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--blue); color:#fff; padding: 12px 20px; z-index:2000; border-radius:0 0 6px 0;
}
.skip-link:focus{ left:0; top:0; }

/* ---------- Braille motif ---------- */
.braille-dot{ display:inline-block; width:6px; height:6px; border-radius:50%; }
.braille-mark{
  display:inline-grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(3, 8px);
  gap:2px;
  vertical-align:middle;
}
.braille-mark span{ width:6px; height:6px; border-radius:50%; background: var(--brown); opacity:.25; }
.braille-mark span.on{ opacity:1; }

.section-eyebrow{
  display:flex; align-items:center; gap:10px;
  text-transform:uppercase; letter-spacing:.12em; font-size: var(--fs-eyebrow);
  color: var(--brown); font-weight:600; margin-bottom:10px;
}
.divider-braille{
  display:flex; gap:6px; margin: 18px 0;
}
.divider-braille span{
  width:7px; height:7px; border-radius:50%; background: var(--brown);
}
.divider-braille span:nth-child(3n){ background: var(--blue); }
.divider-braille span:nth-child(4n){ opacity:.35; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight:600; font-size:.94rem; line-height:1.2; letter-spacing:.015em;
  border: 2px solid transparent;
  cursor:pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  font-family: var(--font-body);
}
.btn-primary{ background: var(--brown); color:#fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--brown-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline{ background:transparent; border-color: rgba(255,255,255,.7); color:#fff; }
.btn-outline:hover{ background:#fff; color: var(--blue-dark); transform: translateY(-2px); }
.btn-dark{ background: var(--blue); color:#fff; }
.btn-dark:hover{ background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: var(--header-h);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 30px rgba(10,61,98,.06);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .container{
  height:100%; display:flex; align-items:center; justify-content:space-between;
  position:relative;
}
.site-header.scrolled{
  background: rgba(255,255,255,.72);
  box-shadow: 0 4px 30px rgba(10,61,98,.12);
  border-bottom-color: rgba(200,210,220,.3);
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:36px; width:auto; }

.main-nav ul{ display:flex; gap:22px; align-items:center; }
.main-nav a{
  font-weight:500; font-size:.88rem; color: var(--blue-dark);
  position:relative; padding: 4px 2px;
  transition: color .25s ease;
}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background: var(--brown); transition: width .3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after{ width:100%; }
.main-nav a.active{ color: var(--brown); }

.hamburger{
  display:none; flex-direction:column; justify-content:space-between;
  width:26px; height:18px; background:none; border:none; cursor:pointer; padding:0;
}
.hamburger span{ height:2px; width:100%; background: var(--blue); border-radius:2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height: 78vh;
  display:flex; align-items:center;
  padding: 48px 0;
  margin-top: var(--header-h);
  overflow:hidden;
  background: var(--blue-dark);
}
.hero-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(7,43,70,.92) 20%, rgba(139,90,43,.55) 100%);
}
.hero-content{ position:relative; z-index:2; color:#fff; max-width:700px; }
.hero-content .section-eyebrow{ color: var(--brown-tint); }
.hero-content h1{ color:#fff; font-size: clamp(2rem, 4.2vw, 3.05rem); line-height:1.15; }
.hero-content p{ color: rgba(255,255,255,.88); font-size:1.05rem; max-width:560px; }
.hero-actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }

.page-hero{
  min-height: 38vh; display:flex; align-items:center; margin-top: var(--header-h);
  padding: 56px 0;
  position:relative; background: var(--blue-dark); color:#fff; overflow:hidden;
}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 15% 20%, rgba(139,90,43,.4), transparent 55%), var(--blue-dark);
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color:#fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.page-hero p{ color: rgba(255,255,255,.85); max-width:560px; }
.breadcrumb{ font-size:.78rem; color: var(--brown-tint); letter-spacing:.08em; text-transform:uppercase; margin-bottom:10px; }
.breadcrumb a{ color: var(--brown-tint); border-bottom:1px solid rgba(255,255,255,.3); }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }
.reveal-1{ transition-delay:.1s; }
.reveal-2{ transition-delay:.22s; }
.reveal-3{ transition-delay:.34s; }
.reveal-4{ transition-delay:.46s; }

/* page load fade */
body.page-loading{ opacity:0; }
body.page-loaded{
  opacity:1; transition: opacity .5s ease;
}
.pl-item{ opacity:0; transform: translateY(16px); animation: pageLoad .7s ease forwards; }
@keyframes pageLoad{ to{ opacity:1; transform:translateY(0);} }

/* ---------- Sections ---------- */
section{ padding: var(--space-section) 0; }
.section-tight{ padding: var(--space-section-tight) 0; }
.bg-off{ background: var(--off-white); }
.bg-blue{ background: var(--blue); color:#fff; }
.bg-blue h2, .bg-blue h3{ color:#fff; }
.bg-blue p{ color: rgba(255,255,255,.82); }
.bg-tint{ background: var(--blue-tint); }
.bg-brown-tint{ background: var(--brown-tint); }

.section-head{ max-width:660px; margin-bottom:36px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Stats & Telemetry (Assistive Tech Design) ---------- */
.section-stats{
  background: #995c5c;
  padding: var(--space-section) 0;
  border-top: 1px solid rgba(10,61,98,0.06);
  border-bottom: 1px solid rgba(10,61,98,0.06);
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card{
  position: relative;
  text-align: left;
  padding: 24px 22px;
  background: #ffffff;
  border: 1px solid #E1E7EC;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(10, 61, 98, 0.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.stat-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at top right, rgba(10, 61, 98, 0.08), transparent 70%);
  pointer-events: none;
}

.stat-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(10, 61, 98, 0.1);
  border-color: #CBD7E2;
  border-top-color: var(--brown);
}

.stat-tech-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E5ECF0;
}

.tech-indicator{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
}

.tech-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1021b9;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  display: inline-block;
}

.tech-tag{
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--brown);
  opacity: 0.75;
  user-select: none;
}

.stat-num{
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.stat-label{
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Cards / grids ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap:36px; align-items:center; }
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }

.card{
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow:hidden; transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(10,61,98,.06);
}
.card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-body{ padding: 22px 22px; }
.card img{ width:100%; height:190px; object-fit:cover; }

.dept-card{
  background:#fff; border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--brown);
  transition: transform .3s ease, box-shadow .3s ease;
}
.dept-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dept-icon{
  width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--blue-tint); color: var(--blue); font-size:1.15rem; margin-bottom:14px;
}
.dept-card:nth-child(2n) .dept-icon{ background: var(--brown-tint); color: var(--brown); }

/* ---------- Home preview links ---------- */
.dept-preview-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
.dept-mini{
  display:block; background:#fff; border-radius:var(--radius); padding:22px 18px; text-align:center;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.dept-mini:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--blue); }
.dept-mini:hover .dept-icon{ background: rgba(255,255,255,.15); color:#fff; }
.dept-mini:hover h4, .dept-mini:hover p{ color:#fff; }
.dept-mini .dept-icon{ margin: 0 auto 12px; }

/* ---------- Portfolio ---------- */
.portfolio-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.portfolio-item{
  position:relative; border-radius: var(--radius); overflow:hidden; cursor:pointer;
  box-shadow: var(--shadow-sm);
}
.portfolio-item img{ width:100%; height:240px; object-fit:cover; transition: transform .5s ease; }
.portfolio-item:hover img{ transform: scale(1.06); }
.portfolio-overlay{
  position:absolute; inset:0; background: linear-gradient(0deg, rgba(7,43,70,.92), transparent 60%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:18px;
  opacity:0; transition: opacity .3s ease;
}
.portfolio-item:hover .portfolio-overlay{ opacity:1; }
.portfolio-overlay h4{ color:#fff; margin-bottom:4px; }
.portfolio-overlay span{ color: var(--brown-tint); font-size:.8rem; }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; background:rgba(7,10,15,.92); z-index:3000;
  display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden;
  transition: opacity .35s ease; padding: 30px;
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:88vw; max-height:80vh; border-radius:6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption{ color:#fff; text-align:center; margin-top:14px; font-family: var(--font-display); font-size:1.05rem; }
.lightbox-close{
  position:absolute; top:22px; right:28px; background:none; border:none; color:#fff; font-size:1.6rem; cursor:pointer; line-height:1;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); background: rgba(255,255,255,.12); border:none; color:#fff;
  width:44px; height:44px; border-radius:50%; font-size:1.3rem; cursor:pointer; transition: background .25s ease;
}
.lightbox-nav:hover{ background: var(--brown); }
.lightbox-prev{ left:22px; } .lightbox-next{ right:22px; }

/* ---------- Articles ---------- */
.article-card .card-body span.date{
  font-size:.74rem; text-transform:uppercase; letter-spacing:.07em; color: var(--brown); font-weight:600;
}
.read-more{ display:inline-flex; align-items:center; gap:6px; color: var(--blue); font-weight:600; margin-top:8px; font-size:.9rem; }
.read-more:hover{ color: var(--brown); }

/* ---------- Article enhancements ---------- */
.article-category{
  display:inline-block; background: var(--blue-tint); color: var(--blue); padding: 4px 10px;
  border-radius: 3px; font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  margin-bottom:8px;
}
.article-author{
  display:block; font-size:.78rem; color: var(--text-soft); margin-bottom:8px; font-style:italic;
}
.article-card .card-body .date{
  margin-left: 8px;
}

/* ---------- Donation section ---------- */
.donate-highlight{
  background: linear-gradient(135deg, var(--brown-tint), #fff);
  border: 2px solid var(--brown);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.donate-highlight h3{ color: var(--brown-dark); }
.donate-highlight p{ max-width: 540px; margin-left:auto; margin-right:auto; }
.donate-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:22px; }

/* ---------- Acknowledgement band ---------- */
.acknowledgement-band{
  background: var(--blue-tint);
  border-top: 3px solid var(--blue);
  padding: 48px 0;
  text-align: center;
}
.acknowledgement-band p{
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
}
.acknowledgement-band .section-eyebrow{
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap:40px; align-items:start; }
.info-item{ display:flex; gap:14px; margin-bottom:22px; }
.info-icon{
  width:40px; height:40px; border-radius:50%; background: var(--blue-tint); color: var(--blue);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1rem;
}
.form-group{ margin-bottom:16px; }
.form-group label{ display:block; font-weight:600; margin-bottom:6px; font-size:.88rem; color: var(--blue-dark); }
.form-group input, .form-group textarea{
  width:100%; padding:12px 14px; border:1px solid var(--grey); border-radius: var(--radius);
  font-family: var(--font-body); font-size:.95rem; background:#fff; transition: border-color .25s ease, box-shadow .25s ease;
}
.form-group input:focus, .form-group textarea:focus{
  outline:none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(139,90,43,.15);
}
.form-group.error input, .form-group.error textarea{ border-color:#b3261e; }
.field-error{ color:#b3261e; font-size:.8rem; margin-top:5px; display:none; }
.form-group.error .field-error{ display:block; }
.form-msg{
  padding:14px 16px; border-radius: var(--radius); margin-top:16px; display:none; font-weight:500; font-size:.92rem;
}
.form-msg.show{ display:block; }
.form-msg.success{ background:#e6f4ea; color:#1e7a34; border:1px solid #b7e3c3; }
.form-msg.error{ background:#fbe9e7; color:#b3261e; border:1px solid #f3c2bd; }
.map-wrap{ margin-top:22px; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.map-placeholder{
  height:240px; background: var(--blue-tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="2" fill="%230A3D62" opacity="0.15"/></svg>');
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; color: var(--blue-dark); text-align:center; padding:20px;
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--blue-dark); color: rgba(255,255,255,.78); padding: 56px 0 22px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:32px; }
.footer-grid h4{ color:#fff; font-size:1rem; margin-bottom:14px; }
.footer-grid img{ height:40px; margin-bottom:12px; }
.footer-grid p{ color: rgba(255,255,255,.65); font-size:.9rem; }
.footer-links li{ margin-bottom:8px; }
.footer-links a{ color: rgba(255,255,255,.72); transition: color .25s ease, padding-left .25s ease; font-size:.9rem; }
.footer-links a:hover{ color: var(--brown-tint); padding-left:4px; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); margin-top:36px; padding-top:18px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:.82rem; color: rgba(255,255,255,.55);
}
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:34px; height:34px; border-radius:50%; background: rgba(255,255,255,.08); display:flex; align-items:center;
  justify-content:center; font-size:.95rem; transition: background .25s ease, transform .25s ease;
}
.social-row a:hover{ background: var(--brown); transform: translateY(-2px); }

/* ---------- Floating buttons ---------- */
.whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:1500;
  width:52px; height:52px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 6px 18px rgba(0,0,0,.22);
  font-size:1.4rem; transition: transform .3s ease, box-shadow .3s ease;
  animation: floatPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover{ transform: scale(1.06); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
@keyframes floatPulse{ 0%,100%{ box-shadow:0 6px 18px rgba(37,211,102,.28);} 50%{ box-shadow:0 6px 22px rgba(37,211,102,.45);} }

.back-to-top{
  position:fixed; right:22px; bottom:86px; z-index:1400;
  width:42px; height:42px; border-radius:50%; background: var(--blue); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:.95rem;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease;
  box-shadow: var(--shadow-sm);
}
.back-to-top.show{ opacity:1; visibility:visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--brown); }

/* ---------- Icon sizing (font icons + inline SVG) ---------- */
/* Font-based icons scale with font-size; inline SVGs are pinned to 1em so both behave identically. */
.dept-icon svg,
.info-icon svg,
.social-row svg,
.whatsapp-float svg,
.back-to-top svg,
.lightbox-close svg,
.lightbox-nav svg{
  width: 1em;
  height: 1em;
  display: block;
}

/* ---------- Misc components ---------- */
.leader-card{ display:flex; gap:20px; align-items:center; background:#fff; padding:22px; border-radius:var(--radius); box-shadow: var(--shadow-sm); }
.leader-card img{ width:96px; height:96px; border-radius:50%; object-fit:cover; }
/* ---------- Milestones (Assistive Tech Style) ---------- */
.section-milestones{
  background: #ffffff;
  padding: var(--space-section) 0;
  border-top: 1px solid rgba(10,61,98,0.06);
  border-bottom: 1px solid rgba(10,61,98,0.06);
}

.milestones{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.milestone{
  position: relative;
  text-align: left;
  padding: 24px 22px;
  background: #ffffff;
  border: 1px solid #E1E7EC;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(10, 61, 98, 0.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.milestone::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at top right, rgba(10, 61, 98, 0.08), transparent 70%);
  pointer-events: none;
}

.milestone:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(10, 61, 98, 0.1);
  border-color: #CBD7E2;
  border-top-color: var(--brown);
}

.milestone strong{
  display: block;
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.milestone-label{
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.cta-band{
  background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color:#fff; text-align:center; padding: 56px 0;
  position:relative; overflow:hidden;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,.82); max-width:540px; margin-left:auto; margin-right:auto; }

.involve-card{ background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.involve-card img{ height:200px; object-fit:cover; }

/* lazy fade-in for images */
img[loading="lazy"]{ opacity:0; transition: opacity .6s ease; }
img.loaded{ opacity:1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .dept-preview-grid{ grid-template-columns: repeat(2,1fr); }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .milestones{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px){
  :root{ --header-h: 52px; --space-section: 56px; --space-section-tight: 40px; }

  .main-nav{
    position:fixed; top: var(--header-h); left:0; right:0; z-index:999;
    background: rgba(255,255,255,.18); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255,255,255,.2);
    max-height:0; overflow:hidden;
    transition: max-height .35s ease, box-shadow .35s ease;
    box-shadow: none;
  }
  .main-nav.open{ max-height:520px; box-shadow: 0 8px 20px rgba(10,61,98,.14); }
  .main-nav ul{ flex-direction:column; gap:0; padding:6px 0 14px; }
  .main-nav li{ border-bottom:1px solid var(--grey); }
  .main-nav li:last-child{ border-bottom:none; }
  .main-nav a{ display:flex; align-items:center; padding:13px 20px; font-size:.95rem; transition: background .2s ease, color .2s ease; }
  .main-nav a::after{ display:none; }
  .main-nav a:hover{ background: rgba(231,238,243,.7); color: var(--brown); }
  .main-nav a.active{ background: rgba(241,231,219,.7); color: var(--brown); border-left:3px solid var(--brown); padding-left:17px; }
  .main-nav .btn-primary{ margin:10px 20px 6px; display:block; width:calc(100% - 40px); padding:12px 24px; text-align:center; border-radius: var(--radius); }
  .main-nav .btn-primary:hover{ background: var(--brown-dark); }

  .hamburger{ display:flex; z-index:1001; }

  .hero{ min-height: 72vh; padding: 40px 0; }
  .hero-content p{ font-size:1rem; }
  .page-hero{ min-height: 32vh; padding: 44px 0; }

  .grid-3, .grid-4, .dept-preview-grid, .portfolio-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .milestones{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .leader-card{ flex-direction:column; text-align:center; }

  .card img{ height:180px; }
  .portfolio-item img{ height:220px; }

  .whatsapp-float{ width:46px; height:46px; right:16px; bottom:16px; font-size:1.2rem; }
  .back-to-top{ width:40px; height:40px; right:16px; bottom:72px; font-size:.9rem; }
}

@media (max-width: 520px){
  .stats-grid, .milestones{ grid-template-columns: 1fr; }
  .stat-card, .milestone{ padding: 18px 16px; }
  .stat-num, .milestone strong{ font-size: 2rem; }
}
