/* ============================================================
   Douglas W. Atkinson, Attorney at Law — landing page
   Type: Zilla Slab (display) / Epilogue (text)
   Brand orange #EC8A42 from firm logo artwork
   ============================================================ */

:root {
  --ink: #101419;
  --ink-2: #171d24;
  --ink-3: #1f262e;
  --hairline: #2c343d;
  --brand: #ec8a42;
  --brand-deep: #c0682a;
  --brand-soft: #f6c293;
  --bone: #f1f0ee;
  --paper: #ffffff;
  --body: #4a5158;
  --heading: #151a20;

  --container-max: 1860px;
  --container-pad: 45px;
  --nav-breakpoint: 1200px;
  --site-chrome-height: 152px;

  --nav-size: clamp(14px, 1.05vw, 16px);
  --hero-phone: 24px;
  --cta-size: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Zilla Slab", Georgia, serif;
  color: var(--heading);
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}

.eyebrow--light {
  color: var(--brand);
}

.lede {
  font-size: 18px;
  line-height: 1.75;
}

/* ---------------------------------------------------- utility bar */
.topbar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  font-size: 13.5px;
  color: #98a2ad;
  letter-spacing: 0.02em;
}

.topbar__inner strong {
  color: #d9dee4;
  font-weight: 500;
}

.topbar__loc {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}

/* ---------------------------------------------------------- header */
.header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header__overlay {
  display: none;
}

.header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 40px);
  min-height: 110px;
}

.header__logo {
  flex-shrink: 0;
  display: block;
}

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

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

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

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

.header__nav-link {
  display: block;
  flex-shrink: 0;
  font-size: var(--nav-size);
  font-weight: 500;
  color: #e3e7eb;
  white-space: nowrap;
  padding: 8px 0;
  position: relative;
  transition: color 0.18s ease;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.header__nav-link:hover {
  color: #fff;
}

.header__nav-link:hover::after,
.header__nav-link[aria-current]::after {
  transform: scaleX(1);
}

.header__nav-link[aria-current] {
  color: #fff;
}

.header__nav-extras {
  display: none;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 18px);
  flex-shrink: 0;
  padding-left: clamp(18px, 2vw, 34px);
  border-left: 1px solid var(--hairline);
}

.header__phone {
  font-family: "Zilla Slab", serif;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__phone span {
  display: block;
  font-family: "Epilogue", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.4;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 3;
}

.header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header.is-open .header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.header.is-open .header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Epilogue", sans-serif;
  font-size: var(--cta-size);
  font-weight: 600;
  line-height: 1.35;
  padding: 19px 34px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: var(--brand);
  color: #14181d;
  letter-spacing: 0.005em;
  max-width: 100%;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 26px -14px rgba(236, 138, 66, 0.9);
}

.btn:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.btn--sm {
  font-size: clamp(14px, 1.1vw, 16px);
  padding: 15px 28px;
  flex-shrink: 0;
}

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

.btn--dark:hover {
  background: var(--ink-3);
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink) center / cover no-repeat;
  background-image: url("../assets/images/bg-hero.jpg");
  padding: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px) 0;
  height: calc(100vh - var(--site-chrome-height));
  height: calc(100dvh - var(--site-chrome-height));
  height: calc(100svh - var(--site-chrome-height));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(11, 14, 19, 0.97) 0%,
    rgba(12, 16, 21, 0.92) 40%,
    rgba(14, 18, 24, 0.55) 66%,
    rgba(14, 18, 24, 0.42) 100%
  );
  z-index: 0;
}

.hero__wedge {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(58%, 980px);
  pointer-events: none;
  z-index: 1;
}

.hero__wedge svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.hero__content {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: min(100%, 640px);
  width: 100%;
  padding: 0 clamp(0px, 1vw, 12px) clamp(40px, 6vh, 74px);
}

.hero__title {
  font-size: clamp(38px, 3.7vw, 62px);
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 600;
  color: var(--brand);
  margin: 16px 0 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.hero__rule {
  width: 74px;
  height: 3px;
  background: var(--brand);
  margin: 26px 0 22px;
}

.hero__text {
  color: #c3cbd3;
  font-size: 17px;
  line-height: 1.75;
  max-width: 560px;
}

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

.hero__phone {
  font-family: "Zilla Slab", serif;
  font-size: var(--hero-phone);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.hero__phone small {
  display: block;
  font-family: "Epilogue", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d97a2;
  line-height: 1.5;
}

.hero__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

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

/* ------------------------------------------------------- accolades */
.creds {
  background: var(--ink-2);
  border-top: 1px solid var(--hairline);
}

.creds__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.creds__item {
  padding: 34px;
  border-right: 1px solid var(--hairline);
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creds__item:first-child {
  padding-left: 0;
}

.creds__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.creds__item img {
  width: auto;
  opacity: 0.92;
}

.creds__item:nth-child(1) img {
  height: 76px;
}

.creds__item:nth-child(2) img {
  height: 64px;
}

.creds__item:nth-child(3) img {
  height: 34px;
}

.creds__item:nth-child(4) img {
  height: 52px;
}

/* ------------------------------------------------- section scaffold */
.section {
  padding: 104px 0;
}

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

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

.section__head {
  max-width: 760px;
}

.section__title {
  font-size: clamp(30px, 2.6vw, 44px);
}

.section__subtitle {
  font-family: "Epilogue", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 14px 0 0;
  letter-spacing: 0.01em;
}

.section--ink .section__title {
  color: #fff;
}

.section--ink .section__subtitle {
  color: var(--brand);
}

/* ------------------------------------------------------ about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 70px;
  align-items: start;
}

.about__media {
  position: relative;
}

.about__image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: 60% 30%;
}

.about__stamp {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 44px;
  background: var(--brand);
  color: #14181d;
  padding: 24px 28px;
}

.about__stamp b {
  display: block;
  font-family: "Zilla Slab", serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
}

.about__stamp span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

.about__title {
  font-size: clamp(30px, 2.6vw, 44px);
}

.about__sub {
  font-family: "Epilogue", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 14px 0 0;
}

.about__body {
  margin-top: 26px;
  display: grid;
  gap: 20px;
  max-width: 74ch;
}

.about__cta {
  margin-top: 34px;
  border-left: 3px solid var(--brand);
  background: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.about__cta p {
  font-family: "Zilla Slab", serif;
  font-size: 20px;
  line-height: 1.45;
  color: var(--heading);
  max-width: 52ch;
}

/* ------------------------------------------------------- practice */
.practice {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 52px;
}

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

.practice__image {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.practice__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 20, 25, 0) 32%,
    rgba(16, 20, 25, 0.62) 62%,
    rgba(13, 17, 22, 0.95) 100%
  );
}

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

.practice__label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
}

.practice__title {
  font-size: 22px;
  color: #fff;
  line-height: 1.2;
}

.practice__desc {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-soft);
  margin-top: 10px;
}

.practice__foot {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.practice__note {
  font-size: 16px;
  color: #6b737b;
}

/* --------------------------------------------------- case results */
.results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--hairline);
}

.results__item {
  padding: 44px 36px 40px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.results__item:first-child {
  padding-left: 0;
}

.results__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.results__verdict {
  font-family: "Zilla Slab", serif;
  font-size: clamp(24px, 1.9vw, 31px);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
}

.results__charge {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.results__more {
  margin-top: auto;
  padding-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: #9ba5af;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.18s ease;
}

.results__more:hover {
  color: #fff;
}

.results__more i {
  width: 26px;
  height: 1px;
  background: currentColor;
  display: block;
}

/* -------------------------------------------------------- values */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 52px;
}

.values__item {
  border-top: 3px solid var(--brand);
  padding-top: 26px;
}

.values__title {
  font-size: 21px;
  line-height: 1.25;
}

.values__text {
  margin-top: 12px;
  font-size: 16px;
  color: #5b636b;
}

/* ---------------------------------------------------- testimonial */
.testimonial {
  position: relative;
  background: var(--ink) center / cover no-repeat;
  background-image: url("../assets/images/bg-testimonial.jpg");
}

.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 20, 0.86);
}

.testimonial__inner {
  position: relative;
  padding: 96px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 60px;
  align-items: start;
}

.testimonial__mark {
  font-family: "Zilla Slab", serif;
  font-size: 120px;
  line-height: 0.7;
  color: var(--brand);
  opacity: 0.9;
}

.testimonial__heading {
  color: #fff;
  font-size: clamp(28px, 2.3vw, 38px);
  margin-top: 26px;
}

.testimonial__quote {
  font-family: "Zilla Slab", serif;
  font-size: clamp(21px, 1.7vw, 27px);
  line-height: 1.5;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.testimonial__body {
  margin-top: 24px;
  color: #b9c1c9;
  font-size: 17px;
  line-height: 1.8;
}

.testimonial__who {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.testimonial__stars {
  display: flex;
  gap: 5px;
  margin-bottom: 22px;
}

.testimonial__stars svg {
  width: 19px;
  height: 19px;
  fill: var(--brand);
}

/* ---------------------------------------------------------- contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 70px;
  align-items: start;
}

.contact__title {
  font-size: clamp(30px, 2.5vw, 42px);
}

.contact__lede {
  margin-top: 20px;
  max-width: 46ch;
}

.contact__facts {
  margin-top: 36px;
  display: grid;
  gap: 0;
}

.contact__fact {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #dcdcd9;
}

.contact__fact:last-child {
  border-bottom: 1px solid #dcdcd9;
}

.contact__fact-key {
  flex: 0 0 108px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c9299;
  padding-top: 3px;
}

.contact__fact-value {
  font-family: "Zilla Slab", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.45;
}

.form {
  background: #fff;
  border: 1px solid #e2e2df;
  padding: 40px;
}

.form__title {
  font-size: 24px;
}

.form__note {
  margin-top: 10px;
  font-size: 15px;
  color: #6e767e;
}

.form__grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7c838a;
}

.form__input,
.form__select {
  height: 40px;
  width: 100%;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--heading);
  background: #f7f7f6;
  border: 1px solid #dededb;
  border-radius: 2px;
}

.form__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8c9299 50%),
    linear-gradient(135deg, #8c9299 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 17px,
    calc(100% - 14px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form__textarea {
  height: 120px;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--heading);
  background: #f7f7f6;
  border: 1px solid #dededb;
  border-radius: 2px;
  resize: vertical;
  line-height: 1.6;
}

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

.form__submit {
  width: 100%;
  margin-top: 26px;
}

.form__fine {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #8c9299;
}

/* -------------------------------------------------------- footer */
.footer {
  background: var(--ink);
  color: #98a2ad;
  padding: 78px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}

.footer__logo {
  width: 300px;
  max-width: 100%;
}

.footer__blurb {
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 44ch;
}

.footer__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  font-family: "Epilogue", sans-serif;
  margin-bottom: 22px;
}

.footer__nav {
  display: grid;
  gap: 13px;
  font-size: 15.5px;
}

.footer__link:hover {
  color: var(--brand);
}

.footer__addr {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.8;
}

.footer__addr b {
  display: block;
  font-family: "Zilla Slab", serif;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer__addr a {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 0 30px;
  font-size: 13.5px;
  color: #727c87;
}

.footer__bottom p {
  max-width: 70ch;
}

/* ------------------------------------------------------ responsive */

/* Scale nav/CTA before hamburger */
@media (max-width: 1500px) {
  :root {
    --nav-size: 15px;
    --cta-size: 18px;
  }

  .header__nav-list {
    gap: 22px;
  }

  .header__logo img {
    width: 176px;
  }
}

@media (max-width: 1320px) {
  :root {
    --container-pad: 32px;
    --nav-size: 14px;
  }

  .header__inner {
    min-height: 96px;
    gap: 20px;
  }

  .header__nav-list {
    gap: 16px;
  }

  .header__cta {
    padding-left: 18px;
    gap: 12px;
  }

  .header__phone {
    font-size: 18px;
  }

  .btn {
    padding: 16px 26px;
  }

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

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

  .hero__visual {
    width: 48%;
  }

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

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

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

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

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

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

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__image {
    height: 460px;
  }

  .testimonial__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Hamburger / slide-in panel — below 1200px */
@media (max-width: 1200px) {
  .header__cta {
    display: none;
  }

  .header__toggle {
    display: inline-flex;
  }

  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(8, 10, 14, 0.55);
  }

  .header__overlay[hidden] {
    display: none;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    margin: 0;
    padding: 84px 28px 40px;
    background: var(--ink-2);
    border-left: 1px solid var(--hairline);
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
  }

  .header.is-open .header__nav {
    transform: translateX(0);
    visibility: visible;
  }

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

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

  .header__nav-link {
    font-size: 17px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .header__nav-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 28px;
  }

  .header__phone--panel {
    font-size: 22px;
  }
}

@media (max-width: 980px) {
  .btn {
    white-space: normal;
    font-size: 17px;
    padding: 16px 24px;
  }

  .section {
    padding: 72px 0;
  }

  .hero__wedge {
    width: 100%;
    opacity: 0.55;
  }

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

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: calc(100svh - var(--site-chrome-height));
    padding: clamp(28px, 5vw, 40px) clamp(16px, 4vw, 24px) 0;
    display: flex;
    flex-direction: column;
  }

  .hero__inner {
    height: auto;
    flex: 0 0 auto;
  }

  .hero__content {
    max-width: 100%;
    padding: clamp(20px, 4vw, 40px) 0 clamp(24px, 4vw, 36px);
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: 420px;
    margin-top: auto;
  }

  .hero__image {
    height: min(420px, 55vh);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --container-pad: 22px;
    --cta-size: 17px;
  }

  body {
    font-size: 16px;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 0;
    font-size: 12.5px;
  }

  .header__logo img {
    width: 132px;
  }

  .header__inner {
    min-height: 80px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__title {
    font-size: 33px;
  }

  .practice,
  .results,
  .values,
  .creds__inner,
  .form__grid {
    grid-template-columns: 1fr;
  }

  .results__item {
    padding: 32px 0;
    border-right: 0;
  }

  .creds__item {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    min-height: 0;
  }

  .creds__item:last-child {
    border-bottom: 0;
  }

  .form {
    padding: 26px;
  }

  .about__stamp {
    right: 0;
  }

  .testimonial__inner {
    padding: 64px 0;
  }
}

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

  .practice__card:hover .practice__image {
    transform: none;
  }
}
