.overview-page {
  position: relative;
  min-height: 1586px;
  overflow: hidden;
  color: var(--color-secondary-ink);
  background: var(--color-secondary-cream);
  visibility: hidden;
}

.overview-page.is-visible {
  visibility: visible;
}

.overview-page main:focus {
  outline: none;
}

.overview-page__grooves {
  position: absolute;
  top: -249px;
  left: 50%;
  z-index: var(--z-base);
  width: 1440px;
  height: 1440px;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.overview-services {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  /* Full-width subtraction preserves the 30px Figma gutters on fluid canvases. */
  width: calc(100% - 60px);
  max-width: var(--page-container);
  margin: 0 auto;
  padding-top: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.overview-services .service-card {
  min-height: 601px;
}

/* Percentage offsets preserve the authored Figma crop as each card narrows. */
.service-card__image--coffee {
  top: -18.08%;
}

.service-card__image--cocktails {
  top: -24.54%;
}

.overview-rhythm-badge {
  position: absolute;
  top: 108px;
  left: 50%;
  z-index: var(--z-cta);
  width: 230px;
  height: 239px;
  overflow: visible;
  transform: translateX(-50%);
  pointer-events: none;
}

.overview-rhythm-badge img {
  position: absolute;
  top: -11px;
  left: -14px;
  width: 258px;
  height: 257px;
  max-width: none;
}

.is-transitioning .overview-rhythm-badge {
  opacity: 0;
}

.overview-tagline {
  position: relative;
  z-index: var(--z-content);
  width: 858px;
  max-width: calc(100% - 40px);
  min-height: 110px;
  margin: 43px auto 0;
}

.enquiry-panel {
  position: relative;
  z-index: var(--z-content);
  width: 1047px;
  max-width: calc(100% - 40px);
  margin: 38px auto 0;
  padding: var(--section-padding-y) 84px;
  padding-left: 85px;
  border-radius: var(--page-radius);
  background: var(--color-secondary-cream);
  box-shadow: 0 0 13px rgba(26, 26, 26, 0.04);
}

.overview-final-cta {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  justify-content: center;
  margin: var(--section-gap-y) auto 57px;
}

@media (max-width: 1366px) {
  .overview-services {
    width: calc(100% - 48px);
  }

  .overview-services .service-card {
    min-height: 570px;
  }

  .overview-rhythm-badge {
    top: 102px;
    width: 218px;
    height: 226px;
  }

  .overview-rhythm-badge img {
    width: 244px;
    height: 243px;
  }

  .overview-tagline {
    margin-top: 40px;
  }

  .enquiry-panel {
    width: 990px;
    margin-top: 36px;
    padding-right: 76px;
    padding-left: 76px;
  }

  .overview-final-cta {
    margin-bottom: 52px;
  }
}

@media (max-width: 1280px) {
  .overview-services .service-card {
    min-height: 548px;
  }

  .overview-rhythm-badge {
    top: 96px;
    width: 202px;
    height: 210px;
  }

  .overview-rhythm-badge img {
    top: -9px;
    left: -12px;
    width: 227px;
    height: 226px;
  }

  .overview-tagline {
    width: 800px;
    margin-top: 36px;
  }

  .enquiry-panel {
    width: 930px;
    margin-top: 34px;
    padding-right: 68px;
    padding-left: 68px;
  }
}

@media (max-width: 1166px) {
  .overview-services {
    width: calc(100% - 40px);
  }

  .overview-services .service-card {
    min-height: 520px;
  }

  .overview-rhythm-badge {
    top: 91px;
    width: 188px;
    height: 195px;
  }

  .overview-rhythm-badge img {
    top: -8px;
    left: -11px;
    width: 211px;
    height: 210px;
  }

  .overview-tagline {
    width: 740px;
    margin-top: 34px;
  }

  .enquiry-panel {
    width: 860px;
    margin-top: 32px;
    padding-right: 56px;
    padding-left: 56px;
  }

  .overview-final-cta {
    margin-bottom: 48px;
  }
}

@media (max-width: 1024px) {
  .overview-services {
    display: flex;
    width: calc(100% - 40px);
    max-width: 620px;
    flex-direction: column;
    gap: 16px;
  }

  .overview-services .service-card {
    min-height: 460px;
  }

  .overview-rhythm-badge {
    position: relative;
    top: auto;
    left: auto;
    align-self: center;
    width: 140px;
    height: 145px;
    margin: 0;
    transform: none;
  }

  .overview-rhythm-badge img {
    top: -6px;
    left: -8px;
    width: 157px;
    height: 156px;
  }

  .overview-tagline {
    width: 680px;
    margin-top: 34px;
  }

  .enquiry-panel {
    width: 760px;
    margin-top: 30px;
    padding-right: 36px;
    padding-left: 36px;
  }
}

@media (min-width: 1025px) and (max-width: 1166px) {
  .service-card__image--coffee {
    width: 121%;
  }

  .service-card__image--cocktails {
    width: 119%;
  }
}

@media (max-width: 768px) {
  .overview-services {
    width: calc(100% - 32px);
    max-width: 560px;
    padding-top: 12px;
    gap: 14px;
  }

  .overview-services .service-card {
    min-height: 420px;
  }

  .service-card__content {
    max-width: calc(100% - 32px);
    gap: 12px;
    padding-bottom: 30px;
  }

  .overview-rhythm-badge {
    width: 120px;
    height: 125px;
  }

  .overview-rhythm-badge img {
    top: -5px;
    left: -7px;
    width: 135px;
    height: 134px;
  }

  .overview-page__grooves {
    top: 0;
    width: 1024px;
    height: 1024px;
  }

  .overview-tagline {
    width: calc(100% - 32px);
    max-width: none;
    min-height: 0;
    margin-top: 32px;
  }

  .enquiry-panel {
    width: calc(100% - 32px);
    max-width: none;
    margin-top: 28px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .overview-final-cta {
    margin-bottom: 36px;
  }
}

@media (min-width: 481px) and (max-width: 520px) {
  .service-card__image {
    width: 110%;
  }
}

@media (max-width: 480px) {
  .overview-services {
    width: calc(100% - 24px);
  }

  .overview-services .service-card {
    min-height: 390px;
  }

  .service-card__content {
    max-width: calc(100% - 28px);
    padding-bottom: 26px;
  }

  .service-card__image--coffee {
    top: -2%;
    width: 128%;
  }

  .service-card__image--cocktails {
    top: -2%;
    width: 118%;
  }

  .service-card__description {
    max-width: 300px;
  }

  .service-card__cta {
    width: clamp(154px, 52vw, 172px);
    min-width: 0;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .overview-tagline {
    width: calc(100% - 24px);
  }

  .enquiry-panel {
    width: calc(100% - 24px);
    margin-top: 24px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .overview-final-cta {
    width: calc(100% - 24px);
  }
}

@media (max-width: 360px) {
  .overview-services .service-card {
    min-height: 360px;
  }

  .overview-rhythm-badge {
    width: 104px;
    height: 108px;
  }

  .overview-rhythm-badge img {
    top: -4px;
    left: -6px;
    width: 117px;
    height: 116px;
  }

  .overview-tagline {
    margin-top: 26px;
  }

  .enquiry-panel {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/*
 * Mobile service chooser: keep both service panels and the shared rhythm
 * record inside the visible fold. The record is removed from normal flow and
 * hangs across the two-card boundary, while dynamic viewport units follow the
 * browser chrome on real devices.
 */
@media (max-width: 600px) and (orientation: portrait) {
  .overview-services {
    display: grid;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .overview-services .service-card {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .overview-rhythm-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: calc(var(--z-cta) + 1);
    width: 102px;
    height: 106px;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .overview-rhythm-badge img {
    top: -4px;
    left: -6px;
    width: 114px;
    height: 113px;
  }

  .service-card__content {
    max-width: calc(100% - 24px);
    gap: 7px;
    padding-bottom: clamp(14px, 2.6dvh, 22px);
  }

  .service-card__copy {
    gap: 0;
  }

  .service-card--coffee .service-card__content {
    padding-bottom: calc(clamp(14px, 2.6dvh, 22px) + 44px);
  }

  .service-card__description {
    max-width: 330px;
    font-size: clamp(13px, 3.45vw, 16px);
    line-height: 1.2;
  }

  .service-card__cta {
    min-height: 40px;
  }
}

