/* ---------- Fonts — pairing: Young Serif / Host Grotesk ---------- */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/host-grotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/host-grotesk-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* brand — sampled from the TBW Law logo */
  --ember: #F05420;
  /* crest orange: CTAs, accents on dark */
  --ember-ink: #B53C10;
  /* orange for small text on light (AA) */
  --ink: #201C20;
  /* logo charcoal: dark sections */
  --ink-deep: #171417;
  /* footer */
  --ink-raise: #2B262A;
  /* raised surfaces on dark */
  --stone: #D0D0D0;
  /* logo "LAW" grey */
  --stone-soft: #A9A3A6;
  /* secondary text on dark */
  --paper: #F4F4F3;
  /* light sections */
  --white: #FFFFFF;
  --body: #3B3539;
  /* body copy on light */
  --ff-display: "Young Serif", Georgia, "Times New Roman", serif;
  --ff-text: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --container-max: 1320px;
  --container-width: 100%;
  --pad: 45px;
  --section-y: clamp(4rem, 3rem + 3vw, 6.5rem);
  --btn-radius: 999px;
  --site-chrome-height: 104px;
  --nav-breakpoint: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: env(safe-area-inset-top,0px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--ff-text);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom,0px);
}

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

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

a {
  color: inherit;
}

h1,h2,h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

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

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

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

/* Display headings — Ricky: uppercase, tight tracking, heavy presence */
.display {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.06;
  color: var(--ink);
}

.h2 {
  font-size: clamp(2rem, 1.4rem + 1.7vw, 3rem);
}

/* Ricky's italic sub-heading in brand color */
.kicker {
  font-family: var(--ff-text);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--ember-ink);
  font-size: clamp(1.15rem, 1rem + .45vw, 1.45rem);
}

.on-dark .display {
  color: var(--white);
}

.on-dark .kicker {
  color: var(--ember);
}

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  white-space: nowrap;
  border-radius: var(--btn-radius);
  font-family: var(--ff-text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  text-decoration: none;
  padding: 20px 36px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  max-width: 100%;
  text-align: center;
}

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

.btn--primary:hover {
  background: #D9461A;
}

.btn--ghost {
  border-color: currentColor;
  color: var(--ink);
}

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

.on-dark .btn--ghost {
  color: var(--white);
}

.on-dark .btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

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

.btn--white:hover {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  font-weight: 700;
  font-size: 16px;
  color: var(--ember-ink);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.on-dark .text-link {
  color: var(--ember);
}

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

.on-dark .text-link:hover {
  color: var(--white);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  padding-top: env(safe-area-inset-top,0px);
  border-bottom: 1px solid #E6E4E5;
}

.header__overlay {
  display: none;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 28px);
  min-height: 104px;
  position: relative;
}

.header__logo {
  flex-shrink: 0;
  display: block;
  width: clamp(161px, 13.3vw, 210px);
  max-width: none;
  aspect-ratio: 430/100;
}

.header__logo svg,
.logo svg {
  width: 100%;
  height: auto;
  max-width: none;
}

.logo {
  display: block;
  width: clamp(161px, 13.3vw, 210px);
  max-width: none;
  aspect-ratio: 430/100;
  flex-shrink: 0;
}

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

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

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

.header__nav-link {
  display: block;
  flex-shrink: 0;
  font-size: clamp(13px, 0.7rem + 0.35vw, 16px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.header__nav-link:hover {
  border-bottom-color: var(--ember);
}

.header__nav-extras {
  display: none;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: clamp(15px, 0.85rem + 0.4vw, 20px);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__phone svg {
  width: 20px;
  height: 20px;
  color: var(--ember);
}

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

.header__cta {
  flex-shrink: 0;
}

.header__cta .btn {
  font-size: clamp(13px, 0.7rem + 0.35vw, 16px);
  padding: clamp(12px, 1vw, 16px) clamp(16px, 1.5vw, 28px);
  white-space: nowrap;
}

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

.header__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .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);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.kicker--spaced {
  margin-top: 12px;
}

.testimonial__figure {
  margin: 0;
}

.footer {
  --logo-ink: #FFFFFF;
  --logo-grey: #7A7477;
}

/* ---------- Hero / vanity stage ---------- */
.hero {
  position: relative;
  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));
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/bg-hero.jpg") center/cover no-repeat;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32,28,32,.97) 0%, rgba(32,28,32,.9) 32%, rgba(32,28,32,.55) 58%, rgba(32,28,32,.35) 100%);
}

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

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(100%, 640px);
  width: min(100%, 55%);
  padding: clamp(8px, 2vw, 24px) clamp(0px, 1vw, 12px) clamp(24px, 4vw, 48px);
}

.hero__eyebrow {
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.4rem, 1.45rem + 2.05vw, 3.4rem);
  color: var(--white);
  margin-bottom: 22px;
}

.hero__text {
  color: #E2DDDF;
  font-size: 18px;
  line-height: 1.7;
  max-width: 34em;
  margin-bottom: 32px;
}

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

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.hero__phone svg {
  width: 24px;
  height: 24px;
  color: var(--ember);
}

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

.hero__glow {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -10%;
  width: 62%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(225,219,215,.22), rgba(225,219,215,0) 100%);
  pointer-events: none;
}

.hero__crest {
  position: absolute;
  z-index: 0;
  right: 18%;
  bottom: 8%;
  height: min(70%, 520px);
  width: auto;
  opacity: .13;
  color: var(--ember);
  pointer-events: none;
}

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

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

.hero__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--ember);
  z-index: 3;
}

/* load moment — the one orchestrated motion on the page */
@media (prefers-reduced-motion:no-preference) {
  .hero__image {
    animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both .15s;
  }

  .hero__content > * {
    animation: fade .8s ease both;
  }

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

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

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

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(28px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes fade {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- Accolades ---------- */
.accolades {
  background: var(--white);
  border-bottom: 1px solid #E6E4E5;
}

.accolades .container {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  align-items: center;
  padding-block: 38px;
}

.accolade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 112px;
  padding: 6px 18px;
  border-left: 1px solid #E6E4E5;
}

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

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

/* ---------- Two column ---------- */
.intro {
  background: var(--paper);
  padding-block: var(--section-y);
}

.intro .container {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
}

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

.intro__media::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  background: var(--ember);
  z-index: 0;
}

.intro__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.intro__badge {
  position: absolute;
  z-index: 2;
  left: -1px;
  bottom: -1px;
  background: var(--ink);
  color: var(--white);
  padding: 22px 26px;
  max-width: 72%;
}

.intro__badge strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--white);
}

.intro__badge span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--stone);
}

.intro__copy .h2 {
  margin-bottom: 14px;
}

.intro__copy .kicker {
  margin-bottom: 28px;
  max-width: 30em;
}

.intro__copy p {
  margin-bottom: 20px;
  max-width: 44em;
}

.intro__copy p:last-of-type {
  margin-bottom: 34px;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
}

.intro__phone {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

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

/* ---------- Practice areas ---------- */
.practice {
  padding-block: var(--section-y);
  background: var(--white);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 44px;
}

.section-head p {
  max-width: 40em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4/5;
  padding: 28px;
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  background: var(--ink);
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,28,32,.05) 20%, rgba(32,28,32,.92) 88%);
}

.card > *:not(img) {
  position: relative;
  z-index: 1;
}

.card__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: var(--ember);
}

.card h3 {
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.1rem + .6vw, 1.75rem);
  line-height: 1.05;
  margin-bottom: 14px;
  min-height: 2.1em;
  display: flex;
  align-items: flex-end;
}

.card__more {
  font-size: 15px;
  font-weight: 700;
  color: var(--stone);
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 14px;
}

.card:hover img {
  transform: scale(1.04);
}

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

.practice__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #E6E4E5;
}

.practice__foot p {
  max-width: 52em;
  font-size: 17px;
}

/* ---------- Case results ---------- */
.results {
  background: var(--ink);
  padding-block: var(--section-y);
  color: var(--stone);
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}

.result {
  padding: 40px 30px 36px;
  border-left: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
}

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

.result__amt {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 1.3rem + 1.5vw, 2.85rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 22px;
  white-space: nowrap;
}

.result h3 {
  font-family: var(--ff-text);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 6px;
}

.result__type {
  font-style: italic;
  font-weight: 600;
  color: var(--ember);
  font-size: 17px;
  line-height: 1.4;
}

.result__detail {
  font-size: 16px;
  line-height: 1.6;
  color: var(--stone-soft);
  margin: 6px 0 24px;
}

.result .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.results .section-head {
  margin-bottom: 0;
  padding-bottom: 44px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ember);
  color: var(--white);
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 52px;
}

.cta-band h2 {
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.35rem);
  line-height: 1.1;
  color: var(--white);
  max-width: 22em;
}

.cta-band p {
  font-size: 19px;
  font-weight: 600;
  margin-top: 8px;
  color: #FFF3EE;
}

.cta-band p a {
  text-decoration: none;
  white-space: nowrap;
}

.cta-band p a:hover {
  text-decoration: underline;
}

/* ---------- Values ---------- */
.values {
  padding-block: var(--section-y);
  background: var(--paper) url("../images/bg-values.jpg") center/cover;
}

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

.value {
  background: var(--white);
  padding: 36px 30px 32px;
  border-top: 4px solid var(--ember);
  display: flex;
  flex-direction: column;
}

.value svg {
  width: 50px;
  height: 50px;
  color: var(--ember-ink);
  margin-bottom: 24px;
}

.value h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}

.value p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.value .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--ink-raise);
  padding-block: var(--section-y);
  color: var(--stone);
}

.testimonial .container {
  display: grid;
  grid-template-columns: minmax(0,4fr) minmax(0,8fr);
  gap: clamp(40px,5vw,96px);
  align-items: start;
}

.testi__mark {
  font-family: var(--ff-display);
  font-size: 200px;
  line-height: .75;
  color: var(--ember);
  margin-top: 36px;
  height: 110px;
}

.stars {
  display: flex;
  gap: 6px;
  color: var(--ember);
  margin-bottom: 26px;
}

.stars svg {
  width: 22px;
  height: 22px;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 1.05rem + .75vw, 1.85rem);
  line-height: 1.45;
  color: var(--white);
  max-width: 38em;
}

.testi__who {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.testi__who cite {
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--ember);
}

/* ---------- Contact ---------- */
.contact {
  padding-block: var(--section-y);
  background: var(--white);
}

.contact .container {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: clamp(40px,5vw,96px);
  align-items: start;
}

.contact__copy .h2 {
  margin-bottom: 14px;
}

.contact__copy .kicker {
  margin-bottom: 24px;
}

.contact__copy p {
  margin-bottom: 30px;
  max-width: 30em;
}

.contact__line {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid #E6E4E5;
}

.contact__line svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--ember-ink);
  margin-top: 4px;
}

.contact__line a,.contact__line address {
  font-style: normal;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
}

.contact__line a.big {
  font-size: 24px;
  font-weight: 700;
}

.form {
  background: var(--paper);
  padding: clamp(28px, 3vw, 48px);
  border-top: 5px solid var(--ember);
}

.form h3 {
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 24px;
}

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

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

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

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field input,.field select,.field textarea {
  width: 100%;
  height: 40px;
  border: 1px solid #C9C5C7;
  background: var(--white);
  border-radius: 4px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

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

.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='%23201C20' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

.field input:focus,.field select:focus,.field textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 0;
  border-color: var(--ember);
}

.form__submit {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.form__note {
  font-size: 13px;
  line-height: 1.5;
  color: #6B6468;
  max-width: 30em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-deep);
  color: var(--stone-soft);
  padding-top: 72px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0,4fr) minmax(0,3fr) minmax(0,3fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer .logo {
  width: 280px;
}

.footer h4 {
  margin: 0 0 18px;
  font-family: var(--ff-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--white);
  letter-spacing: .01em;
}

.footer address {
  font-style: normal;
  line-height: 1.7;
  margin-top: 28px;
  color: var(--stone);
}

.footer__phone {
  display: inline-block;
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

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

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer ul a {
  text-decoration: none;
  color: var(--stone);
  font-size: 16px;
}

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

.footer__bottom {
  padding-block: 30px 40px;
  font-size: 13px;
  line-height: 1.7;
  display: grid;
  gap: 12px;
}

.footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
}

/* ---------- Responsive ---------- */
@media (max-width:1280px) {
  :root {
    --pad: 32px;
  }

  .hero__title {
    font-size: 2.35rem;
  }

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

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

  .result:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,.14);
  }

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

@media (max-width:1200px) {
  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(32,28,32,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

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

  .header__inner {
    z-index: 2;
    min-height: 84px;
  }

  .header__nav,
  .header__phone,
  .header__cta {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 84px 28px 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-left: 1px solid #E6E4E5;
    box-shadow: -12px 0 40px rgba(32,28,32,.12);
    transform: translateX(105%);
    transition: transform .28s ease, visibility .28s ease;
    z-index: 2;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }

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

  .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: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #EEECED;
  }

  .header__nav-extras {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #E6E4E5;
  }

  .header__nav-extras .header__phone {
    display: inline-flex;
    font-size: 20px;
  }

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

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

  .accolades .container {
    grid-template-columns: repeat(2,1fr);
    row-gap: 28px;
  }

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

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

@media (max-width:768px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: clamp(28px, 6vw, 48px) clamp(16px, 4vw, 28px) 0;
  }

  .hero__inner {
    height: auto;
    display: block;
  }

  .hero__content {
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0 0 28px;
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    justify-content: center;
  }

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

  .hero__glow {
    width: 100%;
    height: 55%;
  }

  .hero__crest {
    display: none;
  }

  .hero__bg::after {
    background: linear-gradient(180deg, rgba(32,28,32,.96) 0%, rgba(32,28,32,.88) 50%, rgba(32,28,32,.55) 100%);
  }
}

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

  .intro .container,
  .contact .container,
  .testimonial .container {
    grid-template-columns: 1fr;
  }

  .intro__media {
    max-width: 520px;
  }

  .testimonial__mark {
    height: 70px;
    font-size: 140px;
    margin-top: 0;
  }

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

  .footer__top > :first-child {
    grid-column: 1/-1;
  }
}

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

  .header__inner {
    min-height: 72px;
  }

  .header__logo,
  .logo {
    width: 147px;
    max-width: none;
    flex-shrink: 0;
  }

  .btn {
    font-size: 18px;
    padding: 18px 28px;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .accolade {
    border-left: 0;
    padding-inline: 8px;
  }

  .accolade img {
    max-width: 88%;
  }

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

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

  .result,
  .result:nth-child(3) {
    padding: 32px 0;
    border-left: 0;
  }

  .result + .result {
    border-top: 1px solid rgba(255,255,255,.14);
  }

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

  .intro__media::before {
    inset: 18px -18px -18px 18px;
  }

  .intro__badge strong {
    font-size: 26px;
  }

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