:root {
  --paper: #f6f3ec;
  --card: #ffffff;
  --navy: #011c38;
  --navy-soft: #3b4c63;
  --gold: #d39a3c;
  --gold-soft: #f1e2c6;
  --line: rgba(1, 28, 56, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--paper);
  color: var(--navy);
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: transform .8s cubic-bezier(.7,0,.2,1), opacity .8s;
}
.intro.done { transform: translateY(-100%); }
.intro-logo { width: min(320px, 70vw); animation: introIn .8s ease both; }
.intro-bar { width: min(220px, 50vw); height: 3px; background: var(--line); overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; animation: fill 1.1s .2s cubic-bezier(.6,0,.2,1) both; }
@keyframes introIn { from { opacity: 0; transform: scale(.94); } }
@keyframes fill { from { transform: scaleX(0); } }

/* ---------- Blueprint grid ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 35%, rgba(0,0,0,.55), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, rgba(0,0,0,.55), transparent 70%);
}

/* ---------- Layout ---------- */
.page {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%; max-width: 1080px;
  margin: 0 auto;
  padding: 56px 16px 24px;
}

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { width: min(440px, 88vw); height: auto; }

.eyebrow {
  margin-top: 40px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
h1 {
  margin-top: 14px;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.02em;
}
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em;
  background: var(--gold-soft); z-index: -1;
  transform-origin: left; animation: fill .7s 1.9s ease both;
}
.lead { margin-top: 18px; max-width: 52ch; font-size: 1.08rem; line-height: 1.65; color: var(--navy-soft); }

.cta { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(1,28,56,.55); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(1,28,56,.6); }
.btn-navy svg { fill: var(--gold); }
.btn-line { background: var(--card); color: var(--navy); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Services ---------- */
.services {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 14px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 30px -18px rgba(1,28,56,.35); }
.card svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-size: .9rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }

/* ---------- Info ---------- */
.info {
  margin-top: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--navy); border-radius: 18px; overflow: hidden;
}
.info a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 26px;
  color: #fff; text-decoration: none;
  transition: background .2s;
}
.info a + a { border-left: 1px solid rgba(255,255,255,.1); }
.info a:hover { background: rgba(255,255,255,.05); }
.info .k { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.info .v { font-size: 1rem; font-weight: 500; line-height: 1.45; }

/* ---------- Footer ---------- */
footer {
  position: relative; z-index: 1;
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 22px 16px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .74rem; color: var(--navy-soft); letter-spacing: .04em;
}
.credit {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .76rem; color: var(--navy-soft); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.credit strong { color: var(--navy); font-weight: 500; }
.credit .sym { color: var(--gold); }
.credit:hover { background: #0d0d0d; border-color: #0d0d0d; color: #ccc; }
.credit:hover strong { color: #3ddc84; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .info { grid-template-columns: 1fr; }
  .info a + a { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 560px) {
  .page { padding-top: 36px; }
  .eyebrow { margin-top: 28px; font-size: .7rem; }
  .services { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .services .card:last-child { grid-column: 1 / -1; }
  .btn { width: 100%; justify-content: center; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; }
}
