:root {
  --homix-space: clamp(4.5rem, 9vw, 8.25rem);
  --homix-ease: cubic-bezier(.22, 1, .36, 1);
}

main > .section,
#homix-salon-check,
.lead-form-section,
.hmx-consult-section {
  padding-block: var(--homix-space);
}

.hero .lead { max-width: 35rem; text-wrap: pretty; }
.hero h1 { text-wrap: balance; }
.phone-stage .fc1, .phone-stage .fc2 { display: none; }
.hero-note { font-size: .875rem; }
.hero .btn .arrow, .btn > .arrow { display: none; }
.section-head > p, .hmx-two-intro > p { max-width: 34rem; text-wrap: pretty; }
.section-head, .hmx-two-intro { column-gap: clamp(1.5rem, 5vw, 5rem); }
.section-head.hmx-stacked-intro,
.hmx-two-intro.hmx-stacked-intro {
  --homix-heading-offset: 0px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(.65rem, 1.6vw, 1.05rem);
}
.hmx-stacked-intro h2 { max-width: 25ch; margin-bottom: 0; }
.hmx-stacked-intro > p { margin: 0; }
.cream .eyebrow, .hmx-final-cta .eyebrow { color: #77503c; }
.problem-grid, .feature-grid { gap: clamp(.85rem, 2vw, 1.5rem); }
.problem, .feature { padding: clamp(1.5rem, 3vw, 2.1rem); min-height: auto; }
.problem h3:first-child { margin-top: 0; }
.feature p, .problem p { margin-bottom: 0; }
.step { min-height: auto; }
.reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: no-preference) {
  .phone-stage { perspective: 1100px; }
  .phone-stage .phone { transform-style: preserve-3d; }
  .feature, .problem, .hm-plan {
    transition: border-color .32s ease, box-shadow .45s var(--homix-ease);
  }
  .feature:is(:hover, :focus-within), .hm-plan:is(:hover, :focus-within) {
    border-color: rgba(239, 194, 163, .62);
    box-shadow: 0 15px 38px rgba(0, 0, 0, .13);
  }
  .problem:is(:hover, :focus-within) { border-color: #caa689; }
  .homix-reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, #b47750, var(--peach));
    transform-origin: left center;
    transform: scaleX(0);
  }

  @supports (animation-timeline: view()) {
    .homix-reading-progress {
      animation: homix-progress linear both;
      animation-timeline: scroll(root block);
    }

    .hero .phone {
      animation: homix-phone-scroll linear both;
      animation-timeline: view(block);
      animation-range: exit 0% exit 95%;
    }

    .section-head h2,
    .hmx-two-intro h2,
    .hmx-consult-section h2,
    #contact h2 {
      animation: homix-heading linear both;
      animation-timeline: view(block);
      animation-range: entry 2% cover 28%;
    }

    .feature-icon {
      animation: homix-icon linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 32%;
    }
  }
}

@keyframes homix-progress { to { transform: scaleX(1); } }
@keyframes homix-phone-scroll { to { translate: 0 -2rem; scale: .97; rotate: -.7deg; } }
@keyframes homix-heading {
  from { translate: 0 var(--homix-heading-offset, .54em); clip-path: inset(0 0 72%); }
  to { translate: 0 0; clip-path: inset(0 0 -12%); }
}
@keyframes homix-icon {
  from { scale: .8; rotate: -9deg; }
  to { scale: 1; rotate: 0deg; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-stage *, .hmx-story-tab { animation: none !important; transition: none !important; }
}

@media (min-width: 981px) and (max-height: 850px) {
  .hero { padding-top: 102px; padding-bottom: 38px; min-height: auto; }
  .hero .hero-grid, .hero .phone-stage { min-height: 560px; }
  .hero .phone { height: 552px; }
  .hero .chat { height: 394px; }
}

.hmx-comparison {
  padding-block: clamp(4rem, 7.5vw, 7rem);
  background: radial-gradient(ellipse at 80% 5%, #322720, transparent 65%), #1b1613;
  color: var(--white);
}
.hmx-comparison-intro { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.hmx-comparison-intro h2 { max-width: 25ch; margin: .65rem 0; }
.hmx-comparison-intro p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.hmx-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.5rem);
}
.hmx-comparison-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: #24201d;
}
.hmx-comparison-card.hmx-premium {
  border-color: #a87d62;
  background: linear-gradient(145deg, #372b24, #281f1a);
}
.hmx-comparison-label { margin: 0 0 1rem; color: var(--peach); font-size: .875rem; }
.hmx-quote { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.4; text-wrap: pretty; }
.hmx-comparison-card p { margin: 1.1rem 0 0; color: var(--muted); }

.hmx-roi {
  background: radial-gradient(ellipse at 78% 46%, #2b211b, transparent 65%), var(--ink);
  border-block: 1px solid var(--line);
  color: var(--white);
}
.hmx-roi-shell {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  grid-template-areas: "intro controls" "summary controls";
  grid-template-rows: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 1.5rem;
}
.hmx-roi-intro { grid-area: intro; align-self: end; }
.hmx-roi-controls { grid-area: controls; align-self: center; }
.hmx-roi-summary { grid-area: summary; align-self: start; }
.hmx-roi-intro h2 { max-width: 18ch; margin: .65rem 0 1rem; }
.hmx-roi-intro > p { max-width: 34ch; margin: 0; color: var(--muted); }
.hmx-roi-result { margin: 0 0 1.35rem; }
.hmx-roi-result-label { color: var(--muted); font-size: .9375rem; }
#hmx-roi-total {
  display: block;
  margin-block: .16em .12em;
  font-size: clamp(2.5rem, 5.5vw, 4.625rem);
  font-weight: 660;
  line-height: 1.05;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--peach);
  overflow-wrap: anywhere;
}
#hmx-roi-bookings { margin: 0 0 .65rem; }
.hmx-roi-disclaimer {
  margin: 0;
  max-width: 41ch;
  font-size: .875rem;
  color: var(--muted);
}
.hmx-roi-controls {
  display: grid;
  min-width: 0;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(.6rem, 2.2vw, 1.7rem) clamp(1.1rem, 3.5vw, 2.7rem);
  background: linear-gradient(156deg, #332923, #211b18);
  box-shadow: 0 25px 85px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .045);
}
.hmx-roi-field { padding: clamp(.85rem, 2vw, 1.3rem) 0; }
.hmx-roi-field + .hmx-roi-field { border-top: 1px solid rgba(239, 194, 163, .16); }
.hmx-roi-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .65rem;
}
.hmx-roi-field-head label { font-size: .9375rem; font-weight: 590; }
.hmx-roi-value {
  flex: none;
  color: var(--peach);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hmx-roi-range {
  margin-top: -.2rem;
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--muted);
}
.hmx-roi input[type="range"] {
  --hmx-fill: 0%;
  --hmx-track: linear-gradient(to right, var(--peach) 0 var(--hmx-fill), #695449 var(--hmx-fill) 100%);
  display: block;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hmx-roi input[type="range"]:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; border-radius: .7rem; }
.hmx-roi input[type="range"]::-webkit-slider-runnable-track { height: .375rem; border-radius: 10px; background: var(--hmx-track); }
.hmx-roi input[type="range"]::-moz-range-track { height: .375rem; border-radius: 10px; background: var(--hmx-track); }
.hmx-roi input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1.1875rem;
  height: 1.1875rem;
  margin-top: -.40625rem;
  border: 2px solid #211b18;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 1px var(--peach);
}
.hmx-roi input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: 1.1875rem;
  height: 1.1875rem;
  border: 2px solid #211b18;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 1px var(--peach);
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr auto;
  align-items: start;
  gap: clamp(1.35rem, 4vw, 3.5rem);
}
.footer .footer-contact { justify-self: start; gap: .3rem; }
.footer-platforms strong { margin-bottom: .15rem; }
.footer .footer-copy { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 780px) {
  .hmx-roi-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "controls" "summary";
    grid-template-rows: auto;
  }
  .hmx-roi-intro h2 { max-width: 24ch; }
  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hmx-comparison-grid { grid-template-columns: minmax(0, 1fr); }
  .hmx-roi-field-head label { overflow-wrap: anywhere; }
}

main > .hmx-about.section {
  padding-block: clamp(3.5rem, 6.5vw, 6rem);
  background: radial-gradient(ellipse at 82% 22%, #2b211c, transparent 65%), #191512;
}
.hmx-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hmx-about-story h2 { margin: .65rem 0 1.35rem; max-width: 22ch; text-wrap: balance; }
.hmx-about-story p { max-width: 55ch; color: var(--muted); margin: 0 0 .8rem; }
.hmx-about-links { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 1.5rem; }
.hmx-about-world { color: var(--peach); text-decoration: underline; text-underline-offset: .27em; font-size: .875rem; }
.hmx-founder-profile {
  border: 1px solid var(--line);
  border-radius: clamp(1.15rem, 3vw, 1.75rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(145deg, #332820, #241d19);
}
.hmx-founder-identity { display: grid; grid-template-columns: minmax(5rem, 9.5rem) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2vw, 1.5rem); }
.hmx-founder-identity img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .8rem; }
.hmx-founder-identity h3 { margin: .35rem 0 .4rem; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.12; overflow-wrap: anywhere; }
.hmx-founder-identity p { margin: 0; color: var(--muted); font-size: .9375rem; }
.hmx-founder-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.3rem; }
.hmx-founder-contact span { display: block; color: var(--muted); font-size: .8125rem; margin-bottom: .2rem; }
.hmx-founder-contact a { color: var(--peach); font-weight: 650; font-size: .9375rem; overflow-wrap: anywhere; }
.hmx-founder-contact a:hover { text-decoration: underline; }
.hmx-about-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(2rem, 4.5vw, 3.6rem) 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.hmx-about-steps li { padding: 1.1rem clamp(1rem, 2.4vw, 2rem); }
.hmx-about-steps li:first-child { padding-inline-start: 0; }
.hmx-about-steps li + li { border-inline-start: 1px solid var(--line); }
.hmx-about-steps strong { color: var(--peach); }
.hmx-about-steps p { color: var(--muted); font-size: .9375rem; margin: .25rem 0 0; }
@media (max-width: 800px) {
  .hmx-about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .hmx-founder-identity { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .hmx-about-steps { grid-template-columns: minmax(0, 1fr); }
  .hmx-about-steps li { padding-inline: 0; }
  .hmx-about-steps li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 350px) {
  .hmx-founder-contact { grid-template-columns: minmax(0, 1fr); }
}

.hmx-story-response { display: flex; flex-direction: column; position: relative; }
.hmx-story-typing {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  align-items: center;
  gap: .28rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: .875rem .875rem .875rem .3rem;
  background: var(--panel);
  opacity: 0;
  pointer-events: none;
}
.hmx-story-typing span { width: .33rem; height: .33rem; border-radius: 50%; background: var(--peach); }
