/* ============================================================
   Law Offices of Andrew B. Shin — vanity homepage
   Leaders Marketing · Palette: navy #032940 / champagne #D0C28B
   Type: Frank Ruhl Libre (display) + Plus Jakarta Sans (body)
   ============================================================ */

:root {
  --ink: #032940;
  --ink-deep: #011B29;
  --ink-mid: #0A3A55;
  --brass: #C2A055;
  --brass-deep: #8C6E28;
  --champagne: #D0C28B;
  --ivory: #F7F5F0;
  --paper: #FFFFFF;
  --slate: #4A5761;
  --line: #E3DED3;
  --serif: "Frank Ruhl Libre", "Georgia", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container-max: 1320px;
  --nav-breakpoint: 1200px;
  --site-chrome-height: 96px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

p {
  margin: 0 0 1.15em;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(20px, 3vw, 45px);
  padding-right: clamp(20px, 3vw, 45px);
}

/* ---------- Section eyebrow ---------- */
.section__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: "";
  height: 1px;
  flex: 0 0 42px;
  background: currentColor;
  opacity: 0.55;
}

.section__eyebrow::after {
  flex: 1 1 auto;
  max-width: 120px;
}

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

.section__eyebrow--center::before,
.section__eyebrow--center::after {
  flex: 0 0 42px;
}

.section__eyebrow--light {
  color: var(--champagne);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 58px;
}

.section__title {
  font-size: clamp(32px, 3.1vw, 49px);
}

.section__title--light {
  color: #fff;
}

.section__lead {
  margin-top: 16px;
  font-size: 17px;
}

.section__lead--light {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  padding: 19px 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  transition: 0.35s var(--ease);
}

.btn--primary {
  background: var(--brass);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--champagne);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(3, 41, 64, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(3, 41, 64, 0.28);
}

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

.btn--sm {
  font-size: 15px;
  padding: 14px 26px;
}

/* ============================ HEADER ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(3, 41, 64, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  min-height: 96px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header__brand {
  flex: 0 0 auto;
  flex-shrink: 0;
}

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

.header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}

.header__nav-link {
  flex-shrink: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

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

.header__nav-extras {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  flex: 0 0 auto;
  flex-shrink: 0;
}

.header__tel {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.header__tel-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass-deep);
  text-transform: uppercase;
  margin-bottom: 1px;
}

.header__cta {
  flex-shrink: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  padding: clamp(10px, 1vw, 14px) clamp(16px, 1.6vw, 26px);
}

.header__burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 85;
  position: relative;
}

.header__burger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s ease;
}

.header__burger.is-active .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 27, 41, 0.55);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  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__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/bg-hero.jpg");
  background-size: cover;
  background-position: 62% 30%;
  opacity: 0.2;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/bg-grain.jpg");
  background-size: cover;
  mix-blend-mode: overlay;
  opacity: 0.13;
}

.hero__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--ink) 0%,
    rgba(3, 41, 64, 0.96) 42%,
    rgba(3, 41, 64, 0.62) 74%,
    rgba(2, 30, 46, 0.78) 100%
  );
}

.hero__glow {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 640px;
  height: 560px;
  background: radial-gradient(ellipse at 50% 70%, rgba(194, 160, 85, 0.3), rgba(194, 160, 85, 0) 68%);
  pointer-events: none;
}

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

.hero__content {
  position: relative;
  z-index: 4;
  flex: 0 1 auto;
  width: min(100%, 640px);
  max-width: min(100%, 50%);
  padding: clamp(12px, 2vw, 40px) clamp(16px, 2.5vw, 32px) clamp(12px, 2vw, 40px) 0;
}

.hero__title {
  color: #fff;
  font-size: clamp(38px, 4.1vw, 66px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero__title em {
  font-style: normal;
  color: var(--champagne);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 34px;
  max-width: 500px;
}

.hero__subtitle strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.005em;
  margin-bottom: 4px;
}

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

.hero__phone {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 11px;
}

.hero__phone svg {
  flex: 0 0 auto;
}

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

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

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

.hero__rule {
  position: absolute;
  left: 8%;
  bottom: 96px;
  width: 1px;
  height: 120px;
  background: linear-gradient(var(--champagne), rgba(208, 194, 139, 0));
  opacity: 0.7;
}

/* ============================ ACCOLADES ============================ */
.accolades {
  background: var(--ink-deep);
  border-top: 1px solid rgba(208, 194, 139, 0.16);
  padding: 34px 0;
}

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

.accolades__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--champagne);
  opacity: 0.85;
  flex: 0 0 auto;
  max-width: 190px;
  line-height: 1.7;
  margin: 0;
}

.accolades__row {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: space-between;
  padding-left: 24px;
}

.accolades__badge {
  height: 78px;
  width: auto;
  opacity: 0.92;
  transition: 0.3s;
}

.accolades__badge:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ============================ STORY ============================ */
.story {
  background: var(--ivory);
  padding: 110px 0;
}

.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: center;
}

.story__figure {
  position: relative;
}

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

.story__figure::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--brass);
  z-index: -1;
}

.story__stat {
  position: absolute;
  right: -22px;
  bottom: -22px;
  background: var(--ink);
  color: #fff;
  padding: 26px 30px;
  text-align: center;
}

.story__stat b {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--champagne);
}

.story__stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.story__title {
  font-size: clamp(32px, 3vw, 47px);
  margin: 0 0 10px;
}

.story__subtitle {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--brass-deep);
  letter-spacing: 0.01em;
  margin: 0 0 26px;
}

.story__copy p {
  font-size: 17px;
  line-height: 1.85;
}

.story__langs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.story__langs b {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.story__langs em {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
  max-width: 280px;
  line-height: 1.5;
}

.story__langs-cta {
  margin-left: auto;
}

/* ============================ PRACTICE AREAS ============================ */
.practice {
  padding: 110px 0;
  background: var(--paper);
}

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

.practice-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: 0.4s var(--ease);
}

.practice-card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0.62;
  transition: 0.6s var(--ease);
}

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

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(3, 41, 64, 0.16);
}

.practice-card__body {
  padding: 26px 26px 30px;
  background: var(--paper);
  border-top: 3px solid var(--brass);
}

.practice-card__title {
  font-size: 23px;
  margin: 0 0 9px;
}

.practice-card__text {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 16px;
  color: var(--slate);
}

.practice-card__more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.practice-card__more::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s;
}

.practice-card:hover .practice-card__more::after {
  width: 34px;
}

.practice-card__num {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(1, 27, 41, 0.86);
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 8px 14px;
}

/* ============================ CASE RESULTS ============================ */
.results {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 104px 0;
  overflow: hidden;
}

.results__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/bg-results.jpg") center / cover;
  opacity: 0.15;
}

.results__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 41, 64, 0.92), rgba(1, 27, 41, 0.97));
}

.results__inner {
  position: relative;
  z-index: 2;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(208, 194, 139, 0.24);
}

.result {
  padding: 44px 30px;
  border-right: 1px solid rgba(208, 194, 139, 0.18);
  text-align: center;
}

.result:last-child {
  border-right: 0;
}

.result__amount {
  display: block;
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 400;
  color: var(--champagne);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.result__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
}

.result__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(208, 194, 139, 0.5);
  padding-bottom: 3px;
}

.result__link:hover {
  color: var(--champagne);
  border-color: var(--champagne);
}

/* ============================ VALUES ============================ */
.values {
  padding: 110px 0;
  background: var(--ivory);
}

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

.value {
  background: var(--paper);
  padding: 40px 34px;
  border: 1px solid var(--line);
  position: relative;
  transition: 0.4s;
}

.value:hover {
  border-color: var(--brass);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(3, 41, 64, 0.09);
}

.value__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  color: var(--brass-deep);
}

.value__title {
  font-size: 21px;
  line-height: 1.22;
  margin: 0 0 12px;
}

.value__text {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.value__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.value__link:hover {
  color: var(--ink);
}

/* ============================ TESTIMONIAL ============================ */
.testimonial {
  position: relative;
  padding: 118px 0;
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
}

.testimonial__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/bg-grain.jpg") center / cover;
  opacity: 0.1;
  mix-blend-mode: screen;
}

.testimonial__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
}

.testimonial__mark {
  font-family: var(--serif);
  font-size: 110px;
  line-height: 0.7;
  color: var(--brass);
  opacity: 0.5;
  margin-bottom: 6px;
}

.testimonial__quote {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.45;
  color: #fff;
  letter-spacing: -0.005em;
}

.testimonial__by {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
}

.testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 26px;
  color: var(--brass);
}

/* ============================ CONTACT ============================ */
.contact {
  padding: 110px 0;
  background: var(--paper);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}

.contact__title {
  font-size: clamp(31px, 2.9vw, 45px);
  margin: 0 0 18px;
}

.contact__lead {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 34px;
}

.contact-info {
  border-top: 1px solid var(--line);
}

.contact-info__row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.contact-info__row svg {
  flex: 0 0 auto;
  color: var(--brass-deep);
  margin-top: 3px;
}

.contact-info__label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 5px;
}

.contact-info__value {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.45;
}

.contact-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 46px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.field__input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 16px;
  height: 40px;
  width: 100%;
  transition: 0.25s;
  appearance: none;
}

.field__input--textarea {
  height: 120px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.6;
}

.field__input--select {
  background-image: url("../assets/images/icon-select.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field__input:focus {
  border-color: var(--brass);
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 160, 85, 0.16);
}

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

.contact-form__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
  margin-top: 16px;
  text-align: center;
  opacity: 0.8;
}

/* ============================ FOOTER ============================ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 76px 0 0;
  font-size: 15px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 50px;
  padding-bottom: 56px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 26px;
}

.footer__logo img {
  width: 248px;
  max-width: none;
  flex-shrink: 0;
}

.footer__blurb {
  margin: 0;
  line-height: 1.8;
}

.footer__heading {
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 11px;
}

.footer a:hover {
  color: var(--champagne);
}

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

.footer__tel {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: #fff;
  margin-bottom: 14px;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.62;
}

/* ============================ MOTION ============================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

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

.reveal--delay-1 {
  transition-delay: 0.08s;
}

.reveal--delay-2 {
  transition-delay: 0.16s;
}

.reveal--delay-3 {
  transition-delay: 0.24s;
}

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

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .btn {
    white-space: normal;
  }
}

@media (max-width: 1200px) {
  .header__burger {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .header__actions {
    display: none;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    height: 100dvh;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px 28px 40px;
    background: #fff;
    box-shadow: -20px 0 50px rgba(3, 41, 64, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 75;
    overflow-y: auto;
  }

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

  .header__nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

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

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

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

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

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

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

  .result:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(208, 194, 139, 0.18);
  }

  .story__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .story__image {
    height: 460px;
  }

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

  .hero__visual {
    width: 46%;
  }
}

@media (max-width: 900px) {
  .hero__content {
    max-width: min(100%, 58%);
  }

  .hero__visual {
    width: 44%;
  }

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

  .accolades__inner {
    justify-content: center;
    text-align: center;
  }

  .accolades__label {
    max-width: none;
  }

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

@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(28px, 5vw, 40px) clamp(20px, 4vw, 28px) 0;
    display: flex;
    flex-direction: column;
  }

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

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

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: min(420px, 52vh);
    margin-top: auto;
  }

  .hero__image {
    object-position: bottom center;
    margin: 0 auto;
  }

  .hero__rule {
    display: none;
  }

  .header__inner {
    min-height: 78px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .story,
  .practice,
  .values,
  .contact {
    padding: 70px 0;
  }

  .results,
  .testimonial {
    padding: 70px 0;
  }

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

  .result {
    border-right: 0;
    border-bottom: 1px solid rgba(208, 194, 139, 0.18);
  }

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

  .hero__actions .btn {
    width: 100%;
    white-space: normal;
    font-size: 17px;
    padding: 16px 24px;
  }

  .btn {
    font-size: 17px;
    padding: 16px 30px;
    white-space: normal;
  }

  .contact-form {
    padding: 28px 22px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .story__figure::after {
    inset: 14px -14px -14px 14px;
  }

  .story__stat {
    right: 0;
    bottom: -14px;
    padding: 18px 20px;
  }

  .accolades__badge {
    height: 64px;
  }

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

  .story__langs-cta {
    margin-left: 0;
  }
}
