:root {
  --olive-dark: #50583f;
  --olive-mid: #858b6c;
  --olive-soft: #667052;
  --cream-light: #f7f2e8;
  --cream-card: #fffbf3;
  --cream-line: #d8cfb9;
  --ink: #20251b;
  --header-height: 124px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  background: var(--cream-light);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--cream-light);
  font-family: Arial, Helvetica, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

.site {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream-light);
}

/* Fixed-looking straight header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--header-height);
  background: var(--olive-mid);
  color: var(--cream-light);
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(to bottom, var(--cream-line) 0 55%, #f7f1df 55% 100%);
  opacity: .98;
}

.header-inner {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.menu-toggle {
  position: absolute;
  left: clamp(16px, 3vw, 42px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  border: 1.5px solid rgba(247, 242, 232, .72);
  border-radius: 50%;
  background: rgba(247, 242, 232, .08);
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: clamp(20px, 2.4vw, 28px);
  height: 2.5px;
  border-radius: 999px;
  background: var(--cream-light);
}

.header-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: clamp(130px, 11vw, 170px);
  height: calc(var(--header-height) - 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-contact {
  position: absolute;
  right: clamp(16px, 3vw, 42px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(142px, 13vw, 180px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
}

.header-icon-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(133, 139, 108, .98);
  border: 1.5px solid rgba(247, 242, 232, .92);
  color: var(--cream-light);
  text-decoration: none;
  box-shadow: none;
}

.header-icon-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 36px;
  padding: 5px 20px;
  border-radius: 999px;
  background: var(--cream-light);
  color: var(--olive-dark);
  text-decoration: none;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 700;
  text-transform: lowercase;
  align-self: flex-end;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 6px 18px rgba(0,0,0,.12);
}

/* Slide-in menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(30, 35, 25, .42);
}

.menu-backdrop[hidden] {
  display: none;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(82vw, 340px);
  height: 100vh;
  padding: 18px 18px 28px;
  background: #6d765d;
  color: var(--cream-light);
  box-shadow: 18px 0 40px rgba(0,0,0,.22);
  transform: translateX(-105%);
  transition: transform .24s ease;
}

body.menu-open .side-menu {
  transform: translateX(0);
}

.side-menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(247,242,232,.28);
}

.side-menu-top img {
  width: 145px;
  height: auto;
}

.menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(247,242,232,.6);
  background: rgba(247,242,232,.10);
  color: var(--cream-light);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.side-menu a {
  display: block;
  padding: 15px 6px;
  color: var(--cream-light);
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  border-bottom: 1px solid rgba(247,242,232,.18);
}

/* Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--cream-light);
}

.slide-layer {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--cream-light);
}

.slide-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: none;
}

.hero-slideshow.has-image .slide-layer img {
  display: block;
}

.hero-slideshow.has-image .slide-empty {
  display: none;
}

.slide-empty {
  min-height: 320px;
  background: var(--cream-light);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(247, 242, 232, .88);
  color: var(--olive-dark);
  font-size: 42px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .20);
  cursor: pointer;
}

.slide-prev { left: 20px; }
.slide-next { right: 20px; }

.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(247, 242, 232, .96);
  background: rgba(80, 88, 63, .55);
  cursor: pointer;
  padding: 0;
}

.slide-dot.active {
  background: #f7f2e8;
}

.hero-slideshow.single-slide .slide-arrow,
.hero-slideshow.single-slide .slide-dots {
  display: none;
}

/* Services: clean modern cards, no nested/duplicated legacy rules */
.services-section {
  width: min(100% - 36px, 980px);
  margin: 26px auto 16px;
  color: var(--olive-dark);
  position: relative;
  z-index: 1;
}

.services-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 2.4vw, 18px);
  margin: 0 0 20px;
}

.services-title-wrap h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 5.2vw, 44px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--olive-soft);
  white-space: nowrap;
}

.title-rule {
  display: block;
  width: clamp(36px, 9vw, 88px);
  height: 1px;
  background: rgba(80, 88, 63, .24);
}

.title-leaf {
  width: clamp(30px, 5.2vw, 48px);
  color: var(--olive-soft);
  opacity: .85;
  flex: 0 0 auto;
}

.title-leaf svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title-leaf-right {
  transform: scaleX(-1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.service-cell {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(80, 88, 63, .12);
  border-radius: 14px;
  background: var(--cream-card);
  color: inherit;
  min-height: 104px;
  padding: 16px 20px;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  text-align: left;
  box-shadow: 0 5px 16px rgba(80, 88, 63, .10);
  overflow: visible;
}

.service-cell:hover,
.service-cell.active {
  border-color: rgba(80, 88, 63, .26);
  background: #fffdf8;
}

.service-cell:focus-visible {
  outline: 3px solid rgba(80, 88, 63, .35);
  outline-offset: 3px;
}

.service-icon {
  flex: 0 0 auto;
  width: clamp(54px, 9vw, 68px);
  height: clamp(54px, 9vw, 68px);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--olive-soft);
  background: rgba(133, 139, 108, .14);
  box-shadow: inset 0 0 0 1px rgba(80, 88, 63, .05);
}

.service-cell.active .service-icon {
  background: var(--olive-soft);
  color: var(--cream-light);
}

.service-icon svg {
  width: 66%;
  height: 66%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-copy {
  min-width: 0;
  display: block;
}

.service-name {
  display: block;
  margin: 0 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--olive-soft);
  text-align: left;
}

.service-desc {
  display: block;
  max-width: 260px;
  margin: 0;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.28;
  color: var(--ink);
  text-align: left;
}

.about-bar {
  width: min(100% - 36px, 980px);
  min-height: 68px;
  margin: 18px auto 30px;
  padding: 12px clamp(18px, 4vw, 34px);
  border-radius: 14px;
  background: #637052;
  color: var(--cream-light);
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(80, 88, 63, .16);
}

.about-bar-leaf {
  width: 74px;
  color: rgba(247,242,232,.54);
}

.about-bar-leaf svg,
.about-bar-arrow svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-bar-leaf svg {
  stroke-width: 3.5;
}

.about-bar-text {
  justify-self: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 700;
  line-height: 1;
}

.about-bar-arrow {
  justify-self: end;
  width: 42px;
  color: var(--cream-light);
}

.about-bar-arrow svg {
  stroke-width: 4.2;
}

/* About page */

.tablet-service-canvas-panel {
  display: none;
}

.tablet-service-hotspots {
  display: none;
}

.about-main {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(24px, 5vw, 54px) 18px;
  background: var(--cream-light);
  color: var(--olive-dark);
}

.about-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 18px;
  background: var(--cream-card);
  box-shadow: 0 10px 28px rgba(80, 88, 63, .12);
  border: 1px solid rgba(80,88,63,.11);
}

.about-kicker {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive-soft);
  font-size: 13px;
}

.about-card h1 {
  margin: 0 0 16px;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--olive-soft);
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.04;
}

.about-card p {
  max-width: 680px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--cream-light);
  background: var(--olive-soft);
}

.about-actions a + a {
  color: var(--olive-soft);
  background: rgba(133,139,108,.16);
}

/* Landscape desktop/tablet */
@media (orientation: landscape) {
  .slide-layer {
    width: 57.6%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  .slide-prev {
    left: max(20px, calc(21.2vw - 26px));
  }

  .slide-next {
    right: max(20px, calc(21.2vw - 26px));
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --header-height: 104px;
  }

  .header-logo {
    width: 128px;
    height: calc(var(--header-height) - 12px);
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .header-contact {
    gap: 7px;
    width: 146px;
    transform: translateY(-50%);
  }

  .header-book-button {
    min-width: 110px;
    min-height: 28px;
    padding: 4px 14px;
    font-size: 12px;
  }

  .header-icon-row {
    gap: 8px;
  }

  .header-icon-link {
    width: 28px;
    height: 28px;
  }

  .header-icon-link svg {
    width: 16px;
    height: 16px;
  }

  .slide-arrow {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }
}

/* General portrait header */
@media (orientation: portrait) {
  :root {
    --header-height: 112px;
  }

  .site-header::after {
    height: 8px;
  }

  .menu-toggle {
    left: 13px;
    width: 40px;
    height: 40px;
    gap: 5px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
  }

  .header-logo {
    width: clamp(88px, 25vw, 104px);
    height: calc(var(--header-height) - 12px);
  }

  .header-contact {
    right: 8px;
    width: 90px;
    gap: 5px;
    align-items: flex-end;
    transform: translateY(-50%);
  }

  .header-book-button {
    min-width: 82px;
    min-height: 22px;
    padding: 3px 10px;
    font-size: 10.5px;
  }

  .header-icon-row {
    gap: 6px;
  }

  .header-icon-link {
    width: 22px;
    height: 22px;
  }

  .header-icon-link svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.1;
  }

  .slide-arrow {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }

  .slide-prev { left: 12px; }
  .slide-next { right: 12px; }

  .slide-dots {
    bottom: 13px;
    gap: 9px;
  }

  .slide-layer {
    aspect-ratio: 4 / 3;
  }
}

/* Phone-only one-screen layout. Tablet portrait is deliberately excluded. */
@media (orientation: portrait) and (max-width: 520px) {
  html,
  body.home-page {
    height: 100svh;
    overflow: hidden;
  }

  body.home-page .site {
    height: calc(100svh - var(--header-height));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.home-page .hero-slideshow {
    flex: 0 0 clamp(230px, 34svh, 292px);
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  body.home-page .slide-layer {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  body.home-page .slide-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  body.home-page .slide-empty {
    height: 100%;
    min-height: 0;
  }

  body.home-page .slide-arrow {
    width: 42px;
    height: 42px;
    font-size: 33px;
  }

  body.home-page .slide-dots {
    bottom: 12px;
    gap: 8px;
  }

  body.home-page .slide-dot {
    width: 11px;
    height: 11px;
  }

  body.home-page .services-section {
    flex: 1 1 auto;
    min-height: 0;
    width: calc(100% - 20px);
    margin: 8px auto 0;
    display: flex;
    flex-direction: column;
  }

  body.home-page .services-title-wrap {
    flex: 0 0 auto;
    gap: 6px;
    margin: 0 0 8px;
  }

  body.home-page .services-title-wrap h1 {
    font-size: clamp(22px, 6.1vw, 27px);
    line-height: .95;
  }

  body.home-page .title-rule {
    width: clamp(28px, 8vw, 52px);
  }

  body.home-page .title-leaf {
    width: clamp(22px, 6vw, 30px);
  }

  body.home-page .services-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body.home-page .service-cell {
    min-height: 0;
    height: 100%;
    padding: 7px 8px;
    border-radius: 10px;
    gap: 8px;
    box-shadow: 0 5px 14px rgba(80, 88, 63, .10);
  }

  body.home-page .service-icon {
    width: 36px;
    height: 36px;
  }

  body.home-page .service-icon svg {
    width: 65%;
    height: 65%;
    stroke-width: 3.25;
  }

  body.home-page .service-name {
    margin-bottom: 2px;
    font-size: clamp(12.2px, 3.28vw, 14.4px);
    line-height: 1.02;
  }

  body.home-page .service-desc {
    max-width: none;
    font-size: clamp(9.2px, 2.55vw, 10.8px);
    line-height: 1.13;
  }

  body.home-page .about-bar {
    flex: 0 0 50px;
    width: calc(100% - 20px);
    min-height: 0;
    margin: 8px auto max(8px, env(safe-area-inset-bottom));
    padding: 7px 12px;
    border-radius: 10px;
    grid-template-columns: 48px 1fr 42px;
    gap: 8px;
    box-shadow: 0 5px 14px rgba(80, 88, 63, .16);
  }

  body.home-page .about-bar-leaf {
    width: 43px;
  }

  body.home-page .about-bar-text {
    font-size: clamp(20px, 5.6vw, 25px);
  }

  body.home-page .about-bar-arrow {
    width: 29px;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .hero-slideshow {
    flex-basis: clamp(205px, 31svh, 248px);
  }

  body.home-page .services-section {
    margin-top: 6px;
  }

  body.home-page .services-title-wrap {
    margin-bottom: 6px;
  }

  body.home-page .services-title-wrap h1 {
    font-size: clamp(20px, 5.6vw, 24px);
  }

  body.home-page .services-grid {
    gap: 7px;
  }

  body.home-page .service-cell {
    padding: 6px 7px;
    gap: 6px;
  }

  body.home-page .service-icon {
    width: 32px;
    height: 32px;
  }

  body.home-page .service-name {
    font-size: clamp(11.3px, 3vw, 13.2px);
  }

  body.home-page .service-desc {
    font-size: clamp(8.4px, 2.25vw, 9.6px);
    line-height: 1.08;
  }

  body.home-page .about-bar {
    flex-basis: 46px;
    margin-top: 7px;
  }
}

@media (orientation: portrait) and (max-width: 370px) {
  .header-logo {
    width: 86px;
  }

  .header-contact {
    width: 84px;
  }

  .header-book-button {
    min-width: 78px;
    font-size: 9.6px;
    padding-inline: 8px;
  }

  .header-icon-row {
    gap: 5px;
  }

  .header-icon-link {
    width: 20px;
    height: 20px;
  }

  .header-icon-link svg {
    width: 11px;
    height: 11px;
  }

  body.home-page .service-cell {
    gap: 5px;
  }

  body.home-page .service-icon {
    width: 30px;
    height: 30px;
  }

  body.home-page .service-name {
    font-size: 11.2px;
  }

  body.home-page .service-desc {
    font-size: 8.1px;
  }
}

/* Tablet portrait: stable normal page flow, with simple rendering for Android Chrome. */
@media (orientation: portrait) and (min-width: 521px) {
  html,
  body.home-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.home-page .site {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    display: block;
    overflow: visible;
  }

  body.home-page .hero-slideshow {
    overflow: hidden;
  }

  body.home-page .slide-layer {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  body.home-page .slide-layer img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  body.home-page .slide-empty {
    min-height: 360px;
  }

  body.home-page .services-section {
    width: min(100% - 36px, 980px);
    margin: 22px auto 16px;
    display: block;
  }

  body.home-page .services-title-wrap {
    margin-bottom: 16px;
  }

  body.home-page .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.home-page .service-cell {
    min-height: 92px;
    height: auto;
    padding: 14px 16px;
    border-radius: 13px;
    box-shadow: none;
    background: var(--cream-card);
    transform: none !important;
    transition: none;
  }

  body.home-page .service-icon {
    width: 52px;
    height: 52px;
  }

  body.home-page .service-name {
    font-size: clamp(18px, 2.7vw, 22px);
    line-height: 1.05;
    margin-bottom: 5px;
  }

  body.home-page .service-desc {
    font-size: clamp(12.5px, 1.9vw, 15px);
    line-height: 1.24;
  }

  body.home-page .about-bar {
    width: min(100% - 36px, 980px);
    min-height: 62px;
    margin: 18px auto 30px;
    padding: 10px 24px;
    border-radius: 14px;
    grid-template-columns: 72px 1fr 56px;
    box-shadow: none;
  }

  body.home-page .about-bar-leaf {
    width: 60px;
  }

  body.home-page .about-bar-text {
    font-size: clamp(27px, 4vw, 35px);
  }

  body.home-page .about-bar-arrow {
    width: 36px;
  }
}



/* Android tablet portrait: render the service area as one canvas layer.
   This avoids the Android Chrome repaint/compositor bug caused by many compressed card layers. */
@media (orientation: portrait) and (min-width: 521px) and (pointer: coarse) {
  html.android-device {
    --header-height: 126px;
    --tablet-hero-height: calc(100vw * 0.5625);
    height: var(--app-height) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html.android-device body.home-page {
    height: var(--app-height) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
  }

  html.android-device .site-header {
    position: relative !important;
    height: var(--header-height) !important;
    overflow: hidden !important;
    transform: none !important;
    filter: none !important;
  }

  html.android-device .header-logo {
    width: 180px;
    height: calc(var(--header-height) - 14px);
  }

  html.android-device .menu-toggle {
    width: 46px;
    height: 46px;
    gap: 5px;
    left: 16px;
  }

  html.android-device .menu-toggle span {
    width: 23px;
    height: 2.2px;
  }

  html.android-device .header-contact {
    right: 12px;
    width: 102px;
    gap: 5px;
    align-items: flex-end;
  }

  html.android-device .header-icon-row {
    gap: 6px;
  }

  html.android-device .header-icon-link {
    width: 24px;
    height: 24px;
  }

  html.android-device .header-icon-link svg {
    width: 13px;
    height: 13px;
  }

  html.android-device .header-book-button {
    min-width: 92px;
    min-height: 25px;
    padding: 3px 10px;
    font-size: 10.8px;
  }

  html.android-device body.home-page .site {
    position: relative !important;
    display: block !important;
    height: calc(var(--app-height) - var(--header-height)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
  }

  html.android-device body.home-page .hero-slideshow {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
    height: var(--tablet-hero-height) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
    transform: none !important;
    filter: none !important;
  }

  html.android-device body.home-page .slide-layer {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
    transform: none !important;
    filter: none !important;
  }

  html.android-device body.home-page .slide-layer img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
  }

  html.android-device body.home-page .slide-empty {
    height: 100% !important;
    min-height: 0 !important;
  }

  html.android-device body.home-page .slide-arrow {
    width: 32px;
    height: 32px;
    font-size: 25px;
    box-shadow: none !important;
  }

  html.android-device body.home-page .slide-prev { left: 12px; }
  html.android-device body.home-page .slide-next { right: 12px; }

  html.android-device body.home-page .slide-dots {
    bottom: 7px;
    gap: 7px;
  }

  html.android-device body.home-page .slide-dot {
    width: 9px;
    height: 9px;
  }

  html.android-device body.home-page .services-section {
    position: absolute !important;
    left: 8px;
    right: 8px;
    top: calc(var(--tablet-hero-height) + 3px);
    bottom: 5px;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    transform: none !important;
    filter: none !important;
  }

  html.android-device body.home-page .services-section > .services-title-wrap,
  html.android-device body.home-page .services-section > .services-grid,
  html.android-device body.home-page > .site > .about-bar,
  html.android-device body.home-page .about-bar {
    display: none !important;
  }

  html.android-device body.home-page .tablet-service-canvas-panel {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
    transform: none !important;
    filter: none !important;
    contain: strict !important;
  }

  html.android-device body.home-page #tabletServiceCanvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--cream-light) !important;
    transform: none !important;
    filter: none !important;
  }

  html.android-device body.home-page .tablet-service-hotspots {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
  }

  html.android-device body.home-page .tablet-service-hotspot,
  html.android-device body.home-page .tablet-about-hotspot {
    position: absolute !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    touch-action: manipulation;
  }

  html.android-device body.home-page .tablet-service-hotspot.active {
    background: rgba(80, 88, 63, .05) !important;
  }
}

@media (orientation: portrait) and (min-width: 521px) and (pointer: coarse) and (max-height: 820px) {
  html.android-device {
    --header-height: 118px;
    --tablet-hero-height: calc(100vw * 0.5625);
  }

  html.android-device .header-logo {
    width: 168px;
    height: calc(var(--header-height) - 12px);
  }

  html.android-device body.home-page .services-section {
    top: calc(var(--tablet-hero-height) + 3px);
    bottom: 4px;
  }
}


/* Step 29: homepage now shows About us below the slideshow, with Our Services as the bottom bar. */
.home-about-section {
  width: min(100% - 36px, 980px);
  margin: 22px auto 12px;
  color: var(--olive-dark);
  position: relative;
  z-index: 1;
}

.home-about-card {
  width: 100%;
  padding: clamp(18px, 3.2vw, 30px) clamp(18px, 4vw, 38px);
  border-radius: 18px;
  background: var(--cream-card);
  border: 1px solid rgba(80, 88, 63, .11);
  box-shadow: 0 8px 22px rgba(80, 88, 63, .10);
}

.home-about-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  margin: 0 0 clamp(10px, 1.8vw, 16px);
}

.home-about-title-wrap h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 4.7vw, 42px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--olive-soft);
  white-space: nowrap;
}

.home-about-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.home-about-copy p {
  margin: 0 0 .72em;
  font-size: clamp(15px, 1.85vw, 18px);
  line-height: 1.42;
  color: var(--ink);
}

.home-about-copy p:last-child {
  margin-bottom: 0;
}

.services-link-bar {
  width: min(100% - 36px, 980px);
  min-height: 64px;
  margin: 12px auto 20px;
  padding: 11px clamp(18px, 4vw, 34px);
  border-radius: 14px;
  background: #637052;
  color: var(--cream-light);
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(80, 88, 63, .16);
}

.services-link-leaf {
  width: 74px;
  color: rgba(247,242,232,.54);
}

.services-link-leaf svg,
.services-link-arrow svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-link-leaf svg {
  stroke-width: 3.5;
}

.services-link-text {
  justify-self: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 700;
  line-height: 1;
}

.services-link-arrow {
  justify-self: end;
  width: 42px;
  color: var(--cream-light);
}

.services-link-arrow svg {
  stroke-width: 4.2;
}

.services-link-arrow-up {
  transform: rotate(180deg);
}

.services-page-main {
  padding-bottom: 28px;
}

.services-page .services-section {
  margin-top: 28px;
}

/* One-screen homepage base. */
body.home-page {
  overflow: hidden;
}

body.home-page .site {
  height: calc(100vh - var(--header-height));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@supports (height: 100svh) {
  body.home-page .site {
    height: calc(100svh - var(--header-height));
  }
}

body.home-page .hero-slideshow {
  flex: 0 0 clamp(250px, 36vh, 390px);
  min-height: 0;
  height: auto;
}

body.home-page .slide-layer {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

body.home-page .slide-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.home-page .slide-empty {
  height: 100%;
  min-height: 0;
}

body.home-page .home-about-section {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: clamp(8px, 1.5vh, 16px);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.home-page .services-link-bar {
  flex: 0 0 60px;
  min-height: 0;
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .hero-slideshow {
    flex-basis: clamp(205px, 31svh, 256px);
  }

  body.home-page .home-about-section {
    width: calc(100% - 20px);
    margin: 8px auto 0;
  }

  body.home-page .home-about-card {
    padding: 11px 13px;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(80, 88, 63, .10);
  }

  body.home-page .home-about-title-wrap {
    gap: 6px;
    margin-bottom: 7px;
  }

  body.home-page .home-about-title-wrap h1 {
    font-size: clamp(21px, 5.7vw, 25px);
    line-height: .95;
  }

  body.home-page .title-rule {
    width: clamp(28px, 8vw, 52px);
  }

  body.home-page .title-leaf {
    width: clamp(22px, 6vw, 30px);
  }

  body.home-page .home-about-copy p {
    font-size: clamp(11.5px, 3.05vw, 13px);
    line-height: 1.22;
    margin-bottom: .55em;
  }

  body.home-page .services-link-bar {
    flex-basis: 50px;
    width: calc(100% - 20px);
    margin: 8px auto max(8px, env(safe-area-inset-bottom));
    padding: 7px 12px;
    border-radius: 10px;
    grid-template-columns: 48px 1fr 42px;
    gap: 8px;
    box-shadow: 0 5px 14px rgba(80, 88, 63, .16);
  }

  body.home-page .services-link-leaf {
    width: 43px;
  }

  body.home-page .services-link-text {
    font-size: clamp(20px, 5.6vw, 25px);
  }

  body.home-page .services-link-arrow {
    width: 29px;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .hero-slideshow {
    flex-basis: clamp(188px, 29svh, 226px);
  }

  body.home-page .home-about-section {
    margin-top: 6px;
  }

  body.home-page .home-about-card {
    padding: 9px 11px;
  }

  body.home-page .home-about-title-wrap {
    margin-bottom: 5px;
  }

  body.home-page .home-about-title-wrap h1 {
    font-size: clamp(19px, 5.2vw, 23px);
  }

  body.home-page .home-about-copy p {
    font-size: clamp(10.5px, 2.75vw, 12px);
    line-height: 1.16;
    margin-bottom: .45em;
  }

  body.home-page .services-link-bar {
    flex-basis: 46px;
    margin-top: 6px;
  }
}

@media (orientation: portrait) and (max-width: 370px) {
  body.home-page .home-about-copy p {
    font-size: 10.2px;
    line-height: 1.14;
  }
}

/* Tablet portrait gets the same fixed one-page homepage, without the old services canvas. */
@media (orientation: portrait) and (min-width: 521px) {
  html,
  body.home-page {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  body.home-page .site {
    height: calc(100vh - var(--header-height));
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
  }

  body.home-page .hero-slideshow {
    flex: 0 0 min(46vh, 520px);
  }

  body.home-page .slide-layer {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  body.home-page .slide-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  body.home-page .home-about-section {
    width: min(100% - 36px, 980px);
    margin-top: 12px;
  }

  body.home-page .home-about-card {
    padding: clamp(18px, 2.5vw, 28px) clamp(22px, 4vw, 38px);
    box-shadow: none;
  }

  body.home-page .home-about-copy p {
    font-size: clamp(16px, 2.25vw, 19px);
    line-height: 1.36;
  }

  body.home-page .services-link-bar {
    width: min(100% - 36px, 980px);
    flex: 0 0 58px;
    min-height: 0;
    margin: 12px auto 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: none;
  }
}

@media (orientation: portrait) and (min-width: 521px) and (max-height: 900px) {
  body.home-page .hero-slideshow {
    flex-basis: min(43vh, 480px);
  }

  body.home-page .home-about-card {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body.home-page .home-about-copy p {
    font-size: clamp(14px, 1.9vw, 17px);
    line-height: 1.28;
    margin-bottom: .55em;
  }
}

/* Android tablet: keep Step 28 header and 16:9 photo, but place About us + Our services in the remaining fixed space. */
@media (orientation: portrait) and (min-width: 521px) and (pointer: coarse) {
  html.android-device body.home-page .site {
    position: relative !important;
    display: block !important;
    height: calc(var(--app-height) - var(--header-height)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html.android-device body.home-page .hero-slideshow {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
    height: var(--tablet-hero-height) !important;
    min-height: 0 !important;
  }

  html.android-device body.home-page .home-about-section {
    position: absolute !important;
    left: 14px;
    right: 14px;
    top: calc(var(--tablet-hero-height) + 8px);
    bottom: 72px;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
  }

  html.android-device body.home-page .home-about-card {
    max-height: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: none !important;
    overflow: hidden;
  }

  html.android-device body.home-page .home-about-title-wrap {
    margin-bottom: 10px;
  }

  html.android-device body.home-page .home-about-title-wrap h1 {
    font-size: clamp(30px, 4.6vw, 38px);
  }

  html.android-device body.home-page .home-about-copy p {
    font-size: clamp(15px, 2.15vw, 18px);
    line-height: 1.28;
    margin-bottom: .55em;
  }

  html.android-device body.home-page .services-link-bar {
    position: absolute !important;
    left: 14px;
    right: 14px;
    bottom: 8px;
    width: auto !important;
    height: 56px;
    min-height: 0;
    margin: 0 !important;
    padding: 8px 22px;
    border-radius: 13px;
    grid-template-columns: 64px 1fr 50px;
    box-shadow: none !important;
  }

  html.android-device body.home-page .services-link-leaf {
    width: 52px;
  }

  html.android-device body.home-page .services-link-text {
    font-size: clamp(28px, 4.2vw, 36px);
  }

  html.android-device body.home-page .services-link-arrow {
    width: 34px;
  }
}

@media (orientation: portrait) and (min-width: 521px) and (pointer: coarse) and (max-height: 820px) {
  html.android-device body.home-page .home-about-section {
    top: calc(var(--tablet-hero-height) + 6px);
    bottom: 64px;
  }

  html.android-device body.home-page .home-about-card {
    padding: 14px 20px;
  }

  html.android-device body.home-page .home-about-title-wrap {
    margin-bottom: 7px;
  }

  html.android-device body.home-page .home-about-title-wrap h1 {
    font-size: clamp(26px, 4vw, 34px);
  }

  html.android-device body.home-page .home-about-copy p {
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 1.18;
    margin-bottom: .45em;
  }

  html.android-device body.home-page .services-link-bar {
    height: 52px;
    bottom: 6px;
  }
}

/* Step 31: locked home page with a hidden services page that slides up over About Us. */
:root {
  --home-services-top: calc(var(--header-height) + clamp(250px, 36vh, 390px));
}

body.home-page {
  height: 100vh;
  min-height: 0;
  overflow: hidden !important;
  overscroll-behavior: none;
}

@supports (height: 100svh) {
  body.home-page {
    height: 100svh;
  }
}

body.home-page .site {
  position: relative;
  overflow: hidden !important;
}

/* About Us is now plain content, not a white box/card, and starts at the top of its area. */
body.home-page .home-about-section {
  width: min(100% - 32px, 980px);
  margin: clamp(8px, 1.6vh, 16px) auto 0;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: hidden;
}

body.home-page .home-about-card {
  padding: clamp(8px, 1.8vh, 18px) clamp(10px, 3vw, 28px) 4px;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page .home-about-title-wrap {
  margin-bottom: clamp(6px, 1.1vh, 12px);
}

body.home-page .home-about-copy {
  max-width: 900px;
}

body.home-page .home-about-copy p {
  font-size: clamp(13.5px, 2.2vw, 19px);
  line-height: 1.34;
  margin-bottom: .62em;
}

/* The hidden services page. It begins below the slideshow and never covers the image. */
body.home-page .home-services-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--home-services-top);
  bottom: 0;
  z-index: 62;
  transform: translate3d(0, 105%, 0);
  transition: transform 520ms cubic-bezier(.19, 1, .22, 1);
  will-change: transform;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 0 max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #f9f4e8 0%, var(--cream-light) 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -14px 30px rgba(32, 37, 27, .18);
  pointer-events: none;
}

body.home-page.services-panel-open .home-services-overlay {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

body.home-page .home-services-panel-handle {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto 8px;
  background: rgba(80, 88, 63, .25);
}

body.home-page .home-services-close {
  display: block;
  margin: 0 auto 8px;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(80, 88, 63, .11);
  color: var(--olive-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.home-page .home-services-overlay .services-section {
  width: min(100% - 28px, 980px);
  margin: 0 auto;
  padding-bottom: 18px;
}

body.home-page .home-services-overlay .services-title-wrap {
  margin-bottom: 14px;
}

body.home-page .home-services-overlay .services-title-wrap h1 {
  font-size: clamp(25px, 4.6vw, 38px);
}

body.home-page .home-services-overlay .services-grid {
  gap: 12px;
}

body.home-page .home-services-overlay .service-cell {
  min-height: 88px;
  padding: 13px 16px;
}

body.home-page .home-services-overlay .service-icon {
  width: clamp(45px, 7vw, 60px);
  height: clamp(45px, 7vw, 60px);
}

body.home-page .home-services-overlay .service-name {
  font-size: clamp(15px, 2.1vw, 18px);
}

body.home-page .home-services-overlay .service-desc {
  font-size: clamp(12px, 1.8vw, 14px);
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-about-section {
    width: calc(100% - 20px);
    margin-top: 7px;
  }

  body.home-page .home-about-card {
    padding: 7px 8px 0;
  }

  body.home-page .home-about-title-wrap {
    margin-bottom: 5px;
  }

  body.home-page .home-about-copy p {
    font-size: clamp(11.2px, 3.25vw, 13.4px);
    line-height: 1.22;
    margin-bottom: .5em;
  }

  body.home-page .home-services-overlay {
    border-radius: 18px 18px 0 0;
    padding-top: 9px;
  }

  body.home-page .home-services-overlay .services-section {
    width: calc(100% - 18px);
  }

  body.home-page .home-services-overlay .services-title-wrap {
    gap: 6px;
    margin-bottom: 10px;
  }

  body.home-page .home-services-overlay .services-title-wrap h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  body.home-page .home-services-overlay .title-rule {
    width: clamp(28px, 8vw, 48px);
  }

  body.home-page .home-services-overlay .title-leaf {
    width: clamp(22px, 6vw, 30px);
  }

  body.home-page .home-services-overlay .services-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body.home-page .home-services-overlay .service-cell,
  body.home-page .home-services-overlay .service-right {
    min-height: 70px;
    padding: 10px 12px;
    gap: 10px;
  }

  body.home-page .home-services-overlay .service-right .service-copy {
    order: 2;
  }

  body.home-page .home-services-overlay .service-right .service-icon {
    order: 1;
  }

  body.home-page .home-services-overlay .service-icon {
    width: 42px;
    height: 42px;
  }

  body.home-page .home-services-overlay .service-name {
    font-size: 14.5px;
  }

  body.home-page .home-services-overlay .service-desc {
    font-size: 12px;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-about-copy p {
    font-size: clamp(10.5px, 2.9vw, 12.3px);
    line-height: 1.16;
  }

  body.home-page .home-services-overlay .service-cell {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}


/* Step 32: iPhone service sheet refinement + removed page next-page button.
   - Home stays locked.
   - Services sheet still stops at the bottom of the slideshow.
   - Slideshow image is shown without aggressive cropping.
   - Services fit as a compact 2x4 grid with a removed page button underneath. */
body.home-page .slide-layer img {
  object-fit: contain !important;
  object-position: center center !important;
  background: var(--cream-light);
}

body.home-page .home-services-overlay {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

body.home-page .home-services-overlay .services-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

body.home-page .home-services-overlay .services-grid {
  flex: 1 1 auto;
  min-height: 0;
}

.home-gallery-bar {
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  margin: 12px auto 0;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--olive-dark);
  color: var(--cream-light);
  display: grid;
  grid-template-columns: 52px 1fr 42px;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(32, 37, 27, .15);
}

.home-gallery-leaf,
.home-gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-gallery-leaf svg,
.home-gallery-arrow svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .92;
}

.home-gallery-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  text-align: center;
  letter-spacing: .01em;
}

.home-gallery-arrow svg {
  width: 30px;
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .hero-slideshow {
    flex: 0 0 calc(100vw * .5625) !important;
    height: calc(100vw * .5625) !important;
    max-height: 232px;
  }

  body.home-page .slide-layer {
    height: 100% !important;
  }

  body.home-page .slide-layer img {
    object-fit: contain !important;
    object-position: center center !important;
  }

  body.home-page .slide-arrow {
    width: 44px;
    height: 44px;
    font-size: 38px;
  }

  body.home-page .slide-dots {
    bottom: 9px;
    gap: 8px;
  }

  body.home-page .slide-dot {
    width: 10px;
    height: 10px;
  }

  body.home-page .home-services-overlay {
    padding: 7px 0 max(9px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }

  body.home-page .home-services-panel-handle {
    width: 54px;
    height: 5px;
    margin-bottom: 6px;
  }

  body.home-page .home-services-close {
    margin-bottom: 5px;
    padding: 6px 14px;
    font-size: 12px;
  }

  body.home-page .home-services-overlay .services-section {
    width: calc(100% - 18px);
  }

  body.home-page .home-services-overlay .services-title-wrap {
    gap: 6px;
    margin-bottom: 7px;
  }

  body.home-page .home-services-overlay .services-title-wrap h1 {
    font-size: clamp(22px, 6.1vw, 29px);
    line-height: .95;
  }

  body.home-page .home-services-overlay .title-rule {
    width: clamp(24px, 7vw, 42px);
  }

  body.home-page .home-services-overlay .title-leaf {
    width: clamp(20px, 5.5vw, 28px);
  }

  body.home-page .home-services-overlay .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 7px !important;
  }

  body.home-page .home-services-overlay .service-cell,
  body.home-page .home-services-overlay .service-right {
    min-height: 0 !important;
    height: auto !important;
    padding: 6px 5px !important;
    gap: 4px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 13px;
  }

  body.home-page .home-services-overlay .service-right .service-copy,
  body.home-page .home-services-overlay .service-right .service-icon {
    order: initial !important;
  }

  body.home-page .home-services-overlay .service-icon {
    flex: 0 0 31px !important;
    width: 31px !important;
    height: 31px !important;
  }

  body.home-page .home-services-overlay .service-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  body.home-page .home-services-overlay .service-copy {
    width: 100%;
    align-items: center;
  }

  body.home-page .home-services-overlay .service-name {
    font-size: clamp(11.5px, 3.35vw, 14px) !important;
    line-height: 1.02 !important;
  }

  body.home-page .home-services-overlay .service-desc {
    font-size: clamp(9.2px, 2.55vw, 10.8px) !important;
    line-height: 1.05 !important;
    max-height: 22px;
    overflow: hidden;
  }

  .home-gallery-bar {
    min-height: 43px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 13px;
    grid-template-columns: 42px 1fr 34px;
  }

  .home-gallery-leaf svg {
    stroke-width: 5.5;
  }

  .home-gallery-text {
    font-size: clamp(22px, 6vw, 27px);
  }

  .home-gallery-arrow svg {
    width: 25px;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .hero-slideshow {
    flex-basis: calc(100vw * .535) !important;
    height: calc(100vw * .535) !important;
  }

  body.home-page .home-services-overlay {
    padding-top: 5px;
  }

  body.home-page .home-services-close {
    padding: 5px 12px;
    font-size: 11.5px;
    margin-bottom: 4px;
  }

  body.home-page .home-services-overlay .services-title-wrap {
    margin-bottom: 5px;
  }

  body.home-page .home-services-overlay .services-grid {
    gap: 6px !important;
  }

  body.home-page .home-services-overlay .service-cell,
  body.home-page .home-services-overlay .service-right {
    padding: 5px 4px !important;
    gap: 3px !important;
  }

  body.home-page .home-services-overlay .service-icon {
    flex-basis: 28px !important;
    width: 28px !important;
    height: 28px !important;
  }

  body.home-page .home-services-overlay .service-name {
    font-size: clamp(10.8px, 3vw, 12.5px) !important;
  }

  body.home-page .home-services-overlay .service-desc {
    font-size: clamp(8.5px, 2.35vw, 9.8px) !important;
    max-height: 19px;
  }

  .home-gallery-bar {
    min-height: 39px;
    margin-top: 6px;
  }
}

/* Simple removed page page included so the new button is not a dead/blank button. */
.gallery-page .site {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(18px, 4vw, 44px) clamp(18px, 5vw, 56px) 42px;
}

.gallery-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.gallery-intro-card {
  background: rgba(255, 251, 243, .86);
  border: 1px solid rgba(80, 88, 63, .14);
  border-radius: 24px;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: 0 14px 30px rgba(32, 37, 27, .10);
  text-align: center;
  color: var(--olive-dark);
}

.gallery-intro-card h1 {
  margin: 0 0 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 8vw, 58px);
  line-height: .95;
}

.gallery-intro-card p {
  margin: 0 auto 18px;
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.35;
}

.gallery-grid-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.gallery-preview-tile {
  min-height: 120px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(80, 88, 63, .20), rgba(247, 242, 232, .95));
  border: 1px solid rgba(80, 88, 63, .16);
  display: grid;
  place-items: center;
  color: var(--olive-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  text-align: center;
  padding: 14px;
}

.gallery-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--olive-dark);
  color: var(--cream-light);
  text-decoration: none;
  font-weight: 700;
}

/* Step 33: restore logo, full-width 16:9 slideshow, cleaner 2x4 services grid. */
.header-logo img,
.side-menu-top img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* Undo Step 32's contain rule: the photo must span left-to-right. */
body.home-page .slide-layer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: var(--cream-light);
}

body.home-page .slide-layer img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
}

body.home-page .home-services-overlay .service-desc {
  display: none !important;
}

body.home-page .home-services-overlay .service-copy {
  width: 100%;
  align-items: center;
  justify-content: center;
}

body.home-page .home-services-overlay .service-name {
  text-align: center;
}

@media (orientation: portrait) and (max-width: 520px) {
  :root {
    --home-hero-height: min(calc(100vw * 0.5625), 238px);
    --home-services-top: calc(var(--header-height) + var(--home-hero-height));
  }

  body.home-page .hero-slideshow {
    flex: 0 0 var(--home-hero-height) !important;
    height: var(--home-hero-height) !important;
    max-height: none !important;
    width: 100% !important;
    background: var(--cream-light);
  }

  body.home-page .slide-layer {
    height: 100% !important;
    aspect-ratio: auto !important;
  }

  body.home-page .slide-layer img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.home-page .slide-arrow {
    width: 48px;
    height: 48px;
    font-size: 40px;
  }

  body.home-page .slide-dots {
    bottom: 9px;
  }

  body.home-page .home-services-overlay {
    padding: 6px 0 max(8px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }

  body.home-page .home-services-panel-handle {
    width: 58px;
    height: 5px;
    margin-bottom: 5px;
  }

  body.home-page .home-services-close {
    margin-bottom: 5px;
    padding: 5px 13px;
    font-size: 11.5px;
  }

  body.home-page .home-services-overlay .services-section {
    width: calc(100% - 20px);
  }

  body.home-page .home-services-overlay .services-title-wrap {
    margin-bottom: 8px;
  }

  body.home-page .home-services-overlay .services-title-wrap h1 {
    font-size: clamp(24px, 7.1vw, 31px);
    line-height: .94;
  }

  body.home-page .home-services-overlay .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(54px, 1fr)) !important;
    gap: 9px !important;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.home-page .home-services-overlay .service-cell,
  body.home-page .home-services-overlay .service-right {
    min-height: 0 !important;
    height: auto !important;
    padding: 7px 6px !important;
    gap: 5px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 14px !important;
  }

  body.home-page .home-services-overlay .service-right .service-copy,
  body.home-page .home-services-overlay .service-right .service-icon {
    order: initial !important;
  }

  body.home-page .home-services-overlay .service-icon {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
  }

  body.home-page .home-services-overlay .service-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  body.home-page .home-services-overlay .service-name {
    font-size: clamp(13px, 3.75vw, 16px) !important;
    line-height: 1.03 !important;
  }

  .home-gallery-bar {
    min-height: 46px;
    margin-top: 10px;
    padding: 7px 13px;
    border-radius: 14px;
    grid-template-columns: 44px 1fr 36px;
  }

  .home-gallery-text {
    font-size: clamp(24px, 7.2vw, 30px);
  }

  .home-gallery-leaf svg {
    stroke-width: 5.4;
  }

  .home-gallery-arrow svg {
    width: 26px;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  :root {
    --home-hero-height: min(calc(100vw * 0.5625), 222px);
  }

  body.home-page .home-services-overlay .services-title-wrap {
    margin-bottom: 6px;
  }

  body.home-page .home-services-overlay .service-icon {
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
  }

  body.home-page .home-services-overlay .service-name {
    font-size: clamp(12px, 3.4vw, 14.2px) !important;
  }

  .home-gallery-bar {
    min-height: 41px;
    margin-top: 7px;
  }
}


/* Step 34: menu, larger logo, no slideshow arrows, removed section sheet, footer. */
.header-logo {
  width: clamp(170px, 14vw, 230px) !important;
  height: calc(var(--header-height) - 8px) !important;
}

.side-menu-top img {
  width: 168px !important;
}

.side-menu-divider {
  height: 18px;
  margin: 12px 0 6px;
  border-bottom: 1px solid rgba(247,242,232,.35);
}

.slide-arrow {
  display: none !important;
}

body.home-page .slide-layer img {
  object-fit: cover !important;
  object-position: center center !important;
}

body.home-page .home-services-overlay .service-desc {
  display: none !important;
}

body.home-page .home-services-overlay .service-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.home-page .home-services-overlay .service-name {
  margin: 0 !important;
}

body.home-page .home-services-overlay .services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
}

body.home-page .home-services-overlay .service-cell,
body.home-page .home-services-overlay .service-right {
  overflow: hidden !important;
}

.home-next-bar {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  margin: 12px auto 0;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--olive-dark);
  color: var(--cream-light);
  display: grid;
  grid-template-columns: 52px 1fr 42px;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(32, 37, 27, .15);
  cursor: pointer;
  font: inherit;
}

.home-next-leaf,
.home-next-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-next-leaf svg,
.home-next-arrow svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .92;
}

.home-next-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(23px, 4.5vw, 34px);
  font-weight: 700;
  text-align: center;
  line-height: 1;
  letter-spacing: .01em;
}

.home-next-arrow svg {
  width: 30px;
}

.home-next-arrow-right svg {
  width: 27px;
}

body.home-page .home-areas-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--home-areas-top, var(--header-height));
  bottom: 0;
  z-index: 64;
  transform: translate3d(0, 105%, 0);
  transition: transform 540ms cubic-bezier(.19, 1, .22, 1);
  will-change: transform;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px 0 max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #f9f4e8 0%, var(--cream-light) 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -14px 30px rgba(32, 37, 27, .18);
  pointer-events: none;
}

body.home-page.areas-panel-open .home-areas-overlay {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

body.home-page .home-areas-back {
  display: block;
  margin: 0 auto 8px;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(80, 88, 63, .11);
  color: var(--olive-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.areas-section {
  width: min(100% - 28px, 980px);
  min-height: calc(100% - 26px);
  margin: 0 auto;
  color: var(--olive-dark);
  display: flex;
  flex-direction: column;
}

.areas-title-wrap {
  margin: 0 0 12px !important;
}

.areas-title-wrap h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 5.4vw, 44px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--olive-soft);
  white-space: nowrap;
}

.areas-placeholder {
  flex: 1 1 auto;
  min-height: 150px;
  border-radius: 18px;
  background: rgba(255,251,243,.52);
  border: 1px dashed rgba(80,88,63,.18);
}

.home-gallery-button {
  margin-top: 12px;
}

.home-footer {
  flex: 0 0 auto;
  margin-top: 12px;
  padding: 10px 6px 0;
  text-align: center;
  color: rgba(32,37,27,.72);
  font-size: 12px;
}

.home-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 5px;
}

.home-footer a {
  color: var(--olive-dark);
  text-decoration: none;
  font-weight: 700;
}

.home-footer p {
  margin: 0;
}

.blank-page .site,
.gallery-page .site,
.legal-page .site,
.contact-page .site {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(24px, 6vw, 56px) clamp(18px, 5vw, 56px);
}

.blank-page-shell {
  width: min(100%, 980px);
  min-height: 45vh;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(255, 251, 243, .52);
  border: 1px dashed rgba(80,88,63,.18);
}

.blank-page-title {
  margin: 0 0 20px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 8vw, 58px);
  color: var(--olive-soft);
}

@media (orientation: portrait) {
  .header-logo {
    width: clamp(120px, 34vw, 150px) !important;
    height: calc(var(--header-height) - 4px) !important;
  }

  .side-menu-top img {
    width: 154px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .hero-slideshow {
    flex: 0 0 calc(100vw * .5625) !important;
    height: calc(100vw * .5625) !important;
    max-height: 236px !important;
  }

  body.home-page .home-services-overlay {
    padding: 6px 0 max(8px, env(safe-area-inset-bottom)) !important;
  }

  body.home-page .home-services-close,
  body.home-page .home-areas-back {
    margin-bottom: 5px !important;
    padding: 5px 13px !important;
    font-size: 11.5px !important;
  }

  body.home-page .home-services-overlay .services-title-wrap,
  .areas-title-wrap {
    margin-bottom: 7px !important;
  }

  body.home-page .home-services-overlay .services-title-wrap h1,
  .areas-title-wrap h1 {
    font-size: clamp(23px, 6.8vw, 30px) !important;
    line-height: .94 !important;
  }

  body.home-page .home-services-overlay .services-grid {
    gap: 9px !important;
  }

  body.home-page .home-services-overlay .service-cell,
  body.home-page .home-services-overlay .service-right {
    min-height: 0 !important;
    padding: 8px 6px !important;
    gap: 6px !important;
  }

  body.home-page .home-services-overlay .service-icon {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
  }

  body.home-page .home-services-overlay .service-name {
    font-size: clamp(13px, 3.75vw, 16px) !important;
    line-height: 1.02 !important;
  }

  .home-next-bar {
    min-height: 46px;
    margin-top: 9px;
    padding: 7px 13px;
    border-radius: 14px;
    grid-template-columns: 42px 1fr 34px;
  }

  .home-next-text {
    font-size: clamp(21px, 6.1vw, 28px);
  }

  .home-next-arrow svg {
    width: 25px;
  }

  body.home-page .home-areas-overlay {
    padding-top: 6px !important;
    border-radius: 18px 18px 0 0;
  }

  .areas-section {
    width: calc(100% - 20px);
    min-height: calc(100% - 22px);
  }

  .areas-placeholder {
    min-height: 170px;
  }

  .home-footer {
    margin-top: 9px;
    font-size: 11px;
    padding-top: 8px;
  }

  .home-footer-links {
    gap: 6px 10px;
  }
}


/* Step 35: continuous stacked-page trial.
   Visual behaviour:
   1) About remains the locked first page under the fixed banner/slideshow.
   2) Our Services slides up over About and stops at the bottom of the slideshow.
   3) removed section continues the same page movement: the slideshow/services move up and
      removed section slides in, stopping under the banner. */
:root {
  --home-hero-height-live: calc(100vw * 0.5625);
}

body.home-page .hero-slideshow,
body.home-page .home-services-overlay,
body.home-page .home-areas-overlay,
body.home-page .home-about-section,
body.home-page .services-link-bar {
  transition:
    transform 560ms cubic-bezier(.19, 1, .22, 1),
    opacity 420ms ease;
  will-change: transform;
}

/* Make the two internal panels feel like one continuous page rather than separate tabs. */
body.home-page .home-services-panel-handle,
body.home-page .home-services-close,
body.home-page .home-areas-back {
  display: none !important;
}

/* Services still sits beneath the slideshow when first opened. */
body.home-page .home-services-overlay {
  border-radius: 22px 22px 0 0;
}

/* When moving to Removed section, the slideshow and services sheet visually scroll up together. */
body.home-page.areas-panel-open .hero-slideshow {
  transform: translate3d(0, calc(-1 * var(--home-hero-height-live)), 0);
}

body.home-page.areas-panel-open .home-about-section,
body.home-page.areas-panel-open .services-link-bar {
  transform: translate3d(0, calc(-1 * var(--home-hero-height-live)), 0);
  opacity: 0;
}

body.home-page.areas-panel-open .home-services-overlay {
  transform: translate3d(0, calc(-1 * var(--home-hero-height-live)), 0);
  pointer-events: none;
}

/* Removed section becomes the next section of the same scroll, stopping directly under the banner. */
body.home-page .home-areas-overlay {
  border-radius: 0;
}

body.home-page.areas-panel-open .home-areas-overlay {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* With the back buttons hidden, the content can use the extra vertical space. */
body.home-page .home-services-overlay,
body.home-page .home-areas-overlay {
  padding-top: 12px;
}

body.home-page .home-services-overlay .services-section,
.areas-section {
  padding-top: 0;
}

@media (orientation: portrait) and (max-width: 520px) {
  :root {
    --home-hero-height-live: min(calc(100vw * 0.5625), 236px);
  }

  body.home-page .home-services-overlay,
  body.home-page .home-areas-overlay {
    padding-top: 10px !important;
  }

  body.home-page .home-services-overlay .services-title-wrap,
  .areas-title-wrap {
    margin-top: 0 !important;
  }

  .areas-placeholder {
    min-height: 210px;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  :root {
    --home-hero-height-live: min(calc(100vw * 0.5625), 222px);
  }

  .areas-placeholder {
    min-height: 170px;
  }
}


/* Step 36: apply the same stacked-scroll feel to About -> Services, square the sheets,
   and add a slim iOS-style scroll-position indicator. */
body.home-page .hero-slideshow {
  position: relative;
  z-index: 12;
}

body.home-page .home-about-section,
body.home-page .services-link-bar {
  position: relative;
  z-index: 1;
}

/* When Services opens, the About Us content now scrolls up behind the slideshow
   instead of simply sitting still underneath the services sheet. */
body.home-page.services-panel-open:not(.areas-panel-open) .home-about-section,
body.home-page.services-panel-open:not(.areas-panel-open) .services-link-bar {
  transform: translate3d(0, calc(-1 * var(--home-hero-height-live)), 0);
  opacity: 1;
  pointer-events: none;
}

/* Remove the tab look: the sliding sheets now have clean 90-degree corners. */
body.home-page .home-services-overlay,
body.home-page .home-areas-overlay {
  border-radius: 0 !important;
}

/* Slim Apple/iOS-style scroll indicator. It appears briefly while swiping/scrolling
   and shows whether the viewer is on About, Services, or Removed section. */
.home-scroll-indicator {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: max(3px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: 5px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-scroll-indicator span {
  position: absolute;
  top: 3%;
  right: 1px;
  width: 3px;
  height: 25%;
  border-radius: 999px;
  background: rgba(32, 37, 27, .42);
  box-shadow: 0 0 0 1px rgba(247, 242, 232, .22);
  transition: top 520ms cubic-bezier(.19, 1, .22, 1), height 220ms ease;
}

body.home-page.show-home-scrollbar .home-scroll-indicator {
  opacity: 1;
}

body.home-page.services-panel-open:not(.areas-panel-open) .home-scroll-indicator span {
  top: 37%;
}

body.home-page.areas-panel-open .home-scroll-indicator span {
  top: 72%;
}

@media (orientation: portrait) and (max-width: 520px) {
  .home-scroll-indicator {
    top: calc(var(--header-height) + 6px);
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .home-scroll-indicator span {
    width: 3px;
    height: 24%;
    background: rgba(32, 37, 27, .46);
  }
}

/* Step 37: thumb-following stacked scroll with snap points.
   JS now drives the exact transform position while the user swipes, then snaps cleanly
   to About, Our Services, or removed section. */
body.home-page .site {
  touch-action: none;
}

body.home-page.home-stack-dragging .hero-slideshow,
body.home-page.home-stack-dragging .home-services-overlay,
body.home-page.home-stack-dragging .home-areas-overlay,
body.home-page.home-stack-dragging .home-about-section,
body.home-page.home-stack-dragging .services-link-bar,
body.home-page.home-stack-dragging .home-scroll-indicator span {
  transition: none !important;
}

body.home-page .home-services-overlay,
body.home-page .home-areas-overlay {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.home-page .hero-slideshow,
body.home-page .home-about-section,
body.home-page .services-link-bar {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.home-page .home-scroll-indicator span {
  transition: top 680ms cubic-bezier(.22, 1, .36, 1), height 220ms ease;
}

/* Finger-following page fade between Our Services, About Us, and removed section.
   The live opacity is controlled by slideshow.js so it follows the user's swipe/scroll. */
body.home-page .home-services-overlay,
body.home-page .home-areas-overlay {
  opacity: 0;
}

body.home-page .home-about-section,
body.home-page .services-link-bar {
  opacity: 1;
}


/* Step 39: ornate About Us card matching supplied reference, with separate decorative assets. */
body.home-page .home-about-section {
  padding: 16px 18px 12px !important;
  background: transparent !important;
}

body.home-page .home-about-card.ornate-about-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 26px 18px;
  background: rgba(255, 251, 243, 0.96) !important;
  border: 1.5px solid rgba(214, 205, 185, 0.9);
  border-radius: 26px !important;
  box-shadow: 0 12px 28px rgba(80, 88, 63, 0.12), 0 2px 8px rgba(80, 88, 63, 0.10);
}

body.home-page .ornate-about-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 6px;
}

body.home-page .ornate-about-leaf {
  width: clamp(40px, 8vw, 58px);
  height: auto;
  flex: 0 0 auto;
}

body.home-page .ornate-about-title-row h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 7.4vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #6b7656;
  font-weight: 700;
  text-align: center;
}

body.home-page .ornate-about-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px auto 18px;
  width: min(72%, 420px);
}

body.home-page .ornate-about-divider-line {
  height: 2px;
  flex: 1 1 auto;
  background: rgba(210, 199, 174, 0.95);
  border-radius: 999px;
}

body.home-page .ornate-about-divider-icon {
  width: 34px;
  height: auto;
  flex: 0 0 auto;
}

body.home-page .home-about-copy.ornate-about-copy {
  padding: 0 10px;
}

body.home-page .home-about-copy.ornate-about-copy p {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(17px, 3.7vw, 20px) !important;
  line-height: 1.55 !important;
  letter-spacing: 0.005em;
  color: #20251b;
}

body.home-page .home-about-copy.ornate-about-copy p:last-child {
  margin-bottom: 18px;
}

body.home-page .ornate-about-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

body.home-page .ornate-about-bottom-leaf {
  width: clamp(56px, 11vw, 84px);
  height: auto;
}

body.home-page .ornate-about-bottom-dot {
  width: 14px;
  height: 14px;
}

@media (max-width: 520px) {
  body.home-page .home-about-section {
    padding: 14px 14px 10px !important;
  }

  body.home-page .home-about-card.ornate-about-card {
    padding: 22px 16px 16px;
    border-radius: 22px !important;
  }

  body.home-page .ornate-about-title-row {
    gap: 10px;
  }

  body.home-page .ornate-about-leaf {
    width: 46px;
  }

  body.home-page .ornate-about-divider {
    width: min(88%, 330px);
    gap: 8px;
    margin-bottom: 16px;
  }

  body.home-page .ornate-about-divider-icon {
    width: 28px;
  }

  body.home-page .home-about-copy.ornate-about-copy {
    padding: 0 4px;
  }

  body.home-page .home-about-copy.ornate-about-copy p {
    margin-bottom: 18px;
    font-size: 16px !important;
    line-height: 1.52 !important;
  }

  body.home-page .ornate-about-bottom-leaf {
    width: 62px;
  }
}


/* Step 49: transparent sharpened About ornaments with card sized to fit the page. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.home-page .home-about-section.about-target-step49 {
  display: block !important;
  padding: 10px 16px 8px !important;
  background: transparent !important;
  overflow: visible !important;
}

body.home-page .home-about-card.about-card-step49 {
  width: min(100%, 860px) !important;
  margin: 0 auto !important;
  padding: 16px 14px 14px !important;
  background: #fbf8f1 !important;
  border: 1.5px solid rgba(216, 206, 188, 0.95) !important;
  border-radius: 28px !important;
  box-shadow: 0 10px 26px rgba(80, 88, 63, 0.11), 0 2px 8px rgba(80, 88, 63, 0.08) !important;
  overflow: hidden !important;
}

body.home-page .about-top-wrap-step49,
body.home-page .about-bottom-wrap-step49 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

body.home-page .about-top-wrap-step49 {
  margin: 0 0 12px !important;
}

body.home-page .about-top-wrap-step49 img {
  display: block !important;
  width: min(88%, 600px) !important;
  max-height: 78px !important;
  object-fit: contain !important;
  height: auto !important;
}

body.home-page .home-about-copy.about-copy-step49 {
  padding: 0 6px !important;
}

body.home-page .home-about-copy.about-copy-step49 p {
  margin: 0 0 14px !important;
  text-align: center !important;
  font-size: 13.5px !important;
  line-height: 1.40 !important;
  color: #20251b !important;
  letter-spacing: 0 !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home-page .home-about-copy.about-copy-step49 p:last-child {
  margin-bottom: 10px !important;
}

body.home-page .about-bottom-wrap-step49 img {
  display: block !important;
  width: 146px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  height: auto !important;
}

body.home-page .services-link-bar {
  margin-top: 8px !important;
}

@media (min-width: 700px) {
  body.home-page .home-about-card.about-card-step49 {
    padding: 18px 18px 16px !important;
  }

  body.home-page .about-top-wrap-step49 img {
    max-height: 88px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 15px !important;
    line-height: 1.44 !important;
  }

  body.home-page .about-bottom-wrap-step49 img {
    width: 160px !important;
    max-height: 42px !important;
  }
}


/* Step 50: tighten About Us card so it fits fully above the Our Services bar. */
body.home-page .home-about-section.about-target-step49 {
  padding: 8px 14px 6px !important;
  background: transparent !important;
  overflow: visible !important;
}

body.home-page .home-about-card.about-card-step49 {
  width: min(100%, 860px) !important;
  margin: 0 auto !important;
  padding: 12px 12px 10px !important;
  background: #fbf8f1 !important;
  border: 1.4px solid rgba(216, 206, 188, 0.95) !important;
  border-radius: 25px !important;
  box-shadow: 0 8px 22px rgba(80, 88, 63, 0.10), 0 2px 7px rgba(80, 88, 63, 0.08) !important;
  overflow: hidden !important;
}

body.home-page .about-top-wrap-step49 {
  margin: 0 0 8px !important;
}

body.home-page .about-top-wrap-step49 img {
  display: block !important;
  width: min(82%, 520px) !important;
  max-height: 64px !important;
  object-fit: contain !important;
  height: auto !important;
}

body.home-page .home-about-copy.about-copy-step49 {
  padding: 0 4px !important;
}

body.home-page .home-about-copy.about-copy-step49 p {
  margin: 0 0 10px !important;
  font-size: 12.2px !important;
  line-height: 1.31 !important;
  text-align: center !important;
  color: #20251b !important;
  letter-spacing: 0 !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home-page .home-about-copy.about-copy-step49 p:last-child {
  margin-bottom: 7px !important;
}

body.home-page .about-bottom-wrap-step49 img {
  display: block !important;
  width: 126px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  height: auto !important;
}

body.home-page .services-link-bar {
  margin-top: 6px !important;
}

@media (min-width: 700px) {
  body.home-page .home-about-card.about-card-step49 {
    padding: 14px 16px 12px !important;
  }

  body.home-page .about-top-wrap-step49 img {
    width: min(78%, 560px) !important;
    max-height: 72px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 13.5px !important;
    line-height: 1.34 !important;
    margin-bottom: 12px !important;
  }

  body.home-page .about-bottom-wrap-step49 img {
    width: 140px !important;
    max-height: 34px !important;
  }
}

@media (max-height: 740px) and (max-width: 520px) {
  body.home-page .home-about-section.about-target-step49 {
    padding-top: 6px !important;
  }

  body.home-page .home-about-card.about-card-step49 {
    padding: 10px 10px 8px !important;
    border-radius: 23px !important;
  }

  body.home-page .about-top-wrap-step49 {
    margin-bottom: 6px !important;
  }

  body.home-page .about-top-wrap-step49 img {
    width: min(78%, 500px) !important;
    max-height: 56px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 11.5px !important;
    line-height: 1.28 !important;
    margin-bottom: 8px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p:last-child {
    margin-bottom: 5px !important;
  }

  body.home-page .about-bottom-wrap-step49 img {
    width: 112px !important;
    max-height: 26px !important;
  }
}


/* Step 51: six focused service boxes in a snug 2 x 3 grid. */
body.home-page .home-services-overlay .services-grid.services-grid-six,
.services-page .services-grid.services-grid-six {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.5vh, 14px) clamp(12px, 3vw, 18px) !important;
}

body.home-page .home-services-overlay .services-grid.services-grid-six {
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

body.home-page .home-services-overlay .services-grid.services-grid-six .service-cell,
.services-page .services-grid.services-grid-six .service-cell {
  min-height: 88px !important;
  padding: 12px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.home-page .home-services-overlay .services-grid.services-grid-six .service-desc,
.services-page .services-grid.services-grid-six .service-desc {
  display: none !important;
}

body.home-page .home-services-overlay .services-grid.services-grid-six .service-name,
.services-page .services-grid.services-grid-six .service-name {
  font-size: clamp(20px, 4.4vw, 31px) !important;
  line-height: 0.98 !important;
  text-align: center !important;
  display: block !important;
}

body.home-page .home-services-overlay .services-grid.services-grid-six .service-icon,
.services-page .services-grid.services-grid-six .service-icon {
  width: clamp(42px, 8.5vw, 58px) !important;
  height: clamp(42px, 8.5vw, 58px) !important;
  flex: 0 0 auto !important;
}

body.home-page .home-services-overlay .services-grid.services-grid-six .service-left,
body.home-page .home-services-overlay .services-grid.services-grid-six .service-right,
.services-page .services-grid.services-grid-six .service-left,
.services-page .services-grid.services-grid-six .service-right {
  text-align: center !important;
}

body.home-page .home-services-overlay .services-grid.services-grid-six .service-left .service-copy,
body.home-page .home-services-overlay .services-grid.services-grid-six .service-right .service-copy,
.services-page .services-grid.services-grid-six .service-left .service-copy,
.services-page .services-grid.services-grid-six .service-right .service-copy {
  min-width: 0 !important;
  width: 100% !important;
}

/* On the slide-up services panel, use the extra space from removing two boxes. */
body.home-page .home-services-overlay .services-section {
  gap: clamp(10px, 1.3vh, 16px) !important;
}

body.home-page .home-services-overlay .services-title-wrap {
  margin-bottom: clamp(4px, .8vh, 10px) !important;
}

body.home-page .home-services-overlay .home-next-bar {
  margin-top: clamp(10px, 1.4vh, 14px) !important;
}

/* Small phone tuning */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .services-grid.services-grid-six {
    gap: 10px 12px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-six .service-cell {
    min-height: 86px !important;
    padding: 10px 8px !important;
    gap: 7px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-six .service-name {
    font-size: 21px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-six .service-icon {
    width: 45px !important;
    height: 45px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .services-grid.services-grid-six .service-cell {
    min-height: 76px !important;
    padding: 8px 6px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-six .service-name {
    font-size: 18px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-six .service-icon {
    width: 38px !important;
    height: 38px !important;
  }
}


/* Step 52: consistent service cards with separate icon assets and about-style title art */
.services-title-wrap { display:none !important; }
.services-title-block {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: clamp(8px, 1.1vw, 12px);
  margin: 0 0 18px;
}
.services-title-row {
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(12px, 2vw, 18px);
  width:100%;
}
.services-title-block h1 {
  margin:0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 5.1vw, 44px);
  line-height:1;
  font-weight:700;
  color: var(--olive-soft);
  white-space: nowrap;
  text-align:center;
}
.services-title-leaf {
  width: clamp(38px, 6vw, 56px);
  height:auto;
  flex:0 0 auto;
  opacity:.98;
}
.services-title-divider {
  width: min(100%, 420px);
  height:auto;
  opacity:.96;
}

.services-grid.services-grid-uniform {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  grid-template-rows: repeat(3, minmax(0,1fr)) !important;
  gap: 16px !important;
}
.service-card-uniform,
.service-card-uniform.service-left,
.service-card-uniform.service-right,
body.home-page .home-services-overlay .service-card-uniform,
body.home-page .home-services-overlay .service-card-uniform.service-left,
body.home-page .home-services-overlay .service-card-uniform.service-right {
  min-height: 116px !important;
  padding: 16px 18px !important;
  display:grid !important;
  grid-template-columns: clamp(58px, 9vw, 72px) 1fr !important;
  align-items:center !important;
  justify-content:stretch !important;
  gap: 14px !important;
  text-align:left !important;
  flex-direction: row !important;
  overflow: hidden;
}
.service-card-uniform .service-copy,
.service-card-uniform.service-right .service-copy,
body.home-page .home-services-overlay .service-card-uniform .service-copy,
body.home-page .home-services-overlay .service-card-uniform.service-right .service-copy {
  order: initial !important;
  width:100% !important;
  min-width:0 !important;
}
.service-card-uniform .service-icon,
.service-card-uniform.service-right .service-icon,
body.home-page .home-services-overlay .service-card-uniform .service-icon,
body.home-page .home-services-overlay .service-card-uniform.service-right .service-icon {
  order: initial !important;
  width: clamp(58px, 9vw, 72px) !important;
  height: clamp(58px, 9vw, 72px) !important;
  min-width: clamp(58px, 9vw, 72px) !important;
  background: #fffdfa !important;
  box-shadow: inset 0 0 0 2px rgba(101,113,85,.76) !important;
  color: #657155 !important;
}
.service-card-uniform .service-icon img,
body.home-page .home-services-overlay .service-card-uniform .service-icon img {
  width: 62% !important;
  height: 62% !important;
  object-fit: contain;
  display:block;
}
.service-card-uniform .service-name,
.service-card-uniform.service-right .service-name,
body.home-page .home-services-overlay .service-card-uniform .service-name,
body.home-page .home-services-overlay .service-card-uniform.service-right .service-name {
  margin:0 !important;
  font-size: clamp(20px, 2.45vw, 25px) !important;
  line-height: 1.02 !important;
  text-align:left !important;
  color: var(--olive-soft);
}
.service-card-uniform .service-desc { display:none !important; }

/* Page version: keep boxed section elegant and similar to About card language */
.services-page .services-section,
body.home-page .home-services-overlay .services-section {
  background: rgba(251,248,241,.72);
  border: 1px solid rgba(185,173,142,.42);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(80,88,63,.08);
  padding: clamp(24px, 3vw, 30px);
}
body.home-page .home-services-overlay .services-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 18px;
}

/* Override old small-phone stacked card rules so Step 52 stays consistent. */
@media (orientation: portrait) and (max-width: 520px) {
  .services-title-block { margin-bottom: 12px; gap: 7px; }
  .services-title-row { gap: 10px; }
  .services-title-block h1 { font-size: clamp(23px, 7vw, 31px); }
  .services-title-leaf { width: 30px; }
  .services-title-divider { width: min(100%, 330px); }

  body.home-page .home-services-overlay .services-grid.services-grid-uniform,
  .services-page .services-grid.services-grid-uniform {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    gap: 11px !important;
  }

  body.home-page .home-services-overlay .service-card-uniform,
  .services-page .service-card-uniform,
  body.home-page .home-services-overlay .service-card-uniform.service-right,
  .services-page .service-card-uniform.service-right {
    min-height: 92px !important;
    padding: 10px 10px !important;
    grid-template-columns: 48px 1fr !important;
    gap: 10px !important;
    text-align:left !important;
    align-items:center !important;
    flex-direction: row !important;
  }

  body.home-page .home-services-overlay .service-card-uniform .service-icon,
  .services-page .service-card-uniform .service-icon,
  body.home-page .home-services-overlay .service-card-uniform.service-right .service-icon,
  .services-page .service-card-uniform.service-right .service-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }

  body.home-page .home-services-overlay .service-card-uniform .service-name,
  .services-page .service-card-uniform .service-name,
  body.home-page .home-services-overlay .service-card-uniform.service-right .service-name,
  .services-page .service-card-uniform.service-right .service-name {
    font-size: clamp(15px, 4vw, 18px) !important;
    line-height: .98 !important;
    text-align:left !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .service-card-uniform,
  .services-page .service-card-uniform {
    min-height: 86px !important;
    padding: 9px 9px !important;
    grid-template-columns: 44px 1fr !important;
    gap: 8px !important;
  }
  body.home-page .home-services-overlay .service-card-uniform .service-icon,
  .services-page .service-card-uniform .service-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  body.home-page .home-services-overlay .service-card-uniform .service-name,
  .services-page .service-card-uniform .service-name {
    font-size: 14px !important;
  }
}


/* Step 54: exact screenshot-extracted service title and icons, using unique filenames. */
.services-title-wrap,
.services-title-block { display: none !important; }
.services-title-image-wrap-step54 {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin: 0 auto 14px !important;
  width:100% !important;
}
.services-title-image-wrap-step54 img {
  display:block !important;
  width:min(78%, 570px) !important;
  height:auto !important;
  max-height: 96px !important;
  object-fit:contain !important;
}
.services-grid.services-grid-exact-step54 {
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px 20px !important;
}
.service-card-exact-step54,
.service-card-exact-step54.service-left,
.service-card-exact-step54.service-right,
body.home-page .home-services-overlay .service-card-exact-step54,
body.home-page .home-services-overlay .service-card-exact-step54.service-left,
body.home-page .home-services-overlay .service-card-exact-step54.service-right {
  min-height: 112px !important;
  padding: 14px 20px !important;
  display:grid !important;
  grid-template-columns: 82px minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:stretch !important;
  gap: 18px !important;
  text-align:left !important;
  flex-direction:row !important;
  overflow:hidden !important;
}
.service-card-exact-step54 .service-icon,
.service-card-exact-step54.service-right .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon {
  order: initial !important;
  width: 82px !important;
  height: 82px !important;
  min-width:82px !important;
  background: transparent !important;
  box-shadow:none !important;
  border:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.service-card-exact-step54 .service-icon img,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img {
  display:block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit:contain !important;
}
.service-card-exact-step54 .service-copy,
.service-card-exact-step54.service-right .service-copy,
body.home-page .home-services-overlay .service-card-exact-step54 .service-copy,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-copy {
  order: initial !important;
  width:100% !important;
  min-width:0 !important;
}
.service-card-exact-step54 .service-name,
.service-card-exact-step54.service-right .service-name,
body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name {
  font-size: clamp(20px, 2.7vw, 27px) !important;
  line-height:1.02 !important;
  text-align:left !important;
  color: var(--olive-soft) !important;
}
.service-card-exact-step54 .service-desc { display:none !important; }

body.home-page .home-services-overlay .services-section,
.services-page .services-section {
  background: rgba(251,248,241,.72);
  border: 1px solid rgba(185,173,142,.42);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(80,88,63,.08);
  padding: clamp(24px, 3vw, 30px);
}
body.home-page .home-services-overlay .services-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 18px !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  .services-title-image-wrap-step54 { margin-bottom: 10px !important; }
  .services-title-image-wrap-step54 img { width:min(78%, 520px) !important; max-height: 72px !important; }
  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    grid-template-rows: repeat(3, minmax(0,1fr)) !important;
    gap: 11px 12px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54,
  .services-page .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54.service-right {
    min-height: 90px !important;
    padding: 10px 10px !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
    gap: 10px !important;
    align-items:center !important;
    text-align:left !important;
    flex-direction: row !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: clamp(15px, 4.15vw, 19px) !important;
    line-height: .98 !important;
    text-align:left !important;
  }
}
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  .services-title-image-wrap-step54 img { max-height: 64px !important; }
  body.home-page .home-services-overlay .service-card-exact-step54,
  .services-page .service-card-exact-step54 {
    min-height: 82px !important;
    padding: 8px 8px !important;
    grid-template-columns: 52px minmax(0,1fr) !important;
    gap: 8px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name { font-size:14px !important; }
}


/* Step 55: uncramp service cards and prevent icon edge cropping. */
.services-title-image-wrap-step54 {
  margin-bottom: 12px !important;
}

.services-title-image-wrap-step54 img {
  width: min(76%, 560px) !important;
  max-height: 88px !important;
  object-fit: contain !important;
}

.services-grid.services-grid-exact-step54 {
  gap: 18px 22px !important;
}

.service-card-exact-step54,
.service-card-exact-step54.service-left,
.service-card-exact-step54.service-right,
body.home-page .home-services-overlay .service-card-exact-step54,
body.home-page .home-services-overlay .service-card-exact-step54.service-left,
body.home-page .home-services-overlay .service-card-exact-step54.service-right {
  min-height: 112px !important;
  padding: 15px 18px !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  overflow: visible !important;
}

.service-card-exact-step54 .service-icon,
.service-card-exact-step54.service-right .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon {
  width: 70px !important;
  height: 70px !important;
  min-width: 70px !important;
  overflow: visible !important;
}

.service-card-exact-step54 .service-icon img,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img {
  width: 108% !important;
  height: 108% !important;
  max-width: none !important;
  object-fit: contain !important;
  overflow: visible !important;
}

.service-card-exact-step54 .service-name,
.service-card-exact-step54.service-right .service-name,
body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name {
  font-size: clamp(18px, 2.45vw, 25px) !important;
  line-height: 1.02 !important;
  text-align: left !important;
}

/* Mobile home overlay: make the 2 x 3 grid breathe without overflowing. */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .services-section {
    width: calc(100% - 22px) !important;
    padding-bottom: 14px !important;
  }

  .services-title-image-wrap-step54 {
    margin-bottom: 10px !important;
  }

  .services-title-image-wrap-step54 img {
    width: min(74%, 500px) !important;
    max-height: 64px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    gap: 12px 14px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  .services-page .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54.service-right {
    min-height: 92px !important;
    padding: 12px 11px !important;
    grid-template-columns: 50px minmax(0,1fr) !important;
    gap: 12px !important;
    border-radius: 17px !important;
    overflow: visible !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    overflow: visible !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
  .services-page .service-card-exact-step54 .service-icon img {
    width: 112% !important;
    height: 112% !important;
    max-width: none !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: clamp(14px, 3.7vw, 17px) !important;
    line-height: 1.03 !important;
  }

  body.home-page .home-services-overlay .home-next-bar {
    margin-top: 13px !important;
  }
}

/* Slightly shorter phones: still keep breathing room, only trim text a touch. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  .services-title-image-wrap-step54 img {
    max-height: 58px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  .services-page .service-card-exact-step54 {
    min-height: 86px !important;
    padding: 10px 10px !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: 13.5px !important;
  }
}


/* Step 56: make services boxes breathe and stop icon cropping. */
.services-title-image-wrap-step54,
.services-title-image-wrap-step55,
.services-title-image-wrap-step56 {
  margin: 0 auto 12px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.services-title-image-wrap-step54 img,
.services-title-image-wrap-step55 img,
.services-title-image-wrap-step56 img {
  width: min(72%, 520px) !important;
  max-height: 66px !important;
  object-fit: contain !important;
}

/* Same class name is still used in the HTML; override it hard. */
.services-grid.services-grid-exact-step54 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px 16px !important;
  align-items: stretch !important;
}

.service-card-exact-step54,
.service-card-exact-step54.service-left,
.service-card-exact-step54.service-right,
body.home-page .home-services-overlay .service-card-exact-step54,
body.home-page .home-services-overlay .service-card-exact-step54.service-left,
body.home-page .home-services-overlay .service-card-exact-step54.service-right,
.services-page .service-card-exact-step54,
.services-page .service-card-exact-step54.service-right {
  box-sizing: border-box !important;
  min-height: 96px !important;
  height: auto !important;
  padding: 12px 14px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
  column-gap: 14px !important;
  row-gap: 0 !important;
  text-align: left !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

.service-card-exact-step54 .service-icon,
.service-card-exact-step54.service-right .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
.services-page .service-card-exact-step54 .service-icon,
.services-page .service-card-exact-step54.service-right .service-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.service-card-exact-step54 .service-icon img,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
.services-page .service-card-exact-step54 .service-icon img {
  width: 94% !important;
  height: 94% !important;
  max-width: 94% !important;
  max-height: 94% !important;
  object-fit: contain !important;
  display: block !important;
}

.service-card-exact-step54 .service-copy,
.service-card-exact-step54.service-right .service-copy,
body.home-page .home-services-overlay .service-card-exact-step54 .service-copy,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-copy,
.services-page .service-card-exact-step54 .service-copy,
.services-page .service-card-exact-step54.service-right .service-copy {
  min-width: 0 !important;
  width: 100% !important;
}

.service-card-exact-step54 .service-name,
.service-card-exact-step54.service-right .service-name,
body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
.services-page .service-card-exact-step54 .service-name,
.services-page .service-card-exact-step54.service-right .service-name {
  font-size: clamp(17px, 2.4vw, 23px) !important;
  line-height: 1.02 !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* iPhone portrait: this is the view in your screenshots. */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .services-section {
    width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 0 16px !important;
  }

  .services-title-image-wrap-step54,
  .services-title-image-wrap-step55,
  .services-title-image-wrap-step56 {
    margin-bottom: 10px !important;
  }

  .services-title-image-wrap-step54 img,
  .services-title-image-wrap-step55 img,
  .services-title-image-wrap-step56 img {
    width: min(70%, 480px) !important;
    max-height: 58px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    gap: 13px 13px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54,
  .services-page .service-card-exact-step54.service-right {
    min-height: 82px !important;
    padding: 10px 10px !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    border-radius: 17px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
  .services-page .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54.service-right .service-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
  .services-page .service-card-exact-step54 .service-icon img {
    width: 90% !important;
    height: 90% !important;
    max-width: 90% !important;
    max-height: 90% !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
  .services-page .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54.service-right .service-name {
    font-size: clamp(13.5px, 3.45vw, 16px) !important;
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
  }

  body.home-page .home-services-overlay .home-next-bar {
    margin-top: 14px !important;
  }
}

/* Very short phones only: trim gently, don't crush. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    gap: 11px 12px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  .services-page .service-card-exact-step54 {
    min-height: 78px !important;
    padding: 9px 9px !important;
    grid-template-columns: 39px minmax(0, 1fr) !important;
    column-gap: 9px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
    max-width: 39px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: 13px !important;
  }
}


/* Step 57: rebalance services cards after Step 56.
   Goal: icons larger again, text smaller/neater, cards less visually cramped. */

@media (orientation: portrait) and (max-width: 520px) {
  .services-title-image-wrap-step54 img,
  .services-title-image-wrap-step55 img,
  .services-title-image-wrap-step56 img {
    width: min(72%, 500px) !important;
    max-height: 60px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    gap: 12px 14px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54,
  .services-page .service-card-exact-step54.service-right {
    min-height: 86px !important;
    padding: 10px 12px !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
  .services-page .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54.service-right .service-icon {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    overflow: visible !important;
  }

  /* The step56 icon PNGs include transparent padding, so display them larger to restore the original circle size. */
  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
  .services-page .service-card-exact-step54 .service-icon img {
    width: 132% !important;
    height: 132% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
  .services-page .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54.service-right .service-name {
    font-size: clamp(15px, 3.75vw, 18px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
  }

  body.home-page .home-services-overlay .home-next-bar {
    margin-top: 14px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .service-card-exact-step54,
  .services-page .service-card-exact-step54 {
    min-height: 82px !important;
    padding: 9px 10px !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
  .services-page .service-card-exact-step54 .service-icon img {
    width: 132% !important;
    height: 132% !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: 14.5px !important;
    line-height: 1.04 !important;
  }
}

/* Wider screens/tablet/desktop: same visual system, just scaled up. */
@media (min-width: 521px) {
  .service-card-exact-step54,
  .service-card-exact-step54.service-right,
  body.home-page .home-services-overlay .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54,
  .services-page .service-card-exact-step54.service-right {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .service-card-exact-step54 .service-icon,
  .service-card-exact-step54.service-right .service-icon,
  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
  }

  .service-card-exact-step54 .service-icon img,
  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
  .services-page .service-card-exact-step54 .service-icon img {
    width: 128% !important;
    height: 128% !important;
    max-width: none !important;
    max-height: none !important;
  }

  .service-card-exact-step54 .service-name,
  .service-card-exact-step54.service-right .service-name,
  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: clamp(19px, 2.2vw, 25px) !important;
  }
}


/* FINAL CLEAN SERVICE SECTION — simple filenames, balanced boxes, exact transparent icon assets. */
.services-title-image-wrap-step54,
.services-title-image-wrap-step55,
.services-title-image-wrap-step56 {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin: 0 auto 12px !important;
  width:100% !important;
}
.services-title-image-wrap-step54 img,
.services-title-image-wrap-step55 img,
.services-title-image-wrap-step56 img {
  display:block !important;
  width:min(76%, 560px) !important;
  max-height: 72px !important;
  height:auto !important;
  object-fit:contain !important;
}
.services-grid.services-grid-exact-step54 {
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  grid-template-rows: repeat(3, minmax(0,1fr)) !important;
  gap: 16px 18px !important;
  align-items:stretch !important;
}
.service-card-exact-step54,
.service-card-exact-step54.service-left,
.service-card-exact-step54.service-right,
body.home-page .home-services-overlay .service-card-exact-step54,
body.home-page .home-services-overlay .service-card-exact-step54.service-right,
.services-page .service-card-exact-step54,
.services-page .service-card-exact-step54.service-right {
  box-sizing:border-box !important;
  min-height: 100px !important;
  height:auto !important;
  padding: 14px 16px !important;
  display:grid !important;
  grid-template-columns: 66px minmax(0,1fr) !important;
  align-items:center !important;
  gap: 14px !important;
  text-align:left !important;
  overflow:hidden !important;
  border-radius: 18px !important;
}
.service-card-exact-step54 .service-icon,
.service-card-exact-step54.service-right .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
.services-page .service-card-exact-step54 .service-icon,
.services-page .service-card-exact-step54.service-right .service-icon {
  width: 66px !important;
  height: 66px !important;
  min-width:66px !important;
  max-width:66px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
  order:initial !important;
}
.service-card-exact-step54 .service-icon img,
body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
.services-page .service-card-exact-step54 .service-icon img {
  display:block !important;
  width: 100% !important;
  height: 100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
}
.service-card-exact-step54 .service-copy,
.service-card-exact-step54.service-right .service-copy,
body.home-page .home-services-overlay .service-card-exact-step54 .service-copy,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-copy,
.services-page .service-card-exact-step54 .service-copy,
.services-page .service-card-exact-step54.service-right .service-copy {
  min-width:0 !important;
  width:100% !important;
  order:initial !important;
}
.service-card-exact-step54 .service-name,
.service-card-exact-step54.service-right .service-name,
body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
.services-page .service-card-exact-step54 .service-name,
.services-page .service-card-exact-step54.service-right .service-name {
  display:block !important;
  font-size: clamp(18px, 2.25vw, 24px) !important;
  line-height:1.04 !important;
  text-align:left !important;
  color:var(--olive-soft) !important;
  letter-spacing:-0.01em !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
}
@media (orientation: portrait) and (max-width:520px) {
  body.home-page .home-services-overlay .services-section {
    width: calc(100% - 24px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding: 0 0 14px !important;
  }
  .services-title-image-wrap-step54,
  .services-title-image-wrap-step55,
  .services-title-image-wrap-step56 {
    margin-bottom: 10px !important;
  }
  .services-title-image-wrap-step54 img,
  .services-title-image-wrap-step55 img,
  .services-title-image-wrap-step56 img {
    width:min(74%, 520px) !important;
    max-height: 60px !important;
  }
  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    gap: 12px 14px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54,
  .services-page .service-card-exact-step54.service-right {
    min-height: 86px !important;
    padding: 10px 10px !important;
    grid-template-columns: 56px minmax(0,1fr) !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
  .services-page .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54.service-right .service-icon {
    width: 56px !important;
    height: 56px !important;
    min-width:56px !important;
    max-width:56px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
  .services-page .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54.service-right .service-name {
    font-size: clamp(14.5px, 3.65vw, 17px) !important;
    line-height:1.04 !important;
  }
  body.home-page .home-services-overlay .home-next-bar {
    margin-top: 14px !important;
  }
}
@media (orientation:portrait) and (max-width:520px) and (max-height:760px) {
  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    gap: 10px 12px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54,
  .services-page .service-card-exact-step54 {
    min-height: 80px !important;
    padding: 9px 9px !important;
    grid-template-columns: 52px minmax(0,1fr) !important;
    gap: 9px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    max-width:52px !important;
  }
  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: 13.8px !important;
  }
}


/* FINAL V4: fix services title + keep six cards compact without hiding Removed section button.
   Uses the clean services-title-art.png only; no screenshot strip. */

body.home-page .home-services-overlay .services-section,
.services-page .services-section {
  overflow: visible !important;
}

/* Services title image: full artwork, no clipping, no random slideshow strip. */
body.home-page .home-services-overlay .services-title-image-wrap-step54,
.services-title-image-wrap-step54 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  margin: 0 auto 10px !important;
  padding: 0 !important;
  min-height: 62px !important;
  max-height: none !important;
}

body.home-page .home-services-overlay .services-title-image-wrap-step54 img,
.services-title-image-wrap-step54 img {
  display: block !important;
  width: min(82%, 700px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  overflow: visible !important;
}

/* Service grid: keep 2 x 3 layout, compact but not squashed. */
body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
.services-page .services-grid.services-grid-exact-step54 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 82px) !important;
  grid-auto-rows: 82px !important;
  gap: 10px 12px !important;
  align-content: start !important;
  align-items: stretch !important;
  overflow: visible !important;
}

/* Cards: lock height so the grid does not stretch into the Removed section button. */
body.home-page .home-services-overlay .service-card-exact-step54,
body.home-page .home-services-overlay .service-card-exact-step54.service-right,
.services-page .service-card-exact-step54,
.services-page .service-card-exact-step54.service-right {
  box-sizing: border-box !important;
  height: 82px !important;
  min-height: 82px !important;
  max-height: 82px !important;
  padding: 8px 10px !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  align-items: center !important;
  justify-content: stretch !important;
  text-align: left !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
.services-page .service-card-exact-step54 .service-icon,
.services-page .service-card-exact-step54.service-right .service-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
.services-page .service-card-exact-step54 .service-icon img {
  width: 112% !important;
  height: 112% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
.services-page .service-card-exact-step54 .service-name,
.services-page .service-card-exact-step54.service-right .service-name {
  font-size: clamp(13.6px, 3.35vw, 16px) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Ensure Removed section button sits below the six cards instead of under them. */
body.home-page .home-services-overlay .home-next-bar {
  position: relative !important;
  z-index: 5 !important;
  margin-top: 13px !important;
}

/* Short iPhone safety trim. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .services-title-image-wrap-step54,
  .services-title-image-wrap-step54 {
    min-height: 58px !important;
    margin-bottom: 8px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    grid-template-rows: repeat(3, 78px) !important;
    grid-auto-rows: 78px !important;
    gap: 9px 11px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54,
  .services-page .service-card-exact-step54.service-right {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    padding: 7px 9px !important;
    grid-template-columns: 43px minmax(0, 1fr) !important;
    column-gap: 9px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
    max-width: 43px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: 13px !important;
  }
}


/* FINAL V5: move service grid up and make all 6 boxes fit above Removed section button. */
body.home-page .home-services-overlay .services-section {
  overflow: visible !important;
  padding-bottom: 8px !important;
}

/* Keep the title complete, but reduce the dead space underneath it. */
body.home-page .home-services-overlay .services-title-image-wrap-step54,
.services-title-image-wrap-step54 {
  margin: 0 auto 2px !important;
  min-height: 54px !important;
  overflow: visible !important;
}

body.home-page .home-services-overlay .services-title-image-wrap-step54 img,
.services-title-image-wrap-step54 img {
  width: min(78%, 660px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* Pull the grid up and reduce the row height. */
body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
.services-page .services-grid.services-grid-exact-step54 {
  margin-top: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 72px) !important;
  grid-auto-rows: 72px !important;
  gap: 8px 12px !important;
  align-content: start !important;
  align-items: stretch !important;
  overflow: visible !important;
}

/* Smaller cards and contents. */
body.home-page .home-services-overlay .service-card-exact-step54,
body.home-page .home-services-overlay .service-card-exact-step54.service-right,
.services-page .service-card-exact-step54,
.services-page .service-card-exact-step54.service-right {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  box-sizing: border-box !important;
  padding: 7px 9px !important;
  display: grid !important;
  grid-template-columns: 39px minmax(0, 1fr) !important;
  column-gap: 8px !important;
  align-items: center !important;
  justify-content: stretch !important;
  text-align: left !important;
  border-radius: 15px !important;
  overflow: hidden !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
.services-page .service-card-exact-step54 .service-icon,
.services-page .service-card-exact-step54.service-right .service-icon {
  width: 39px !important;
  height: 39px !important;
  min-width: 39px !important;
  max-width: 39px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
.services-page .service-card-exact-step54 .service-icon img {
  width: 108% !important;
  height: 108% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
.services-page .service-card-exact-step54 .service-name,
.services-page .service-card-exact-step54.service-right .service-name {
  font-size: clamp(12.2px, 3vw, 14.2px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Give the Removed section button its own lane below the grid. */
body.home-page .home-services-overlay .home-next-bar {
  position: relative !important;
  z-index: 5 !important;
  margin-top: 10px !important;
  flex: 0 0 56px !important;
}

/* Extra safety for shorter iPhones. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .services-title-image-wrap-step54,
  .services-title-image-wrap-step54 {
    min-height: 50px !important;
    margin-bottom: 1px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    grid-template-rows: repeat(3, 68px) !important;
    grid-auto-rows: 68px !important;
    gap: 7px 10px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54,
  .services-page .service-card-exact-step54.service-right {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 6px 8px !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 7px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: 11.8px !important;
    line-height: 1.01 !important;
  }

  body.home-page .home-services-overlay .home-next-bar {
    margin-top: 9px !important;
    flex-basis: 54px !important;
  }
}


/* FINAL V6: keep the section fitting, but make the service cards feel less jammed together.
   Same simple filenames; this only changes spacing/proportions. */

/* Give the title a touch of breathing room below it. */
body.home-page .home-services-overlay .services-title-image-wrap-step54,
.services-title-image-wrap-step54 {
  margin: 0 auto 9px !important;
  min-height: 56px !important;
  overflow: visible !important;
}

body.home-page .home-services-overlay .services-title-image-wrap-step54 img,
.services-title-image-wrap-step54 img {
  width: min(78%, 660px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* Main fix: smaller rows, bigger gaps. Total grid height stays controlled. */
body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
.services-page .services-grid.services-grid-exact-step54 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 66px) !important;
  grid-auto-rows: 66px !important;
  gap: 15px 16px !important;
  align-content: start !important;
  align-items: stretch !important;
  overflow: visible !important;
}

/* Cards are a little smaller so the larger gaps fit. */
body.home-page .home-services-overlay .service-card-exact-step54,
body.home-page .home-services-overlay .service-card-exact-step54.service-right,
.services-page .service-card-exact-step54,
.services-page .service-card-exact-step54.service-right {
  height: 66px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  box-sizing: border-box !important;
  padding: 7px 9px !important;
  display: grid !important;
  grid-template-columns: 37px minmax(0, 1fr) !important;
  column-gap: 9px !important;
  align-items: center !important;
  justify-content: stretch !important;
  text-align: left !important;
  border-radius: 15px !important;
  overflow: hidden !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-icon,
.services-page .service-card-exact-step54 .service-icon,
.services-page .service-card-exact-step54.service-right .service-icon {
  width: 37px !important;
  height: 37px !important;
  min-width: 37px !important;
  max-width: 37px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-icon img,
.services-page .service-card-exact-step54 .service-icon img {
  width: 108% !important;
  height: 108% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
body.home-page .home-services-overlay .service-card-exact-step54.service-right .service-name,
.services-page .service-card-exact-step54 .service-name,
.services-page .service-card-exact-step54.service-right .service-name {
  font-size: clamp(11.8px, 2.9vw, 13.8px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Keep the Removed section button clear below the grid. */
body.home-page .home-services-overlay .home-next-bar {
  position: relative !important;
  z-index: 5 !important;
  margin-top: 13px !important;
  flex: 0 0 56px !important;
}

/* Shorter iPhones: a tiny trim while keeping the larger gaps. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .services-title-image-wrap-step54,
  .services-title-image-wrap-step54 {
    min-height: 52px !important;
    margin-bottom: 8px !important;
  }

  body.home-page .home-services-overlay .services-grid.services-grid-exact-step54,
  .services-page .services-grid.services-grid-exact-step54 {
    grid-template-rows: repeat(3, 63px) !important;
    grid-auto-rows: 63px !important;
    gap: 13px 14px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54,
  body.home-page .home-services-overlay .service-card-exact-step54.service-right,
  .services-page .service-card-exact-step54,
  .services-page .service-card-exact-step54.service-right {
    height: 63px !important;
    min-height: 63px !important;
    max-height: 63px !important;
    padding: 6px 8px !important;
    grid-template-columns: 35px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-icon,
  .services-page .service-card-exact-step54 .service-icon {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
  }

  body.home-page .home-services-overlay .service-card-exact-step54 .service-name,
  .services-page .service-card-exact-step54 .service-name {
    font-size: 11.4px !important;
    line-height: 1.01 !important;
  }

  body.home-page .home-services-overlay .home-next-bar {
    margin-top: 11px !important;
    flex-basis: 54px !important;
  }
}


/* CLEAN REBUILD: Our Services section.
   This uses new svc-clean-* classes so previous service-card/grid rules cannot interfere. */

body.home-page .home-services-overlay .svc-clean-section,
.services-page .svc-clean-section {
  width: min(calc(100% - 28px), 980px) !important;
  margin: 0 auto !important;
  padding: 0 0 14px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
}

.svc-clean-title-art {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: visible !important;
  margin: 0 auto 15px !important;
  padding: 0 !important;
}

.svc-clean-title-art img {
  display: block !important;
  width: min(78%, 680px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  overflow: visible !important;
}

.svc-clean-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 64px) !important;
  grid-auto-rows: 64px !important;
  gap: 18px 18px !important;
  align-content: start !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.svc-clean-card {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(80, 88, 63, 0.16) !important;
  background: rgba(255, 253, 248, 0.96) !important;
  box-shadow: 0 4px 12px rgba(80, 88, 63, 0.08) !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 6px 9px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  column-gap: 8px !important;
  align-items: center !important;
  justify-content: stretch !important;
  text-align: left !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.svc-clean-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

.svc-clean-icon img {
  display: block !important;
  width: 108% !important;
  height: 108% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}

.svc-clean-copy {
  min-width: 0 !important;
  width: 100% !important;
  display: block !important;
}

.svc-clean-name {
  display: block !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  color: var(--olive-soft) !important;
  font-size: clamp(11.4px, 2.75vw, 13.2px) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.015em !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

body.home-page .home-services-overlay .svc-clean-next {
  margin-top: 18px !important;
  flex: 0 0 56px !important;
  min-height: 56px !important;
  position: relative !important;
  z-index: 5 !important;
}

/* Standalone services page version can breathe more. */
.services-page .svc-clean-page-section {
  padding: clamp(22px, 4vw, 44px) 16px !important;
}

.services-page .svc-clean-grid {
  grid-template-rows: repeat(3, 84px) !important;
  grid-auto-rows: 84px !important;
  gap: 18px 22px !important;
}

.services-page .svc-clean-card {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  column-gap: 13px !important;
  padding: 10px 14px !important;
}

.services-page .svc-clean-icon {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
}

.services-page .svc-clean-name {
  font-size: clamp(17px, 2.4vw, 24px) !important;
}

/* iPhone portrait: exactly the view being tested. */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .svc-clean-section {
    width: calc(100% - 28px) !important;
    padding-bottom: 12px !important;
  }

  .svc-clean-title-art {
    margin-bottom: 14px !important;
  }

  .svc-clean-title-art img {
    width: min(78%, 660px) !important;
  }

  body.home-page .home-services-overlay .svc-clean-grid {
    grid-template-rows: repeat(3, 62px) !important;
    grid-auto-rows: 62px !important;
    gap: 18px 16px !important;
  }

  body.home-page .home-services-overlay .svc-clean-card {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 6px 8px !important;
    grid-template-columns: 33px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    border-radius: 15px !important;
  }

  body.home-page .home-services-overlay .svc-clean-icon {
    width: 33px !important;
    height: 33px !important;
    min-width: 33px !important;
    max-width: 33px !important;
  }

  body.home-page .home-services-overlay .svc-clean-name {
    font-size: clamp(11px, 2.65vw, 12.8px) !important;
    line-height: 1.02 !important;
  }

  body.home-page .home-services-overlay .svc-clean-next {
    margin-top: 18px !important;
    min-height: 55px !important;
    flex-basis: 55px !important;
  }
}

/* Shorter phones: trim only a fraction while preserving separation. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  .svc-clean-title-art {
    margin-bottom: 12px !important;
  }

  body.home-page .home-services-overlay .svc-clean-grid {
    grid-template-rows: repeat(3, 59px) !important;
    grid-auto-rows: 59px !important;
    gap: 16px 14px !important;
  }

  body.home-page .home-services-overlay .svc-clean-card {
    height: 59px !important;
    min-height: 59px !important;
    max-height: 59px !important;
    grid-template-columns: 31px minmax(0, 1fr) !important;
    column-gap: 7px !important;
    padding: 5px 7px !important;
  }

  body.home-page .home-services-overlay .svc-clean-icon {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    max-width: 31px !important;
  }

  body.home-page .home-services-overlay .svc-clean-name {
    font-size: 10.8px !important;
  }

  body.home-page .home-services-overlay .svc-clean-next {
    margin-top: 16px !important;
  }
}


/* CAPTIONS UPDATE: free space under the Our Services title and show slideshow caption.
   The service cards are a little closer together, while the caption uses the saved space. */

body.home-page .home-services-overlay .svc-clean-section,
.services-page .svc-clean-section {
  overflow: visible !important;
}

.svc-clean-title-art {
  margin-bottom: 8px !important;
}

.svc-clean-caption {
  width: min(86%, 680px) !important;
  margin: 0 auto 13px !important;
  padding: 0 !important;
  text-align: center !important;
  color: rgba(80, 88, 63, 0.92) !important;
  font-size: clamp(12px, 2.45vw, 15px) !important;
  line-height: 1.28 !important;
  font-weight: 500 !important;
  letter-spacing: 0.005em !important;
}

body.home-page .home-services-overlay .svc-clean-grid {
  grid-template-rows: repeat(3, 59px) !important;
  grid-auto-rows: 59px !important;
  gap: 11px 14px !important;
}

body.home-page .home-services-overlay .svc-clean-card {
  height: 59px !important;
  min-height: 59px !important;
  max-height: 59px !important;
  grid-template-columns: 31px minmax(0, 1fr) !important;
  column-gap: 7px !important;
  padding: 5px 7px !important;
  border-radius: 15px !important;
}

body.home-page .home-services-overlay .svc-clean-icon {
  width: 31px !important;
  height: 31px !important;
  min-width: 31px !important;
  max-width: 31px !important;
}

body.home-page .home-services-overlay .svc-clean-name {
  font-size: clamp(10.8px, 2.58vw, 12.4px) !important;
  line-height: 1.02 !important;
}

body.home-page .home-services-overlay .svc-clean-next {
  margin-top: 12px !important;
}

/* Standalone services page: keep caption readable without squeezing the page version. */
.services-page .svc-clean-caption {
  max-width: 740px !important;
  margin-bottom: 18px !important;
  font-size: clamp(14px, 2vw, 17px) !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .svc-clean-title-art {
    margin-bottom: 7px !important;
  }

  body.home-page .home-services-overlay .svc-clean-caption {
    width: min(92%, 680px) !important;
    margin-bottom: 11px !important;
    font-size: clamp(11px, 2.75vw, 12.8px) !important;
    line-height: 1.24 !important;
  }

  body.home-page .home-services-overlay .svc-clean-grid {
    grid-template-rows: repeat(3, 58px) !important;
    grid-auto-rows: 58px !important;
    gap: 10px 13px !important;
  }

  body.home-page .home-services-overlay .svc-clean-card {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    column-gap: 7px !important;
    padding: 5px 7px !important;
  }

  body.home-page .home-services-overlay .svc-clean-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
  }

  body.home-page .home-services-overlay .svc-clean-name {
    font-size: clamp(10.4px, 2.52vw, 12px) !important;
  }

  body.home-page .home-services-overlay .svc-clean-next {
    margin-top: 11px !important;
    min-height: 54px !important;
    flex-basis: 54px !important;
  }
}

/* Short phones: use two-line max caption and tighter grid so all of it still fits. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-clean-caption {
    font-size: 10.5px !important;
    line-height: 1.18 !important;
    margin-bottom: 9px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.home-page .home-services-overlay .svc-clean-grid {
    grid-template-rows: repeat(3, 55px) !important;
    grid-auto-rows: 55px !important;
    gap: 9px 12px !important;
  }

  body.home-page .home-services-overlay .svc-clean-card {
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    padding: 4px 6px !important;
  }

  body.home-page .home-services-overlay .svc-clean-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }

  body.home-page .home-services-overlay .svc-clean-name {
    font-size: 10px !important;
  }

  body.home-page .home-services-overlay .svc-clean-next {
    margin-top: 10px !important;
  }
}


/* CAPTION ARROW UPDATE:
   Removes the large green Removed section button from the services panel and replaces it with
   a compact centred text + down arrow. The saved height is used for a proper
   multi-line slideshow caption under the Our Services title. */

body.home-page .home-services-overlay .svc-clean-section {
  padding-bottom: 8px !important;
  overflow: visible !important;
}

/* Title stays complete, with less dead space directly below it. */
body.home-page .home-services-overlay .svc-clean-title-art {
  margin: 0 auto 7px !important;
}

/* Give the caption real room for multiple lines. */
body.home-page .home-services-overlay .svc-clean-caption {
  width: min(92%, 720px) !important;
  margin: 0 auto 16px !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: clamp(11.2px, 2.75vw, 13.2px) !important;
  line-height: 1.28 !important;
  color: rgba(80, 88, 63, 0.94) !important;
  font-weight: 500 !important;
}

/* Bring the grid a little closer together so the caption has room. */
body.home-page .home-services-overlay .svc-clean-grid {
  grid-template-rows: repeat(3, 57px) !important;
  grid-auto-rows: 57px !important;
  gap: 9px 13px !important;
}

body.home-page .home-services-overlay .svc-clean-card {
  height: 57px !important;
  min-height: 57px !important;
  max-height: 57px !important;
  padding: 5px 7px !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  column-gap: 7px !important;
  border-radius: 15px !important;
}

body.home-page .home-services-overlay .svc-clean-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
}

body.home-page .home-services-overlay .svc-clean-name {
  font-size: clamp(10.4px, 2.52vw, 12px) !important;
  line-height: 1.02 !important;
}

/* New compact Removed section control. */
.svc-area-jump {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  width: 100% !important;
  min-height: 38px !important;
  margin: 10px auto 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  color: var(--olive-dark) !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 6 !important;
}

.svc-area-jump-text {
  display: block !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(13px, 3vw, 15px) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: rgba(80, 88, 63, 0.88) !important;
}

.svc-area-jump-arrow {
  width: 34px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.svc-area-jump-arrow svg {
  width: 100% !important;
  height: 100% !important;
  fill: none !important;
  stroke: rgba(80, 88, 63, 0.9) !important;
  stroke-width: 5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Short iPhone safety: keep the caption usable but prevent overflow. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-clean-caption {
    min-height: 48px !important;
    margin-bottom: 12px !important;
    font-size: 10.4px !important;
    line-height: 1.18 !important;
  }

  body.home-page .home-services-overlay .svc-clean-grid {
    grid-template-rows: repeat(3, 54px) !important;
    grid-auto-rows: 54px !important;
    gap: 8px 11px !important;
  }

  body.home-page .home-services-overlay .svc-clean-card {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    padding: 4px 6px !important;
  }

  body.home-page .home-services-overlay .svc-clean-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }

  body.home-page .home-services-overlay .svc-clean-name {
    font-size: 10px !important;
  }

  .svc-area-jump {
    min-height: 34px !important;
    margin-top: 8px !important;
  }

  .svc-area-jump-text {
    font-size: 12px !important;
  }

  .svc-area-jump-arrow {
    width: 30px !important;
    height: 22px !important;
  }
}


/* CAPTION TUNED:
   Uses the spare space more evenly:
   - caption is slightly larger/easier to read
   - service boxes/icons/text are a little larger
   - Removed section we cover text is larger
   - Removed section arrow sits lower, using the empty space better
*/

body.home-page .home-services-overlay .svc-clean-section {
  padding-bottom: 8px !important;
}

/* Title remains fixed and complete. */
body.home-page .home-services-overlay .svc-clean-title-art {
  margin: 0 auto 8px !important;
}

/* Caption: easier to read, still controlled to three neat lines. */
body.home-page .home-services-overlay .svc-clean-caption {
  width: min(93%, 740px) !important;
  min-height: 64px !important;
  margin: 0 auto 16px !important;
  font-size: clamp(12px, 2.95vw, 14.2px) !important;
  line-height: 1.28 !important;
  font-weight: 500 !important;
}

/* Service boxes: slightly bigger again, but not as tight as before. */
body.home-page .home-services-overlay .svc-clean-grid {
  grid-template-rows: repeat(3, 63px) !important;
  grid-auto-rows: 63px !important;
  gap: 10px 14px !important;
}

body.home-page .home-services-overlay .svc-clean-card {
  height: 63px !important;
  min-height: 63px !important;
  max-height: 63px !important;
  padding: 6px 8px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  column-gap: 8px !important;
  border-radius: 15px !important;
}

body.home-page .home-services-overlay .svc-clean-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
}

body.home-page .home-services-overlay .svc-clean-name {
  font-size: clamp(11.4px, 2.75vw, 13.2px) !important;
  line-height: 1.03 !important;
}

/* Compact Removed section control: larger text and lower placement. */
body.home-page .home-services-overlay .svc-area-jump {
  min-height: 56px !important;
  margin-top: 22px !important;
  gap: 3px !important;
}

body.home-page .home-services-overlay .svc-area-jump-text {
  font-size: clamp(16px, 3.8vw, 20px) !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
}

body.home-page .home-services-overlay .svc-area-jump-arrow {
  width: 38px !important;
  height: 28px !important;
}

body.home-page .home-services-overlay .svc-area-jump-arrow svg {
  stroke-width: 5.2 !important;
}

/* Shorter iPhones: keep the same look, just shave it slightly. */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-clean-caption {
    min-height: 56px !important;
    margin-bottom: 13px !important;
    font-size: 11.2px !important;
    line-height: 1.22 !important;
  }

  body.home-page .home-services-overlay .svc-clean-grid {
    grid-template-rows: repeat(3, 59px) !important;
    grid-auto-rows: 59px !important;
    gap: 9px 12px !important;
  }

  body.home-page .home-services-overlay .svc-clean-card {
    height: 59px !important;
    min-height: 59px !important;
    max-height: 59px !important;
    grid-template-columns: 31px minmax(0, 1fr) !important;
    column-gap: 7px !important;
    padding: 5px 7px !important;
  }

  body.home-page .home-services-overlay .svc-clean-icon {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    max-width: 31px !important;
  }

  body.home-page .home-services-overlay .svc-clean-name {
    font-size: 10.8px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump {
    min-height: 48px !important;
    margin-top: 17px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-text {
    font-size: 14.5px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow {
    width: 34px !important;
    height: 24px !important;
  }
}


/* AREAS RAISED:
   Raises the compact Removed section we cover text/arrow so it is not sitting too low
   behind the browser bar. Keeps service/caption sizing unchanged. */

body.home-page .home-services-overlay .svc-area-jump {
  margin-top: 8px !important;
  min-height: 44px !important;
  gap: 1px !important;
  transform: translateY(-10px) !important;
}

body.home-page .home-services-overlay .svc-area-jump-text {
  font-size: clamp(16px, 3.8vw, 20px) !important;
}

body.home-page .home-services-overlay .svc-area-jump-arrow {
  width: 36px !important;
  height: 24px !important;
}

/* Keep a little breathing room at the very bottom of the services panel. */
body.home-page .home-services-overlay .svc-clean-section {
  padding-bottom: 18px !important;
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-area-jump {
    margin-top: 6px !important;
    min-height: 40px !important;
    transform: translateY(-12px) !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-text {
    font-size: 14.5px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow {
    width: 32px !important;
    height: 22px !important;
  }

  body.home-page .home-services-overlay .svc-clean-section {
    padding-bottom: 20px !important;
  }
}


/* AREAS LOWERED:
   Moves the compact Removed section we cover text/arrow lower again after the raised version
   went too high. Keeps service boxes and caption unchanged. */

body.home-page .home-services-overlay .svc-area-jump {
  margin-top: 20px !important;
  min-height: 54px !important;
  gap: 3px !important;
  transform: none !important;
}

body.home-page .home-services-overlay .svc-area-jump-text {
  font-size: clamp(16px, 3.8vw, 20px) !important;
}

body.home-page .home-services-overlay .svc-area-jump-arrow {
  width: 38px !important;
  height: 28px !important;
}

/* Reduce the extra bottom padding added by the raised version. */
body.home-page .home-services-overlay .svc-clean-section {
  padding-bottom: 8px !important;
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-area-jump {
    margin-top: 16px !important;
    min-height: 48px !important;
    transform: none !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-text {
    font-size: 14.5px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow {
    width: 34px !important;
    height: 24px !important;
  }

  body.home-page .home-services-overlay .svc-clean-section {
    padding-bottom: 8px !important;
  }
}


/* AREAS MIDDLE:
   Middle position between the too-high raised version and too-low lowered version.
   Keeps the arrow visible above the browser bar without pushing it too far up. */

body.home-page .home-services-overlay .svc-area-jump {
  margin-top: 14px !important;
  min-height: 48px !important;
  gap: 2px !important;
  transform: translateY(-4px) !important;
}

body.home-page .home-services-overlay .svc-area-jump-text {
  font-size: clamp(16px, 3.8vw, 20px) !important;
}

body.home-page .home-services-overlay .svc-area-jump-arrow {
  width: 36px !important;
  height: 25px !important;
}

body.home-page .home-services-overlay .svc-clean-section {
  padding-bottom: 14px !important;
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-area-jump {
    margin-top: 11px !important;
    min-height: 44px !important;
    gap: 1px !important;
    transform: translateY(-5px) !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-text {
    font-size: 14.5px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow {
    width: 33px !important;
    height: 23px !important;
  }

  body.home-page .home-services-overlay .svc-clean-section {
    padding-bottom: 15px !important;
  }
}


/* CAPTION ABOVE TITLE:
   Put the slideshow caption nearest the slideshow image,
   make the caption larger/easier to read,
   and place the Our Services title beneath it. */

body.home-page .home-services-overlay .svc-clean-caption,
.services-page .svc-clean-caption {
  width: min(94%, 760px) !important;
  margin: 0 auto 12px !important;
  min-height: 0 !important;
  font-size: clamp(13px, 3.2vw, 17px) !important;
  line-height: 1.32 !important;
  font-weight: 500 !important;
  color: rgba(80, 88, 63, 0.94) !important;
}

body.home-page .home-services-overlay .svc-clean-title-art,
.services-page .svc-clean-title-art {
  margin: 0 auto 12px !important;
}

body.home-page .home-services-overlay .svc-clean-title-art img,
.services-page .svc-clean-title-art img {
  width: min(79%, 700px) !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .svc-clean-caption,
  .services-page .svc-clean-caption {
    width: min(94%, 740px) !important;
    margin: 0 auto 11px !important;
    font-size: clamp(12px, 3.45vw, 14.8px) !important;
    line-height: 1.3 !important;
  }

  body.home-page .home-services-overlay .svc-clean-title-art,
  .services-page .svc-clean-title-art {
    margin: 0 auto 11px !important;
  }

  body.home-page .home-services-overlay .svc-clean-title-art img,
  .services-page .svc-clean-title-art img {
    width: min(80%, 700px) !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-clean-caption,
  .services-page .svc-clean-caption {
    width: min(95%, 740px) !important;
    margin: 0 auto 10px !important;
    font-size: 11.6px !important;
    line-height: 1.26 !important;
  }

  body.home-page .home-services-overlay .svc-clean-title-art,
  .services-page .svc-clean-title-art {
    margin: 0 auto 10px !important;
  }
}


/* MINIMAL SERVICES REDESIGN
   No service boxes. 3 x 2 icon/text grid with simple divider lines,
   caption stretched wider, and a curved hero-to-services transition. */

body.home-page .home-services-overlay .svc-line-section,
.services-page .svc-line-section {
  position: relative !important;
  width: min(100%, 980px) !important;
  margin: 0 auto !important;
  padding: 42px 22px 18px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.62) 0, rgba(255,255,255,0) 54%),
    linear-gradient(90deg, rgba(238,231,216,0.32), rgba(255,252,245,0.98) 18%, rgba(255,252,245,0.98) 82%, rgba(238,231,216,0.32)) !important;
}

/* Soft shallow curve overlapping the bottom of the slideshow image */
body.home-page .home-services-overlay .svc-line-section::before,
.services-page .svc-line-section::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: -28px !important;
  transform: translateX(-50%) !important;
  width: 122% !important;
  height: 74px !important;
  background: #fbf7ee !important;
  border-radius: 0 0 50% 50% / 0 0 100% 100% !important;
  z-index: -1 !important;
  box-shadow: 0 -10px 28px rgba(255, 252, 245, 0.25) !important;
}

body.home-page .home-services-overlay .svc-line-caption,
.services-page .svc-line-caption {
  width: min(94%, 780px) !important;
  max-width: 780px !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  text-align: center !important;
  color: rgba(80, 88, 63, 0.94) !important;
  font-size: clamp(12.8px, 2.55vw, 15.4px) !important;
  line-height: 1.27 !important;
  font-weight: 500 !important;
  letter-spacing: 0.003em !important;
}

.svc-line-title-art {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  overflow: visible !important;
}

.svc-line-title-art img {
  display: block !important;
  width: min(78%, 650px) !important;
  height: auto !important;
  object-fit: contain !important;
}

.svc-line-grid {
  width: min(94%, 820px) !important;
  margin: 0 auto 18px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, auto) !important;
  column-gap: 0 !important;
  row-gap: 24px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.svc-line-item {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 128px !important;
  padding: 2px 10px !important;
  margin: 0 !important;
  color: rgba(80, 88, 63, 0.92) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  cursor: pointer !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.svc-line-item:not(:nth-child(3n))::after {
  content: "" !important;
  position: absolute !important;
  top: 16px !important;
  right: 0 !important;
  width: 1px !important;
  height: 92px !important;
  background: rgba(80, 88, 63, 0.16) !important;
}

.svc-line-icon {
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  margin: 0 auto 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 180ms ease, opacity 180ms ease !important;
}

.svc-line-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.svc-line-rule {
  width: 38px !important;
  height: 1px !important;
  margin: 0 auto 8px !important;
  background: rgba(80, 88, 63, 0.55) !important;
  transform-origin: center !important;
  transition: width 180ms ease, background 180ms ease !important;
}

.svc-line-name {
  display: block !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  font-size: clamp(13px, 2.85vw, 17px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
  color: rgba(80, 88, 63, 0.92) !important;
}

.svc-line-item.is-active .svc-line-icon,
.svc-line-item:focus-visible .svc-line-icon,
.svc-line-item:hover .svc-line-icon {
  transform: translateY(-2px) scale(1.05) !important;
  opacity: 1 !important;
}

.svc-line-item.is-active .svc-line-rule,
.svc-line-item:focus-visible .svc-line-rule,
.svc-line-item:hover .svc-line-rule {
  width: 50px !important;
  background: rgba(63, 76, 48, 0.8) !important;
}

.svc-line-item.is-active .svc-line-name,
.svc-line-item:focus-visible .svc-line-name,
.svc-line-item:hover .svc-line-name {
  color: rgba(63, 76, 48, 1) !important;
}

body.home-page .home-services-overlay .svc-line-area-jump,
.services-page .svc-line-area-jump {
  margin: 2px auto 0 !important;
  min-height: 42px !important;
  gap: 1px !important;
  transform: none !important;
}

body.home-page .home-services-overlay .svc-area-jump-text,
.services-page .svc-area-jump-text {
  font-size: clamp(15px, 3.2vw, 18px) !important;
}

body.home-page .home-services-overlay .svc-area-jump-arrow,
.services-page .svc-area-jump-arrow {
  width: 32px !important;
  height: 22px !important;
}

/* iPhone portrait tuning */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding: 38px 18px 14px !important;
  }

  body.home-page .home-services-overlay .svc-line-section::before,
  .services-page .svc-line-section::before {
    top: -24px !important;
    height: 66px !important;
    width: 126% !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    width: 94% !important;
    margin-bottom: 15px !important;
    font-size: clamp(12px, 3.05vw, 13.8px) !important;
    line-height: 1.25 !important;
  }

  .svc-line-title-art {
    margin-bottom: 15px !important;
  }

  .svc-line-title-art img {
    width: min(80%, 620px) !important;
  }

  .svc-line-grid {
    width: 96% !important;
    row-gap: 20px !important;
    margin-bottom: 15px !important;
  }

  .svc-line-item {
    min-height: 112px !important;
    padding: 0 7px !important;
  }

  .svc-line-item:not(:nth-child(3n))::after {
    top: 12px !important;
    height: 86px !important;
  }

  .svc-line-icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    margin-bottom: 6px !important;
  }

  .svc-line-rule {
    width: 34px !important;
    margin-bottom: 7px !important;
  }

  .svc-line-name {
    font-size: clamp(12px, 3.15vw, 14.2px) !important;
    line-height: 1.05 !important;
  }
}

/* Shorter iPhones: keep all six visible above the browser bar */
@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding-top: 34px !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    width: 95% !important;
    margin-bottom: 12px !important;
    font-size: 11.2px !important;
    line-height: 1.2 !important;
  }

  .svc-line-title-art {
    margin-bottom: 12px !important;
  }

  .svc-line-grid {
    row-gap: 16px !important;
    margin-bottom: 10px !important;
  }

  .svc-line-item {
    min-height: 100px !important;
    padding: 0 6px !important;
  }

  .svc-line-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin-bottom: 5px !important;
  }

  .svc-line-rule {
    width: 30px !important;
    margin-bottom: 6px !important;
  }

  .svc-line-name {
    font-size: 11.2px !important;
  }

  body.home-page .home-services-overlay .svc-line-area-jump,
  .services-page .svc-line-area-jump {
    margin-top: 0 !important;
    min-height: 36px !important;
  }
}


/* ===== Services icon cleanup: uses original icon artwork, cleaned and centred ===== */
.svc-line-icon {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  margin: 0 auto 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  overflow: visible !important;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
}

.svc-line-icon img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  image-rendering: auto !important;
  filter: none !important;
}

.svc-line-item.is-active .svc-line-icon,
.svc-line-item:focus-visible .svc-line-icon,
.svc-line-item:hover .svc-line-icon {
  transform: translateY(-2px) scale(1.04) !important;
  background: rgba(79, 88, 66, 0.98) !important;
  box-shadow: 0 8px 18px rgba(79, 88, 66, 0.14) !important;
}

.svc-line-item.is-active .svc-line-icon img,
.svc-line-item:focus-visible .svc-line-icon img,
.svc-line-item:hover .svc-line-icon img {
  filter: brightness(0) invert(1) !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  .svc-line-icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    margin-bottom: 6px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  .svc-line-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    margin-bottom: 5px !important;
  }
}


/* ===== Bigger service icons + text override ===== */
.svc-line-grid {
  row-gap: 22px !important;
}

.svc-line-item {
  min-height: 138px !important;
  padding: 2px 8px !important;
}

.svc-line-icon {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  margin: 0 auto 10px !important;
}

.svc-line-rule {
  width: 44px !important;
  margin: 0 auto 10px !important;
}

.svc-line-name {
  font-size: clamp(15px, 3.2vw, 21px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.015em !important;
}

.svc-line-item.is-active .svc-line-rule,
.svc-line-item:focus-visible .svc-line-rule,
.svc-line-item:hover .svc-line-rule {
  width: 56px !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  .svc-line-grid {
    row-gap: 18px !important;
  }

  .svc-line-item {
    min-height: 124px !important;
    padding: 0 6px !important;
  }

  .svc-line-icon {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    margin-bottom: 8px !important;
  }

  .svc-line-rule {
    width: 40px !important;
    margin-bottom: 8px !important;
  }

  .svc-line-name {
    font-size: clamp(13.8px, 3.7vw, 17px) !important;
    line-height: 1.03 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  .svc-line-grid {
    row-gap: 14px !important;
  }

  .svc-line-item {
    min-height: 110px !important;
  }

  .svc-line-icon {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    margin-bottom: 6px !important;
  }

  .svc-line-rule {
    width: 34px !important;
    margin-bottom: 6px !important;
  }

  .svc-line-name {
    font-size: 12.8px !important;
    line-height: 1.02 !important;
  }
}


/* ===== Layout compacting pass: use blank space better and keep removed section visible ===== */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding: 26px 14px 8px !important;
  }

  body.home-page .home-services-overlay .svc-line-section::before,
  .services-page .svc-line-section::before {
    top: -20px !important;
    height: 56px !important;
    width: 124% !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    width: calc(100% - 6px) !important;
    max-width: none !important;
    margin: 0 auto 8px !important;
    font-size: clamp(13px, 3.15vw, 14.2px) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  .svc-line-title-art {
    margin: 0 auto 8px !important;
  }

  .svc-line-title-art img {
    width: min(86%, 650px) !important;
  }

  .svc-line-grid {
    width: 98% !important;
    margin: 0 auto 6px !important;
    row-gap: 12px !important;
  }

  .svc-line-item {
    min-height: 116px !important;
    padding: 0 5px !important;
  }

  .svc-line-item:not(:nth-child(3n))::after {
    top: 8px !important;
    height: 84px !important;
  }

  .svc-line-icon {
    margin: 0 auto 6px !important;
  }

  .svc-line-rule {
    margin: 0 auto 6px !important;
  }

  .svc-line-name {
    line-height: 0.98 !important;
  }

  body.home-page .home-services-overlay .svc-line-area-jump,
  .services-page .svc-line-area-jump {
    margin: 0 auto 0 !important;
    min-height: 34px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-text,
  .services-page .svc-area-jump-text {
    font-size: 15px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow,
  .services-page .svc-area-jump-arrow {
    width: 28px !important;
    height: 18px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding: 22px 12px 6px !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    width: calc(100% - 2px) !important;
    margin-bottom: 7px !important;
    font-size: 12.4px !important;
    line-height: 1.13 !important;
  }

  .svc-line-title-art {
    margin-bottom: 6px !important;
  }

  .svc-line-title-art img {
    width: min(84%, 620px) !important;
  }

  .svc-line-grid {
    width: 99% !important;
    row-gap: 10px !important;
    margin-bottom: 4px !important;
  }

  .svc-line-item {
    min-height: 102px !important;
    padding: 0 4px !important;
  }

  .svc-line-item:not(:nth-child(3n))::after {
    top: 7px !important;
    height: 77px !important;
  }

  .svc-line-icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    margin-bottom: 5px !important;
  }

  .svc-line-rule {
    width: 32px !important;
    margin-bottom: 5px !important;
  }

  .svc-line-name {
    font-size: 12.4px !important;
    line-height: 0.98 !important;
  }

  body.home-page .home-services-overlay .svc-line-area-jump,
  .services-page .svc-line-area-jump {
    min-height: 30px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-text,
  .services-page .svc-area-jump-text {
    font-size: 13.5px !important;
  }
}


/* ===== Final nudge: raise removed section arrow above browser/search bar ===== */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding-top: 22px !important;
    padding-bottom: 4px !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    margin-bottom: 6px !important;
    line-height: 1.12 !important;
  }

  .svc-line-title-art {
    margin-bottom: 5px !important;
  }

  .svc-line-grid {
    row-gap: 8px !important;
    margin-bottom: 0 !important;
  }

  .svc-line-item {
    min-height: 108px !important;
  }

  .svc-line-icon {
    margin-bottom: 5px !important;
  }

  .svc-line-rule {
    margin-bottom: 5px !important;
  }

  body.home-page .home-services-overlay .svc-line-area-jump,
  .services-page .svc-line-area-jump {
    margin-top: -2px !important;
    min-height: 44px !important;
    transform: translateY(-8px) !important;
    padding-bottom: 8px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow,
  .services-page .svc-area-jump-arrow {
    display: block !important;
    width: 30px !important;
    height: 22px !important;
    margin-top: -2px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding-top: 18px !important;
    padding-bottom: 3px !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    margin-bottom: 5px !important;
    line-height: 1.10 !important;
  }

  .svc-line-title-art {
    margin-bottom: 4px !important;
  }

  .svc-line-grid {
    row-gap: 6px !important;
    margin-bottom: -2px !important;
  }

  .svc-line-item {
    min-height: 96px !important;
  }

  body.home-page .home-services-overlay .svc-line-area-jump,
  .services-page .svc-line-area-jump {
    min-height: 40px !important;
    transform: translateY(-10px) !important;
    padding-bottom: 10px !important;
  }
}


/* ===== Final fine-tune: move caption up, drop removed section slightly ===== */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding-top: 14px !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    margin-top: -8px !important;
    margin-bottom: 6px !important;
  }

  body.home-page .home-services-overlay .svc-line-area-jump,
  .services-page .svc-line-area-jump {
    margin-top: 2px !important;
    min-height: 42px !important;
    transform: translateY(-2px) !important;
    padding-bottom: 10px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow,
  .services-page .svc-area-jump-arrow {
    margin-top: 2px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-services-overlay .svc-line-section,
  .services-page .svc-line-section {
    padding-top: 11px !important;
  }

  body.home-page .home-services-overlay .svc-line-caption,
  .services-page .svc-line-caption {
    margin-top: -7px !important;
    margin-bottom: 5px !important;
  }

  body.home-page .home-services-overlay .svc-line-area-jump,
  .services-page .svc-line-area-jump {
    margin-top: 1px !important;
    min-height: 38px !important;
    transform: translateY(-1px) !important;
    padding-bottom: 9px !important;
  }

  body.home-page .home-services-overlay .svc-area-jump-arrow,
  .services-page .svc-area-jump-arrow {
    margin-top: 1px !important;
  }
}


/* ===== Step: homepage order changed to Services -> About -> Removed section ===== */
body.home-page .home-main-services-section {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.home-page .home-main-services-section > .svc-line-section {
  padding-top: 14px !important;
  padding-bottom: 10px !important;
}

body.home-page .home-main-services-section .svc-line-caption {
  margin-top: -7px !important;
}

body.home-page .home-main-services-section .home-section-down-jump {
  margin-top: 5px !important;
  transform: translateY(2px) !important;
}

body.home-page .home-about-overlay {
  background: linear-gradient(180deg, #f9f4e8 0%, var(--cream-light) 100%) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

body.home-page .home-about-panel-section {
  width: min(100%, 980px) !important;
  margin: 0 auto !important;
  padding: 14px 14px 12px !important;
  box-sizing: border-box !important;
}

body.home-page .home-about-overlay .home-about-card.about-card-step49 {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

body.home-page .home-section-up-jump,
body.home-page .home-section-down-jump {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(80, 88, 63, 0.94) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body.home-page .home-section-up-jump {
  margin: 0 auto 6px !important;
  min-height: 42px !important;
}

body.home-page .home-section-down-jump {
  margin: 6px auto 0 !important;
  min-height: 46px !important;
}

body.home-page .svc-area-jump-arrow-up {
  order: 0 !important;
  margin-bottom: -1px !important;
}

body.home-page .svc-area-jump-arrow-up + .svc-area-jump-text {
  order: 1 !important;
}

body.home-page .home-areas-overlay {
  top: var(--home-areas-top, var(--home-services-top)) !important;
  border-radius: 0 !important;
}

body.home-page.areas-panel-open .hero-slideshow {
  transform: translate3d(0, 0, 0) !important;
}

body.home-page .areas-to-about-jump {
  margin: 0 auto 4px !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
  }

  body.home-page .home-main-services-section .svc-line-caption {
    margin-top: -8px !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 7px !important;
    transform: translateY(4px) !important;
    min-height: 44px !important;
  }

  body.home-page .home-about-panel-section {
    padding: 12px 12px 10px !important;
  }

  body.home-page .home-about-overlay .home-about-card.about-card-step49 {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
  }

  body.home-page .about-to-areas-jump {
    margin-top: 8px !important;
    transform: translateY(3px) !important;
  }

  body.home-page .areas-to-about-jump {
    margin-bottom: 5px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 10px !important;
    padding-bottom: 7px !important;
  }

  body.home-page .home-main-services-section .svc-line-caption {
    margin-top: -7px !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 6px !important;
    transform: translateY(4px) !important;
    min-height: 40px !important;
  }

  body.home-page .home-about-panel-section {
    padding-top: 10px !important;
  }
}


/* ===== Fine tune: wider service caption and lift About us arrow slightly ===== */
body.home-page .home-main-services-section .svc-line-caption {
  width: min(96%, 920px) !important;
  max-width: 920px !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }

  body.home-page .home-main-services-section .svc-line-caption {
    width: calc(100% - 10px) !important;
    max-width: none !important;
    margin-top: -18px !important;
    margin-bottom: 6px !important;
    line-height: 1.15 !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 2px !important;
    transform: translateY(-1px) !important;
    min-height: 40px !important;
    padding-bottom: 4px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 8px !important;
    padding-bottom: 7px !important;
  }

  body.home-page .home-main-services-section .svc-line-caption {
    width: calc(100% - 8px) !important;
    max-width: none !important;
    margin-top: -16px !important;
    margin-bottom: 5px !important;
    line-height: 1.13 !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 1px !important;
    transform: translateY(-1px) !important;
    min-height: 37px !important;
    padding-bottom: 3px !important;
  }
}


/* ===== Correction: About us arrow/text was too high; lower it slightly only ===== */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 8px !important;
    transform: translateY(4px) !important;
    min-height: 42px !important;
    padding-bottom: 5px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 6px !important;
    transform: translateY(3px) !important;
    min-height: 39px !important;
    padding-bottom: 5px !important;
  }
}


/* ===== Fine tune: move About us control down visibly but keep arrow clear of browser bar ===== */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 16px !important;
    transform: translateY(14px) !important;
    min-height: 42px !important;
    padding-bottom: 0 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section .home-section-down-jump {
    margin-top: 13px !important;
    transform: translateY(11px) !important;
    min-height: 40px !important;
    padding-bottom: 0 !important;
  }
}


/* ===== Final push: move About us control clearly lower into the bottom gap ===== */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-bottom: 18px !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    position: relative !important;
    top: 22px !important;
    transform: none !important;
    margin-top: 0 !important;
    min-height: 42px !important;
    padding-bottom: 0 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-bottom: 15px !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    position: relative !important;
    top: 18px !important;
    transform: none !important;
    margin-top: 0 !important;
    min-height: 39px !important;
    padding-bottom: 0 !important;
  }
}


/* ===== Clean fix: anchor the About us control in the bottom gap explicitly ===== */
@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section > .svc-line-section {
    position: relative !important;
    padding-bottom: 64px !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    position: absolute !important;
    left: 50% !important;
    bottom: 10px !important;
    top: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    min-height: 40px !important;
    width: auto !important;
    z-index: 5 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-bottom: 58px !important;
  }

  body.home-page .home-main-services-section .home-section-down-jump {
    bottom: 8px !important;
    min-height: 38px !important;
  }
}


/* ===== Real fix: unique target for the main About us jump =====
   Previous tweaks were fighting old .svc-area-jump / .home-section-down-jump rules.
   This ID selector and inline fallback force the visible About us control lower in normal flow. */
body.home-page #homeAboutJump {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 22px auto 0 !important;
  min-height: 40px !important;
  padding: 0 !important;
  width: 100% !important;
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page #homeAboutJump {
    margin-top: 22px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page #homeAboutJump {
    margin-top: 18px !important;
  }
}

/* Scroll-fade v3: fade the visible contents of the snap sections while the finger scrolls.
   These variables are driven by slideshow.js and keep the page backgrounds/positioning intact. */
body.home-page {
  --home-services-content-opacity: 1;
  --home-about-content-opacity: 0;
  --home-areas-content-opacity: 0;
}

body.home-page .home-about-section > *,
body.home-page .services-link-bar {
  opacity: var(--home-services-content-opacity, 1) !important;
  transition: opacity 260ms linear;
  will-change: opacity;
}

body.home-page .home-services-overlay > *:not(.home-services-panel-handle):not(.home-services-close) {
  opacity: var(--home-about-content-opacity, 0) !important;
  transition: opacity 260ms linear;
  will-change: opacity;
}

body.home-page .home-areas-overlay > *:not(.home-areas-back) {
  opacity: var(--home-areas-content-opacity, 0) !important;
  transition: opacity 260ms linear;
  will-change: opacity;
}

body.home-page.home-stack-dragging .home-about-section > *,
body.home-page.home-stack-dragging .services-link-bar,
body.home-page.home-stack-dragging .home-services-overlay > *:not(.home-services-panel-handle):not(.home-services-close),
body.home-page.home-stack-dragging .home-areas-overlay > *:not(.home-areas-back) {
  transition: none !important;
}


/* ===== Current patch: homepage now ends at About Us; removed page links are hidden. ===== */
body.home-page {
  --home-areas-content-opacity: 0;
}

body.home-page .home-areas-overlay,
body.home-page .about-to-areas-jump,
body.home-page .areas-to-about-jump,
body.home-page .home-gallery-button,
.services-page #areasOpenButton {
  display: none !important;
}

body.home-page .home-about-panel-section {
  min-height: calc(100% - 18px) !important;
  display: flex !important;
  flex-direction: column !important;
}

body.home-page .home-about-footer {
  width: min(100% - 12px, 980px) !important;
  margin: auto auto 0 !important;
  padding-top: 12px !important;
  padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
}

body.home-page .home-about-footer .home-footer-links {
  margin-bottom: 6px !important;
}

body.home-page .home-about-footer a {
  display: inline-block;
  padding: 6px 2px;
}

body.home-page .home-scroll-indicator span {
  height: 25% !important;
}


/* ===== FINAL LAYOUT RESET: remove the green overlay experiment and stop About footer/card overlap =====
   This deliberately overrides the later mobile fixes. The green strip is only used behind the
   Services landing section; the About Us panel itself is cream from top to bottom so it cannot
   cut through the card or footer while swiping. */
@media (orientation: portrait) and (max-width: 520px) {
  :root {
    --home-green-footer-strip: clamp(48px, 7svh, 68px);
  }

  html,
  body,
  body.home-page {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  body.home-page::before,
  body.home-page::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  body.home-page .site {
    background:
      linear-gradient(
        to bottom,
        var(--cream-light) 0,
        var(--cream-light) calc(100% - var(--home-green-footer-strip)),
        var(--olive-mid) calc(100% - var(--home-green-footer-strip)),
        var(--olive-mid) 100%
      ) !important;
    overflow: hidden !important;
  }

  body.home-page.services-panel-open .site,
  body.home-page.home-stack-dragging .site {
    background: var(--cream-light) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay {
    top: var(--home-services-top) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #f9f4e8 0%, var(--cream-light) 100%) !important;
    overflow: hidden !important;
    -webkit-overflow-scrolling: auto !important;
  }

  body.home-page .home-about-panel-section {
    width: min(100%, 980px) !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 auto !important;
    padding: 10px 12px calc(18px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  body.home-page .home-section-up-jump {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    margin: 0 auto 5px !important;
    padding: 0 !important;
  }

  body.home-page .home-about-overlay .home-about-card.about-card-step49 {
    flex: 0 1 auto !important;
    width: min(100%, 860px) !important;
    margin: 2px auto 12px !important;
    padding: 12px 12px 18px !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.home-page .home-about-overlay .about-top-wrap-step49 {
    margin: 0 0 7px !important;
  }

  body.home-page .home-about-overlay .about-top-wrap-step49 img {
    width: min(82%, 520px) !important;
    max-height: 64px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.home-page .home-about-copy.about-copy-step49 {
    padding: 0 4px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 12.2px !important;
    line-height: 1.31 !important;
    margin: 0 0 10px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p:last-child {
    margin-bottom: 7px !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 32px !important;
    margin: 1px 0 0 !important;
    overflow: visible !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 img {
    display: block !important;
    width: 132px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body.home-page .home-about-footer {
    flex: 0 0 auto !important;
    width: min(100% - 12px, 980px) !important;
    margin: 0 auto !important;
    padding: 0 0 4px !important;
    transform: none !important;
    position: relative !important;
    z-index: 5 !important;
    clear: both !important;
  }

  body.home-page .home-about-footer .home-footer-links {
    margin: 0 0 3px !important;
    gap: 6px 24px !important;
  }

  body.home-page .home-about-footer a {
    display: inline-block !important;
    padding: 2px 2px !important;
  }

  body.home-page .home-about-footer p {
    display: block !important;
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.12 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  :root {
    --home-green-footer-strip: clamp(42px, 6.5svh, 58px);
  }

  body.home-page .home-about-panel-section {
    padding-top: 8px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  body.home-page .home-section-up-jump {
    min-height: 36px !important;
    margin-bottom: 3px !important;
  }

  body.home-page .home-about-overlay .home-about-card.about-card-step49 {
    margin-top: 1px !important;
    margin-bottom: 8px !important;
    padding: 10px 10px 15px !important;
    border-radius: 23px !important;
  }

  body.home-page .home-about-overlay .about-top-wrap-step49 {
    margin-bottom: 5px !important;
  }

  body.home-page .home-about-overlay .about-top-wrap-step49 img {
    width: min(78%, 500px) !important;
    max-height: 56px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 11.5px !important;
    line-height: 1.27 !important;
    margin-bottom: 8px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p:last-child {
    margin-bottom: 5px !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 {
    min-height: 28px !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 img {
    width: 118px !important;
  }

  body.home-page .home-about-footer p {
    font-size: 10px !important;
  }
}


/* ===== NO-GREEN-BLOCK FINAL FIX =====
   The artificial green bottom strip was being drawn inside the page, so it blocked
   the Services footer/jump area and changed/disappeared when About Us opened.
   This removes that strip completely and keeps the page background stable cream.
   Cache: nogreenfinal1 */
@media (orientation: portrait) and (max-width: 520px) {
  :root {
    --home-green-footer-strip: 0px !important;
  }

  html,
  body,
  body.home-page,
  body.home-page .site,
  body.home-page.services-panel-open .site,
  body.home-page.home-stack-dragging .site {
    background: var(--cream-light) !important;
    background-color: var(--cream-light) !important;
  }

  body.home-page::before,
  body.home-page::after {
    content: none !important;
    display: none !important;
  }

  /* Keep the Services page content clear of the iPhone bottom browser bar without
     using a fake overlay that covers the About us control. */
  body.home-page .home-main-services-section,
  body.home-page .home-main-services-section > .svc-line-section {
    background: var(--cream-light) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    padding-bottom: max(42px, calc(26px + env(safe-area-inset-bottom))) !important;
  }

  body.home-page #homeAboutJump {
    margin: 18px auto 0 !important;
    min-height: 42px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 6 !important;
  }

  /* The About Us panel should be one stable cream page. */
  body.home-page .home-services-overlay.home-about-overlay {
    background: linear-gradient(180deg, #f9f4e8 0%, var(--cream-light) 100%) !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-bottom: max(36px, calc(22px + env(safe-area-inset-bottom))) !important;
  }

  body.home-page #homeAboutJump {
    margin-top: 14px !important;
    min-height: 38px !important;
  }
}


/* ===== PORTRAIT CLEAN BACKGROUND + BROWSER BAR FIX v1 =====
   Rules:
   - Root/page behind browser chrome is green.
   - Real visible website sections stay full-width cream.
   - No fake green strip/overlay is drawn inside Services or About Us.
   - Uses visualViewport height where available so mobile browser bars do not sit over content.
*/
@media (orientation: portrait) {
  html {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  body.home-page {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  body.home-page::before,
  body.home-page::after {
    content: none !important;
    display: none !important;
  }

  body.home-page .site,
  body.home-page .hero-slideshow,
  body.home-page .slide-layer,
  body.home-page .home-main-services-section,
  body.home-page .home-services-overlay.home-about-overlay,
  body.home-page .home-about-panel-section {
    background-color: var(--cream-light) !important;
  }

  body.home-page .home-main-services-section,
  body.home-page .home-main-services-section > .svc-line-section,
  body.home-page .home-services-overlay.home-about-overlay,
  body.home-page .home-about-panel-section {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }

  body.home-page .home-main-services-section > .svc-line-section,
  body.home-page .home-services-overlay.home-about-overlay,
  body.home-page .home-about-panel-section {
    background: linear-gradient(180deg, #fbf7ee 0%, var(--cream-light) 100%) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section::before {
    background: #fbf7ee !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  html,
  body.home-page {
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  body.home-page .site {
    height: calc(var(--home-visual-height, 100svh) - var(--header-height)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--cream-light) !important;
    background-color: var(--cream-light) !important;
  }

  body.home-page .hero-slideshow {
    flex: 0 0 clamp(225px, 33.5svh, 292px) !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
  }

  body.home-page .slide-layer {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: var(--cream-light) !important;
  }

  body.home-page .slide-layer img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.home-page .home-main-services-section {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 10px !important;
    padding-bottom: max(32px, calc(18px + env(safe-area-inset-bottom))) !important;
    background: linear-gradient(180deg, #fbf7ee 0%, var(--cream-light) 100%) !important;
  }

  body.home-page .home-main-services-section .svc-line-caption {
    margin-top: 0 !important;
  }

  body.home-page #homeAboutJump {
    margin: 14px auto 0 !important;
    min-height: 40px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 6 !important;
  }

  body.home-page .home-services-overlay.home-about-overlay {
    position: fixed !important;
    top: var(--home-services-top) !important;
    bottom: auto !important;
    height: calc(var(--home-visual-height, 100svh) - var(--home-services-top)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: var(--cream-light) !important;
  }

  body.home-page .home-about-panel-section {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 10px 12px max(14px, env(safe-area-inset-bottom)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: linear-gradient(180deg, #fbf7ee 0%, var(--cream-light) 100%) !important;
  }

  body.home-page .home-section-up-jump {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    margin: 0 auto 5px !important;
    padding: 0 !important;
  }

  body.home-page .home-about-overlay .home-about-card.about-card-step49 {
    flex: 0 1 auto !important;
    width: min(100%, 860px) !important;
    margin: 2px auto 10px !important;
    padding: 12px 12px 16px !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.home-page .home-about-overlay .about-top-wrap-step49 {
    margin: 0 0 7px !important;
  }

  body.home-page .home-about-overlay .about-top-wrap-step49 img {
    width: min(82%, 520px) !important;
    max-height: 62px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.home-page .home-about-copy.about-copy-step49 {
    padding: 0 4px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 12.1px !important;
    line-height: 1.30 !important;
    margin: 0 0 9px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p:last-child {
    margin-bottom: 6px !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 {
    min-height: 30px !important;
    margin: 1px 0 0 !important;
    overflow: visible !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 img {
    width: 126px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body.home-page .home-about-footer {
    flex: 0 0 auto !important;
    width: min(100% - 12px, 980px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    transform: none !important;
  }

  body.home-page .home-about-footer .home-footer-links {
    margin: 0 0 3px !important;
    gap: 6px 24px !important;
  }

  body.home-page .home-about-footer a {
    display: inline-block !important;
    padding: 2px !important;
  }

  body.home-page .home-about-footer p {
    display: block !important;
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.12 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 8px !important;
    padding-bottom: max(26px, calc(14px + env(safe-area-inset-bottom))) !important;
  }

  body.home-page #homeAboutJump {
    margin-top: 10px !important;
    min-height: 38px !important;
  }

  body.home-page .home-about-panel-section {
    padding-top: 8px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  body.home-page .home-section-up-jump {
    min-height: 34px !important;
    margin-bottom: 3px !important;
  }

  body.home-page .home-about-overlay .home-about-card.about-card-step49 {
    margin-top: 1px !important;
    margin-bottom: 8px !important;
    padding: 10px 10px 14px !important;
    border-radius: 23px !important;
  }

  body.home-page .home-about-overlay .about-top-wrap-step49 img {
    width: min(78%, 500px) !important;
    max-height: 56px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 11.4px !important;
    line-height: 1.27 !important;
    margin-bottom: 8px !important;
  }

  body.home-page .home-about-copy.about-copy-step49 p:last-child {
    margin-bottom: 5px !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 {
    min-height: 28px !important;
  }

  body.home-page .home-about-overlay .about-bottom-wrap-step49 img {
    width: 118px !important;
  }

  body.home-page .home-about-footer p {
    font-size: 10px !important;
  }
}

@media (orientation: portrait) and (min-width: 521px) {
  html,
  body.home-page {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  body.home-page .site,
  body.home-page .hero-slideshow,
  body.home-page .home-main-services-section,
  body.home-page .home-services-overlay.home-about-overlay,
  body.home-page .home-about-panel-section {
    background: var(--cream-light) !important;
    background-color: var(--cream-light) !important;
  }

  body.home-page .site {
    min-height: calc(100dvh - var(--header-height)) !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
}


/* ===== CONSISTENT MOBILE/TABLET PORTRAIT GREEN BROWSER BAR v2 =====
   Goal: keep the actual website cream/full-width, with NO green side bleed.
   The green appears only as the bottom browser/search-bar zone.
   This is not an overlay: each visible panel carries its own green filler AFTER its content,
   so it persists when moving Services <-> About and cannot cover text/footer links. */
@media (orientation: portrait) {
  :root {
    --mobile-browser-green-zone: clamp(88px, 12svh, 136px);
  }

  html,
  body.home-page {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  body.home-page::before,
  body.home-page::after {
    content: none !important;
    display: none !important;
  }

  /* The frame behind sections may be green, but every visible content section is forced cream edge-to-edge. */
  body.home-page .site {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  body.home-page .hero-slideshow,
  body.home-page .slide-layer,
  body.home-page .home-main-services-section > .svc-line-section,
  body.home-page .home-services-overlay.home-about-overlay,
  body.home-page .home-about-panel-section {
    background-color: var(--cream-light) !important;
  }

  body.home-page .home-main-services-section,
  body.home-page .home-services-overlay.home-about-overlay {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section,
  body.home-page .home-about-panel-section {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, #fbf7ee 0%, var(--cream-light) 100%) !important;
    overflow: hidden !important;
  }

  /* Kill the old curved/central card background which caused green to show at the edges. */
  body.home-page .home-main-services-section > .svc-line-section::before {
    content: none !important;
    display: none !important;
  }

  /* Make both live panels column layouts so the green zone is always AFTER the content. */
  body.home-page .home-main-services-section > .svc-line-section,
  body.home-page .home-about-panel-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  /* Services: green starts after the About Us control, never around the service artwork. */
  body.home-page .home-main-services-section > .svc-line-section::after {
    content: "" !important;
    display: block !important;
    flex: 1 1 var(--mobile-browser-green-zone) !important;
    min-height: var(--mobile-browser-green-zone) !important;
    align-self: stretch !important;
    width: calc(100% + 40px) !important;
    margin: 18px -20px -32px !important;
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
    pointer-events: none !important;
  }

  /* About: footer stays above the green zone; green begins after copyright. */
  body.home-page .home-about-panel-section::after {
    content: "" !important;
    display: block !important;
    flex: 1 1 var(--mobile-browser-green-zone) !important;
    min-height: var(--mobile-browser-green-zone) !important;
    align-self: stretch !important;
    width: calc(100% + 40px) !important;
    margin: 14px -20px -32px !important;
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
    pointer-events: none !important;
  }

  body.home-page .home-about-footer {
    position: relative !important;
    z-index: 10 !important;
    flex: 0 0 auto !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  :root {
    --mobile-browser-green-zone: clamp(92px, 13svh, 126px);
  }

  /* Keep the browser-zone filler but prevent it from stealing space from the actual content. */
  body.home-page .home-main-services-section > .svc-line-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 0 !important;
  }

  body.home-page .home-about-panel-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 0 !important;
  }

  body.home-page #homeAboutJump {
    flex: 0 0 auto !important;
    margin: 14px auto 0 !important;
    min-height: 40px !important;
    position: relative !important;
    z-index: 12 !important;
  }

  body.home-page .home-about-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (orientation: portrait) and (min-width: 521px) {
  :root {
    --mobile-browser-green-zone: clamp(76px, 8svh, 128px);
  }
}


/* ===== Services edge cleanup v1 =====
   Keep the About Us panel exactly as-is, but remove the ugly green top/side bleed
   around the Our Services panel. Green is only allowed after the services content,
   where it sits behind the mobile/tablet browser/search bar. */
@media (orientation: portrait) {
  body.home-page .home-about-section.home-main-services-section.about-target-step49 {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    background: var(--cream-light) !important;
    background-color: var(--cream-light) !important;
    overflow: hidden !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, #fbf7ee 0%, var(--cream-light) 100%) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section::before {
    content: none !important;
    display: none !important;
  }

  body.home-page .home-main-services-section > .svc-line-section::after {
    content: "" !important;
    display: block !important;
    flex: 1 1 var(--mobile-browser-green-zone, 112px) !important;
    min-height: var(--mobile-browser-green-zone, 112px) !important;
    align-self: center !important;
    width: 100vw !important;
    margin: 18px calc(50% - 50vw) -32px !important;
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
    pointer-events: none !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 10px !important;
    padding-bottom: 0 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section > .svc-line-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 8px !important;
    padding-bottom: 0 !important;
  }
}

/* ===== About Us top green strip v1 =====
   Keep the About Us layout exactly as-is, but add the same thin olive strip
   directly under the slideshow photo that the Our Services section now has. */
@media (orientation: portrait) {
  body.home-page .home-about-panel-section {
    position: relative !important;
  }

  body.home-page .home-about-panel-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    display: block !important;
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }
}


/* ===== Services title block nudge v1 =====
   Move the Our Services artwork/grid down slightly to create cleaner spacing
   between the slideshow caption and the Our Services title. */
@media (orientation: portrait) {
  body.home-page .home-main-services-section .svc-line-title-art {
    margin-top: 10px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  body.home-page .home-main-services-section .svc-line-title-art {
    margin-top: 9px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  body.home-page .home-main-services-section .svc-line-title-art {
    margin-top: 7px !important;
  }
}

/* ===== Adaptive compact browser fit v2 =====
   Keep the iPhone Safari layout untouched. This only runs when slideshow.js
   detects iPhone Chrome/Firefox/Edge in portrait, where the visible page area is
   shorter because the browser has both a top address bar and bottom toolbar.
   It does not change the cream/green layout; it only tightens Services enough
   so the About us control stays above the toolbar. */
@media (orientation: portrait) and (max-width: 520px) {
  html.compact-mobile-browser body.home-page,
  html.compact-mobile-browser body.home-page .site {
    height: auto !important;
    min-height: 0 !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 7px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-caption {
    width: calc(100% - 4px) !important;
    max-width: none !important;
    margin-top: -11px !important;
    margin-bottom: 2px !important;
    font-size: 12.1px !important;
    line-height: 1.06 !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-title-art {
    margin-top: 0 !important;
    margin-bottom: 1px !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(76%, 590px) !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-grid {
    width: 99% !important;
    row-gap: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-item {
    min-height: 88px !important;
    padding: 0 3px !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after {
    top: 5px !important;
    height: 64px !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin-bottom: 3px !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-rule {
    width: 28px !important;
    margin-bottom: 3px !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-name {
    font-size: 11.7px !important;
    line-height: 0.97 !important;
  }

  html.compact-mobile-browser body.home-page #homeAboutJump {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 4px auto 0 !important;
    min-height: 31px !important;
    padding: 0 !important;
    z-index: 20 !important;
  }

  html.compact-mobile-browser body.home-page #homeAboutJump .svc-area-jump-text {
    font-size: 13.2px !important;
    line-height: 1.05 !important;
  }

  html.compact-mobile-browser body.home-page #homeAboutJump .svc-area-jump-arrow {
    width: 25px !important;
    height: 16px !important;
    margin-top: 0 !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section > .svc-line-section::after {
    min-height: clamp(64px, 8svh, 86px) !important;
    flex-basis: clamp(64px, 8svh, 86px) !important;
    margin-top: 6px !important;
  }

  /* About panel was already fine in iPhone Chrome; keep it compact and safely above the toolbar. */
  html.compact-mobile-browser body.home-page .home-about-panel-section {
    padding-top: 8px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  html.compact-mobile-browser body.home-page .home-about-overlay .home-about-card.about-card-step49 {
    margin-top: 1px !important;
    margin-bottom: 8px !important;
    padding: 10px 10px 13px !important;
  }

  html.compact-mobile-browser body.home-page .home-about-copy.about-copy-step49 p {
    font-size: 11.45px !important;
    line-height: 1.25 !important;
    margin-bottom: 7px !important;
  }

  html.compact-mobile-browser body.home-page .home-about-footer {
    padding-top: 2px !important;
    padding-bottom: 0 !important;
  }

  html.compact-mobile-browser body.home-page .home-about-footer p {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) and (max-height: 760px) {
  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-icon {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-item {
    min-height: 82px !important;
  }

  html.compact-mobile-browser body.home-page .home-main-services-section .svc-line-name {
    font-size: 11.2px !important;
  }
}

/* ================================================================
   FINAL UNIVERSAL PORTRAIT FIT - stable snap, no cut-off
   Built from the uploaded reverted version. This keeps the stacked
   swipe/snap system, but makes each visible section fit the real
   browser viewport before the green browser zone begins.
   ================================================================ */
@media (orientation: portrait) {
  html.home-portrait-fit,
  html.home-portrait-fit body.home-page {
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  html.home-portrait-fit body.home-page {
    height: var(--home-vvh, 100svh) !important;
    min-height: var(--home-vvh, 100svh) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  html.home-portrait-fit body.home-page::before,
  html.home-portrait-fit body.home-page::after {
    content: none !important;
    display: none !important;
  }

  html.home-portrait-fit body.home-page .site {
    height: calc(var(--home-vvh, 100svh) - var(--header-height)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  html.home-portrait-fit body.home-page .hero-slideshow {
    flex: 0 0 var(--home-hero-height-live, min(calc(100vw * 0.5625), 292px)) !important;
    height: var(--home-hero-height-live, min(calc(100vw * 0.5625), 292px)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--cream-light) !important;
    background-color: var(--cream-light) !important;
  }

  html.home-portrait-fit body.home-page .slide-layer {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    background: var(--cream-light) !important;
    background-color: var(--cream-light) !important;
  }

  html.home-portrait-fit body.home-page .slide-layer img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* Services page frame: cream content first, green only after the content. */
  html.home-portrait-fit body.home-page .home-about-section.home-main-services-section.about-target-step49 {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--home-panel-height, auto) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px 0 0 !important;
    overflow: hidden !important;
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 14px 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #fbf7ee 0%, var(--cream-light) 100%) !important;
    background-color: var(--cream-light) !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section::before,
  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section::after {
    content: none !important;
    display: none !important;
  }

  html.home-portrait-fit body.home-page .svc-line-content-fit {
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
    opacity: var(--home-services-content-opacity, 1) !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-caption {
    width: min(96%, 820px) !important;
    max-width: 820px !important;
    margin: 0 auto 7px !important;
    font-size: clamp(12px, 3.05vw, 15px) !important;
    line-height: 1.16 !important;
    font-weight: 500 !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art {
    margin: 0 auto 8px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(76%, 650px) !important;
    height: auto !important;
    object-fit: contain !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-grid {
    width: min(96%, 840px) !important;
    margin: 0 auto 0 !important;
    row-gap: 14px !important;
    column-gap: 0 !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-item {
    min-height: 100px !important;
    padding: 0 6px !important;
    overflow: visible !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after {
    top: 8px !important;
    height: 78px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    margin-bottom: 5px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-rule {
    width: 34px !important;
    margin-bottom: 5px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(11.8px, 3.05vw, 15px) !important;
    line-height: 1.02 !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: 9px auto 0 !important;
    padding: 0 !important;
    z-index: 15 !important;
    flex: 0 0 auto !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump .svc-area-jump-text {
    font-size: clamp(13px, 3.15vw, 16px) !important;
    line-height: 1.05 !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump .svc-area-jump-arrow {
    width: 28px !important;
    height: 18px !important;
    margin-top: 0 !important;
  }

  /* About panel frame: full width cream content, green only below footer. */
  html.home-portrait-fit body.home-page .home-services-overlay.home-about-overlay {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--home-services-top, calc(var(--header-height) + var(--home-hero-height-live, 240px))) !important;
    bottom: auto !important;
    height: var(--home-panel-height, calc(var(--home-vvh, 100svh) - var(--home-services-top, 360px))) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--olive-mid) !important;
    background-color: var(--olive-mid) !important;
  }

  html.home-portrait-fit body.home-page .home-about-panel-section {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 12px 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #fbf7ee 0%, var(--cream-light) 100%) !important;
    background-color: var(--cream-light) !important;
  }

  html.home-portrait-fit body.home-page .home-about-panel-section::before,
  html.home-portrait-fit body.home-page .home-about-panel-section::after {
    content: none !important;
    display: none !important;
  }

  html.home-portrait-fit body.home-page .home-about-content-fit {
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    opacity: var(--home-about-content-opacity, 1) !important;
  }

  html.home-portrait-fit body.home-page .home-section-up-jump {
    min-height: 36px !important;
    margin: 0 auto 5px !important;
    padding: 0 !important;
  }

  html.home-portrait-fit body.home-page .home-about-card.about-card-step49 {
    width: min(100%, 860px) !important;
    margin: 0 auto 8px !important;
    padding: 12px 12px 13px !important;
    border-radius: 24px !important;
    overflow: visible !important;
    background: #fbf8f1 !important;
  }

  html.home-portrait-fit body.home-page .home-about-overlay .about-top-wrap-step49 {
    margin: 0 0 7px !important;
  }

  html.home-portrait-fit body.home-page .home-about-overlay .about-top-wrap-step49 img {
    width: min(82%, 540px) !important;
    max-height: 62px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  html.home-portrait-fit body.home-page .home-about-copy.about-copy-step49 {
    padding: 0 4px !important;
  }

  html.home-portrait-fit body.home-page .home-about-copy.about-copy-step49 p {
    font-size: clamp(11.7px, 2.95vw, 13.7px) !important;
    line-height: 1.30 !important;
    margin: 0 0 8px !important;
  }

  html.home-portrait-fit body.home-page .home-about-copy.about-copy-step49 p:last-child {
    margin-bottom: 6px !important;
  }

  html.home-portrait-fit body.home-page .home-about-overlay .about-bottom-wrap-step49 {
    margin: 1px 0 0 !important;
    min-height: 28px !important;
    overflow: visible !important;
  }

  html.home-portrait-fit body.home-page .home-about-overlay .about-bottom-wrap-step49 img {
    width: 124px !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
  }

  html.home-portrait-fit body.home-page .home-about-footer {
    width: min(100% - 12px, 960px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    transform: none !important;
  }

  html.home-portrait-fit body.home-page .home-about-footer .home-footer-links {
    margin: 0 0 3px !important;
    gap: 6px 24px !important;
  }

  html.home-portrait-fit body.home-page .home-about-footer a {
    padding: 2px !important;
    display: inline-block !important;
  }

  html.home-portrait-fit body.home-page .home-about-footer p {
    display: block !important;
    margin: 0 !important;
    font-size: clamp(10px, 2.6vw, 12px) !important;
    line-height: 1.12 !important;
  }
}

/* Tablet portrait base: same layout, naturally smaller chrome reserve and less huge artwork. */
@media (orientation: portrait) and (min-width: 521px) {
  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section {
    padding: 8px 24px 0 !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-caption {
    font-size: clamp(12px, 1.65vw, 15px) !important;
    line-height: 1.18 !important;
    margin-bottom: 8px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art {
    margin-bottom: 10px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(64%, 620px) !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-grid {
    width: min(86%, 760px) !important;
    row-gap: 18px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-item {
    min-height: 108px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(13px, 2vw, 17px) !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump {
    margin-top: 8px !important;
  }

  html.home-portrait-fit body.home-page .home-about-panel-section {
    padding: 6px 20px 0 !important;
  }

  html.home-portrait-fit body.home-page .home-about-copy.about-copy-step49 p {
    font-size: clamp(11px, 1.65vw, 13.5px) !important;
    line-height: 1.28 !important;
  }
}

/* Automatically selected fit levels. These tighten spacing only when JS detects
   that the real visible browser area is too short. */
@media (orientation: portrait) {
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-caption {
    font-size: clamp(11px, 2.65vw, 13px) !important;
    line-height: 1.08 !important;
    margin-bottom: 4px !important;
  }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-title-art { margin-bottom: 5px !important; }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-title-art img { width: min(70%, 590px) !important; }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-grid { row-gap: 8px !important; width: min(94%, 780px) !important; }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-item { min-height: 88px !important; padding: 0 4px !important; }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after { top: 5px !important; height: 68px !important; }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-icon { width: 46px !important; height: 46px !important; min-width: 46px !important; margin-bottom: 3px !important; }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-rule { width: 28px !important; margin-bottom: 3px !important; }
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-name { font-size: clamp(10.8px, 2.65vw, 13px) !important; line-height: .98 !important; }
  html.services-fit-compact body.home-page #homeAboutJump { margin-top: 5px !important; min-height: 31px !important; }
  html.services-fit-compact body.home-page #homeAboutJump .svc-area-jump-arrow { width: 24px !important; height: 15px !important; }

  html.services-fit-tight body.home-page .home-main-services-section .svc-line-caption {
    font-size: clamp(9.8px, 2.25vw, 11.4px) !important;
    line-height: 1.02 !important;
    margin-bottom: 2px !important;
  }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-title-art { margin-bottom: 2px !important; }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-title-art img { width: min(62%, 540px) !important; }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-grid { row-gap: 3px !important; width: min(90%, 720px) !important; }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-item { min-height: 74px !important; padding: 0 3px !important; }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after { top: 4px !important; height: 58px !important; }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-icon { width: 38px !important; height: 38px !important; min-width: 38px !important; margin-bottom: 2px !important; }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-rule { width: 24px !important; margin-bottom: 2px !important; }
  html.services-fit-tight body.home-page .home-main-services-section .svc-line-name { font-size: clamp(9.4px, 2.25vw, 11.4px) !important; line-height: .94 !important; }
  html.services-fit-tight body.home-page #homeAboutJump { margin-top: 2px !important; min-height: 28px !important; }
  html.services-fit-tight body.home-page #homeAboutJump .svc-area-jump-text { font-size: 11px !important; }
  html.services-fit-tight body.home-page #homeAboutJump .svc-area-jump-arrow { width: 20px !important; height: 13px !important; }

  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-caption {
    font-size: clamp(8.8px, 1.95vw, 10.5px) !important;
    line-height: 1 !important;
    margin-bottom: 1px !important;
  }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-title-art { margin-bottom: 1px !important; }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-title-art img { width: min(54%, 470px) !important; }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-grid { row-gap: 0 !important; width: min(86%, 680px) !important; }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-item { min-height: 62px !important; padding: 0 2px !important; }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after { top: 3px !important; height: 48px !important; }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-icon { width: 30px !important; height: 30px !important; min-width: 30px !important; margin-bottom: 1px !important; }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-rule { width: 20px !important; margin-bottom: 1px !important; }
  html.services-fit-ultra body.home-page .home-main-services-section .svc-line-name { font-size: clamp(8.4px, 1.95vw, 10.4px) !important; line-height: .9 !important; }
  html.services-fit-ultra body.home-page #homeAboutJump { margin-top: 0 !important; min-height: 24px !important; }
  html.services-fit-ultra body.home-page #homeAboutJump .svc-area-jump-text { font-size: 10px !important; }
  html.services-fit-ultra body.home-page #homeAboutJump .svc-area-jump-arrow { width: 18px !important; height: 11px !important; }

  html.about-fit-compact body.home-page .home-section-up-jump { min-height: 30px !important; margin-bottom: 2px !important; }
  html.about-fit-compact body.home-page .home-about-card.about-card-step49 { padding: 9px 10px 10px !important; margin-bottom: 5px !important; border-radius: 22px !important; }
  html.about-fit-compact body.home-page .home-about-overlay .about-top-wrap-step49 { margin-bottom: 4px !important; }
  html.about-fit-compact body.home-page .home-about-overlay .about-top-wrap-step49 img { width: min(74%, 500px) !important; max-height: 50px !important; }
  html.about-fit-compact body.home-page .home-about-copy.about-copy-step49 p { font-size: clamp(10.6px, 2.35vw, 12px) !important; line-height: 1.18 !important; margin-bottom: 5px !important; }
  html.about-fit-compact body.home-page .home-about-overlay .about-bottom-wrap-step49 { min-height: 24px !important; }
  html.about-fit-compact body.home-page .home-about-overlay .about-bottom-wrap-step49 img { width: 106px !important; }
  html.about-fit-compact body.home-page .home-about-footer .home-footer-links { margin-bottom: 1px !important; }
  html.about-fit-compact body.home-page .home-about-footer p { font-size: 9.6px !important; }

  html.about-fit-tight body.home-page .home-section-up-jump { min-height: 25px !important; margin-bottom: 1px !important; }
  html.about-fit-tight body.home-page .home-about-card.about-card-step49 { padding: 7px 8px 8px !important; margin-bottom: 3px !important; border-radius: 20px !important; }
  html.about-fit-tight body.home-page .home-about-overlay .about-top-wrap-step49 { margin-bottom: 2px !important; }
  html.about-fit-tight body.home-page .home-about-overlay .about-top-wrap-step49 img { width: min(66%, 450px) !important; max-height: 42px !important; }
  html.about-fit-tight body.home-page .home-about-copy.about-copy-step49 p { font-size: clamp(9.4px, 2.05vw, 10.8px) !important; line-height: 1.12 !important; margin-bottom: 4px !important; }
  html.about-fit-tight body.home-page .home-about-overlay .about-bottom-wrap-step49 { min-height: 20px !important; }
  html.about-fit-tight body.home-page .home-about-overlay .about-bottom-wrap-step49 img { width: 88px !important; }
  html.about-fit-tight body.home-page .home-about-footer a { font-size: 11px !important; }
  html.about-fit-tight body.home-page .home-about-footer p { font-size: 8.8px !important; }

  html.about-fit-ultra body.home-page .home-section-up-jump { min-height: 21px !important; margin-bottom: 0 !important; }
  html.about-fit-ultra body.home-page .home-about-card.about-card-step49 { padding: 5px 6px 6px !important; margin-bottom: 2px !important; border-radius: 18px !important; }
  html.about-fit-ultra body.home-page .home-about-overlay .about-top-wrap-step49 img { width: min(58%, 390px) !important; max-height: 34px !important; }
  html.about-fit-ultra body.home-page .home-about-copy.about-copy-step49 p { font-size: clamp(8.4px, 1.85vw, 9.7px) !important; line-height: 1.05 !important; margin-bottom: 3px !important; }
  html.about-fit-ultra body.home-page .home-about-overlay .about-bottom-wrap-step49 { min-height: 17px !important; }
  html.about-fit-ultra body.home-page .home-about-overlay .about-bottom-wrap-step49 img { width: 72px !important; }
  html.about-fit-ultra body.home-page .home-about-footer .home-footer-links { gap: 2px 16px !important; }
  html.about-fit-ultra body.home-page .home-about-footer a { font-size: 10px !important; }
  html.about-fit-ultra body.home-page .home-about-footer p { font-size: 8px !important; }
}


/* ================================================================
   Bottom green bar polish - CSS only
   Based on serenity-universal-snap-stable.
   This does NOT change snap/JS/section structure.
   It simply extends the cream Services/About panels downward so the
   remaining olive browser-safe area is a slimmer strip instead of a
   tall block. If a browser is short on height, content still wins.
   ================================================================ */
@media (orientation: portrait) {
  html.home-portrait-fit {
    --home-visible-green-bar: clamp(28px, 4.2svh, 46px);
  }

  html.home-portrait-fit.phone-portrait-fit {
    --home-visible-green-bar: clamp(30px, 4.8svh, 48px);
  }

  html.home-portrait-fit.tablet-portrait-fit {
    --home-visible-green-bar: clamp(24px, 3.4svh, 42px);
  }

  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section,
  html.home-portrait-fit body.home-page .home-about-panel-section {
    min-height: calc(var(--home-panel-height, 100svh) - var(--home-visible-green-bar)) !important;
  }
}

@media (orientation: portrait) and (max-height: 720px) {
  html.home-portrait-fit {
    --home-visible-green-bar: clamp(24px, 4svh, 38px);
  }
}


/* ================================================================
   FINAL AIRIER SPACING - CSS only.
   Built from serenity-snap-stable-green-bar-slim.
   Does not touch snap/JS. It improves spacing by slightly reducing
   oversized artwork/icons and using that room for cleaner gaps.
   ================================================================ */
@media (orientation: portrait) {
  /* Services: normal fit — less crowded without changing the section mechanics. */
  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-caption {
    margin-bottom: 12px !important;
    line-height: 1.20 !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-title-art {
    margin-top: 2px !important;
    margin-bottom: 15px !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(70%, 620px) !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-grid {
    row-gap: 22px !important;
    width: min(94%, 820px) !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-item {
    min-height: 102px !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after {
    top: 12px !important;
    height: 76px !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    margin-bottom: 7px !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-rule {
    margin-bottom: 7px !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(11.4px, 2.88vw, 14.4px) !important;
    line-height: 1.05 !important;
  }

  html.home-portrait-fit:not(.services-fit-compact):not(.services-fit-tight):not(.services-fit-ultra) body.home-page #homeAboutJump {
    margin-top: 17px !important;
    min-height: 42px !important;
  }

  /* Services: compact fit — still make it less crammed, but don't risk cut-off. */
  html.services-fit-compact body.home-page .home-main-services-section .svc-line-caption {
    margin-bottom: 6px !important;
    line-height: 1.10 !important;
  }

  html.services-fit-compact body.home-page .home-main-services-section .svc-line-title-art {
    margin-bottom: 8px !important;
  }

  html.services-fit-compact body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(66%, 570px) !important;
  }

  html.services-fit-compact body.home-page .home-main-services-section .svc-line-grid {
    row-gap: 12px !important;
    width: min(92%, 760px) !important;
  }

  html.services-fit-compact body.home-page .home-main-services-section .svc-line-item {
    min-height: 88px !important;
  }

  html.services-fit-compact body.home-page .home-main-services-section .svc-line-icon {
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
    margin-bottom: 4px !important;
  }

  html.services-fit-compact body.home-page #homeAboutJump {
    margin-top: 8px !important;
    min-height: 32px !important;
  }

  /* About page: add separation around card/footer. */
  html.home-portrait-fit:not(.about-fit-compact):not(.about-fit-tight):not(.about-fit-ultra) body.home-page .home-section-up-jump {
    margin-bottom: 14px !important;
    min-height: 40px !important;
  }

  html.home-portrait-fit:not(.about-fit-compact):not(.about-fit-tight):not(.about-fit-ultra) body.home-page .home-about-card.about-card-step49 {
    margin-bottom: 18px !important;
  }

  html.home-portrait-fit:not(.about-fit-compact):not(.about-fit-tight):not(.about-fit-ultra) body.home-page .home-about-footer .home-footer-links {
    margin-bottom: 7px !important;
  }

  html.home-portrait-fit:not(.about-fit-compact):not(.about-fit-tight):not(.about-fit-ultra) body.home-page .home-about-footer {
    padding-top: 0 !important;
  }

  html.about-fit-compact body.home-page .home-section-up-jump {
    margin-bottom: 5px !important;
  }

  html.about-fit-compact body.home-page .home-about-card.about-card-step49 {
    margin-bottom: 8px !important;
  }

  html.about-fit-compact body.home-page .home-about-footer .home-footer-links {
    margin-bottom: 3px !important;
  }
}


/* EMERGENCY RESTORE: hide any leftover landscape experiment markup/classes if cached HTML mixes with this CSS.
   This does not affect the original portrait snap layout. */
.landscape-main,
.landscape-photo-caption,
.landscape-sidebox,
.landscape-box-head,
.landscape-jump,
.landscape-panels,
.landscape-panel,
.landscape-footer,
.landscape-green-bar {
  display: none !important;
}

/* Isolation guard: these are revealed only by desktop.css or mobile-landscape.css. */
.desktop-home-panel,
.desktop-slide-caption,
.desktop-footer {
  display: none;
}

/* ================================================================
   PORTRAIT CONSISTENCY V2 - iPhone Chrome + Amazon Silk portrait.
   Portrait only. No desktop or landscape layout rules.
   ================================================================ */
@media (orientation: portrait) {
  html.home-portrait-fit {
    --home-visible-green-bar: clamp(16px, 2.5svh, 28px);
  }

  html.home-portrait-fit.phone-portrait-fit {
    --home-visible-green-bar: clamp(16px, 2.4svh, 26px);
  }

  html.home-portrait-fit.tablet-portrait-fit {
    --home-visible-green-bar: clamp(14px, 2svh, 24px);
  }

  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section,
  html.home-portrait-fit body.home-page .home-about-panel-section {
    min-height: calc(var(--home-panel-height, 100svh) - var(--home-visible-green-bar)) !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 12px !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-caption {
    margin-bottom: 9px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art {
    margin-bottom: 12px !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump {
    margin-top: 11px !important;
  }
}

@media (orientation: portrait) and (min-width: 521px) {
  html.home-portrait-fit body.home-page .hero-slideshow {
    flex-basis: var(--home-hero-height-live, clamp(190px, 26svh, 255px)) !important;
    height: var(--home-hero-height-live, clamp(190px, 26svh, 255px)) !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section {
    padding: 7px 22px 0 !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-caption {
    font-size: clamp(10.5px, 1.45vw, 13px) !important;
    line-height: 1.08 !important;
    margin-bottom: 5px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(54%, 520px) !important;
    max-height: 66px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-grid {
    width: min(82%, 700px) !important;
    row-gap: 8px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-item {
    min-height: 82px !important;
    padding: 0 5px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after {
    top: 6px !important;
    height: 60px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin-bottom: 3px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-rule {
    width: 28px !important;
    margin-bottom: 3px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(10.8px, 1.55vw, 13.2px) !important;
    line-height: .96 !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump {
    min-height: 30px !important;
    margin-top: 5px !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump .svc-area-jump-text {
    font-size: clamp(11.5px, 1.55vw, 13.5px) !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump .svc-area-jump-arrow {
    width: 21px !important;
    height: 13px !important;
  }
}

@media (orientation: portrait) and (min-width: 521px) and (max-height: 840px) {
  html.home-portrait-fit body.home-page .home-main-services-section > .svc-line-section {
    padding-top: 5px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-caption {
    font-size: clamp(9.4px, 1.25vw, 11.3px) !important;
    line-height: 1.02 !important;
    margin-bottom: 3px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art {
    margin-bottom: 4px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(48%, 455px) !important;
    max-height: 52px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-grid {
    width: min(78%, 650px) !important;
    row-gap: 3px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-item {
    min-height: 68px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after {
    top: 4px !important;
    height: 50px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin-bottom: 2px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-rule {
    width: 22px !important;
    margin-bottom: 2px !important;
  }

  html.home-portrait-fit body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(9.2px, 1.2vw, 11px) !important;
    line-height: .9 !important;
  }

  html.home-portrait-fit body.home-page #homeAboutJump {
    min-height: 25px !important;
    margin-top: 2px !important;
  }
}

/* Portrait slideshow visibility only: show the full photo inside the fixed frame. */
@media (orientation: portrait) {
  html.home-portrait-fit body.home-page .hero-slideshow .slide-layer img,
  html.home-portrait-fit body.home-page .hero-slideshow .slide-layer #slideImage {
    object-fit: contain !important;
    object-position: center center !important;
  }
}
