:root {
  --navy: #1E3A5C;
  --navy-2: #16304E;
  --paper: #F5F6F8;
  --blue-accent: #3E6FA0;
  --blue-light: #7FA3C7;
  --red: #A6342A;
  --red-bright: #C0392B;
  --hero-band-height: 90px;
  --ink: #12202E;
  --slate: #5B6B78;
  --line: #DCE1E8;
  --line-dark: rgba(255, 255, 255, .14);
  --serif: 'Space Grotesk', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}


h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--navy);
}

section {
  position: relative;
}

::selection {
  background: var(--red);
  color: #fff;
}

.btn {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .22s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-bright);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
}

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- LOGO ---------- */
.logo-header {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
}

.logo-header .hes {
  color: var(--navy);
}

.logo-header .a {
  color: var(--red);
  position: relative;
}

.logo-header.on-dark .hes {
  color: #fff;
}

.logo-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.logo-box {
  border: 1.5px solid var(--navy);
  padding: 6px 15px;
  border-radius: 3px;
  background: #fff;
  display: inline-flex;
}

.logo-box img.site-logo {
  height: 30px;
  width: auto;
  display: block
}

.logo-footer {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
}

.logo-footer .hes {
  color: #fff;
}

.logo-footer .a {
  color: var(--red);
}

/* ---------- NAV ---------- */
.header-dark header,
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.navlinks {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navlinks>a,
.navlinks>.dropdown>span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
  cursor: pointer;
}

.navlinks a:hover,
.dropdown:hover>span {
  color: var(--blue-light);
}

.navlinks>a::after,
.dropdown>span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .25s ease;
}

.navlinks>a:hover::after,
.dropdown:hover>span::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 16px;
  display: none;
  min-width: 220px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu ul {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(18, 32, 46, .1);
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  font-family: var(--body);
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--paper);
  color: var(--red);
}

.dropdown-menu a::after {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 0;
}

.burger span {
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  background: radial-gradient(ellipse at 75% 20%, rgba(62, 111, 160, .12), transparent 55%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.blueprint {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15) 80%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-bottom: 56px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.02em;
  margin: 20px 0 24px;
  max-width: 900px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}

.hero p.lede {
  font-family: var(--body);
  font-size: 17.5px;
  color: rgba(255, 255, 255, .68);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.vitals {
  position: relative;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

.vitals .cell {
  padding: 24px 0;
}

.vitals .cell+.cell {
  border-left: 1px solid var(--line-dark);
  padding-left: 28px;
}

.vitals .num {
  font-family: var(--mono);
  color: #fff;
  font-size: clamp(22px, 2.4vw, 32px);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.vitals .num span {
  color: var(--blue-light);
}

.vitals .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-top: 6px;
}

/* ---------- SERVICE CAROUSEL PANELS ---------- */
/* Update your existing .service-panels rule */
.service-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy-2);
  /* Fix: Covers any sub-pixel grid gaps with dark blue */
  overflow: hidden;
}

/* Update your existing .panel rule */
.panel {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  overflow: hidden;
  border-right: 1px solid var(--line-dark);
  background: var(--navy-2);
  /* Fix: Prevents white leaks during hover/scale transforms */
  transition: transform .28s ease, box-shadow .28s ease;
  will-change: transform;
}

.panel:last-child {
  border-right: none;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
}

.panel {
  transition: transform .28s ease, box-shadow .28s ease;
  will-change: transform;
}

.panel-bg {
  transition: transform .5s ease, filter .28s ease, opacity .28s ease;
  transform-origin: center;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity .28s ease;
  pointer-events: none;
}

.panel:nth-child(1) .panel-bg {
  background: linear-gradient(160deg, #1E3A5C, #0F2440);
}

.panel:nth-child(2) .panel-bg {
  background: linear-gradient(160deg, #274A70, #152C48);
}

.panel:nth-child(3) .panel-bg {
  background: linear-gradient(160deg, #1A3352, #0C1F37);
}

.panel-icon {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 180px;
  height: 180px;
  opacity: .14;
}

.panel-content {
  position: relative;
  z-index: 2;
}

.panel .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.panel h3 {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 220px;
}

.panel .btn {
  padding: 11px 20px;
  font-size: 11.5px;
}

.panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(18, 32, 46, .14);
}

.panel:hover .panel-bg {
  transform: scale(1.04);
  filter: brightness(.86);
}

.panel:hover::after {
  opacity: .08;
}

.panel:hover h3,
.panel:hover .idx {
  color: #ffffff;
}

.panel:hover .btn-primary {
  background: var(--red-bright);
}

/* Service Panels - All text white */
.service-panels .panel-content {
  color: #ffffff;
}

.service-panels .panel-content .idx {
  color: #ffffff;
  opacity: 0.8;
  /* Keeps index legible but subtle, or set to 1 for 100% white */
}

.service-panels .panel-content h3 {
  color: #ffffff;
}

.service-panels .panel-content p {
  color: #ffffff;
  opacity: 0.9;
  /* Keeps description soft and clear, or set to 1 for solid white */
}

/* ---------- SECTION HEADS ---------- */
.section {
  padding: 110px 0;
}

.section.tight {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  max-width: 640px;
}

.section-head p {
  color: var(--slate);
  max-width: 360px;
  font-size: 15px;
}

/* ---------- ABOUT / READOUTS ---------- */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: start;
}

.about-copy p {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 18px;
  max-width: 520px;
}

.readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.readout {
  background: var(--paper);
  padding: 26px 22px;
}

.readout .n {
  font-family: var(--mono);
  font-size: 36px;
  color: var(--red);
  font-weight: 500;
}

.readout .n sup {
  font-size: 15px;
  top: -1.1em;
}

.readout .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 8px;
}

/* ---------- CORE SERVICES ---------- */
.services {
  background: var(--paper);
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.module {
  background: #fff;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .25s ease;
}

.module:last-child {
  border-right: none;
}

.module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--line);
  transition: background .25s ease;
}

.module:hover::before {
  background: var(--red);
}

.module:hover {
  background: var(--navy);
}

.module:hover h3,
.module:hover p,
.module:hover .mod-index {
  color: #fff;
}

.mod-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-accent);
  letter-spacing: .05em;
  transition: color .25s ease;
}

.module h3 {
  font-size: 21px;
  margin: 16px 0 12px;
  transition: color .25s ease;
}

.module p {
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.65;
  transition: color .25s ease;
}

/* ---------- TIMELINE / PROJECT EXPOSURE ---------- */


/* ---------- PORTFOLIO ---------- */
.portfolio {
  background: var(--paper);
}

.portfolio-group {
  margin-bottom: 70px;
}

.portfolio-group:last-child {
  margin-bottom: 0;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.group-label .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.group-label.completed .dot {
  background: var(--blue-accent);
}

.group-label h3 {
  font-size: 22px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.proj-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(18, 32, 46, .08);
}

.proj-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Maintains a responsive proportion */
  overflow: hidden;
}

.proj-thumb img,
.proj-thumb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  display: block;
}

.proj-status-in-progress {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 4px 9px;
  border-radius: 10px;
}

.proj-status-completed {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--blue-accent);
  color: #fff;
  padding: 4px 9px;
  border-radius: 10px;
}

.proj-body {
  padding: 20px 22px 24px;
}

.proj-body h4 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.35;
}

.proj-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.proj-link:hover {
  text-decoration: underline;
}

.proj-card {
  cursor: pointer;
}

.proj-card:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.proj-card:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- PROJECT MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 32, 46, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(12px);
  transition: transform .22s ease;
  box-shadow: 0 30px 70px rgba(18, 32, 46, .3);
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.modal-close:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.modal-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 5px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.modal-status.is-completed {
  background: var(--blue-accent);
}

.modal-box h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 400px;
}

.modal-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal-sep {
  color: var(--line);
}

.modal-box p {
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.7;
}

.modal-role {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(62, 111, 160, .08);
  border: 1px solid rgba(62, 111, 160, .25);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ---------- OUR PEOPLE ---------- */
.team-section {
  background: linear-gradient(100deg, var(--red), #8f2c22);
}

.team-section .eyebrow {
  color: rgba(255, 255, 255, .85);

}

.team-section .section-head h2 {
  color: #fff;
}

.team-section .section-head p {
  color: rgba(255, 255, 255, .75);
}


.team-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  margin-bottom: 40px;
}

.switch-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all .2s ease;
}

.switch-btn:hover {
  color: #fff;
}

.switch-btn.is-active {
  background: #fff;
  color: var(--red);
}

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.person {
  text-align: left;
  transition: transform .3s ease, opacity .3s ease, filter .3s ease;
}

.person-photo {
  width: 50%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  margin-bottom: 14px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow .3s ease;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 3px;
}

.person span {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.person.is-highlighted {
  transform: translateY(-10px);
}

.person.is-highlighted .person-photo {
  box-shadow: 0 22px 34px rgba(0, 0, 0, .35);
  border-color: #fff;
}

.person.is-dimmed {
  opacity: .4;
}

.person.is-dimmed .person-photo {
  filter: grayscale(1);
}

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

/* ---------- TEAM ---------- */
.team {
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.member {
  background: #fff;
  padding: 30px 22px;
  text-align: left;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid var(--red);
}

.member h4 {
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 4px;
}

.member span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- COMPANY PROFILE + PARTNERS ---------- */
.profile {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
}

.profile .wrap {
  max-width: 1280px;
  padding: 0 40px;
}

.profile-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.profile-copy p {
  color: rgba(255, 255, 255, .65);
  font-size: 15.5px;
  margin: 18px 0 30px;
  max-width: 540px;
}

.pdf-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  max-width: 520px;
}

.pdf-dl {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
  border-radius: 6px;
}

.pdf-dl:hover {
  background: rgba(255, 255, 255, .06);
}

.pdf-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: #fff;
  flex: 0 0 auto;
  font-weight: 600;
}

.pdf-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.pdf-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.pdf-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
}

.pdf-label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-light);
  white-space: nowrap;
  flex: 0 0 auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-dark);
  align-self: center;
}

.partner {
  background: var(--navy-2);
  padding: 26px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;

}

.partner span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  letter-spacing: .01em;
}

/* ---------- CREDENTIALS ---------- */
.credentials {
  background: var(--paper);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

}

/* Stack cards in a single column on smaller screens */
@media (max-width: 768px) {
  .cred-grid {
    grid-template-columns: 1fr;
  }
}

.cred-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  gap: 20px;
}

.cred-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cred-badge::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed var(--red);
  border-radius: 50%;
}

.cred-badge span {
  font-family: var(--mono);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.cred-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.cred-card .org {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
  display: block;
}

.cred-card p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- REACH ---------- */
.reach {
  background: var(--navy);
  color: #fff;
}

.reach .section-head h2 {
  color: #fff;
}

.reach .section-head p {
  color: rgba(255, 255, 255, .55);
}

.reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 3fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.country {
  background: var(--navy-2);
  padding: 30px 18px;
  text-align: left;
  box-shadow:
    inset -1px 0 0 var(--line-dark),
    inset 0 -1px 0 var(--line-dark);
}

.flag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-bottom: 14px;
}

.country h4 {
  color: #fff;
  font-size: 15px;
  font-family: var(--body);
  font-weight: 600;
}

.country span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, .45);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- TRAINING BAND ---------- */
.band {
  background: linear-gradient(100deg, var(--red), #8f2c22);
  color: #fff;
  padding: 76px 0;
}

.band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.band h2 {
  color: #fff;
  font-size: clamp(24px, 2.8vw, 36px);
  max-width: 520px;
}

.band p {
  color: rgba(255, 255, 255, .85);
  margin-top: 12px;
  max-width: 460px;
  font-size: 14.5px;
}

/* ---------- CONTACT ---------- */
.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
}

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.contact-info .sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 28px;
  display: block;
}

.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--red);
  font-size: 16px;
}

.info-row h5 {
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 4px;
}

.info-row p,
.info-row a {
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.6;
}

.info-row a {
  color: var(--red);
}

.map-embed {
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 200px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
}

.form-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.form-card .sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  display: block;
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--slate);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field {
  margin-bottom: 18px;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: none;
  font-size: 12.5px;
  padding: 15px;
}

.submit-btn:hover {
  background: var(--navy-2);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .55);
  padding: 52px 0 26px;
  border-top: 1px solid var(--line-dark);
}

.foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}

.foot-brand {
  max-width: 320px;
}

.foot-brand .logo-footer {
  margin-bottom: 14px;
  display: block;
}

.foot-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .45);
}

.foot-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 10px;
}

.foot-col a:hover {
  color: var(--red);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, .35);
}

@media(max-width:900px) {
  .navlinks {
    display: none;
  }

  .burger {
    display: flex;
  }

  .service-panels {
    grid-template-columns: 1fr;
  }

  .vitals {
    grid-template-columns: 1fr 1fr;
  }

  .vitals .cell:nth-child(2n+1) {
    padding-left: 0;
  }

  .vitals .cell:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--line-dark);
    padding-top: 24px;
  }

  .vitals .cell:nth-child(4) {
    border-top: 1px solid var(--line-dark);
    padding-top: 24px;
  }

  .about-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .module {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .reach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cred-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .wrap {
    padding: 0 20px;
  }
}

/* Mobile nav open state (controlled by script toggling .open on .nav) */
.nav.open .navlinks {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 18px 20px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  z-index: 95;
}

.nav.open .navlinks>a,
.nav.open .navlinks>.dropdown>span {
  color: rgba(255, 255, 255, .95);
}

/* Removed pseudo-element hero band — marquee is a separate section now */

@media(max-width:520px) {
  .hero {
    padding-top: 100px;
    min-height: 72vh;
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(28px, 7.2vw, 40px);
  }

  .vitals {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 36px;
    border-top: none;
  }

  .vitals .cell+.cell {
    border-left: none;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .06);
  }

  .nav {
    padding: 12px 18px;
  }
}

/* Use a real element for marquee text. Hide the old pseudo-band and style the new element. */
.hero-band {
  position: relative;
  padding: 12px 0;
  background: linear-gradient(90deg, var(--red), #8f2c22);
  display: block;
}

.hero-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  color: #fff;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Marquee inside hero band (follows design_2 concept) */
.marquee-wrap {
  overflow: hidden;
  padding: 6px 0;
}

.marquee {
  display: flex;
  gap: 100px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  width: max-content;
  align-items: center;
}

.marquee span {
  display: inline-block;
  padding-right: 60px;
  /* Space between loops (replaces gap to keep -50% translation mathematically exact) */
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .95);
}

.marquee span b {
  color: #fff;
  font-weight: 700;
}

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

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


@media(max-width:900px) {
  .hero-band {
    padding: 10px 0;
  }

  .hero-band-inner {
    font-size: 15px;
    padding: 0 20px;
  }
}

@media(max-width:520px) {
  .hero-band {
    padding: 8px 0;
  }

  .hero-band-inner {
    font-size: 13px;
    letter-spacing: .06em;
    padding: 0 14px;
  }
}


/* PDF Modal Overlay */
.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.pdf-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.pdf-modal-container {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateY(15px);
  transition: transform 0.25s ease;
}

.pdf-modal-overlay.is-open .pdf-modal-container {
  transform: translateY(0);
}

/* Modal Header */
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #1f293d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-modal-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-modal-download:hover {
  background: #1d4ed8;
}

.pdf-modal-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.pdf-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Modal Viewer Frame */
.pdf-modal-body {
  flex: 1;
  width: 100%;
  background: #000;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-modal-body img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Make credential cards interactive */
.cred-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cred-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(18, 32, 46, 0.08);
  border-color: var(--blue-accent);
}

.cred-card:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.cred-card:focus:not(:focus-visible) {
  outline: none;
}