:root {
  --navy: #061a4a;
  --navy-2: #0c2560;
  --bg: #ffffff;
  --soft: #f4f6fa;
  --text: #0f1a33;
  --muted: #5a6478;
  --line: #e2e6ee;
  --max: 1040px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site { background: var(--navy); color: #fff; }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: var(--header-h);
}
.brand {
  color: #fff; text-decoration: none; white-space: nowrap;
  font-weight: 300; font-size: 16px; letter-spacing: 0.32em; text-transform: uppercase;
}
nav { display: flex; gap: 28px; }
nav a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover { color: #fff; }

/* Home: header is pinned; transparent over the hero, solid once scrolled past it */
.home header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: transparent;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.home header.site.solid {
  background: rgba(6, 26, 74, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
/* The hero already shows the name, so the header brand appears only after scrolling */
.home header.site .brand { opacity: 0; transition: opacity 0.4s var(--ease); }
.home header.site.solid .brand { opacity: 1; }

/* ---------- Hero ---------- */
.hero-band { background: var(--navy); color: #fff; text-align: center; position: relative; }
.home .hero-band {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.hero { width: 100%; padding-top: calc(var(--header-h) + 24px); padding-bottom: 96px; }

.hero .mark {
  font-weight: 300; font-size: clamp(34px, 7.5vw, 76px); line-height: 1.15;
  letter-spacing: 0.22em; margin: 0; text-transform: uppercase;
  padding-left: 0.22em; /* balances the trailing letter-spacing so it centers */
}
.hero .rule { width: 72px; height: 1px; background: rgba(255,255,255,0.8); margin: 28px auto; border: 0; }
.hero .tagline {
  font-size: clamp(12px, 2vw, 16px); letter-spacing: 0.22em; margin: 0 0 36px;
  color: rgba(255,255,255,0.9);
}
.hero .tagline b { font-weight: 600; }
.hero .lead { max-width: 52ch; margin: 0 auto 40px; color: rgba(255,255,255,0.72); font-size: 16px; }

/* Hero entrance */
.js .hero-content > * { opacity: 0; transform: translateY(16px); animation: rise 1s var(--ease) forwards; }
.js .hero-content > :nth-child(2) { animation-delay: 0.15s; }
.js .hero-content > :nth-child(3) { animation-delay: 0.3s; }
.js .hero-content > :nth-child(4) { animation-delay: 0.45s; }
.js .hero-content > :nth-child(5) { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 1px; height: 56px; background: rgba(255,255,255,0.18); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff;
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; background: #fff; color: var(--navy);
  padding: 14px 28px; text-decoration: none; font-weight: 500;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid #fff; border-radius: 999px;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn.ghost:hover { border-color: #fff; }

/* ---------- Sections ---------- */
section { padding: 112px 0; scroll-margin-top: var(--header-h); }
section.alt { background: var(--soft); }
section h2 {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 40px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(6,26,74,0.35); }
.card .num { display: block; font-size: 12px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 20px; }
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-layout h2 { margin-bottom: 16px; }
.contact-intro { color: var(--muted); margin: 0; max-width: 32ch; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
a.contact-item:hover { border-color: var(--navy); transform: translateX(4px); }
.contact-item .label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-item .value { font-size: 18px; font-weight: 500; color: var(--navy); word-break: break-word; }

/* Scroll reveal (only when JS is running, so content is never stuck hidden) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: 32px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; font-size: 15px; }
.legal h2 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 36px 0 10px; }
.legal p, .legal li { max-width: 72ch; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: rgba(255,255,255,0.65); padding: 32px 0; font-size: 13px; letter-spacing: 0.04em; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: rgba(255,255,255,0.8); margin-right: 20px; text-decoration: none; }
footer.site a:last-child { margin-right: 0; }
footer.site a:hover { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .brand { font-size: 13px; letter-spacing: 0.26em; }
  nav { gap: 18px; }
  nav a { font-size: 11px; }
  section { padding: 80px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-item .value { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-content > *, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .scroll-cue span { animation: none; top: 0; height: 100%; }
}
