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

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

:root {
  --blue:         #4F7AC2;
  --blue-dark:    #3A5F9E;
  --blue-deeper:  #2B4A7E;
  --blue-light:   rgba(79,122,194,0.09);
  --blue-mid:     rgba(79,122,194,0.18);
  --blue-border:  rgba(79,122,194,0.28);
  --navy:         #0A1628;
  --navy-mid:     #162850;
  --white:        #FFFFFF;
  --off-white:    #F3F5FA;
  --charcoal:     #0C1420;
  --ink:          #182233;
  --muted:        #475569;
  --faint:        #94A3B8;
  --border:       #D5DDED;
  --border-dark:  rgba(255,255,255,0.10);
  --gold:         #C9A84C;
  --gold-light:   rgba(201,168,76,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 15px;
  font-weight: 400;
}


/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 80px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 32px rgba(11,22,40,0.09); }

/* ─── LOGO ─── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.nav-logo-svg {
  height: 44px;
  width: auto;
  display: block;
}

/* ─── NAV LINKS ─── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}

.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--charcoal); font-weight: 600; }

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--charcoal) !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 2px;
  transition: background 0.25s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue) !important; color: #fff !important; }

@media (max-width: 1160px) {
  nav { padding: 0 32px; }
  .nav-links { gap: 24px; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; height: 72px; }
  .nav-links { display: none; }
}

/* ───────────── LAYOUT ───────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ───────────── TYPE ───────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.label::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--blue);
  display: block;
}

.label.light { color: rgba(255,255,255,0.55); }
.label.light::before { background: rgba(255,255,255,0.4); }

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--charcoal);
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--charcoal);
}

em { font-style: italic; color: var(--blue); }

.h-white { color: #fff; }
.h-white em { color: rgba(255,255,255,0.6); }

.sub {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.75;
  max-width: 540px;
}

.sub-light { color: rgba(255,255,255,0.55); }

/* ───────────── BUTTONS ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,122,194,0.3);
}

.btn-white {
  background: #fff;
  color: var(--blue);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}

.btn:hover svg { transform: translateX(3px); }

/* ───────────── BLUE BLOCK ───────────── */
.blue-block {
  background: var(--blue);
  color: #fff;
}

.navy-block {
  background: var(--navy);
  color: #fff;
}

/* ───────────── DIVIDERS ───────────── */
.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.rule-dark {
  background: var(--border-dark);
}

/* ───────────── FOOTER ───────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.45);
}

.footer-main {
  padding: 96px 64px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
  margin-bottom: 16px;
}
.footer-logo svg {
  height: 28px;
  width: auto;
  display: block;
}


.footer-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 32px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(79,122,194,0.12);
  border: 1px solid rgba(79,122,194,0.25);
  padding: 6px 14px;
  border-radius: 2px;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 24px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 64px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ───────────── ANIMATIONS ───────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.anim { opacity: 0; }
.anim.visible { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }

.d0  { animation-delay: 0s !important; }
.d1  { animation-delay: 0.1s !important; }
.d2  { animation-delay: 0.22s !important; }
.d3  { animation-delay: 0.36s !important; }
.d4  { animation-delay: 0.50s !important; }
.d5  { animation-delay: 0.65s !important; }
.d6  { animation-delay: 0.80s !important; }

/* ───────────── SCROLL OBSERVER ───────────── */
/* handled by JS below */

/* ───────────── MOBILE ───────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .wrap { padding: 0 24px; }
  .footer-main { padding: 64px 24px 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom-bar { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
}


/* ── Anchor offset for fixed nav ── */
[id] { scroll-margin-top: 96px; }

/* ── Petal spin animation ── */

.nav-wordmark {
  height: 44px;
  width: auto;
  display: block;
}

@keyframes petal-rotate { to { transform: rotate(360deg); } }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.footer-logo { margin-bottom: 16px; }
.nav-logo-svg { height: 48px; width: auto; display: block; }
.petal-spin {
  transform-origin: 267.37px 358.08px;
  transform-box: view-box;
  animation: petal-rotate 7s linear infinite;
}
