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

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

:root {
  --bg:         #05080f;
  --bg2:        #090e1a;
  --surface:    #0f1625;
  --surface2:   #141d2e;
  --border:     #1a2540;
  --border2:    #263352;
  --cyan:       #00c8f0;
  --cyan-soft:  #00a8cc;
  --cyan-glow:  rgba(0,200,240,0.10);
  --cyan-line:  rgba(0,200,240,0.28);
  --text:       #dce6f0;
  --muted:      #6b84a0;
  --dim:        #364d63;
  --white:      #ffffff;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Instrument Sans', system-ui, sans-serif;
  --nav-h:      68px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 300;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  background: rgba(5,8,15,0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(5,8,15,0.98); }
.nav-logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--white); flex-shrink: 0; }
.nav-logo span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); list-style: none; }
.nav-links a {
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.04em; color: var(--muted);
  position: relative; padding-bottom: 2px; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--cyan-line); padding: 0.5rem 1.25rem;
  border-radius: 2px; transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--cyan); color: var(--bg); }

/* Burger */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: all 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem); flex-direction: column; z-index: 199;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.05rem; font-weight: 300; color: var(--text); padding: 0.875rem 0; border-bottom: 1px solid var(--border); transition: color 0.2s; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--cyan); }
.nav-mobile .mob-cta { margin-top: 1.25rem; text-align: center; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--cyan); padding: 0.875rem; border-radius: 2px; border: none; }

/* ─── FOOTER ─── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: 0.875rem; }
.footer-brand .logo span { color: var(--cyan); }
.footer-brand p { font-size: 0.875rem; color: var(--muted); max-width: 260px; line-height: 1.7; }
.footer-col h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.55rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--dim); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.75rem; color: var(--dim); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--muted); }

/* ─── UTILITIES ─── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.5rem; }
.eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--cyan); flex-shrink: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }

.btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.9rem 2rem; border: none; cursor: pointer; transition: all 0.25s; border-radius: 2px; }
.btn-primary { background: var(--cyan); color: var(--bg); }
.btn-primary:hover { background: #1ad4f8; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(0,200,240,0.22); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--cyan-line); color: var(--cyan); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── PAGE HERO ─── */
.page-hero { padding: calc(var(--nav-h) + 5rem) clamp(1.25rem, 5vw, 4rem) 5rem; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: radial-gradient(ellipse at top right, rgba(0,200,240,0.05) 0%, transparent 60%); pointer-events: none; }
.page-hero-inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); margin-bottom: 1.5rem; }
.page-hero .lead { font-size: 1.0625rem; color: var(--muted); max-width: 540px; font-weight: 300; }

/* ─── PROSE ─── */
.prose-wrap { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem); }
.prose h2 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--white); margin: 3rem 0 0.875rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose p { color: var(--muted); margin-bottom: 1.1rem; font-size: 0.9375rem; }
.prose a { color: var(--cyan); }
.prose a:hover { text-decoration: underline; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.prose ul li { color: var(--muted); font-size: 0.9375rem; margin-bottom: 0.4rem; }
.prose strong { color: var(--text); font-weight: 500; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-img { opacity: 0; transform: scale(1.04); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-img.visible { opacity: 1; transform: scale(1); }

/* ─── RESPONSIVE NAV ─── */
@media (max-width: 900px) { .nav-links, .nav-cta { display: none; } .nav-burger { display: flex; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }
