/* The reference layout, using Stepscale's existing paper, forest and serif styling. */
.homepage {
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 900px 500px at 50% -5%, rgba(15, 61, 46, .06), transparent 60%),
        radial-gradient(ellipse 700px 300px at 100% 20%, rgba(15, 61, 46, .03), transparent 60%);
    color: var(--ink);
}
.font-georgia,
.home-hero-title,
.home-workflow h2,
.home-workflow h3,
.home-advantage h2,
.home-booking h2,
.home-results dt,
.home-customer-quote blockquote { font-family: Georgia, 'Times New Roman', ui-serif, serif; }
.homepage main > section { scroll-margin-top: 96px; }
.home-container { width: min(100% - 48px, 1152px); margin-inline: auto; }
.home-kicker { color: var(--forest); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; }
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; width: min(100% - 48px, 1280px); margin-inline: auto; padding-block: 80px; }
.home-hero-copy { padding-block: 16px; }
.home-hero-title { margin-top: 24px; font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; max-width: 690px; }
.home-hero-description { margin-top: 28px; max-width: 500px; color: var(--stone); font-size: 18px; line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 9999px; background: #064e3b; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; transition: background-color .15s, border-color .15s; }
.home-button:hover { background: #065f46; }
.home-button-secondary { background: transparent; border-color: var(--rule); color: var(--forest); }
.home-button-secondary:hover { background: var(--bone); border-color: var(--sage); }
.homepage a:focus-visible, .homepage summary:focus-visible, .homepage button:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.home-hero-note { max-width: 460px; margin-top: 20px; font-size: 13px; font-style: italic; line-height: 1.6; color: var(--stone); }
.home-hero-visual { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 24px 0; }
.home-hero-visual img { width: 100%; height: auto; object-fit: contain; }
.home-workflow { padding: 72px 0 80px; background: var(--bone); border-block: 1px solid var(--rule); }
.home-workflow h2 { font-size: clamp(32px, 4.1vw, 48px); line-height: 1.1; font-weight: 400; letter-spacing: -.025em; text-align: center; }
.home-workflow-intro { margin-top: 20px; color: var(--stone); font-size: 16px; line-height: 1.65; text-align: center; }
.home-workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 48px; }
.home-workflow-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 20px; padding: 12px; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--forest); }
.home-workflow-icon svg { width: 100%; height: 100%; }
.home-workflow h3 { margin-bottom: 12px; font-size: 25px; font-weight: 400; line-height: 1.25; letter-spacing: -.02em; }
.home-workflow article p { color: var(--stone); font-size: 15px; line-height: 1.65; }
.home-advantage { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.home-advantage-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 40px; align-items: stretch; }
.home-advantage-copy { padding-block: 24px; }
.home-advantage h2 { font-size: 36px; line-height: 1.12; font-weight: 400; letter-spacing: -.025em; margin: 16px 0 20px; }
.home-advantage-copy > p:last-child { color: var(--stone); font-size: 15px; line-height: 1.65; max-width: 340px; }
.home-results { display: flex; flex-direction: column; justify-content: center; gap: 40px; border-left: 1px solid var(--rule); padding: 24px 0 24px 32px; }
.home-results dt { font-size: 42px; line-height: 1.15; letter-spacing: -.035em; color: var(--forest); }
.home-results dd { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--stone); }
.home-results-quote { display: flex; flex-direction: column; align-items: center; background: var(--bone); border: 1px solid var(--rule); border-radius: 12px; text-align: center; padding: 28px 24px; }
.home-results-quote img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px rgba(15, 61, 46, .12); }
.home-results-quote blockquote { font-size: 14px; line-height: 1.65; margin-top: 20px; }
.home-results-quote figcaption { margin-top: auto; padding-top: 24px; font-size: 14px; }
.home-results-quote figcaption span { display: block; margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--stone); }
.home-trusted { background: var(--bone); border-bottom: 1px solid var(--rule); }
.home-trusted h2 { text-align: center; padding: 32px 24px; color: var(--forest); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; }
.home-logo-grid { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); background: var(--rule); gap: 1px; border-block: 1px solid var(--rule); }
.home-logo-grid a { display: flex; min-width: 0; align-items: center; justify-content: center; min-height: 105px; padding: 16px 12px; background: var(--bone); transition: background-color .2s; }
.home-logo-grid img { width: 100%; height: 60px; object-fit: contain; filter: brightness(0); transition: filter .2s; }
.home-logo-grid a:hover, .home-logo-grid a:focus-visible { background: var(--moss); }
.home-logo-grid a:hover img, .home-logo-grid a:focus-visible img { filter: brightness(0) invert(1); }
.home-customer-quote { padding-block: 56px 64px; text-align: center; }
.home-customer-quote blockquote { max-width: 860px; margin-inline: auto; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.45; letter-spacing: -.02em; }
.home-customer-quote figcaption { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; color: var(--stone); font-size: 14px; line-height: 1.6; text-align: left; }
.home-customer-quote figcaption img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(15, 61, 46, .12); }
.home-customer-quote figcaption strong { color: var(--ink); }
.home-customer-role { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.home-booking { padding: 72px 0 80px; }
.home-booking h2 { margin-top: 20px; font-size: 36px; font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }
.home-booking-row { display: flex; justify-content: space-between; align-items: center; gap: 56px; margin-top: 24px; }
.home-booking-row p { max-width: 730px; color: var(--stone); font-size: 16px; line-height: 1.65; }
.home-booking-row .home-button { flex-shrink: 0; }
@media (max-width: 1100px) {
    .home-workflow-grid { gap: 32px; }
    .home-advantage-grid { gap: 24px; }
    .home-results { padding-left: 24px; }
    .home-results dt { font-size: 36px; }
    .home-results-quote { padding-inline: 20px; }
    .home-logo-grid a { padding-inline: 8px; min-height: 85px; }
}
@media (max-width: 767px) {
    .home-container { width: calc(100% - 48px); }
    .home-hero { grid-template-columns: 1fr; padding-block: 40px; gap: 24px; }
    .home-hero-copy { padding: 0; }
    .home-hero-title { font-size: clamp(40px, 8vw, 54px); line-height: 1.1; }
    .home-hero-description { margin-top: 24px; font-size: 16px; }
    .home-hero-visual { padding: 0; }
    .home-hero-visual img { max-width: 560px; }
    .home-workflow { padding: 48px 0; }
    .home-workflow-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
    .home-workflow-grid article { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; }
    .home-workflow-icon { grid-row: span 2; margin-top: 4px; }
    .home-workflow h3 { margin-bottom: 8px; }
    .home-advantage { padding: 48px 0; }
    .home-advantage-grid { grid-template-columns: 1fr; gap: 28px; }
    .home-advantage-copy { padding: 0; }
    .home-advantage h2, .home-booking h2 { font-size: 32px; }
    .home-advantage-copy > p:last-child { max-width: none; }
    .home-results { flex-direction: row; justify-content: space-between; gap: 16px; border-left: 0; border-top: 1px solid var(--rule); padding: 24px 0 0; }
    .home-results dt { font-size: 34px; }
    .home-results-quote { padding: 24px; }
    .home-results-quote blockquote { max-width: 440px; }
    .home-logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .home-logo-grid a { min-height: 68px; padding: 10px; }
    .home-logo-grid img { height: 44px; }
    .home-customer-quote { padding-block: 40px 48px; }
    .home-booking { padding: 48px 0; }
    .home-booking-row { align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .homepage *, .homepage *::before, .homepage *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Seamless logo rows, clipped to the page without visible scrollbars. */
.home-logo-grid.is-scrolling { display: block; }
.home-logo-row { overflow: hidden; }
.home-logo-row + .home-logo-row { border-top: 1px solid var(--rule); }
.home-logo-track { display: flex; width: max-content; animation: home-logo-scroll 58s linear infinite; }
.home-logo-row:nth-child(2) .home-logo-track { animation-duration: 64s; }
.home-logo-row:nth-child(3) .home-logo-track { animation-duration: 70s; }
.home-logo-set { display: flex; flex-shrink: 0; }
.home-logo-set a { flex: 0 0 max(96px, calc(100vw / var(--logo-count))); width: max(96px, calc(100vw / var(--logo-count))); }
.home-logo-grid:hover .home-logo-track,
.home-logo-grid:focus-within .home-logo-track { animation-play-state: paused; }
@keyframes home-logo-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .home-logo-grid.is-scrolling { display: grid; }
    .home-logo-row, .home-logo-track, .home-logo-set { display: contents; animation: none; }
    .home-logo-set a { width: auto; }
    .home-logo-set[aria-hidden="true"] { display: none; }
}
