/* ---------- Design tokens (pulled from the Dust Capital logo) ---------- */
:root {
  --navy: #0c2340;
  --navy-deep: #071527;
  --sand: #c9a876;
  --sand-light: #e8dcc4;
  --coast-blue: #6e9bc4;
  --ink: #171c20;
  --ink-soft: #4b5560;
  --paper: #f7f5f1;
  --paper-dim: #efece5;
  --white: #ffffff;

  --serif: "Fraunces", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coast-blue);
  margin-bottom: 1.25rem;
}
.eyebrow.center { text-align: center; }

.rule { width: 5rem; height: 1px; background: var(--sand); }
.rule.light { background: rgba(255,255,255,0.5); margin: 0 auto; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
  transition: background 0.3s ease;
}
.navbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-word {
  display: block;
  height: clamp(2.16rem, 5.04vw, 3.78rem);
  width: auto;
}
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.75;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 0.65rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--navy-deep); }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 3rem 1.5rem;
  gap: 1rem;
}
.nav-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.4rem 0;
}
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,245,241,0.55) 0%, rgba(247,245,241,0.7) 45%, var(--paper) 92%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 8rem 3rem 6rem;
}
.hero-copy { max-width: 720px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.hero-title .dot { color: var(--coast-blue); }
.hero-lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 2rem 0 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(12,35,64,0.3);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(12,35,64,0.05); }

.scroll-cue {
  position: absolute;
  bottom: 3rem; right: 3rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  opacity: 0.55;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-dot { animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.4; }
}

/* ---------- Approach (asymmetric editorial) ---------- */
.approach { padding: 8rem 3rem; max-width: var(--max); margin: 0 auto; }
.approach-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
}
.approach-sticky { position: sticky; top: 9rem; align-self: start; }
.approach h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.approach-copy p {
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 1.75rem;
  font-family: var(--serif);
  font-weight: 300;
}

/* ---------- Strategy cards ---------- */
.strategy { padding: 4rem 3rem 8rem; max-width: var(--max); margin: 0 auto; }
.strategy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin: 0.5rem 0 3.5rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  padding: 3rem 2.25rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(12,35,64,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(12,35,64,0.08); }
.card-icon { color: var(--coast-blue); margin-bottom: 2rem; }
.card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.card p { color: var(--ink-soft); line-height: 1.6; font-size: 0.98rem; }
.card-tag {
  display: block;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(12,35,64,0.08);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
}
.card-dark {
  background: var(--navy);
  border-color: var(--navy);
}
.card-dark .card-icon { color: var(--sand); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: #a9bdd4; }
.card-dark .card-tag { border-top-color: rgba(255,255,255,0.12); color: var(--sand-light); }

/* ---------- Philosophy / imagery band ---------- */
.philosophy {
  position: relative;
  margin: 0 3rem 8rem;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.philosophy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.philosophy-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,35,64,0.35), rgba(12,35,64,0.55)); }
.philosophy-panel {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.philosophy-panel h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

/* ---------- Legal ---------- */
.legal { padding: 0 3rem 6rem; max-width: var(--max); margin: 0 auto; }
.legal-inner {
  background: var(--paper-dim);
  border-left: 3px solid var(--navy);
  padding: 2.5rem;
}
.legal-inner p { font-size: 0.78rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--sand-light); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 5rem 3rem; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--sand-light);
  display: block;
  margin-bottom: 2rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--coast-blue);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--sand-light); }
.footer-copy { font-size: 0.8rem; color: rgba(232, 220, 196, 0.5); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 35, 64, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--paper);
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3.5rem 3rem;
  border-top: 3px solid var(--navy);
}
.modal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.modal p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.modal p:last-child { margin-bottom: 0; }
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--navy); }

@media (max-width: 600px) {
  .modal { padding: 2.5rem 1.75rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .approach-inner { grid-template-columns: 1fr; }
  .approach-sticky { position: static; margin-bottom: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .philosophy { margin: 0 1.25rem 5rem; height: 460px; }
}

@media (max-width: 600px) {
  .navbar-inner, .hero-inner, .approach, .strategy, .legal, .footer-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-title { font-size: clamp(2.1rem, 11vw, 3rem); }
  .scroll-cue { display: none; }
  .philosophy-panel { padding: 1.75rem; }
}
