/* ═══════════════════════════════════════════════════════
   VOSS & MARLOWE LLP — demo site
   Palette: linen #f3efe7 · ash #6f675c · walnut #6e4f37 · espresso #2e2820
   ═══════════════════════════════════════════════════════ */

:root {
  --linen: #f3efe7;
  --linen-2: #ece6da;
  --paper: #faf7f1;
  --espresso: #2e2820;
  --ash: #6f675c;
  --ash-light: rgba(46, 40, 32, 0.45);
  --walnut: #6e4f37;
  --walnut-soft: rgba(110, 79, 55, 0.35);
  --wood-dark: #2a2018;
  --ivory: #f2ede3;
  --line: rgba(46, 40, 32, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--walnut); color: var(--ivory); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { width: min(1240px, 92vw); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

/* ─────────── Preloader ─────────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--linen);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__monogram {
  font-family: var(--serif); font-size: clamp(56px, 9vw, 96px);
  font-weight: 400; letter-spacing: 0.08em; color: var(--espresso);
  animation: pl-rise 1s var(--ease) both;
}
.preloader__monogram span { color: var(--walnut); margin: 0 0.05em; }
.preloader__line {
  width: 160px; height: 1px; background: var(--line);
  margin: 20px auto; overflow: hidden;
}
.preloader__line span {
  display: block; width: 100%; height: 100%;
  background: var(--walnut); transform: translateX(-100%);
  animation: pl-bar 1.4s 0.2s var(--ease) forwards;
}
.preloader__word {
  font-size: 10px; letter-spacing: 0.5em; color: var(--ash);
  animation: pl-rise 1s 0.3s var(--ease) both;
}
@keyframes pl-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pl-bar { to { transform: translateX(0); } }

/* ─────────── Nav ─────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0; color: var(--ivory);
  transition: padding 0.5s var(--ease), background 0.5s, color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(243, 239, 231, 0.94);
  color: var(--espresso);
  border-bottom: 1px solid var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav__inner {
  width: min(1400px, 94vw); margin-inline: auto;
  display: flex; align-items: center; gap: 40px;
}
.nav__brand { display: flex; align-items: baseline; gap: 14px; }
.nav__monogram { font-family: var(--serif); font-size: 28px; letter-spacing: 0.05em; }
.nav__monogram em, .nav__name em { color: var(--walnut); font-style: normal; }
.nav:not(.scrolled) .nav__monogram em,
.nav:not(.scrolled) .nav__name em { color: #cbb28f; }
.nav__name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav__name small { font-size: 11px; opacity: 0.65; letter-spacing: 0.2em; }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.8; position: relative; padding: 4px 0;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 17px 36px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s;
}
.btn--gold { background: var(--walnut); color: var(--ivory); font-weight: 500; }
.btn--gold:hover { background: #5a3f2b; }
.btn--line { border-color: rgba(242, 237, 227, 0.5); color: var(--ivory); }
.btn--line:hover { background: var(--ivory); color: var(--espresso); }
.btn--ghost { border-color: currentColor; color: inherit; opacity: 0.9; }
.btn--ghost:hover { background: var(--walnut); border-color: var(--walnut); color: var(--ivory); opacity: 1; }
.btn--full { width: 100%; text-align: center; }

/* ─────────── Hero ─────────── */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  color: var(--ivory);
}
.hero__media { position: absolute; inset: 0; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  animation: hero-zoom 30s ease-in-out infinite alternate;
  filter: saturate(0.65) brightness(0.9) sepia(0.12);
}
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 24, 18, 0.6), rgba(30, 24, 18, 0.35) 45%, rgba(46, 36, 26, 0.75) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 120px 20px 0; }
.hero__eyebrow {
  font-size: 11px; letter-spacing: 0.45em; text-transform: uppercase;
  color: #cbb28f; margin-bottom: 32px;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 1.06; letter-spacing: 0.01em;
}
.hero__title em { font-style: italic; color: #d8c3a0; }
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line > span { display: inline-block; transform: translateY(115%); }
.hero__sub {
  max-width: 520px; margin: 32px auto 0; color: rgba(242, 237, 227, 0.78);
  font-size: 15px; letter-spacing: 0.02em;
}
.hero__actions { margin-top: 42px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(242, 237, 227, 0.6);
}
.hero__scroll-line { width: 1px; height: 48px; background: rgba(242, 237, 227, 0.25); }
@media (max-height: 800px) { .hero__scroll { display: none; } }

/* ─────────── Credentials strip ─────────── */
.creds { background: var(--linen-2); border-bottom: 1px solid var(--line); padding: 22px 0; }
.creds__row {
  display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 16px; color: var(--ash); text-align: center;
}
.creds__dot { color: var(--walnut); }

/* ─────────── Section furniture ─────────── */
.section__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--walnut); margin-bottom: 26px;
}
.rule { display: inline-block; width: 54px; height: 1px; background: var(--walnut-soft); }
.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 62px); line-height: 1.1; margin-bottom: 32px;
}
.section__title em { font-style: italic; color: var(--walnut); }
.section__title span { display: block; overflow: hidden; }

/* ─────────── Reveal system ─────────── */
.reveal-fade { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-fade.in { opacity: 1; transform: none; }
.reveal-lines > span {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  transition: clip-path 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.reveal-lines > span:nth-child(1) { --i: 0; }
.reveal-lines > span:nth-child(2) { --i: 1; }
.reveal-lines > span:nth-child(3) { --i: 2; }
.reveal-lines.in > span { clip-path: inset(-10% 0 -10% 0); transform: none; }
.reveal-line span { display: inline-block; opacity: 0; transform: translateY(16px); transition: 0.8s var(--ease); }
.reveal-line.in span { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(6% 5% 6% 5%); transition: clip-path 1.1s var(--ease); }
.reveal-clip.in { clip-path: inset(0 0 0 0); }

/* ─────────── Firm ─────────── */
.firm { background: var(--linen); }
.firm__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.firm__text p { color: var(--ash); margin-bottom: 20px; max-width: 480px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--walnut);
  margin-top: 10px;
}
.link-arrow span { transition: transform 0.4s var(--ease); }
.link-arrow:hover span { transform: translateX(8px); }
.firm__media { position: relative; }
.firm__img { overflow: hidden; }
.firm__img img {
  width: 100%; height: clamp(420px, 55vw, 600px); object-fit: cover;
  filter: saturate(0.75) sepia(0.15); transform: scale(1.12);
  will-change: transform;
}
.firm__card {
  position: absolute; left: -50px; bottom: 44px; width: 240px;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(46, 40, 32, 0.12);
}
.firm__card-num { font-family: var(--serif); font-size: 68px; line-height: 1; color: var(--walnut); }
.firm__card-label { font-size: 13px; color: var(--ash); margin-top: 10px; }
@media (max-width: 960px) {
  .firm__grid { grid-template-columns: 1fr; }
  .firm__card { left: 16px; }
}

/* ─────────── Stats ─────────── */
.stats { padding: clamp(56px, 7vw, 100px) 0; background: var(--linen-2); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 60px); color: var(--espresso); line-height: 1; }
.stat__num span { color: var(--walnut); }
.stat__label { margin-top: 12px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 800px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ─────────── Practices ─────────── */
.practices { background: var(--linen); }
.practices__list { margin-top: 30px; border-top: 1px solid var(--line); }
.practice {
  display: grid; grid-template-columns: 80px 1.1fr 1.6fr 60px;
  align-items: center; gap: 30px;
  padding: 40px 10px; border-bottom: 1px solid var(--line);
  position: relative; transition: padding 0.5s var(--ease), background 0.5s;
}
.practice:hover { padding-left: 24px; background: rgba(110, 79, 55, 0.05); }
.practice__idx { font-family: var(--serif); font-size: 19px; color: var(--walnut); font-style: italic; }
.practice__name { font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.15; }
.practice__desc { font-size: 14px; color: var(--ash); }
.practice__arrow {
  font-size: 20px; color: var(--walnut); justify-self: end;
  transform: translateX(-12px); opacity: 0; transition: 0.5s var(--ease);
}
.practice:hover .practice__arrow { transform: none; opacity: 1; }
@media (max-width: 860px) {
  .practice { grid-template-columns: 50px 1fr; }
  .practice__desc { grid-column: 2; }
  .practice__arrow { display: none; }
}

/* ─────────── Quote band (wood) ─────────── */
.band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(32, 23, 15, 0.82), rgba(32, 23, 15, 0.82)),
    url("https://images.pexels.com/photos/326311/pexels-photo-326311.jpeg?auto=compress&cs=tinysrgb&w=1600") center / cover no-repeat;
  color: var(--ivory);
}
.band__content { position: relative; z-index: 2; text-align: center; padding: clamp(90px, 12vw, 150px) 0; }
.band__quote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(32px, 5vw, 62px); line-height: 1.2;
}
.band__attr { margin-top: 26px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #cbb28f; }

/* ─────────── Results ─────────── */
.results { background: var(--linen); }
.results__rows { margin-top: 20px; border-top: 1px solid var(--line); }
.result {
  display: grid; grid-template-columns: 240px 1fr 80px; gap: 40px; align-items: center;
  padding: 44px 10px; border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}
.result:hover { background: rgba(110, 79, 55, 0.04); }
.result__amount {
  font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px);
  color: var(--walnut); line-height: 1;
}
.result__desc { color: var(--ash); font-size: 15px; max-width: 640px; }
.result__desc strong { color: var(--espresso); font-weight: 500; display: block; margin-bottom: 4px; }
.result__year { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ash); justify-self: end; }
.results__note { margin-top: 26px; font-size: 12px; color: var(--ash-light); font-style: italic; }
@media (max-width: 800px) {
  .result { grid-template-columns: 1fr; gap: 12px; }
  .result__year { justify-self: start; }
}

/* ─────────── Partners ─────────── */
.partners { background: var(--linen-2); border-block: 1px solid var(--line); }
.partners__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 30px;
}
.partner { position: relative; }
.partner__photo { overflow: hidden; position: relative; border: 1px solid var(--line); }
.partner__photo img {
  width: 100%; aspect-ratio: 3 / 3.8; object-fit: cover;
  filter: sepia(0.28) saturate(0.75) contrast(0.98);
  transition: filter 0.7s var(--ease), transform 0.7s var(--ease);
}
.partner:hover .partner__photo img { filter: sepia(0.05) saturate(0.95); transform: scale(1.04); }
.partner__info { padding: 18px 4px 0; }
.partner__info h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.partner__role { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--walnut); margin: 6px 0 10px; }
.partner__bio { font-size: 13.5px; color: var(--ash); }
@media (max-width: 1000px) { .partners__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partners__grid { grid-template-columns: 1fr; } }

/* ─────────── Insights ─────────── */
.insights { background: var(--linen); }
.insights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.insight {
  border: 1px solid var(--line); padding: 36px 30px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 18px; min-height: 260px;
  transition: border-color 0.5s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.insight:hover {
  border-color: var(--walnut-soft); transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(46, 40, 32, 0.1);
}
.insight__date { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--walnut); }
.insight h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.25; flex: 1; }
.insight__cta { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); transition: color 0.4s; }
.insight:hover .insight__cta { color: var(--walnut); }
@media (max-width: 900px) { .insights__grid { grid-template-columns: 1fr; } }

/* ─────────── Final CTA ─────────── */
.contact { position: relative; padding: clamp(90px, 12vw, 170px) 0; background: var(--linen-2); border-top: 1px solid var(--line); }
.cta__inner { text-align: center; max-width: 760px; }
.cta__eyebrow { justify-content: center; }
.cta__title { margin-bottom: 22px; }
.cta__sub { color: var(--ash); max-width: 540px; margin: 0 auto; }
.cta__actions { margin-top: 40px; display: flex; justify-content: center; }
.contact__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.1; margin-bottom: 26px;
}
.contact__title em { font-style: italic; color: var(--walnut); }
.contact__title span { display: block; }

/* ─────────── Footer ─────────── */
.footer { background: var(--wood-dark); color: var(--ivory); padding: 76px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__monogram { font-family: var(--serif); font-size: 42px; }
.footer__monogram em { color: #cbb28f; font-style: italic; }
.footer__brand p { margin-top: 12px; font-size: 13px; color: rgba(242, 237, 227, 0.6); }
.footer__col h4 {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #cbb28f; font-weight: 500; margin-bottom: 18px;
}
.footer__col a { display: block; font-size: 14px; color: rgba(242, 237, 227, 0.6); margin-bottom: 10px; transition: color 0.3s; }
.footer__col a:hover { color: var(--ivory); }
.footer__bottom {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(242, 237, 227, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11px; letter-spacing: 0.1em; color: rgba(242, 237, 227, 0.4);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ─────────── Mobile menu / nav ─────────── */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__name { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 7px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav__burger span { width: 30px; height: 1px; background: currentColor; transition: 0.4s var(--ease); }
  .nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}
.mmenu {
  position: fixed; inset: 0; z-index: 90; background: var(--linen);
  display: grid; place-items: center; text-align: center;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease);
}
.mmenu.open { clip-path: inset(0 0 0 0); }
.mmenu__links a {
  display: block; font-family: var(--serif); font-size: clamp(32px, 8vw, 48px);
  line-height: 1.6; color: var(--espresso); transition: color 0.3s;
}
.mmenu__links a:hover { color: var(--walnut); }
.mmenu__foot { position: absolute; bottom: 40px; left: 0; right: 0; font-size: 12px; color: var(--ash); line-height: 1.9; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
