/* ============================================================
   Montrose Legacy Partners
   Aesthetic: permanent capital / merchant bank. Ink navy, warm
   paper, brass hairlines, blue as the single interactive accent.
   ============================================================ */

:root {
  /* Palette */
  --ink: #1b2334;            /* deep ink navy, hero + dark bands  */
  --navy: #293144;           /* brand navy                        */
  --navy-soft: #3a4358;
  --blue: #045bbe;           /* brand blue, interactive accent    */
  --blue-bright: #5b8fd6;    /* lighter blue for dark backgrounds */
  --brass: #b08d57;          /* legacy warmth, hairline accents   */

  --paper: #f6f3ec;          /* warm off-white, primary light bg  */
  --paper-2: #f1ece2;        /* slightly deeper warm tint         */
  --stone: #eae3d6;          /* warm stone band                   */
  --line: #ddd5c6;           /* warm hairline on paper            */
  --line-dark: rgba(255, 255, 255, 0.14);

  --text: #232a36;           /* body ink on paper                 */
  --text-soft: #5d6472;      /* muted body                        */
  --text-faint: #8a8578;     /* warm faint (labels, captions)     */
  --on-dark: #f4f1ea;
  --on-dark-soft: rgba(244, 241, 234, 0.66);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--blue); color: #fff; }

/* Film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%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)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.shell {
  width: min(var(--shell), calc(100% - 56px));
  margin: 0 auto;
}

.band { padding: clamp(92px, 12vw, 168px) 0; }
.band--paper { background: var(--paper); }
.band--stone {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}
.eyebrow .dot { color: var(--brass); margin: 0 2px; }
.eyebrow--light { color: var(--on-dark-soft); }
.eyebrow--light::before { background: var(--brass); }

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section__lede {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 34ch;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 16px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg { transform: translateX(5px); }

.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover { background: #fff; transform: translateY(-2px); }

.btn--dark {
  background: var(--navy);
  color: var(--on-dark);
}
.btn--dark:hover { background: var(--ink); transform: translateY(-2px); }

.textlink {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 3px;
}
.textlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.textlink:hover::after { transform: scaleX(1); }
.textlink--light { color: var(--on-dark); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { width: 30px; height: auto; flex: none; }
.mark-a { fill: var(--navy); transition: fill 0.4s var(--ease); }
.mark-b { fill: var(--blue); transition: fill 0.4s var(--ease); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.01em;
  color: var(--navy);
  transition: color 0.4s var(--ease);
}
.brand__sub {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.4s var(--ease);
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; }

/* full wordmark logo */
.brand__full { height: 36px; width: auto; display: block; }
.brand__full path, .brand__full polygon { transition: fill 0.4s var(--ease); }

/* over the dark hero: light treatment */
.topbar .mark-a { fill: #fff; }
.topbar .mark-b { fill: var(--blue-bright); }
.topbar .brand__name { color: #fff; }
.topbar .brand__sub { color: var(--on-dark-soft); }
/* recolor the wordmark white over the dark hero */
.topbar .brand__full .st2,
.topbar .brand__full .st3 { fill: #fff; }
.topbar .brand__full .st0 { fill: rgba(255, 255, 255, 0.5); }
.topbar .brand__full .st1 { fill: var(--blue-bright); }

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* scrolled state: solid paper bar */
.topbar.is-stuck {
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: 14px 0;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(27, 35, 52, 0.4);
}
.topbar.is-stuck .mark-a { fill: var(--navy); }
.topbar.is-stuck .mark-b { fill: var(--blue); }
.topbar.is-stuck .brand__name { color: var(--navy); }
.topbar.is-stuck .brand__sub { color: var(--text-faint); }
/* wordmark returns to brand colors on the paper bar */
.topbar.is-stuck .brand__full .st2,
.topbar.is-stuck .brand__full .st3 { fill: var(--navy); }
.topbar.is-stuck .brand__full .st0 { fill: rgba(41, 49, 68, 0.35); }
.topbar.is-stuck .brand__full .st1 { fill: var(--blue); }
.topbar.is-stuck .nav a { color: var(--text-soft); }
.topbar.is-stuck .nav a:hover { color: var(--navy); }
.topbar.is-stuck .nav__cta {
  color: var(--navy);
  border-color: var(--line);
}
.topbar.is-stuck .nav__cta:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 88px;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.82) contrast(1.03);
  transform: scale(1.04);
  animation: kenburns 26s ease-in-out infinite alternate;
}
/* navy duotone unify */
.hero__tint {
  position: absolute; inset: 0;
  background: var(--ink);
  mix-blend-mode: color;
  opacity: 0.42;
}
/* legibility wash + vignette */
.hero__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 35, 52, 0.5) 0%, rgba(27, 35, 52, 0.22) 32%, rgba(27, 35, 52, 0.72) 78%, rgba(27, 35, 52, 0.92) 100%),
    radial-gradient(120% 90% at 70% 20%, transparent 40%, rgba(15, 20, 32, 0.5) 100%);
}

.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: #fff;
}
.hero__lede {
  margin: 30px 0 0;
  max-width: 50ch;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--on-dark-soft);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s var(--ease);
}
.hero__scroll svg {
  display: block;
  width: 22px; height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scrollcue 2s var(--ease) infinite;
}
.hero__scroll:hover { color: #fff; }
@media (min-height: 720px) { .hero__scroll { display: block; } }

/* ---------- Statement ---------- */
.statement {
  padding-top: clamp(86px, 11vw, 150px);
  padding-bottom: clamp(86px, 11vw, 150px);
  text-align: center;
}
.statement__text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(27px, 3.7vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--navy);
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: balance;
}
.statement__text::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--brass);
  margin: 0 auto clamp(34px, 4vw, 48px);
}
.statement__text em { font-style: italic; color: var(--blue); }

/* ---------- Approach ---------- */
.approach__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.approach__aside { position: sticky; top: 120px; }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}
.ledger__row:last-child { border-bottom: 1px solid var(--line); }
.ledger__num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  font-style: italic;
  color: var(--brass);
  line-height: 1;
  padding-top: 6px;
}
.ledger__body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -0.005em;
  color: var(--navy);
  margin-bottom: 12px;
}
.ledger__body p {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 46ch;
}

/* ---------- Quote interstitial ---------- */
.quote {
  position: relative;
  padding: clamp(110px, 16vw, 220px) 0;
  overflow: hidden;
  background: var(--ink);
}
.quote__media { position: absolute; inset: 0; z-index: 0; }
.quote__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.7) contrast(1.02);
  transform: scale(1.06);
}
.quote__wash {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 27, 43, 0.94) 0%, rgba(20, 27, 43, 0.78) 55%, rgba(20, 27, 43, 0.6) 100%),
    linear-gradient(180deg, rgba(20, 27, 43, 0.3), rgba(20, 27, 43, 0.5));
}
.quote .shell { position: relative; z-index: 2; }
.quote__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 18ch;
  position: relative;
}
.quote__text em { font-style: italic; color: var(--blue-bright); }
.quote__text span {
  font-size: 1.4em;
  color: var(--brass);
  margin-right: 2px;
}

/* ---------- Mandate ---------- */
.mandate__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 78px); }
.mandate__head .section__lede { max-width: 56ch; }

.criteria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.criteria__item {
  background: var(--paper);
  padding: clamp(30px, 4vw, 48px);
  transition: background 0.4s var(--ease);
}
.criteria__item:hover { background: #fffdf8; }
.criteria__rule {
  display: block;
  width: 30px; height: 2px;
  background: var(--brass);
  margin-bottom: 22px;
}
.criteria__item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  color: var(--navy);
  margin-bottom: 10px;
}
.criteria__item p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.mandate__note {
  margin: clamp(40px, 5vw, 60px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text);
}

/* ---------- Contact + Footer ---------- */
.contact {
  background: var(--ink);
  color: var(--on-dark);
  padding-bottom: 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  padding-bottom: clamp(80px, 10vw, 130px);
}
.contact__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 22px;
}
.contact__text {
  font-size: 19px;
  line-height: 1.7;
  color: var(--on-dark-soft);
  max-width: 42ch;
  margin: 0 0 38px;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact__email svg {
  width: 19px; height: 19px;
  fill: none; stroke: var(--blue-bright); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact__email:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 38px;
  padding-top: 14px;
}
.contact__block { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.contact__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.contact__address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-dark);
}
.contact__link {
  font-size: 18px;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact__link:hover { color: #fff; border-bottom-color: var(--blue-bright); }

.footer {
  border-top: 1px solid var(--line-dark);
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: inline-flex; align-items: center; gap: 13px; }
.footer__mark { width: 26px; height: auto; }
.footer .mark-a { fill: #fff; }
.footer .mark-b { fill: var(--blue-bright); }
.footer__wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--on-dark);
}
.footer__copy {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(244, 241, 234, 0.42);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.13); }
}
@keyframes scrollcue {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .approach__grid { grid-template-columns: 1fr; gap: 44px; }
  .approach__aside { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .shell { width: calc(100% - 40px); }
  .topbar { padding: 15px 0; }
  .topbar.is-stuck { padding: 10px 0; }
  .brand__full { height: 30px; }
  .nav { gap: 18px; }
  .nav a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 8px 16px; font-size: 11.5px; letter-spacing: 0.06em; }
  .criteria { grid-template-columns: 1fr; }
  .hero { padding-top: 132px; }
  .hero__actions { gap: 22px; }
  .ledger__row { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .ledger__num { padding-top: 0; }
  .statement__text { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
