:root {
  --navy: #0f2744;
  --blue-deep: #16425b;
  /* --blue is the text/UI blue: darkened from #2c6ea8 to clear 4.5:1 on the
     darkest point of the page gradient. --sky tints stay decorative only. */
  --blue: #27649b;
  --blue-mid: #2c6ea8;
  --blue-bright: #4a9ee0;
  --sky: #5da9e9;
  --sky-soft: #8ec8f5;
  --mist: #e8f3fb;
  --cloud: #f4f9fd;
  --ink: #12253d;
  --ink-muted: #3d5a73;
  --white: #ffffff;
  --focus: #0f2744;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 42rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  background: var(--cloud);
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--navy);
}

/* Never break a phone number across lines. */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Two-tone ring: the white pad keeps the dark outline legible when focus
   lands on a filled button, the outline keeps it legible on the page. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white);
}

/* Skip-link target: a ring around the whole page carries no information. */
.main:focus {
  outline: none;
  box-shadow: none;
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  transform: translate(-50%, -120%);
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 0 0 0.4rem 0.4rem;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--cloud);
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 100% 75% at 10% -5%,
      rgba(93, 169, 233, 0.38),
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 55% at 95% 15%,
      rgba(142, 200, 245, 0.45),
      transparent 50%
    ),
    radial-gradient(
      ellipse 90% 45% at 50% 100%,
      rgba(44, 110, 168, 0.12),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      #d7ebf8 0%,
      #eaf4fb 42%,
      #f4f9fd 100%
    );
}

.atmosphere__drift {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(
      circle at 22% 72%,
      rgba(93, 169, 233, 0.16),
      transparent 40%
    ),
    radial-gradient(
      circle at 78% 48%,
      rgba(44, 110, 168, 0.1),
      transparent 42%
    );
  animation: drift 28s var(--ease) infinite alternate;
  will-change: transform;
}

.atmosphere__glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  top: -20vmax;
  left: -14vmax;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(142, 200, 245, 0.45),
    transparent 68%
  );
  animation: glow-pulse 10s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -2%, 0) scale(1.06);
  }
}

@keyframes glow-pulse {
  from {
    opacity: 0.55;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(5%, 4%, 0);
  }
}

.page {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5rem);
}

.hero {
  min-height: min(82vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2rem, 6vh, 3.5rem);
  color: var(--ink);
}

.brand {
  display: block;
  margin: 0 0 2rem;
  width: min(100%, 34rem);
  background: transparent;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 10px 28px rgba(22, 66, 91, 0.18));
}

.headline {
  max-width: var(--max);
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.lede {
  max-width: 34rem;
  margin: 0 0 1.85rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink-muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.cta__primary,
.cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 0.4rem;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Gradient runs dark-to-darker so white text clears 4.5:1 at every stop;
   hover lightens without dropping below it. */
.cta__primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(22, 66, 91, 0.3);
}

.cta__primary:hover,
.cta__primary:focus-visible {
  background: linear-gradient(135deg, var(--blue-mid) 0%, #1d5484 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(39, 100, 155, 0.38);
}

.cta__secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  border: 1.5px solid var(--blue);
  backdrop-filter: blur(6px);
}

.cta__secondary:hover,
.cta__secondary:focus-visible {
  background: var(--white);
  color: var(--blue);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.contact {
  margin-top: 0.5rem;
  padding: clamp(2rem, 5vh, 3rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(44, 110, 168, 0.16);
  border-radius: 1.25rem;
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.88),
      rgba(232, 243, 251, 0.82)
    );
  color: var(--ink-muted);
  box-shadow: 0 12px 36px rgba(15, 39, 68, 0.08);
}

.contact__heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 400;
  color: var(--navy);
}

.contact__intro {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--ink-muted);
}

.contact__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 2rem;
  margin: 0;
}

@media (min-width: 640px) {
  .contact__list {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__list dt {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact__list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.contact__list a {
  color: var(--blue);
  font-weight: 600;
}

.contact__list a:hover,
.contact__list a:focus-visible {
  color: var(--navy);
}

.footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(44, 110, 168, 0.16);
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.footer p {
  margin: 0 0 0.75rem;
  max-width: 36rem;
}

.footer a {
  color: var(--blue);
  font-weight: 600;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--navy);
}

.footer__sep {
  margin: 0 0.45rem;
  opacity: 0.6;
}

/* Scoped to .js so the content is never hidden when the script fails to run. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere__drift,
  .atmosphere__glow {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta__primary,
  .cta__secondary {
    transition: none;
  }

  .cta__primary:hover,
  .cta__secondary:hover {
    transform: none;
  }
}
