/* ==========================================================================
   ElevatteLife — home.css
   Homepage only (loaded from index.php, scoped to body.page-home).
   Each section has its own block below, so one section can be reverted
   without touching the others.
   ========================================================================== */

/* =========================================================================
   0. Foundation — tokens, rhythm, type, motion
   ========================================================================= */
.page-home,
.hm-scope {   /* .hm-scope: reuse the home hero styles on another page (About hero) */
  /* Brand palette from variables.css — green-based, no beige, no gold. */
  --hm-white: #FFFFFF;
  --hm-greenwhite: #F1F7F2;            /* = --bg-warm, very light green-white */
  --hm-mint: #E7F2EA;                  /* = --bg, the brand mint */
  --hm-mint-line: #CFE6D8;             /* = --brand-tint-strong, thin borders */
  --hm-green: #0B3D28;                 /* = --brand, deep green: headings, numbers, links, CTAs */
  --hm-green-deep: #031C10;            /* = --brand-deep, hover on deep green */
  --hm-green-mid: #0E7C40;             /* = --brand-mid, small icons */
  --hm-orange: #F1833E;                /* = --accent, small accents only */
  --hm-orange-soft: rgba(241, 131, 62, 0.18);
  --hm-ink: var(--hm-green);           /* headings */
  --hm-text: #3A3F3B;                  /* body copy */
  --hm-line: rgba(11, 61, 40, 0.12);
  --hm-radius: 18px;
  --hm-shadow: 0 2px 6px rgba(24, 32, 27, 0.04), 0 18px 40px -22px rgba(24, 32, 27, 0.22);
  --hm-shadow-lift: 0 4px 10px rgba(24, 32, 27, 0.05), 0 26px 50px -24px rgba(24, 32, 27, 0.3);

  /* Spacing system */
  --hm-section-y: 96px;
  --hm-gutter: 32px;
  --hm-gap-text: 18px;                 /* heading -> paragraph */
  --hm-gap-cta: 30px;                  /* paragraph -> CTA */
  --hm-header-h: 97px;                 /* shared sticky navbar height (hero fits under it) */

  background-color: var(--hm-white);
}

@media (max-width: 1024px) {
  .page-home,
  .hm-scope {
    --hm-section-y: 72px;
    --hm-gutter: 28px;
  }
}

@media (max-width: 640px) {
  .page-home,
  .hm-scope {
    --hm-section-y: 56px;
    --hm-gutter: 20px;
  }
}

/* Header: the shared site navbar (same as every other page); no home-only overrides. */

.page-home main {
  overflow-x: clip;   /* decorative shapes never cause sideways scroll */
}

/* Layout primitives */
.hm-section {
  padding-block: var(--hm-section-y);
  background-color: var(--hm-white);
}

.hm-section--mint {
  background-color: var(--hm-mint);
}

.hm-section--greenwhite {
  background-color: var(--hm-greenwhite);
}

.hm-container {
  width: 100%;
  max-width: calc(1200px + var(--hm-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--hm-gutter);
}

/* Type */
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-green);
}

.hm-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hm-orange);
  box-shadow: 0 0 0 4px var(--hm-orange-soft);
}

.hm-title {
  margin: 0;
  color: var(--hm-ink);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hm-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--hm-green);
}

.hm-text {
  margin: var(--hm-gap-text) 0 0;
  max-width: 56ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--hm-text);
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--hm-gap-cta);
}

/* One link style everywhere: deep green, green underline on hover. */
.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--hm-green);
  text-decoration: none;
  background-image: linear-gradient(var(--hm-green), var(--hm-green));
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  background-position: 0 100%;
  transition: background-size var(--dur) var(--ease);
}

.hm-link:hover,
.hm-link:focus-visible {
  background-size: 100% 1.5px;
}

.hm-link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.hm-link:hover .icon {
  transform: translate(2px, -2px);
}

/* Buttons: same deep green; gentle lift on hover. */
.page-home .btn,
.hm-scope .btn {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .btn:hover,
.hm-scope .btn:hover {
  transform: translateY(-2px);
}

.page-home .btn--primary,
.hm-scope .btn--primary {
  background-color: var(--hm-green);
  border-color: var(--hm-green);
}

.page-home .btn--primary:hover,
.hm-scope .btn--primary:hover {
  background-color: var(--hm-green-deep);
  box-shadow: 0 12px 24px -14px rgba(8, 48, 31, 0.6);
}

.page-home .btn--outline,
.hm-scope .btn--outline {
  color: var(--hm-green);
  border-color: rgba(11, 61, 40, 0.35);
  background: transparent;
}

.page-home .btn--outline:hover,
.hm-scope .btn--outline:hover {
  border-color: var(--hm-green);
  background: rgba(11, 61, 40, 0.04);
}

/* Motion: fade-up 20px over 0.7s, staggered with data-reveal-delay. */
.reveal-init .page-home [data-reveal],
.reveal-init .hm-scope [data-reveal] {
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init .page-home [data-reveal].is-visible,
.reveal-init .hm-scope [data-reveal].is-visible {
  transform: none;
}

.reveal-init .page-home [data-reveal][data-reveal-delay="1"],
.reveal-init .hm-scope [data-reveal][data-reveal-delay="1"] { transition-delay: 100ms; }
.reveal-init .page-home [data-reveal][data-reveal-delay="2"],
.reveal-init .hm-scope [data-reveal][data-reveal-delay="2"] { transition-delay: 200ms; }
.reveal-init .page-home [data-reveal][data-reveal-delay="3"],
.reveal-init .hm-scope [data-reveal][data-reveal-delay="3"] { transition-delay: 300ms; }
.reveal-init .page-home [data-reveal][data-reveal-delay="4"],
.reveal-init .hm-scope [data-reveal][data-reveal-delay="4"] { transition-delay: 400ms; }
.reveal-init .page-home [data-reveal][data-reveal-delay="5"],
.reveal-init .hm-scope [data-reveal][data-reveal-delay="5"] { transition-delay: 500ms; }

@media (max-width: 640px) {
  .hm-text {
    font-size: 0.9375rem;
  }
}

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

  .reveal-init .page-home [data-reveal],
.reveal-init .hm-scope [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   1. Hero — founder-led
   ========================================================================= */
.hm-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  /* One screen tall under the sticky header (capped at 760px), content
     centred, so the whole portrait is visible above the fold. */
  align-items: center;
  min-height: min(calc(100svh - var(--hm-header-h, 81px)), 760px);
  padding-block: 32px 48px;
  background-color: var(--hm-greenwhite);
  overflow: clip;
}

/* Two soft blurred mint shapes for depth. */
.hm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 8% 12%, rgba(175, 214, 190, 0.55), transparent 70%),
    radial-gradient(34% 42% at 82% 40%, rgba(196, 228, 207, 0.7), transparent 70%);
  filter: blur(30px);
}

.hm-hero__grid {
  display: grid;
  /* Text 55% / image 45% inside the 1200px container. */
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: 64px;
}

.hm-hero__title {
  margin: 0;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--hm-ink);
}

.hm-hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--hm-green);
}

.hm-hero__lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  max-width: 44ch;
}

.hm-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 0.9375rem;   /* 15px: on the type scale (was 14px) */
  color: var(--hm-text);
}

.hm-hero__meta .icon {
  width: 16px;
  height: 16px;
  color: var(--hm-green-mid);
}

/* Visual: yantra halo + arch portrait + floating name card */
.hm-hero__visual {
  position: relative;
  display: grid;
  place-items: center;   /* portrait centred in its column: no dead gap */
  padding-block: 8px 28px;
}

.hm-hero__yantra {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(128%, 640px);
  aspect-ratio: 1;
  translate: -50% -50%;   /* separate from transform, which the rotation uses */
  color: var(--hm-green);
  opacity: 0.12;
  z-index: 0;
  animation: hm-spin 75s linear infinite;
}

.hm-hero__yantra * {
  vector-effect: non-scaling-stroke;
}

.hm-hero__frame {
  position: relative;
  z-index: 1;
  /* 420 x 520 arch; shrinks on short windows so it always fits the fold. */
  width: min(100%, 420px, calc((100svh - var(--hm-header-h, 81px) - 110px) * 420 / 520));
  min-width: 260px;
}

.hm-hero__arch {
  position: relative;
  aspect-ratio: 420 / 520;
  /* Semicircle top: horizontal radius = half the width, vertical radius =
     half the width as a share of the height (210 / 520). A 999px radius
     made the browser shrink every corner, leaving square-ish bottoms. */
  border-radius: 50% 50% 24px 24px / 40.4% 40.4% 24px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #D7EBDE 0%, #F4FAF6 70%, #FFFFFF 100%);   /* mint to white */
  box-shadow: 0 30px 60px -34px rgba(24, 32, 27, 0.35);
}

/* Transparent cutout filling the arch to its bottom edge; anchored at the
   top so the head is never cut on the shorter mobile arch. */
.hm-hero__arch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hm-hero__card {
  position: absolute;
  z-index: 2;
  /* Overlaps the arch's bottom-left corner, staying inside the image column
     (the floating WhatsApp button sits at the far right of the screen). */
  bottom: 28px;
  left: -24px;
  display: grid;
  gap: 2px;
  padding: 12px 20px 12px 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--hm-shadow);
  white-space: nowrap;
  animation: hm-float 6s ease-in-out infinite;
}

.hm-hero__card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hm-green);
}

.hm-hero__card-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--hm-ink);
}

.hm-hero__card-role {
  font-size: 0.8125rem;
  color: var(--hm-text);
}

/* --------------------------------------- Home hero: portrait panel ------
   Art direction: a full-bleed fresh-green hero. On the right, Neha stands
   in a tall panel with a rounded top that rises from the hero's bottom edge,
   so the portrait is grounded (her photo ends where the panel ends) instead
   of floating. A faint yantra ring behind the panel, one yellow accent, and
   her name badge in the open space beside her head tie text and portrait
   together. Brand: #0B3D28, #0E7C40, #F1833E, #FCC013. */
.page-home .hm-hero {
  /* Exactly one screen under the navbar: the whole hero fits the viewport. */
  --hero-h: max(500px, calc(100svh - var(--hm-header-h, 97px)));
  min-height: var(--hero-h);
  padding-block: 0;
  align-items: stretch;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(207, 230, 216, 0.55), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(231, 242, 234, 0.9), transparent 70%),
    #F1F7F2;
}

.page-home .hm-hero__bg {
  display: none;
}

.page-home .hm-hero__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  gap: clamp(32px, 4vw, 64px);
  min-height: var(--hero-h);
}

.page-home .hm-hero__copy {
  align-self: center;
  /* Equal top/bottom padding: the text block sits exactly in the vertical
     centre of the left column. */
  padding-block: 48px;
}

/* Short screens: tighter type and spacing so the text fits one screen. */
@media (min-width: 861px) and (max-height: 760px) {
  .page-home .hm-hero__copy {
    padding-block: 24px;
  }

  .page-home .hm-hero__title {
    font-size: clamp(40px, min(4.4vw, 7.2vh), 66px);
  }

  .page-home .hm-hero__title::after {
    margin-top: 16px;
  }

  .page-home .hm-hero__lead {
    margin-top: 14px;
  }

  .page-home .hm-hero__actions {
    margin-top: 22px;
  }

  .page-home .hm-hero__meta {
    margin-top: 16px;
  }
}

.page-home .hm-hero__title {
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* Small yellow-to-orange rule under the headline: the warm accent on the left. */
.page-home .hm-hero__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, #FCC013, #F1833E);
}

/* ---- Right column: the portrait ---- */
.page-home .hm-port {
  position: relative;
  align-self: stretch;
  display: block;
  min-height: 100%;
  padding: 0;
}

/* Panel: rounded top, flush with the hero's bottom edge. */
.page-home .hm-port__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: min(100%, 470px);
  /* 44px gap under the navbar, minus the same 36px lift as the text
     (padding-block 24px / 96px on .hm-hero__copy), so both rise together. */
  height: calc(100% - 8px);
  translate: -50% 0;
  overflow: hidden;
  border-radius: 240px 240px 0 0;
  background: linear-gradient(180deg, #DCEEE2 0%, #C3E1CD 55%, #A9D3B8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Soft daylight inside the panel, behind her head. */
.page-home .hm-port__glow {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 90%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 65%);
}

/* Neha: her photo ends exactly at the panel's bottom (no floating edge);
   head, shoulders and hands all comfortably inside. */
.page-home .hm-port__figure {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 92%;
  aspect-ratio: 900 / 1114;
  max-width: 104%;
  translate: -50% 0;
}

.page-home .hm-port__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 18px 24px rgba(3, 28, 16, 0.14));
}

/* One small yellow sun accent on the panel's upper-right shoulder. */
.page-home .hm-port__accent {
  position: absolute;
  z-index: 2;
  top: calc(8px + 9%);
  right: max(8px, calc(50% - 235px + 18px));
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FCC013;
  box-shadow: 0 0 0 7px rgba(252, 192, 19, 0.18);
}

/* Entrance: panel rises in, Neha follows, the yellow accent last. */
.reveal-init .page-home .hm-port[data-reveal] {
  transform: none;
}

.reveal-init .page-home .hm-port .hm-port__panel {
  opacity: 0;
  translate: -50% 24px;
  transition: opacity 700ms ease, translate 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init .page-home .hm-port .hm-port__figure {
  opacity: 0;
  translate: -50% 20px;
  transition: opacity 800ms ease 300ms, translate 900ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}

.reveal-init .page-home .hm-port .hm-port__accent {
  opacity: 0;
  transition: opacity 700ms ease 850ms;
}

.reveal-init .page-home .hm-port.is-visible .hm-port__panel,
.reveal-init .page-home .hm-port.is-visible .hm-port__figure {
  opacity: 1;
  translate: -50% 0;
}

.reveal-init .page-home .hm-port.is-visible .hm-port__accent {
  opacity: 1;
}

.page-home .wa-float {
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color var(--dur) var(--ease);
}

/* Home: the WhatsApp bubble stays hidden while the hero (with its own CTAs)
   is on screen, at every width. */
.page-home .wa-float.is-tucked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

/* Photo enters with a slight scale (0.96 -> 1) instead of the slide-up. */
.reveal-init .page-home .hm-hero__visual[data-reveal],
.reveal-init .hm-scope .hm-hero__visual[data-reveal] {
  transform: scale(0.96);
}

.reveal-init .page-home .hm-hero__visual[data-reveal].is-visible,
.reveal-init .hm-scope .hm-hero__visual[data-reveal].is-visible {
  transform: none;
}

@keyframes hm-spin {
  to { transform: rotate(360deg); }
}

@keyframes hm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 860px) {
  .hm-hero {
    min-height: 0;
    padding-block: 32px var(--hm-section-y);
  }

  .hm-hero__title {
    font-size: clamp(28px, 8.7vw, 40px);   /* ~34px at 390px */
  }

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

  /* Phones/tablets: headline, then Neha's photo, then the rest of the text. */
  .hm-hero__copy {
    display: contents;
  }

  .hm-hero__copy > .hm-eyebrow { order: 1; justify-self: start; }
  .hm-hero__title { order: 2; }
  .hm-hero__visual { order: 3; }
  .hm-hero__lead { order: 4; }
  .hm-hero__actions { order: 5; }
  .hm-hero__meta { order: 6; }

  .hm-hero__visual {
    margin-top: 20px;
    padding: 12px 0 40px;   /* room for the card overlapping the arch */
  }

  /* 260 x 300 arch, centred. */
  .hm-hero__frame {
    width: 260px;
    min-width: 0;
    max-width: 100%;
  }

  .hm-hero__arch {
    aspect-ratio: 260 / 300;
    border-radius: 50% 50% 20px 20px / 43.3% 43.3% 20px 20px;   /* 130 / 300 */
  }

  /* Card narrower than the arch, centred over its bottom edge. */
  .hm-hero__card {
    left: 16px;
    right: 16px;
    bottom: -24px;
    padding: 10px 14px 10px 28px;
    white-space: normal;
    text-align: left;
  }

  .hm-hero__card::before {
    left: 13px;
    top: 17px;
  }

  .hm-hero__card-name {
    font-size: 1rem;
  }

  .hm-hero__card-role {
    font-size: 0.75rem;
  }

  .hm-hero__yantra {
    width: min(118vw, 460px);
  }

  /* Home portrait on phones/tablets: text and CTAs first, then the panel
     rising from the hero's bottom edge. */
  .page-home .hm-hero {
    --hero-h: auto;
    min-height: 0;
  }

  .page-home .hm-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
  }

  .page-home .hm-hero__copy {
    display: block;
    padding-block: 28px 32px;
  }

  .page-home .hm-hero__title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .page-home .hm-hero__title::after {
    margin-top: 16px;
  }

  .page-home .hm-port {
    order: 2;
    height: clamp(360px, 100vw, 440px);
    margin: 0;
  }

  .page-home .hm-port__panel {
    width: min(100%, 330px);
    height: calc(100% - 28px);
    border-radius: 170px 170px 0 0;
  }

  .page-home .hm-port__accent {
    top: calc(28px + 8%);
    right: max(6px, calc(50% - 165px + 14px));
  }

  /* The floating WhatsApp button would cover the hero's text, card or
     buttons on small screens; main.js tucks it away while the hero is on
     screen (the hero has its own CTAs). */
  .wa-float {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color var(--dur) var(--ease);
  }

  .wa-float.is-tucked {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
  }
}

/* Smallest phones: keep the name card on the arch's left so it never meets
   the right edge. */
@media (max-width: 360px) {
  .hm-hero__card {
    left: 12px;
    right: 48px;
  }
}

@media (max-width: 640px) {
  .hm-hero__actions {
    flex-direction: column;
  }

  .hm-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hm-hero__meta {
    font-size: 0.8125rem;
  }
}

/* =========================================================================
   2. Areas of guidance — slim icon strip (slow marquee, pauses on hover)
   ========================================================================= */
.hm-strip {
  border-block: 1px solid var(--hm-mint-line);
  background-color: var(--hm-white);
  overflow: hidden;
}

.hm-strip__viewport {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hm-strip__track {
  display: flex;
  width: max-content;
  animation: hm-marquee 60s linear infinite;
}

.hm-strip:hover .hm-strip__track {
  animation-play-state: paused;
}

.hm-strip__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 20px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--hm-ink);
  white-space: nowrap;
}

.hm-strip__item .icon {
  width: 22px;
  height: 22px;
  color: var(--hm-green);
}

/* Small mint dot between items */
.hm-strip__item::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline: 36px;
  border-radius: 50%;
  background: var(--hm-mint-line);
}

@keyframes hm-marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .hm-strip__item {
    padding-block: 16px;
    font-size: 1rem;
  }

  .hm-strip__item::after {
    margin-inline: 24px;
  }
}

/* =========================================================================
   3. What is ElevatteLife
   ========================================================================= */
.page-home #what-is-elevattelife {
  background-color: var(--hm-mint);   /* beats the old id rule in components.css */
}

.hm-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hm-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hm-point {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hm-line);
}

.hm-point__num {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--hm-green);
}

.hm-point__body {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hm-text);
}

.hm-point__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  color: var(--hm-ink);
}

.hm-about .hm-actions {
  margin-top: 24px;
}

.hm-about__visual {
  display: grid;
  place-items: center;
}

.hm-compass {
  width: min(100%, 360px);
  height: auto;
  color: var(--hm-green);
  overflow: visible;
}

.hm-compass__accent {   /* centre and north pointer */
  color: var(--hm-green);
  stroke: var(--hm-green);
  fill: rgba(11, 61, 40, 0.08);
}

.hm-compass circle.hm-compass__accent,
.hm-compass path.hm-compass__accent {
  fill: var(--hm-green);
}

.hm-compass__labels text {
  font-family: var(--font-display);
  fill: var(--hm-green);
}

.hm-compass__main {
  font-size: 13px;
  font-weight: 600;
}

.hm-compass__sub {
  font-size: 8.5px;
  font-weight: 500;
  fill: var(--hm-green) !important;
  fill-opacity: 0.6;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .hm-about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-compass {
    width: min(70vw, 260px);
  }
}

@media (max-width: 560px) {
  .hm-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================================
   4. Services — four identical cards
   ========================================================================= */
.page-home #services {
  background-color: var(--hm-white);
}

/* Section intro with a side link (no divider line). */
.hm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.hm-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hm-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.hm-card__link:hover,
.hm-card__link:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--hm-shadow-lift);
}

/* Same 4:5 ratio and the same soft warm treatment on every image. */
.hm-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--hm-mint);
}

.hm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.98);
  transition: transform 0.8s var(--ease-out);
}

.hm-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hm-mint);   /* same soft green tint on every image */
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
}

.hm-card__link:hover .hm-card__media img {
  transform: scale(1.05);
}

.hm-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.hm-card__num {
  font-family: var(--font-display);
  font-size: 0.9375rem;   /* 15px: on the type scale (was 14px) */
  font-weight: var(--fw-semibold);
  color: var(--hm-green);
}

/* Short orange line under each service number */
.hm-card__num::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--hm-orange);
}

.hm-card__title {
  margin: 6px 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--hm-ink);
}

.hm-card__text {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hm-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--hm-green);
}

.hm-card__more .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.hm-card__link:hover .hm-card__more .icon {
  transform: translate(2px, -2px);
}

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

/* Phones: horizontal swipe cards. */
@media (max-width: 640px) {
  .page-home .hm-cards {   /* beats the ul[role="list"] reset */
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;   /* smaller cards; the next one peeks in */
    gap: 14px;
    margin-inline: calc(var(--hm-gutter) * -1);
    padding: 4px var(--hm-gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--hm-gutter);
    scrollbar-width: none;
  }

  .hm-cards::-webkit-scrollbar {
    display: none;
  }

  .hm-card {
    scroll-snap-align: start;
  }

  .hm-card__media {
    aspect-ratio: 1 / 1;   /* shorter cards on phones, same for all four */
  }

  .hm-card__body {
    padding: 14px 14px 16px;
  }

  .hm-card__title {
    font-size: 1.0625rem;
  }

  .hm-card__more {
    padding-top: 12px;
  }
}

/* =========================================================================
   5. Our Story — four-step timeline (active step set by main.js data-story)
   ========================================================================= */
.page-home #our-story {
  background-color: var(--hm-greenwhite);   /* beats the old id rule in components.css */
}

.hm-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.hm-story__media {
  position: sticky;
  top: 112px;
}

.hm-story__frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--hm-radius);
  overflow: hidden;
  box-shadow: var(--hm-shadow);
}

.hm-story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}

.hm-steps {
  position: relative;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

/* The thin vertical line the dots sit on */
.hm-steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(14, 124, 64, 0.3);   /* stronger connecting line (was 12% / 1px) */
}

.hm-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0 18px 32px;
  opacity: 0.75;   /* 0.5 dropped body text below 4.5:1 contrast */
  transition: opacity 0.5s var(--ease);
}

.hm-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(14, 124, 64, 0.55);
  border-radius: 50%;
  background: var(--hm-greenwhite);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hm-step.is-active {
  opacity: 1;
}

.hm-step.is-active::before {
  border-color: var(--hm-orange);
  background: var(--hm-orange);
  box-shadow: 0 0 0 5px var(--hm-orange-soft);
}

.hm-step__num {
  padding-top: 4px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--hm-green-mid);
}

.hm-step__title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--hm-ink);
}

.hm-step__text {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hm-text);
}

@media (max-width: 860px) {
  .hm-story__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Phones/tablets: the stones photo becomes a faded backdrop behind the
     whole story, under a green-white veil so the text stays easy to read. */
  .hm-story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  .hm-story__media {
    position: absolute;
    inset: 0;
    z-index: -1;
  }

  .reveal-init .page-home .hm-story__media[data-reveal] {
    transform: none;   /* fade only; a sliding backdrop looks odd */
  }

  .hm-story__frame {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .hm-story__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(241, 247, 242, 0.86) 0%,
      rgba(241, 247, 242, 0.82) 45%,
      rgba(241, 247, 242, 0.93) 75%,
      rgba(241, 247, 242, 0.97) 100%);
  }

  .hm-story__frame img {
    filter: grayscale(1) brightness(1.7) contrast(0.6);   /* lift the dark cloth so the veil stays even */
  }
}

@media (max-width: 640px) {
  .hm-step__text {
    font-size: 0.9375rem;
  }
}

/* =========================================================================
   6. CTA band: the shared site style (components.css), same as every page.
   ========================================================================= */

/* Same section padding as the other pages: 96 / 72 / 56. */
.page-home .cta-band {
  padding-block: 96px;
}

@media (max-width: 1024px) {
  .page-home .cta-band { padding-block: 72px; }
}

@media (max-width: 640px) {
  .page-home .cta-band { padding-block: 56px; }
}

/* =========================================================================
   7. Footer (shared include, restyled on the homepage only)
   ========================================================================= */
.page-home .site-footer {
  background: var(--hm-white);
  border-top: 3px solid var(--hm-green);
  font-size: 1rem;
  color: var(--hm-text);
}

.page-home .footer-grid {
  gap: 40px 48px;
  padding-bottom: 40px;
}

.page-home .footer-col .footer-heading {
  margin-bottom: 18px;
}

.page-home .footer-links {
  gap: 12px;
}

.page-home .footer-contact {
  gap: 12px;
}

.page-home .site-footer a {
  color: var(--hm-green);
}

.page-home .site-footer a:hover,
.page-home .footer-links a:hover {
  color: var(--hm-green-deep);
  text-decoration: underline;
  text-decoration-color: var(--hm-green);
  text-underline-offset: 4px;
}

.page-home .footer-tagline {
  color: var(--hm-green);
}

.page-home .footer-brand__text {
  font-size: 0.9375rem;
  color: var(--hm-text);
  border-top-color: var(--hm-line);
}

.page-home .footer-contact__row svg {
  color: var(--hm-green-mid);
}

.page-home .footer-bottom {
  font-size: 0.875rem;
  color: var(--hm-text);
  border-top-color: var(--hm-line);
}

@media (max-width: 640px) {
  .page-home .site-footer {
    font-size: 0.9375rem;
  }
}

/* ---------------------------------------------- Usability audit fixes ---- */
/* 1. Type scale: hero lead on the 17px step (its clamp landed near 19px).
   Phones keep their 15px body size. */
@media (min-width: 641px) {
  .page-home .hm-hero__lead {
    font-size: 1.0625rem;
  }
}

/* 3. Hero label in sentence case (all-caps only for short section labels);
      also on the pages that reuse this hero (.hm-scope). */
.page-home .hm-hero__copy > .hm-eyebrow,
.hm-scope .hm-hero__copy > .hm-eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
}

/* 2. Thin decorative bars use the pill radius, like every other pill. */
.page-home .hm-hero__title::after {
  border-radius: 999px;
}

/* 6. "All consultations" sits under the services heading, not far right. */
.page-home .hm-services .hm-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .hm-services .hm-head .hm-link {
  font-size: 1rem;
}

/* 1. Type scale: last off-scale sizes snapped to their neighbours. */
.page-home .hm-strip__item,
.page-home .hm-point__body strong {
  font-size: 1.0625rem;   /* 18px -> 17px */
}

.page-home .footer-bottom p {
  font-size: 0.8125rem;   /* 14px -> 13px */
}

/* ------------------------------------------- Usability audit fixes (2) --- */
/* 1. Section labels in sentence case (long all-caps is slow to read);
      matches the hero label. */
.page-home .hm-eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
}

/* 3. Story timeline: the scroll-tracked step is marked in brand green, not
      orange, so no step looks like a special "current" status. */
.page-home .hm-step.is-active::before {
  border-color: var(--hm-green-mid);
  background: var(--hm-green-mid);
  box-shadow: 0 0 0 5px rgba(14, 124, 64, 0.16);
}

/* 4. More breathing room around the location line under the CTAs. */
.page-home .hm-hero__meta {
  margin-top: 28px;
}

@media (max-width: 860px) {
  .page-home .hm-hero__copy {
    padding-bottom: 44px;   /* space before the portrait panel */
  }
}
