:root {
  --brand: #052844;
  --brand-deep: #031d30;
  --brand-soft: #0b3452;
  --secondary: #73808c;
  --secondary-ink: #566574;
  --paper: #f4f1e9;
  --paper-muted: #d9d7d0;
  --line: rgba(244, 241, 233, 0.14);
  --line-strong: rgba(244, 241, 233, 0.26);
  --shadow: 0 24px 70px rgba(0, 8, 16, 0.28);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

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

html {
  min-width: 320px;
  background: var(--brand-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -8%, rgba(115, 128, 140, 0.17), transparent 30rem),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 72%);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--brand);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 45rem);
  margin: 0 auto;
  padding:
    calc(1.5rem + env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    calc(2rem + env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.logo-panel {
  display: grid;
  width: min(100%, 18rem);
  min-height: 6.75rem;
  place-items: center;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.95rem;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(0, 10, 20, 0.2);
}

.brand-logo {
  width: 100%;
  height: auto;
}

.eyebrow,
.contact-kicker {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero {
  padding: 2.4rem 0 2rem;
  text-align: center;
}

.hero h1 {
  max-width: 11ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 12vw, 4.65rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy {
  max-width: 33rem;
  margin: 1.35rem auto 0;
  color: rgba(244, 241, 233, 0.74);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: balance;
}

.actions {
  display: grid;
  gap: 0.75rem;
}

.action-card {
  display: grid;
  min-width: 0;
  min-height: 4.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--brand-soft);
  box-shadow: 0 8px 22px rgba(0, 12, 24, 0.12);
  color: var(--paper);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.action-card--primary {
  border-color: var(--paper);
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(0, 10, 20, 0.22);
  color: var(--brand);
}

.action-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--paper);
}

.action-card--primary .action-icon {
  border-color: rgba(5, 40, 68, 0.18);
  background: rgba(5, 40, 68, 0.06);
  color: var(--brand);
}

.action-icon svg,
.action-arrow svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.action-kicker {
  margin-bottom: 0.15rem;
  color: rgba(244, 241, 233, 0.57);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.action-card--primary .action-kicker {
  color: rgba(5, 40, 68, 0.68);
}

.action-label {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.32;
}

.action-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  opacity: 0.8;
  transition: transform 180ms ease;
}

.social-section {
  padding: 2.25rem 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.section-heading > span {
  max-width: 12rem;
  color: rgba(244, 241, 233, 0.54);
  font-size: 0.66rem;
  line-height: 1.3;
  text-align: right;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.social-item {
  display: flex;
  min-width: 0;
  min-height: 5.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.7rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(3, 29, 48, 0.5);
  color: rgba(244, 241, 233, 0.74);
  cursor: pointer;
  font-size: clamp(0.68rem, 3vw, 0.78rem);
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-icon {
  color: var(--paper);
}

.social-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card {
  display: grid;
  gap: 1.45rem;
  margin-top: 2.5rem;
  padding: 1.4rem;
  border: 1px solid rgba(115, 128, 140, 0.42);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--brand);
}

.contact-kicker {
  color: var(--secondary-ink);
}

.contact-intro h2 {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.contact-intro > p:last-child {
  margin: 0.75rem 0 0;
  color: #566574;
  font-size: 0.85rem;
}

.contact-list {
  display: grid;
  margin: 0;
  font-style: normal;
}

.contact-list a {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(5, 40, 68, 0.12);
  text-decoration: none;
}

.contact-list span {
  color: var(--secondary-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 0.25rem;
  color: rgba(244, 241, 233, 0.52);
  font-size: 0.68rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-underline-offset: 0.22em;
}

.site-footer a svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.ambient {
  position: fixed;
  z-index: 0;
  border: 1px solid rgba(244, 241, 233, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.ambient--one {
  top: 22%;
  right: -16rem;
  width: 31rem;
  height: 31rem;
}

.ambient--two {
  bottom: -18rem;
  left: -14rem;
  width: 29rem;
  height: 29rem;
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #b7c9d7;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .action-card[href]:hover {
    border-color: rgba(244, 241, 233, 0.42);
    background: #0d3c5d;
    box-shadow: 0 14px 34px rgba(0, 10, 20, 0.2);
    transform: translateY(-2px);
  }

  .action-card--primary[href]:hover {
    border-color: #fff;
    background: #fffdf7;
  }

  .action-card[href]:hover .action-arrow {
    transform: translateX(0.18rem);
  }

  .contact-list a:hover,
  .site-footer a:hover {
    color: #174f73;
  }

  .social-item[href]:hover {
    border-color: var(--line-strong);
    background: rgba(11, 52, 82, 0.9);
    color: var(--paper);
    transform: translateY(-2px);
  }
}

@media (min-width: 40rem) {
  .page-shell {
    padding-top: calc(2.5rem + env(safe-area-inset-top));
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: 3.2rem;
    padding-bottom: 2.5rem;
  }

  .action-card {
    min-height: 5.1rem;
    padding-inline: 1.15rem;
  }

  .contact-card {
    grid-template-columns: 0.9fr 1.15fr;
    gap: 2.4rem;
    padding: 1.75rem;
  }
}

@media (min-width: 64rem) {
  .page-shell {
    width: min(100%, 48rem);
  }
}

@media (max-width: 23.75rem) {
  .page-shell {
    padding-inline: max(1rem, env(safe-area-inset-left));
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11.4vw, 2.7rem);
  }

  .action-card {
    gap: 0.7rem;
    padding-inline: 0.8rem;
  }

  .action-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .action-arrow {
    width: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .brand-header,
  .js .hero,
  .js .actions,
  .js .social-section,
  .js .contact-card,
  .js .site-footer {
    animation: reveal 520ms both;
  }

  .js .hero {
    animation-delay: 60ms;
  }

  .js .actions {
    animation-delay: 110ms;
  }

  .js .social-section {
    animation-delay: 160ms;
  }

  .js .contact-card {
    animation-delay: 210ms;
  }

  .js .site-footer {
    animation-delay: 250ms;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(0.65rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

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