/* ==========================================================================
   Themis Partners — Advocates & Solicitors
   Direction: legal broadsheet. Ink navy, brass hairlines, Bodoni display.
   ========================================================================== */

:root {
  --ink: #0b1830;
  --navy: #14294d;
  --navy-2: #1d3a68;
  --navy-line: rgba(227, 207, 148, 0.18);
  --gold: #c6a24f;
  --gold-bright: #dcbd6e;
  --gold-soft: #e9d9a8;
  --ivory: #f4eee2;
  --paper: #faf7f0;
  --text: #17202f;
  --muted: #5a6273;
  --muted-light: rgba(244, 238, 226, 0.66);
  --rule: rgba(23, 32, 47, 0.14);

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.2rem);
  --step-5: clamp(3.1rem, 1.8rem + 6.2vw, 7.4rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --max: 1320px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 1rem; z-index: 200;
  background: var(--gold); color: var(--ink); padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { left: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type primitives ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; margin: 0; }
em, .display em { font-style: italic; }
.gold { color: var(--gold); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .9rem;
  color: var(--gold);
  margin: 0 0 1.6rem;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 38ch; }
.clause { font-family: var(--font-display); font-style: italic; color: var(--gold); }

/* ---------- Grain overlay for dark surfaces ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.surface-dark { background: var(--navy); color: var(--ivory); }
.surface-ink { background: var(--ink); color: var(--ivory); }
.surface-ivory { background: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--ivory);
  transition: padding .5s var(--ease);
  padding-block: 1.4rem;
}
/* The scrolled backdrop lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and trap it inside the header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 24, 48, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-line);
  opacity: 0; transition: opacity .5s var(--ease);
}
.site-header.is-scrolled { padding-block: .8rem; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand-mark { width: 38px; height: 48px; flex: none; }
.brand-mark path, .brand-mark line { vector-effect: non-scaling-stroke; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: .95rem; letter-spacing: .38em; font-weight: 500; }
.brand-sub { font-family: var(--font-display); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-top: .25rem; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav a {
  text-decoration: none; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  position: relative; padding-block: .4rem;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--gold-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--navy-line); color: inherit;
  width: 46px; height: 46px; cursor: pointer; position: relative;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1rem 1.6rem; border: 1px solid var(--gold);
  font-family: var(--font-body); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; color: inherit; background: transparent; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--gold); z-index: -1;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 32px; }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid::before { background: var(--ivory); }
.nav .btn { padding: .7rem 1.1rem; font-size: .74rem; }

.text-link {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: .7rem; padding-bottom: .35rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.text-link:hover { background-size: 30% 1px; color: var(--gold); }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(29, 58, 104, .9), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
  color: var(--ivory); overflow: hidden;
}
.hero-grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: clamp(2rem, 5vw, 6rem);
  padding-top: clamp(8rem, 14vh, 11rem); padding-bottom: 3rem;
}
.hero h1 { font-size: var(--step-5); line-height: .96; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 em { color: var(--gold-bright); }
.hero .lede { color: var(--muted-light); margin: 2.2rem 0 2.6rem; opacity: 0; animation: fade 1.2s .6s var(--ease) forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; align-items: center; opacity: 0; animation: fade 1.2s .8s var(--ease) forwards; }
.hero .eyebrow { opacity: 0; animation: fade 1s .1s var(--ease) forwards; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Arched portrait of Themis */
.arch {
  position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 3 / 4.3;
  opacity: 0; animation: fade 1.6s .35s var(--ease) forwards;
}
.arch-frame {
  position: absolute; inset: 0; border-radius: 999px 999px 0 0; overflow: hidden;
  border: 1px solid rgba(220, 189, 110, .55);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 79% 50%; transform: scale(1.12); animation: drift 18s ease-in-out infinite alternate; }
.arch-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 24, 48, .75)); }
.arch-outline { position: absolute; inset: -14px -14px 0; border-radius: 999px 999px 0 0; border: 1px solid rgba(220, 189, 110, .22); border-bottom: 0; }
.arch-seal { position: absolute; left: -58px; bottom: 16%; width: 132px; height: 132px; animation: spin 40s linear infinite; }
.arch-seal text { font-family: var(--font-body); font-size: 9.4px; letter-spacing: .32em; fill: var(--gold-soft); text-transform: uppercase; }
.arch-caption { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--gold-soft); z-index: 1; }
@keyframes drift { to { transform: scale(1.2) translate(-2%, -1%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot { border-top: 1px solid var(--navy-line); }
.hero-foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-foot li { padding: 1.4rem 1.2rem 1.6rem 0; font-size: .82rem; letter-spacing: .08em; color: var(--muted-light); border-right: 1px solid var(--navy-line); padding-left: 1.2rem; }
.hero-foot li:first-child { padding-left: 0; }
.hero-foot li:last-child { border-right: 0; }
.hero-foot strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0; color: var(--ivory); margin-bottom: .2rem; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--ink), var(--navy));
  color: var(--ivory); padding: clamp(9rem, 20vh, 13rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: var(--step-5); max-width: 14ch; }
.page-hero h1 em { color: var(--gold-bright); }
.page-hero .lede { color: var(--muted-light); margin-top: 1.8rem; }
.page-hero .ghost {
  position: absolute; right: var(--gutter); bottom: -3.2rem; font-family: var(--font-display); font-style: italic;
  font-size: clamp(6rem, 16vw, 15rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(220, 189, 110, .16);
  pointer-events: none; user-select: none;
}
.page-hero > .wrap > *:not(.ghost) { position: relative; }
.crumbs { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-head h2 { font-size: var(--step-4); }
.section-head p { color: var(--muted); max-width: 46ch; justify-self: end; margin: 0; }
.surface-dark .section-head p, .surface-ink .section-head p { color: var(--muted-light); }

/* Statement — the name */
.statement { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.statement-quote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.12; position: sticky; top: 7rem; }
.statement-quote em { color: var(--gold); }
.statement-quote .mark { display: block; font-size: 5rem; line-height: .6; color: var(--gold); margin-bottom: 1rem; }
.statement-body p { margin: 0 0 1.4rem; color: var(--muted); }
.statement-body p:first-child { font-size: var(--step-1); color: var(--text); line-height: 1.55; }
.statement-body p:first-child::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.6em; line-height: .82; padding: .06em .12em 0 0; color: var(--navy);
}
.statement-sign { display: flex; gap: 1.2rem; align-items: center; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.statement-sign svg { width: 34px; height: 44px; }
.statement-sign span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Practice index (roman numerals) */
.practice-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: none; }
.practice-index li { border-bottom: 1px solid var(--rule); }
.practice-index a {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.1fr) 3rem; align-items: center; gap: 1.5rem;
  padding: 1.9rem 0; text-decoration: none; position: relative;
  transition: padding .6s var(--ease), color .4s;
}
.practice-index a::before {
  content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease); z-index: -1;
}
.practice-index a { isolation: isolate; }
.practice-index .num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.2rem; }
.practice-index .title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.practice-index .desc { color: var(--muted); font-size: .95rem; transition: color .4s; }
.practice-index .go { justify-self: end; width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; transition: border-color .4s, transform .6s var(--ease); }
.practice-index .go svg { width: 14px; }
.practice-index a:hover, .practice-index a:focus-visible { color: var(--ivory); padding-inline: 1.6rem; }
.practice-index a:hover::before, .practice-index a:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.practice-index a:hover .desc, .practice-index a:focus-visible .desc { color: var(--muted-light); }
.practice-index a:hover .go { border-color: var(--gold); transform: rotate(-45deg); color: var(--gold); }

/* Selected matters */
.matters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy-line); }
.matter { padding: 2.2rem 2.4rem 2.4rem 0; border-bottom: 1px solid var(--navy-line); display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.matter:nth-child(even) { padding-left: 2.4rem; padding-right: 0; border-left: 1px solid var(--navy-line); }
.matter .idx { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.matter .tag { display: inline-block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid var(--navy-line); padding: .3rem .6rem; margin-bottom: .9rem; }
.matter p { margin: 0; color: rgba(244, 238, 226, .86); line-height: 1.6; }
.matter p strong { color: var(--ivory); font-weight: 500; }
.footnote { margin-top: 2.4rem; font-family: var(--font-display); font-style: italic; color: var(--gold-soft); font-size: 1.1rem; }

/* Forums marquee */
.forums { padding-block: 2.2rem; border-block: 1px solid var(--navy-line); overflow: hidden; background: var(--ink); color: var(--ivory); }
.marquee { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--font-display); font-size: var(--step-2); white-space: nowrap; padding-inline: 1.6rem; display: flex; align-items: center; gap: 3.2rem; }
.marquee li::after { content: "§"; color: var(--gold); font-size: .8em; }
.marquee li:nth-child(odd) { font-style: italic; color: var(--gold-soft); }
.forums:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Partner grid */
.partners-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.6rem); }
.partner-card { text-decoration: none; display: block; }
.partner-card:nth-child(even) { margin-top: 3.5rem; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d8d2c4; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) contrast(1.02); transition: transform 1.2s var(--ease), filter .8s; }
.portrait::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(198, 162, 79, 0); transition: border-color .6s, inset .6s var(--ease); }
.partner-card:hover .portrait img { transform: scale(1.05); filter: sepia(0) contrast(1.06); }
.partner-card:hover .portrait::after { inset: 10px; border-color: rgba(220, 189, 110, .8); }
.partner-card h3 { font-size: 1.35rem; margin-top: 1.1rem; }
.partner-card .role { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

/* Principles / approach */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 6rem); counter-reset: art; }
.principle { padding: 2rem 0; border-top: 1px solid var(--rule); counter-increment: art; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; }
.principle::before { content: "Art. " counter(art, upper-roman); font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: .95rem; padding-top: .25rem; }
.principle h3 { font-size: var(--step-1); margin-bottom: .6rem; line-height: 1.2; }
.principle p { margin: 0; color: var(--muted); font-size: .98rem; }
.surface-dark .principle, .surface-ink .principle { border-color: var(--navy-line); }
.surface-dark .principle p, .surface-ink .principle p { color: var(--muted-light); }

/* CTA band */
.cta-band { text-align: center; padding-block: var(--section); overflow: hidden; }
.cta-band h2 { font-size: var(--step-4); max-width: 18ch; margin: 0 auto 1.6rem; }
.cta-band h2 em { color: var(--gold-bright); }
.cta-band p { color: var(--muted-light); max-width: 52ch; margin: 0 auto 2.6rem; }
.cta-band .wrap { position: relative; }
.cta-band .eyebrow { display: flex; justify-content: center; }
.cta-band .big-mark { position: absolute; left: 50%; top: 50%; width: min(520px, 80vw); transform: translate(-50%, -50%); opacity: .07; pointer-events: none; }

/* ---------- Firm page ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); }
.prose p { margin: 0 0 1.35rem; color: var(--muted); }
.prose p.lead { font-size: var(--step-1); color: var(--text); line-height: 1.55; }
.check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.check-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 1.2rem; align-items: baseline; font-family: var(--font-display); font-size: var(--step-1); }
.check-list li span { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: .9rem; min-width: 2.2rem; }

.image-band { position: relative; height: clamp(320px, 55vw, 620px); overflow: hidden; }
.image-band img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.image-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 24, 48, .15), rgba(11, 24, 48, .85)); }
.image-band figcaption { position: absolute; left: 0; right: 0; bottom: clamp(2rem, 5vw, 4rem); z-index: 1; color: var(--ivory); }
.image-band figcaption p { font-family: var(--font-display); font-size: var(--step-3); max-width: 22ch; margin: 0; line-height: 1.12; }
.image-band figcaption em { color: var(--gold-bright); }

.forum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy-line); border-left: 1px solid var(--navy-line); }
.forum-grid div { padding: 1.8rem 1.6rem; border-right: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.forum-grid h3 { font-size: var(--step-1); line-height: 1.2; margin-bottom: .4rem; }
.forum-grid p { margin: 0; font-size: .88rem; color: var(--muted-light); }

/* ---------- Practice page ---------- */
.practice-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.practice-toc { position: sticky; top: 7rem; }
.practice-toc p { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.practice-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.practice-toc a { display: flex; gap: .8rem; padding: .55rem 0 .55rem 1.1rem; text-decoration: none; font-size: .93rem; color: var(--muted); margin-left: -1px; border-left: 1px solid transparent; transition: color .3s, border-color .3s; }
.practice-toc a span { font-family: var(--font-display); font-style: italic; color: var(--gold); min-width: 2rem; }
.practice-toc a:hover, .practice-toc a.is-active { color: var(--text); border-left-color: var(--gold); }

.practice { padding-bottom: clamp(4rem, 8vw, 7rem); margin-bottom: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem; }
.practice:last-child { border-bottom: 0; margin-bottom: 0; }
.practice-head { display: flex; align-items: baseline; gap: 1.4rem; margin-bottom: 2rem; }
.practice-head .num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: var(--step-2); }
.practice-head h2 { font-size: var(--step-3); }
.practice .prose { max-width: 70ch; }
.practice h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--navy-2); margin: 2.4rem 0 1rem; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.4rem; }
.bullets li { padding: .95rem 0 .95rem 1.8rem; border-top: 1px solid var(--rule); position: relative; font-size: .97rem; line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: .9rem; height: 1px; background: var(--gold); }
.bullets.single { grid-template-columns: 1fr; }
.pull { border-left: 2px solid var(--gold); padding: .4rem 0 .4rem 1.4rem; font-family: var(--font-display); font-style: italic; font-size: var(--step-1); margin: 2rem 0; line-height: 1.4; color: var(--navy); }

/* ---------- Team page ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--rule); scroll-margin-top: 5rem; }
.bio:last-of-type { border-bottom: 0; }
.bio-aside { position: sticky; top: 7rem; align-self: start; }
.bio-aside .portrait { max-width: 420px; }
.bio-contact { list-style: none; margin: 1.6rem 0 0; padding: 0; font-size: .93rem; }
.bio-contact li { padding: .7rem 0; border-top: 1px solid var(--rule); display: flex; gap: 1rem; }
.bio-contact li > span:first-child { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); min-width: 4.5rem; padding-top: .2rem; }
.bio-contact a { text-decoration: none; overflow-wrap: anywhere; }
.bio-contact a:hover { color: var(--gold); }
.bio-body .role { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.bio-body h2 { font-size: var(--step-4); margin-bottom: 2rem; }
.bio-body .prose p:first-child { font-size: var(--step-1); color: var(--text); line-height: 1.55; }
.bio-body h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--navy-2); margin: 2.6rem 0 1rem; }
.spec { border-top: 1px solid var(--rule); padding: 1.3rem 0; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.4rem; }
.spec h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin: 0; line-height: 1.25; }
.spec p { margin: 0; color: var(--muted); font-size: .96rem; }
.team-index { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.6rem; }
.team-index a { text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--navy-line); padding: .6rem 1rem; transition: border-color .3s, color .3s; }
.team-index a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.contact-grid > * { min-width: 0; }
.contact-block { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.contact-block h3 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .7rem; }
.contact-block p, .contact-block a { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; margin: 0; text-decoration: none; }
.contact-block a:hover { color: var(--gold); }
.contact-block a { display: block; }

.form { background: var(--ivory); padding: clamp(1.6rem, 4vw, 3.4rem); border-top: 2px solid var(--gold); }
.form h2 { font-size: var(--step-3); margin-bottom: .6rem; }
.form > p { color: var(--muted); margin: 0 0 2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--navy-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid rgba(23, 32, 47, .3); padding: .7rem 0; border-radius: 0; width: 100%; min-width: 0;
  transition: border-color .3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c6a24f'/%3E%3C/svg%3E") no-repeat right .2rem center; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.field .err { font-size: .82rem; color: #9b2c2c; min-height: 1em; }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 1.8rem; }
.consent input { margin-top: .3rem; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1.2rem; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #25603a; }
.form-status.bad { color: #9b2c2c; }
.form .btn { color: var(--navy); }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

.map { margin-top: clamp(3rem, 6vw, 5rem); filter: grayscale(1) contrast(1.05) sepia(.2); border: 1px solid var(--rule); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(4rem, 8vw, 6.5rem); font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.4rem; padding-bottom: 3.5rem; }
.footer-top h4 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2rem; font-weight: 600; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: .55rem; }
.footer-top a { text-decoration: none; transition: color .3s; }
.footer-top a:hover { color: var(--gold-soft); }
.footer-brand p { max-width: 34ch; margin-top: 1.4rem; }
.footer-word { font-family: var(--font-display); font-size: clamp(2.4rem, 10.4vw, 9.4rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(220, 189, 110, .28); white-space: nowrap; letter-spacing: -.02em; text-align: center; overflow: hidden; }
.footer-bottom { border-top: 1px solid var(--navy-line); padding-block: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.footer-bottom button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.footer-bottom button:hover { color: var(--gold-soft); }

/* ---------- Disclaimer modal (BCI) ---------- */
.disclaimer { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 1rem; background: rgba(6, 12, 26, .82); backdrop-filter: blur(6px); }
.disclaimer.is-open { display: grid; animation: fadeIn .5s var(--ease); }
.disclaimer-card { background: var(--paper); max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: clamp(1.6rem, 4vw, 3rem); border-top: 3px solid var(--gold); }
.disclaimer-card svg { width: 34px; height: 44px; margin-bottom: 1.2rem; }
.disclaimer-card h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.disclaimer-card p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.disclaimer-card ul { color: var(--muted); font-size: .95rem; padding-left: 1.2rem; margin: 0 0 1.4rem; }
.disclaimer-card li { margin-bottom: .5rem; }
.disclaimer-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.disclaimer-actions .btn { color: var(--navy); }
.disclaimer-actions .btn--solid { color: var(--ink); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-card:nth-child(even) { margin-top: 0; }
  .practice-index a { grid-template-columns: 4rem minmax(0, 1fr) 3rem; }
  .practice-index .desc { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 1.8rem;
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; z-index: -1;
  }
  .nav a { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 2rem; }
  .nav .btn { font-family: var(--font-body); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 8rem; }
  .arch { justify-self: start; width: min(78%, 340px); margin-left: 3.2rem; }
  .hero-foot ul { grid-template-columns: 1fr 1fr; }
  .hero-foot li:nth-child(2) { border-right: 0; }
  .hero-foot li:nth-child(3) { padding-left: 0; }
  .hero-foot li:nth-child(n+3) { border-top: 1px solid var(--navy-line); }

  .section-head, .statement, .two-col, .contact-grid, .bio, .practice-layout { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .statement-quote, .bio-aside, .practice-toc { position: static; }
  .practice-toc { display: none; }
  .matters, .principles { grid-template-columns: 1fr; }
  .matter, .matter:nth-child(even) { padding: 1.8rem 0; border-left: 0; }
  .forum-grid { grid-template-columns: 1fr 1fr; }
  .bullets { grid-template-columns: 1fr; }
  .bio-aside .portrait { max-width: 320px; }
}

@media (max-width: 600px) {
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .forum-grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: .4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .practice-index a { grid-template-columns: 2.8rem minmax(0, 1fr) 2.6rem; gap: 1rem; padding: 1.4rem 0; }
  .practice-index .go { width: 36px; height: 36px; }
  .arch-seal { left: -46px; width: 104px; height: 104px; }
  .arch { margin-left: 2.6rem; }
  .brand-name { font-size: .8rem; letter-spacing: .3em; }
  .brand-sub { font-size: .62rem; }
  .principle { grid-template-columns: 1fr; gap: .4rem; }
  .eyebrow { letter-spacing: .18em; gap: .7rem; }
  .eyebrow::before { width: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero h1 .line > span { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
