/* ============================================================
   Law & Order — design system
   ============================================================ */

:root {
  /* palette */
  --sage: #c7cac1;
  --sage-deep: #bcc0b4;
  --ink: #191919;
  --ink-2: #212121;
  --ink-3: #2b2b2b;
  --off: #f5f5f5;
  --bone: #edebe7;
  --navy: #111827;
  --body: #4c4c4a;
  --body-dark: #a5a5a0;
  --white: #ffffff;

  --line: rgba(17, 24, 39, .16);
  --line-strong: rgba(17, 24, 39, .34);
  --line-dark: rgba(255, 255, 255, .16);

  /* type */
  --display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Newsreader', 'Times New Roman', Times, Georgia, serif;

  /* metrics */
  --shell: 1240px;
  --gutter: clamp(20px, 4.2vw, 44px);
  --section-y: clamp(64px, 8.4vw, 116px);
  --gap: clamp(14px, 1.9vw, 26px);
  --nav-h: 92px;
  --radius: 12px;
  --radius-lg: 20px;
  --overlap: clamp(30px, 4.6vw, 62px);
  --team-overlap: clamp(44px, 8.6vw, 136px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
  --ease-slide: cubic-bezier(.5, 0, .12, 1);
  /* long translations (carousel rail) */
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* no scroll-behavior: smooth — it fights Lenis and double-animates anchors */
}

/* ---------- Lenis ---------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  margin: 0;
  background: var(--off);
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(15px, .55vw + 13.4px, 17px);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

hr {
  border: 0;
}

blockquote {
  margin: 0;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.dark :focus-visible,
.menu :focus-visible {
  outline-color: var(--sage);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-200%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  transition: transform .3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.dark {
  background: var(--ink);
  color: var(--body-dark);
}

.dark h1,
.dark h2,
.dark h3 {
  color: #f0efec;
}

/* film grain — the paper texture on the tinted panels */
.grain {
  position: relative;
  isolation: isolate;
}

.grain>* {
  position: relative;
  z-index: 1;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/grain.png");
  background-repeat: repeat;
  background-size: 160px 160px;
  /* tuned so the panel colour shifts <=3 levels: the tile is mid-grey with
     noise in alpha, so it darkens light panels and lightens dark ones */
  opacity: .085;
}

.dark.grain::after {
  opacity: .10;
}

/* ---------- headings ---------- */
.h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.6rem);
  line-height: 1.12;
}

.eyebrow {
  font-family: var(--display);
  font-size: clamp(10.5px, .32vw + 9.6px, 12px);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .9em;
}

.eyebrow span {
  opacity: .4;
  margin: 0 .35em;
}

.rule {
  height: 1px;
  background: var(--line);
  margin: clamp(26px, 3.4vw, 46px) 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: clamp(11.5px, .3vw + 10.6px, 12.5px);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease),
    border-color .4s var(--ease), transform .4s var(--ease);
}

.ico-arrow {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform .45s var(--ease);
}

.btn:hover .ico-arrow,
.link-more:hover .ico-arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--light {
  background: var(--sage);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 3px;
  box-shadow: inset 0 -1px 0 var(--line-strong);
  transition: box-shadow .35s var(--ease);
}

.link-more:hover {
  box-shadow: inset 0 -1px 0 var(--navy);
}

/* ============================================================
   HEADER
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 210;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  transition: border-color .4s var(--ease);
}

.nav.is-stuck {
  /* opaque, not backdrop-filter: a blurred fixed bar re-samples the page on
     every scroll frame and is one of the two documented causes of stutter */
  background: var(--bone);
  box-shadow: 0 1px 0 var(--line), 0 14px 40px -28px rgba(17, 24, 39, .5);
}

.nav.is-stuck .nav__inner {
  border-color: transparent;
}

.brand {
  font-family: var(--display);
  font-size: clamp(19px, 1.35vw, 23px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-right: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  padding: 8px 2px;
  cursor: pointer;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.caret {
  opacity: .55;
  transition: transform .35s var(--ease);
}

.has-sub {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 216px;
  background: var(--ink);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(17, 24, 39, .65);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}

.submenu a {
  font-family: var(--display);
  font-size: 14px;
  color: #d8d7d3;
  padding: 10px 14px;
  border-radius: 9px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.submenu a:hover {
  background: var(--ink-3);
  color: #fff;
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.has-sub:hover .caret,
.has-sub:focus-within .caret {
  transform: rotate(180deg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--navy);
  transition: background-color .35s var(--ease);
}

.icon-btn:hover {
  background: rgba(17, 24, 39, .08);
}

.nav__phone {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: inset 0 -1px 0 var(--line-strong);
  transition: box-shadow .35s var(--ease);
}

.nav__phone:hover {
  box-shadow: inset 0 -1px 0 var(--navy);
}

.nav__cta {
  min-height: 50px;
}

/* ---------- burger ---------- */
.burger {
  display: none;
  position: relative;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-right: -8px;
}

.burger i {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -.75px 0 0 -11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .45s var(--ease);
}

.burger i:first-child {
  transform: translateY(-4px);
}

.burger i:last-child {
  transform: translateY(4px);
}

/* the header sits above the panel, so it has to invert while the panel is up */
html.is-menu-open .burger {
  color: #f0efec;
}

html.is-menu-open .brand {
  color: #f0efec;
}

html.is-menu-open .nav__inner {
  border-color: rgba(255, 255, 255, .12);
}

html.is-menu-open .nav.is-stuck {
  background: transparent;
  box-shadow: none;
}

html.is-menu-open .nav__cta {
  background: var(--sage);
  color: var(--ink);
}

html.is-menu-open .burger i:first-child {
  transform: rotate(45deg);
}

html.is-menu-open .burger i:last-child {
  transform: rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100dvh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(104px, 22vw, 150px) var(--gutter) max(clamp(26px, 7vw, 48px), env(safe-area-inset-bottom));
  background: var(--ink);
  color: #f0efec;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s linear .45s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.menu__nav {
  display: grid;
}

.menu__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.menu__row:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.menu.is-open .menu__row {
  opacity: 1;
  transform: none;
  transition-delay: calc(.1s + var(--i) * .06s);
}

.menu:not(.is-open) .menu__row {
  transition-delay: 0s;
}

.menu__row>a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(14px, 3.4vw, 22px) 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 8.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #f0efec;
}

.menu__row>a:active {
  color: var(--sage);
}

.menu__idx {
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 500;
  letter-spacing: .16em;
  color: rgba(240, 239, 236, .4);
}

.menu__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: rgba(240, 239, 236, .6);
  border-radius: 50%;
}

.menu__toggle svg {
  transition: transform .4s var(--ease);
}

.menu__toggle[aria-expanded="true"] svg {
  transform: rotate(135deg);
}

.menu__sub {
  grid-column: 1 / -1;
  display: grid;
  overflow: hidden;
  height: 0;
  transition: height .45s var(--ease);
}

.menu__sub a {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .01em;
  color: rgba(240, 239, 236, .62);
  padding: 9px 0 9px 34px;
}

.menu__sub a:first-child {
  padding-top: 2px;
}

.menu__sub a:last-child {
  padding-bottom: 20px;
}

.menu__sub a:active {
  color: #fff;
}

.menu__foot {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-top: 40px;
}

.menu__phone {
  font-family: var(--display);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 500;
  letter-spacing: -.01em;
  color: #f0efec;
}

.menu__mail {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--body-dark);
}

.menu__cta {
  margin-top: 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--sage);
  padding-top: calc(var(--nav-h) + clamp(44px, 6.4vw, 88px));
  padding-bottom: clamp(48px, 6vw, 84px);
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .74fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: start;
  padding-bottom: clamp(40px, 5.4vw, 76px);
}

.hero__title {
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.032em;
  max-width: 8.4em;
}

.hero__aside {
  padding-top: clamp(4px, 1.2vw, 14px);
}

.lede {
  margin-bottom: clamp(22px, 2.4vw, 30px);
  max-width: 48ch;
}

.hero__gallery {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.hero__fig {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sage-deep);
}

.hero__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.hero__fig:hover img {
  transform: scale(1.045);
}

.hero__fig:nth-child(1) {
  aspect-ratio: 1 / 1;
}

.hero__fig:nth-child(2),
.hero__fig:nth-child(3) {
  aspect-ratio: 213 / 354;
}

.hero__fig:nth-child(4) {
  aspect-ratio: 213 / 292;
}

/* ============================================================
   TRUST
   ============================================================ */
.trust {
  padding-block: var(--section-y);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .74fr);
  gap: clamp(26px, 4vw, 70px);
  align-items: start;
  padding-bottom: clamp(38px, 5vw, 66px);
}

.split .h2 {
  max-width: 11.05em;
}

.split__aside p {
  margin-bottom: clamp(20px, 2.2vw, 28px);
  max-width: 46ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
  padding: clamp(26px, 2.7vw, 40px);
  transition: transform .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  background: var(--ink-3);
  border-color: rgba(255, 255, 255, .12);
}

.card__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  letter-spacing: -.03em;
  color: #f0efec;
  line-height: 1;
}

.card__title {
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: clamp(20px, 2.4vw, 32px) 0 12px;
}

.card p {
  font-size: .94em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  z-index: 1;
  background: var(--off);
  padding-top: var(--section-y);
  padding-bottom: 0;
}

.about>.shell,
.attorneys>.shell {
  display: flow-root;
}

.about__title {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.22;
  letter-spacing: -.028em;
}

.about__cols p {
  max-width: 108ch;
}

.about .btn {
  margin-top: clamp(26px, 3.2vw, 42px);
}

.video {
  position: relative;
  z-index: 2;
  margin: clamp(38px, 5vw, 66px) 0 calc(var(--overlap) * -1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2160 / 808;
  background: var(--ink);
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* no parallax here: the source still has a play button burned into it, and it
     only stays hidden behind the real button while the image sits at cover rest */
}

.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(52px, 5.4vw, 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .65);
  transition: transform .45s var(--ease), background-color .35s var(--ease);
}

.video__play svg {
  width: 46%;
  height: 46%;
  margin-left: 6%;
}

.video__play::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  animation: haloPulse 2.8s var(--ease-soft) infinite;
}

.video__play:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background: #fff;
}

@keyframes haloPulse {
  0% {
    transform: scale(.9);
    opacity: .75;
  }

  70% {
    transform: scale(1.32);
    opacity: 0;
  }

  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}

/* ============================================================
   PRACTICE + STATS
   ============================================================ */
.practice {
  position: relative;
  z-index: 0;
  background: var(--sage);
  padding-top: calc(var(--section-y) + var(--overlap));
  padding-bottom: var(--section-y);
}

.section-head {
  text-align: center;
  max-width: 66ch;
  margin-inline: auto;
}

.section-head p {
  margin-top: 1em;
  max-width: 58ch;
  margin-inline: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5.4vw, 74px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat {
  text-align: center;
  padding: clamp(24px, 3vw, 38px) 10px;
}

.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -.03em;
  color: var(--navy);
  line-height: 1;
}

.stat__label {
  font-family: var(--display);
  font-size: clamp(11px, .34vw + 10px, 13px);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 9px;
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases {
  background: var(--off);
  padding-block: var(--section-y);
}

.cases__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding-bottom: clamp(38px, 5vw, 68px);
}

.cases__head .h2 {
  max-width: 8.6em;
}

.cases__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.case__body {
  padding-top: clamp(10px, 3vw, 44px);
  max-width: 56ch;
}

.case__title {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.025em;
  margin-bottom: 1em;
}

.case__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.case__media figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 261 / 362;
  background: var(--sage-deep);
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.case__media figure:hover img {
  transform: scale(1.045);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding-top: var(--section-y);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.testimonials .h2 {
  max-width: 8.4em;
  margin-bottom: clamp(34px, 4.4vw, 58px);
}

.quotes {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 22px);
}

.quotes__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #f0efec;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .3s;
}

.quotes__nav svg {
  width: 18px;
  height: 18px;
}

.quotes__nav:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* The rail is driven by transform rather than scrollLeft: the motion is composited,
   so it holds frame rate, and the easing curve is the site's own --ease token
   instead of the browser's untunable native smooth-scroll curve. */
.quotes__view {
  --cols: 3;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.quotes__rail {
  display: flex;
  gap: var(--gap);
  width: 100%;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  touch-action: pan-y;
  /* vertical page scroll stays native */
  cursor: grab;
}

.quotes__rail.is-animating {
  will-change: transform;
}

.quotes__rail.is-dragging {
  cursor: grabbing;
}

.quotes__rail.is-dragging .quote {
  user-select: none;
}

.quote {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: clamp(20px, 2.4vw, 30px);
}

.quote blockquote {
  font-size: .96em;
  color: var(--body-dark);
}

.quote__by {
  font-family: var(--display);
  font-size: clamp(10.5px, .3vw + 9.7px, 12px);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #f0efec;
  margin-top: clamp(20px, 2.4vw, 30px);
}

/* ============================================================
   ATTORNEYS
   ============================================================ */
.attorneys {
  position: relative;
  z-index: 1;
  padding-top: clamp(38px, 5vw, 70px);
  padding-bottom: 0;
}

.attorneys__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(30px, 4vw, 52px);
}

.team {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: calc(var(--team-overlap) * -1);
}

.team__item figure {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 256 / 362;
  background: var(--ink-3);
}

.team__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.team__item:hover img {
  transform: scale(1.04);
  cursor: pointer;
}

/* hovering a portrait draws an inset hairline frame and names the attorney */
.team__item figure::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(15, 15, 15, .72) 0%, rgba(15, 15, 15, 0) 52%),
    rgba(25, 25, 25, .24);
  transition: opacity .55s var(--ease);
}

.team__meta {
  position: absolute;
  inset: clamp(12px, 1.7vw, 24px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  padding: 0 12px clamp(16px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .82);
  text-align: center;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}

.team__meta:hover {
  cursor: pointer;
}

.team__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 1.15vw, 17.5px);
  letter-spacing: -.01em;
  line-height: 1.25;
  color: #fff;
}

.team__role {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(14px, 1.15vw, 17.5px);
  letter-spacing: -.01em;
  line-height: 1.25;
  color: #fff;
}

.team__name,
.team__role {
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}

@media (hover: hover) {
  .team__item figure::after {
    opacity: 0;
  }

  .team__meta {
    opacity: 0;
    transform: scale(1.035);
  }

  .team__name,
  .team__role {
    opacity: 0;
    transform: translateY(12px);
  }

  .team__item:hover figure::after,
  .team__item:focus-within figure::after {
    opacity: 1;
  }

  .team__item:hover .team__meta,
  .team__item:focus-within .team__meta {
    opacity: 1;
    transform: none;
  }

  .team__item:hover .team__name,
  .team__item:hover .team__role,
  .team__item:focus-within .team__name,
  .team__item:focus-within .team__role {
    opacity: 1;
    transform: none;
  }

  .team__item:hover .team__role,
  .team__item:focus-within .team__role {
    transition-delay: .07s;
  }
}

/* ============================================================
   NEWS
   ============================================================ */
.news {
  position: relative;
  z-index: 0;
  background: var(--bone);
  padding-top: calc(var(--section-y) + var(--team-overlap));
  padding-bottom: var(--section-y);
}

.news__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 46px);
  align-items: center;
  padding-bottom: clamp(34px, 4.4vw, 56px);
}

.news__head .h2 {
  max-width: 10.5em;
}

.news__head p {
  max-width: 40ch;
  font-size: .95em;
}

.news__grid {
  display: grid;
  grid-template-columns: 2.08fr 1fr 1fr;
  gap: var(--gap);
}

.subscribe {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  background: var(--ink);
  color: var(--body-dark);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 46px);
}

.subscribe__title {
  color: #f0efec;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.28;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  max-width: 22ch;
}

.subscribe__note {
  font-size: .92em;
  max-width: 30ch;
  margin-top: -12px;
}

.subscribe__label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(240, 239, 236, .62);
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field input {
  flex: 1 1 50px;
  min-width: 0;
  height: 54px;
  padding: 0 24px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  transition: box-shadow .35s var(--ease);
}

.field input::placeholder {
  color: rgba(17, 24, 39, .62);
}

.field input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(199, 202, 193, .45);
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--sage);
  border-radius: var(--radius);
  padding: clamp(22px, 2.1vw, 30px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -34px rgba(17, 24, 39, .7);
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.post__title {
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.25;
  margin-bottom: .9em;
}

.post__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .45s var(--ease);
}

.post__title a:hover {
  background-size: 100% 1px;
}

.post__excerpt {
  font-size: .92em;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.post .link-more {
  margin-top: auto;
  align-self: flex-start;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bone);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(30px, 3vw, 44px);
  padding-block: clamp(48px, 6vw, 82px);
  border-top: 1px solid var(--line);
}

.footer__col p {
  font-size: .94em;
  max-width: 34ch;
}

.footer__col .brand {
  display: inline-block;
  margin-bottom: 18px;
}

.footer__h {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.footer__col a:not(.brand):not(.btn) {
  transition: color .3s var(--ease);
}

.footer__col a:not(.brand):not(.btn):hover {
  color: var(--navy);
}

.footer__phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--navy);
  margin-top: 6px;
}

.footer__links {
  display: grid;
  gap: 11px;
  font-size: .94em;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.socials a:hover {
  transform: translateY(-3px);
  background: var(--white);
}

.footer__form {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.footer__form input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color .35s var(--ease);
}

.footer__form input::placeholder {
  color: rgba(17, 24, 39, .45);
}

.footer__form input:focus {
  border-color: var(--navy);
  outline: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 12.5px;
  color: var(--body);
}

.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check__box {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  position: relative;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.check__box::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--bone);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease);
}

.check input:checked+.check__box {
  background: var(--ink);
  border-color: var(--ink);
}

.check input:checked+.check__box::after {
  transform: rotate(45deg) scale(1);
}

.check input:focus-visible+.check__box {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.footer__fine {
  padding-bottom: clamp(22px, 2.6vw, 34px);
  font-size: .82em;
  color: rgba(76, 76, 74, .8);
}

.footer__fine p {
  max-width: 84ch;
}

.footer__bar {
  background: var(--ink);
  color: rgba(240, 239, 236, .72);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px clamp(18px, 3vw, 40px);
  min-height: 68px;
  padding-block: 14px;
  font-size: .88em;
}

.footer-credit {
  color: rgba(240, 239, 236, .62);
}

.footer-credit a {
  color: rgba(240, 239, 236, .95);
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}

.footer-credit a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 190;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s, background-color .3s;
}

.to-top svg {
  width: 19px;
  height: 19px;
}

.to-top.is-in {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover {
  background: #fff;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

[data-delay="1"] {
  --d: 1;
}

[data-delay="2"] {
  --d: 2;
}

[data-delay="3"] {
  --d: 3;
}

[data-delay="4"] {
  --d: 4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  :root {
    --nav-h: 84px;
  }

  .nav__links {
    gap: 14px;
  }

  .nav__link {
    font-size: 14px;
  }

  .nav__phone {
    font-size: 14px;
  }
}

/* ---- tablet / burger takeover ---- */
@media (max-width: 1100px) {

  .nav__links,
  .nav__phone,
  .icon-btn {
    display: none;
  }

  .burger {
    display: grid;
  }

  .nav__cta {
    min-height: 46px;
    padding: 0 22px;
  }

  .news__grid {
    grid-template-columns: 1fr 1fr;
  }

  .subscribe {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {

  .hero__top,
  .split {
    grid-template-columns: 1fr;
  }

  .lede {
    max-width: 60ch;
  }

  .cases__head {
    grid-template-columns: 1fr;
  }

  .case {
    grid-template-columns: 1fr;
  }

  .case__body {
    padding-top: 0;
  }

  .news__head {
    grid-template-columns: 1fr;
  }

  .news__head p {
    max-width: 56ch;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 30px;
  }

  /* the source is 2.673:1 — too letterboxed once the column narrows */
  .video {
    aspect-ratio: 11 / 5;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 74px;
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotes__view {
    --cols: 2;
  }
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero__gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero__fig:nth-child(1),
  .hero__fig:nth-child(2),
  .hero__fig:nth-child(3),
  .hero__fig:nth-child(4) {
    aspect-ratio: 3 / 4;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(odd)+.stat {
    box-shadow: inset 1px 0 0 rgba(17, 24, 39, .12);
  }

  .stat:nth-child(3) {
    box-shadow: inset 0 1px 0 rgba(17, 24, 39, .12);
  }

  .stat:nth-child(4) {
    box-shadow: inset 1px 0 0 rgba(17, 24, 39, .12), inset 0 1px 0 rgba(17, 24, 39, .12);
  }

  .case__media {
    grid-template-columns: 1fr 1fr;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .quotes__view {
    --cols: 1;
  }

  .quotes__nav {
    width: 38px;
    height: 38px;
  }

  .video {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 18px;
  }

  .nav__cta {
    display: none;
  }

  .btn {
    min-height: 50px;
    padding: 0 22px;
    gap: 11px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cases__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* phone: newsletter controls fill the column so the submit is a full-width target */
  .field {
    flex-direction: column;
    align-items: stretch;
  }

  .field .btn {
    width: 100%;
    justify-content: center;
  }

  .footer__form .btn {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }

  .team {
    gap: 12px;
  }

  .attorneys__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .video {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 16px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  [data-parallax] {
    transform: none !important;
  }
}