/* Home-page adjustments stay scoped so the other pages keep their layouts. */
.home-page .nav-links { gap: 40px; }
.home-page .nav-links a { padding-inline: 8px; color: inherit; font-size: 15px; font-weight: 700; letter-spacing: .035em; }
.home-page .nav-links a:nth-child(2) { background: none; }
.home-page .site-header > .pill.dark { width: 190px; padding-inline: 24px; font-size: 14px; font-weight: 500; }
.home-page .hero-top-line,.home-page .hero-bottom-line { display: block; }
.home-page .footer-contact a { color: inherit; text-decoration: none; }
.home-page a:focus-visible,.home-page button:focus-visible { outline: 3px solid #5d3cff; outline-offset: 5px; }

@media (max-width: 1399px) {
  .home-page { background: #f4f4f2; }
  .home-page .container { width: calc(100% - 64px); }
  .home-page .container > * { min-width: 0; }
  .home-page .section { padding-block: 88px; }
  .home-page .site-header { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); height: 100px; }
  .home-page .brand { width: 190px; }

  .home-page .hero-shell { min-height: 0; }
  .home-page .hero { min-height: 480px; height: auto; padding-block: 65px; }
  .home-page .hero h1 { max-width: 100%; font-size: clamp(48px,5.2vw,72px); line-height: 1.2; letter-spacing: -.045em; }
  .home-page .hero-bottom-line { margin-top: 16px; }
  .home-page .hero-chip { width: clamp(166px,17vw,215px); min-width: 0; height: 72px; border-radius: 45px; padding-inline: 14px; gap: 10px; font-size: 11px; letter-spacing: 0; vertical-align: 12px; background: linear-gradient(90deg,#242d4af0,#242d4a90),url("assets/Rocket money.png") center / cover; }
  .home-page .hero-chip b { font-size: 16px; }

  .home-page .trusted { height: auto; padding: 32px 0 48px; background: #f4f4f2; }
  .home-page .trusted > p { margin-bottom: 24px; font-size: 12px; line-height: 1.6; }
  .home-page .trust-logos { gap: 20px; }
  .home-page .trust-logos img { width: 100%; height: 55px; justify-self: center; }
  .home-page .eyebrow { margin-bottom: 24px; line-height: 1.5; }

  .home-page .about { padding-top: 48px; box-shadow: 0 0 0 100vmax #f4f4f2; clip-path: inset(0 -100vmax); }
  .home-page .about-title { margin-bottom: 42px; font-size: clamp(34px,4vw,50px); line-height: 1.5; letter-spacing: -.04em; }
  .home-page .about-title br { display: none; }
  .home-page .about-title em { margin-right: .08em; }
  .home-page .about-title mark { display: inline; white-space: nowrap; padding: 1px 8px 4px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .home-page .about-grid { gap: 16px; grid-template-columns: 1.8fr 1fr 1fr; grid-template-rows: repeat(2,minmax(245px,auto)); }
  .home-page .about-visual { grid-row: 1 / 3; grid-column: auto; min-width: 0; background: #090b18; }
  .home-page .about-visual::after { inset: 0; z-index: 3; background: #05081433; }
  .home-page .about-visual .montage { position: absolute; display: block; border-radius: 5px; object-fit: cover; box-shadow: 0 12px 28px #0007; }
  .home-page .about-visual .rocket { width: 78%; height: 34%; top: -4%; left: 7%; }
  .home-page .about-visual .adaptiq { width: 78%; height: 49%; top: 20%; left: 4%; }
  .home-page .about-visual .silverstem { width: 80%; height: 43%; top: 66%; left: 5%; }
  .home-page .about-visual .corefy { width: 46%; height: 56%; top: 31%; left: 83%; }
  .home-page .showreel-label { position: absolute; z-index: 5; top: 51%; left: 50%; transform: translate(-50%,-50%); font-size: 13px; font-weight: 800; color: #ff563b; white-space: nowrap; }
  .home-page .stat { min-width: 0; padding: 25px; border: 1px solid #dededb; }
  .home-page .stat-white { background: #eee; }
  .home-page .stat-blue { border-color: #2900ff; }
  .home-page .stat-lime { border-color: #bfd82b; }
  .home-page .stat strong { font-size: 45px; line-height: 1.1; margin: 12px 0 20px; }
  .home-page .stat small { max-width: none; font-size: 15px; line-height: 1.6; }

  .home-page .section-title { margin-bottom: 44px; font-size: clamp(35px,4vw,50px); line-height: 1.2; letter-spacing: -.04em; }
  .home-page .section-title em { padding-inline: .05em; }
  .home-page .section-title br { display: none; }
  .home-page .services-inner { max-width: 1040px; }
  .home-page .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .home-page .service-card { min-width: 0; padding: 16px 16px 24px; gap: 18px; font-size: 20px; line-height: 1.4; }
  .home-page .service-card img { min-width: 0; }
  .home-page .service-card span { min-width: 0; }
  .home-page .service-card b { padding-right: 8px; }

  .home-page .process > .section-title { margin-bottom: 55px; max-width: 900px; }
  .home-page .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 44px 55px; }
  .home-page .process-grid article { min-width: 0; grid-template-columns: 42px minmax(0,1fr); }
  .home-page .process-grid .number { width: 29px; height: 26px; font-size: 11px; margin-top: 7px; }
  .home-page .process-grid h3 { margin-bottom: 15px; font-size: clamp(29px,3.2vw,39px); line-height: 1.2; }
  .home-page .process-grid h3 em { background: var(--lime); color: var(--ink); font-weight: 400; padding-inline: 3px; }
  .home-page .process-dot { color: #ff593f; font-family: var(--font-sans); font-style: normal; padding-inline: 4px; }
  .home-page .process-grid p { max-width: none; font-size: 16px; line-height: 1.75; }

  .home-page .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px 36px; }
  .home-page .project-card { min-width: 0; }
  .home-page .project-card.project-shift { margin: 0; }
  .home-page .project-meta { grid-template-columns: 40px minmax(0,1fr) 24px; gap: 10px; }
  .home-page .project-meta img { width: 36px; height: 36px; }
  .home-page .project-meta b { font-size: 15px; }
  .home-page .project-meta small { font-size: 12px; line-height: 1.5; }

  .home-page .testimonials .section-title { margin-bottom: 38px; }
  .home-page .testimonial-track { width: calc(100% - 64px); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .home-page .testimonial-track article { min-width: 0; min-height: 235px; padding: 26px; gap: 26px; }
  .home-page .testimonial-track p { font-size: 16px; line-height: 1.75; }
  .home-page .testimonial-track b { font-size: 13px; }
  .home-page .testimonial-track small { font-size: 9px; }
  .home-page .slider-dots { display: none; }

  .home-page .contact-box { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: center; gap: 28px; width: calc(100% - 64px); height: auto; min-height: 460px; padding: clamp(32px,4vw,65px); border-radius: 16px; }
  .home-page .contact-copy { width: auto; min-width: 0; }
  .home-page .contact-copy h2 { margin-bottom: 32px; font-size: clamp(32px,4.1vw,54px); line-height: 1.2; letter-spacing: -.04em; }
  .home-page .contact-copy h2 br { display: none; }
  .home-page .contact-copy h2 em { padding-inline: .04em; }
  .home-page .contact-copy .wide { width: 100%; max-width: 570px; height: auto; min-height: 56px; padding: 18px 20px; font-size: 11px; line-height: 1.5; }
  .home-page .contact-box > img { align-self: center; width: 100%; max-width: 370px; height: auto; max-height: 430px; object-fit: contain; }

  .home-page .footer { width: calc(100% - 32px); margin: 16px auto; border-width: 6px; }
  .home-page .talk-bar { min-height: 116px; height: auto; padding: 28px 18px; flex-wrap: wrap; gap: 8px; font-size: 18px; line-height: 1.5; }
  .home-page .talk-bar a { max-width: 100%; margin: 0; font-size: clamp(17px,2.4vw,28px); overflow-wrap: anywhere; }
  .home-page .footer-main { min-height: 440px; grid-template-columns: 200px minmax(0,1fr) 170px; grid-template-rows: 100px 80px auto auto auto; padding: 30px 32px 40px; }
  .home-page .footer-main::before { top: 135px; left: 32px; right: 32px; }
  .home-page .footer-logo { max-width: 100%; width: 185px; }
  .home-page .footer-main nav { gap: 26px; }
  .home-page .footer-main nav a { display: grid; place-items: center; min-height: 44px; font-size: 12px; }
  .home-page .footer-button { padding: 16px 20px; font-size: 11px; }
  .home-page .footer-main p { max-width: 100%; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
  .home-page .footer-main .legal { font-size: 13px; }
  .home-page .socials span { width: 32px; height: 32px; }
}

@media (min-width: 1001px) and (max-width: 1100px) {
  .home-page .nav-links { gap: 18px; }
}

@media (max-width: 1000px) {
  .home-page .site-header { grid-template-columns: minmax(0,1fr) 48px; height: 86px; }
  .home-page .menu-toggle { display: grid; place-items: center; position: static; width: 48px; height: 48px; border: 1px solid #ffffff6b; border-radius: 10px; background: #ffffff50; color: #19191b; font-size: 24px; z-index: 5; cursor: pointer; }
  .home-page .site-header > .pill { display: none; }
  .home-page .nav-links { z-index: 6; top: 78px; gap: 6px; padding: 14px; border: 1px solid #0000000a; border-radius: 14px; background: #fff; box-shadow: 0 14px 38px #24204820; }
  .home-page .nav-links.open { align-items: stretch; }
  .home-page .nav-links a { padding: 14px 16px; font-size: 14px; border-radius: 8px; min-height: 48px; }
  .home-page .nav-links a:nth-child(2) { background: transparent; }
  .home-page .nav-links a:hover { background: #f0edff; }
  .home-page .hero h1 { font-size: clamp(40px,6.1vw,59px); }
  .home-page .hero { min-height: 440px; }
  .home-page .hero-chip { width: 165px; height: 62px; vertical-align: 8px; font-size: 10px; }
  .home-page .trust-logos { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 30px; }
  .home-page .about-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: clamp(320px,50vw,460px) auto auto; }
  .home-page .about-visual { grid-column: 1 / -1; grid-row: auto; }
  .home-page .stat { min-height: 210px; }
  .home-page .footer-main { display: flex; flex-direction: column; min-height: 0; gap: 27px; padding: 40px 24px; }
  .home-page .footer-main::before { display: none; }
  .home-page .footer-main nav { flex-wrap: wrap; }
  .home-page .footer-button { min-height: 46px; }
  .home-page .footer-main .legal { column-gap: 18px; row-gap: 5px; }
  .home-page .footer .legal a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
}

@media (max-width: 800px) {
  .home-page .section { padding-block: 70px; }
  .home-page .about-title { font-size: 36px; }
  .home-page .process-grid { gap: 36px 28px; }
  .home-page .process-grid article { grid-template-columns: 38px minmax(0,1fr); }
  .home-page .process-grid h3 { font-size: 29px; }
  .home-page .contact-box { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 36px; gap: 25px; }
  .home-page .contact-copy h2 { font-size: 40px; }
  .home-page .contact-copy .wide { max-width: none; }
  .home-page .contact-box > img { justify-self: center; width: min(100%,290px); max-height: 300px; }
}

@media (max-width: 650px) {
  .home-page .container { width: calc(100% - 40px); }
  .home-page .section { padding-block: 64px; }
  .home-page .site-header { height: 80px; }
  .home-page .brand { width: 150px; }
  .home-page .site-header .brand { width: 150px; }
  .home-page .nav-links { top: 72px; }
  .home-page .hero { min-height: 405px; padding-block: 50px; }
  .home-page .hero h1 { position: relative; padding-bottom: 90px; font-size: clamp(36px,8.8vw,54px); line-height: 1.18; letter-spacing: -.045em; }
  .home-page .hero-bottom-line { margin-top: 8px; }
  .home-page .hero-chip { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 175px; height: 60px; padding-inline: 16px; border-radius: 32px; gap: 10px; font-size: 10px; letter-spacing: 0; }
  .home-page .trusted { padding: 28px 0 32px; }
  .home-page .trusted > p { padding-inline: 20px; font-size: 11px; margin-bottom: 20px; }
  .home-page .trust-logos { gap: 10px 18px; }
  .home-page .trust-logos img { height: 45px; }
  .home-page .about { padding-top: 35px; }
  .home-page .about-title { margin-bottom: 32px; font-size: clamp(29px,6.8vw,36px); line-height: 1.5; }
  .home-page .about-grid { gap: 12px; grid-template-rows: clamp(280px,80vw,420px) auto auto; }
  .home-page .stat { min-height: 210px; padding: 21px 18px; }
  .home-page .stat strong { font-size: 38px; margin: 12px 0 15px; }
  .home-page .stat small { font-size: 13px; line-height: 1.6; }
  .home-page .stat-icon { font-size: 27px; }
  .home-page .section-title { font-size: clamp(31px,7vw,38px); margin-bottom: 32px; line-height: 1.2; }
  .home-page .eyebrow { font-size: 9px; margin-bottom: 20px; }
  .home-page .process > .section-title { margin-bottom: 35px; }
  .home-page .process-grid { grid-template-columns: minmax(0,1fr); row-gap: 35px; }
  .home-page .process-grid h3 { font-size: 33px; }
  .home-page .process-grid p { font-size: 15px; }
  .home-page .project-grid { grid-template-columns: minmax(0,1fr); gap: 35px; }
  .home-page .project-meta { padding-top: 15px; }
  .home-page .testimonial-track { width: calc(100% - 40px); gap: 18px; }
  .home-page .testimonial-track article { padding: 24px; min-height: 225px; }
  .home-page .testimonial-track p { font-size: 15px; }
  .home-page .contact-box { width: calc(100% - 32px); padding: 32px 24px 10px; }
  .home-page .contact-copy h2 { font-size: clamp(32px,7.5vw,40px); }
  .home-page .contact-box > img { width: min(100%,270px); max-height: 280px; }
  .home-page .footer { width: calc(100% - 24px); margin: 0 auto 12px; }
  .home-page .talk-bar { flex-direction: row; font-size: 16px; gap: 7px; padding: 24px 14px; }
  .home-page .talk-bar a { font-size: clamp(17px,4.1vw,22px); }
  .home-page .footer-main { padding: 34px 18px; gap: 24px; }
  .home-page .footer-main nav { gap: 25px; }
  .home-page .footer-main p { font-size: 12px; }
  .home-page .footer-main .legal { font-size: 12px; column-gap: 14px; }
  .home-page .socials { gap: 20px; }
}

@media (max-width: 599px) {
  .home-page .service-grid,.home-page .testimonial-track { grid-template-columns: minmax(0,1fr); }
  .home-page .service-card { padding: 14px 14px 22px; font-size: 19px; gap: 18px; }
}

@media (max-width: 359px) {
  .home-page .hero { min-height: 380px; }
  .home-page .hero h1 { font-size: 33px; }
  .home-page .trust-logos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .stat { padding: 18px 14px; }
  .home-page .stat strong { font-size: 33px; }
  .home-page .process-grid article { grid-template-columns: 34px minmax(0,1fr); }
  .home-page .process-grid h3 { font-size: 29px; }
  .home-page .contact-copy h2 { font-size: 30px; }
}

/* Progressive enhancement: keep the quotes as a grid when JavaScript is off. */
.home-page .testimonial-carousel { --testimonial-visible: 3; --testimonial-gap: 24px; }
.home-page .testimonial-carousel .testimonial-track { width: 100%; margin: 0; }
.home-page .testimonial-carousel.is-ready .testimonial-viewport { overflow: hidden; padding-block: 10px 24px; touch-action: pan-y; }
.home-page .testimonial-carousel.is-ready .testimonial-track { display: flex; align-items: stretch; gap: var(--testimonial-gap); will-change: transform; }
.home-page .testimonial-carousel.is-ready .testimonial-track > article { flex: 0 0 var(--testimonial-card-width); min-width: 0; max-width: none; min-height: 260px; height: auto; }
.home-page .testimonial-viewport.is-dragging { cursor: grabbing; user-select: none; }
.home-page .testimonial-viewport:focus-visible { outline: 3px solid #5d3cff; outline-offset: 5px; border-radius: 10px; }
.home-page .testimonial-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.home-page .testimonial-controls[hidden] { display: none; }
.home-page .testimonial-arrow,.home-page .testimonial-rotation { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #dededb; border-radius: 50%; background: #fff; color: #19191b; cursor: pointer; font-size: 14px; }
.home-page .testimonial-arrow:hover,.home-page .testimonial-rotation:hover { border-color: #ff603e; color: #ff603e; }
.home-page .testimonial-pagination { display: flex; align-items: center; }
.home-page .testimonial-pagination button { display: grid; place-items: center; width: 30px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-page .testimonial-pagination button::before { content: ""; width: 7px; height: 7px; border-radius: 6px; background: #c2c2c5; transition: width .2s,background-color .2s; }
.home-page .testimonial-pagination button[aria-current="true"]::before { width: 21px; background: #ff603e; }
.home-page .testimonial-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1199px) {
  .home-page .testimonial-carousel { --testimonial-visible: 2; --testimonial-gap: 20px; }
}
@media (max-width: 699px) {
  .home-page .testimonial-carousel { --testimonial-visible: 1; --testimonial-gap: 18px; }
  .home-page .testimonial-carousel.is-ready .testimonial-track > article { min-height: 245px; }
  .home-page .testimonial-controls { gap: 6px; margin-top: 10px; }
  .home-page .testimonial-pagination button { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .testimonial-pagination button::before { transition: none; }
}
