:root {
  --navy: #0c2340;
  --navy-2: #123259;
  --sea: #2a7f9e;
  --sand: #f5efe4;
  --paper: #fbf8f2;
  --brass: #b98a3e;
  --brass-ink: #8a6420; /* 4.9:1 on light backgrounds */
  --ink: #16202e;
  --muted: #5d6877;
  --line: #e2d9c8;
  --radius: 14px;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  padding: 14px 0;
  background: rgba(251, 248, 242, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  animation: fade .9s ease both;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; letter-spacing: .06em; }
.brand em { font-style: normal; font-weight: 500; color: var(--brass); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: .92rem; }
.nav a { text-decoration: none; color: var(--muted); padding: 10px 0; transition: color .2s; }
.nav a:hover { color: var(--navy); }
.lang {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  min-height: 44px; min-width: 44px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--navy); background: transparent; color: var(--navy);
  transition: background .2s, color .2s;
}
.lang:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1b4a72 100%);
  color: #fff;
}
.hero-inner { position: relative; z-index: 1; padding-block: 96px; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.7rem);
  line-height: 1.08; margin: 0 0 26px; letter-spacing: -.03em;
}
.lead { max-width: 60ch; font-size: 1.08rem; color: rgba(255,255,255,.82); margin: 0 0 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--brass); color: #1b1408; }
.btn.primary:hover { background: #cc9c4b; }
.btn.ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

.hero-bg { position: absolute; inset: 0; }
.wave {
  position: absolute; left: -10%; width: 120%; height: 46%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgba(255,255,255,.05);
  animation: sway 14s ease-in-out infinite alternate;
}
.w1 { bottom: -18%; }
.w2 { bottom: -26%; background: rgba(42,127,158,.16); animation-duration: 18s; animation-delay: -4s; }
.w3 { bottom: -34%; background: rgba(185,138,62,.10); animation-duration: 22s; animation-delay: -8s; }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.alt { background: var(--sand); }
.grid-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 600; color: var(--brass-ink); margin: 0 0 14px; }
.kicker.light { color: #d9b878; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 20px; color: var(--navy); }
.muted { color: var(--muted); font-size: .95rem; }

.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { border-top: 2px solid var(--brass); padding-top: 14px; }
.facts strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--navy); line-height: 1.1; }
.facts span { font-size: .82rem; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12,35,64,.10); }
.num { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--brass-ink); line-height: 1; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; margin: 4px 0 0; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; flex: 1; }
.code { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #1f6a86; font-weight: 600; }

/* Details */
.dl { margin: 0; border-top: 1px solid var(--line); }
.dl div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }
.contact-list { display: grid; gap: 18px; }
.contact-item {
  display: block; text-decoration: none; padding: 22px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  transition: background .25s, transform .25s;
}
.contact-item:hover { background: rgba(255,255,255,.12); transform: translateX(6px); }
.contact-item span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: #d9b878; margin-bottom: 4px; }
.contact-item strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }

/* Footer */
.site-footer { background: #081a30; color: rgba(255,255,255,.65); font-size: .85rem; padding: 26px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { text-decoration: none; color: #d9b878; }

/* Entrance animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sway { from { transform: translateX(-3%) translateY(0); } to { transform: translateX(3%) translateY(-14px); } }

/* Responsive */
@media (max-width: 860px) {
  .grid-2, .cards { grid-template-columns: 1fr; }
  .nav a { display: none; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .dl div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .brand span { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave, .site-header { animation: none; }
  .card, .btn, .contact-item { transition: none; }
}

/* Keyboard focus + skip link */
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }
