:root {
  --royal-blue: #003a70;
  --royal-blue-2: #042f5f;
  --royal-blue-3: #001f42;
  --gold: #d4af37;
  --ivory: #fff8e7;
  --emerald: #00a477;
  --ruby: #9b1b30;
  --muted: rgba(255, 248, 231, 0.7);
  --muted-strong: rgba(255, 248, 231, 0.84);
  --line: rgba(255, 248, 231, 0.14);
  --gold-line: rgba(212, 175, 55, 0.34);
  --radius: 6px;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ivory);
  background: var(--royal-blue);
  overflow-x: hidden;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--gold);
  color: var(--royal-blue-3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
  color: var(--ivory);
  background: rgba(0, 58, 112, 0.78);
  border-bottom: 1px solid rgba(255, 248, 231, 0.08);
  backdrop-filter: blur(18px);
  transition:
    min-height 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  min-height: 68px;
  background: rgba(0, 31, 66, 0.93);
  box-shadow: 0 16px 44px rgba(0, 18, 42, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  background: rgba(0, 31, 66, 0.34);
  color: var(--gold);
  clip-path: polygon(0 0, 78% 0, 78% 22%, 100% 22%, 100% 100%, 22% 100%, 22% 78%, 0 78%);
  font-family: Georgia, serif;
  font-size: 1.08rem;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--emerald);
}

.brand-name {
  color: var(--ivory);
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  color: rgba(255, 248, 231, 0.78);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 248, 231, 0.09);
  color: var(--gold);
  outline: none;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-image {
  object-fit: cover;
  object-position: center right;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 31, 66, 0.92) 0%, rgba(0, 58, 112, 0.78) 43%, rgba(0, 58, 112, 0.22) 78%),
    linear-gradient(180deg, rgba(0, 31, 66, 0.04), rgba(0, 31, 66, 0.52));
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 58, 112, 0), var(--royal-blue));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
  padding: 146px 0 118px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 10.5vw, 9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-copy {
  width: min(610px, 100%);
  margin: 1.4rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.1rem, 1.75vw, 1.34rem);
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 2.15rem;
}

.hero-actions .button {
  min-width: 220px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1.22rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--gold);
  color: var(--royal-blue-3);
  box-shadow:
    0 18px 42px rgba(212, 175, 55, 0.26),
    inset 0 0 0 1px rgba(255, 248, 231, 0.28);
}

.button-secondary {
  border: 1px solid rgba(0, 164, 119, 0.7);
  color: var(--ivory);
  background: rgba(0, 164, 119, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 231, 0.04);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e3bf45;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 248, 231, 0.08);
}

.status-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 0.72rem 0.95rem;
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

input,
select,
textarea,
button {
  font: inherit;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal.is-open,
.contact-modal:target {
  display: flex;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(0, 18, 42, 0.72);
  backdrop-filter: blur(14px);
}

.contact-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--royal-blue-3);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 32px 90px rgba(0, 18, 42, 0.48);
}

.contact-dialog h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 248, 231, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 248, 231, 0.06);
  color: var(--ivory);
  text-decoration: none;
}

.modal-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.42rem;
}

.contact-form label span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 248, 231, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 248, 231, 0.06);
  color: var(--ivory);
  padding: 0.78rem 0.85rem;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form option {
  background: var(--royal-blue-3);
  color: var(--ivory);
}

.human-check {
  padding: 1rem;
  border: 1px solid rgba(0, 164, 119, 0.34);
  border-radius: var(--radius);
  background: rgba(0, 164, 119, 0.08);
}

.website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  color: rgba(255, 248, 231, 0.58);
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.form-status {
  color: var(--muted-strong);
}

.section {
  position: relative;
  padding: 92px 0;
  background: var(--royal-blue);
  scroll-margin-top: 92px;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto max(20px, calc((100vw - 1120px) / 2));
  width: min(1120px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 36%, var(--emerald), transparent 72%, var(--ruby));
  opacity: 0.42;
}

.intro {
  padding-top: 52px;
}

.intro::before {
  display: none;
}

.intro-grid,
.method-grid,
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ivory);
  font-size: 1.08rem;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.intro p:last-child,
.method-copy p:last-child,
.contact-panel p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.78;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 2.4rem;
}

.work,
.trust {
  background: var(--royal-blue);
}

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

.service-card {
  min-height: 260px;
  padding: 1.45rem;
  background: rgba(0, 58, 112, 0.78);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 248, 231, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 31, 66, 0.2);
  color: var(--gold);
}

.service-icon svg {
  width: 23px;
  height: 23px;
}

.service-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.service-card p {
  margin-top: 0.85rem;
}

.method {
  background: var(--royal-blue-3);
}

.method-copy p:last-child {
  margin-top: 1.2rem;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--royal-blue-3);
}

.timeline span {
  color: var(--gold);
  font-weight: 900;
}

.timeline p {
  margin-top: 0.35rem;
}

.proof {
  padding: 0;
  background: var(--royal-blue-3);
}

.proof::before {
  display: none;
}

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

.proof-grid div {
  min-height: 132px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.proof-grid div:last-child {
  border-right: 0;
}

.proof-grid strong {
  display: block;
  color: var(--gold);
  font-size: 1.08rem;
}

.proof-grid span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.trust-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-list article {
  padding: 1.25rem;
  background: var(--royal-blue);
}

.trust-list article::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 0.95rem;
  background: var(--emerald);
}

.trust-list article:nth-child(2)::before {
  background: var(--gold);
}

.trust-list article:nth-child(3)::before {
  background: var(--ruby);
}

.trust-list p {
  margin-top: 0.45rem;
}

.contact {
  padding-top: 40px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--royal-blue-3);
}

.contact-panel p {
  margin-top: 1rem;
}

.site-footer {
  padding: 40px 0;
  background: var(--royal-blue-3);
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .nav-toggle {
    position: relative;
    z-index: 11;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 248, 231, 0.24);
    border-radius: var(--radius);
    background: rgba(0, 31, 66, 0.4);
    color: var(--ivory);
  }

  .nav-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: none;
    place-content: center;
    gap: 1rem;
    background: rgba(0, 31, 66, 0.98);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    color: var(--ivory);
    text-align: center;
    font-size: 1.25rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 120px;
  }

  .intro-grid,
  .method-grid,
  .trust-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

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

  .proof-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 70px;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-image {
    opacity: 0.3;
    object-position: 82% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 31, 66, 0.96), rgba(0, 58, 112, 0.88)),
      linear-gradient(180deg, rgba(0, 31, 66, 0.08), rgba(0, 31, 66, 0.58));
  }

  .hero-content {
    width: min(100% - 28px, 720px);
    margin-inline: 14px;
    padding: 112px 0 90px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 15.2vw, 3.7rem);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.58;
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.28rem);
    line-height: 1.08;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
  }

  .hero-actions,
  .hero-actions .button,
  .contact-panel .button,
  .status-pill {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

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

  .service-card {
    min-height: 0;
  }
}

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