/* ─────────────────────────────────────────────
   HALE & MERIDIAN — Private Wealth Counsel
   Editorial luxury · near-black · champagne hairline
   ───────────────────────────────────────────── */

:root {
  --ink: #0b0a08;            /* near-black, warm */
  --charcoal: #14120e;
  --charcoal-2: #1b1813;
  --paper: #ece7db;          /* warm off-white */
  --paper-dim: #b9b2a2;
  --paper-faint: #6f6a5e;
  --ghost: #37332b;          /* unlit text */
  --brass: #b7a57f;          /* thin metallic accent — hairlines only */
  --brass-dim: rgba(183, 165, 127, 0.35);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Avenir Next", "Futura", sans-serif;
  --ease-cine: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

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

em { font-style: italic; }

/* ── Film grain ─────────────────────────────── */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 25px); }
  66% { transform: translate(30px, -35px); }
  100% { transform: translate(0, 0); }
}

/* ── Scroll progress hairline ───────────────── */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 70;
  background: rgba(236, 231, 219, 0.06);
  pointer-events: none;
}
.progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brass-dim), var(--brass));
  transform-origin: left center;
  transform: scaleX(0);
}

/* ── Header ─────────────────────────────────── */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem);
  mix-blend-mode: normal;
  pointer-events: none;
}
.site-head a { pointer-events: auto; }

.wordmark { text-decoration: none; color: var(--paper); display: block; }
.wordmark-main {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.wordmark-main em { color: var(--brass); font-weight: 300; }
.wordmark-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.head-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.7s var(--ease-cine), border-color 0.7s var(--ease-cine);
}
.head-link:hover { color: var(--paper); border-bottom-color: var(--brass-dim); }
.head-link-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brass);
}

/* ── Shared: eyebrow ────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-faint);
  font-weight: 400;
}
.eyebrow-rule {
  display: inline-block;
  width: 3.5rem;
  height: 1px;
  background: var(--brass-dim);
}

/* ═════════ ACT 1 · HERO ═════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media { position: absolute; inset: 0; }

.strata {
  position: absolute;
  inset: -12%;
  will-change: transform;
}
.strata-a {
  background:
    radial-gradient(120% 90% at 78% 110%, #201a10 0%, transparent 55%),
    linear-gradient(180deg, #0b0a08 0%, #0e0c09 100%);
}
.strata-b {
  background:
    linear-gradient(115deg, transparent 42%, rgba(38, 32, 22, 0.85) 42.15%, rgba(24, 20, 14, 0.9) 60%, transparent 78%);
}
.strata-c {
  background:
    linear-gradient(65deg, transparent 55%, rgba(30, 26, 18, 0.7) 55.1%, rgba(16, 14, 10, 0.85) 100%);
}

.orb {
  position: absolute;
  width: 62vmax; height: 62vmax;
  left: 50%; top: 12%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    rgba(233, 210, 160, 0.16) 0%,
    rgba(199, 172, 120, 0.07) 32%,
    transparent 62%);
  will-change: transform;
}

.beam {
  position: absolute;
  width: 34vmax; height: 160vmax;
  left: 58%; top: -46%;
  transform: rotate(24deg);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(226, 205, 160, 0.05) 38%,
    rgba(236, 219, 178, 0.1) 50%,
    rgba(226, 205, 160, 0.05) 62%,
    transparent 100%);
  filter: blur(14px);
  will-change: transform;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: rgba(183, 165, 127, 0.13);
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 45%, rgba(6, 5, 4, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.55) 0%, transparent 22%, transparent 72%, rgba(11, 10, 8, 0.85) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 68rem;
}
.hero-eyebrow { justify-content: center; margin-bottom: clamp(1.5rem, 3vh, 2.75rem); }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 9.2vw, 8.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word { display: inline-block; will-change: transform; }
.line-2 { font-style: italic; font-weight: 300; color: #ddd5c4; }

.hero-sub {
  margin-top: clamp(1.75rem, 4vh, 3rem);
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}

.hero-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero-hint-label {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.hero-hint-line {
  width: 1px; height: 3.5rem;
  background: linear-gradient(180deg, var(--brass-dim), transparent);
  overflow: hidden;
  position: relative;
}
.hero-hint-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--brass);
  animation: hint-drop 2.6s var(--ease-cine) infinite;
}
@keyframes hint-drop {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(200%); }
}

/* ═════════ ACT 2 · THESIS ═════════ */
.thesis {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding: clamp(6rem, 12vh, 10rem) clamp(1.25rem, 6vw, 6rem);
}
.thesis-inner { max-width: 74rem; margin: 0 auto; }
.thesis .eyebrow { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

.thesis-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 4.4rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 20ch;
}
.thesis-text .t-word { color: var(--ghost); transition: none; }

/* ═════════ ACT 3 · CHAPTERS ═════════ */
.chapters {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--charcoal) 100%);
  overflow: hidden;
}
.chapters-head {
  position: absolute;
  top: clamp(2rem, 6vh, 4rem);
  left: clamp(1.25rem, 6vw, 6rem);
  z-index: 3;
}
.chapters-viewport {
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.chapters-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.chapter {
  width: 100vw;
  min-height: 100dvh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 9rem);
}
.chapter-num {
  position: absolute;
  right: clamp(1rem, 6vw, 7rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(11rem, 34vw, 30rem);
  line-height: 1;
  color: rgba(236, 231, 219, 0.035);
  pointer-events: none;
  user-select: none;
}
.chapter-body { position: relative; max-width: 34rem; margin-right: auto; }
.chapter-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}
.chapter-copy {
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  line-height: 1.9;
  color: var(--paper-dim);
  max-width: 42ch;
}
.chapter-rule {
  display: block;
  margin-top: clamp(2rem, 4vh, 3rem);
  width: 5.5rem;
  height: 1px;
  background: var(--brass);
  transform-origin: left center;
}

.chapters-index {
  position: absolute;
  bottom: clamp(2rem, 6vh, 4rem);
  left: clamp(1.25rem, 6vw, 6rem);
  z-index: 3;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--paper-faint);
  letter-spacing: 0.08em;
}
.chapters-current { color: var(--brass); margin-right: 0.35rem; }

/* ═════════ ACT 4 · METHOD ═════════ */
.method {
  background: var(--charcoal);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vh, 10rem) clamp(1.25rem, 6vw, 6rem);
}
.method-inner {
  position: relative;
  max-width: 74rem;
  margin: 0 auto;
  width: 100%;
}
.method .eyebrow { margin-bottom: clamp(3rem, 7vh, 5rem); }

.method-steps { list-style: none; position: relative; }
.method-line {
  position: absolute;
  left: 0.4rem;
  top: 6.5rem;
  bottom: 2rem;
  width: 1px;
  background: var(--brass-dim);
  transform-origin: top center;
  transform: scaleY(0);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(1.75rem, 4vh, 3rem) 0;
  border-bottom: 1px solid rgba(236, 231, 219, 0.06);
}
.step:last-child { border-bottom: none; }
.step-index {
  grid-row: 1 / 3;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--paper-faint);
  font-weight: 400;
}
.step-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--ghost);
}
.step-copy {
  grid-column: 2;
  margin-top: 0.9rem;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: var(--paper-faint);
  max-width: 46ch;
}
.step.is-lit .step-title { color: var(--paper); }
.step.is-lit .step-copy { color: var(--paper-dim); }

/* ═════════ ACT 5 · PRINCIPALS ═════════ */
.principals {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--ink) 30%);
  padding: clamp(8rem, 16vh, 13rem) clamp(1.25rem, 6vw, 6rem);
}
.principals-inner { max-width: 74rem; margin: 0 auto; }
.principals .eyebrow { margin-bottom: clamp(2rem, 5vh, 3rem); }

.principals-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  margin-bottom: clamp(4rem, 9vh, 7rem);
}

.principals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.principal-plate {
  position: relative;
  aspect-ratio: 3 / 4;
  margin-bottom: 1.75rem;
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(226, 205, 160, 0.07) 0%, transparent 55%),
    linear-gradient(160deg, var(--charcoal-2) 0%, #100e0a 100%);
  border: 1px solid rgba(183, 165, 127, 0.14);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  overflow: hidden;
}
.principal-plate::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(236, 231, 219, 0.05);
  pointer-events: none;
}
.principal-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(5rem, 9vw, 8.5rem);
  line-height: 0.8;
  color: rgba(183, 165, 127, 0.22);
  user-select: none;
}
.principal-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}
.principal-role {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 400;
}
.principal-bio {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--paper-dim);
  max-width: 34ch;
}

/* ═════════ ACT 6 · CTA ═════════ */
.cta {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(8rem, 14vh, 12rem) 1.5rem;
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(199, 172, 120, 0.06) 0%, transparent 70%),
    var(--ink);
  overflow: hidden;
}
.cta-inner { position: relative; z-index: 2; max-width: 60rem; }
.cta-eyebrow { justify-content: center; margin-bottom: clamp(2rem, 5vh, 3rem); }

.cta-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.cta-title em { color: #ddd5c4; }

.cta-sub {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}

.cta-button {
  display: inline-block;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  text-decoration: none;
  color: var(--paper);
  will-change: transform;
}
.cta-button-inner {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.1rem 1.05rem 2rem;
  border: 1px solid rgba(183, 165, 127, 0.45);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  transition: border-color 0.8s var(--ease-cine), background-color 0.8s var(--ease-cine);
  will-change: transform;
}
.cta-button:hover .cta-button-inner {
  border-color: var(--brass);
  background: rgba(183, 165, 127, 0.06);
}
.cta-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(183, 165, 127, 0.35);
  color: var(--brass);
  transition: transform 0.8s var(--ease-cine), background-color 0.8s var(--ease-cine);
}
.cta-button-icon svg { width: 0.85rem; height: 0.85rem; }
.cta-button:hover .cta-button-icon {
  transform: translate(2px, -2px);
  background: rgba(183, 165, 127, 0.12);
}
.cta-button:active .cta-button-inner { transform: scale(0.98); }

.cta-note {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--paper-faint);
}

/* ── Footer ─────────────────────────────────── */
.site-foot {
  border-top: 1px solid rgba(236, 231, 219, 0.07);
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
  background: var(--ink);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot-mark {
  font-family: var(--serif);
  font-size: 1rem;
}
.foot-mark em { color: var(--brass); }
.foot-cities {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.foot-legal {
  margin-top: 2rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--paper-faint);
}

/* ── Reveal defaults (JS-driven; visible w/o JS) ── */
[data-reveal] { will-change: transform, opacity; }

/* ═════════ Reduced motion ═════════ */
.reduced .grain { animation: none; }
.reduced .hero-hint-line::after { animation: none; }
.reduced .chapters-viewport { height: auto; }
.reduced .chapters-track { flex-direction: column; width: 100%; }
.reduced .chapter { width: 100%; min-height: auto; padding-top: clamp(4rem, 8vh, 6rem); padding-bottom: clamp(4rem, 8vh, 6rem); }
.reduced .chapters-index { display: none; }
.reduced .step .step-title { color: var(--paper); }
.reduced .step .step-copy { color: var(--paper-dim); }
.reduced .thesis-text .t-word { color: var(--paper); }
.reduced .method-line { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero-hint-line::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ═════════ Mobile ═════════ */
@media (max-width: 900px) {
  .principals-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .principal-bio { max-width: 46ch; }
}

@media (max-width: 768px) {
  .site-head { padding: 1.25rem 1.25rem; }
  .head-link { font-size: 0.58rem; letter-spacing: 0.16em; }
  .hero-sub br { display: none; }
  .cta-sub br { display: none; }
  .step { grid-template-columns: 1fr; row-gap: 0.4rem; }
  .step-index { grid-row: auto; }
  .method-line { display: none; }
  .chapter-num { right: 0.5rem; opacity: 0.7; }
  .chapter-body { max-width: 100%; }
}
