/* ---------- Tokens ---------- */
:root {
  --bg: #f7f5f1;
  --bg-soft: #efece5;
  --ink: #1a1916;
  --ink-soft: #5c574e;
  --line: #e1ddd3;
  --gold: #b08d57;
  --gold-deep: #9a7842;
  --white: #fffdf9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--white); }

img { max-width: 100%; display: block; }

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type helpers ---------- */
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500;
}

h1, h2, h3, h4 { font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 1.6rem 0;
}
.nav.scrolled {
  background: rgba(247, 245, 241, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.9rem 0;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
}
.brand__word { font-weight: 500; letter-spacing: 0.28em; font-size: 0.95rem; }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.85rem;
  letter-spacing: 0.04em; position: relative; transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 0.6rem 1.1rem;
  border: 1px solid var(--line); border-radius: 100px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { border-color: var(--gold); color: var(--gold-deep); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 6px; }
.nav__burger span { width: 26px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.9rem; border-radius: 100px; text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.04em; font-weight: 400;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(154,120,66,.6); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 8rem 2rem 4rem;
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__title {
  font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 0.98; margin: 1.4rem 0 1.8rem;
}
.hero__title span { display: block; }
.hero__lede { max-width: 42ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-soft); }
.hero__actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 3.5rem; margin-top: 4.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__suf {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--ink);
}
.stat__suf { display: inline; font-size: 1.6rem; color: var(--gold); }
.stat > span { display: inline-flex; align-items: baseline; gap: 0.15rem; }
.stat p { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.5rem; }

.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; }
.hero__orb--1 {
  width: 46vw; height: 46vw; right: -10vw; top: -8vw;
  background: radial-gradient(circle at 30% 30%, rgba(176,141,87,.32), rgba(176,141,87,0) 70%);
  animation: float1 16s ease-in-out infinite;
}
.hero__orb--2 {
  width: 32vw; height: 32vw; left: -8vw; bottom: -10vw;
  background: radial-gradient(circle at 50% 50%, rgba(120,140,160,.22), rgba(120,140,160,0) 70%);
  animation: float2 20s ease-in-out infinite;
}
@keyframes float1 { 50% { transform: translate(-40px, 40px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(40px, -30px) scale(1.12); } }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; z-index: 2;
}
.hero__scroll span { width: 1px; height: 46px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--gold); animation: scrolldot 2s var(--ease) infinite;
}
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 1.4rem 0; }
.marquee__track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: scrollx 38s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--ink); opacity: 0.55; }
.marquee__track span:nth-child(even) { color: var(--gold); opacity: 1; font-style: normal; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 7rem 2rem; }
.section__head { margin-bottom: 3.5rem; }
.section__head h2, .approach h2, .markets h2, .firm h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 1rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 2.4rem 2rem; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; opacity: 0;
  background: radial-gradient(120% 120% at 0% 0%, rgba(176,141,87,.08), transparent 50%);
  transition: opacity 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(26,25,22,.4); border-color: var(--gold); }
.card:hover::before { opacity: 1; }
.card__no { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); letter-spacing: 0.1em; }
.card h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0.8rem 0 0.8rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card--accent { background: var(--ink); border-color: var(--ink); }
.card--accent .card__no { color: var(--gold); }
.card--accent h3 { color: var(--white); }
.card--accent p { color: rgba(255,253,249,.65); }
.card--accent:hover { box-shadow: 0 26px 50px -28px rgba(26,25,22,.7); }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.approach__text { color: var(--ink-soft); margin-top: 1.5rem; max-width: 44ch; font-size: 1.05rem; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.step {
  display: flex; gap: 1.6rem; padding: 1.8rem; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.step:hover { transform: translateX(8px); border-color: var(--gold); }
.step__no { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--gold); min-width: 2ch; }
.step h4 { font-size: 1.3rem; font-family: var(--serif); font-weight: 600; margin-bottom: 0.3rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Markets ---------- */
.markets__panel {
  background: linear-gradient(135deg, #1a1916, #2b2722 60%, #3a3128);
  color: var(--white); border-radius: 26px; padding: clamp(2.5rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.markets__panel::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 50%; height: 160%;
  background: radial-gradient(circle, rgba(176,141,87,.35), transparent 65%); filter: blur(30px);
}
.markets__panel .eyebrow { color: var(--gold); }
.markets__panel h2 { color: var(--white); margin: 1rem 0 1.5rem; position: relative; }
.markets__text { color: rgba(255,253,249,.7); max-width: 50ch; position: relative; font-size: 1.05rem; }
.markets__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; position: relative; }
.markets__chips span {
  border: 1px solid rgba(255,253,249,.2); padding: 0.55rem 1.2rem; border-radius: 100px;
  font-size: 0.85rem; color: rgba(255,253,249,.85); transition: 0.3s var(--ease);
}
.markets__chips span:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Firm ---------- */
.firm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.firm__body p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1.4rem; max-width: 52ch; }
.firm__locale { color: var(--gold-deep) !important; font-family: var(--serif); font-style: italic; font-size: 1.2rem !important; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 4rem 2rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; }
.footer__tag { color: var(--ink-soft); font-size: 0.95rem; }
.footer__copy { color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.04em; opacity: 0.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .approach, .firm__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(247,245,241,.97); backdrop-filter: blur(14px); padding: 1.5rem 2rem;
    gap: 1.2rem; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
  }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .hero__stats { gap: 2rem; }
  .section { padding: 4.5rem 1.4rem; }
  .hero { padding: 7rem 1.4rem 4rem; }
}
