@layer homepage {
  .page-home {
    --home-purple: #693bf5;
    --home-dark: #24008f;
    --home-yellow: #ffbf3f;
    --home-cream: #fffaf1;
    --home-lavender: #f3f0ff;
    background: var(--home-cream);
    color: #16034d;
  }

  .page-home .container { width: min(calc(100% - 72px), 1240px); }
  .page-home .site-header { background: var(--home-cream); }
  .page-home .site-header__inner { min-height: 220px; }
  .page-home .brand { width: 190px; }
  .page-home .site-nav { gap: 34px; font-size: .98rem; }
  .page-home .site-nav a { color: #16034d; }
  .page-home h1, .page-home h2, .page-home h3 { color: var(--home-dark); }
  .page-home h2 { font-size: 2.625rem; line-height: 1.28; }
  .page-home p { color: rgba(22, 3, 77, .72); line-height: 1.55; }
  .page-home .button { min-height: 52px; padding: 13px 34px; border-color: var(--home-purple); background: var(--home-purple); font-size: .95rem; }
  .page-home .button--yellow { border-color: var(--home-yellow); background: var(--home-yellow); color: var(--home-dark); }
  .page-home .button--outline-light { border-color: rgba(255,255,255,.72); background: transparent; }
  .page-home .button--outline-light:hover { background: white; color: var(--home-dark); }

  .home-section { padding: 105px 0; }
  .home-pill { display: inline-flex; min-width: 220px; min-height: 44px; align-items: center; justify-content: center; margin-bottom: 25px; padding: 9px 24px; border-radius: 999px; background: #f5eff7; color: #26105e !important; font-size: .9rem; font-weight: 500; }
  .home-kicker { margin-bottom: 0; color: #8567c4 !important; font-size: 2rem; font-weight: 600; }
  .home-centered-heading { margin-bottom: 62px; text-align: center; }
  .home-centered-heading h2 { margin-bottom: 8px; }
  .home-centered-heading p { font-size: 1.2rem; }

  .home-hero { position: relative; display: grid; min-height: 680px; align-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(28,0,88,.91) 0%, rgba(45,0,100,.76) 43%, rgba(35,0,78,.18) 72%), url('../images/home-pdf/asset-51.png') 50% 42% / cover; }
  .home-hero__content { position: relative; padding-block: 72px; }
  .home-hero h1 { max-width: 690px; margin-bottom: 26px; color: #fff; font-size: 3rem; line-height: 1.48; }
  .home-hero p { max-width: 650px; color: rgba(255,255,255,.9); font-size: 1.05rem; }
  .home-hero .button-row { margin-top: 30px; }
  .home-hero .button { min-width: 365px; }

  .home-split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 90px; align-items: center; }
  .home-copy h2 { margin-bottom: 32px; }
  .home-copy p { max-width: 560px; margin-bottom: 22px; }
  .home-copy .button { min-width: 420px; margin-top: 18px; }
  .home-intro { min-height: 1020px; display: grid; align-items: center; }
  .home-collage { position: relative; min-height: 650px; }
  .home-collage::before, .home-collage::after, .home-collage__shape { position: absolute; content: ""; }
  .home-collage::before { top: 30px; right: 45px; width: 0; height: 0; border-right: 75px solid transparent; border-bottom: 130px solid var(--home-yellow); border-left: 75px solid transparent; transform: rotate(28deg); }
  .home-collage::after { right: 72px; bottom: 10px; width: 105px; height: 105px; border-radius: 50%; background: var(--home-purple); }
  .home-collage__shape--yellow { top: 95px; left: 10px; width: 190px; height: 190px; border-radius: 50%; background: var(--home-yellow); }
  .home-collage__shape--purple { right: 18px; bottom: 78px; width: 310px; height: 235px; border-radius: 38% 62% 62% 38%; background: #8c69f8; transform: rotate(-13deg); }
  .home-collage img { position: absolute; z-index: 2; width: 66%; height: 300px; border-radius: 24px; box-shadow: 0 18px 38px rgba(40,10,80,.18); object-fit: cover; }
  .home-collage__top { top: 50px; right: 12px; }
  .home-collage__bottom { bottom: 50px; left: 15px; }

  .home-services { padding-top: 45px; padding-bottom: 75px; }
  .home-services > .container > h2 { max-width: 760px; margin-bottom: 58px; }
  .home-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 42px; align-items: start; }
  .home-service-card { min-height: 345px; padding: 38px 44px; border-radius: 30px; background: #fff; box-shadow: 0 13px 25px rgba(34, 7, 70, .13); }
  .home-service-card:nth-child(3n+2) { margin-top: 34px; }
  .home-service-card.is-featured { background: var(--home-yellow); }
  .home-icon { display: grid; width: 64px; height: 64px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--home-purple); }
  .home-icon img { width: 34px; height: 34px; object-fit: contain; }
  .home-service-card.is-featured .home-icon { background: #fff; }
  .home-service-card h3 { margin-top: 30px; margin-bottom: 18px; font-size: 1.55rem; }
  .home-service-card p { font-size: .98rem; }

  .home-reasons { margin-top: 0; min-height: 940px; padding-block: 90px; background: var(--home-lavender); }
  .home-reasons__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
  .home-reasons__intro p:not(.home-pill) { max-width: 520px; font-size: 1.15rem; }
  .home-reasons__intro .button { min-width: 340px; margin-top: 22px; }
  .home-reasons__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 36px; }
  .home-reason-card { min-height: 300px; padding: 38px; border-radius: 28px; background: #fff; box-shadow: 0 15px 28px rgba(34,7,70,.14); }
  .home-reason-card:nth-child(even) { transform: translateY(50px); }
  .home-reason-card.is-featured { background: var(--home-yellow); }
  .home-reason-card img { width: 52px; height: 52px; margin-bottom: 25px; object-fit: contain; }
  .home-reason-card h3 { font-size: 1.6rem; }
  .home-reason-card p { color: #27115a; }
  .home-arrow { display: block; margin-top: 20px; color: var(--home-dark); font-size: 2.7rem; line-height: 1; }

  .home-careers { min-height: 930px; padding-block: 90px; }
  .home-careers__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 100px; align-items: start; }
  .home-careers__grid > div:first-child > p:not(.home-pill) { max-width: 590px; font-size: 1.12rem; }
  .home-careers__grid .button { min-width: 420px; margin-top: 25px; }
  .home-careers__photo { width: 100%; height: 395px; margin-top: 50px; border-radius: 28px; object-fit: cover; }
  .home-career-list { display: grid; gap: 22px; padding-top: 130px; }
  .home-career-list article { display: flex; align-items: center; gap: 26px; min-height: 125px; padding: 24px 34px; border-radius: 24px; background: #fff; box-shadow: 0 11px 26px rgba(34,7,70,.11); }
  .home-career-list h3 { margin-bottom: 7px; font-size: 1.1rem; }
  .home-career-list p { margin-bottom: 0; font-size: .9rem; }

  .home-reviews { overflow: hidden; background: #fff4df; }
  .home-review-track { display: grid; width: 100%; grid-template-columns: repeat(3, 420px); gap: 44px; }
  .home-review-card { min-height: 500px; padding: 48px 46px 36px; border-radius: 28px; background: #fff; }
  .home-review-card.is-featured { background: #e2d9f1; }
  .home-quote { display: block; height: 95px; color: #9b9b9b; font-family: Georgia, serif; font-size: 8.5rem; font-weight: 700; line-height: .9; text-align: right; }
  .home-review-card > p { color: #170345; font-size: 1.2rem; }
  .home-review-card footer { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
  .home-review-card footer img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; }
  .home-review-card footer span { display: grid; }
  .home-review-card footer strong { color: #6b3e1f; font-size: 1.2rem; }
  .home-review-card footer small { color: #684d43; font-size: .9rem; }

  .home-primary-cta { padding: 92px 0; background: var(--home-purple); text-align: center; }
  .home-primary-cta h2 { color: #fff; }
  .home-primary-cta p { max-width: 710px; margin: 0 auto 36px; color: rgba(255,255,255,.94); font-size: 1.12rem; }
  .home-primary-cta .button { min-width: 380px; }

  .home-insights > .container > h2 { margin-bottom: 58px; }
  .home-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
  .home-article-card { overflow: hidden; min-height: 520px; border: 1px solid rgba(38,16,94,.16); border-radius: 26px; background: #fff; box-shadow: 0 8px 22px rgba(34,7,70,.06); }
  .home-article-card > img { width: 100%; height: 225px; object-fit: cover; }
  .home-article-card > div { padding: 32px 28px; }
  .home-article-card h3 { font-size: 1.3rem; }
  .home-article-card a { color: var(--home-purple); font-weight: 600; }

  .home-faq { padding-top: 35px; }
  .home-faq h2 { margin-bottom: 60px; }
  .home-faq .accordion { gap: 32px; }
  .home-faq .accordion__item { border-radius: 999px; background: var(--home-purple); }
  .home-faq .accordion__item.is-open { border-radius: 44px; background: #6752c9; }
  .home-faq .accordion__item button { min-height: 90px; padding: 24px 66px; font-size: 1.25rem; font-weight: 600; }
  .home-faq .accordion__panel p { padding: 0 66px 36px; color: #fff; font-size: 1.1rem; }

  .home-results { min-height: 720px; padding-block: 78px; background: #f4edf6; }
  .home-results h2 { color: var(--home-purple); }
  .home-results > .container > p:not(.home-pill):not(.home-results__note) { max-width: 1050px; color: #18044d; font-size: 1.02rem; }
  .home-results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; margin-top: 52px; }
  .home-results__grid article { min-height: 300px; padding: 38px 34px; border-radius: 20px; background: #fff; }
  .home-results__grid strong { display: block; margin-bottom: 10px; color: var(--home-dark); font-size: 2.5rem; }
  .home-results__grid h3 { font-size: 1.25rem; }
  .home-results__note { max-width: 850px; margin: 52px auto 0; text-align: center; }

  .home-team { min-height: 850px; }
  .home-team .container { padding-right: 55%; }
  .home-team p:not(.home-pill) { font-size: 1.13rem; }
  .home-team .button { min-width: 420px; margin-top: 30px; }

  .home-contact { background: var(--home-purple); }
  .home-contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 100px; padding-block: 100px 70px; }
  .home-contact h2 { color: #fff; font-size: clamp(2.2rem,3.2vw,3.3rem); }
  .home-contact p { color: #fff; font-size: 1.1rem; }
  .home-awards { display: flex; gap: 40px; margin-top: 42px; }
  .home-awards img { width: auto; height: 74px; object-fit: contain; }
  .home-contact .lead-form { grid-template-columns: 1fr; gap: 20px; }
  .home-contact .lead-form input { min-height: 62px; border-radius: 8px; font-size: 1.05rem; }
  .home-contact .lead-form .button { min-height: 64px; border-radius: 8px; font-size: 1.1rem; }
  .home-contact-strip { display: flex; width: min(calc(100% - 72px), 1100px); min-height: 132px; align-items: center; justify-content: space-between; gap: 40px; margin: 0 auto; padding: 20px 72px; border-radius: 18px 18px 0 0; background: var(--home-yellow); color: var(--home-dark); font-size: 1.45rem; }
  .home-contact-strip a { color: inherit; }
  .home-contact-strip strong { display: flex; align-items: center; gap: 28px; font-size: 1.35rem; }
  .home-contact-strip strong img { width: 38px; height: 38px; filter: brightness(0) saturate(100%); object-fit: contain; }

  .home-brands { min-height: 330px; padding: 65px 0; background: #fff; }
  .home-brands__grid { display: grid; grid-template-columns: 230px 1fr; gap: 60px; align-items: center; }
  .home-brands h2 { margin: 0; color: #6450a0; font-size: 1.2rem; text-transform: uppercase; }
  .home-brands h2 strong { color: #a85f00; font-size: 5rem; line-height: 1.12; }
  .home-brand-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 34px; align-items: center; }
  .home-brand-logos img { width: 100%; max-height: 48px; object-fit: contain; filter: none; }

  .home-global { position: relative; min-height: 550px; overflow: hidden; padding: 90px 0; background: #fff; border-top: 1px solid #f0e8df; }
  .home-global::before { position: absolute; inset: 20px 8% 0; background: url('../images/home-pdf/world-map-transparent.png') center 58% / 88% auto no-repeat; content: ""; opacity: .58; }
  .home-global__grid { position: relative; display: grid; min-height: 370px; grid-template-columns: 1fr 1fr; gap: 270px; align-items: center; }
  .home-global__about > img { width: 220px; margin-bottom: 30px; }
  .home-global__about p { max-width: 440px; color: #000; font-size: 1rem; }
  .home-global__contact { text-align: center; }
  .home-global__contact p { margin-top: 20px; margin-bottom: 8px; color: #18044d; }
  .home-global__contact a { color: #000; font-weight: 500; }
  .home-socials { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
  .home-socials span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--home-purple); }
  .home-socials img { width: 25px; height: 25px; object-fit: contain; }

  .home-ready { display: grid; min-height: 420px; align-items: center; padding: 70px 0; background: var(--home-yellow); text-align: center; }
  .home-ready h2 { margin-bottom: 18px; color: #3b2d2d; font-size: 2.35rem; text-transform: uppercase; }
  .home-ready p { margin-bottom: 36px; color: #49352c; font-size: 1.2rem; }
  .home-ready .button-row { justify-content: center; margin-top: 0; }
  .home-ready .button { min-width: 355px; min-height: 62px; padding: 12px 32px; font-size: 1rem; text-transform: uppercase; }
  .home-ready .button--outline-light { border-color: var(--home-dark); color: var(--home-dark); }

  .page-home .site-footer { min-height: 540px; padding-top: 78px; }
  .page-home .site-footer__top { gap: 55px; }
  .page-home .site-footer__brand img { width: 145px; margin-bottom: 18px; }
  .page-home .site-footer__brand h2 { max-width: 260px; font-size: 1.35rem; }
  .page-home .site-footer__socials { display: flex; gap: 28px; margin-top: 28px; }
  .page-home .site-footer__socials span { display: grid; width: 24px; height: 24px; place-items: center; color: #000; font-weight: 700; }
  .page-home .site-footer__socials img { width: 22px; height: 22px; filter: invert(1); object-fit: contain; }
  .page-home .site-footer__bottom { margin-top: 48px; }
}

@layer responsive {
  @media (max-width: 980px) {
    .page-home .container { width: min(calc(100% - 40px), 1240px); }
    .page-home .site-header__inner { min-height: 90px; }
    .page-home .site-nav { top: 80px; }
    .home-split, .home-reasons__layout, .home-careers__grid, .home-contact__grid { grid-template-columns: 1fr; }
    .home-collage { min-height: 600px; }
    .home-service-grid, .home-article-grid, .home-results__grid { grid-template-columns: repeat(2, 1fr); }
    .home-service-card:nth-child(3n+2) { margin-top: 0; }
    .home-service-card:nth-child(even) { margin-top: 35px; }
    .home-reasons__cards { margin-top: 20px; }
    .home-career-list { padding-top: 0; }
    .home-review-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(340px, 1fr); overflow-x: auto; padding-bottom: 15px; overscroll-behavior-inline: contain; }
    .home-team .container { padding-right: 20px; }
    .home-team { min-height: auto; }
    .home-brands__grid, .home-global__grid { grid-template-columns: 1fr; gap: 45px; text-align: center; }
    .home-brands h2 { text-align: left; }
    .home-brand-logos { grid-template-columns: repeat(6, 1fr); }
    .home-global__about > img { margin-inline: auto; }
    .home-global__about p { max-width: 600px; margin-inline: auto; }
  }

  @media (max-width: 640px) {
    .page-home .container { width: min(calc(100% - 28px), 1240px); }
    .home-section { padding: 74px 0; }
    .home-pill { min-width: 0; min-height: 38px; margin-bottom: 18px; font-size: .76rem; }
    .home-kicker { font-size: 1.2rem; }
    .home-hero { min-height: 620px; background-position: 38% center; }
    .home-hero h1 { font-size: 2.55rem; line-height: 1.18; }
    .home-hero p { font-size: .95rem; }
    .home-hero .button-row, .home-hero .button { width: 100%; }
    .home-hero .button, .home-copy .button, .home-careers__grid .button, .home-reasons__intro .button { min-width: 0; }
    .home-intro, .home-reasons, .home-careers, .home-results, .home-team, .home-brands, .home-global, .home-ready, .page-home .site-footer { min-height: 0; }
    .home-split { gap: 45px; }
    .home-copy h2 br, .home-services h2 br, .home-reasons h2 br, .home-careers h2 br, .home-team h2 br { display: none; }
    .home-collage { min-height: 430px; }
    .home-collage img { height: 210px; }
    .home-collage__shape--yellow { width: 110px; height: 110px; }
    .home-collage__shape--purple { width: 210px; height: 160px; }
    .home-service-grid, .home-reasons__cards, .home-article-grid, .home-results__grid { grid-template-columns: 1fr; gap: 24px; }
    .home-service-card, .home-service-card:nth-child(even), .home-reason-card:nth-child(even) { min-height: 0; margin-top: 0; transform: none; }
    .home-reasons { margin-top: 0; }
    .home-reasons__intro, .home-reasons__cards { min-width: 0; }
    .home-reasons__intro h2 { overflow-wrap: anywhere; }
    .home-careers__grid { gap: 55px; }
    .home-careers__photo { height: 280px; }
    .home-career-list article { align-items: flex-start; padding: 24px; }
    .home-review-track { grid-template-columns: none; grid-auto-columns: min(290px, calc(100vw - 56px)); gap: 20px; }
    .home-review-card { min-height: 440px; padding: 34px 28px; }
    .home-review-card > p { font-size: 1rem; }
    .home-primary-cta .button { width: 100%; min-width: 0; }
    .home-article-card { min-height: 0; }
    .home-faq h2 { margin-bottom: 35px; }
    .home-faq .accordion { gap: 16px; }
    .home-faq .accordion__item, .home-faq .accordion__item.is-open { border-radius: 26px; }
    .home-faq .accordion__item button { min-height: 70px; padding: 19px 24px; font-size: 1rem; }
    .home-faq .accordion__panel p { padding: 0 24px 24px; font-size: .94rem; }
    .home-results__grid { gap: 20px; }
    .home-team .container { padding-right: 0; }
    .home-team .button { width: 100%; min-width: 0; }
    .home-contact__grid { gap: 50px; padding-block: 72px 45px; }
    .home-awards { gap: 18px; }
    .home-awards img { max-width: 48%; height: 54px; }
    .home-contact-strip { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; gap: 8px; padding: 22px; }
    .home-contact-strip strong { gap: 14px; }
    .home-brand-logos { grid-template-columns: repeat(3, 1fr); }
    .home-brands h2 { text-align: center; }
    .home-brands h2 strong { font-size: 3.4rem; }
    .home-global { padding-block: 70px; }
    .home-global::before { inset: 22% -30% 4%; background-size: 150% auto; opacity: .32; }
    .home-ready .button { width: 100%; min-width: 0; }
  }
}
