/* ==========================================================================
   Bangun & Partners — editorial system
   Reference: crosby.ai (paper ground, serif-led type, full-bleed statement
   bands, 4:5 portraits, sticky steps, 0.8s fade+lift reveals), rendered in
   B&P's own palette: navy ink, ivory paper, brass accent.
   ========================================================================== */

:root {
  --paper: #F7F4EC;
  --paper-2: #EEE9DD;
  --ink: #0E1A2C;
  --ink-2: #3B4656;
  --muted: #77726A;
  --line: rgba(14, 26, 44, 0.13);
  --line-2: rgba(14, 26, 44, 0.26);
  --navy: #1B4B8F;
  --navy-deep: #0C2342;
  --night: #081629;
  --brass: #A78651;
  --on-dark: #F4EFE3;
  --on-dark-2: rgba(244, 239, 227, 0.66);
  --on-dark-line: rgba(244, 239, 227, 0.16);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --sign: 'Mrs Saint Delafield', 'Segoe Script', 'Brush Script MT', cursive;

  --container: 1240px;
  --gutter: clamp(20px, 3.4vw, 44px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--navy); color: var(--on-dark); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: .85rem;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.75rem, 6.6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.032em; }
h2 { font-size: clamp(2.05rem, 4.4vw, 3.1rem); line-height: 1.04; letter-spacing: -0.026em; }
h2.xl { font-size: clamp(2.5rem, 5.8vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.65rem); line-height: 1.15; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--navy); }

p { margin: 0 0 1em; color: var(--ink-2); }

.label {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.lede {
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
  line-height: 1.34;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .95em 1.35em;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn--sm { padding: .8em 1.1em; font-size: .74rem; }
.btn--light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.arrow { display: inline-block; transition: transform .3s ease-in-out; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size .4s ease-in-out;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link--light { color: var(--on-dark); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  transition: box-shadow .3s ease-in-out;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.bar {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { justify-self: start; display: inline-flex; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 8px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease-in-out;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-end { justify-self: end; display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none;
  align-items: center;
  background: none;
  border: 1px solid var(--line-2);
  padding: .75em 1em;
  font-size: .74rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn .close { display: none; }
html.menu-open .menu-btn .open { display: none; }
html.menu-open .menu-btn .close { display: inline; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
html.menu-open { overflow: hidden; }
html.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a.active { color: var(--navy); font-style: italic; }
.mobile-menu p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px); }
.hero h1 { max-width: 12em; }
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}
.hero-foot .lede { max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }

/* video hero: full-bleed footage under a night-navy scrim, type set on dark.
   The scrim is heaviest behind the left-aligned type (worst-case frame is
   bright overcast sky) and thins to the right so the architecture reads. */
.hero--video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(580px, calc(100vh - var(--header-h)), 920px);
  min-height: clamp(580px, calc(100svh - var(--header-h)), 920px);
  padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 7vw, 96px);
  background: var(--night);
}
.hero--video > .container { width: 100%; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* scaled from the bottom-left so the source's top-right corner
     (the generator's watermark) always falls outside the frame */
  transform: scale(1.18);
  transform-origin: 0 100%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 22, 41, .72) 0%, rgba(8, 22, 41, 0) 55%),
    linear-gradient(90deg, rgba(8, 22, 41, .9) 0%, rgba(8, 22, 41, .76) 45%, rgba(8, 22, 41, .4) 100%);
}
.hero.hero--video .label { color: rgba(244, 239, 227, .95); } /* outranks the later .on-dark .label */
.hero--video h1, .hero--video .lede { text-shadow: 0 1px 28px rgba(8, 22, 41, .5); }
.hero--video .hero-foot { grid-template-columns: minmax(0, 1fr); }
.hero--video .lede { max-width: 34ch; }

/* ---------- live 3D frames (stand-in for photography) ---------- */
.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: radial-gradient(130% 110% at 72% 12%, #1a3a6c 0%, #0c2342 50%, #06122a 100%);
}
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  pointer-events: none;
}
.frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.frame canvas.ready { opacity: 1; }
.frame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.frame--square { aspect-ratio: 1; }
.frame--card { aspect-ratio: 4 / 3; }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 11vw, 152px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { max-width: 860px; margin: 0 auto clamp(44px, 6vw, 80px); text-align: center; }
.section-head .lede { margin: 22px auto 0; max-width: 32ch; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .lede { margin-left: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.split .lede + p { margin-top: 26px; }
.stack-sm > * + * { margin-top: 18px; }

/* ---------- full-bleed bands ---------- */
.band { padding: clamp(88px, 12vw, 168px) 0; }
.band--navy { background: var(--navy-deep); }
.band--night { background: var(--night); }
/* full-bleed video behind a band (home "How a matter runs"). The video is sticky
   inside the band, so it holds the screen while the steps scroll over it. */
.band--video { position: relative; isolation: isolate; }
.band-media { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.band-video {
  position: sticky; top: 0;
  display: block;
  width: 100%; height: 100vh; height: 100svh;
  object-fit: cover;
}
.band-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(8, 22, 41, 0) 14%, rgba(8, 22, 41, 0) 86%, var(--night) 100%),
    rgba(8, 22, 41, .8);
}
.band--video .step p { color: rgba(244, 239, 227, .78); }
/* closing CTA: the video simply fills the band; the scrim is heaviest behind the left-aligned type */
.band--video-fill .band-video { position: absolute; inset: 0; height: 100%; }
.band--video-fill .band-media::after {
  background: linear-gradient(90deg, rgba(8, 22, 41, .9) 0%, rgba(8, 22, 41, .78) 50%, rgba(8, 22, 41, .5) 100%);
}
.cta--solo { grid-template-columns: minmax(0, 1fr); }
.cta--solo h2 { max-width: 18ch; }
@media (max-width: 900px) {
  .band--video-fill .band-media::after { background: rgba(8, 22, 41, .8); }
}
.band--brass { background: var(--brass); }
.on-dark { color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .lede { color: var(--on-dark); }
.on-dark p, .on-dark .label { color: var(--on-dark-2); }
.on-dark h1 em, .on-dark h2 em { color: #b9cdee; }
.band .center { max-width: 980px; margin-inline: auto; text-align: center; }
.band .center .lede { margin: 26px auto 0; max-width: 34ch; }
.band .center .actions { justify-content: center; }

/* ---------- credentials marquee ---------- */
.marquee {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 26px 0;
  border-block: 1px solid var(--line);
}
.marquee .label { margin: 0; flex: none; font-size: 1.05rem; }
.marquee-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.marquee-track li {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.marquee-track li::after { content: '\25C6'; font-size: .5rem; color: var(--navy); margin: 0 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- practice cards (home) ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.p-card { display: flex; flex-direction: column; }
.p-card .frame { margin-bottom: 24px; }
.p-card:hover .frame canvas.ready { transform: scale(1.04); }
.p-card:hover .frame-video { transform: scale(1.04); }
.p-card h3 { margin-bottom: 10px; }
.p-card > p { font-size: .98rem; margin-bottom: 20px; }
.p-list { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.p-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
  color: var(--ink);
}
.p-list li span { font-family: var(--serif); font-size: .9rem; color: var(--muted); min-width: 1.6em; }
.center-link { text-align: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- sticky steps ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); }
.steps-aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.steps-aside .frame { margin-top: 40px; }
.step { padding: 44px 0; border-top: 1px solid var(--on-dark-line); transition: opacity .5s ease; }
.step:last-child { border-bottom: 1px solid var(--on-dark-line); }
html.js .step { opacity: .3; }
html.js .step.active { opacity: 1; }
.step .num { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--brass); margin-bottom: 16px; }
.step h3 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); margin-bottom: 12px; }
.step p { font-size: 1.05rem; max-width: 40ch; margin: 0; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.person-card { display: block; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 1s ease;
}
.person-card:hover .portrait img { transform: scale(1.035); }
.portrait--mono { background: var(--navy-deep); display: flex; align-items: center; justify-content: center; }
.portrait--mono span { font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 6rem); letter-spacing: -0.04em; color: var(--on-dark); }
.person-card .name { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.015em; margin-top: 16px; }
.person-card .role { display: block; font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* ---------- letter teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.teaser blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--on-dark);
}
.by { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.by img { width: 52px; height: 52px; object-fit: cover; object-position: center 20%; }
.by .n { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--on-dark); }
.by .r { font-size: .86rem; color: var(--on-dark-2); }

/* ---------- closing CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--on-dark-2);
  padding: clamp(64px, 8vw, 96px) 0 28px;
  border-top: 1px solid var(--on-dark-line);
  overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.site-footer h4 { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--on-dark); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a, .site-footer p { font-size: .94rem; color: var(--on-dark-2); margin: 0; }
.site-footer a { transition: color .3s ease-in-out; }
.site-footer a:hover { color: var(--on-dark); }
.footer-mark {
  display: flex;
  justify-content: center;
  margin: clamp(56px, 8vw, 96px) 0 clamp(36px, 4vw, 52px);
}
.footer-mark img { height: clamp(84px, 9vw, 112px); width: auto; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-line);
  font-size: .82rem;
  color: rgba(244, 239, 227, .5);
}

/* ---------- interior page hero ---------- */
.page-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.4rem); max-width: 11em; }
.page-hero .lede { margin-top: 30px; max-width: 34ch; }
.page-hero--media .container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

/* ---------- practice page ---------- */
.practice-group {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 104px);
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.practice-group .aside { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
.practice-group .aside p { margin-top: 18px; max-width: 36ch; }
.practice-group .aside .frame { margin-top: 32px; }
.practice-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.practice-item:first-child { border-top: 1px solid var(--line-2); }
.practice-item .num { font-family: var(--serif); font-size: 1rem; color: var(--muted); padding-top: 4px; transition: color .3s ease-in-out; }
.practice-item h3 { margin-bottom: 8px; transition: color .3s ease-in-out; }
.practice-item p { margin: 0; font-size: 1rem; max-width: 56ch; }
.practice-item:hover h3 { color: var(--navy); }
.practice-item:hover .num { color: var(--brass); }

/* ---------- selected matters (home) ---------- */
.section--alt { background: var(--paper-2); }
.matter {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.matter:first-child { border-top: 1px solid var(--line-2); }
.matter .num { font-family: var(--serif); font-size: 1rem; color: var(--muted); padding-top: 4px; }
.matter h3 { margin-bottom: 10px; }
.matter p { margin: 0; font-size: 1rem; max-width: 60ch; }
.matter .tags { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.matter .link { margin-top: 18px; font-size: .95rem; }

/* ---------- credentials (about) ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px); }
.cred-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.cred-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cred-list li::before { content: '\25C6'; font-size: .55rem; color: var(--navy); transform: translateY(-3px); }
.cred-list small { display: block; font-family: var(--sans); font-size: .85rem; letter-spacing: 0; color: var(--muted); margin-top: 3px; }

/* ---------- profiles (team) ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 104px);
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.profile .portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.profile .role { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--muted); margin-bottom: 14px; }
.profile h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); margin-bottom: 30px; } /* sized so name + creds hold one line in the column */
.profile h2 .creds { font-size: .42em; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.profile p { font-size: 1.06rem; line-height: 1.65; max-width: 58ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.address {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 1rem; max-width: 44ch; }
/* enquiry form */
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.req { color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding: 10px 0;
  transition: border-color .3s ease-in-out;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.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='%2377726A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); }
.field input::placeholder { color: var(--muted); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #A33A2E; }
.field.invalid label { color: #A33A2E; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--navy); }
.consent.invalid { color: #A33A2E; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 6px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.form-status { margin: 0; font-size: .95rem; color: var(--ink-2); }
.form-status.ok { color: var(--navy); }
.form-status.err { color: #A33A2E; }
.contact-form.sent .field, .contact-form.sent .field-row, .contact-form.sent .consent, .contact-form.sent .btn { display: none; }
.contact-form.sent .form-status { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; color: var(--ink); }

/* ---------- letter page ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
}
.letter-hero { padding: clamp(48px, 7vw, 104px) 0 0; }
.letter-hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: .95; letter-spacing: -0.035em; max-width: 12ch; }
.letter-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 18px 0;
  border-block: 1px solid var(--line-2);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--muted);
}
.letter {
  max-width: 760px;
  margin: clamp(56px, 8vw, 112px) auto 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.15vw, 1.42rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.letter p { color: var(--ink); margin: 0 0 1em; }
.letter .salutation { font-size: 1.12em; letter-spacing: -0.02em; margin-bottom: 1.2em; }

/* hand-written annotations in navy fountain-pen ink */
.ink {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.34em;
  line-height: .8;
  color: var(--navy);
  transform: rotate(-2.5deg);
  padding: 0 .06em;
}
.ink-underline { position: relative; display: inline-block; white-space: nowrap; }
.ink-underline svg {
  position: absolute;
  left: -3%;
  bottom: -.34em;
  width: 106%;
  height: .55em;
  overflow: visible;
  pointer-events: none;
}
.ink-underline path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
html.js .ink-underline path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1) .45s; }
html.js .in-view .ink-underline path { stroke-dashoffset: 0; }

.signoff { margin-top: 2.2em; }
.signoff p { margin-bottom: .2em; }
.signature {
  display: inline-block;
  font-family: var(--sign);
  font-size: clamp(3.4rem, 6.4vw, 4.6rem);
  line-height: 1;
  color: var(--navy);
  transform: rotate(-4deg);
  transform-origin: left center;
  margin: .1em 0 0 -.04em;
}
.signer { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-family: var(--sans); }
.signer img { width: 60px; height: 60px; object-fit: cover; object-position: center 20%; }
.signer .n { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.signer .r { font-size: .88rem; color: var(--muted); }
.letter-end {
  max-width: 760px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

/* ---------- reveal on scroll: fade + 16px lift, 0.8s ease ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .08s; }
html.js .reveal.d2 { transition-delay: .16s; }
html.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html.js .ink-underline path { stroke-dashoffset: 0; transition: none; }
  .frame canvas, .frame-video, .portrait img { transition: none; }
}

/* ---------- utilities ---------- */
h1, h2 { text-wrap: balance; }
.section--after-hero { padding-top: clamp(16px, 3vw, 40px); }
.section + .section { padding-top: 0; }
.section + .section > .container { border-top: 1px solid var(--line); padding-top: clamp(84px, 11vw, 152px); }
.split h2 + .lede, .split h2 + .actions { margin-top: 22px; }
.people--center { max-width: 880px; margin-inline: auto; }
.people--single { grid-template-columns: minmax(0, 380px); }
.people--center.people--single { justify-content: center; }
.band--brass h2 em { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; }
  .nav, .header-end .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-foot, .split, .cta, .steps, .practice-group, .profile, .contact-grid,
  .teaser, .cred-grid, .page-hero--media .container { grid-template-columns: minmax(0, 1fr); }
  .practice-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-aside, .practice-group .aside, .profile .portrait { position: static; }
  .profile h2 { font-size: clamp(1.5rem, 6.6vw, 3.1rem); }
  .profile .portrait { max-width: 440px; }
  html.js .step { opacity: 1; }
  .marquee { flex-direction: column; align-items: flex-start; gap: 16px; }
  .marquee-window { width: 100%; }
  /* type spans the full width on narrow screens, so the scrim goes even */
  .hero-media::after {
    background: linear-gradient(0deg, rgba(8, 22, 41, .9) 0%, rgba(8, 22, 41, .74) 55%, rgba(8, 22, 41, .56) 100%);
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .letter-meta { flex-direction: column; }
}

/* ---------- enquiry overlay (after crosby.ai/#signup) ----------
   Full-screen split: brass statement half + night form half. Slides in 8% with
   a 0.3s fade. JS toggles .is-open; without JS, #enquire:target does the same. */
.enquire {
  position: fixed; inset: 0; z-index: 90;
  display: flex;
  opacity: 0; visibility: hidden; transform: translateX(8%);
  transition: opacity .3s ease-in-out, transform .3s ease-in-out, visibility 0s linear .3s;
}
.enquire.is-open, html:not(.js) .enquire:target {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
}
html.enquire-open { overflow: hidden; }

.enquire__statement {
  width: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 6vw, 88px);
  background: var(--brass);
  color: var(--ink);
}
.enquire__statement figure { margin: 0; max-width: 35rem; display: flex; flex-direction: column; gap: 40px; }
.enquire__statement blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.enquire__statement em { font-style: italic; }
.enquire__statement figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.2; }
.enquire__statement .n { font-weight: 500; }

.enquire__panel {
  position: relative;
  width: 50%;
  display: flex; flex-direction: column; justify-content: safe center;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 0;
  background: var(--night);
  color: var(--on-dark);
}
.enquire__inner { width: 100%; max-width: 590px; margin-inline: auto; padding: 40px var(--gutter); }
.enquire__close {
  position: absolute; top: 0; right: 0;
  display: flex; padding: 16px;
  color: var(--on-dark);
  transition: opacity .3s ease-in-out;
}
.enquire__close:hover { opacity: .7; }
.enquire__close:focus-visible { outline-color: var(--on-dark); outline-offset: -4px; }
.enquire h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); color: var(--on-dark); }
.enquire h2 em { color: #b9cdee; }
.enquire__intro { margin: 12px 0 32px; color: var(--on-dark-2); }
.enquire__note { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--on-dark-2); }

/* form on dark: filled fields like the reference, hairline borders */
.enquire .contact-form { gap: 18px; }
.enquire .field label, .enquire .consent { color: var(--on-dark); }
.enquire .req { color: var(--brass); }
.enquire .field input, .enquire .field select, .enquire .field textarea {
  color: var(--on-dark);
  background-color: rgba(244, 239, 227, .07);
  border: 1px solid var(--on-dark-line);
  padding: 10px 12px;
}
.enquire .field select { background-image: 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='%23F4EFE3' stroke-opacity='.7' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.enquire .field select option { color: var(--ink); background: #fff; }
.enquire .field textarea { min-height: 112px; }
.enquire .field input::placeholder, .enquire .field textarea::placeholder { color: rgba(244, 239, 227, .4); }
.enquire .field input:focus, .enquire .field select:focus, .enquire .field textarea:focus { border-color: var(--on-dark); background-color: rgba(244, 239, 227, .1); }
.enquire .consent input { accent-color: var(--brass); }
.enquire .field.invalid input, .enquire .field.invalid textarea { border-color: #E39B8F; }
.enquire .field.invalid label, .enquire .consent.invalid, .enquire .form-status.err { color: #E39B8F; }
.enquire .form-status, .enquire .form-status.ok { color: var(--on-dark); }
.enquire .contact-form.sent .enquire__note { display: none; }
.enquire .contact-form.sent .form-status { color: var(--on-dark); }

@media (max-width: 600px) {
  .enquire__statement { display: none; }
  .enquire__panel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .enquire, .enquire.is-open { transform: none; transition: opacity .2s linear, visibility 0s linear .2s; }
  .enquire.is-open { transition: opacity .2s linear; }
}

/* ---------- privacy policy (after crosby.ai/privacy-policy: title, last-updated, quick links, long-form prose) ---------- */
.policy-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(40px, 7vw, 112px);
  justify-content: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(80px, 10vw, 140px);
}
.policy-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.policy-toc ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; counter-reset: toc; }
.policy-toc li { counter-increment: toc; display: grid; grid-template-columns: 28px 1fr; font-size: .9rem; line-height: 1.35; }
.policy-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-variant-numeric: tabular-nums; }
.policy-toc a { color: var(--ink-2); transition: color .3s ease-in-out; }
.policy-toc a:hover { color: var(--navy); }
.policy { font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); }
.policy-intro { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.42rem); line-height: 1.42; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 clamp(40px, 5vw, 64px); }
.policy section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.policy h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; }
.policy h2 .n { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .02em; color: var(--muted); margin-bottom: 10px; }
.policy h3 { font-size: 1.2rem; color: var(--ink); margin: 26px 0 8px; }
.policy p { margin: 0 0 1em; }
.policy ul { margin: 0 0 1em; padding-left: 1.15em; display: grid; gap: 8px; }
.policy li::marker { color: var(--brass); }
.policy strong { font-weight: 600; color: var(--ink); }
.policy address { font-style: normal; color: var(--ink); }
.policy a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-bottom a { font-size: inherit; color: inherit; }
.footer-bottom a:hover { color: var(--on-dark); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .policy-wrap { grid-template-columns: minmax(0, 1fr); }
  .policy-toc { position: static; }
}
