/* ============================================================
   Jaffe, Hanle, Whisonant & Knight, P.C.
   Palette taken from the firm's own mark (#9B071A crimson on white)
   Display: Bodoni Moda  •  Body: Karla  •  Utility: Barlow Condensed
   ============================================================ */

/* ============================================================ FONTS */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-500.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-700.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-800.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-italic-500.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/karla-400.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/karla-500.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/karla-600.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/karla-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

/* ============================================================ TOKENS */
:root {
  --crimson: #9b071a;
  --crimson-dk: #6e0512;
  --crimson-lt: #c2303f;
  --ink: #14151a;
  --ink-2: #1f2128;
  --ink-3: #3a3d45;
  --stone: #edebe7;
  --stone-2: #f7f6f3;
  --paper: #ffffff;
  --rule: rgba(20, 21, 26, 0.14);
  --rule-lt: rgba(255, 255, 255, 0.16);

  --container-width: 95%;
  --container-max: 1840px;
  --container-pad: clamp(20px, 2.6vw, 45px);

  --f-display: "Bodoni Moda", Georgia, serif;
  --f-body: "Karla", system-ui, -apple-system, sans-serif;
  --f-util: "Barlow Condensed", "Karla", sans-serif;

  --nav-fz: 16px;
  --header-tel-fz: 22px;
  --hero-tel-fz: 24px;
  --btn-fz: 20px;

  /* Utility bar + header. Measured and rewritten by js/main.js. */
  --site-chrome-height: 144px;
  /* Hamburger takes over below this width. Mirrored by NAV_BREAKPOINT in js/main.js. */
  --nav-breakpoint: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-nav-open {
  overflow: hidden;
  /* Stand in for the scrollbar the lock removes, so the page doesn't jump. */
  padding-right: var(--scrollbar-width, 0px);
}

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

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

:focus-visible {
  outline: 2px solid var(--crimson-lt);
  outline-offset: 3px;
}

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

h1 {
  font-size: clamp(2.4rem, 3.5vw, 3.9rem);
}

h2 {
  font-size: clamp(1.95rem, 2.5vw, 2.9rem);
}

h3 {
  font-size: clamp(1.15rem, 1.35vw, 1.5rem);
  line-height: 1.25;
}

p {
  margin: 0 0 1.15em;
}

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

/* ============================================================ LAYOUT */
.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: clamp(76px, 7vw, 124px) 0;
}

.section--stone {
  background: var(--stone);
}

.section--plaster {
  background: var(--stone-2) url("../assets/images/bg-plaster.webp") center / cover no-repeat;
}

.section__head {
  max-width: 760px;
  margin: 0 0 clamp(42px, 4vw, 62px);
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head .lede {
  margin-top: 20px;
}

/* ============================================================ ICONS */
.sprite {
  display: none;
}

.icon {
  display: block;
  flex: none;
}

.icon--star {
  fill: currentColor;
}

.icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

/* ============================================================ TYPE HELPERS */
.eyebrow {
  font-family: var(--f-util);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.eyebrow::after {
  content: "";
  flex: 0 0 54px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow--light {
  color: #e2b9be;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::before {
  content: "";
  flex: 0 0 54px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.lede {
  font-size: 1.09rem;
  color: var(--ink-3);
}

.lede--spaced {
  margin-top: 20px;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--crimson);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(150px, 18vw);
  background: currentColor;
  opacity: 0.35;
}

/* ============================================================ BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  white-space: nowrap;
  font-family: var(--f-util);
  font-weight: 600;
  font-size: var(--btn-fz);
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 17px 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

.btn--primary {
  background: var(--crimson);
  color: #fff;
}

.btn--primary:hover {
  background: var(--crimson-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(110, 5, 18, 0.34);
}

.btn--sm {
  font-size: 15px;
  padding: 12px 26px;
  letter-spacing: 0.09em;
}

.btn--block {
  width: 100%;
}

/* ============================================================ UTILITY BAR */
.utility-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
}

.utility-bar__group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.utility-bar__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-util);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.utility-bar__item .icon {
  opacity: 0.75;
}

a.utility-bar__item:hover {
  color: #fff;
}

/* ============================================================ HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s ease;
}

.header.is-stuck {
  box-shadow: 0 10px 32px rgba(20, 21, 26, 0.11);
}

/* Sits behind the slide-in panel: overlay 1 < inner/panel 2 < open toggle 4. */
.header__overlay {
  display: none;
}

.header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 100px;
}

/* The mark sets at 50% of the first pass. At that size a single-line firm name would
   outrun the mark by 2x, so the lockup turns horizontal and the name sets in two lines. */
.header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
}

.header__logo-image {
  width: 134px;
  height: auto;
  max-width: none;
  flex-shrink: 0;
}

.header__logo-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 9.5px;
  line-height: 1.55;
  letter-spacing: 0.108em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 186px;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.9vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-item {
  flex-shrink: 0;
}

.header__nav-link {
  display: block;
  position: relative;
  flex-shrink: 0;
  padding: 8px 0;
  font-size: var(--nav-fz);
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--ink);
  white-space: nowrap;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--crimson);
  transition: right 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.header__nav-link:hover::after,
.header__nav-link[aria-current]::after {
  right: 0;
}

/* Phone + CTA live here only once the panel takes over. */
.header__nav-extras {
  display: none;
}

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

.header__tel {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--header-tel-fz);
  white-space: nowrap;
  flex-shrink: 0;
}

.header__tel:hover {
  color: var(--crimson);
}

.header__toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.header__toggle-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
}

.header__toggle-bar:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}

.header__toggle-bar:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}

.header.is-open .header__toggle-bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.header.is-open .header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__toggle-bar:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================================ HERO */
.hero {
  position: relative;
  overflow: hidden;
  /* No bottom padding: the cutout has to stand on the hero floor. */
  padding: clamp(24px, 4vw, 56px) 0 0;
  background: var(--ink) url("../assets/images/bg-hero.webp") center / cover no-repeat;
  height: calc(100vh - var(--site-chrome-height));
  height: calc(100dvh - var(--site-chrome-height));
  height: calc(100svh - var(--site-chrome-height));
  min-height: 620px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 78% at 72% 60%, rgba(155, 7, 26, 0.3) 0%, rgba(155, 7, 26, 0) 62%),
    linear-gradient(
      100deg,
      rgba(11, 12, 15, 0.96) 0%,
      rgba(11, 12, 15, 0.88) 34%,
      rgba(15, 16, 20, 0.52) 56%,
      rgba(15, 16, 20, 0.28) 100%
    );
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--crimson) 0 26%, var(--ink-2) 26% 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(100%, 640px);
  padding-right: clamp(0px, 2vw, 32px);
  color: #fff;
}

.hero__eyebrow {
  margin-bottom: 16px;
}

.hero__title {
  color: #fff;
  font-size: clamp(2.5rem, 3.55vw, 4.05rem);
  text-wrap: balance;
}

.hero__subtitle {
  font-family: var(--f-util);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #e7c9cd;
  margin: 20px 0 0;
}

.hero__rule {
  width: 96px;
  height: 2px;
  background: var(--crimson);
  margin: 26px 0;
}

.hero__tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--hero-tel-fz);
  color: #fff;
  letter-spacing: 0.01em;
}

.hero__tel-icon {
  color: var(--crimson-lt);
}

.hero__tel-label {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}

.hero__tel:hover .hero__tel-label {
  border-color: var(--crimson-lt);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Direct child of .hero, bottom-anchored, so the group stands on the hero floor.
   The cutout's own base fades to transparent, so it blends into the hero floor. */
.hero__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 70%;
  height: 88%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
}

/* ============================================================ RECOGNITION STRIP
   Badges supplied white-on-transparent and recoloured to the brand crimson by
   alpha-channel masking. Heights are optically balanced by aspect ratio (0.99 to
   4.25) rather than set uniformly. ACCOLADE SLOT 3 was absent from the upload. */
.accolades {
  --accolade-scale: 1;
  background: var(--stone-2);
  border-bottom: 1px solid var(--rule);
}

.accolades__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  min-height: 158px;
}

.accolades__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
  min-height: 112px;
  border-left: 1px solid var(--rule);
}

.accolades__item:first-child {
  border-left: 0;
}

.accolades__item--advocates {
  --accolade-height: 78.2px;
}

.accolades__item--trial-lawyers {
  --accolade-height: 59.1px;
}

.accolades__item--super-lawyers {
  --accolade-height: 42.5px;
}

.accolades__item--justice {
  --accolade-height: 49.4px;
}

.accolades__image {
  height: calc(var(--accolade-height) * var(--accolade-scale));
  width: auto;
  max-width: 100%;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.accolades__item:hover .accolades__image {
  opacity: 1;
}

/* ============================================================ INTRO */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(44px, 5vw, 86px);
  align-items: center;
}

.intro__figure {
  position: relative;
}

.intro__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
}

.intro__figure::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -22px;
  top: -22px;
  width: 58%;
  height: 58%;
  border-left: 2px solid var(--crimson);
  border-top: 2px solid var(--crimson);
}

.intro__figure::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -22px;
  bottom: -22px;
  width: 58%;
  height: 58%;
  border-right: 2px solid var(--crimson);
  border-bottom: 2px solid var(--crimson);
}

.intro__deck {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.18rem, 1.5vw, 1.6rem);
  line-height: 1.35;
  color: var(--crimson-dk);
  margin: 16px 0 0;
}

.intro__text--spaced {
  margin-top: 22px;
}

.intro__subtitle {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.34rem;
  line-height: 1.3;
  margin: 34px 0 14px;
  color: var(--ink);
}

.callout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 26px 30px;
  background: var(--ink);
  color: #fff;
  border-left: 4px solid var(--crimson);
}

.callout__icon {
  color: var(--crimson-lt);
  margin-top: 4px;
}

.callout__text {
  font-size: 1.06rem;
  margin: 0;
}

.callout__link {
  color: #fff;
  border-bottom: 1px solid var(--crimson-lt);
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================ PRACTICE AREAS */
.practice__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 1.8vw, 30px);
}

.practice__card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.practice__image {
  aspect-ratio: 10 / 13;
  width: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.practice__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 15, 0.06) 0%,
    rgba(11, 12, 15, 0.52) 52%,
    rgba(11, 12, 15, 0.93) 100%
  );
  transition: background 0.45s ease;
}

.practice__card:hover .practice__image {
  transform: scale(1.06);
}

.practice__card:hover::after {
  background: linear-gradient(
    180deg,
    rgba(110, 5, 18, 0.16) 0%,
    rgba(60, 4, 12, 0.62) 52%,
    rgba(20, 21, 26, 0.95) 100%
  );
}

.practice__body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 28px 28px;
  color: #fff;
}

.practice__label {
  display: block;
  font-family: var(--f-util);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e2b9be;
  margin-bottom: 10px;
}

.practice__title {
  color: #fff;
}

.practice__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--f-util);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.practice__more::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}

.practice__card:hover .practice__more::after {
  width: 44px;
}

.practice__foot {
  margin-top: clamp(34px, 3vw, 48px);
  text-align: center;
}

/* ============================================================ CASE RESULTS */
.section--cases {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.section--cases::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/bg-cases.webp") center / cover no-repeat;
  opacity: 0.55;
}

.section--cases::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 20, 0.86) 0%, rgba(15, 16, 20, 0.74) 100%);
}

.section--cases .container {
  position: relative;
  z-index: 2;
}

.section--cases h2 {
  color: #fff;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cases__cell {
  padding: clamp(28px, 2.6vw, 42px) clamp(22px, 2vw, 34px);
  border-left: 1px solid var(--rule-lt);
}

.cases__cell:first-child {
  border-left: 0;
  padding-left: 0;
}

.cases__cell:last-child {
  padding-right: 0;
}

.cases__icon {
  color: var(--crimson-lt);
  margin: 0 0 18px;
}

.cases__verdict {
  font-family: var(--f-util);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.15vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  line-height: 1.05;
  margin: 0;
}

.cases__rule {
  width: 46px;
  height: 2px;
  background: var(--crimson);
  margin: 16px 0 0;
}

.cases__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  margin: 18px 0 0;
}

/* ============================================================ WHAT SETS US APART */
.values__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(44px, 5vw, 90px);
  align-items: start;
}

.values__aside .btn {
  margin-top: 28px;
}

.values__stat {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}

.values__stat-number {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 4.4vw, 4.6rem);
  line-height: 0.92;
  color: var(--crimson);
}

.values__stat-label {
  font-family: var(--f-util);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--ink-3);
}

.values__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.values__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.values__icon {
  color: var(--crimson);
  margin-top: 5px;
}

.values__title {
  margin-bottom: 9px;
}

.values__text {
  font-size: 16.5px;
  color: var(--ink-3);
  margin: 0;
}

/* ============================================================ TESTIMONIAL */
.section--testimonial {
  background: var(--crimson-dk);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.testimonial__ghost {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.testimonial__inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.testimonial__title {
  color: #fff;
  font-size: clamp(1.5rem, 1.9vw, 2.1rem);
}

.testimonial__quote {
  margin: 34px 0 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.28rem, 2.05vw, 2.1rem);
  line-height: 1.42;
  color: #fff;
  text-wrap: balance;
}

.testimonial__name {
  margin-top: 30px;
  font-family: var(--f-util);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
  color: #f0cdd1;
}

.testimonial__divider {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================ CONTACT */
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(44px, 5vw, 84px);
  align-items: start;
}

.contact__details {
  margin-top: 34px;
  display: grid;
  gap: 24px;
}

.contact__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.contact__icon {
  color: var(--crimson);
  margin-top: 4px;
}

.contact__label {
  font-family: var(--f-util);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 5px;
}

.contact__value {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.contact__value a:hover {
  color: var(--crimson);
}

/* ============================================================ FORM */
.form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--crimson);
  padding: clamp(30px, 3vw, 48px);
  box-shadow: 0 26px 60px rgba(20, 21, 26, 0.09);
}

.form__title {
  margin-bottom: 8px;
}

.form__intro {
  font-size: 15.5px;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.form__field {
  margin-bottom: 18px;
}

.form__label {
  display: block;
  font-family: var(--f-util);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--stone-2);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0 15px;
  height: 40px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 17px, calc(100% - 14px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.form__textarea {
  height: 120px;
  padding: 12px 15px;
  resize: vertical;
  line-height: 1.6;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  background: #fff;
  border-color: var(--crimson);
  outline: none;
}

.form__submit {
  margin-top: 8px;
}

.form__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ============================================================ FOOTER */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 15.5px;
}

.footer__main {
  padding: clamp(56px, 5vw, 84px) 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  gap: clamp(34px, 4vw, 70px);
}

.footer__logo {
  width: 238px;
  margin-bottom: 9px;
}

.footer__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.132em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}

.footer__text {
  max-width: 420px;
}

.footer__heading {
  font-family: var(--f-util);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__link:hover {
  color: #fff;
}

.footer__address {
  font-style: normal;
  line-height: 1.75;
}

.footer__tel {
  display: block;
  margin-top: 16px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}

.footer__tel:hover {
  color: #fff;
}

.footer__bar {
  border-top: 1px solid var(--rule-lt);
  padding: 24px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer__legal {
  margin: 0;
  max-width: 820px;
  line-height: 1.65;
}

/* ============================================================ MOTION */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero__content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.28s;
}

.hero__content > *:nth-child(4) {
  animation-delay: 0.36s;
}

.hero__content > *:nth-child(5) {
  animation-delay: 0.44s;
}

.hero__content > *:nth-child(6) {
  animation-delay: 0.52s;
}

.hero__visual {
  opacity: 0;
  animation: fadein 1.15s ease 0.3s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1700px) {
  .header__logo-image {
    width: 124px;
  }

  .hero__visual {
    width: 68%;
  }
}

@media (max-width: 1480px) {
  :root {
    --header-tel-fz: 19px;
  }

  .header__inner {
    min-height: 104px;
  }

  .header__logo-image {
    width: 112px;
  }

  .header__nav-list {
    gap: 18px;
  }

  .hero__content {
    max-width: min(100%, 520px);
  }

  .hero__visual {
    width: 64%;
  }

  .btn {
    padding: 15px 30px;
  }
}

/* Step the nav and header CTA down so nothing collides before the hamburger lands. */
@media (max-width: 1360px) {
  :root {
    --nav-fz: 15px;
    --header-tel-fz: 18px;
  }

  .header__actions .btn--sm {
    font-size: 13.5px;
    padding: 11px 21px;
  }
}

@media (max-width: 1260px) {
  :root {
    --nav-fz: 14px;
    --header-tel-fz: 17px;
  }

  .header__inner {
    gap: 20px;
  }

  .header__nav-list {
    gap: 14px;
  }

  .header__actions {
    gap: 14px;
  }

  .header__actions .btn--sm {
    font-size: 12.5px;
    padding: 10px 18px;
    letter-spacing: 0.06em;
  }
}

/* ---------- hamburger takes over ---------- */
@media (max-width: 1200px) {
  :root {
    --nav-fz: 17px;
  }

  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(11, 12, 15, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
  }

  .header.is-open .header__overlay {
    opacity: 1;
    visibility: visible;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(360px, 88vw);
    /* Top padding clears the fixed toggle so the X never sits on HOME. */
    padding: 84px 28px 40px;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    box-shadow: -18px 0 44px rgba(20, 21, 26, 0.16);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.38s;
  }

  .header.is-open .header__nav {
    transform: none;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__nav-link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .header__nav-link::after {
    display: none;
  }

  .header__nav-extras {
    display: grid;
    gap: 18px;
    margin-top: 30px;
  }

  .header__nav-extras .header__tel {
    font-size: 24px;
  }

  /* Hide the whole wrapper, not just its children: an empty flex item would
     still take a share of space-between and pull the toggle off the edge.
     The phone and CTA it holds are repeated in .header__nav-extras. */
  .header__actions {
    display: none;
  }

  .header__toggle {
    display: block;
  }

  .header.is-open .header__toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4;
  }

  .hero__content {
    max-width: min(100%, 470px);
  }

  .hero__visual {
    width: 65%;
    right: -3%;
  }

  .accolades {
    --accolade-scale: 0.86;
  }

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

  .accolades__item:nth-child(3) {
    border-left: 0;
  }

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

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

  .cases__cell:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .cases__cell:nth-child(2) {
    padding-right: 0;
  }
}

/* ---------- hero stacks ---------- */
@media (max-width: 1023px) {
  .header__logo-name {
    font-size: 9px;
    letter-spacing: 0.09em;
    max-width: 172px;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: clamp(52px, 7vw, 74px) 0 0;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(11, 12, 15, 0.95) 0%,
      rgba(11, 12, 15, 0.86) 58%,
      rgba(15, 16, 20, 0.72) 100%
    );
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__content {
    max-width: 100%;
    padding-right: 0;
  }

  .hero__visual {
    position: relative;
    width: auto;
    height: auto;
    right: auto;
    margin: 38px auto -1px;
    justify-content: center;
  }

  .hero__image {
    height: auto;
    width: 100%;
    max-width: 640px;
  }

  .intro__grid,
  .values__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .intro__image {
    aspect-ratio: 16 / 11;
  }

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

@media (max-width: 980px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding: 15px 28px;
    font-size: clamp(15px, 2.1vw, var(--btn-fz));
  }

  .btn--sm {
    font-size: 14px;
    padding: 12px 22px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: clamp(44px, 8vw, 64px);
  }

  .hero__content {
    padding-right: 0;
    padding-bottom: 4px;
  }
}

@media (max-width: 720px) {
  :root {
    --btn-fz: 17px;
    --hero-tel-fz: 21px;
  }

  body {
    font-size: 16px;
  }

  .header__inner {
    min-height: 80px;
    gap: 12px;
  }

  .header__logo-image {
    width: 98px;
  }

  .header__logo-name {
    font-size: 7.6px;
    letter-spacing: 0.05em;
    max-width: 112px;
    padding-left: 10px;
  }

  .utility-bar__inner {
    justify-content: center;
  }

  .utility-bar__item--address {
    display: none;
  }

  /* The eyebrow's trailing rule strands itself once the label wraps. */
  .eyebrow {
    flex-wrap: wrap;
  }

  .eyebrow::after,
  .eyebrow--center::before {
    display: none;
  }

  .accolades {
    --accolade-scale: 0.74;
  }

  .accolades__inner {
    grid-template-columns: repeat(2, 1fr);
    min-height: 0;
  }

  .accolades__item {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 24px 14px;
  }

  .accolades__item:nth-child(-n + 2) {
    border-top: 0;
  }

  .accolades__item:nth-child(odd) {
    border-right: 1px solid var(--rule);
  }

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

  .practice__image {
    aspect-ratio: 16 / 10;
  }

  .practice__foot .btn,
  .values__aside .btn {
    width: 100%;
  }

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

  .cases__cell {
    border-left: 0;
    border-top: 1px solid var(--rule-lt);
    padding: 28px 0;
  }

  .cases__cell:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .hero__actions {
    gap: 18px;
  }

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

  .intro__figure::before,
  .intro__figure::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .btn {
    font-size: 16px;
    padding: 14px 24px;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .utility-bar__group > span.utility-bar__item {
    display: none;
  }
}
