/* ================================================
   HOME PAGE - phones
   ================================================
   Loaded after style.css and tour-chapters.css on index.html. Everything here
   applies at <= 960px only; home.js builds the pieces it styles. */

.hs-stage, .hx-bar, .hx-snap { display: none; }

/* ── Hero announcement pill (all widths): points visitors at OAT ── */
.hero-announce { display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%; margin-bottom: var(--spacing-md);
    padding: 0.35rem 0.95rem 0.35rem 0.35rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
    background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    color: var(--color-text-primary); font-size: 0.92rem; font-weight: 500; line-height: 1.35; text-align: left;
    transition: border-color var(--transition-normal), background var(--transition-normal); }
.hero-announce:hover, .hero-announce:focus-visible { border-color: var(--color-accent-blue); background: rgba(0, 102, 204, 0.18); }
.hero-announce-tag { flex: none; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--color-accent-blue); color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-announce .nowrap { white-space: nowrap; }
.hero-announce i { flex: none; font-size: 0.8rem; transition: transform var(--transition-normal); }
.hero-announce:hover i, .hero-announce:focus-visible i { transform: translateX(3px); }

@media (max-width: 960px) {
    /* The hero fills exactly the screen under the header. */
    .hero { height: calc(100vh - var(--header-height)); height: calc(100svh - var(--header-height)); min-height: 520px; }
    .hero-announce { font-size: 0.82rem; gap: 0.5rem; }

    /* Titles and copy centred (.section-title is inline-block, so centre its container). */
    .services .container, .testimonials .container, .partners .container { text-align: center; }

    /* ── Services: one full-screen chapter per service ── */
    .services.section { padding-bottom: 0; }
    .hs-stage { display: flex; position: sticky; top: 0; z-index: 2; height: 100vh; height: 100svh; flex-direction: column; justify-content: center; align-items: center;
        padding: calc(var(--header-height) + 8px) 0 16px; background: var(--color-bg-secondary); }
    .hs-frame { position: relative; width: 100%; max-width: 34rem; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--color-bg-tertiary);
        box-shadow: 0 0 0 1px var(--color-gray-light), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
    .hs-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
        transition: opacity 0.6s ease, transform 6s ease-out; }
    .hs-frame img.on { opacity: 1; transform: scale(1); }
    /* The cards become invisible one-screen spacers under the pinned stage. */
    .services-grid { display: block; position: relative; margin-top: -100vh; margin-top: -100svh; }
    .services-grid .service-card { height: 100vh; height: 100svh; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
        visibility: hidden; transform: none !important; scroll-snap-align: start; }
    .tc-cap .service-icon { display: none; }
    .tc-cap .service-title { font-size: 1.4rem; }
    .tc-cap .btn { margin-top: 1rem !important; }

    /* ── Testimonials: pinned, sliding sideways as you scroll ── */
    .testimonials.hx { position: relative; padding: 0; height: calc(100vh + (var(--n) - 1) * 75vh); height: calc(100svh + (var(--n) - 1) * 75svh); }
    .testimonials.hx > .container { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center;
        padding-top: var(--header-height); padding-bottom: 24px; overflow: hidden; }
    .testimonials.hx .carousel-arrow, .testimonials.hx .carousel-dots { display: none; }
    .testimonials.hx .testimonials-carousel-wrapper { margin-top: 2.25rem; }
    .testimonials.hx .testimonials-track { gap: 16px; transform: translateX(var(--hx, 0px)) !important; transition: none !important; will-change: transform; }
    .testimonials.hx .testimonial-card { width: 100%; min-width: 100%; padding: 1.5rem 1.25rem; gap: 1.1rem; text-align: center; transform: none !important; }
    .testimonials.hx .testimonial-stars { justify-content: center; }
    .testimonials.hx .testimonial-text { font-size: 1rem; line-height: 1.65; }
    .testimonials.hx .testimonial-author { flex-direction: column; gap: 0.6rem; }
    .testimonials.hx .author-info span { justify-content: center; }
    .hx-bar { display: block; width: 120px; height: 3px; margin: 1.5rem auto 0; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
    .hx-bar i { display: block; height: 100%; background: var(--color-accent-blue); transform: scaleX(0); transform-origin: left; }
    .hx-snap { display: block; position: absolute; left: 0; width: 1px; height: 1px; top: calc(var(--k) * 75vh); top: calc(var(--k) * 75svh); scroll-snap-align: start; pointer-events: none; }

    /* ── Partners: large stacked cards instead of the arrow carousel ── */
    .partners .carousel-arrow, #partnerDots { display: none; }
    .partners-carousel { overflow: visible; }
    .partners-track { flex-direction: column; gap: 16px; transform: none !important; }
    .partners-track .partner-card-link, .partners-track > .partner-card { width: 100%; min-width: 100%; }
    .partner-image { height: auto; aspect-ratio: 16 / 10; }
    .partner-cta .partner-image { aspect-ratio: auto; height: 110px; }
    .partner-info { padding: 1.1rem; }
    .partner-details { justify-content: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hs-frame img { transition: opacity 0.2s ease; transform: none; }
}
