/* Layout enhancements from tablet upward */

@media (min-width: 576px) {
  .hero__actions .btn {
    min-width: 12.5rem;
  }

  .enquiry-form {
    padding: 1.6rem 1.5rem 1.7rem;
  }

  .contact-panel {
    padding: 1.8rem 1.6rem;
  }
}

@media (min-width: 768px) {
  .pillar {
    padding-right: 1.5rem;
  }

  .pillars-row > [class*="col-"] + [class*="col-"] .pillar {
    border-left: 1px solid rgba(201, 155, 66, 0.35);
    padding-left: 1.5rem;
  }
}

@media (min-width: 992px) {
  :root {
    --header-h: 5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .hero {
    justify-content: flex-end;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 4rem;
  }

  .hero__copy {
    padding-left: 1.25rem;
  }

  .intro__figure {
    margin-right: 0.5rem;
  }

  .process {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    border-left: 0;
    position: relative;
    padding-top: 0;
  }

  .process::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(201, 155, 66, 0.85);
  }

  .process__step {
    padding: 1.65rem 0.35rem 0 0;
  }

  .process__step::before {
    left: 0;
    top: 0;
  }

  .why__figure {
    margin-top: 1.5rem;
  }

  .expertise__item {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .expertise__label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-2);
    padding-top: 0.3rem;
  }

  .cta-banner .container-xl {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .cta-banner p {
    margin-bottom: 0;
  }

  .cta-banner__actions {
    flex: 0 0 auto;
  }
}

@media (min-width: 1200px) {
  .service-card {
    padding: 1.6rem 1.45rem 1.45rem;
  }

  .hero__lead {
    font-size: 1.12rem;
  }
}

@media (min-width: 1440px) {
  .hero__content {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero__trust li + li::before {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta-banner__actions {
    flex-direction: column;
  }

  .cta-banner__actions .btn {
    width: 100%;
  }

  .brand__name {
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .to-top {
    display: none;
  }
}

@media (max-width: 359px) {
  .brand__tag {
    display: none;
  }
}

@media (min-width: 768px) {
  .pillar-strip,
  .moments__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .moments__list li + li {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 992px) {
  .stage {
    padding-bottom: 4.5rem;
  }

  .stage__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3rem;
  }

  .frame--main {
    margin-left: 14%;
    aspect-ratio: 4 / 5;
    max-height: 40rem;
  }

  .intro-edit__top,
  .intro-edit__layout,
  .expertise-layout,
  .partner__grid,
  .faq-split {
    display: grid;
    align-items: start;
  }

  .intro-edit__top {
    grid-template-columns: 0.38fr 1fr;
    gap: 1rem;
    align-items: end;
  }

  .intro-edit__layout {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
  }

  .expertise-layout {
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
    gap: 3.5rem;
  }

  .expertise-layout__intro,
  .partner__intro,
  .faq-split__intro {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .service-list {
    margin-top: 0;
  }

  .partner__grid,
  .faq-split {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
    gap: 4rem;
  }

  .partner__list,
  .faq-split__intro {
    margin-top: 0;
  }

  .faq-split__intro {
    margin-bottom: 0;
  }

  .bento {
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: 18rem 15.5rem;
  }

  .bento__item {
    min-height: 0;
  }

  .bento__a { grid-column: 1; grid-row: 1 / span 2; }
  .bento__b { grid-column: 2; grid-row: 1; }
  .bento__c { grid-column: 3; grid-row: 1; }
  .bento__d { grid-column: 2 / span 2; grid-row: 2; }

  .journey {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.35rem;
    padding-top: 0.35rem;
  }

  .journey__track {
    display: block;
    position: absolute;
    top: 0.95rem;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 166, 60, 0.35);
  }

  .journey__fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform-origin: left center;
  }

  .journey__step {
    border-left: 0;
    padding: 0 0.75rem 0 0;
  }

  .journey__index {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
  }

  .study {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .study--b {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .study--b figure {
    order: 2;
  }

  .study--c {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .study img {
    aspect-ratio: 5 / 4;
  }

  .finale__grid {
    grid-template-columns: 1.4fr auto;
    align-items: end;
  }

  .finale__actions {
    justify-content: flex-end;
    margin-top: 0;
  }
}

@media (max-width: 575.98px) {
  .stage__actions,
  .finale__actions {
    flex-direction: column;
  }

  .stage__actions .btn,
  .finale__actions .btn {
    width: 100%;
  }

  .frame--sub {
    width: 42%;
  }

  .stage__label {
    font-size: 0.6rem;
    max-width: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento__item:hover img,
  .bento__item:focus-within img,
  .service-row:hover .service-row__title,
  .service-row:focus-visible .service-row__title,
  .service-row.is-active .service-row__title,
  .service-row:hover .service-row__cta i,
  .service-row:focus-visible .service-row__cta i,
  .service-row.is-active .service-row__cta i,
  .service-row:hover .service-row__icon,
  .service-row:focus-visible .service-row__icon,
  .service-row.is-active .service-row__icon,
  .btn:hover .btn__arrow,
  .btn:focus-visible .btn__arrow {
    transform: none;
  }
}

/* ===== Homepage: complete mobile responsiveness ===== */

.page-home {
  overflow-x: hidden;
}

.page-home img,
.page-home svg {
  max-width: 100%;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home p,
.page-home a {
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .page-home {
    --section-y: 3.5rem;
  }

  .stage__grid {
    gap: 2rem;
  }

  .stage__visual {
    max-width: 34rem;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1.5rem;
  }

  .intro-edit__top {
    display: block;
  }

  .intro-edit__figure {
    max-width: 30rem;
  }

  .intro-edit__figure img {
    aspect-ratio: 4 / 3;
  }

  .expertise-head h2,
  .intro-edit__top h2,
  .partner__intro h2,
  .faq-split__intro h2,
  .journey-head h2 {
    max-width: none;
  }

  .finale__grid {
    display: grid;
    gap: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .page-home {
    --section-y: 3rem;
  }

  .stage {
    padding-top: calc(var(--header-h, 4.25rem) + 1rem);
    padding-bottom: 2.5rem;
  }

  .stage h1 {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
    line-height: 1;
  }

  .stage__lead {
    font-size: 1rem;
  }

  .stage__arc {
    width: 5.5rem;
    height: 5.5rem;
    top: -1rem;
    right: 0;
  }

  .frame--main {
    margin-left: 8%;
  }

  .mega-num {
    font-size: 2.75rem;
  }

  .expertise-meta {
    display: none;
  }

  .expertise-head {
    align-items: flex-start;
    text-align: left;
  }

  .expertise-head .kicker {
    justify-content: flex-start;
  }

  .expertise-head h2 {
    margin-left: 0;
  }

  .service-list {
    gap: 0.85rem;
  }

  .expertise-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .expertise-foot a {
    justify-content: center;
  }

  .benefit-row {
    gap: 0.5rem 1rem;
    padding: 1.1rem 0;
  }

  .benefit-row h3 {
    font-size: 1.2rem;
  }

  .journey__step h3 {
    font-size: 1.1rem;
  }

  .page-home .faq .accordion-button {
    font-size: 1rem;
    gap: 0.75rem;
  }

  .finale__band {
    padding: 2.5rem 0;
  }

  .finale__band h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    max-width: none;
  }

  .finale__band p {
    font-size: 1rem;
  }

  .finale__form {
    padding-top: 2.5rem;
  }

  .contact-panel--rich {
    padding: 1.35rem 1.1rem;
  }

  .enquiry-form {
    padding: 1.25rem 1rem 1.4rem;
  }

  .enquiry-form .form-control,
  .enquiry-form .form-select {
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 2.9rem;
  }

  .enquiry-form .btn,
  .enquiry-form button[type="submit"] {
    width: 100%;
  }

  .contact-card__value {
    font-size: 0.98rem;
    word-break: break-word;
  }

  .btn {
    min-height: 2.9rem;
  }
}

@media (max-width: 575.98px) {
  .page-home .container-xl {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .stage__label {
    position: static;
    display: inline-block;
    margin-top: 0.75rem;
    max-width: none;
  }

  .frame--sub {
    width: 38%;
    bottom: 14%;
    border-width: 4px;
  }

  .service-row__title {
    font-size: 1.1rem;
  }

  .bento__item {
    min-height: 14rem;
  }

  .contact-card {
    padding: 0.75rem;
  }
}

@media (max-width: 359px) {
  .stage h1 {
    font-size: 1.95rem;
  }

  .contact-card__go {
    display: none;
  }
}
