/* ============================================================
   LEGACY LAW FIRM LLP — Landing page styles
   Light editorial · warm ivory / deep green / gold
   Type: Instrument Serif (display) + Archivo (grotesque)
   ============================================================ */

:root {
  --paper: #f3eee3;
  --paper-deep: #eae3d2;
  --ink: #15211b;
  --ink-soft: rgba(21, 33, 27, 0.62);
  --green: #1b3a31;
  --green-deep: #12281f;
  --gold: #b0782b;
  --gold-bright: #c99b3f;
  --hairline: rgba(21, 33, 27, 0.16);
  --hairline-light: rgba(243, 238, 227, 0.22);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --motion-scale: 1;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

* { 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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.08 0 0 0 0 0.13 0 0 0 0 0.1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared atoms ---------- */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.label--ink { color: var(--ink-soft); }

.hairline-top { border-top: 1px solid var(--hairline); }

.section { padding: clamp(84px, 11vw, 160px) var(--gutter); position: relative; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section-head h2 em { font-style: italic; color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  transition: background 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--gold); transform: translateY(-2px); }
.btn .btn-arrow { transition: transform 0.35s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn--ghost:hover { background: var(--green); color: var(--paper); }

/* rotating phone numbers inside the call button */
.btn--call .call-rotor {
  display: inline-grid;
  overflow: hidden;
}
.btn--call .call-num {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}
.btn--call .call-num.is-active { opacity: 1; transform: translateY(0); }
.btn--call .call-num.is-leaving { opacity: 0; transform: translateY(-110%); }
.no-motion .btn--call .call-num { transition: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.45s ease, box-shadow 0.45s ease, padding 0.45s ease;
}
.nav.is-scrolled {
  background: rgba(243, 238, 227, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
}
.nav-links a {
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { white-space: nowrap; padding: 13px 24px; font-size: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 6px;
  z-index: 1102;
}
.nav-burger span {
  display: block;
  width: 28px; height: 2px;
  background: var(--ink);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease, background 0.3s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-burger.is-open span { background: var(--paper); }

/* mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--green-deep);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.65s;
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a.mm-link {
  font-family: var(--serif);
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.18;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.mobile-menu a.mm-link sup {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}
.mobile-menu .mm-foot {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(243, 238, 227, 0.6);
}
.mobile-menu .mm-foot a { color: var(--gold-bright); }

/* (hero photo background recolor lives in the landing-page two-tone block above) */

/* ============================================================
   LANDING PAGE — two-tone palette (HERO only)
   - Ordinary body text  → white
   - Meaningful text     → #b0782b (gold) — headings, em/strong, labels, accents
   - Sections from "The Firm" downward keep the original ink palette.
   - Nav links: gold; scrolled → ink. Nav CTA scrolled → WHITE.
   ============================================================ */

/* Ordinary body copy / utility text inside the HERO → white */
body:has(.hero) .hero,
body:has(.hero) .hero p,
body:has(.hero) .hero li,
body:has(.hero) .hero span,
body:has(.hero) .hero small,
body:has(.hero) .hero figcaption,
body:has(.hero) .hero blockquote,
body:has(.hero) .hero address,
body:has(.hero) .hero time,
body:has(.hero) .hero .hero-sub p,
body:has(.hero) .hero .hero-foot,
body:has(.hero) .hero .hero-foot * { color: #ffffff; }

/* Meaningful text in HERO → gold */
body:has(.hero) .hero h1,
body:has(.hero) .hero h2,
body:has(.hero) .hero h3,
body:has(.hero) .hero h4,
body:has(.hero) .hero h5,
body:has(.hero) .hero h6,
body:has(.hero) .hero em,
body:has(.hero) .hero strong,
body:has(.hero) .hero .label,
body:has(.hero) .hero .label--ink,
body:has(.hero) .hero .eyebrow,
body:has(.hero) .hero .hero-headline,
body:has(.hero) .hero .hero-headline em,
body:has(.hero) .hero .hero-scrollcue,
body:has(.hero) .hero .hero-scrollcue * { color: #b0782b; }

/* Hero ghost CTA — gold border + label */
body:has(.hero) .hero .btn--ghost {
  color: white;
  border-color: rgba(176, 120, 43, 0.55);
}
body:has(.hero) .hero .btn--ghost:hover {
  border-color: #b0782b;
  background: #b0782b;
}
/* Solid CTA buttons keep their paper-on-green text */
body:has(.hero) .hero .btn:not(.btn--ghost) { color: var(--paper); }

/* Watermark — gold stroke */
body:has(.hero) .hero .hero-watermark {
  -webkit-text-stroke: 1px rgba(176, 120, 43, 0.22);
  color: transparent;
}
body:has(.hero) .hero .hero-scrollcue .cue-arrow { border-color: rgba(176, 120, 43, 0.45); }

/* ---------- NAV ---------- */
/* Default (over hero photo): gold links + gold CTA text on its own pill */
body:has(.hero) .nav .nav-links a,
body:has(.hero) .nav .nav-cta,
body:has(.hero) .nav .nav-burger span { color: white; }
body:has(.hero) .nav .nav-burger span { background: #b0782b; }
body:has(.hero) .nav .nav-links a.is-active { color: var(--gold-bright); }

/* Scrolled (paper background): links go ink/black, CTA goes WHITE */
body:has(.hero) .nav.is-scrolled .nav-links a { color: var(--ink); }
body:has(.hero) .nav.is-scrolled .nav-cta { color: #ffffff; }
body:has(.hero) .nav.is-scrolled .nav-burger span { background: var(--ink); }
body:has(.hero) .nav.is-scrolled .nav-links a.is-active { color: var(--gold); }

/* Dropdown panes stay legible (ink on paper) */
body:has(.hero) .nav .sub-menu { background: var(--paper); }
body:has(.hero) .nav .sub-menu a { color: var(--ink); }
body:has(.hero) .nav .sub-menu a:hover,
body:has(.hero) .nav .sub-menu a:focus-visible { color: var(--paper); }
/* full-bleed background photo (client artwork) — sits beneath waves + watermark.
   Heavily darkened/scrimmed so the foreground typography keeps its contrast. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 65%;
  filter: saturate(0.85) contrast(1.05);
  /* gentle ken-burns — hangs on a Tweak if you want to disable */
  animation: heroBgDrift 38s ease-in-out infinite alternate;
}
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    /* left-side text legibility */
    linear-gradient(95deg, rgba(13,19,16,0.88) 0%, rgba(13,19,16,0.62) 38%, rgba(13,19,16,0.30) 62%, rgba(13,19,16,0.55) 100%),
    /* top + bottom feathering into the page */
    linear-gradient(180deg, rgba(13,19,16,0.55) 0%, rgba(13,19,16,0.15) 22%, rgba(13,19,16,0.20) 70%, rgba(13,19,16,0.85) 100%);
}
@keyframes heroBgDrift {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: scale(1.04); }
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) clamp(36px, 5vh, 64px);
  position: relative;
  overflow: hidden;
}
/* ---------- preloader (LoftLoader-style reveal) ---------- */
#loftloader-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: transparent;         /* panels split to reveal the hero beneath */
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
#loftloader-wrapper .loader-section {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50%;
  background: #1b3a31;             /* panels split to reveal the green */
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 10;
}
#loftloader-wrapper .section-up { top: 0; transform: translateY(0); }
#loftloader-wrapper .section-down { bottom: 0; transform: translateY(0); }
#loftloader-wrapper.loader-hidden .section-up { transform: translateY(-100%); }
#loftloader-wrapper.loader-hidden .section-down { transform: translateY(100%); }

#loftloader-wrapper .loader-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 360px;
  text-align: center;
  z-index: 20;
}
#loftloader-wrapper .imgloading-container {
  background: transparent;
  width: 0%;
  overflow: hidden;
  display: inline-block;
  margin: 0 auto;
  transition: width 0.08s linear;
}
#loftloader-wrapper .imgloading-container img {
  display: block;
  width: 100%;
  height: auto;
}
#loftloader-wrapper .loading-percentage {
  margin-top: 22px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--green);
  opacity: 0.65;
}
.no-motion #loftloader-wrapper { display: none; }
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
html.art-waves .hero-watermark { display: none; }
html.art-watermark .hero-waves { display: none; }
.hero-watermark {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(120px, 24vw, 460px);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(27, 58, 49, 0.13);
  z-index: 0;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.hero-top {
  position: absolute;
  top: 96px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 5.2vw, 102px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 13ch;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  margin-bottom: 70px;
}
.hero-headline .hl-line { display: inline; white-space: nowrap; }
.hero-headline .hl-inner { display: inline; }
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: clamp(24px, 3vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.hero-sub p {
  max-width: 44ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-foot {
  margin-top: clamp(32px, 5vh, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}
.hero-scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-scrollcue .cue-arrow {
  width: 12px;
  height: 34px;
  color: var(--gold);
}

/* ============================================================
   MANIFESTO BANNER — client-provided artwork
   ============================================================ */
.manifesto {
  position: relative;
  background: var(--green-deep);
  color: var(--paper);
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(176, 120, 43, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(0,0,0,0.45) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.manifesto-grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: center;
}
.manifesto-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.manifesto-side .label {
  color: var(--gold-bright);
  letter-spacing: 0.28em;
  align-self: center;
}
.manifesto-tag {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: rgba(243, 238, 227, 0.92);
  margin: 0;
  text-wrap: balance;
}
.manifesto-frame {
  position: relative;
  width: min(680px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  padding: clamp(10px, 1.2vw, 18px);
  background: rgba(243, 238, 227, 0.03);
  box-shadow:
    inset 0 0 0 1px rgba(243, 238, 227, 0.10),
    0 30px 80px -28px rgba(0, 0, 0, 0.7),
    0 14px 36px -18px rgba(0, 0, 0, 0.55);
}
.manifesto-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}
.manifesto-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold-bright);
  opacity: 0.85;
  pointer-events: none;
}
.manifesto-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.manifesto-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.manifesto-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.manifesto-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }
.manifesto-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid rgba(243, 238, 227, 0.14);
}
.manifesto-meta > span {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(243, 238, 227, 0.62);
  text-align: center;
}
.manifesto-meta em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
@media (max-width: 760px) {
  .manifesto-meta { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .manifesto-meta > span { text-align: left; }
}

/* ---------- marquee strip ---------- */
.strip {
  background: var(--green);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
}
.strip .marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.strip .marquee-chunk {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 24px);
  letter-spacing: 0.04em;
}
.strip .marquee-chunk em { font-style: italic; color: var(--gold-bright); }
.strip .marquee-chunk .sep {
  margin: 0 26px;
  color: var(--gold-bright);
  font-size: 0.7em;
}

/* ---------- about ---------- */
.about-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  max-width: 22em;
  text-wrap: pretty;
}
.about-lede .w { opacity: 0.14; transition: none; }
.about-lede em { font-style: italic; color: var(--gold); }

.about-grid {
  margin-top: clamp(48px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.about-media { position: relative; display: flex; flex-direction: column; }
.about-media image-slot { width: 100%; flex: 1; min-height: 0; aspect-ratio: unset; }
.about-media image-slot img,
.about-media image-slot::part(img) { object-fit: contain; }
.about-media .media-caption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.about-body p {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.75;
  max-width: 58ch;
  text-wrap: pretty;
}
.about-body p + p { margin-top: 1.2em; }
.about-body strong { color: var(--ink); font-weight: 600; }

.timeline { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--hairline); }
.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.timeline-row .t-year {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  color: var(--gold);
  line-height: 1;
}
.timeline-row .t-text { font-size: 14.5px; color: var(--ink-soft); max-width: 52ch; }
.timeline-row .t-text strong { color: var(--ink); font-weight: 600; }

/* ---------- practice index ---------- */
.practice { background: var(--paper); }
.practice-list { border-top: 1px solid var(--hairline); }
.practice-row {
  border-bottom: 1px solid var(--hairline);
  position: relative;
  cursor: pointer;
}
.practice-row .pr-bg {
  position: absolute; inset: 0;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}
.practice-row.is-active .pr-bg { transform: scaleY(1); transform-origin: bottom; }
.practice-row .pr-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 2.2vw, 28px) clamp(4px, 1vw, 16px);
  transition: color 0.35s ease;
}
.practice-row .pr-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.practice-row .pr-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.9vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.practice-row .pr-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--hairline);
  display: grid;
  place-items: center;
  transition: background 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.practice-row .pr-arrow svg { width: 14px; height: 14px; transition: transform 0.4s ease; }
.practice-row .pr-body {
  position: relative;
  z-index: 1;
  height: 0;
  overflow: hidden;
}
.practice-row .pr-body-inner {
  padding: 0 clamp(4px, 1vw, 16px) 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 40px);
}
.practice-row .pr-desc {
  grid-column: 2;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 238, 227, 0.78);
}
.practice-row.is-active .pr-head { color: var(--paper); }
.practice-row.is-active .pr-title { transform: translateX(clamp(6px, 1.2vw, 18px)); }
.practice-row.is-active .pr-num { color: var(--gold-bright); }
.practice-row.is-active .pr-arrow {
  background: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  transform: rotate(45deg);
}
.practice-row.is-active .pr-arrow svg { stroke: var(--paper); }
.practice-note {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- practice-area drawer modal ---------- */
.pa-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  opacity: 0;
  background: rgba(10, 18, 14, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.pa-backdrop.is-open { display: block; }
.pa-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--green-deep);
  color: rgba(243, 238, 227, 0.82);
  border-top: 1px solid var(--hairline-light);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -32px 90px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  overflow: hidden;
  will-change: transform;
}
.pa-handle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 10px;
  cursor: grab;
  touch-action: none;
}
.pa-handle:active { cursor: grabbing; }
.pa-handle span {
  width: 54px;
  height: 6px;
  border-radius: 99px;
  background: rgba(243, 238, 227, 0.26);
  transition: background 0.3s ease;
}
.pa-handle:hover span { background: rgba(243, 238, 227, 0.42); }
.pa-close {
  position: absolute;
  top: 18px;
  right: clamp(18px, 3vw, 34px);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hairline-light);
  background: transparent;
  color: rgba(243, 238, 227, 0.7);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pa-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}
.pa-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 3.5vw, 44px) var(--gutter) clamp(44px, 6vw, 72px);
}
.pa-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
.pa-eyebrow .pa-num { color: var(--gold-bright); }
.pa-title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-size: clamp(34px, 6vw, 68px);
  color: var(--paper);
  max-width: 18ch;
  text-wrap: balance;
}
.pa-desc {
  margin-top: clamp(20px, 3vw, 34px);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
  max-width: 60ch;
  color: rgba(243, 238, 227, 0.8);
}
.pa-cta-row {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.pa-cta { background: var(--gold); color: var(--green-deep); white-space: nowrap; }
.pa-cta:hover { background: var(--paper); color: var(--green-deep); }
.pa-hint {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(243, 238, 227, 0.5);
}
@media (max-width: 720px) {
  .pa-drawer { height: 84vh; }
  .pa-close { top: 14px; }
}

/* ---------- stats band ---------- */
.stats {
  background: var(--green);
  color: var(--paper);
  padding: clamp(84px, 10vw, 150px) var(--gutter);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.stat {
  border-top: 1px solid var(--hairline-light);
  padding-top: 26px;
}
.stat .stat-num {
  font-family: var(--serif);
  font-size: clamp(64px, 8.5vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--paper);
  display: flex;
  align-items: baseline;
}
.stat .stat-num .suffix { color: var(--gold-bright); font-size: 0.55em; margin-left: 4px; }
.stat .stat-label {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 238, 227, 0.55);
}
.stats-foot {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(243, 238, 227, 0.6);
}
.stats-foot em { font-family: var(--serif); font-style: italic; color: var(--gold-bright); font-size: 15px; }

/* ---------- clients ---------- */
.clients { padding-left: 0; padding-right: 0; }
.clients .section-head, .clients .clients-note { margin-left: var(--gutter); margin-right: var(--gutter); }
.clients-marquee { overflow: hidden; padding: clamp(14px, 1.8vw, 22px) 0; }
.clients-marquee + .clients-marquee { border-top: 1px solid var(--hairline); }
.clients-marquee .marquee-track { display: flex; width: max-content; will-change: transform; }
/* always-on CSS marquees — top drifts left→right, bottom right→left */
.clients-marquee .marquee-track.cmq-ltr { animation: cmqLTR 40s linear infinite; }
.clients-marquee .marquee-track.cmq-rtl { animation: cmqRTL 44s linear infinite; }
.clients-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes cmqLTR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes cmqRTL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* logo wall plates */
.client-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 12px;
  padding: 12px 26px 12px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.client-logo:hover {
  border-color: var(--gold);
  background: var(--paper);
  transform: translateY(-2px);
}
.cl-mark {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.cl-name {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.client-logo--img {
  padding: 0;
  width: clamp(150px, 14vw, 196px);
  height: clamp(84px, 8vw, 104px);
  justify-content: center;
  background: #fff;
  border-color: rgba(21, 33, 27, 0.1);
}
.client-logo--img:hover { background: #fff; }
.cl-img {
  display: block;
  max-height: 56%;
  max-width: 74%;
  width: auto;
  object-fit: contain;
  filter: saturate(1.02);
}
/* second row: gold monogram, lighter plate */
.clients-marquee--alt .cl-mark { background: var(--gold); color: var(--green-deep); }
.clients-note {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- testimonials ---------- */
.testimonials { background: var(--paper-deep); }
.quote-stage { position: relative; min-height: clamp(300px, 36vw, 420px); }
.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.quote.is-current { opacity: 1; visibility: visible; }
.quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.9vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 26em;
  text-wrap: pretty;
}
.quote blockquote::before { content: "“"; color: var(--gold); }
.quote blockquote::after { content: "”"; color: var(--gold); }
.quote figcaption {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote .qc-rule { width: 44px; height: 1px; background: var(--gold); }
.quote .qc-name { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.quote .qc-role { font-size: 13px; color: var(--ink-soft); }
.quote-controls {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.quote-controls .qbtn {
  width: 52px; height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--hairline);
  display: grid;
  place-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.quote-controls .qbtn:hover { background: var(--green); transform: translateY(-2px); }
.quote-controls .qbtn:hover svg { stroke: var(--paper); }
.quote-controls .q-index {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.quote-controls .q-index .cur { color: var(--gold); font-weight: 600; }

/* ---------- contact ---------- */
.contact {
  background: var(--green-deep);
  color: var(--paper);
  padding-bottom: 0;
}
.contact .label { color: var(--gold-bright); }
.contact-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 116px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 18px;
  max-width: 18ch;
}
.contact-headline em { font-style: italic; color: var(--gold-bright); }
.contact-headline .hl-line { display: block; overflow: hidden; }
.contact-headline .hl-inner { display: block; }
.contact-sub {
  margin-top: clamp(22px, 2.6vw, 34px);
  max-width: 56ch;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.65;
  color: rgba(243, 238, 227, 0.78);
  text-wrap: pretty;
}
.contact-cta-row {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.contact .btn { background: var(--gold); color: var(--green-deep); }
.contact .btn:hover { background: var(--paper); }
.contact .btn--ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline-light);
}
.contact .btn--ghost:hover { background: var(--paper); color: var(--green-deep); }

.contact-grid {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--hairline-light);
  padding-top: clamp(32px, 4vw, 56px);
}
.contact-cell .label { margin-bottom: 14px; display: block; }
.contact-cell p, .contact-cell a {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 238, 227, 0.78);
}
.contact-cell a { display: block; transition: color 0.3s ease; }
.contact-cell a:hover { color: var(--gold-bright); }

/* ---------- nav dropdown ---------- */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a .caret {
  display: inline-block;
  margin-left: 7px;
  font-size: 9px;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.nav-links .has-sub:hover > a .caret { transform: rotate(180deg); }
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 172px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 22px 54px rgba(21, 33, 27, 0.14);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 1001;
}
.nav-links .sub-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 16px;
}
.nav-links .has-sub:hover .sub-menu,
.nav-links .has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-links .sub-menu li { display: block; }
.nav-links .sub-menu a {
  display: block;
  padding: 10px 22px;
  white-space: nowrap;
  transition: background 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.32s ease, padding-left 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links .sub-menu a::after { display: none; }
.nav-links .sub-menu a:hover,
.nav-links .sub-menu a:focus-visible {
  background: #1b3a31;
  color: var(--paper);
  padding-left: 28px;
}
.nav-links .sub-menu a.is-active:hover { color: var(--paper); }

/* ---------- about us ---------- */
.au-lede {
  max-width: 78ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.78;
  text-wrap: pretty;
}
.au-lede + .au-lede { margin-top: 1.4em; }
.au-lede:first-of-type {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.6;
  color: var(--ink);
}
.au-lede strong { color: var(--ink); font-weight: 600; }
/* ============================================================
   MISSION & VISION — editorial manifesto block
   ============================================================ */
.au-mv {
  margin-top: clamp(60px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.au-mv-block {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  position: relative;
}
.au-mv-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(48px, 6.5vw, 88px);
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.au-mv-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 44px;
}
.au-mv-num {
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 132px);
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.au-mv-num em { font-style: italic; color: var(--gold); }
.au-mv-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.au-mv-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-soft);
}
.au-mv-body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 56ch;
  padding-top: clamp(8px, 1.5vw, 20px);
}
.au-mv-statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.au-mv-statement em { font-style: italic; color: var(--gold); }
.au-mv-detail {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 860px) {
  .au-mv-block {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 36px);
  }
  .au-mv-side { padding-left: 28px; }
  .au-mv-block::before { top: clamp(40px, 5vw, 60px); }
}

/* ============================================================
   AU SECTION HEAD — labelled section divider
   ============================================================ */
.au-section-head {
  margin-top: clamp(80px, 10vw, 140px);
  margin-bottom: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid var(--hairline);
}
.au-section-head .label { letter-spacing: 0.24em; }
.au-section-head .au-subhead {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.au-section-head .au-subhead em { font-style: italic; color: var(--gold); }

/* ============================================================
   CORE VALUES — numbered, full-width list rows
   ============================================================ */
.au-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 96px);
}
.au-value {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(22px, 2.8vw, 32px) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.au-value:hover { transform: translateX(6px); }
.au-value:hover .au-value-num { color: var(--gold-bright); }
.au-value:hover strong { color: var(--gold); }
.au-value-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  padding-top: 3px;
  transition: color 0.35s ease;
}
.au-value-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.au-value strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.008em;
  color: var(--ink);
  transition: color 0.35s ease;
}
.au-value span {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 42ch;
}

@media (max-width: 860px) {
  .au-values { grid-template-columns: 1fr; }
  .au-value { grid-template-columns: 48px 1fr; gap: 18px; }
  .au-value-num { font-size: 22px; }
  .au-value strong { font-size: 18px; }
}

/* (legacy) plain subhead — used elsewhere on About */
.au-subhead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 44px);
  margin-top: clamp(56px, 7vw, 100px);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.au-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  margin-top: clamp(48px, 6vw, 88px);
}
.au-pillar { border-top: 1px solid var(--hairline); padding-top: 20px; }
.au-pillar .label { display: block; margin-bottom: 12px; }
.au-pillar p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.au-why p {
  max-width: 74ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
  text-wrap: pretty;
}
.au-why p + p { margin-top: 1.1em; }
.au-faq { border-top: 1px solid var(--hairline); max-width: 880px; }
.au-faq details { border-bottom: 1px solid var(--hairline); }
.au-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s ease;
}
.au-faq summary:hover { color: var(--gold); }
.au-faq summary::-webkit-details-marker { display: none; }
.au-faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  flex: none;
}
.au-faq details[open] summary::after { content: "−"; }
.au-faq details p {
  padding: 0 0 22px;
  max-width: 70ch;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.au-refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
}
.au-ref {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.au-ref strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.au-ref span { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.au-ref a { font-size: 13.5px; color: var(--gold); }
.au-ref a:hover { text-decoration: underline; }

/* ---------- our team ---------- */
.team { background: var(--paper-deep); }
.team-member {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.team-member:last-of-type { border-bottom: none; padding-bottom: 0; }
.tm-media { margin: 0; }
.tm-media image-slot { width: 100%; height: clamp(360px, 34vw, 460px); }
.tm-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.05;
  color: var(--ink);
}
.tm-role {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.tm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.tm-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.tm-links a:hover { color: var(--gold); }
.tm-body p {
  margin-top: 20px;
  max-width: 72ch;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.78;
  color: var(--ink-soft);
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .team-member { grid-template-columns: 1fr; }
  .tm-media image-slot { max-width: 320px; }
}

/* ---------- subpages ---------- */
.page-hero {
  padding: clamp(150px, 20vh, 220px) var(--gutter) clamp(36px, 5vw, 64px);
}
.page-hero .label { display: block; margin-bottom: 18px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.nav-links a.is-active { color: var(--gold); }
.page-footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(64px, 8vw, 110px);
  padding: 26px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--ink-soft);
}
.page-footer .pf-links { display: flex; gap: 24px; }
.page-footer a { color: var(--ink-soft); transition: color 0.25s ease; }
.page-footer a:hover { color: var(--gold); }
.team .page-footer { border-top: none; }
/* footer directly after a full-bleed map: no extra gap */
.page-footer.pf-tight { margin-top: 0; border-top: none; }

/* ---------- map section ---------- */
#map-section {
  width: 100%;
  height: clamp(340px, 50vh, 560px);
  position: relative;
  overflow: hidden;
}
#office-map {
  width: 100%;
  height: 100%;
}
.map-pin {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin__dot {
  width: 14px;
  height: 14px;
  background: var(--gold-bright, #c9a84c);
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.map-pin__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold-bright, #c9a84c);
  animation: pin-pulse 2s ease-out infinite;
  opacity: 0;
}
@keyframes pin-pulse {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

#map-directions-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1b3a31;
  color: #c9a84c;
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #c9a84c;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
#map-directions-btn:hover {
  background: #c9a84c;
  color: #1b3a31;
  box-shadow: 0 6px 28px rgba(0,0,0,0.4);
}

.footer {
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--hairline-light);
  padding: 28px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(243, 238, 227, 0.5);
}
.footer .f-social { display: flex; gap: 22px; }
.footer .f-social a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 238, 227, 0.7);
  transition: color 0.3s ease;
}
.footer .f-social a:hover { color: var(--gold-bright); }

/* ---------- cursor dot ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9500;
  opacity: 0;
  display: grid;
  place-items: center;
  font-size: 0;
  transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease, opacity 0.3s ease;
}
.cursor-dot.is-label {
  width: 64px; height: 64px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* ---------- reveal helpers (JS sets initial state) ---------- */
.js .reveal-fade { opacity: 0; transform: translateY(28px); }
.js .hl-inner { transform: translateY(110%); }
.no-motion .reveal-fade, .no-motion .hl-inner { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 860px) {
  .hero-top { flex-direction: column; gap: 6px; }
  .hero { padding-top: 150px; }
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .practice-row .pr-head { grid-template-columns: 40px 1fr auto; }
  .practice-row .pr-body-inner { grid-template-columns: 1fr; }
  .practice-row .pr-desc { grid-column: 1; }
  .quote { position: relative; }
  .quote-stage { min-height: 0; }
  .quote:not(.is-current) { display: none; }
}

@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(46px, 13vw, 64px); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head { flex-direction: column; gap: 10px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  #loftloader-wrapper { display: none; }
}

/* ============================================================
   GSAP SPLIT-TEXT HELPERS (About / Team heroes)
   ============================================================ */
.page-hero h1 .gs-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.page-hero h1 .gs-ch { display: inline-block; will-change: transform; }
.tm-media { will-change: transform; }

/* ScrollReveal — word-level fade + blur (vanilla port of React Bits component) */
.sr-word { display: inline-block; will-change: opacity, filter; }
.sr-flow { display: inline; }   /* wrapper so words flow inside flex/grid parents */

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* scoped reveal — visible end-state is the base; hide+animate only when motion is welcome */
.cp-rev { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .cp-rev { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.32, 1), transform 0.9s cubic-bezier(0.22, 1, 0.32, 1); }
  .cp-rev.in { opacity: 1; transform: none; }
}

/* hero line reveal — visible base, animate up only under no-preference */
.cp-hero .hl-line { display: block; overflow: hidden; }
.cp-hero .hl-inner { display: block; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .cp-hero.in .hl-inner { animation: cpHeroRise 1s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .cp-hero.in .hl-line:nth-child(2) .hl-inner { animation-delay: 0.09s; }
}
@keyframes cpHeroRise {
  from { transform: translateY(112%); }
  to   { transform: translateY(0); }
}

.cp-hero {
  padding: clamp(150px, 21vh, 230px) var(--gutter) clamp(40px, 5vw, 72px);
}
.cp-hero .label { display: block; margin-bottom: 20px; }
.cp-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 8.5vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.018em;
}
.cp-hero h1 em { font-style: italic; color: var(--gold); }
.cp-hero h1.cp-hero-statement {
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1.02;
  max-width: 16ch;
}
.cp-hero .cp-hero-sub {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 46ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* main split: form + aside */
.cp-main {
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(72px, 9vw, 130px);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
  border-top: 1px solid var(--hairline);
}

/* form */
.cp-form-head { margin-bottom: clamp(28px, 4vw, 48px); }
.cp-form-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.cp-form-head h2 em { font-style: italic; color: var(--gold); }
.cp-form-head p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; max-width: 48ch; }

.cp-form { position: relative; }
.cp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.cp-field { position: relative; margin-bottom: clamp(26px, 3.2vw, 40px); }
.cp-field input,
.cp-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0 13px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  resize: none;
  transition: border-color 0.4s ease;
}
.cp-field textarea { min-height: 116px; line-height: 1.6; }
.cp-field input:focus,
.cp-field textarea:focus { outline: none; }
.cp-field label {
  position: absolute;
  left: 0;
  top: 24px;
  pointer-events: none;
  font-size: 16px;
  color: var(--ink-soft);
  transition: top 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), font-size 0.34s ease, color 0.34s ease, letter-spacing 0.34s ease;
}
.cp-field input:focus + label,
.cp-field input:not(:placeholder-shown) + label,
.cp-field textarea:focus + label,
.cp-field textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
/* animated underline */
.cp-field .cp-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cp-field:focus-within .cp-underline { transform: scaleX(1); }

.cp-submit-row {
  margin-top: clamp(14px, 2vw, 26px);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cp-send {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.cp-send:disabled { opacity: 0.5; cursor: default; transform: none; }
.cp-form-note { font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.02em; }

/* success overlay */
.cp-success {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: var(--green);
  color: var(--paper);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.cp-success.show { opacity: 1; transform: none; }
.cp-success .cp-check {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
}
.cp-success .cp-check svg { width: 20px; height: 20px; }
.cp-success .cp-check path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
}
.cp-success.show .cp-check path { animation: cpCheck 0.6s 0.25s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes cpCheck { to { stroke-dashoffset: 0; } }
.cp-success strong { font-family: var(--serif); font-weight: 400; font-size: 19px; display: block; }
.cp-success span { font-size: 13.5px; color: rgba(243, 238, 227, 0.72); }

/* aside info panel — deep green */
.cp-aside {
  background: var(--green-deep);
  color: var(--paper);
  padding: clamp(32px, 3.5vw, 52px);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}
.cp-aside::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 320px; height: 320px;
  border: 1px solid var(--hairline-light);
  border-radius: 50%;
  pointer-events: none;
}
.cp-aside .cp-aside-wm {
  position: absolute;
  right: -10px; top: -34px;
  font-family: var(--serif);
  font-size: 190px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 238, 227, 0.08);
  pointer-events: none;
  user-select: none;
}
.cp-aside .label { color: var(--gold-bright); display: block; margin-bottom: 26px; }
.cp-aside h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  position: relative;
}
.cp-aside h2 em { font-style: italic; color: var(--gold-bright); }
.cp-detail {
  position: relative;
  padding: 20px 0;
  border-top: 1px solid var(--hairline-light);
}
.cp-detail:last-of-type { border-bottom: 1px solid var(--hairline-light); }
.cp-detail .cp-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 238, 227, 0.5);
  margin-bottom: 8px;
}
.cp-detail a, .cp-detail p {
  display: block;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(243, 238, 227, 0.85);
}
.cp-detail a { transition: color 0.3s ease, transform 0.3s ease; width: fit-content; }
.cp-detail a:hover { color: var(--gold-bright); transform: translateX(4px); }

.cp-social {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cp-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 238, 227, 0.82);
  transition: background 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.32s ease, border-color 0.32s ease, transform 0.32s ease;
}
.cp-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
  transform: translateY(-2px);
}

/* experience strip */
.cp-strip {
  background: var(--green);
  color: var(--paper);
  padding: clamp(56px, 7vw, 104px) var(--gutter);
}
.cp-strip .label { color: var(--gold-bright); display: block; margin-bottom: 22px; }
.cp-strip p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.1vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  max-width: 26ch;
  text-wrap: pretty;
}
.cp-strip p em { font-style: italic; color: var(--gold-bright); }

@media (max-width: 960px) {
  .cp-main { grid-template-columns: 1fr; }
  .cp-aside { order: -1; }
}
@media (max-width: 560px) {
  .cp-grid-2 { grid-template-columns: 1fr; gap: 0; }
}


/* ============================================================
   TEAM — 3D SCROLL-FLIP CARD CAROUSEL
   ============================================================ */
.team-flip {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}
.team-flip-pin {
  position: relative;
  min-height: 100vh;
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(36px, 4vw, 64px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  overflow: hidden;
}
.team-flip-pin--minimal {
  grid-template-rows: 1fr auto;
  padding-top: clamp(28px, 4vw, 56px);
}

/* head */
.tf-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: clamp(20px, 4vw, 64px);
  padding-bottom: clamp(18px, 2.6vw, 32px);
  border-bottom: 1px solid var(--hairline);
}
.tf-head .label { align-self: end; padding-bottom: 12px; }
.tf-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tf-head h2 em { font-style: italic; color: var(--gold); }
.tf-lede {
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: right;
  align-self: end;
  padding-bottom: 14px;
}

/* stage */
.tf-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 56vh, 640px);
  perspective: 1800px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}

/* floor shadow */
.tf-floor {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: min(520px, 60vw);
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(21,33,27,0.28), rgba(21,33,27,0) 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

/* card geometry */
.tf-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(440px, 88vw);
  height: min(580px, 70vh);
  max-height: 620px;
  transform-style: preserve-3d;
  opacity: 0;
  will-change: transform, opacity;
  z-index: 1;
}
.tf-card[data-tf-index="0"] { opacity: 1; }

.tf-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* faces */
.tf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- FRONT face ---------- */
.tf-front {
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 40px 80px -40px rgba(21,33,27,0.55),
    0 12px 30px -20px rgba(21,33,27,0.35);
}
.tf-portrait {
  position: relative;
  height: 140%;
  background: var(--green-deep);
  overflow: hidden;
}
.tf-portrait image-slot {
  width: 100%;
  height: 150%;
  display: block;
}
.tf-corner-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(243, 238, 227, 0.94);
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.tf-front-meta {
  flex: 1;
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.tf-front-meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tf-role {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.tf-hint {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tf-hint-glyph {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink);
}

/* ---------- BACK face ---------- */
.tf-back {
  transform: rotateY(180deg);
  background: var(--green-deep);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 30px 32px 28px;
  gap: 12px;
  box-shadow:
    0 40px 80px -40px rgba(0,0,0,0.55),
    0 12px 30px -20px rgba(0,0,0,0.4);
}
.tf-back .label { color: var(--gold-bright); font-size: 10px; }
.tf-back-mark {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
  pointer-events: none;
}
.tf-back-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 4px;
}
.tf-back p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(243, 238, 227, 0.84);
  max-width: 42ch;
}
.tf-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}
.tf-facts li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  font-size: 11.5px;
  line-height: 1.4;
  padding: 9px 0;
  border-top: 1px solid rgba(243,238,227,0.1);
}
.tf-facts li:last-child { border-bottom: 1px solid rgba(243,238,227,0.1); }
.tf-facts span {
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 9.5px;
  padding-top: 1px;
}
.tf-facts strong {
  font-weight: 500;
  color: rgba(243,238,227,0.92);
}
.tf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: auto;
  padding-top: 4px;
}
.tf-links a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid rgba(243,238,227,0.3);
  padding-bottom: 3px;
}
.tf-links a:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- controls ---------- */
.tf-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding-top: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--hairline);
}
.tf-progress-track {
  position: relative;
  height: 1px;
  background: var(--hairline);
}
.tf-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
}
.tf-counter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.tf-counter-cur { color: var(--gold); font-size: 24px; }
.tf-counter-sep { opacity: 0.35; }
.tf-controls-hint {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- static / fallback layout ---------- */
.team-flip.tf-static .team-flip-pin {
  min-height: auto;
  overflow: visible;
  display: block;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.team-flip.tf-static .tf-head { margin-bottom: clamp(36px, 5vw, 56px); }
.team-flip.tf-static .tf-stage {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
  perspective: none;
  height: auto;
  min-height: 0;
}
.team-flip.tf-static .tf-floor { display: none; }
.team-flip.tf-static .tf-card {
  position: relative;
  inset: auto;
  margin: 0;
  width: min(420px, 100%);
  height: auto;
  opacity: 1 !important;
  transform: none !important;
}
.team-flip.tf-static .tf-card-inner {
  transform: none !important;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team-flip.tf-static .tf-face {
  position: relative;
  inset: auto;
  transform: none;
  backface-visibility: visible;
  height: auto;
  -webkit-backface-visibility: visible;
}
.team-flip.tf-static .tf-front { height: 480px; }
.team-flip.tf-static .tf-back { min-height: 380px; }
.team-flip.tf-static .tf-controls { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tf-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tf-head .label, .tf-head .tf-lede { padding-bottom: 0; }
  .tf-lede { text-align: left; max-width: 50ch; }
}
@media (max-width: 760px) {
  .tf-controls { grid-template-columns: 1fr auto; }
  .tf-controls-hint { display: none; }
}

/* ============================================================
   TEAM BIO PANEL — reveal-on-change (scroll-driven swap)
   ============================================================ */
.tf-stage {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 4vw, 80px);
  align-items: stretch;
}
.tf-deck {
  position: relative;
  min-height: clamp(420px, 56vh, 640px);
  perspective: 1800px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}
/* cards no longer fill the whole stage — they center inside the deck column */
.tf-stage > .tf-card,
.tf-deck > .tf-card { /* same geometry, just re-rooted */ }

.tf-bio {
  position: relative;
  align-self: center;
  padding: clamp(20px, 2.4vw, 40px) 0 clamp(20px, 2.4vw, 40px) clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--hairline);
  min-height: clamp(360px, 50vh, 540px);
}
.tf-bio-pane {
  position: absolute;
  inset: clamp(20px, 2.4vw, 40px) 0 clamp(20px, 2.4vw, 40px) clamp(20px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
  pointer-events: none;
  /* default state: hidden lines, JS reveals the active pane */
}
.tf-bio-pane.is-active { pointer-events: auto; }

.tf-bio-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.tf-bio-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.tf-bio-name em { font-style: italic; color: var(--gold); }
.tf-bio-body {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: clamp(4px, 0.6vw, 10px);
}
.tf-bio-body p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}

/* per-line mask + inner-roll (matches premium agency reveal) */
.tr-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.tr-line-inner {
  display: block;
  will-change: transform;
}

@media (max-width: 980px) {
  .tf-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: clamp(32px, 5vw, 56px);
  }
  .tf-bio {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding: clamp(24px, 4vw, 40px) 0 0;
    min-height: clamp(280px, 42vh, 420px);
  }
  .tf-bio-pane {
    inset: clamp(24px, 4vw, 40px) 0 0 0;
  }
}
@media (max-width: 760px) {
  .tf-bio-name { font-size: clamp(32px, 8vw, 48px); }
  .tf-bio-body p { font-size: 14.5px; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-line-inner { transform: none !important; }
}

/* static fallback — show all panes inline, one after another */
.team-flip.tf-static .tf-stage { grid-template-columns: 1fr; }
.team-flip.tf-static .tf-deck { perspective: none; min-height: 0; }
.team-flip.tf-static .tf-bio {
  position: relative;
  border-left: none;
  border-top: 1px solid var(--hairline);
  padding-left: 0;
  min-height: 0;
}
.team-flip.tf-static .tf-bio-pane {
  position: relative;
  inset: auto;
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--hairline);
}
.team-flip.tf-static .tf-bio-pane:last-child { border-bottom: none; }
