/* ============================================================
   RachLaw — site stylesheet.

   Built on five scroll moves: a light hero, a wordmark that
   draws in as an outline and fills with a photograph, text that
   lights up word by word, a dark run of oversized practice-area
   rows that reveal a photograph when active, and a footer that
   ends on the wordmark at full width.

   Scroll progress is written by src/motion.js into --p (0 to 1)
   on every [data-scene]. Everything here reads --p; nothing
   here depends on it, so the page is complete without JS.
   ============================================================ */

:root {
  /* ground */
  --ink:      #0E2039;
  --ink-2:    #152945;
  --ink-deep: #091628;
  --paper:    #FFFFFF;
  --shell:    #F2EDE3;
  --shell-2:  #E6DFD1;

  /* type on ground */
  --body:     #2A3344;
  --slate:    #5E6878;
  --faint:    #A9AFB9;
  --silver:   #CBD5E2;
  --mist:     #97A6BB;

  /* accent, from her mark */
  --gold:     #A8863F;
  --gold-lt:  #C9A961;

  --hairline:    rgba(14, 32, 57, .12);
  --hairline-2:  rgba(14, 32, 57, .22);
  --hairline-lt: rgba(255, 255, 255, .14);

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px; --s20: 160px;

  /* Nothing on this site is small. */
  --f-small: 16px;
  --f-body:  20px;
  --f-lead:  clamp(22px, 1.75vw, 28px);
  --f-h3:    clamp(28px, 2.6vw, 40px);
  --f-h2:    clamp(42px, 5.2vw, 84px);
  --f-h1:    clamp(52px, 8vw, 140px);
  --f-say:   clamp(32px, 3.7vw, 60px);

  --disp: "Emira", "Cormorant Garamond", Georgia, serif;
  --ui:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --e:     cubic-bezier(.22, .61, .36, 1);
  --e-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 104px;
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }
@media (max-width: 860px) { :root { --header-h: 84px; --f-body: 19px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--ui); font-size: var(--f-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--disp); font-weight: 400; line-height: 1.02;
  letter-spacing: -.015em; margin: 0; text-wrap: balance; color: var(--ink);
}
h1 { font-size: var(--f-h1); }
h2 { font-size: var(--f-h2); }
h3 { font-size: var(--f-h3); }
p  { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: 1320px; margin: 0 auto;
  padding-left:  max(var(--s5), env(safe-area-inset-left, 0px));
  padding-right: max(var(--s5), env(safe-area-inset-right, 0px));
}
.wrap--narrow { max-width: 900px; }
@media (max-width: 700px) {
  .wrap { padding-left: max(22px, env(safe-area-inset-left, 0px));
          padding-right: max(22px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--ui); font-size: 15px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 var(--s3);
}
.on-ink .eyebrow { color: var(--gold-lt); }
.lead { font-size: var(--f-lead); line-height: 1.5; color: var(--slate); max-width: 52ch; }
.on-ink .lead { color: var(--mist); }

/* grounds */
.g-paper { background: var(--paper); }
.g-shell { background: var(--paper); }   /* white ground site-wide (Shachar, Nov 2026); cream stays as an accent */
.g-ink   { background: var(--ink); color: var(--mist); }
.g-ink h1, .g-ink h2, .g-ink h3 { color: #fff; }

.sec { padding-block: clamp(var(--s12), 11vw, var(--s20)); position: relative; }

/* ---------- pill buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ui); font-size: 18px; font-weight: 600; line-height: 1;
  padding: 18px 30px; border-radius: 100px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--e), color .3s var(--e), border-color .3s var(--e), gap .3s var(--e-out);
}
.pill svg { flex-shrink: 0; }
.pill:hover { gap: 18px; }
.pill--ink   { background: var(--ink); color: #fff; }
.pill--ink:hover { background: var(--ink-2); }
.pill--gold  { background: var(--gold); color: #fff; }
.pill--gold:hover { background: var(--gold-lt); }
.pill--line  { border-color: var(--hairline-2); color: var(--ink); }
.pill--line:hover { border-color: var(--ink); }
.on-ink .pill--line { border-color: rgba(255,255,255,.34); color: #fff; }
.on-ink .pill--line:hover { border-color: #fff; }
.pill--light { background: #fff; color: var(--ink); }
.pill--light:hover { background: var(--shell); }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .45s var(--e), box-shadow .45s var(--e);
}
.header[data-solid="true"], body.menu-open .header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--hairline);
}
.header__bar {
  max-width: 1320px; margin: 0 auto; height: var(--header-h);
  padding-inline: max(var(--s5), env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4);
}
@media (max-width: 700px) { .header__bar { padding-inline: 22px; } }

/* The logo sits on a round white seal that hangs a little below the bar. */
.brand {
  --badge: 128px;
  justify-self: start; align-self: start; margin-top: 10px;
  width: var(--badge); height: var(--badge); border-radius: 50%;
  display: grid; place-items: center; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(14, 32, 57, .07), 0 12px 32px -10px rgba(14, 32, 57, .28);
  transition: transform .4s var(--e-out);
}
.brand:hover { transform: translateY(2px); }
.brand__mark { width: 80%; height: 80%; display: block; object-fit: contain; }
@media (max-width: 860px) { .brand { --badge: 96px; margin-top: 6px; } }

.nav__list { display: flex; align-items: center; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__trigger {
  font: inherit; font-size: 18px; font-weight: 500; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 8px 0; position: relative; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--e-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__trigger svg { transition: transform .3s var(--e); }
.nav__group { position: relative; }
.nav__group[data-open="true"] .nav__trigger svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 18px); left: 50%; translate: -50% 0;
  min-width: 330px; list-style: none; margin: 0; padding: 10px;
  background: var(--paper); border-radius: 18px; box-shadow: 0 30px 80px rgba(14,32,57,.22);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
  transition: opacity .25s var(--e), transform .25s var(--e), visibility .25s;
}
.nav__group[data-open="true"] .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  display: block; padding: 14px 18px; border-radius: 10px; text-decoration: none;
  font-size: 18px; color: var(--ink); transition: background .2s var(--e), color .2s var(--e), padding-left .3s var(--e-out);
}
.nav__menu a:hover, .nav__menu a:focus-visible, .nav__menu a[aria-current="page"] { background: var(--ink); color: #fff; padding-left: 26px; }

.header__cta { justify-self: end; display: flex; align-items: center; gap: 10px; }
.wa-btn {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline-2); color: var(--ink); background: var(--paper);
  transition: background .25s var(--e), color .25s var(--e), border-color .25s var(--e);
}
.wa-btn:hover, .wa-btn:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }
.header__cta .pill { padding: 15px 26px; font-size: 17px; }
.nav__drawer-cta { display: none; }

.burger { display: none; justify-self: end; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .35s var(--e); }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header__bar { grid-template-columns: 1fr auto auto; gap: 6px; }
  .nav { display: none; }
  .header__cta .pill { display: none; }
  .wa-btn { width: 46px; height: 46px; }
  .burger { display: block; }
  /* backdrop-filter would make the header the containing block of the fixed
     drawer, clipping it to the bar's height: solid while the menu is open */
  body.menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav.nav--open {
    display: block; position: fixed; inset: var(--header-h) 0 0;
    background: var(--paper); padding: var(--s4) 22px var(--s10); overflow-y: auto;
  }
  .nav--open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav--open .nav__link, .nav--open .nav__trigger {
    width: 100%; justify-content: space-between; font-size: 26px; font-family: var(--disp);
    padding: 20px 0; border-bottom: 1px solid var(--hairline);
  }
  .nav--open .nav__link::after { display: none; }
  .nav--open .nav__menu {
    position: static; translate: none; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: transparent; min-width: 0; padding: 4px 0 12px; margin: 0; display: none; border-radius: 0;
  }
  .nav--open .nav__group[data-open="true"] .nav__menu { display: block; }
  .nav--open .nav__menu a { font-size: 19px; padding: 12px 16px; }
  .nav--open .nav__drawer-cta { display: inline-flex; margin: var(--s5) 10px 0 0; }
}

/* ============================================================
   SCENES — tall containers with a sticky stage. --p is the
   progress through the container, written by motion.js.
   ============================================================ */
[data-scene] { --p: 0; }
.scene { position: relative; }
.scene__stage { position: sticky; top: 0; height: var(--vh); overflow: hidden; }

/* ============================================================
   HERO — one pinned scene in three acts, all driven by --p:
   1. the film (0 to .614): the frame lifts out from under the
      headline and plays coast to handshake;
   2. the clouds (.58 to .78): only the transition. Soft wisps drift
      in over the end of the film, the film whites out behind them as
      if flown through, and they rise and fade;
   3. the name (.78 to 1): RachLaw in navy on white; the letters open
      and their navy fills the screen, handing straight over to the
      practice areas.
   ============================================================ */
.hero {
  height: calc(var(--vh) * 9.8); background: var(--paper);
  --fp: clamp(0, var(--p) / .614, 1);                 /* film */
  --cp: clamp(0, (var(--p) - .58) / .20, 1);          /* clouds: drift in, rise, fade */
  --mp: clamp(0, (var(--p) - .78) / .22, 1);          /* the name */
}
.hero .scene__stage { background: var(--paper); }
.hero__media {
  --i: clamp(0, 1 - var(--fp) / .06, 1);              /* 1 at the top, 0 once the film has opened */
  --o: clamp(0, (var(--p) - .625) / .05, 1);          /* gives way behind the clouds */
  /* At the top the frame is lowered, so its own sky meets the ground under
     the headline; scrolling lifts it into the full screen. */
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 calc(var(--i) * 26%));
          mask-image: linear-gradient(to bottom, transparent 0%, #000 calc(var(--i) * 26%));
  transform: translate3d(0, calc(var(--i) * var(--drop, 40%)), 0);
  opacity: calc(1 - var(--o));
}
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity .6s var(--e); }
.hero__media video.is-ready { opacity: 1; }
/* Before any scroll: soft cloud lies along the seam where the film's sky
   meets the white under the headline; the first scroll carries it down and
   away as the film lifts into the full screen. */
.hero__veil {
  --v: clamp(0, var(--fp) / .05, 1);
  position: absolute; left: -6%; right: -6%; top: calc(var(--drop, 40%) - 18%); height: 52%;
  z-index: 1; pointer-events: none;
  opacity: calc(1 - var(--v));
  transform: translate3d(0, calc(var(--v) * 45%), 0);
}
.hero__veil img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* the crop cuts through cloud: feather it away at the top and bottom */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 62%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 62%, transparent);
}
@media (max-width: 760px) { .hero__veil { --drop: 50%; } }
.hero__clouds {
  /* soft wisps, gathered at the sides: they drift in from a little larger
     over the end of the film, rise as the film whites out behind them,
     and fade on their way up before the name appears */
  --in: min(1, var(--cp) * 2.5);
  --out: clamp(0, (var(--cp) - .6) / .4, 1);
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: calc(var(--in) * (1 - var(--out)));
  transform: translate3d(0, calc(8% - var(--cp) * 38%), 0) scale(calc(1.3 - .3 * var(--in)));
}
.hero__clouds img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .mark { z-index: 0; opacity: clamp(0, (var(--p) - .74) / .05, 1); }
.hero__copy {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; text-align: center;
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 60px));
  opacity: clamp(0, 1 - var(--fp) / .045, 1);
  transform: translate3d(0, calc(clamp(0, var(--fp) / .045, 1) * -120%), 0);
}
.hero__copy h1 { max-width: 14ch; margin: 0 auto; line-height: .96; letter-spacing: -.025em; font-size: clamp(50px, 7vw, 124px); }
.hero__copy .pill-row { justify-content: center; margin-top: clamp(var(--s4), 3.5vh, var(--s8)); }
@media (max-width: 760px) { .hero__media { --drop: 50%; } }
.stars { color: var(--gold); letter-spacing: 3px; }

/* ============================================================
   WORDMARK — the hero's third act (see HERO). Its own progress is --mp.
   ============================================================ */
.mark {
  --a: clamp(0, var(--mp) / .28, 1);                  /* settles into place */
  --z: clamp(0, (var(--mp) - .36) / .56, 1);          /* the letters open */
  --full: clamp(0, (var(--mp) - .85) / .07, 1);       /* nothing left but navy */
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  font-family: var(--disp); font-size: clamp(64px, 22vw, 400px); letter-spacing: -.03em;
}
.mark__zoom {
  transform-box: view-box;
  /* the deepest point inside the letters (measured), so the zoom lands in the photograph */
  /* ...and that point slides to the middle of the screen as the letters open */
  transform-origin: calc(50% - .26em) calc(50% - .11em);
  transform: translate(calc(min(1, var(--z) * 2) * .26em), calc(min(1, var(--z) * 2) * .11em)) scale(calc((1.12 - .12 * var(--a)) * (1 + 90 * var(--z) * var(--z) * var(--z))));
}
.mark__full { opacity: var(--full); }
.mark__ground { fill: var(--ink); }

/* ============================================================
   STATEMENT — a pinned scene in depth. The sentence lights up word
   by word, then recedes into the distance; the four figures fly in
   from far behind it, one after another, counting up as they come;
   the closing line settles beneath them.
   ============================================================ */
.statement { height: calc(var(--vh) * 4); background: var(--paper); }
/* the figures settle low in the frame, so when the pin releases there is
   little empty space before the reviews */
.statement .scene__stage { background: var(--paper); display: grid; align-items: end; justify-items: center; padding-bottom: clamp(var(--s8), 10vh, var(--s16)); }
.statement + .sec { padding-top: clamp(var(--s8), 6vw, var(--s12)); }
.st3d {
  position: static; width: 100%; max-width: 1320px; padding-inline: var(--s5); text-align: center;
  perspective: 900px; perspective-origin: 50% 45%;
  --back: clamp(0, (var(--p) - .30) / .15, 1);        /* the sentence recedes */
  --lead: clamp(0, (var(--p) - .80) / .10, 1);        /* the closing line */
}
.st3d__say {
  /* high in the stage, just under the header, so the scene opens without a
     half-screen of white above the sentence */
  position: absolute; left: var(--s5); right: var(--s5); top: calc(var(--header-h) + clamp(var(--s4), 7vh, var(--s10))); margin: 0 auto; text-align: center;
  transform: perspective(900px) translate3d(0, 0, calc(var(--back) * -700px));
  --back: clamp(0, (var(--p) - .30) / .15, 1);
  opacity: calc(1 - var(--back)); filter: blur(calc(var(--back) * 6px));
}
.st3d__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
  transform-style: preserve-3d; position: relative;
}
.st3d__stat {
  --s: clamp(0, (var(--p) - .38 - var(--k) * .07) / .2, 1);
  --e: calc(var(--s) * var(--s) * (3 - 2 * var(--s)));
  transform: translate3d(0, calc((1 - var(--e)) * 40px), calc((1 - var(--e)) * -1600px)) rotateX(calc((1 - var(--e)) * 28deg));
  opacity: var(--e); filter: blur(calc((1 - var(--e)) * 10px));
}
.st3d__stat b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(56px, 7vw, 120px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.st3d__stat span { display: block; margin-top: 14px; font-size: 17px; color: var(--slate); }
.st3d__lead {
  max-width: 52ch; margin: clamp(var(--s8), 7vh, var(--s12)) auto 0;
  opacity: var(--lead); transform: translate3d(0, calc((1 - var(--lead)) * 24px), 0);
}
@media (max-width: 760px) {
  .st3d { padding-inline: 22px; perspective: 600px; }
  .st3d__say { left: 22px; right: 22px; }
  .statement .st3d__say { --back: clamp(0, (var(--p) - .30) / .15, 1); }
  .st3d__stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s6); }
}
.say {
  font-family: var(--disp); font-size: var(--f-say); line-height: 1.18; color: var(--ink);
  max-width: 26ch; margin: 0 auto; text-wrap: balance;
}
.say--left { margin: 0; text-align: left; max-width: 18ch; }

/* word-by-word light-up: motion.js wraps words in .w and sets --o */
[data-words] .w { opacity: var(--o, 1); transition: opacity .12s linear; }
.js [data-words] .w { --o: .16; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
  margin-top: clamp(var(--s10), 8vw, var(--s16)); padding-top: var(--s6);
  border-top: 1px solid var(--hairline);
}
.stat b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(44px, 4.6vw, 74px); line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 10px; font-size: 17px; color: var(--slate); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s6); } }

/* ============================================================
   ROWS — the practice areas, oversized, on ink. The active row
   reveals its photograph behind the title.
   ============================================================ */
.rows-sec { padding-block: clamp(var(--s12), 10vw, var(--s20)); }
.rows-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); flex-wrap: wrap; margin-bottom: clamp(var(--s8), 6vw, var(--s12)); }
.rows-head h2 { max-width: 15ch; }
.rows-head p { color: var(--mist); max-width: 30ch; font-size: 18px; margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline-lt); }
.row { position: relative; border-top: 1px solid var(--hairline-lt); overflow: hidden; }
.row > a {
  position: relative; z-index: 1; text-decoration: none; color: #fff;
  display: grid; grid-template-columns: minmax(220px, .9fr) 2fr auto; align-items: center; gap: var(--s5);
  padding: clamp(28px, 3.4vw, 52px) max(var(--s5), calc((100vw - 1320px) / 2 + var(--s5)));
}
.row__media { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--e); }
.row__media img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.9);
  transform: scale(1.08); transition: transform 1.2s var(--e-out);
}
.row__meta { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--mist); transition: color .4s var(--e); }
.row__num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff;
}
.row__title {
  font-family: var(--disp); font-size: clamp(44px, 6.4vw, 112px); line-height: 1;
  letter-spacing: -.02em; color: rgba(255,255,255,.42);
  transition: color .45s var(--e), transform .7s var(--e-out);
}
.row__arrow { color: rgba(255,255,255,.4); transition: color .4s var(--e), transform .6s var(--e-out); }
.row.is-active .row__media { opacity: 1; }
.row.is-active .row__media img { transform: scale(1); }
.row.is-active .row__title { color: #fff; transform: translateX(14px); }
.row.is-active .row__meta { color: #fff; }
.row.is-active .row__arrow { color: #fff; transform: translateX(8px); }
@media (max-width: 860px) {
  .row > a { grid-template-columns: 1fr auto; padding-inline: 22px; gap: var(--s2) var(--s3); }
  .row__meta { grid-column: 1 / -1; order: 2; }
  .row__title { order: 1; }
  .row__arrow { order: 1; }
}
.rows-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: clamp(var(--s8), 6vw, var(--s12)); }
.rows-foot p { font-family: var(--disp); font-size: var(--f-h3); color: #fff; margin: 0; max-width: 22ch; line-height: 1.15; }

/* ============================================================
   SPLIT WORD — the photograph shows through the upper part of
   the letters; the lower part is white over the photograph.
   ============================================================ */
.splitword {
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.splitword__above { width: 100%; background: var(--split-above, var(--ink)); height: calc(var(--split-above-h, .80) * var(--split-fs)); }
.splitword__photo {
  width: 100%; aspect-ratio: var(--split-ratio, 1920 / 1072);
  background: #B9B3AF var(--split-img) center / cover no-repeat;
}
@media (max-width: 900px) { .splitword__photo { background-image: var(--split-img-sm, var(--split-img)); } }
/* a band whose content runs past its photograph continues in the colour at
   the photograph's foot (the sea, the desk), faded in, so no white shows */
.splitword--tail { background: var(--split-tail); }
.splitword--tail .splitword__above { position: relative; z-index: 0; }
.splitword--tail .splitword__photo { position: relative; }
.splitword--tail .splitword__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to bottom, transparent, var(--split-tail));
}
@media (max-width: 1099px) { .splitword--tail .splitword__body--glass { background: var(--split-tail); } }
.splitword__title {
  position: absolute; left: 0; right: 0;
  top: calc(var(--split-above-h, .80) * var(--split-fs) - var(--split-n) * var(--split-fs));
  margin: 0; padding-top: .1em; font-family: var(--disp); font-weight: 400;
  font-size: var(--split-fs); line-height: 1; text-align: center; letter-spacing: 0;
  pointer-events: none; color: #fff;
}
.splitword__title--lower { clip-path: inset(var(--split) 0 0 0); }
.splitword__title--upper {
  color: var(--silver);
  background-image: var(--split-img); background-size: 100% auto; background-repeat: no-repeat;
  background-position: 0 var(--split-photo-y, .056em);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  clip-path: inset(0 0 calc(100% - var(--split)) 0);
}
@media (max-width: 900px) { .splitword__title--upper { background-image: var(--split-img-sm, var(--split-img)); } }
.splitword__body {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  padding: clamp(var(--s12), 12vw, var(--s20)) 0 clamp(var(--s6), 5vw, var(--s10));
  background: linear-gradient(to top, rgba(9,22,40,.82) 26%, rgba(9,22,40,0));
}
.splitword__body p { color: #fff; font-size: var(--f-lead); line-height: 1.5; max-width: 48ch; margin: 0 auto; }
.bandsec__body { padding-block: clamp(var(--s12), 9vw, var(--s16)); }

/* Three qualities, set as type rather than pills: they are not buttons. */
.splitword__trio {
  display: flex; flex-direction: column; align-items: center; gap: .3em;
  margin-top: var(--s3); font-family: var(--disp); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.15; color: #fff;
}
.splitword__trio span { display: block; }
.splitword__trio span + span::before {
  content: ""; display: block; width: 32px; height: 1px; background: var(--gold-lt); margin: 0 auto .4em;
}
@media (max-width: 700px) { .splitword__body { position: static; background: var(--ink-deep); } }
.splitword__eyebrow { color: var(--gold-lt); margin-bottom: 0; }

/* Solicitor: the words stand in the open sky between the colonnades, in
   navy straight on the photograph, no shade over it. */
@media (min-width: 701px) {
  .splitword__body--sky {
    top: calc(var(--split-above-h, .80) * var(--split-fs) + (1 - var(--split-n)) * .78 * var(--split-fs));
    display: flex; align-items: center; background: none; padding: 0;
  }
  .splitword__body--sky .wrap { width: 100%; }
  .splitword__body--sky .splitword__eyebrow { color: var(--ink); font-size: clamp(13px, 1.15vw, 18px); }
  .splitword__body--sky .splitword__trio { color: var(--ink); }
  .splitword__body--sky .splitword__trio span + span::before { background: var(--gold); }
}
/* With the credential cards inside the foot of the photograph, the
   qualities centre in the sky between the heading and the cards. */
@media (min-width: 861px) {
  .splitword__body--sky { bottom: calc(clamp(200px, 16vw, 250px) + clamp(24px, 2.6vw, 48px)); }
}

/* Service Areas: the copy sits on a white card inside the photograph, left
   of the towers, like the credentials under Solicitor. Below 1280px it sits
   under the photograph on navy instead. */
.splitword__heading { font-family: var(--disp); font-weight: 400; color: #fff; font-size: var(--f-h3); line-height: 1.08; margin: 0 auto; max-width: 18ch; }
.splitword__body--ocean .splitword__lead { margin-top: var(--s3); }
.areas { display: grid; gap: var(--s4); margin-top: var(--s5); }
.areas__state { font-size: 14px !important; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-lt) !important; margin: 0 auto var(--s2) !important; }
.areas .chips { justify-content: center; margin-top: 0; }
.splitword__body--ocean .chip { background: #fff; border-color: #fff; color: var(--ink); }
.splitword__body--ocean a.chip:hover, .splitword__body--ocean a.chip:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 1279px) {
  .splitword__body--ocean { position: static; background: var(--ink-deep); padding: var(--s12) 0; }
}
@media (min-width: 1280px) {
  .splitword__body--ocean {
    top: calc(var(--split-above-h, .80) * var(--split-fs) + 100vw * 1084 / 1920 * .16);
    bottom: auto; background: none; text-align: left; padding: 0;
  }
  .areas-card {
    width: min(40vw, 560px); background: var(--paper); border-radius: 22px;
    padding: clamp(var(--s4), 2.4vw, var(--s6));
    box-shadow: 0 30px 60px -28px rgba(14, 32, 57, .5), 0 0 0 1px rgba(14, 32, 57, .05);
  }
  .areas-card .splitword__heading { color: var(--ink); margin: 0; max-width: none; font-size: clamp(30px, 2.4vw, 44px); line-height: 1.06; }
  .areas-card .splitword__lead { color: var(--slate); font-size: clamp(15px, 1.05vw, 18px); line-height: 1.5; margin: var(--s2) 0 0; max-width: none; }
  .areas-card .areas { margin-top: var(--s4); gap: var(--s3); }
  .areas-card .areas__state { color: var(--gold) !important; margin: 0 0 10px !important; font-size: 12px !important; }
  .areas-card .areas .chips { justify-content: flex-start; gap: 6px; }
  .areas-card .chip { background: var(--paper); border-color: var(--hairline-2); color: var(--ink); font-size: 14px; padding: 7px 14px; }
}

/* ============================================================
   CREDENTIALS
   ============================================================ */
.marks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.marks > div {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 20px;
  padding: var(--s8) var(--s5); text-align: center; display: flex; flex-direction: column; align-items: center;
}
.g-paper .marks > div { background: var(--shell); border-color: transparent; }
.marks img { height: clamp(58px, 6vw, 76px); width: auto; max-width: 100%; margin: 0 auto var(--s4); object-fit: contain; }
.marks > div:last-child img { height: clamp(66px, 7vw, 88px); }
.marks span { font-size: 17px; color: var(--slate); line-height: 1.5; }
@media (max-width: 600px) { .marks { grid-template-columns: 1fr; } }
.marks__eyebrow { text-align: center; }
.marks > div { transition: transform .45s var(--e-out), box-shadow .45s var(--e-out); }
.marks > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1.5px rgba(201, 169, 97, .8), 0 0 36px 8px rgba(201, 169, 97, .5), 0 24px 50px -24px rgba(14, 32, 57, .45);
}
.marks > div img { transition: filter .45s var(--e-out); }
.marks > div:hover img { filter: drop-shadow(0 0 10px rgba(201, 169, 97, .45)); }

/* Under Solicitor the credential cards sit inside the foot of the photograph:
   a fixed height, pulled up by that height plus a margin, so they take no
   room below it. */
@media (min-width: 861px) {
  .bandsec__body--lift {
    --card-h: clamp(200px, 16vw, 250px); --card-gap: clamp(var(--s3), 2.6vw, var(--s6));
    position: relative; z-index: 1; padding-block: 0 var(--card-gap);
  }
  .bandsec__body--lift .marks { margin-top: calc(-1 * (var(--card-h) + var(--card-gap))); }
  .bandsec__body--lift .marks > div {
    box-sizing: border-box; height: var(--card-h); justify-content: center; overflow: hidden;
    background: var(--paper); border-color: transparent; padding: var(--s3) var(--s4);
    box-shadow: 0 24px 48px -24px rgba(14, 32, 57, .45), 0 0 0 1px rgba(14, 32, 57, .05);
  }
  .bandsec__body--lift .marks img { height: clamp(48px, 4.4vw, 70px); margin-bottom: var(--s2); }
  .bandsec__body--lift .marks > div:last-child img { height: clamp(56px, 5vw, 80px); }
  .bandsec__body--lift .marks span { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.4; }
  .bandsec__body--lift .marks__eyebrow {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* ============================================================
   REVIEWS — one quote at a time, beside a photograph.
   ============================================================ */
.reviews__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(var(--s8), 7vw, var(--s16)); align-items: center; }
.reviews__photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.reviews__photo img { width: 100%; height: 115%; object-fit: cover; transform: translate3d(0, calc(var(--p) * -12%), 0); }
.reviews__rating { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--slate); margin: var(--s3) 0 var(--s6); }
.quote { margin: 0; }
.quote blockquote {
  margin: 0; font-family: var(--disp); font-size: clamp(28px, 2.7vw, 44px); line-height: 1.24; color: var(--ink);
}
.quote cite { display: block; margin-top: var(--s4); font-style: normal; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.js .quote { display: none; }
.js .quote.is-on { display: block; animation: quoteIn .7s var(--e-out); }
@keyframes quoteIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.quote + .quote { margin-top: var(--s8); }
.js .quote + .quote { margin-top: 0; }
.reviews__nav { display: none; align-items: center; gap: 14px; margin-top: var(--s6); }
.js .reviews__nav { display: flex; }
.reviews__nav button {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hairline-2);
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--e), color .25s var(--e), border-color .25s var(--e);
}
.reviews__nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.reviews__count { font-size: 16px; color: var(--slate); min-width: 4ch; }
@media (max-width: 860px) { .reviews__grid { grid-template-columns: 1fr; } .reviews__photo { aspect-ratio: 16 / 11; } }

/* ============================================================
   COLLAGE — about, as an editorial spread.
   ============================================================ */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4); align-items: center; }
.collage__portrait { grid-column: 1 / 6; }
.collage__portrait .frame { aspect-ratio: 4 / 5; }
.collage__portrait figcaption { margin-top: var(--s2); font-size: 16px; color: var(--slate); line-height: 1.5; }
.collage__portrait figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 18px; }
.collage__text { grid-column: 7 / 13; }
.collage__text--wide { grid-column: 6 / 13; }
.collage__text h2 { font-size: var(--f-h3); margin-bottom: var(--s3); }
.collage__text p { color: var(--slate); }
.collage__lead { font-size: var(--f-lead); color: var(--body) !important; line-height: 1.5; }
.frame { border-radius: 22px; overflow: hidden; position: relative; }
.frame img { width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
@media (max-width: 860px) {
  /* one column: twelve tracks and their gaps are wider than a phone */
  .collage { grid-template-columns: 1fr; }
  .collage__portrait { grid-column: auto; max-width: 420px; margin-top: 0; }
  .collage__text, .collage__text--wide { grid-column: auto; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.chip { font-size: 16px; font-weight: 600; padding: 11px 20px; border-radius: 100px; border: 1px solid var(--hairline-2); color: var(--ink); text-decoration: none; }
a.chip { transition: background .25s var(--e), color .25s var(--e), border-color .25s var(--e); }
a.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips--centre { justify-content: center; }
.chips--big .chip { font-size: 19px; padding: 15px 28px; font-weight: 500; }

/* ============================================================
   CONTACT + FORM
   ============================================================ */
/* Get in Touch: a split-word band over the coast where Queensland meets
   New South Wales; the whole enquiry on a pane of frosted glass below the
   word. Below 1100px the glass sits under the photograph, on navy. */
.glass {
  background: rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 30px;
  box-shadow: 0 40px 90px -40px rgba(9, 22, 40, .55), inset 0 1px 0 rgba(255, 255, 255, .8);
  padding: clamp(var(--s5), 3.2vw, var(--s8));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .95); }
}
.splitword__body--glass { text-align: left; background: none; padding: 0; }
.splitword__body--glass .glass { max-width: 1120px; margin-inline: auto; }
.glass--slim { max-width: 720px !important; text-align: center; }
.glass--slim .lead { margin: 0 auto; }
.glass--slim .pill-row { justify-content: center; margin-top: var(--s5); }
/* the page head sits under the fixed header */
.band-top { height: var(--header-h); background: var(--paper); }
.splitword__body--glass .lead { margin: 0; max-width: 46ch; color: var(--slate); }
.splitword__body--glass .form p { max-width: none; }
.splitword__body--glass .form__note { color: var(--slate); font-size: 14px; }
.splitword__body--glass .field textarea { min-height: 72px; }
@media (min-width: 1100px) {
  /* in the flow, pulled up over the photograph to just below the word, so a
     tall form grows the band instead of running off the photograph */
  .splitword__body--glass {
    --off: calc((1.12 - var(--split-n)) * var(--split-fs) + var(--s3));
    position: relative; top: auto; bottom: auto; padding-bottom: var(--s12);
    margin-top: calc(-100vw * var(--split-hr) + var(--off));
    /* never shorter than the photograph below the word, so a short panel
       does not leave the photograph cut off */
    min-height: calc(100vw * var(--split-hr) - var(--off));
  }
}
@media (max-width: 1099px) {
  .splitword__body--glass { position: static; background: var(--ink); padding: var(--s8) 0 var(--s12); }
  .splitword__body--glass .glass { background: rgba(255, 255, 255, .96); }
}
@media (max-width: 700px) { .splitword__body--glass .wrap { padding-inline: 14px; } .glass { border-radius: 22px; padding: var(--s5) 22px; } }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--s8), 6vw, var(--s12)); }
@media (max-width: 700px) { .contact .wrap { padding-inline: 14px; } .glass { border-radius: 22px; padding: var(--s5) 22px; } }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: var(--s6); } }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s6); }
.details dt { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.details dd { margin: 0; font-size: 19px; color: var(--ink); line-height: 1.45; }
.details a { text-decoration: none; border-bottom: 1px solid var(--hairline-2); }
.details a.wa-pill { border-bottom: 0; color: #fff; padding: 12px 20px; font-size: 16px; gap: 9px; margin-top: 2px; }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; gap: var(--s3); margin-top: var(--s5); } }
.details dd a:not(.pill) { white-space: nowrap; }

.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 2px; }
.field label { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 19px; color: var(--ink); width: 100%;
  padding: 8px 0 10px; background: transparent; border: 0; border-bottom: 1.5px solid var(--hairline-2);
  border-radius: 0; transition: border-color .25s var(--e);
}
.field textarea { min-height: 80px; resize: vertical; }
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230E2039' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); }
.form__tel { display: flex; align-items: baseline; gap: 10px; border-bottom: 1.5px solid var(--hairline-2); transition: border-color .25s var(--e); }
.form__tel:focus-within { border-bottom-color: var(--gold); }
.form__tel input { border-bottom: 0 !important; }
.form__tel-cc { font-size: 19px; color: var(--slate); }
.field [aria-invalid="true"], .form__tel:has([aria-invalid="true"]) { border-bottom-color: #9b2c2c !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: 14px; color: var(--slate); margin: 0; line-height: 1.5; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile { min-height: 65px; }
.form__status { font-size: 17px; margin: 0; display: none; }
.form__status[data-state="ok"] { display: block; color: #1d6b40; }
.form__status[data-state="busy"] { display: block; color: var(--slate); }
.form__status[data-state="error"] { display: block; color: #9b2c2c; }

/* ============================================================
   PRACTICE-AREA CHAPTERS (see designBody in build.mjs)
   ============================================================ */
.ch { padding-block: clamp(var(--s12), 9vw, var(--s16)); }
.ch + .ch:not(.g-ink) { border-top: 1px solid var(--hairline); }
.ch h2 { font-size: clamp(38px, 4.2vw, 68px); line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; }
.ch__head p { color: var(--slate); font-size: var(--f-lead); line-height: 1.5; margin-top: var(--s3); max-width: 46ch; }
.ch__head--wide { margin-bottom: clamp(var(--s8), 5vw, var(--s12)); }
.ch__head--wide h2 { max-width: 20ch; }
.ch__split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(var(--s8), 7vw, var(--s16)); align-items: start; }
.ch__head--sticky { position: sticky; top: calc(var(--header-h) + var(--s6)); }
.ch__after { color: var(--slate); margin-top: var(--s6); max-width: 60ch; }
@media (max-width: 900px) { .ch__split { grid-template-columns: 1fr; } .ch__head--sticky { position: static; } }

/* intro: one large statement */
.ch__intro { max-width: 980px; }
.ch__intro h2 { font-size: 15px; font-family: var(--ui); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); max-width: none; margin-bottom: var(--s4); }
.ch__intro p { color: var(--slate); font-size: var(--f-lead); line-height: 1.5; max-width: 60ch; margin-top: var(--s3); }
.ch__intro .ch__lede { font-family: var(--disp); color: var(--ink); font-size: clamp(30px, 3.2vw, 50px); line-height: 1.18; max-width: 28ch; margin-top: 0; }

/* timeline: the steps, a gold line down their numbers */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 1px; background: var(--hairline-2); }
.tl::after {
  content: ""; position: absolute; left: 31px; top: 10px; width: 1px; background: var(--gold);
  height: calc((100% - 20px) * clamp(0, (var(--p, 1) - .25) / .5, 1));
}
.tl__step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: var(--s4); padding-bottom: clamp(var(--s6), 4vw, var(--s10)); }
.tl__step:last-child { padding-bottom: 0; }
.tl__n {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--disp); font-size: 30px; line-height: 1;
}
.tl__step h3 { font-size: clamp(26px, 2.3vw, 36px); margin: 12px 0 var(--s2); }
.tl__step p { color: var(--slate); margin: 0; max-width: 56ch; }

/* cards: titled points */
.cards { display: grid; gap: var(--s4); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--hairline); border-radius: 22px;
  padding: clamp(var(--s5), 3vw, var(--s8));
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .3s var(--e);
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(14, 32, 57, .35); }
.card__rule { display: block; width: 36px; height: 2px; background: var(--gold); margin-bottom: var(--s4); }
.card h3 { font-size: clamp(26px, 2.1vw, 34px); line-height: 1.1; margin: 0 0 var(--s3); }
.card p { color: var(--slate); margin: 0; }
@media (max-width: 1000px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards--3, .cards--2 { grid-template-columns: 1fr; } }

/* track: a process, numbered, on navy */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); counter-reset: none; }
.track__step { position: relative; padding-top: var(--s6); border-top: 1px solid rgba(255, 255, 255, .18); }
.track__step::before { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 1px; background: var(--gold-lt); }
.track__n { display: block; font-family: var(--disp); font-size: clamp(48px, 4.4vw, 72px); line-height: 1; color: var(--gold-lt); margin-bottom: var(--s3); }
.track__step h3 { color: #fff; font-size: clamp(24px, 1.9vw, 30px); margin: 0 0 var(--s2); }
.track__step p { color: rgba(255, 255, 255, .72); margin: 0; font-size: 17px; line-height: 1.55; }
.ch--track .ch__head h2 { color: #fff; }
.ch--track .ch__head p { color: rgba(255, 255, 255, .72); }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--hairline); color: var(--ink); font-size: 19px; line-height: 1.45; }
.checks li:last-child { border-bottom: 1px solid var(--hairline); }
.checks svg { color: var(--paper); background: var(--ink); border-radius: 50%; padding: 5px; width: 28px; height: 28px; margin-top: -1px; }

/* feature rows: sub-sections */
.feats { display: grid; }
.feat { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(var(--s6), 6vw, var(--s12)); padding-block: clamp(var(--s6), 4vw, var(--s10)); border-top: 1px solid var(--hairline); }
.feat:last-child { border-bottom: 1px solid var(--hairline); }
.feat__title { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.08; margin: 0; }
.feat__body > p { color: var(--slate); margin: 0 0 var(--s3); }
.feat__body .checks { margin-top: var(--s2); }
.mini { display: grid; gap: var(--s3); margin-top: var(--s2); }
.mini__item { padding: var(--s4); border-radius: 18px; background: var(--shell); }
.mini__item h4 { font-family: var(--disp); font-weight: 400; font-size: 24px; margin: 0 0 8px; color: var(--ink); }
.mini__item p { color: var(--slate); margin: 0; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; gap: var(--s3); } }

/* ============================================================
   SERVICE AREAS PAGE
   ============================================================ */
.areas-h1 { font-size: clamp(30px, 2.6vw, 44px); line-height: 1.1; margin: 0 0 var(--s3); color: var(--ink); }
.areas-map__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s8), 6vw, var(--s16)); align-items: center; }
.areas-map__copy .lead { margin-top: var(--s3); }
.areas-map__list { margin: var(--s6) 0 0; display: grid; }
.areas-map__btn {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s3); width: 100%;
  padding: var(--s3) var(--s3); margin: 0; background: none; border: 0; border-top: 1px solid var(--hairline);
  font: inherit; text-align: left; color: var(--ink); cursor: pointer; border-radius: 0;
  transition: background .25s var(--e), color .25s var(--e), padding-left .35s var(--e-out);
}
.areas-map__btn:last-child { border-bottom: 1px solid var(--hairline); }
.areas-map__btn b { font-family: var(--disp); font-weight: 400; font-size: clamp(24px, 2vw, 32px); }
.areas-map__btn span { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.areas-map__btn:hover { padding-left: calc(var(--s3) + 8px); }
.areas-map__btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.areas-map__btn[aria-pressed="true"] span { color: var(--gold-lt); }
.areas-map__more { margin: var(--s5) 0 0; line-height: 1.6; }
.areas-map__more svg { vertical-align: middle; margin-left: 6px; }
.areas-map__more a { display: inline; gap: 10px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline-2); padding-bottom: 4px; font-weight: 600; }
.areas-map__map { border-radius: 28px; overflow: hidden; background: var(--shell); aspect-ratio: 4 / 5; box-shadow: 0 30px 70px -40px rgba(14, 32, 57, .45); }
.areas-map__map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .areas-map__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .areas-map__copy > h2 { margin: 0; }
  .areas-map__copy > .lead { margin: 0; }
  /* on a phone the map sits under the heading, above the choices, so a tap visibly moves it */
  .areas-map__copy { display: contents; }
  .areas-map__copy > .eyebrow, .areas-map__copy > h2, .areas-map__copy > .lead { order: 0; }
  .areas-map__map { order: 1; aspect-ratio: 1 / 1; }
  .areas-map__list { order: 2; margin-top: 0; }
  .areas-map__more { order: 3; margin-top: 0; }
}

.region { padding-block: clamp(var(--s10), 8vw, var(--s16)); scroll-margin-top: var(--header-h); border-top: 1px solid var(--hairline); }
.region__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(var(--s8), 6vw, var(--s16)); align-items: start; }
.region__head h2 { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.04; max-width: 18ch; }
.region__head > p:not(.eyebrow) { color: var(--slate); font-size: var(--f-lead); line-height: 1.5; margin-top: var(--s3); max-width: 48ch; }
.region__svc { list-style: none; margin: 0; padding: 0; }
.region__svc a { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 18px 0; border-top: 1px solid var(--hairline); text-decoration: none; color: var(--ink); font-size: 19px; transition: color .25s var(--e), padding-left .35s var(--e-out); }
.region__svc li:last-child a { border-bottom: 1px solid var(--hairline); }
.region__svc a:hover { color: var(--gold); padding-left: 8px; }
@media (max-width: 900px) { .region__grid { grid-template-columns: 1fr; } }

.faq__list { margin-top: var(--s6); }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--s4) 40px var(--s4) 0; position: relative;
  font-family: var(--disp); font-size: clamp(24px, 2.1vw, 32px); color: var(--ink); line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 300 30px var(--ui); color: var(--gold); transition: rotate .3s var(--e); }
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item p { color: var(--slate); margin: 0 0 var(--s4); max-width: 62ch; }

/* ============================================================
   PAGE HEAD (inner pages) + PROSE
   ============================================================ */
.pagehead { background: var(--paper); padding-top: calc(var(--header-h) + clamp(var(--s10), 9vw, var(--s16))); }
.crumbs { font-size: 16px; color: var(--slate); margin-bottom: var(--s4); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--hairline-2); }
.pagehead h1 { font-size: clamp(52px, 7.4vw, 128px); max-width: 14ch; line-height: .98; letter-spacing: -.025em; }
.pagehead .lead { margin-top: var(--s5); }
.pagehead .pill-row { margin-top: var(--s6); }
.pagehead__media { margin-top: clamp(var(--s10), 8vw, var(--s16)); height: clamp(320px, 62vh, 720px); position: relative; overflow: hidden; }
.pagehead__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 max(0px, calc(var(--edge, 40px) * (1 - var(--p) * 1.6))) round max(0px, calc(24px * (1 - var(--p) * 1.6))));
}
.pagehead__media { --edge: max(var(--s5), calc((100vw - 1320px) / 2 + var(--s5))); }
@media (max-width: 700px) { .pagehead__media { --edge: 22px; } }

.prose h2 { font-size: clamp(36px, 3.8vw, 58px); margin: var(--s12) 0 var(--s4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(26px, 2.2vw, 34px); margin: var(--s8) 0 var(--s3); }
.prose p { color: var(--slate); }
.prose > p:first-of-type { font-size: var(--f-lead); color: var(--body); line-height: 1.5; }
.prose ul, .prose ol { margin: 0 0 var(--s5); padding: 0; list-style: none; }
.prose ul li { position: relative; padding: var(--s3) 0 var(--s3) 40px; border-top: 1px solid var(--hairline); color: var(--slate); }
.prose ul li:last-child { border-bottom: 1px solid var(--hairline); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: calc(var(--s3) + 14px); width: 20px; height: 1.5px; background: var(--gold); }
.prose li b { color: var(--ink); font-weight: 600; }
.steps-list { counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: var(--s4) 0 var(--s4) 84px; border-top: 1px solid var(--hairline); color: var(--slate); }
.steps-list li:last-child { border-bottom: 1px solid var(--hairline); }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: var(--s4);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font-family: var(--disp); font-size: 24px; color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink-deep); color: var(--mist); overflow: hidden; }
.foot a { text-decoration: none; }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s10); padding-top: clamp(var(--s12), 10vw, var(--s20)); }
.foot__cta h2 { color: #fff; font-size: clamp(40px, 4.4vw, 72px); margin-bottom: var(--s3); }
.foot__cta p { font-size: var(--f-lead); color: var(--mist); margin-bottom: var(--s5); }
.foot__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.foot h4 { font-family: var(--ui); font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: var(--s3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot ul a { font-size: 18px; color: var(--mist); transition: color .2s var(--e); }
.foot ul a:hover { color: #fff; }
.foot__info { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: clamp(var(--s10), 8vw, var(--s16)); padding-top: var(--s5); border-top: 1px solid var(--hairline-lt); }
.foot__info dt { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.foot__info dd { margin: 0; font-size: 17px; color: #fff; line-height: 1.5; }
.foot__social { display: flex; gap: 10px; margin-top: var(--s5); }
.foot__social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; color: #fff; transition: background .25s var(--e), color .25s var(--e); }
.foot__social a:hover { background: #fff; color: var(--ink); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s6); padding-block: var(--s5); font-size: 15px; border-top: 1px solid var(--hairline-lt); }
.foot__legal p { margin: 0; line-height: 1.55; }
.foot__legal p a { color: inherit; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.form__note a { color: inherit; border-bottom: 1px solid var(--hairline-2); text-decoration: none; }
.legal h2 { font-size: clamp(28px, 2.6vw, 40px); margin-top: var(--s10); }
.legal a { color: var(--ink); }
.foot__credit { display: inline-flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .25s var(--e); }
.foot__credit:hover, .foot__credit:focus-visible { color: #fff; }
.foot__credit img { width: 22px; height: auto; }
.foot__credit b { font-weight: 700; letter-spacing: .08em; color: #fff; }
@media (max-width: 980px) {
  .foot__top { grid-template-columns: 1fr; }
  .foot__info { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.js .rv { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--e-out), transform .9s var(--e-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d2 { transition-delay: .1s; } .js .rv.d3 { transition-delay: .2s; } .js .rv.d4 { transition-delay: .3s; }
.js .rv-lines .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .rv-lines .line > span { display: block; transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--e-out); }
.js .rv-lines.in .line > span { transform: none; }
.js .rv-lines.in .line:nth-child(2) > span { transition-delay: .08s; }
.js .rv-lines.in .line:nth-child(3) > span { transition-delay: .16s; }
.js .rv-lines.in .line:nth-child(4) > span { transition-delay: .24s; }


/* ============================================================
   PHONE: PHOTO BANDS AS BACKGROUNDS (<= 760px only)
   The photograph becomes a tall background under the word: it is scaled to
   cover a box --m-r times the screen width and centred, and the photo-filled
   top of the word is scaled the same way, so the two still meet. The words
   sit on the photograph in glass, starting just under the word.
   ============================================================ */
@media (max-width: 760px) {
  .splitword {
    --m-r: 1.45;                                            /* photo height / screen width */
    --m-w: calc(100vw * var(--m-r) / var(--split-hr));      /* drawn width of the photograph */
    --m-x: calc((100vw - var(--m-w)) / 2);                  /* centred */
    --m-off: calc((1.12 - var(--split-n)) * var(--split-fs) + var(--s3));
    background: var(--split-tail, var(--ink-deep));
  }
  .splitword .splitword__photo {
    aspect-ratio: auto; height: calc(100vw * var(--m-r));
    background-size: var(--m-w) auto; background-position: var(--m-x) 0;
  }
  .splitword .splitword__title--upper { background-size: var(--m-w) auto; background-position: var(--m-x) var(--split-photo-y, .056em); }
  .splitword .splitword__photo::after { display: none; }

  .splitword .splitword__body {
    position: relative; top: auto; bottom: auto; left: auto; right: auto; display: block;
    background: none; padding: 0 0 var(--s8); text-align: center;
    margin-top: calc(-100vw * var(--m-r) + var(--m-off));
    min-height: calc(100vw * var(--m-r) - var(--m-off));
  }
  .splitword .splitword__body .wrap { padding-inline: 14px; }
  .splitword .splitword__body .form { text-align: left; }

  /* every band's words in one glass panel */
  .splitword .splitword__body .wrap > .glass,
  .splitword .splitword__body .areas-card,
  .splitword .splitword__body--sky .wrap {
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, .7); border-radius: 22px;
    box-shadow: 0 30px 70px -35px rgba(9, 22, 40, .6);
    padding: var(--s5) 20px; width: auto; max-width: none;
  }
  .splitword .splitword__body--sky .wrap { margin-inline: 14px; }

  /* Solicitor: navy type in its panel */
  .splitword__body--sky .splitword__eyebrow { color: var(--ink); font-size: 13px; }
  .splitword__body--sky .splitword__trio { color: var(--ink); font-size: 24px; margin-top: var(--s2); }
  .splitword__body--sky .splitword__trio span + span::before { background: var(--gold); }

  /* Service Areas: the card's copy in navy */
  .splitword .areas-card .splitword__heading { color: var(--ink); font-size: 28px; }
  .splitword .areas-card .splitword__lead { color: var(--slate); font-size: 16px; line-height: 1.5; margin-top: var(--s2); }
  .splitword .areas-card .areas { margin-top: var(--s4); gap: var(--s3); }
  .splitword .areas-card .areas__state { color: var(--gold) !important; font-size: 12px !important; }
  .splitword .areas-card .chip { background: transparent; border-color: var(--hairline-2); color: var(--ink); font-size: 14px; padding: 8px 14px; }

  /* the credential cards follow on white */
  .splitword + .bandsec__body { background: var(--paper); }

  /* statement: the sentence is gone before the first figure arrives */
  .statement .st3d__say { --back: clamp(0, (var(--p) - .28) / .09, 1); }
}

/* Without JS there is no scroll progress: show every scene in its
   finished state instead of its starting one. */
html:not(.js) .hero, html:not(.js) .statement { height: auto; }
html:not(.js) .statement .scene__stage { position: relative; height: auto; padding: var(--s16) 0; }
html:not(.js) .st3d__say { position: static; transform: none; opacity: 1; filter: none; margin-bottom: var(--s10); }
html:not(.js) .st3d__stat, html:not(.js) .st3d__lead { transform: none; opacity: 1; filter: none; }
html:not(.js) .hero .scene__stage { position: relative; height: max(var(--vh), 720px); }
html:not(.js) .hero__clouds, html:not(.js) .hero .mark { display: none; }

/* ============================================================
   REDUCED MOTION — scenes collapse to their final state.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-scene] { --p: 1 !important; }
  .hero [data-scene], .hero { --p: 0 !important; }
  .hero, .statement { height: auto; }
  .statement .scene__stage { position: relative; height: auto; padding: var(--s16) 0; }
  .st3d__say { position: static; transform: none !important; opacity: 1 !important; filter: none !important; margin-bottom: var(--s10); }
  .st3d__stat, .st3d__lead { transform: none !important; opacity: 1 !important; filter: none !important; }
  .hero .scene__stage { position: relative; height: max(var(--vh), 720px); }
  .hero__clouds, .hero .mark { display: none; }
  .js .rv, .js .rv-lines .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js [data-words] .w { --o: 1 !important; }
  .js .quote.is-on { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; color: var(--ink); padding: 14px 22px; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }
