/* =========================================================
   Burke Wilte Partners | boutique private wealth advisory
   Aesthetic: refined private-bank, ink + champagne gold
   ========================================================= */

:root {
  --ink:        #0c0d0f;
  --ink-2:      #121317;
  --ink-3:      #16181d;
  --bone:       #ece6da;
  --bone-soft:  #c8c2b6;
  --muted:      #8c877d;
  --gold:       #c2a36b;
  --gold-bright:#dcc189;
  --line:       rgba(228, 217, 196, 0.12);
  --line-soft:  rgba(228, 217, 196, 0.07);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;

  --shell: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.08rem);
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.shell {
  width: min(var(--shell), 100% - (var(--pad) * 2));
  margin-inline: auto;
}

/* ---- Film grain + ambient glow ---- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.4; mix-blend-mode: overlay;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
body::before {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  top: -25vh; right: -15vw; width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(194, 163, 107, 0.10), transparent 60%);
  filter: blur(20px);
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

/* ---- Typography helpers ---- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  font-optical-sizing: auto;
}
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* =================== HEADER =================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 13, 15, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.92rem; letter-spacing: 0.02em;
  border-radius: 2px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem; line-height: 1; letter-spacing: 0.01em;
  display: flex; flex-direction: column; gap: 2px;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  font-size: 0.84rem; letter-spacing: 0.04em; color: var(--bone-soft);
  position: relative; transition: color 0.3s;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--bone); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line); padding: 0.6rem 1.2rem; border-radius: 2px;
  color: var(--bone); transition: border-color 0.3s, color 0.3s;
}
.nav-cta:hover { border-color: var(--gold); color: var(--gold-bright); }

.menu-toggle {
  display: none; flex-direction: column; gap: 6px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 26px; height: 1.5px; background: var(--bone); transition: 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-0px) rotate(-45deg); }

/* =================== HERO =================== */
.hero { padding-top: clamp(9rem, 18vh, 13rem); padding-bottom: 0; }
.eyebrow { margin-bottom: 1.6rem; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
.hero-title span { display: block; }
.hero-title em { font-style: italic; color: var(--gold-bright); font-weight: 300; }
.hero-lede {
  max-width: 46ch; color: var(--bone-soft); font-size: clamp(1.05rem, 1.1vw, 1.22rem);
  font-weight: 300; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; letter-spacing: 0.06em; font-weight: 500;
  padding: 0.95rem 1.7rem; border-radius: 2px; cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-ghost span { transition: transform 0.35s var(--ease); }
.btn-ghost:hover span { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; margin-top: 0.6rem; }

.hero-rule {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between;
  margin-top: clamp(4rem, 9vh, 7rem);
  padding: 1.5rem 0; border-top: 1px solid var(--line);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  width: min(var(--shell), 100% - (var(--pad) * 2)); margin-inline: auto;
}

/* =================== POSITIONING =================== */
.positioning { padding: clamp(4rem, 8vh, 6.5rem) 0; }
.positioning-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.pos-item {
  background: var(--ink); padding: 2.2rem clamp(1.4rem, 2vw, 2.2rem);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.pos-k { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-bright); font-weight: 400; }
.pos-v { color: var(--bone-soft); font-size: 0.96rem; line-height: 1.6; font-weight: 300; }

/* =================== SECTIONS =================== */
.section { padding: clamp(5rem, 12vh, 9rem) 0; border-top: 1px solid var(--line-soft); }
.two-col { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 6vw, 6rem); }
.col-label {
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}
.col-label .idx { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); letter-spacing: 0; }
.col-body > .display { margin-bottom: 1.8rem; max-width: 18ch; }
.col-body .lead { font-size: 1.18rem; font-weight: 300; color: var(--bone); margin-bottom: 1.3rem; line-height: 1.6; }
.col-body p { color: var(--bone-soft); max-width: 60ch; margin-bottom: 1.2rem; font-weight: 300; }

.ticks { list-style: none; margin-top: 2rem; display: grid; gap: 0.9rem; }
.ticks li {
  position: relative; padding-left: 1.8rem; color: var(--bone); font-size: 0.98rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.2rem; }
.section-head .display { max-width: 22ch; }

/* ---- Capabilities ---- */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cap {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2.4rem clamp(1.5rem, 2vw, 2.2rem) 2.6rem;
  position: relative; transition: background 0.4s var(--ease);
}
.cap:hover { background: var(--ink-2); }
.cap-no { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.cap h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -0.01em;
  margin: 1rem 0 0.7rem;
}
.cap p { color: var(--bone-soft); font-size: 0.95rem; font-weight: 300; line-height: 1.6; }
.cap::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.45s var(--ease);
}
.cap:hover::after { width: 100%; }

/* ---- Approach ---- */
.approach-list { list-style: none; display: grid; gap: 0; margin-top: 0.5rem; }
.approach-list li {
  display: block;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.approach-list li:last-child { border-bottom: 1px solid var(--line); }
.ap-no { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); padding-top: 0.2rem; }
.approach-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 0.5rem; }
.approach-list p { color: var(--bone-soft); font-weight: 300; max-width: 62ch; }

/* ---- Partners ---- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.partner { border-top: 1px solid var(--gold); padding-top: 1.8rem; }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; margin-bottom: 1.5rem;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border: 1px solid var(--line);
  overflow: hidden;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92) contrast(1.02);
}
.partner:hover .portrait img { transform: scale(1.03); filter: saturate(1) contrast(1.02); }
.partner h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.partner .role { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0.35rem 0 0.9rem; }
.partner .bio { color: var(--bone-soft); font-weight: 300; font-size: 0.95rem; }
.partner-note { margin-top: 2.5rem; font-size: 0.8rem; color: var(--muted); font-style: italic; }

/* ---- Contact ---- */
.contact-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  background: var(--ink-2); border: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.contact-lead .col-label { margin-bottom: 1.5rem; }
.contact-lead .display { margin-bottom: 1.3rem; max-width: 16ch; }
.contact-lead p { color: var(--bone-soft); font-weight: 300; max-width: 42ch; }
.contact-detail { display: flex; flex-direction: column; gap: 1.4rem; }
.detail-row { display: grid; gap: 0.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft); }
.detail-row .dk { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.detail-row a, .detail-row span { color: var(--bone); font-weight: 300; line-height: 1.55; transition: color 0.3s; }
.detail-row a:hover { color: var(--gold-bright); }

/* ---- Perspective / notes ---- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.note { background: var(--ink); padding: 2.2rem clamp(1.4rem, 2vw, 2rem) 2.4rem; display: flex; flex-direction: column; gap: 0.9rem; transition: background 0.4s var(--ease); }
.note:hover { background: var(--ink-2); }
.note-meta { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.note h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; }
.note p { color: var(--bone-soft); font-weight: 300; font-size: 0.96rem; line-height: 1.62; }

/* =================== FOOTER =================== */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vh, 5rem) 0 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; font-family: var(--serif); font-size: 1.05rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a { font-size: 0.86rem; color: var(--bone-soft); transition: color 0.3s; width: fit-content; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
.footer-legal .disclaimer { display: block; margin-top: 0.8rem; font-size: 0.75rem; opacity: 0.85; }

/* =================== SUB PAGES (legal / 404) =================== */
.subpage { min-height: 100vh; display: flex; flex-direction: column; }
.subpage main { flex: 1; padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(4rem, 8vh, 7rem); }
.doc { max-width: 760px; }
.doc .eyebrow { margin-bottom: 1.2rem; }
.doc h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1rem; }
.doc .stamp { color: var(--muted); font-size: 0.84rem; letter-spacing: 0.04em; margin-bottom: 2.6rem; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 2.4rem 0 0.8rem; }
.doc p, .doc li { color: var(--bone-soft); font-weight: 300; line-height: 1.7; }
.doc p { margin-bottom: 1.1rem; }
.doc ul { margin: 0 0 1.1rem 1.2rem; display: grid; gap: 0.5rem; }
.doc a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.doc .note-block { border-left: 1px solid var(--gold); padding: 0.6rem 0 0.6rem 1.4rem; margin: 2rem 0; color: var(--muted); font-size: 0.9rem; }
.error-shell { display: grid; place-items: center; text-align: center; flex: 1; gap: 1.4rem; padding: 8rem var(--pad); }
.error-shell .code { font-family: var(--serif); font-size: clamp(4rem, 14vw, 9rem); color: var(--gold); line-height: 1; font-weight: 300; }
.error-shell p { color: var(--bone-soft); font-weight: 300; max-width: 36ch; }

/* =================== REVEAL ANIMATION =================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .site-header.menu-open {
    background: rgba(12,13,15,0.96); backdrop-filter: blur(14px); border-bottom-color: var(--line);
  }
  .site-header.menu-open .nav {
    display: flex; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--pad) 2rem;
  }
  .site-header.menu-open .nav a { padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-cta { border: 0 !important; padding-left: 0 !important; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .col-label { flex-direction: row; align-items: baseline; gap: 1rem; }
  .col-label .idx { font-size: 1.6rem; }
  .positioning-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; gap: 3rem; }
  .partner .portrait { aspect-ratio: 16 / 10; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .hero-rule { gap: 0.4rem; }
  .hero-rule span { flex-basis: 100%; }
}
