:root {
  --navy: #0a2342;
  --blue: #0f5d9b;
  --red: #c41230;
  --teal: #00a6a6;
  --ink: #142033;
  --muted: #607086;
  --line: #dce4ee;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(10, 35, 66, .14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(220, 228, 238, .9);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 255px;
  height: 69px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.nav a,
.nav-static,
.nav-dropdown > button {
  padding: 9px 10px;
  border-radius: 6px;
}

.nav a:hover,
.nav-dropdown:hover > button,
.nav-dropdown > button:focus-visible {
  background: var(--soft);
  color: var(--red);
}

.nav-static {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  cursor: default;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-dropdown > button::after {
  content: " ▾";
  font-size: 11px;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  min-width: 260px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.nav-menu a {
  display: block;
  white-space: normal;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}

.language-switch button,
.menu-toggle {
  border: 0;
  background: transparent;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  border-radius: 999px;
}

.language-switch button.active {
  background: rgba(196, 18, 48, .14);
  color: var(--white);
}

.language-switch img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(10, 35, 66, .15);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 435px;
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: start;
  padding: clamp(92px, 12vw, 128px) clamp(22px, 6vw, 86px);
  color: var(--white);
  text-align: left;
}

.hero-video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--white);
}

.hero-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  clip-path: none;
  transform: none;
  transform-origin: center center;
  filter: saturate(1.02) contrast(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 20, 42, .34), rgba(5, 20, 42, .34));
}

.hero-content {
  position: relative;
  max-width: 780px;
  margin-top: 48px;
}

.hero-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: min(430px, 70vw);
  margin: 0;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .28));
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffccd5;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(31px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255, 255, 255, .56);
  color: var(--white);
}

.button.compact {
  min-height: 40px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.section {
  padding: clamp(62px, 9vw, 110px) clamp(20px, 6vw, 84px);
}

.section:nth-of-type(even) {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 900px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid .section-heading {
  grid-column: 1 / -1;
}

.intro-grid article,
.cert-card,
.news-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(10, 35, 66, .07);
}

.split,
.membership,
.gsx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.split img,
.membership img,
.gsx img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gsx {
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
}

.gsx img.gsx-logo {
  width: 255px;
  height: 69px;
  margin-bottom: 24px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.gsx > img:first-child {
  aspect-ratio: 920 / 533;
  object-fit: contain;
  background: #ffffff;
}

.membership ul {
  margin: 22px 0 28px;
  padding-left: 20px;
}

.membership li + li {
  margin-top: 9px;
}

.membership img.membership-banner {
  aspect-ratio: 946 / 416;
  object-fit: contain;
  background: #071638;
}

.cert-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cert-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cert-card {
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
}

.cert-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.news-grid article {
  padding: 0;
  overflow: hidden;
}

.news-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.news-grid div {
  padding: 22px;
}

.news-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dominicana {
  background: #ffffff;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.05fr .85fr 1.05fr;
  gap: 14px;
  margin-top: 32px;
}

.photo-strip img {
  height: clamp(240px, 32vw, 410px);
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.link-row a,
.link-columns a,
.back-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.link-row a {
  padding: 12px 14px;
}

.logo-carousel {
  position: relative;
  overflow: hidden;
  margin: 18px 0 46px;
  padding: 38px 0;
  border-top: 1px solid #b8bec7;
  border-bottom: 1px solid #edf0f4;
  background: var(--white);
}

.logo-carousel::before,
.logo-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 90px;
  height: 100%;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(38px, 6vw, 88px);
  animation: logoScroll 38s linear infinite;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.logo-track a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 64px;
  opacity: .48;
  filter: grayscale(1);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}

.logo-track a:hover {
  opacity: .9;
  filter: grayscale(1) contrast(1.15);
  transform: translateY(-2px);
}

.logo-track img {
  max-width: 150px;
  max-height: 58px;
  object-fit: contain;
}

.logo-track .logo-nist-item img {
  width: 132px;
  height: auto;
  max-height: 72px;
}

.logo-track .logo-dhs-item {
  width: 190px;
}

.logo-track .logo-dhs-item img {
  width: 180px;
  height: auto;
  max-width: 180px;
  max-height: 72px;
}

.logo-track span {
  color: #9ba2ad;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.secondary-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-columns > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.link-columns a {
  padding: 12px 14px;
}

.link-columns a:hover,
.link-row a:hover {
  border-color: var(--teal);
  color: var(--red);
}

.contact-section {
  background: var(--soft);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.contact-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.contact-links a:hover {
  border-color: var(--red);
  color: var(--red);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 20px;
  color: rgba(255, 255, 255, .78);
  background: var(--navy);
  text-align: center;
}

.site-footer img {
  width: 180px;
  padding: 8px;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  filter: none;
}

.footer-email {
  color: #ffffff;
  font-weight: 800;
}

.tool-page {
  background: var(--soft);
}

.checklist {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px;
}

.back-link {
  display: inline-flex;
  padding: 10px 14px;
  margin-bottom: 24px;
}

.checklist-grid {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.checklist-grid label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
  }

  .nav.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > button {
    width: 100%;
    text-align: left;
  }

  .nav-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 8px;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-dropdown:hover .nav-menu,
  .nav-dropdown:focus-within .nav-menu {
    display: grid;
  }

  .intro-grid,
  .cert-grid,
  .news-grid,
  .link-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand img {
    width: min(213px, 44vw);
    height: 60px;
  }

  .gsx img.gsx-logo {
    width: min(213px, 42vw);
    height: 60px;
  }

  .hero {
    min-height: 500px;
    padding: 100px 20px 58px;
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .intro-grid,
  .split,
  .membership,
  .gsx,
  .cert-grid,
  .news-grid,
  .photo-strip,
  .link-columns {
    grid-template-columns: 1fr;
  }

  .photo-strip img {
    height: 240px;
  }
}
