@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
img,svg{display:block}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font:inherit;border:none;background:none}
ul,ol{list-style:none}

:root {
  --bg:        #06090f;
  --bg-2:      #090d16;
  --bg-3:      #0b1020;
  --surface:   #0f1528;
  --surface-2: #131d34;
  --blue:      #2563EB;
  --blue-hi:   #4f8ff7;
  --white:     #ffffff;
  --off:       #eef1f8;
  --t1:        #e2e8f5;
  --t2:        #8898bb;
  --t3:        #4a5878;
  --rule:      rgba(255,255,255,0.08);
  --rule-2:    rgba(255,255,255,0.04);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Instrument Sans', system-ui, sans-serif;
  --ease:  cubic-bezier(0.16,1,0.3,1);

  --wrap: 1320px;
  --pad:  clamp(24px,5vw,64px);
  --gap:  clamp(56px,8vw,112px);
  --r:    3px;
}

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap   { max-width:var(--wrap); margin:0 auto; padding:0 var(--pad); }
.section{ max-width:var(--wrap); margin:0 auto; padding:var(--gap) var(--pad); }

/* TYPE */
h1,h2,h3 { font-family:var(--serif); font-weight:400; color:var(--white); line-height:1.08; }
h4,h5    { font-family:var(--sans);  font-weight:600; color:var(--white); line-height:1.2; }
p        { color:var(--t2); line-height:1.8; }
strong   { color:var(--t1); font-weight:600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}
.btn-primary:hover {
  background: var(--blue-hi);
  border-color: var(--blue-hi);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.22);
  color: var(--white);
}

/* ── NAV ──────────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(6,9,15,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display:flex; gap:36px; }
.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a:hover, .nav-links a.active { color:var(--white); }
.nav-links a.active::after {
  content:'';
  position:absolute;
  bottom:-1px; left:0; right:0;
  height:1px;
  background:var(--blue);
}
.nav-right { display:flex; align-items:center; gap:18px; }
.nav-tel {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t2);
  transition: color 0.2s;
}
.nav-tel:hover { color:var(--white); }

/* hamburger */
.nav-ham { display:none; flex-direction:column; gap:5px; padding:4px; }
.nav-ham span { display:block; width:20px; height:1.5px; background:var(--t1); transition:all .3s; border-radius:1px; }
.nav-ham.open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2){ opacity:0; }
.nav-ham.open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  display:none;
  position:fixed; inset:0;
  z-index:299;
  background:rgba(6,9,15,.97);
  flex-direction:column;
  justify-content:center;
  padding:0 var(--pad);
}
.nav-overlay.open { display:flex; }
.nav-overlay a {
  font-family: var(--serif);
  font-size: clamp(36px,7vw,58px);
  color: var(--t2);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
}
.nav-overlay a:hover { color:var(--white); }
.nav-overlay a:last-of-type { border-bottom:none; }
.nav-x { position:absolute; top:22px; right:var(--pad); font-size:28px; color:var(--t2); cursor:pointer; font-weight:200; font-family:var(--sans); }

@media (max-width:860px) {
  .nav-links,.nav-tel,.nav-btn-d { display:none; }
  .nav-ham { display:flex; }
}

/* ── FOOTER ───────────────────────────────────────────── */
#footer {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 80px var(--pad) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
}
.footer-brand { display:flex; flex-direction:column; align-items:flex-start; }
.footer-brand img { height:40px; width:auto; margin-bottom:20px; opacity:.75; display:block; }
.footer-brand p { font-size:14px; color:var(--t3); line-height:1.75; margin-bottom:0; }
.footer-brand .footer-contact { margin-top:16px; display:flex; flex-direction:column; gap:5px; }
.footer-brand .footer-contact a,
.footer-brand .footer-contact span {
  font-size:13px; color:var(--t2); transition:color .2s; display:block;
}
.footer-brand .footer-contact a:hover { color:var(--t1); }
.footer-col h6 {
  font-size:10px; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:var(--t3); margin-bottom:16px;
  font-family:var(--sans);
}
.footer-col a { display:block; font-size:13px; color:var(--t2); padding:4px 0; transition:color .2s; }
.footer-col a:hover { color:var(--t1); }
.footer-bottom {
  max-width:var(--wrap); margin:0 auto;
  padding:20px var(--pad);
  border-top:1px solid var(--rule-2);
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px;
}
.footer-bottom p { font-size:11px; color:var(--t3); }
.footer-legal { display:flex; gap:20px; }
.footer-legal a { font-size:11px; color:var(--t3); transition:color .2s; }
.footer-legal a:hover { color:var(--t2); }

@media(max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; } }
@media(max-width:500px){ .footer-grid{ grid-template-columns:1fr; } }

/* ── REVEAL ───────────────────────────────────────────── */
.r { opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.r.in { opacity:1; transform:none; }
.r1{transition-delay:.06s} .r2{transition-delay:.12s} .r3{transition-delay:.18s}
.r4{transition-delay:.24s} .r5{transition-delay:.30s}

/* ── UTILS ────────────────────────────────────────────── */
.blue { color:var(--blue-hi); }
.italic { font-style:italic; }
hr.rule { border:none; border-top:1px solid var(--rule); }
.pull-quote {
  padding:28px 32px;
  border-left:2px solid var(--blue);
  background:var(--bg-3);
  font-family:var(--serif);
  font-size:clamp(18px,2vw,23px);
  font-style:italic;
  color:var(--off);
  line-height:1.5;
}
