:root {
  color-scheme: light;
  --navy: #131D2A;
  --navy-2: #1B2737;
  --ink: #1F2733;
  --slate: #555B69;
  --steel: #99AABA;
  --mist: #BDCBE2;
  --mist-bg: #EEF2F7;
  --line: #D3DBE6;
  --sage: #748371;
  --sage-deep: #53654F;
  --sage-dark: #43543F;
  --sage-light: #A9B8A5;
  --white: #FFFFFF;
  --serif: 'Castoro', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Reddit Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --pad: 45px;
  --container-max: 1320px;
  --nav-breakpoint: 1200px;
  --site-chrome-height: 92px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

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

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

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

/* Twin line — structural device from logo letterforms */
.twin {
  display: block;
  width: 64px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin: 22px 0 0;
}

.twin--center {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  text-decoration: none;
  padding: 19px 34px;
  max-width: 100%;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 0;
}

.btn--primary {
  background: var(--sage-deep);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--sage-dark);
}

.btn--outline {
  border: 5px double currentColor;
  padding: 14px 30px;
  background: transparent;
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.icon-ring {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px double var(--sage-light);
  flex: 0 0 auto;
}

.icon-ring svg {
  width: 18px;
  height: 18px;
}

.text-call {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.text-call .icon-ring {
  border-color: var(--sage);
  color: var(--sage-deep);
  width: 44px;
  height: 44px;
}

/* ========== Header ========== */
.header {
  background: var(--white);
  position: relative;
  z-index: 20;
}

.header__overlay {
  display: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
  z-index: 2;
}

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

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

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 5px double var(--navy);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 4;
}

.header__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

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

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

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

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

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

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

.header__nav-link {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0 9px;
  border-bottom: 5px double transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__nav-link:hover,
.header__nav-link[aria-current="page"] {
  border-bottom-color: var(--sage);
}

.header__nav-extras {
  display: none;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.header__phone-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
}

.header__phone-number {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.header__cta-btn {
  flex-shrink: 0;
}

/* Progressive header scaling before hamburger */
@media (max-width: 1400px) {
  .header__inner {
    gap: 24px;
  }

  .header__nav-list {
    gap: 24px;
  }

  .header__cta {
    gap: 20px;
  }
}

@media (max-width: 1365px) {
  .header__inner {
    gap: 18px;
  }

  .header__nav-list {
    gap: 18px;
  }

  .header__cta {
    gap: 16px;
  }

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

  .header__cta-btn {
    padding: 17px 26px;
    font-size: 18px;
  }

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

@media (max-width: 1280px) {
  .header__nav-link {
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .header__nav-list {
    gap: 14px;
  }

  .header__cta-btn {
    padding: 15px 20px;
    font-size: 16px;
  }

  .header__phone-number {
    font-size: 20px;
  }

  .header__phone-label {
    font-size: 12px;
  }

  .header__inner {
    gap: 14px;
  }
}

/* Hamburger / slide-in panel — below 1200px */
@media (max-width: 1200px) {
  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(19, 29, 42, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

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

  .header__overlay[hidden] {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .header__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header.is-open .header__toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4;
    background: var(--white);
  }

  .header__cta {
    display: none;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    height: 100dvh;
    padding: 84px 28px 40px;
    background: var(--white);
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(19, 29, 42, 0.12);
  }

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

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .header__nav-item {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .header__nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  .header__nav-extras {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    padding-top: 8px;
  }

  .header__nav-extras .header__phone {
    align-items: flex-start;
  }

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

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy) url("../assets/images/bg-hero.jpg") 70% 40% / cover no-repeat;
  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;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(13, 20, 30, 0.96) 0%,
    rgba(13, 20, 30, 0.88) 30%,
    rgba(19, 29, 42, 0.55) 58%,
    rgba(19, 29, 42, 0.38) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: clamp(0px, 1vw, 8px);
  padding-right: clamp(0px, 1vw, 8px);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(100%, 410px);
  max-width: min(100%, 55%);
  flex: 0 0 auto;
  color: var(--white);
  padding-inline: clamp(0px, 1.5vw, 12px);
}

.hero__title {
  font-size: 58px;
  line-height: 1.02;
  color: var(--white);
}

.hero .twin {
  color: var(--sage-light);
}

.hero__subtitle {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mist);
  margin-top: 22px;
  letter-spacing: 0.005em;
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hero__phone .icon-ring {
  border-color: var(--sage-light);
}

.hero__actions {
  margin-top: 22px;
}

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

.hero__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4%;
  width: 88%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 7px double rgba(189, 203, 226, 0.42);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(205, 216, 232, 0.4) 0%,
    rgba(189, 203, 226, 0.2) 46%,
    rgba(189, 203, 226, 0) 70%
  );
}

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

/* Accolades strip — natural height, not in viewport calc */
.accolades {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.accolades__list {
  list-style: none;
  margin: 0;
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
}

.accolades__item {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 0 24px;
  border-left: 5px double var(--line);
}

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

.accolades__image {
  height: auto;
  max-width: 100%;
}

/* Sections */
.section {
  padding: 110px 0;
}

.section__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section__title {
  font-size: 48px;
  color: var(--navy);
}

/* Intro */
.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 96px;
  align-items: center;
}

.intro__media {
  position: relative;
  margin: 0 24px 24px 0;
}

.intro__media::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 7px double var(--sage);
  border-radius: 4px;
  z-index: 0;
}

.intro__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 4px;
}

.intro .twin {
  color: var(--sage);
}

.intro__text p {
  margin-top: 24px;
  color: #3A4250;
  max-width: 62ch;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 38px;
}

/* Practice areas */
.practice {
  background: var(--mist-bg);
}

.practice .twin {
  color: var(--sage);
}

.practice__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.practice__card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--white);
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 3 / 4;
}

.practice__card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.practice__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(19, 29, 42, 0) 38%,
    rgba(19, 29, 42, 0.72) 66%,
    rgba(19, 29, 42, 0.96) 100%
  );
}

.practice__card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 5px double rgba(189, 203, 226, 0);
  border-radius: 3px;
  transition: border-color 0.3s ease;
}

.practice__card:hover::after,
.practice__card:focus-visible::after {
  border-color: rgba(189, 203, 226, 0.75);
}

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

.practice__card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 32px 34px;
}

.practice__card-title {
  font-size: 30px;
  line-height: 1.12;
  color: var(--white);
}

.practice__card-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
  border-bottom: 4px double rgba(169, 184, 165, 0.9);
  padding-bottom: 3px;
}

.practice__more {
  text-align: center;
  margin-top: 52px;
}

/* Case results */
.results {
  background: var(--navy);
  color: var(--white);
}

.results .section__title {
  color: var(--white);
}

.results .twin {
  color: var(--sage-light);
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.results__item {
  padding: 6px 38px 4px;
  border-left: 5px double rgba(189, 203, 226, 0.32);
}

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

.results__amount {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  color: var(--white);
  display: block;
}

.results__desc {
  display: block;
  margin-top: 14px;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.5;
}

.results__more {
  display: inline-block;
  margin-top: 22px;
  color: var(--sage-light);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 4px double currentColor;
  padding-bottom: 3px;
}

.results__more:hover {
  color: var(--white);
}

/* Why choose */
.why__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.why__lead {
  position: sticky;
  top: 40px;
}

.why__lead .twin {
  color: var(--sage);
}

.why__lead .btn {
  margin-top: 40px;
}

.why__lead .text-call {
  margin-top: 26px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.why__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px double var(--sage);
  display: grid;
  place-items: center;
  color: var(--sage-deep);
}

.why__icon svg {
  width: 27px;
  height: 27px;
}

.why__item-title {
  font-size: 28px;
  color: var(--navy);
  margin-top: 24px;
}

.why__item-text {
  margin-top: 12px;
  color: #3A4250;
}

.why__more {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 4px double var(--sage);
  padding-bottom: 3px;
}

/* Testimonials */
.testimonials {
  position: relative;
  background: var(--navy) url("../assets/images/bg-testimonial.jpg") center / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}

.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 34, 0.72);
}

.testimonials .section__title {
  color: var(--white);
}

.testimonials .twin {
  color: var(--sage-light);
}

.testimonials__quote {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.testimonials__mark {
  display: block;
  width: 76px;
  height: auto;
  margin: 0 auto 26px;
  color: var(--mist);
}

.testimonials__quote blockquote {
  margin: 0;
}

.testimonials__quote blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.5;
  color: #F2F5F9;
}

.testimonials__quote blockquote p + p {
  margin-top: 18px;
}

.testimonials__cite {
  display: block;
  margin-top: 34px;
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--sage-light);
}

/* Contact */
.contact {
  background: var(--mist-bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 90px;
  align-items: center;
}

.contact .twin {
  color: var(--sage);
}

.contact__lead-text {
  margin-top: 24px;
  color: #3A4250;
  max-width: 46ch;
}

.contact__facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.contact__fact {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact__fact .icon-ring {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.contact__fact-title {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.25;
}

.contact__fact-detail,
.contact__fact-detail a {
  color: #3A4250;
  text-decoration: none;
  font-size: 17px;
}

.contact__fact-phone {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
}

.contact__form {
  background: var(--white);
  border-radius: 8px;
  padding: 50px;
  box-shadow: 0 30px 60px -30px rgba(19, 29, 42, 0.35);
  position: relative;
}

.contact__form::before {
  content: "";
  position: absolute;
  left: 50px;
  right: 50px;
  top: 0;
  height: 7px;
  border-top: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
}

.contact__form-title {
  font-size: 32px;
  color: var(--navy);
}

.contact__form-note {
  margin-top: 8px;
  color: var(--slate);
  font-size: 16px;
}

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

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

.contact__field input,
.contact__field select,
.contact__field textarea {
  width: 100%;
  height: 40px;
  border: 1px solid #C3CCD8;
  border-radius: 4px;
  background: var(--white);
  font: 400 16px / 1.2 var(--sans);
  color: var(--ink);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__field select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white) url("../assets/images/icon-select.svg") right 14px center / 12px 8px no-repeat;
  padding-right: 36px;
  color: #5F6876;
}

.contact__field textarea {
  height: 120px;
  padding: 11px 14px;
  resize: vertical;
  line-height: 1.5;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: #6B7483;
}

.contact__field input:focus,
.contact__field select:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(116, 131, 113, 0.25);
}

.contact__form .btn {
  margin-top: 26px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--mist);
}

.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 70px;
  align-items: center;
  padding: 70px 0 56px;
  border-bottom: 1px solid rgba(189, 203, 226, 0.18);
}

.footer__logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.footer__logo img {
  height: 120px;
  width: auto;
  max-width: none;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  border-bottom: 4px double transparent;
  padding-bottom: 4px;
}

.footer__nav-link:hover {
  border-bottom-color: var(--sage-light);
}

.footer__contact {
  text-align: right;
  font-style: normal;
  line-height: 1.6;
}

.footer__contact-phone {
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding: 26px 0 30px;
  font-size: 14px;
  color: #9AA7B8;
}

/* Page-load motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

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

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

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

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

  .hero__visual {
    animation: stage 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes stage {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Mid breakpoints */
@media (max-width: 1240px) {
  .hero__title {
    font-size: 52px;
  }

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

  .intro__inner,
  .why__inner,
  .contact__inner {
    gap: 60px;
  }

  .results__item {
    padding: 6px 24px 4px;
  }

  .results__amount {
    font-size: 32px;
  }

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

@media (max-width: 1100px) {
  .practice__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .results__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

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

  .accolades__item {
    padding: 0 14px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 36px;
  }

  .footer__contact {
    text-align: center;
  }
}

/* Buttons wrap on smaller screens */
@media (max-width: 980px) {
  .btn {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 24px;
  }

  .hero {
    height: auto;
    min-height: calc(100svh - var(--site-chrome-height));
    padding-bottom: 0;
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding-top: 0;
  }

  .hero__content {
    width: auto;
    max-width: 560px;
    max-width: 100%;
    padding-top: clamp(32px, 6vw, 56px);
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 40px auto 0;
    align-self: center;
  }

  .hero__image {
    height: auto;
    width: 100%;
    max-height: min(70vh, 520px);
    object-position: bottom center;
  }

  .intro__inner,
  .why__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .why__lead {
    position: static;
  }

  .accolades__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }

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

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: clamp(28px, 5vw, 40px) clamp(16px, 4vw, 24px) 0;
  }

  .hero__content {
    max-width: 100%;
    padding-inline: clamp(4px, 2vw, 12px);
  }
}

@media (max-width: 640px) {
  .hero__actions .btn {
    width: 100%;
  }

  .intro__actions .btn,
  .why__lead .btn,
  .contact__form .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --pad: 16px;
  }

  .container {
    width: 100%;
  }

  body {
    font-size: 16px;
  }

  .header__logo img {
    height: 46px;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__subtitle {
    font-size: 19px;
  }

  .hero__actions .btn,
  .intro__actions .btn,
  .why__lead .btn,
  .contact__form .btn {
    font-size: 18px;
    padding: 17px 24px;
  }

  .section__title {
    font-size: 36px;
  }

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

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

  .results__item {
    border-left: 0;
    padding: 0 0 30px;
    border-bottom: 5px double rgba(189, 203, 226, 0.28);
  }

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

  .why__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .accolades__item {
    min-height: 90px;
  }

  .accolades__image {
    transform: scale(0.85);
  }

  .contact__form {
    padding: 34px 22px;
  }

  .contact__form::before {
    left: 22px;
    right: 22px;
  }

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

  .testimonials__quote blockquote p {
    font-size: 21px;
  }

  .intro__media {
    margin: 0 16px 16px 0;
  }

  .intro__media::after {
    inset: 16px -16px -16px 16px;
  }
}
