:root {
  --navy: #061a40;
  --navy-2: #0b2d67;
  --navy-deep: #020812;
  --red: #b31942;
  --red-deep: #7e102d;
  --gold: #b78a2d;
  --gold-light: #e5c777;
  --ivory: #f7f2e7;
  --ivory-2: #fffaf0;
  --white: #ffffff;
  --ink: #101828;
  --muted: #5f6b7a;
  --muted-strong: #354154;
  --line: rgba(6, 26, 64, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow: 0 22px 62px rgba(6, 26, 64, 0.13);
  --shadow-strong: 0 28px 82px rgba(2, 8, 18, 0.36);
  --radius-sm: 4px;
  --radius: 8px;
  --container: 1180px;
  --header-height: 74px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background: var(--ivory);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
}

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

figure {
  margin: 0;
}

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

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 3px solid rgba(229, 199, 119, 0.86);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 200;
  top: -100px;
  left: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 800;
  transition: top 160ms ease;
}

.skip-link:focus-visible {
  top: 12px;
}

.container {
  width: min(var(--container), calc(100% - 30px));
  margin-inline: auto;
}

[data-include-error] {
  display: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 15px;
  color: var(--white);
  background: rgba(2, 8, 18, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.scrolled,
body.menu-open .site-header {
  color: var(--navy);
  background: rgba(255, 250, 240, 0.96);
  border-bottom-color: rgba(6, 26, 64, 0.12);
  box-shadow: 0 14px 36px rgba(6, 26, 64, 0.11);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-seal {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px rgba(2, 8, 18, 0.4));
  transition: filter 220ms ease, transform 220ms ease;
}

.site-header.scrolled .brand-seal,
body.menu-open .brand-seal {
  filter: drop-shadow(0 4px 10px rgba(6, 26, 64, 0.22));
}

.brand:hover .brand-seal {
  transform: scale(1.05);
}

.brand-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
  display: block;
}

.brand strong {
  display: block;
  color: currentColor;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: none;
}

.menu-btn {
  position: relative;
  z-index: 102;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.site-header.scrolled .menu-btn,
body.menu-open .menu-btn {
  border-color: rgba(6, 26, 64, 0.18);
  background: rgba(6, 26, 64, 0.04);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

body.menu-open .menu-btn span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.menu-open .menu-btn span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav {
  position: fixed;
  inset: 0;
  z-index: 101;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: calc(var(--header-height) + 18px) 18px 28px;
  overflow-y: auto;
  color: var(--navy);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.99), rgba(247, 242, 231, 0.99)),
    var(--ivory-2);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 260ms ease, visibility 0s linear 260ms;
}

.nav::before {
  content: "AIDT";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(6, 26, 64, 0.055);
  font-family: var(--serif);
  font-size: 5.8rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

body.menu-open .nav {
  transform: translateX(0);
  visibility: visible;
  transition: transform 260ms ease;
}

.nav-link,
.nav-action {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 0 15px;
  border: 1px solid rgba(6, 26, 64, 0.12);
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--white);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button.nav-link {
  cursor: pointer;
}

.nav-link:hover,
.nav-action:hover,
.nav-link.is-active {
  transform: translateY(-1px);
  border-color: rgba(183, 138, 45, 0.34);
  box-shadow: 0 12px 28px rgba(6, 26, 64, 0.08);
}

.nav-action {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-color: rgba(229, 199, 119, 0.42);
}

.nav-group {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  margin-inline: auto;
}

.nav-group .nav-link {
  width: 100%;
}

.dropdown-caret {
  width: 8px;
  height: 8px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-group.is-open .dropdown-caret {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown {
  display: grid;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 240ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.nav-group.is-open .nav-dropdown {
  max-height: 560px;
  margin-top: 8px;
  opacity: 1;
}

.nav-dropdown a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(6, 26, 64, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-dropdown a:hover,
.nav-dropdown a.is-active {
  transform: translateY(-1px);
  border-color: rgba(183, 138, 45, 0.36);
  background: var(--white);
}

.nav-dropdown strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.nav-dropdown span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active,
.nav-link:active,
.nav-action:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  border-color: rgba(229, 199, 119, 0.4);
  box-shadow: 0 16px 34px rgba(6, 26, 64, 0.24);
}

.btn-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline {
  color: var(--navy);
  background: transparent;
  border-color: rgba(6, 26, 64, 0.24);
}

.section {
  padding: 70px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 25px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.35rem, 11vw, 4.75rem);
  line-height: 1.02;
}

h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.06;
}

h3 {
  font-size: clamp(1.16rem, 3vw, 1.34rem);
  line-height: 1.22;
}

p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.text-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--red);
  font-weight: 900;
}

.text-link::after {
  content: "";
  width: 28px;
  height: 2px;
  margin-left: 10px;
  background: var(--gold);
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 42px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  padding: 42px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 0%, rgba(183, 138, 45, 0.18), transparent 18rem),
    linear-gradient(145deg, #020812, #061a40 62%, #020812);
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-brand-block {
  max-width: 560px;
}

.footer-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 360px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.footer-brand::before {
  display: none;
}

.footer-brand:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

.footer-brand-seal {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 22px rgba(2, 8, 18, 0.38));
}

.footer-brand-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-text {
  display: grid;
  gap: 4px;
}

.footer-brand-text strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.footer-brand-text small {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-tagline {
  margin-top: 16px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.3;
}

.footer-summary {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-locations {
  margin-top: 10px;
  color: rgba(229, 199, 119, 0.86);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.footer-locations a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-nav-grid {
  display: grid;
  gap: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.footer-links a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-links a:hover,
.footer-links a.is-active {
  color: var(--gold-light);
}

.footer-note {
  max-width: 620px;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 199, 119, 0.18);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
}

@media (min-width: 700px) {
  :root {
    --header-height: 80px;
  }

  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .brand {
    gap: 12px;
  }

  .brand-seal {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 1.4rem;
  }

  .brand small {
    display: block;
    max-width: 330px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .site-header.scrolled .brand small,
  body.menu-open .brand small {
    color: rgba(6, 26, 64, 0.66);
  }

  .section {
    padding: 88px 0;
  }

  .section-header {
    margin-bottom: 34px;
  }

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

@media (max-width: 420px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-seal {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.14rem;
  }

  .menu-btn {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 1120px) {
  :root {
    --header-height: 86px;
  }

  .site-header {
    padding-inline: 34px;
  }

  .menu-btn {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 0;
    overflow: visible;
    color: currentColor;
    background: transparent;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav::before {
    display: none;
  }

  .nav-link,
  .nav-action {
    width: auto;
    min-height: 40px;
    margin-inline: 0;
    padding: 0 11px;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    font-size: 0.83rem;
  }

  .nav-link:hover,
  .nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }

  .site-header.scrolled .nav-link {
    color: rgba(6, 26, 64, 0.82);
  }

  .site-header.scrolled .nav-link:hover,
  .site-header.scrolled .nav-link.is-active {
    color: var(--navy);
    background: rgba(6, 26, 64, 0.06);
    border-color: rgba(6, 26, 64, 0.12);
  }

  .nav-action,
  .site-header.scrolled .nav-action {
    margin-left: 8px;
    padding-inline: 15px;
    color: var(--white);
    background: var(--red);
    border-color: rgba(229, 199, 119, 0.42);
    box-shadow: 0 12px 28px rgba(179, 25, 66, 0.18);
  }

  .nav-action:hover {
    color: var(--white);
    background: var(--red-deep);
    border-color: rgba(229, 199, 119, 0.62);
  }

  .nav-group {
    width: auto;
    margin-inline: 0;
  }

  .nav-group .nav-link {
    width: auto;
  }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(610px, calc(100vw - 68px));
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    overflow: visible;
    border: 1px solid rgba(229, 199, 119, 0.28);
    border-radius: var(--radius);
    background:
      radial-gradient(circle at 92% 8%, rgba(183, 138, 45, 0.14), transparent 12rem),
      rgba(255, 250, 240, 0.98);
    box-shadow: 0 28px 74px rgba(2, 8, 18, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-group.is-open .nav-dropdown {
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-dropdown a {
    min-height: 88px;
    padding: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.92)),
      var(--white);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1fr);
    align-items: start;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
