/* ============================================================
   NEXT TAX SOURCE — private client aesthetic
   Near-black navy · champagne gold · ivory
   ============================================================ */

:root {
  --black: #05080E;
  --navy: #0A1322;
  --navy-2: #0E1A2E;
  --gold: #C8A45C;
  --gold-soft: #DDC28A;
  --gold-faint: rgba(200, 164, 92, 0.28);
  --gold-hairline: rgba(200, 164, 92, 0.18);
  --ivory: #F3EFE6;
  --ivory-dim: #C7C2B6;
  --muted: #8B93A1;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

/* Every Heading In Title Case — firm style */
h1, h2, h3, h4 { text-transform: capitalize; }
html { scroll-behavior: smooth; }

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

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

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ---------- type ---------- */
.label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ivory);
}
.display em { font-style: italic; color: var(--gold-soft); }

/* ---------- hairlines ---------- */
.rule { width: 64px; height: 1px; background: var(--gold); border: none; margin: 28px 0; }
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(.16,.84,.3,1), transform 1.1s cubic-bezier(.16,.84,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-brand img { height: 38px; }
.nav-brand .name {
  font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; color: var(--ivory);
}
.nav-links { display: flex; gap: 44px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ivory-dim);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  padding-bottom: 6px; position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.4s cubic-bezier(.16,.84,.3,1);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border: 1px solid var(--gold-faint);
  padding: 18px 44px;
  background: transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: color 0.45s ease, border-color 0.45s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(.16,.84,.3,1);
  z-index: -1;
}
.btn:hover { color: var(--black); border-color: var(--gold); }
.btn:hover::before { transform: scaleX(1); }
.btn.solid { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn.solid::before { background: var(--gold-soft); }
.btn.solid:hover { border-color: var(--gold-soft); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 55% at 70% 0%, rgba(200, 164, 92, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 100%, rgba(30, 60, 110, 0.22), transparent 65%),
    linear-gradient(180deg, #070C16 0%, var(--black) 100%);
  padding: 160px 0 100px;
}
.hero::after {
  /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  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.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 7.2vw, 6.2rem);
  line-height: 1.04; letter-spacing: -0.01em;
  max-width: 16ch; margin: 36px 0 0;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede {
  margin-top: 40px; max-width: 54ch;
  font-size: 1.02rem; font-weight: 300; color: var(--ivory-dim); line-height: 2;
}
.hero .cta-row { margin-top: 56px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero .quiet-note {
  margin-top: 30px; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted);
}
.hero .quiet-note .dot { color: var(--gold); margin: 0 10px; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
  padding: 26px 0; overflow: hidden; white-space: nowrap;
  background: rgba(200, 164, 92, 0.02);
}
.marquee-track { display: inline-block; animation: drift 48s linear infinite; }
.marquee span {
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  color: var(--muted); margin: 0 38px; letter-spacing: 0.12em;
}
.marquee span i { font-style: normal; color: var(--gold); margin-right: 38px; font-size: 0.7rem; vertical-align: 2px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 150px 0; position: relative; }
.section-head { display: flex; align-items: baseline; gap: 36px; margin-bottom: 80px; }
.section-num {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold);
  flex-shrink: 0;
}
.section-head-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.12; max-width: 22ch;
}
.section-head-text .label { display: block; margin-bottom: 18px; }
.section-intro { color: var(--ivory-dim); max-width: 58ch; margin-top: 24px; font-weight: 300; line-height: 2; }

/* ---------- services (editorial columns) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--gold-hairline); }
.svc {
  padding: 56px 44px 64px; border-right: 1px solid var(--gold-hairline);
  transition: background 0.5s ease;
}
.svc:last-child { border-right: none; }
.svc:hover { background: rgba(200, 164, 92, 0.035); }
.svc .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.svc h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.7rem;
  margin: 22px 0 18px; color: var(--ivory);
}
.svc p { color: var(--ivory-dim); font-size: 0.92rem; line-height: 1.95; }
.svc ul { list-style: none; margin-top: 26px; }
.svc li {
  color: var(--ivory-dim); font-size: 0.86rem; padding: 11px 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.07);
}
.svc li::before { content: "—"; color: var(--gold); margin-right: 14px; }

/* ---------- manifesto / signature ---------- */
.manifesto {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200, 164, 92, 0.07), transparent 70%),
    var(--navy);
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
  text-align: center;
}
.manifesto blockquote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.4;
  max-width: 30ch; margin: 0 auto; color: var(--ivory);
}
.manifesto blockquote strong { color: var(--gold-soft); font-weight: 400; }
.manifesto .who {
  margin-top: 44px; font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted);
}

/* ---------- process ---------- */
.process { counter-reset: proc; }
.proc-row {
  display: grid; grid-template-columns: 120px 1fr 1.4fr; gap: 48px;
  padding: 56px 0; border-bottom: 1px solid rgba(243, 239, 230, 0.08);
  align-items: baseline;
}
.proc-row:first-of-type { border-top: 1px solid var(--gold-hairline); }
.proc-row .n {
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--gold-faint);
  transition: color 0.5s;
}
.proc-row:hover .n { color: var(--gold); }
.proc-row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.proc-row p { color: var(--ivory-dim); font-size: 0.93rem; line-height: 2; }

/* ---------- team ---------- */
.team-band { background: var(--navy); border-top: 1px solid var(--gold-hairline); }
.team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid rgba(243, 239, 230, 0.08);
  border-top: 1px solid rgba(243, 239, 230, 0.08);
}
.agent {
  padding: 34px 26px;
  border-right: 1px solid rgba(243, 239, 230, 0.08);
  border-bottom: 1px solid rgba(243, 239, 230, 0.08);
  transition: background 0.4s;
}
.agent:hover { background: rgba(200, 164, 92, 0.05); }
.agent .role {
  font-family: var(--serif); font-size: 1.08rem; color: var(--ivory); display: block;
}
.agent .desc { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 8px; display: block; line-height: 1.7; }
.agent.lead { background: rgba(200, 164, 92, 0.07); }
.agent.lead .role { color: var(--gold-soft); }

/* ---------- jurisdictions ---------- */
.jur-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.jur .label { display: block; }
.jur h3 {
  font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 20px 0 8px;
}
.jur .signed { font-size: 0.78rem; color: var(--gold-soft); font-style: italic; font-family: var(--serif); letter-spacing: 0.05em; }
.jur ul { list-style: none; margin-top: 30px; }
.jur li {
  color: var(--ivory-dim); font-size: 0.88rem; padding: 12px 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.07); line-height: 1.7;
}

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  border-top: 1px solid var(--gold-hairline); padding-top: 64px; margin-top: 110px;
}
.stat .big {
  font-family: var(--serif); font-size: 3.2rem; font-weight: 400; color: var(--ivory); line-height: 1;
}
.stat .big sup { font-size: 1.4rem; color: var(--gold); }
.stat .small { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* ---------- inquiry ---------- */
.inquiry {
  background:
    radial-gradient(ellipse 75% 70% at 50% 110%, rgba(200, 164, 92, 0.10), transparent 65%),
    var(--navy);
  border-top: 1px solid var(--gold-hairline);
}
.inquiry-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 110px; align-items: start; }
.inquiry-left h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.15; }
.inquiry-left p { color: var(--ivory-dim); margin-top: 28px; line-height: 2; font-size: 0.95rem; max-width: 44ch; }
.inquiry-left .assure { margin-top: 44px; }
.inquiry-left .assure li {
  list-style: none; color: var(--ivory-dim); font-size: 0.85rem; padding: 12px 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.08);
}
.inquiry-left .assure li::before { content: "—"; color: var(--gold); margin-right: 14px; }

.field { margin-bottom: 38px; }
.field label {
  display: block; font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(243, 239, 230, 0.18);
  padding: 10px 2px 14px; color: var(--ivory);
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  transition: border-color 0.4s;
  border-radius: 0;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--navy); color: var(--ivory); font-family: var(--sans); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field ::placeholder { color: rgba(199, 194, 182, 0.35); font-style: italic; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-msg { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; display: none; }
.form-msg.ok { color: var(--gold-soft); display: block; }
.form-msg.err { color: #C96A5E; display: block; }

/* ---------- footer ---------- */
footer { padding: 90px 0 70px; text-align: center; border-top: 1px solid var(--gold-hairline); }
footer img { height: 44px; margin-bottom: 26px; }
footer .fname { font-family: var(--serif); font-size: 1.5rem; color: var(--ivory); letter-spacing: 0.04em; }
footer .attribution {
  margin-top: 14px; font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
}
footer .legal {
  margin: 40px auto 0; max-width: 88ch; font-size: 0.74rem; color: var(--muted); line-height: 2;
}
footer .cities { margin-top: 36px; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 0.95rem; letter-spacing: 0.18em; }
footer .cities i { font-style: normal; color: var(--gold); margin: 0 16px; font-size: 0.6rem; vertical-align: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { border-right: none; border-bottom: 1px solid var(--gold-hairline); }
  .inquiry-grid { grid-template-columns: 1fr; gap: 70px; }
  .proc-row { grid-template-columns: 80px 1fr; }
  .proc-row p { grid-column: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .jur-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 90px 0; }
  .section-head { flex-direction: column; gap: 14px; margin-bottom: 50px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding-top: 130px; }
}
