/* ==========================================================================
   Cavie & Co. — Home
   Quiet luxury. Editorial. Warm neutrals. Square corners. No shadows.
   ========================================================================== */

:root {
  /* Tonal ladder */
  --cream:        #faf6f5;   /* plaster cream, page base */
  --panel:        #f3f1ee;   /* pale panel, card bodies */
  --stone:        #cecfc9;   /* dusty stone, process band */
  --stone-light:  #d3d1cc;   /* lighter stone, portfolio band */
  --sage:         #b7b8b0;   /* greyed sage, testimonial band */
  --mocha:        #716454;   /* warm mocha, services band & buttons */
  --taupe:        #4f463f;   /* deep taupe, top nav */
  --olive:        #626554;   /* muted olive, footer */
  --ink:          #2b2825;   /* heading ink, never pure black */
  --body:         #544f49;   /* body text, warm grey */
  --hair:         rgba(140, 133, 120, 0.4);
  --hair-light:   rgba(255, 255, 255, 0.35);
  --white:        #ffffff;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --section-y: clamp(96px, 12vw, 168px);
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
em { font-style: italic; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--body);
  margin: 0 0 28px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.88); }

.heading,
.display {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: balance;
}
.heading { font-size: clamp(27px, 2.8vw, 38px); }
.display { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: 0.14em; line-height: 1.22; margin-bottom: 36px; }
.heading--light, .display--light { color: var(--white); }

/* The one editorial flourish: an italic, lowercase word inside the tracked caps. */
.heading em,
.display em {
  text-transform: none;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1.12em;
}

.lede {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.2em;
}
.on-dark { color: rgba(255, 255, 255, 0.92); }
.small-caps-note {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 36px;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.container--wide    { max-width: 1280px; }
.container--reading { max-width: 760px; }
.container--narrow  { max-width: 720px; }
.centered { text-align: center; }
.centered .eyebrow { margin-bottom: 24px; }

.section { padding: var(--section-y) 0; }
.section--tight { padding-top: calc(var(--section-y) * 0.75); }
.section--cream       { background: var(--cream); }
.section--panel       { background: var(--panel); }
.section--stone       { background: var(--stone); }
.section--stone-light { background: var(--stone-light); }
.section--sage        { background: var(--sage); }
.section--mocha       { background: var(--mocha); color: rgba(255, 255, 255, 0.92); }

.section--stone .heading,
.section--stone-light .heading,
.section--sage .heading { color: var(--ink); }

.section > .container + .container { margin-top: clamp(56px, 7vw, 96px); }

.rule {
  border: 0;
  border-top: 1px solid var(--hair);
  width: min(1280px - 2 * 64px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Buttons & links — ghost outlines, one pixel, square
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 17px 36px;
  border: 1px solid var(--mocha);
  color: var(--mocha);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  margin-top: 16px;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease), border-color 0.7s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--mocha); color: var(--cream); outline: none; }

.btn--light { border-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.btn--light:hover, .btn--light:focus-visible { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--quiet { border-color: transparent; }
.btn--quiet:hover, .btn--quiet:focus-visible { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.85); }

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mocha);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hair);
  transition: border-color 0.6s var(--ease);
}
.text-link:hover { border-color: var(--mocha); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--taupe);
  color: var(--white);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.wordmark__amp { font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; margin: 0 0.06em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); justify-content: center; padding: 0 24px; }
.nav > a,
.nav__item > a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.6s var(--ease), color 0.6s var(--ease);
}
.nav > a:hover, .nav__item > a:hover, .nav__item:focus-within > a { color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.6); }
.nav > a, .nav__item > a { display: inline-block; }

/* Services dropdown — flat taupe panel, square, hairline edge */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { display: inline-flex; align-items: center; gap: 9px; }
.nav__chev {
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1.5px) rotate(45deg);
  transition: transform 0.5s var(--ease);
}
.nav__item:hover .nav__chev,
.nav__item:focus-within .nav__chev { transform: translateY(1px) rotate(225deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 270px;
  padding: 12px 0;
  background: var(--taupe);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
  z-index: 60;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; }
.nav__menu a {
  display: block;
  padding: 11px 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.nav__menu a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

/* Call Now button in the header */
.btn--nav {
  justify-self: end;
  margin-top: 0;
  padding: 12px 20px;
  font-size: 11px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero & CTA — full-bleed photo with a soft scrim
   -------------------------------------------------------------------------- */
.hero, .cta {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); padding: 96px 0; text-align: left; }
.cta  { min-height: 70vh; padding: var(--section-y) var(--gutter); }

.hero__image, .cta__image {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: settle 14s var(--ease) forwards;
}
@keyframes settle { to { transform: scale(1); } }
.hero__scrim, .cta__scrim { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.5); }
.cta__scrim { background: rgba(0, 0, 0, 0.56); }

.cta__content { max-width: 880px; }
.hero__content { max-width: 600px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
}
.hero .display { margin-bottom: 28px; font-size: clamp(32px, 3.4vw, 48px); }
.hero__lede {
  max-width: 480px;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
}
.hero__actions { display: flex; gap: 20px; flex-wrap: wrap; }
.cta .hero__actions { justify-content: center; }
.hero__actions .btn { margin-top: 0; }

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 46px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 36px;
  background: rgba(255, 255, 255, 0.5);
  animation: thread 3.2s var(--ease) infinite;
}
@keyframes thread {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.cta .on-dark { max-width: 440px; margin: 0 auto 44px; }

/* Hero form — a flat cream panel, square, no shadow */
.hero__form {
  background: var(--cream);
  color: var(--body);
  padding: clamp(28px, 3vw, 44px);
  gap: 18px;
}
.hero__form .eyebrow { margin-bottom: 10px; }
.hero__form-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 6px;
}
.hero__form .field__input { padding: 6px 0 10px; }
.hero__form textarea.field__input { min-height: 72px; }
.hero__form .btn { margin-top: 2px; }
.form__note { font-size: 12.5px; color: var(--body); margin: -8px 0 0; }

/* --------------------------------------------------------------------------
   Split — photo beside a reading column
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__text { max-width: 480px; }
.split__text .heading { margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   Pillars — hairline grid of differentiators
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.pillar {
  padding: 48px 36px 52px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.pillar__index {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--body);
  margin-bottom: 36px;
}
.pillar__title,
.card__title,
.step__title,
.index-list__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 16px;
}
.pillar p { font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Cards — photo butted to a pale panel. No gap. No border. No radius.
   -------------------------------------------------------------------------- */
.card { background: var(--panel); color: var(--body); display: flex; flex-direction: column; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 40px 36px 44px; }
.card__body .eyebrow { margin-bottom: 20px; }
.card__body p { font-size: 15.5px; }

.card--feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-bottom: 1px;
}
.card--feature .card__media img { aspect-ratio: 16 / 10; height: 100%; }
.card--feature .card__body {
  padding: clamp(40px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.card--feature .card__title { font-size: 28px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;                     /* a hairline of mocha between panels */
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Index list — core services
   -------------------------------------------------------------------------- */
.index-list { border-top: 1px solid var(--hair); }
.index-list__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hair);
}
.index-list__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--body);
  line-height: 1.2;
  padding-top: 2px;
}
.index-list__title { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Steps — process
   -------------------------------------------------------------------------- */
.steps { margin: 40px 0 36px; border-top: 1px solid var(--hair); }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}
.step__num { font-family: var(--serif); font-size: 15px; letter-spacing: 0.3em; color: var(--body); padding-top: 4px; }
.step__title { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 15.5px; }
.section--stone .btn { border-color: var(--ink); color: var(--ink); }
.section--stone .btn:hover { background: var(--ink); color: var(--cream); }

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.testimonial { text-align: center; }
.testimonial__quote {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.5;
  color: var(--ink);
}
.testimonial__cite {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center;
}
.testimonial__sep { display: inline-block; width: 28px; height: 1px; background: var(--ink); opacity: 0.5; margin: 0 16px; }
.testimonial__nav { display: flex; justify-content: center; gap: 14px; margin-top: 48px; }
.dot { width: 6px; height: 6px; border: 1px solid var(--ink); opacity: 0.5; }
.dot--active { background: var(--ink); }

/* --------------------------------------------------------------------------
   Accordion — hairline and a tiny plus
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--hair); }
.accordion__item { border-bottom: 1px solid var(--hair); }
.accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.4;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::before,
.accordion__summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  background: var(--ink);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.accordion__summary::before { width: 13px; height: 1px; transform: translateY(-50%); }
.accordion__summary::after  { width: 1px; height: 13px; right: 14px; transform: translateY(-50%); }
.accordion__item[open] .accordion__summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.accordion__content { padding: 0 48px 30px 0; max-width: 640px; }
.accordion__content p { font-size: 16px; }

/* --------------------------------------------------------------------------
   Areas
   -------------------------------------------------------------------------- */
.areas {
  margin-top: 36px;
  columns: 2;
  column-gap: 40px;
  border-top: 1px solid var(--hair);
  padding-top: 24px;
}
.areas li {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
  break-inside: avoid;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Contact & form
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 6vw, 110px);
  align-items: stretch;
}
.form { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: block; }
.field__label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 10px;
}
.field__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  padding: 10px 0 12px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.6s var(--ease);
}
.field__input:focus { border-bottom-color: var(--mocha); }
textarea.field__input { resize: vertical; min-height: 120px; }
.form .btn { align-self: flex-start; margin-top: 8px; }

.contact__details { display: flex; flex-direction: column; }
.contact__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.contact__name .wordmark__amp { font-weight: 400; }
.contact__tag { max-width: 320px; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--hair); }
.contact__block { margin-bottom: 28px; }
.contact__block .eyebrow { margin-bottom: 8px; }
.contact__line {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.contact__actions { margin-top: 12px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact__actions .btn { margin-top: 0; }
.contact__actions .text-link { margin-top: 0; }
.contact__line a { border-bottom: 1px solid var(--hair); }
.map { min-height: 420px; background: var(--stone); }
.map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) sepia(0.18) contrast(0.92) brightness(1.02);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--olive);
  color: rgba(255, 255, 255, 0.9);
  padding: 96px 0 40px;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.wordmark--footer { font-size: 26px; }
.footer__tag { margin-top: 20px; max-width: 300px; font-size: 14.5px; }
.footer__col .eyebrow { color: rgba(255, 255, 255, 0.72); margin-bottom: 20px; }
.footer__col li { padding: 5px 0; }
.footer__col a { border-bottom: 1px solid transparent; transition: border-color 0.6s var(--ease); }
.footer__col a:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.footer__bottom {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--hair-light);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   Motion — slow, soft, linen-like
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__image, .cta__image, .hero__scroll::after { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 900px) {
  .split, .split--reverse, .contact { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__media { order: 0; }
  .split__text { max-width: 560px; }
  .split__media img { aspect-ratio: 4 / 3; }
  .card--feature { grid-template-columns: 1fr; }
  .card--feature .card__media img { aspect-ratio: 4 / 3; height: auto; }
  .hero { min-height: 0; padding: 80px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__content { max-width: 560px; }
  .map { min-height: 360px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 40px 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .areas { columns: 1; }
  .display { letter-spacing: 0.1em; }
  .heading { letter-spacing: 0.12em; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .hero__form { padding: 28px 22px; }
  .btn__num { display: none; }
  .btn--nav { padding: 11px 16px; }
  .index-list__item { grid-template-columns: 48px 1fr; }
}
