/* ===============================================================
   THE VOORHIES LAW FIRM - homepage
   Leaders Marketing | design system: "Ricky style"
   Type pairing: Bodoni Moda (display) / Jost (body + utility)
   Palette derived from firm logo: gold #B0A67C
   =============================================================== */

:root {
  --navy-900: #0a1523;
  --navy-800: #0c1826;
  --navy: #122a40;
  --navy-600: #1b3450;
  --gold: #b0a67c;
  --gold-lt: #cfc7a5;
  --gold-dk: #8e855e;
  --bone: #f5f3ee;
  --bone-2: #eae6dd;
  --ink: #1a2331;
  --slate: #4e5866;
  --line: rgba(176, 166, 124, 0.3);
  --container-max: 1320px;
  --container-pad: 45px;
  --nav-breakpoint: 1200px;
  --site-chrome-height: 140px;
  --ff-display: "Bodoni Moda", "Times New Roman", serif;
  --ff-body: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body.body--nav-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow__rule {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

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

.section-head {
  max-width: 760px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__title {
  font-size: clamp(30px, 2.5vw, 46px);
  margin-top: 18px;
}

.section-head--dark .section-head__title {
  color: #fff;
}

.rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 22px 0 0;
}

.section-head--center .rule {
  margin-inline: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  padding: 19px 38px;
  border-radius: 999px;
  background: var(--gold);
  color: #0a1523;
  border: 1px solid var(--gold);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}

.btn:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
}

.btn--ghost:hover {
  background: var(--gold);
  color: #0a1523;
  border-color: var(--gold);
}

.btn--sm {
  font-size: 16px;
  padding: 14px 28px;
}

.text-link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 5px;
  transition:
    color 0.3s ease,
    gap 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.text-link:hover {
  color: var(--gold-dk);
}

/* ---------- header ---------- */
.header {
  background: var(--navy-900);
  position: relative;
  z-index: 40;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 40px);
  padding-block: 24px;
}

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

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

.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}

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

.header__address {
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__phone {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__phone:hover {
  color: var(--gold);
}

.header__phone-icon {
  width: 15px;
  height: 15px;
  fill: var(--gold);
  flex: none;
}

.header__cta {
  flex-shrink: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  padding: clamp(11px, 0.9vw, 14px) clamp(18px, 1.6vw, 28px);
}

.header__nav {
  display: block;
}

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

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

.header__nav-link {
  position: relative;
  display: block;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  padding-bottom: 6px;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.35s ease;
}

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

.header__nav-link:hover::after,
.header__nav-item--active .header__nav-link::after {
  width: 100%;
}

.header__nav-extras {
  display: none;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(176, 166, 124, 0.4);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 60;
}

.header__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

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

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

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

.header__overlay {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900) url("../assets/images/bg-hero.webp") center / cover
    no-repeat;
  border-bottom: 1px solid rgba(176, 166, 124, 0.22);
  padding: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px) 0;
  overflow: hidden;
  height: calc(100vh - var(--site-chrome-height));
  height: calc(100dvh - var(--site-chrome-height));
  height: calc(100svh - var(--site-chrome-height));
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: 0;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(100%, 640px);
  width: min(100%, 55%);
  padding-inline: clamp(0px, 1vw, 8px);
  padding-block: clamp(12px, 2vw, 32px);
}

.hero__title {
  font-size: clamp(34px, 3.65vw, 55px);
  color: #fff;
  margin-top: 22px;
  letter-spacing: -0.015em;
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-lt);
  margin-top: 18px;
  letter-spacing: 0.005em;
  line-height: 1.45;
}

.hero__text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.74);
  margin-top: 20px;
  max-width: 585px;
  line-height: 1.75;
}

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

.hero__phone {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.hero__phone:hover {
  color: var(--gold);
}

.hero__phone-icon {
  width: 17px;
  height: 17px;
  fill: var(--gold);
  flex: none;
}

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

.hero__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 118%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(176, 166, 124, 0.2),
    rgba(176, 166, 124, 0) 70%
  );
  pointer-events: none;
}

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

/* ---------- accolades ---------- */
.accolades {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accolades__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 34px;
}

.accolades__label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  max-width: 150px;
  line-height: 1.6;
  flex: none;
}

.accolades__row {
  display: flex;
  align-items: center;
  gap: 54px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.accolades__badge {
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.accolades__badge:hover {
  opacity: 1;
}

.accolades__badge--million {
  height: 84px;
}

.accolades__badge--trial {
  height: 70px;
}

.accolades__badge--super {
  height: 36px;
}

.accolades__badge--aaj {
  height: 58px;
}

/* ---------- about ---------- */
.about {
  padding-block: 112px;
  background: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 78px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__image {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: 52% 42%;
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(176, 166, 124, 0.55);
  pointer-events: none;
}

.about__stat {
  position: absolute;
  right: -46px;
  bottom: -46px;
  background: var(--navy-900);
  padding: 32px 40px 34px;
  border-top: 3px solid var(--gold);
  min-width: 250px;
}

.about__stat-value {
  font-family: var(--ff-display);
  font-size: 46px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.about__stat-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.about__title {
  font-size: clamp(28px, 2.4vw, 43px);
  margin-top: 18px;
}

.about__body p {
  margin-top: 24px;
  color: var(--slate);
}

.about__sign {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--bone-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.about__who-name {
  display: block;
  font-family: var(--ff-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
}

.about__who-role {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

/* ---------- practice areas ---------- */
.practice {
  padding-block: 108px;
  background: var(--bone);
  position: relative;
  overflow: hidden;
}

.practice::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../assets/images/bg-practice.webp") center / cover no-repeat;
  opacity: 0.16;
  filter: grayscale(1) contrast(0.7) brightness(1.12);
}

.practice > .container {
  position: relative;
}

.practice .section-head {
  margin-bottom: 56px;
}

.practice__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.practice-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 44px -28px rgba(10, 21, 35, 0.42);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(10, 21, 35, 0.55);
}

.practice-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 760 / 560;
  background: var(--navy);
}

.practice-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.practice-card:hover .practice-card__image {
  transform: scale(1.06);
}

.practice-card__body {
  padding: 28px 28px 30px;
  border-top: 3px solid var(--gold);
}

.practice-card__title {
  font-size: 23px;
  line-height: 1.2;
  min-height: 2.4em;
}

.practice-card__link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

.practice-card__link-rule {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.practice-card:hover .practice-card__link-rule {
  width: 38px;
}

/* ---------- case results ---------- */
.results {
  background: var(--navy-900);
  padding-block: 104px;
  color: #fff;
  position: relative;
}

.results::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 20% 0%,
    rgba(176, 166, 124, 0.13),
    transparent 58%
  );
}

.results > .container {
  position: relative;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.results__item {
  padding: 44px 34px 40px;
  border-right: 1px solid var(--line);
}

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

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

.results__amount {
  font-family: var(--ff-display);
  font-size: clamp(32px, 2.9vw, 44px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.results__kind {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.results__link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}

.results__link:hover {
  color: var(--gold);
}

.results__note {
  margin-top: 46px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
  border-left: 2px solid var(--line);
  padding-left: 18px;
  max-width: 760px;
}

/* ---------- values ---------- */
.values {
  padding-block: 110px;
  background: #fff;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px;
  margin-top: 58px;
}

.values__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 22px;
}

.values__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-dk);
  fill: none;
  stroke-width: 1.4;
}

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

.values__text {
  margin-top: 13px;
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
}

/* ---------- testimonial ---------- */
.testimonial {
  background: var(--navy-900) url("../assets/images/bg-testimonial.webp") center /
    cover no-repeat;
  padding-block: 110px;
  color: #fff;
  text-align: center;
}

.testimonial__title {
  font-size: clamp(28px, 2.4vw, 42px);
  color: #fff;
  margin-top: 18px;
}

.testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
}

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

.testimonial__quote {
  margin: 30px auto 0;
  max-width: 1000px;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(21px, 1.85vw, 29px);
  line-height: 1.6;
  color: #fff;
}

.testimonial__author {
  margin-top: 32px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.9;
}

.testimonial__author-name {
  display: block;
  color: #fff;
  font-weight: 500;
}

/* ---------- contact ---------- */
.contact {
  background: var(--bone);
  padding-block: 104px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.contact__title {
  font-size: clamp(28px, 2.3vw, 40px);
  margin-top: 18px;
}

.contact__lede {
  margin-top: 22px;
  color: var(--slate);
}

.contact__list {
  margin-top: 38px;
  border-top: 1px solid var(--bone-2);
}

.contact__list-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--bone-2);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact__list-icon {
  width: 18px;
  height: 18px;
  fill: var(--gold-dk);
  flex: none;
  margin-top: 5px;
}

.contact__list-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  display: block;
}

.contact__list-text {
  margin-top: 6px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
}

.contact__form {
  background: #fff;
  padding: 46px 46px 48px;
  box-shadow: 0 24px 60px -34px rgba(10, 21, 35, 0.4);
}

.contact__form-title {
  font-size: 26px;
}

.contact__form-req {
  margin-top: 10px;
  font-size: 14px;
  color: var(--slate);
}

.contact__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
  margin-top: 30px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.field__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

.field__input,
.field__select,
.field__textarea {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  border: 1px solid var(--bone-2);
  background: #fcfbf9;
  padding: 0 15px;
  border-radius: 2px;
  height: 40px;
  width: 100%;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238E855E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

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

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--gold);
  background: #fff;
  outline: none;
}

.contact__form .btn {
  margin-top: 28px;
  width: 100%;
}

.contact__form-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
}

/* ---------- footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  padding-top: 78px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 60px;
  padding-bottom: 58px;
}

.footer__brand-img {
  width: 190px;
  height: auto;
  max-width: none;
}

.footer__about {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.75;
  max-width: 400px;
}

.footer__heading {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.footer__link {
  font-size: 16px;
  transition: color 0.3s ease;
}

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

.footer__col-text {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
}

.footer__phone {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}

.footer__phone:hover {
  color: var(--gold);
}

.footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 30px 26px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
}

.footer__disclaimer-label {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal--in {
  opacity: 1;
  transform: none;
  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);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- responsive: progressive header scaling ---------- */
@media (max-width: 1400px) {
  :root {
    --container-pad: 34px;
  }

  .header__nav-list {
    gap: 22px;
  }

  .header__top {
    gap: 16px;
  }
}

@media (max-width: 1280px) {
  .header__address {
    display: none;
  }

  .about__grid {
    gap: 56px;
  }

  .about__stat {
    right: -24px;
    bottom: -30px;
    padding: 26px 30px 28px;
  }

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

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

/* ---------- nav breakpoint: hamburger below 1200px ---------- */
@media (max-width: 1200px) {
  .header__inner {
    gap: 20px;
    padding-block: 18px;
  }

  .header__toggle {
    display: flex;
  }

  .header__top {
    display: none;
  }

  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 21, 35, 0.62);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 45;
  }

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

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    background: var(--navy-900);
    z-index: 50;
    padding: 40px 32px;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.35s ease,
      visibility 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-left: 1px solid rgba(176, 166, 124, 0.22);
    pointer-events: none;
  }

  .header--nav-open .header__nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .header__nav-link {
    font-size: 16px;
  }

  .header__nav-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .header__nav-extras .header__phone {
    font-size: 22px;
  }

  .header__nav-extras .btn {
    width: 100%;
    white-space: normal;
  }

  .hero__content {
    width: min(100%, 58%);
  }

  .hero__visual {
    width: 48%;
  }
}

/* ---------- buttons wrap below 980px ---------- */
@media (max-width: 980px) {
  .btn {
    white-space: normal;
    font-size: 18px;
    padding: 16px 28px;
  }

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

  .hero__actions {
    flex-wrap: wrap;
    gap: 22px;
  }

  .accolades__inner {
    flex-direction: column;
    text-align: center;
  }

  .accolades__label {
    max-width: none;
  }

  .accolades__row {
    justify-content: center;
    gap: 40px;
  }

  .accolades__badge--million {
    height: 72px;
  }

  .accolades__badge--trial {
    height: 60px;
  }

  .accolades__badge--super {
    height: 31px;
  }

  .accolades__badge--aaj {
    height: 50px;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .about__image {
    height: 520px;
  }

  .about__stat {
    right: 20px;
    bottom: -34px;
  }

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

  .results__item {
    padding: 34px 26px;
  }

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

  .results__item:nth-child(2n + 1) {
    padding-left: 0;
  }

  .results__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

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

/* ---------- hero stacks at 768px ---------- */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: calc(100vh - var(--site-chrome-height));
    min-height: calc(100dvh - var(--site-chrome-height));
    min-height: calc(100svh - var(--site-chrome-height));
    padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 28px) 0;
  }

  .hero__inner {
    height: auto;
    align-items: flex-start;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding-block: 0 clamp(16px, 3vw, 28px);
  }

  .eyebrow {
    justify-content: center;
  }

  .hero__text {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 360px;
    margin-top: 8px;
  }

  .hero__image {
    height: auto;
    max-height: 470px;
    width: auto;
    margin-inline: auto;
  }
}

/* ---------- full-width CTAs at 640px ---------- */
@media (max-width: 640px) {
  :root {
    --container-pad: 22px;
  }

  body {
    font-size: 16px;
  }

  .header__brand-img {
    width: 66px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

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

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

  .hero__phone {
    justify-content: center;
  }

  .hero__visual {
    min-height: 320px;
  }

  .hero__image {
    max-height: 390px;
  }

  .btn {
    font-size: 17px;
    padding: 16px 24px;
    width: 100%;
    max-width: 100%;
  }

  .about {
    padding-block: 72px;
  }

  .about__image {
    height: 380px;
  }

  .about__stat {
    position: static;
    margin-top: 22px;
    min-width: 0;
    right: auto;
    bottom: auto;
  }

  .practice,
  .results,
  .values,
  .testimonial,
  .contact {
    padding-block: 74px;
  }

  .practice__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .practice-card__title {
    min-height: 0;
  }

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

  .results__item {
    padding: 30px 0 !important;
    border-right: 0 !important;
    border-top: 1px solid var(--line);
  }

  .results__item:first-child {
    border-top: 0;
  }

  .values__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin-top: 44px;
  }

  .contact__form {
    padding: 32px 24px 34px;
  }

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

  .accolades__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
    justify-items: center;
    align-items: center;
  }

  .accolades__badge--million {
    height: 62px;
  }

  .accolades__badge--trial {
    height: 52px;
  }

  .accolades__badge--super {
    height: 27px;
  }

  .accolades__badge--aaj {
    height: 44px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .footer__legal {
    flex-direction: column;
    gap: 10px;
  }
}
