/* Home page refinements. Other route pages retain their existing layouts. */
.home-page .benefit-grid {
  grid-template-rows: minmax(190px, auto) minmax(200px, auto);
  gap: 16px;
}
.home-page .benefit {
  min-height: 0;
  padding: 25px 28px;
}
.home-page .lead-benefit {
  min-height: 406px;
  padding: 29px 32px;
}
.home-page .benefit h3 { margin: 0; }
.home-page .responsible-benefit,
.home-page .quality-benefit,
.home-page .guarantee-benefit {
  display: flex;
  align-items: center;
}
.home-page .design-benefit { min-height: 200px; }
.home-page .guarantee-benefit h3 { font-size: clamp(25px, 2.6vw, 36px); }
.home-page .office-benefit {
  height: 200px;
  min-height: 200px;
  margin-top: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}
.home-page .office-copy { padding: 28px 32px; position: relative; z-index: 1; }
.home-page .office-copy h3 { font-size: clamp(26px, 2.7vw, 34px); }
.home-page .office-copy p { font-size: 17px; margin-top: 10px; }
.home-page .office-photo {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(90deg, transparent, black 30%);
}
.home-page .turnkey-meaning-grid li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 6px 10px;
  min-height: 0;
  padding: 17px 21px 19px;
}
.home-v2 .project-visit-offer {
  max-width: 1200px;
  margin: 52px auto 0;
  text-align: center;
}
.home-v2 .project-visit-offer h3 {
  margin: 0 0 14px;
  font: 600 clamp(22px, 2.15vw, 32px)/1.25 Unbounded, Montserrat, sans-serif;
  letter-spacing: -.035em;
}
.home-v2 .project-visit-offer p {
  max-width: 95ch;
  margin: 0 auto 22px;
  font-size: 17px;
  line-height: 1.55;
}
.home-v2 .project-visit-offer .button { min-width: 240px; }
@media (min-width: 1100px) {
  .home-v2 .project-visit-offer h3 { white-space: nowrap; }
}
@media (max-width: 640px) {
  .home-v2 .project-visit-offer { margin-top: 34px; }
  .home-v2 .project-visit-offer h3 { font-size: 23px; }
  .home-v2 .project-visit-offer p { font-size: 15px; }
  .home-v2 .project-visit-offer .button { width: 100%; }
}
.home-page .turnkey-meaning-grid li .turnkey-number { grid-column: 1; grid-row: 1; align-self: baseline; }
.home-page .turnkey-meaning-grid h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: clamp(18px, 1.5vw, 21px); }
.home-page .turnkey-meaning-grid p { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 1.45; }
.home-page .turnkey-meaning-grid .turnkey-guarantee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, .35fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 18px;
  min-height: 190px;
}
.home-page .turnkey-meaning-grid .turnkey-guarantee .turnkey-number { grid-column: 1; grid-row: 1; align-self: start; margin-top: 3px; }
.home-page .turnkey-meaning-grid .turnkey-guarantee-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.home-page .turnkey-meaning-grid .turnkey-guarantee-copy h3 { margin: 0 0 12px; }
.home-page .turnkey-meaning-grid .turnkey-guarantee-copy p { display: block; max-width: 60ch; margin: 0; }
.home-page .turnkey-meaning-grid .turnkey-guarantee-mark {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  row-gap: 2px;
  min-width: 0;
  border-left: 1px solid #ffffff4a;
  padding-left: 24px;
}
.home-page .turnkey-guarantee-mark svg { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; align-self: center; }
.home-page .turnkey-guarantee-mark strong { grid-column: 2; grid-row: 1; font: 700 clamp(18px, 1.8vw, 25px)/1.15 Montserrat, sans-serif; overflow-wrap: break-word; }
.home-page .turnkey-guarantee-mark span { grid-column: 2; grid-row: 2; font-size: 14px; line-height: 1.35; }
@media (max-width: 640px) {
  .home-page .turnkey-meaning-grid .turnkey-guarantee { grid-template-columns: auto minmax(0, 1fr); }
  .home-page .turnkey-meaning-grid .turnkey-guarantee-mark { grid-column: 2; grid-row: 2; margin-top: 20px; }
}
@media (max-width: 850px) {
  .home-page .turnkey-meaning-grid .turnkey-guarantee {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
    align-items: start;
  }
  .home-page .turnkey-meaning-grid .turnkey-guarantee .turnkey-number { grid-column: 1; grid-row: 1; }
  .home-page .turnkey-meaning-grid .turnkey-guarantee-copy { grid-column: 2; grid-row: 1; }
  .home-page .turnkey-meaning-grid .turnkey-guarantee-mark {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin-top: 10px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #ffffff4a;
  }
  .home-page .turnkey-meaning-grid .turnkey-guarantee-copy h3,
  .home-page .turnkey-meaning-grid .turnkey-guarantee-copy p { overflow-wrap: break-word; }
}
@media (min-width: 1051px) {
  .home-page .turnkey-meaning h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(26px, 2.6vw, 38px);
  }
  .home-page:not(.turnkey-page) .turnkey-meaning h2 { white-space: normal; }
}

@media (min-width: 1100px) {
  .home-page .turnkey-meaning-grid li,
  .home-page .turnkey-meaning-grid .turnkey-guarantee {
    height: auto;
    min-height: 190px;
    padding: 20px 25px;
    gap: 12px 14px;
  }
  .home-page .turnkey-meaning-grid li .turnkey-number { font-size: 17px; }
  .home-page .turnkey-meaning-grid li h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
  .home-page .turnkey-meaning-grid li p { font-size: 17px; line-height: 1.4; }
  .home-page .turnkey-meaning-grid .turnkey-guarantee { gap: 18px; }
}

@media (min-width: 1100px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .home-page .turnkey-meaning.story-active {
    --story-card-height: clamp(112px, calc(25svh - 40px), 190px);
    padding-block: 0;
  }
  .home-page:not(.turnkey-page) .turnkey-meaning.story-active {
    --story-card-height: clamp(140px, calc(25svh - 50px), 170px);
  }
  .home-page .story-active .turnkey-story-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    isolation: isolate;
  }
  .home-page .story-active .turnkey-story-stage > h2 {
    flex: none;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
  }
  .home-page .story-active .turnkey-meaning-grid {
    flex: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, var(--story-card-height));
    gap: 10px 14px;
  }
  .home-page .story-active .turnkey-meaning-grid li,
  .home-page .story-active .turnkey-meaning-grid .turnkey-guarantee {
    height: var(--story-card-height);
    min-height: var(--story-card-height);
    padding: clamp(12px, 1.8vh, 20px) clamp(16px, 2vw, 25px);
    gap: clamp(4px, .7vh, 8px) 12px;
    opacity: 0;
  }
  .home-page .story-active .turnkey-meaning-grid li .turnkey-number { font-size: clamp(13px, 1.5vh, 17px); }
  .home-page .story-active .turnkey-meaning-grid li h3 { font-size: clamp(16px, 2.6vh, 28px); line-height: 1.1; }
  .home-page .story-active .turnkey-meaning-grid li p { font-size: clamp(12px, 1.55vh, 17px); line-height: 1.35; }
  .home-page .story-active .turnkey-meaning-grid .turnkey-guarantee { gap: 14px; }
  .home-page .story-active .turnkey-meaning-grid .turnkey-guarantee-copy h3 {
    margin: 0 0 4px;
    font-size: clamp(18px, 2.5vh, 25px);
  }
  .home-page .story-active .turnkey-meaning-grid .turnkey-guarantee-copy p {
    font-size: clamp(12px, 1.65vh, 15px);
  }
  .home-page .story-active .turnkey-guarantee-mark { padding-left: clamp(12px, 2vw, 24px); }
  .home-page .story-active .turnkey-guarantee-mark svg { width: 34px; height: 34px; margin: 0; }
  .home-page .story-active .turnkey-guarantee-mark strong { font-size: clamp(16px, 2.2vh, 22px); line-height: 1.12; }
  .home-page .story-active .turnkey-guarantee-mark span { font-size: clamp(11px, 1.5vh, 14px); }
  .home-page .story-active .turnkey-meaning-grid .turnkey-guarantee-mark,
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-mark {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 10px;
    row-gap: 2px;
    min-width: 0;
    border-left: 1px solid #ffffff4a;
  }
  .home-page .story-active .turnkey-story-feature {
    position: absolute;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 18px;
    overflow: hidden;
    padding: var(--feature-padding, 38px);
    border: 1px solid #d9e4ed;
    border-radius: var(--feature-radius, 27px);
    color: #393736;
    pointer-events: none;
    box-shadow: 0 28px 80px #2b405a1e;
    will-change: left, top, width, height, opacity;
  }
  .home-page .story-active .turnkey-story-feature.is-guarantee {
    grid-template-columns: auto minmax(0, 1fr) minmax(170px, .35fr);
    grid-template-rows: auto;
    align-items: center;
    color: #fff;
    border-color: #393736;
  }
  .home-page .story-active .turnkey-story-feature .turnkey-number {
    grid-column: 1;
    grid-row: 1;
    align-self: baseline;
    font-size: var(--feature-number-size, 21px);
  }
  .home-page .story-active .turnkey-story-feature h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font: 700 var(--feature-heading-size, 37px)/1.15 Montserrat, sans-serif;
    letter-spacing: -.035em;
  }
  .home-page .story-active .turnkey-story-feature p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 44ch;
    font-size: var(--feature-copy-size, 24px);
    line-height: 1.45;
    font-weight: 500;
  }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-copy { grid-column: 2; grid-row: 1; }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-copy h3 { margin: 0 0 4px; font-size: var(--feature-heading-size, 37px); }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-copy p { display: block; max-width: 60ch; font-size: var(--feature-copy-size, 24px); }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-mark { grid-column: 3; grid-row: 1; }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-number { align-self: start; margin-top: 3px; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 1099px),
       (prefers-reduced-motion: no-preference) and (max-height: 759px) {
  .home-page .turnkey-meaning.story-active { padding-block: 0; }
  .home-page .story-active .turnkey-story-stage { position: relative; isolation: isolate; }
  .home-page .story-active .turnkey-story-stage > h2 { opacity: 0; transform: translateY(20px); }
  .home-page .story-active .turnkey-meaning-grid li { opacity: 0; }
  .home-page .story-active .turnkey-story-feature {
    position: absolute;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 14px;
    overflow: hidden;
    padding: var(--feature-padding, 30px);
    border: 1px solid #d9e4ed;
    border-radius: var(--feature-radius, 27px);
    color: #393736;
    pointer-events: none;
    box-shadow: 0 28px 80px #2b405a1e;
    will-change: left, top, width, height, opacity;
  }
  .home-page .story-active .turnkey-story-feature .turnkey-number {
    grid-column: 1;
    grid-row: 1;
    align-self: baseline;
    font-size: var(--feature-number-size, 21px);
  }
  .home-page .story-active .turnkey-story-feature h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font: 700 var(--feature-heading-size, 37px)/1.15 Montserrat, sans-serif;
    letter-spacing: -.035em;
  }
  .home-page .story-active .turnkey-story-feature p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 44ch;
    margin: 0;
    font-size: var(--feature-copy-size, 24px);
    line-height: 1.4;
    font-weight: 500;
  }
  .home-page .story-active .turnkey-story-feature.is-guarantee {
    grid-template-columns: auto minmax(0, 1fr) minmax(130px, .35fr);
    grid-template-rows: auto;
    align-items: center;
    color: #fff;
    border-color: #393736;
  }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-copy { grid-column: 2; grid-row: 1; }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-copy h3 { margin: 0 0 4px; }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-copy p { display: block; max-width: 60ch; font-size: var(--feature-copy-size, 24px); }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-mark { grid-column: 3; grid-row: 1; }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .home-page .story-active .turnkey-story-feature.is-guarantee {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-copy { grid-column: 2; grid-row: 1; }
  .home-page .story-active .turnkey-story-feature.is-guarantee .turnkey-guarantee-mark {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #ffffff4a;
  }
}

/* On phones each card enters quickly as it reaches the viewport. */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .home-page .turnkey-meaning.story-mobile-active { overflow-x: clip; }
  .home-page .turnkey-meaning.story-mobile-active .turnkey-meaning-grid li {
    opacity: 0;
    transform: translateX(calc(100vw + 32px));
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease;
  }
  .home-page .turnkey-meaning.story-mobile-active .turnkey-meaning-grid li.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-page .situation-grid > a {
    transition: background-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  }
  .home-page .situation-grid > a:hover {
    background: #dcecf8;
    box-shadow: 0 10px 26px #3d698f22;
  }
  .home-page .benefits :is(.benefit, .office-benefit),
  .home-page .turnkey-meaning-grid li,
  .home-page .case-card {
    position: relative;
    scale: 1;
    transition: scale 280ms cubic-bezier(.23, 1, .32, 1), filter 280ms ease, opacity 280ms ease, box-shadow 280ms ease;
  }
  .home-page .benefits .wrap:has(:is(.benefit, .office-benefit):hover) :is(.benefit, .office-benefit):not(:hover) {
    scale: .985;
    filter: brightness(.94);
    opacity: .78;
  }
  .home-page .benefits :is(.benefit, .office-benefit):hover,
  .home-page .case-card:hover {
    z-index: 2;
    scale: 1.025;
    box-shadow: 0 20px 44px #263b532a;
  }
  .home-page .turnkey-meaning:is(.story-complete, :not(.story-active)) .turnkey-meaning-grid:hover li:not(:hover) {
    scale: .985;
    filter: brightness(.89);
  }
  .home-page .turnkey-meaning:is(.story-complete, :not(.story-active)) .turnkey-meaning-grid li:hover {
    z-index: 2;
    scale: 1.025;
    box-shadow: 0 0 0 1px #ffffffb0, 0 20px 42px #3b617a30;
  }
  .home-page .case-grid:hover .case-card:not(:hover) { scale: .99; opacity: .84; }
  .home-page :is(.compare-link, .projects .text-link, .reviews .text-link) {
    transform-origin: right center;
    transition: color 230ms ease, transform 230ms cubic-bezier(.23, 1, .32, 1), text-shadow 230ms ease;
  }
  .home-page :is(.compare-link, .projects .text-link, .reviews .text-link):hover {
    transform: translateY(-2px) scale(1.045);
    text-shadow: 0 6px 18px #3b617a35;
  }
  .home-page .package-calculator .package-card,
  .home-page .process-list li {
    position: relative;
    transition: scale 260ms cubic-bezier(.23, 1, .32, 1), opacity 260ms ease, box-shadow 260ms ease;
    scale: 1;
  }
  .home-page .package-calculator .package-grid:hover .package-card:not(:hover) { opacity: .57; scale: .985; }
  .home-page .package-calculator .package-card:hover {
    z-index: 2;
    opacity: 1;
    scale: 1.025;
    box-shadow: 0 22px 45px #263b5326;
  }
  .home-page .package-calculator .package-grid:focus-within .package-card:not(:focus-within) { opacity: .57; }
  .home-page .package-calculator .package-card:focus-within { z-index: 2; scale: 1.02; }
  .home-page .process-list li:hover {
    z-index: 2;
    scale: 1.045;
  }
}

@media (min-width: 641px) and (max-width: 1000px) {
  .home-page .benefit-grid { grid-template-rows: 190px 190px 200px; }
  .home-page .lead-benefit { min-height: 0; }
}

@media (max-width: 640px) {
  .home-page .turnkey-meaning-grid li { min-height: 0; padding: 20px 22px; }
  .home-page .turnkey-meaning-grid .turnkey-guarantee { min-height: 0; padding: 24px; }
  .home-page .benefit-grid { grid-template-rows: auto; }
  .home-page .benefit { min-height: 0; padding: 22px; }
  .home-page .lead-benefit { min-height: 310px; padding: 22px 22px 170px; }
  .home-page .lead-benefit .plan-photo { width: 100%; height: 48%; }
  .home-page .responsible-benefit,
  .home-page .quality-benefit { min-height: 115px; display: flex; align-items: center; }
  .home-page .design-benefit { min-height: 190px; }
  .home-page .guarantee-benefit { min-height: 110px; }
  .home-page .office-benefit { display: block; height: auto; min-height: 0; }
  .home-page .office-copy { padding: 23px 24px 8px; }
  .home-page .office-copy h3 { font-size: 26px; }
  .home-page .office-photo {
    height: 180px;
    min-height: 0;
    mask-image: linear-gradient(180deg, transparent, black 28%);
  }
  .home-page .turnkey-meaning-grid .turnkey-guarantee-copy p { font-size: 17px; line-height: 1.5; }
}

/* Section headings follow the same type scale as the benefits heading. */
.home-v2 .page-content > section.reviews {
  background: var(--pale);
  border-radius: 40px 40px 0 0;
  padding-block: 64px;
  position: relative;
  isolation: isolate;
}
.home-v2 .page-content > section.process { margin-top: 0; }
.home-page .reviews::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--pale);
  pointer-events: none;
  z-index: -1;
}
.home-page .reviews + .process { position: relative; z-index: 1; }
.home-page .reviews .review-grid figure { background: #fff; }
.home-v2 .page-content > section.faq {
  border-radius: 40px 40px 0 0;
  position: relative;
  isolation: isolate;
}
.home-page .faq::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--pale);
  pointer-events: none;
  z-index: -1;
}
.home-v2 .page-content > section.contact { margin-top: 0; position: relative; z-index: 1; }
.home-page .contact a.button.messenger-card,
.home-page .contact a.button.messenger-card:hover {
  background: linear-gradient(140deg, #494847, #62676b);
  border-color: #ffffff35;
  color: #fff;
  box-shadow: inset 0 0 0 1px #ffffff18;
}
.home-page .contact a.button.messenger-card { transition: filter 240ms ease, box-shadow 240ms ease, transform 240ms ease; }
.home-page .contact a.button.messenger-card:hover {
  filter: brightness(1.18);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #ffffff30, 0 10px 25px #15151530;
}
.home-page .contact .messenger-card-copy small { color: #e3e8ed; }
.home-page .contact .messenger-card-arrow { background: #ffffff24; color: #fff; }
.home-page .faq .faq-answer { overflow: hidden; }
.home-page .faq .faq-answer p { margin-top: 18px; font-size: 16px; }
.home-page .package-area-heading output { display: inline-block; }
@media (max-width: 640px) {
  .home-v2 .page-content > section.reviews { border-radius: 28px 28px 0 0; padding-block: 44px; }
  .home-page .reviews::after { height: 28px; }
  .home-v2 .page-content > section.faq { border-radius: 28px 28px 0 0; }
  .home-page .faq::after { height: 28px; }
}

.home-page { --home-section-heading-size: 52px; }
.home-page .page-content :is(
  #situations-title, #benefits-title, #turnkey-meaning-title,
  #packages-title, #projects-title, #process-title, #about-title,
  #reviews-title, #faq-title, #contact-title
) {
  font-size: var(--home-section-heading-size);
  line-height: 1.18;
}
@media (max-width: 1300px) { .home-page { --home-section-heading-size: 44px; } }
@media (max-width: 1000px) { .home-page { --home-section-heading-size: 38px; } }
@media (max-width: 640px) {
  .home-page { --home-section-heading-size: 29px; }
  .home-page .page-content #process-title { white-space: normal; }
}
