@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --ink:        #0d2349;
  --text:       #000000;
  --deep-blue:  #163d7f;
  --brand-blue: #2157b7;
  --brand-red:  #c72f2b;
  --brand-red-soft: #ef574d;
  --slate:      #586f8a;
  --paper:      #f4f7fb;
  --paper-dim:  #edf2fa;
  --white:      #ffffff;
  --line:       #d9e2f0;
  --rust:       #c72f2b;
  --accent-glow: rgba(199, 47, 43, 0.12);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 100%;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a{ color: inherit; text-decoration: none; }

.wrap{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1{ font-size: clamp(2.4rem, 5vw, 6rem); font-weight: 500; }
.hero-highlight{
  color: var(--brand-red);
  display: inline-block;
  text-shadow: 0 2px 0 rgba(199, 47, 43, 0.08);
}
h2{ font-size: clamp(1.7rem, 3.2vw, 3.4rem); }
h3{ font-size: clamp(1.15rem, 1.4vw, 1.5rem); font-weight: 600; }

p{ margin: 0 0 1em;}

.lede{ font-size: clamp(1.15rem, 1.5vw, 1.7rem); color: var(--text); text-align: justify; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover{ background: var(--ink); color: var(--paper); }

.btn-solid{
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--paper);
}
.btn-solid:hover{ background: var(--deep-blue); border-color: var(--deep-blue); }

.btn-gold{
  border-color: var(--brand-red);
  color: var(--paper);
}
.btn-gold:hover{ background: var(--brand-red); color: var(--white); border-color: var(--brand-red); }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(110deg, var(--brand-red) 0%, var(--brand-red) 25%, var(--brand-blue) 62%, var(--deep-blue) 100%);
  box-shadow: 0 8px 24px rgba(13, 35, 73, 0.14);
  animation: navEnter 0.7s ease-out both;
}
.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  background: transparent;
  border-radius: 0 0 12px 12px;
}
.logo{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-align: left;
  padding: 9px 18px 10px 12px;
  margin-top: -1px;
  margin-bottom: -1px;
  background: var(--white);
  border-radius: 16px 16px 16px 16px;
  box-shadow: 0 8px 18px rgba(13, 35, 73, 0.12);
}
.logo img{
  height: 4.75rem;
  width: auto;
  display: block;
  animation: logoFloat 5s ease-in-out 0.8s infinite;
}
.logo-name{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: navy;
  line-height: 1.1;
}
.logo-name span{
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: red;
  margin-top: 2px;
}
.nav-links{
  display: flex;
  gap: clamp(1rem, 2vw, 2.125rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
}
.nav-links a{
  position: relative;
  font-size: 1rem;
  padding-bottom: 4px;
  color: var(--white);
  transition: color 0.2s ease;
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
  pointer-events: none;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); font-weight:bolder; font-size: larger; }
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-toggle{ display: none; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: clamp(64px, 12vh, 120px) 0 clamp(56px, 8vh, 90px);
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  text-align: justify;
  position: relative;
  z-index: 2;
  animation: contentRise 0.8s ease-out 0.12s both;
}
.hero h1{ text-align: left; }
.hero-logo{
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-inline: auto;
}
.why-grid{
  grid-template-columns: 1fr 2fr 1fr;
  align-items: start;
}
.about-grid{
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 24px;
}
.about-grid > div{
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(13, 35, 73, 0.06);
  padding: 30px 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-grid > div::before{
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-blue) 72%, var(--deep-blue));
}
.about-grid > div:hover{
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(13, 35, 73, 0.13);
}
.hero .eyebrow{
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 14px;
  font-weight: 500;
}
.hero-cta{
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.contour{
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section{
  padding: clamp(56px, 9vh, 104px) 0;
}
.section-alt{
  background: var(--paper-dim);
}
.section-ink{
  background: var(--paper);
  color: var(--paper);
  padding-top: 28px;
  padding-bottom: 28px;
}
.section-ink .wrap{
  background: var(--ink);
  border-radius: 12px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.section-ink h2, .section-ink h3{ color: var(--white); }
.section-ink p{ color: #b7c0cb; }

.section-head{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 0;
  padding-bottom: 26px;
}
.section-head::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-blue) 72%, var(--deep-blue));
}
.section-head::before{
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--brand-red);
  border: 2px solid var(--paper);
  border-radius: 2px;
  z-index: 1;
}
.section-ink .section-head::before{ border-color: var(--ink); }
.section-ink .section-head{ border-bottom-color: #2a3b4f; }
.section-ink .section-head::after{
  background: linear-gradient(90deg, var(--brand-red-soft) 0 25%, var(--brand-blue) 72%, #5f88c4);
}
.section-head .index{
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--brand-red);
}

/* ---------- Grids / cards ---------- */
.grid{
  display: grid;
  gap: 24px;
  background: transparent;
  border: 0;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.cell{
  background: var(--paper);
  padding: 34px 32px;
}
.section-alt .cell{ background: var(--paper-dim); }

.grid > .cell{
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(13, 35, 73, 0.06);
  padding: 30px 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.grid > .cell::before{
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-blue) 72%, var(--deep-blue));
}
.grid > .cell:hover{
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(13, 35, 73, 0.13);
}

.cell .num{
  font-family: var(--serif);
  color: var(--brand-red);
  font-size: 1rem;
  display: block;
  margin-bottom: 14px;
}

/* ---------- Stats row ---------- */
.stat-row{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.7fr 1fr;
}
.stat{
  background: var(--paper);
  padding: 30px 26px;
}
.stat .n{
  font-family: var(--serif);
  font-size: clamp(2rem, 2.6vw, 3.2rem);
  color: var(--deep-blue);
  display: block;
  align-items: center;
  overflow-wrap: anywhere;
}
.stat .n.stat-n-text{
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  line-height: 1.2;
}
.stat .l{
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
}

/* ---------- Leadership ---------- */
.leadership-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}
.leader{
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.leader .photo{
  width: 65%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--deep-blue), var(--brand-blue));  
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-family: var(--serif);
  font-size: 2.4rem;
  overflow: hidden;
}
.leader .photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Team ---------- */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.person{
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.person .photo{
  aspect-ratio: 4/5;
background: linear-gradient(160deg, var(--deep-blue), var(--brand-blue));  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-family: var(--serif);
  font-size: 2.4rem;
  overflow: hidden;
}
.person .photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-head{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.team-intro h3{ margin-bottom: 2px; }
.team-intro .team-designation{
  display: block;
  font-size: 0.98rem;
  color: var(--brand-red);
  font-weight: 600;
}
.team-info{
  flex: none;
  height: 38px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--deep-blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.team-info:hover{
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}
.team-info svg{ flex: none; }
.team-info-label{ white-space: nowrap; }

/* Team profile popup */
.modal-team{
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.team-profile-head{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.team-profile-photo{
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-profile-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-fallback{
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold-dim);
}
.modal-team .modal-title{ margin: 0 0 2px; padding-right: 40px; }
.modal-team .team-designation{
  display: block;
  color: var(--brand-red);
  font-weight: 600;
}
.team-detail{
  border-top: 1px solid var(--line);
  padding: 14px 0 4px;
}
.team-detail h4{
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.team-detail-list{
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.6;
}
.team-detail-list li{ margin-bottom: 6px; }
.team-detail-empty{
  color: var(--slate);
  font-size: 0.96rem;
  font-style: italic;
  margin: 0 0 10px;
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
}
.field{
  margin-bottom: 20px;
}
.field label{
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 6px;
}
.field input, .field textarea{
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--text);
}
.field input:focus, .field textarea:focus{
  outline: 2px solid var(--brand-red);
  outline-offset: 1px;
}
.field textarea{ resize: vertical; min-height: 130px; }
.field-error{
  margin: 6px 0 0;
  color: var(--brand-red);
  font-size: 0.85rem;
  font-weight: 600;
}
.field-invalid input, .field-invalid textarea{
  border-color: var(--brand-red);
}
/* Honeypot: visually hidden, but still present in the DOM for bots. */
.hp-field{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-status{
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
}
.contact-status:empty{ display: none; }
.contact-status[data-kind="error"]{ color: var(--brand-red); }
.contact-status[data-kind="success"]{ color: #247044; }
.form-error{
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100;
  max-width: min(90vw, 520px);
  margin: 0 !important;
  padding: 14px 22px;
  border: 1px solid #a51f1c;
  background: var(--brand-red);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 28px rgba(13, 35, 73, 0.24);
  transform: translateX(-50%);
  animation: formAlertEnter 0.25s ease-out both;
}
.form-success{
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100;
  max-width: min(90vw, 520px);
  margin: 0 !important;
  padding: 14px 22px;
  border: 1px solid #247044;
  background: #2f8f55;
  color: var(--white);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 28px rgba(13, 35, 73, 0.24);
  transform: translateX(-50%);
  animation: formAlertEnter 0.25s ease-out both;
}

.form-success{ animation: fadeUp 0.4s ease; }
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(4px); }
  to{ opacity: 1; transform: translateY(0); }
}

.info-block{
  margin-bottom: 26px;
}
.info-block h3{ margin-bottom: 8px; }
.info-block .value{ color: var(--text); font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer{
  background: linear-gradient(110deg, var(--brand-red) 0%, var(--brand-red) 25%, var(--brand-blue) 62%, var(--deep-blue) 100%);
  color: var(--white);
  padding: 0;
}
.site-footer .wrap{
  background: transparent;
  padding-top: 56px;
  padding-bottom: 28px;
  border-radius: 12px 12px 0 0;
}
.footer-logo{
  display: inline-block;
  margin-bottom: 6px;
  padding: 7px 12px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(13, 35, 73, 0.12);
}
.footer-logo img{ height: 5rem; width: auto; display: block; }
.footer-grid{
  font-size: 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h3{ color: var(--white); font-size: 2rem; }
.site-footer p, .site-footer a{ color: var(--white); }
.footer-dept{ font-weight: 600; }
.site-footer a:hover{ color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-links{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.footer-bottom{
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--white);
}

/* ---------- Page header (non-home pages) ---------- */
.page-head{
  position: relative;
  padding: 56px 0 20px;
  border-bottom: 0;
}
.page-head::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-blue) 72%, var(--deep-blue));
}
.page-head::before{
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--brand-red);
  border: 2px solid var(--paper);
  border-radius: 2px;
  z-index: 1;
}
.page-head .wrap{ animation: contentRise 0.75s ease-out both; }
.page-head .eyebrow{ color: var(--brand-red); font-size: 1rem; font-weight: bold; margin-bottom: 10px; }
.page-head h2{ font-size: clamp(1.9rem, 5vw, 4.6rem); }
@media (max-width: 640px){
  .page-head h1{ font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
}

/* ---------- Projects ---------- */
.section-intro{ max-width: 34ch; color: var(--text); margin: 0; }
.project-card{ position: relative; display: flex; flex-direction: column; min-height: 100%; }
.project-card .num{ margin-top: 18px; }
.project-card h3{ max-width: 24ch; }
.project-card p{ color: var(--slate); }
.project-status, .project-focus{
  color: var(--brand-red);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-status{ align-self: flex-start; padding-bottom: 8px; border-bottom: 1px solid var(--brand-red); }
.project-status-complete{ color: var(--deep-blue); border-bottom-color: var(--deep-blue); }
.project-focus{ margin-top: auto; padding-top: 20px; color: var(--deep-blue); letter-spacing: 0.05em; }

/* ---------- Blog ---------- */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(13, 35, 73, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: contentRise 0.65s ease-out both;
}
.blog-card:nth-child(2){ animation-delay: 0.08s; }
.blog-card:nth-child(3){ animation-delay: 0.16s; }
.blog-card:nth-child(4){ animation-delay: 0.24s; }
.blog-card:nth-child(5){ animation-delay: 0.32s; }
.blog-card:nth-child(6){ animation-delay: 0.4s; }
.blog-card::before{
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-blue) 72%, var(--deep-blue));
}
.blog-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(13, 35, 73, 0.13);
}
.blog-card .index{
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brand-red);
}
.blog-card .category{
  margin-bottom: 12px;
  color: var(--brand-blue);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.blog-card h3{ margin-bottom: 12px; }
.blog-card h3 a{
  color: var(--ink);
  transition: color 0.2s ease;
}
.blog-card h3 a:hover{ color: var(--brand-red); }
.blog-card p{ color: var(--slate); }
.blog-card .meta{
  margin-top: auto;
  padding-top: 20px;
  color: var(--slate);
  font-size: 0.82rem;
}
.blog-cover{
  display: flex;
  margin: 0 -28px 26px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--deep-blue), var(--brand-blue));
}
.blog-card.has-cover{ padding-top: 0; }
.blog-cover img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.read-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--deep-blue);
  font-weight: 600;
}
.read-link::after{ content: '→'; transition: transform 0.2s ease; }
.read-link:hover::after{ transform: translateX(4px); }
.blog-banner{
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  background: linear-gradient(110deg, var(--brand-red) 0%, var(--brand-red) 25%, var(--brand-blue) 62%, var(--deep-blue) 100%);
  color: var(--white);
}
.blog-banner::after{
  content: 'RISK';
  position: absolute;
  right: -12px;
  bottom: -42px;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 1;
}
.blog-banner > *{ position: relative; z-index: 1; }
.blog-banner h2{ max-width: 18ch; color: var(--white); }
.blog-banner p{ max-width: 58ch; color: rgba(255, 255, 255, 0.88); }

/* ---------- PDF viewer modal ---------- */
.modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal.open{ display: flex; }
.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(13, 35, 73, 0.62);
  backdrop-filter: blur(2px);
}
.modal-card{
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  background: var(--white);
  border-radius: 14px;
  padding: 22px 22px 16px;
  box-shadow: 0 24px 60px rgba(13, 35, 73, 0.35);
  animation: contentRise 0.28s ease-out both;
}
.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  z-index: 1;
}
.modal-close:hover{
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}
.modal-pdf .modal-title{
  font-size: 1.25rem;
  margin: 0 0 12px;
  padding-right: 46px;
}
.pdf-frame{
  width: 100%;
  height: 74vh;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-dim);
}

/* ---------- Announcement modal ---------- */
.modal-notices{
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-notices .modal-title{
  margin-bottom: 20px;
  padding-right: 46px;
}
.notice-item{
  overflow-wrap: anywhere;
}
.notice-item h4{
  font-size: 1.1rem;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-red);
  display: inline-block;
}
.notice-item + .notice-item{
  position: relative;
  margin-top: 30px;
  padding-top: 30px;
}
.notice-item + .notice-item::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-blue) 72%, var(--deep-blue));
}
.notice-item + .notice-item::after{
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--brand-red);
  border: 2px solid var(--white);
  border-radius: 2px;
}
.notice-image-link{
  display: block;
  margin-bottom: 16px;
}
.notice-image{
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@keyframes navEnter{
  from{ opacity: 0; transform: translateY(-12px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes logoFloat{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-3px) rotate(-1deg); }
}
@keyframes contentRise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes formAlertEnter{
  from{ opacity: 0; transform: translate(-50%, -12px); }
  to{ opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Utility ---------- */
.mt-0{ margin-top: 0; }
.is-hidden{ display: none; }
#more-services{ scroll-margin-top: 100px; }
/* Skip link for keyboard/screen-reader users */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: hwb(54 0% 0%);
  color: var(--text);
  font-weight: 600;
  border: 2px solid var(--text);
}
.skip-link:focus{
  left: 12px;
  top: 12px;
}
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
  .stat-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px){
  .hero-grid, .why-grid, .about-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .leadership-grid{ grid-template-columns: 1fr; }
  .leader .photo{ width: 48%; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .stat-grid{ grid-template-columns: 1fr 1fr; }
  .blog-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px){
  .logo{ padding: 7px 14px 8px 10px; }
  .logo img{ height: 3.5rem; }
  .logo-name{ font-size: 1.12rem; }
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: linear-gradient(150deg, var(--brand-red), var(--brand-blue) 55%, var(--deep-blue));
    flex-direction: column;
    gap: 2px;
    padding: 16px var(--gutter) 26px;
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: 0 18px 24px -18px rgba(13, 35, 73, 0.35);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    padding: 10px 0;
  }
  .nav-links a::after{ bottom: 6px; }
  .nav-links a:hover, .nav-links a.active{ color: var(--white); font-size: 1.05rem; }
  .nav-toggle{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle span{
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
  }
}

@media (max-width: 640px){
  .hero h1{ font-size: clamp(1.9rem, 7.5vw, 2.7rem); }
  .page-head h2{ font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .lede{ font-size: 1.05rem; }
  .logo img{ height: 3rem; }
  .logo-name{ font-size: 1rem; }
  .logo-name span{ font-size: 0.78rem; }
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .stat-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .section-head{ flex-direction: column; align-items: flex-start; }
  .blog-grid{ grid-template-columns: 1fr; }
  .hero-cta{ flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn{ justify-content: center; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .modal-card{ padding: 18px 14px 12px; }
  .pdf-frame{ height: 66vh; min-height: 320px; }
}

@media (max-width: 480px){
  .modal{ padding: 12px; }
  .team-grid{ grid-template-columns: 1fr; }
  .leader .photo{ width: 100%; }
  .nav-toggle{ width: 40px; height: 40px; }
  .cell{ padding: 24px 20px; }
  .stat .n{ font-size: 1.4rem; }
  .stat .n.stat-n-text{ font-size: 1.4rem; }
  .stat .l{ font-size: 0.95rem; }
}

@media (max-width: 380px){
  .logo{ gap: 8px; padding: 6px 10px 7px 8px; }
  .logo-name{ font-size: 0.9rem; }
  .logo-name span{ font-size: 0.7rem; }
  .stat-grid{ grid-template-columns: 1fr; }
}

/* ---------- Short viewports (landscape phones / small laptops) ---------- */
@media (max-height: 520px){
  .modal-card{ max-height: 96vh; padding: 16px 14px 10px; }
  .pdf-frame{ height: 70vh; min-height: 240px; }
}
