/* =========================================================
   Greatest Interactive — Home (v9)
   Carousel rebuilt around fixed slots: the enlarged slot is
   permanently the center position in the row — switching only
   ever changes which image's content fills each slot (crossfade),
   never which slot is enlarged. No scroll-into-view anywhere, so
   switching can't move the page. More breathing room below the
   carousel, and a refreshed services section design.
   ========================================================= */

h1, h2, h3 {
    line-height: 1.08;
    margin: 0;
}

.eyebrow {
    margin-bottom: 10px;
}

/* ---------------------------------------------------------
   Pill buttons
   --------------------------------------------------------- */

.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 26px;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid rgba(17, 17, 17, 0.9);
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.pill-button--red {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.pill-button--red:hover {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
}

.pill-button--blue {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.pill-button--blue:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.pill-button--yellow {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
}

.pill-button--yellow:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.pill-button--light {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
}

.pill-button--light:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.pill-button--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

.pill-button--ghost:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    padding: clamp(90px, 14vh, 140px) 20px clamp(56px, 9vh, 90px);
    box-sizing: border-box;
    overflow: hidden;
    background-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.has-image {
    background-image: var(--hero-image);
}

.hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 12, 26, 0.5) 0%,
        rgba(15, 12, 26, 0.3) 45%,
        rgba(15, 12, 26, 0.6) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

.hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    background: var(--brand-blue-soft);
    border: 1px solid rgba(45, 125, 246, 0.18);
    color: var(--brand-blue);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.hero-kicker--red {
    background: var(--brand-red-soft);
    border-color: rgba(218, 67, 50, 0.18);
    color: var(--brand-red);
}

.hero-kicker--blue {
    background: var(--brand-blue-soft);
    border-color: rgba(45, 125, 246, 0.18);
    color: var(--brand-blue);
}

.hero-kicker--yellow {
    background: var(--brand-yellow-soft);
    border-color: rgba(245, 196, 81, 0.22);
    color: #7d5e00;
}

.hero.has-image .hero-kicker {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.hero-kicker-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    flex-shrink: 0;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.45);
}

.hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    color: var(--ink);
}

.hero.has-image h1 {
    color: #ffffff;
}

.hero p {
    margin-top: 16px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.6;
    color: var(--muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero.has-image p {
    color: rgba(255, 255, 255, 0.86);
}

.hero-cta {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Content panel
   --------------------------------------------------------- */

.content-panel {
    background: var(--paper);
    padding-top: 8px;
}

/* ---------------------------------------------------------
   Showcase carousel — fixed slots. The row always has the
   same number of slots and the center slot is permanently the
   enlarged one (flagged with .is-center at build time, never
   toggled based on which image is active). Switching slides
   only ever crossfades each slot's *content*; nothing changes
   size or position, and nothing scrolls the page.
   --------------------------------------------------------- */

.showcase {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 110px 20px 52px;
}

.showcase + .split-section {
    margin-top: 28px;
}

.showcase-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.showcase-head h2 {
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.showcase-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showcase-stage {
    position: relative;
    padding-top: 18px;
}

.carousel-backarrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 28px -16px rgba(20, 20, 28, 0.4);
    z-index: 3;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.carousel-backarrow:hover {
    transform: scale(1.06);
}

:root[data-theme="dark"] .carousel-backarrow {
    background: rgba(17, 17, 17, 0.96);
    color: var(--brand-yellow);
    border: 1px solid rgba(245, 196, 81, 0.3);
    box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.65);
}

.carousel-backarrow[hidden] { display: none; }

/* The row of fixed slots (was .carousel-track holding raw
   slides — now holds JS-built .carousel-slot elements). */
.carousel-track {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 380px;
    padding: 0;
}

.carousel-slot {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    background: var(--paper);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 6px;
    margin-right: -1px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.25s ease,
                opacity 0.35s ease,
                filter 0.35s ease;
    opacity: 0.9;
    filter: saturate(0.92);
}

.carousel-slot + .carousel-slot {
    border-left: none;
}

.carousel-slot:hover {
    border-color: rgba(17, 24, 39, 0.14);
}

/* Permanent center slot — this never moves and never toggles;
   it's assigned once when the slots are built. */
.carousel-slot.is-center {
    flex: 2.2 1 0;
    margin-top: -16px;
    margin-bottom: -16px;
    border-radius: 10px;
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 20px 45px -30px rgba(17, 24, 39, 0.26);
    z-index: 2;
    cursor: default;
    opacity: 1;
    filter: saturate(1);
    transform: translateY(-2px);
}

/* Content inside a slot crossfades in place — the slot itself
   never resizes, so switching can't shift layout or scroll
   position. */
.carousel-slot-inner {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.45s ease;
    will-change: opacity, transform, filter;
}

.carousel-slot.is-swapping .carousel-slot-inner {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(2px);
}

.carousel-slot-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: var(--surface);
    display: block;
}

.carousel-panel-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 12, 26, 0.35) 0%, rgba(15, 12, 26, 0) 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slot.is-center .carousel-panel-scrim {
    opacity: 1;
}

.carousel-text-only {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    background: var(--surface);
    text-align: center;
}

.carousel-text-only p {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(13px, 1.3vw, 16px);
    font-weight: 600;
    font-style: italic;
    margin: 0;
}

.carousel-slot.is-center .carousel-text-only p {
    font-size: clamp(15px, 1.6vw, 19px);
}

.showcase-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    margin-top: 18px;
}

.carousel-progress-track {
    width: 120px;
    height: 3px;
    border-radius: 0;
    background: var(--line);
    overflow: hidden;
}

.carousel-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--pill-bg);
    transition: width 0.4s ease;
}

.carousel-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.carousel-pagination button {
    border: 1px solid var(--line);
    background: var(--surface);
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-pagination button:hover {
    color: var(--ink);
    border-color: rgba(17, 24, 39, 0.18);
    transform: translateY(-1px);
}

.carousel-pagination button.carousel-pill--red {
    color: var(--brand-red);
    background: var(--brand-red-soft);
    border-color: rgba(218, 67, 50, 0.2);
}

.carousel-pagination button.carousel-pill--blue {
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    border-color: rgba(45, 125, 246, 0.2);
}

.carousel-pagination button.carousel-pill--yellow {
    color: #7d5e00;
    background: var(--brand-yellow-soft);
    border-color: rgba(245, 196, 81, 0.2);
}

.carousel-pagination button.is-active {
    color: #fff;
    box-shadow: 0 12px 22px -16px rgba(17, 24, 39, 0.35);
}

.carousel-pagination button.carousel-pill--red.is-active {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.carousel-pagination button.carousel-pill--blue.is-active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.carousel-pagination button.carousel-pill--yellow.is-active {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #1b1330;
}

:root[data-theme="dark"] .carousel-pagination button {
    background: rgba(18, 13, 30, 0.82);
    border-color: rgba(245, 241, 255, 0.12);
    color: var(--muted);
}

:root[data-theme="dark"] .carousel-pagination button.carousel-pill--red {
    background: rgba(218, 67, 50, 0.16);
    color: #ff8b7f;
    border-color: rgba(255, 139, 127, 0.2);
}

:root[data-theme="dark"] .carousel-pagination button.carousel-pill--blue {
    background: rgba(45, 125, 246, 0.16);
    color: #8ab8ff;
    border-color: rgba(138, 184, 255, 0.2);
}

:root[data-theme="dark"] .carousel-pagination button.carousel-pill--yellow {
    background: rgba(245, 196, 81, 0.12);
    color: #ffd879;
    border-color: rgba(255, 216, 121, 0.2);
}

.showcase--compact { padding-bottom: 8px; }
.showcase--compact .carousel-track { height: 220px; }

.premium-banner {
    padding: 12px 20px 80px;
}

.premium-banner__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 42px;
    padding: 30px 30px 30px 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px -28px rgba(27, 19, 48, 0.18);
}

.premium-banner__copy {
    padding: 12px 0 12px 12px;
}

.premium-banner__copy h2 {
    margin-top: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.premium-banner__copy p {
    margin: 18px 0 0;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

.premium-banner__copy .pill-button {
    margin-top: 26px;
}

.premium-banner__media {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(27, 19, 48, 0.1);
    background: var(--surface);
}

.premium-banner__media img {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 0;
}

@media (max-width: 900px) {
    .carousel-track { height: 300px; }
    .carousel-slot.is-center { flex-grow: 1.6; }
    .premium-banner__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 18px;
    }
    .premium-banner__media img { height: 300px; }
    /* Drop the outermost pair of slots — keeps the center
       enlarged panel plus one neighbor on each side. */
    .carousel-track .carousel-slot:first-child,
    .carousel-track .carousel-slot:last-child {
        display: none;
    }
}

@media (max-width: 560px) {
    .showcase { padding: 90px 16px 56px; }
    .showcase-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .showcase-stage { padding-top: 24px; }
    .carousel-backarrow { width: 42px; height: 42px; }
    .carousel-track { height: 260px; }
    /* Only the enlarged center slot is shown at all on small
       screens — a single clean full-width panel. */
    .carousel-track .carousel-slot:not(.is-center) {
        display: none;
    }
    .carousel-slot.is-center {
        margin-top: 0;
        margin-bottom: 0;
        flex-grow: 1;
    }
    .showcase-footer { justify-content: center; }
    .carousel-progress-track { display: none; }
}

/* ---------------------------------------------------------
   Generic content sections
   --------------------------------------------------------- */

.section {
    padding: 80px 20px;
}

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--ink);
}

.section-copy {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 760px;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.cta {
    padding: 0 20px 80px;
}

.cta-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 40px;
    text-align: center;
    background: var(--ink);
    border-radius: var(--radius-lg);
}

.cta-inner h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
}

.cta-inner .pill-button {
    margin-top: 26px;
}

/* ---------------------------------------------------------
   Split section
   --------------------------------------------------------- */

.split-section {
    padding: 26px 20px 80px;
}

.split-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 44px;
}

.split-section.has-media .split-inner {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 18px 42px -28px rgba(27, 19, 48, 0.18);
}

:root[data-theme="dark"] .split-section.has-media .split-inner {
    background: rgba(28, 22, 48, 0.9);
    border-color: rgba(245, 241, 255, 0.12);
}

.split-section.is-reversed .split-inner {
    flex-direction: row-reverse;
}

.split-section:not(.has-media) .split-inner {
    max-width: 720px;
    text-align: center;
    flex-direction: column;
}

.split-media {
    flex: 1 1 420px;
    min-width: 0;
}

.split-media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    border: 1px solid rgba(27, 19, 48, 0.08);
}

.split-copy {
    flex: 1 1 380px;
    padding: 12px 10px;
}

.split-copy h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: var(--ink);
}

.split-copy p {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

.split-copy .pill-button {
    margin-top: 24px;
}

@media (max-width: 720px) {
    .split-section {
        padding: 18px 16px 48px;
    }
    .split-inner,
    .split-section.is-reversed .split-inner {
        flex-direction: column;
        gap: 18px;
    }
    .split-section.has-media .split-inner {
        padding: 12px;
    }
    .split-media,
    .split-copy {
        flex-basis: auto;
        width: 100%;
    }
    .split-copy {
        padding: 8px 6px 12px;
    }
    .split-copy h2 {
        font-size: clamp(24px, 8vw, 34px);
    }
    .split-copy p {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.6;
    }
    .split-media img { height: 240px; }
}

/* ---------------------------------------------------------
   Services — redesigned: numbered editorial-style entries
   with a colored icon badge, a subtle tint wash on hover, and
   an animated "Learn more" affordance instead of a flat card.
   --------------------------------------------------------- */

.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    color: var(--ink);
}

.section-header p {
    color: var(--muted);
    max-width: 320px;
    font-size: 15px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-card {
    position: relative;
    padding: 36px 28px;
    border-left: 1px solid var(--line);
    transition: background 0.25s ease;
    overflow: hidden;
}

.service-card:first-child {
    border-left: none;
}

.service-card:hover {
    background: var(--surface);
}

.service-index {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--line);
}

.card-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    font-size: 22px;
    margin-bottom: 20px;
    color: inherit;
    transition: transform 0.25s ease;
}

.card-tile i {
    display: inline-block;
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

.service-card:hover .card-tile {
    transform: translateY(-3px);
}

.tile-a { background: var(--brand-red); color: #fff; }
.tile-b { background: var(--brand-blue); color: #fff; }
.tile-c { background: var(--brand-yellow); color: var(--ink); }
.tile-d { background: #1b1330; color: #fff; }

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.service-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 16px 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
}

.service-link svg {
    transition: transform 0.2s ease;
}

.service-link:hover svg {
    transform: translateX(3px);
}

.services-empty {
    color: var(--muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

@media (max-width: 720px) {
    .service-cards {
        grid-template-columns: 1fr;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
    .service-card {
        border-left: none;
        border-top: 1px solid var(--line);
        padding: 28px 18px;
    }
    .service-card:first-child { border-top: none; }
    .service-link { opacity: 1; transform: none; }
    .card-tile {
        width: 46px;
        height: 46px;
    }
}

/* ---------------------------------------------------------
   Testimonials — clean divided list.
   --------------------------------------------------------- */

.testimonials {
    padding-top: 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 48px;
    border-top: 1px solid var(--line);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.testimonial-text {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.6;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-avatar--placeholder {
    display: grid;
    place-items: center;
    background: var(--tile-a);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.testimonial-meta {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.section-actions {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 720px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------
   Partners
   --------------------------------------------------------- */

.partners {
    background: var(--surface);
}

.partners .section-header {
    margin-bottom: 40px;
}

.partners-strip {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.partner-item {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    border-left: 1px solid var(--line);
    text-align: center;
}

.partner-item:first-child {
    border-left: none;
}

.partner-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.partner-item:hover .partner-logo img {
    filter: grayscale(0);
    opacity: 1;
}

.partner-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.partner-tagline {
    max-width: 180px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.72;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 720px) {
    .partner-item {
        flex: 1 1 45%;
        border-left: none;
        border-top: 1px solid var(--line);
    }
    .partner-item:nth-child(-n+2) { border-top: none; }
    .partner-item:nth-child(even) { border-left: 1px solid var(--line); }
}

/* ---------------------------------------------------------
   Back to top
   --------------------------------------------------------- */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--brand-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, color 0.2s ease;
    z-index: 30;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-yellow);
    color: var(--ink);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Responsive (hero + CTA)
   --------------------------------------------------------- */

@media (max-width: 720px) {
    .hero-cta { flex-direction: column; }
    .cta-inner { padding: 48px 24px; }
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

    .showcase {
        padding: 72px 16px 28px;
    }

    .showcase + .split-section {
        margin-top: 8px;
    }

    .split-section {
        padding-top: 14px;
        padding-bottom: 48px;
    }
}
