/* Compiled CSS for scss/home.scss — every section actually used on the
   home page (Hero, Scene shared/About/Services, hscroll/Work,
   Testimonials), with the unused legacy sections (Stats, Journey,
   Capabilities, old About) left out. Mirrors home.scss 1:1 since there's
   no build tool in this environment — keep both in sync by hand.
   Reset, tokens, base body styles, Dock, and Footer are shared across
   every page and live in css/global.css instead of here. */

body {
    font-family: "Karla", sans-serif;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f6f7f9;
    color: #0e1b33;
}

.hero__object {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Banner background: silk streaks, dot grids, outline circles and orange
   accents drawn as inline SVG in template-home.php */
.hero__deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero__deco svg,
.hero__waves svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Orange + navy waves along the bottom edge */
.hero__waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(170px, 36vh, 380px);
    pointer-events: none;
    z-index: 1;
}

/* phones get a simpler two-curve version (see template-home.php) */
.hero__waves .hero__waves-svg--mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .hero__waves {
        height: clamp(140px, 26vh, 260px);
    }

    .hero__waves .hero__waves-svg--desktop {
        display: none;
    }

    .hero__waves .hero__waves-svg--mobile {
        display: block;
    }
}

.hero__body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 96px clamp(32px, 6vw, 80px) clamp(40px, 9vh, 110px);
}

.hero__content {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(16px, 3vw, 48px);
}

.hero__visual {
    position: relative;
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    isolation: isolate;
}

/* Orange sun behind the hero visual */
.hero__visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 6%;
    right: -4%;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #ffb14a 0%, #ff7a0f 45%, #f25a00 100%);
    box-shadow: 0 30px 80px -20px rgba(255, 106, 0, 0.45);
}

.hero__svg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

/* floating badge animations */
@keyframes hero-float-a {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50%       { transform: translateY(-14px) rotate(1deg); }
}
@keyframes hero-float-b {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes hero-float-c {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50%       { transform: translateY(-8px) rotate(-1deg); }
}

.hero-svg__float-a { animation: hero-float-a 5s ease-in-out infinite; }
.hero-svg__float-b { animation: hero-float-b 6.5s ease-in-out infinite; }
.hero-svg__float-c { animation: hero-float-c 4.5s ease-in-out infinite 0.8s; }
.hero-svg__browser { transform-origin: center center; }

.hero__headline {
    margin: 0;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-size: clamp(40px, 4.8vw, 72px);
    color: #0e1b33;
}

.hero__headline em {
    font-style: italic;
    font-weight: 600;
    color: #ff6a00;
    padding-right: 0.08em;
    background: linear-gradient(90deg, #ff5a00 0%, #ff9a2e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__line {
    display: block;
    overflow: hidden;
}

.hero__line-inner {
    display: block;
    will-change: transform;
}

.hero__eyebrow {
    margin: 0 0 12px;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e85d04;
    opacity: 0;
    will-change: transform, opacity;
}

.hero__sub {
    overflow: hidden;
    margin-top: clamp(14px, 2vw, 22px);
    max-width: 100%;
}

.hero__subhead {
    margin: 0;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.55;
    font-weight: 400;
    color: #5a6072;
    will-change: transform;
}

.hero__services {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: clamp(14px, 2vw, 20px) 0 0;
    padding: 0;
}

.hero__service-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0e1b33;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(27, 43, 107, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 14px -8px rgba(20, 33, 90, 0.25);
    opacity: 0;
    will-change: transform, opacity;
}

.hero__bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(24px, 5vw, 64px) 40px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0e1b33;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(14, 27, 51, 0.25);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.hero__cta:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}

.hero__cta--outline {
    background: transparent;
    border: 1.5px solid rgba(14, 27, 51, 0.25);
    border-radius: 999px;
    padding: 8px 22px 8px 18px;
}

.hero__cta-arrow {
    width: 16px;
    height: 10px;
    position: relative;
    display: inline-block;
}

.hero__cta-arrow::before,
.hero__cta-arrow::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.hero__cta-arrow::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.hero__cta-arrow::after {
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    right: 0;
    top: 1px;
    transform: rotate(45deg);
}

.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

/* scroll cue sits on the orange wave, so it's drawn in white */
.hero__scroll-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
}

.hero__scroll-line {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: #ffffff;
    animation: heroScrollLine 1.8s ease-in-out infinite;
}

@keyframes heroScrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(250%);
    }
}

@media (max-width: 767.98px) {
    /* Text + illustration stack, so let the hero grow past one screen
       instead of clipping (and no empty gap above the text). */
    .hero {
        height: auto;
        min-height: 100svh;
    }

    .hero__body {
        flex-direction: column;
        padding-top: 100px;
        gap: 32px;
    }

    .hero__content {
        flex: none;
        max-width: 100%;
    }

    .hero__visual {
        flex: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .hero__body {
        padding: 110px 20px 0;
        gap: 24px;
    }

    .hero__visual {
        max-width: 320px;
    }

    .hero__headline {
        font-size: clamp(32px, 10vw, 56px);
    }

    .hero__sub {
        margin-top: 16px;
    }

    .hero__services {
        margin-top: 16px;
    }

    .hero__bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
        padding: 0 20px 24px;
    }

}

/* ===== Scene — shared mechanics (compiled from scss/_scene.scss) ===== */
.scene {
    position: relative;
    background: #faf8f4;
}

.scene__pin {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .scene__pin {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
}

.scene__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b675c;
    margin-bottom: 16px;
}

.scene__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 22px;
    border-radius: var(--radius-full, 999px);
    background: #0e1b33;
    color: #faf8f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.scene__cta:hover {
    transform: translateY(-2px);
}

.scene__line {
    display: block;
    overflow: hidden;
}

.scene__word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* ===== Scene / About phase (compiled from scss/_scene-about.scss) ===== */
.scene__about {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 96px);
}

.scene__about-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    will-change: transform, opacity;
}

.scene__about-heading {
    margin: 0 0 20px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-size: clamp(32px, 4.6vw, 56px);
}

.scene__about-paragraph {
    margin: 0 0 28px;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.7;
    color: #6b675c;
    max-width: 420px;
    opacity: 0;
    transform: translateY(16px);
    will-change: transform, opacity;
}

.scene__counters {
    display: flex;
    gap: clamp(24px, 4vw, 40px);
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.scene__counter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scene__counter-number {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
}

.scene__counter-label {
    font-size: 13px;
    color: #6b675c;
    max-width: 110px;
}

.scene__about-media {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto auto;
    gap: clamp(12px, 1.6vw, 20px);
}

.scene__media {
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.scene__media--a,
.scene__media--b {
    clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

.scene__media--a {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #f7b42c22 0%, #e9e3f7 100%);
}

.scene__media--b {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #fc575e22 0%, #dff3e6 100%);
}

.scene__media--a img,
.scene__media--b img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scene__media--c {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #f7b42c 0%, #fc575e 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0;
    transform: scale(0.92);
    will-change: transform, opacity;
}

.scene__hint {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    will-change: opacity;
}

.scene__hint-dots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 28px;
    height: 28px;
    padding: 6px;
    border: 1px solid rgba(14, 27, 51, 0.2);
    border-radius: 50%;
}

.scene__hint-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fc575e;
    animation: sceneHintPulse 1.8s ease-in-out infinite;
}

.scene__hint-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.scene__hint-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.scene__hint-dots span:nth-child(4) {
    animation-delay: 0.45s;
}

.scene__hint-label {
    font-size: 13px;
    color: #6b675c;
    max-width: 110px;
    line-height: 1.4;
}

@keyframes sceneHintPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .scene__about {
        position: static;
        padding: 80px 24px;
    }

    .scene__about-inner {
        grid-template-columns: 1fr;
    }

    .scene__about-media {
        grid-template-columns: 1fr 1fr;
        margin-top: 32px;
    }

    .scene__counters {
        flex-wrap: wrap;
        gap: 24px;
    }
}

/* ===== Scene / Services phase — light theme, static 4-column pastel grid (compiled from scss/_scene-services.scss) ===== */
.scene__services {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 32px);
    background: #fff;
    color: #0e1b33;
    will-change: transform;
}

.scene__services-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
    position: relative;
    z-index: 2;
}

/* ---- floating background orbs ---- */
.svc-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    z-index: 1;
}

.svc-orb--1 {
    width: 380px; height: 380px;
    top: -100px; left: -80px;
    background: radial-gradient(circle, rgba(247,180,44,0.38) 0%, transparent 68%);
    filter: blur(4px);
}

.svc-orb--2 {
    width: 260px; height: 260px;
    bottom: -60px; right: 6%;
    background: radial-gradient(circle, rgba(252,87,94,0.34) 0%, transparent 68%);
    filter: blur(3px);
}

.svc-orb--3 {
    width: 120px; height: 120px;
    top: 28%; right: 20%;
    background: radial-gradient(circle, rgba(247,180,44,0.45) 0%, transparent 65%);
    filter: blur(2px);
}

.svc-orb--4 {
    width: 72px; height: 72px;
    bottom: 22%; left: 28%;
    background: radial-gradient(circle, rgba(252,87,94,0.42) 0%, transparent 65%);
    filter: blur(1px);
}

.svc-orb--5 {
    width: 180px; height: 180px;
    top: 8%; right: 4%;
    background: radial-gradient(circle, rgba(209,200,240,0.65) 0%, transparent 65%);
    filter: blur(2px);
}

.scene__services-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.scene__services-heading {
    margin: 0;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-size: clamp(28px, 3.6vw, 42px);
}

.scene__services-paragraph {
    margin: 0;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.7;
    color: #6b675c;
    max-width: 480px;
}

.scene__track-wrap {
    width: 100%;
}

.scene__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 14px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.scene__card {
    position: relative;
    min-height: clamp(280px, 26vw, 380px);
    padding: clamp(16px, 1.6vw, 22px);
    border-radius: var(--radius-md, 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.scene__card-features li {
    font-weight: bold;
}
.scene__card-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}
.scene__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(14, 27, 51, 0.12);
}

.scene__card:nth-child(4n + 1) {
    background: #e9e3f7;
}

.scene__card:nth-child(4n + 2) {
    background: #dff3e6;
}

.scene__card:nth-child(4n + 3) {
    background: #fbe1e6;
}

.scene__card:nth-child(4n + 4) {
    background: #dfeaf9;
}

.scene__card:nth-child(5) {
    background: #e8f7ee;
}


.scene__card-index {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fc575e;
    margin-bottom: 4px;
}

.scene__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    box-shadow: 0 6px 16px rgba(252, 87, 94, 0.28);
    margin-bottom: 4px;
    flex-shrink: 0;
    color: #fff;
}

.scene__card-icon img {
    width: 20px;
    height: 20px;
    display: block;
    /* icon-*.svg files are single-color dark line art (see assets/images/) —
       this recolors them solid white regardless of source color, so the
       icon reads cleanly against the gradient badge without editing each
       SVG file individually. */
    filter: brightness(0) invert(1);
}

.scene__card-title {
    margin: 0;
    font-size: clamp(15px, 1.35vw, 19px);
    font-weight: 800;
    color: #0e1b33;
}

.scene__card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(14, 27, 51, 0.65);
}

.scene__card-features {
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(14, 27, 51, 0.55);
}

@media (max-width: 767.98px) {
    .scene__services {
        position: static;
        transform: none !important;
        /* Top padding must clear the fixed dock (position:fixed, always
           overlapping whatever's scrolled to the viewport top) — 96px is
           the same clearance value used elsewhere for this (see
           STICKY_OFFSET in js/card-stack.js). 64px wasn't enough and let
           the heading render underneath/into the dock. */
        padding: 96px 24px 64px;
        /* The base rule's `overflow: hidden` (added to contain the .svc-orb
           decoration) becomes the sticky cards' nearest scroll container on
           mobile, which stops position:sticky from tracking page scroll at
           all — that's why cards weren't stacking. Restore normal scroll
           and hide the orbs here instead so nothing bleeds horizontally. */
        overflow: visible;
    }

    .svc-orb {
        display: none;
    }

    .scene__track {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .scene__card {
        position: sticky;
        top: 96px;
        margin-bottom: 16px;
        transform-origin: top center;
        will-change: transform, opacity;
    }

    .scene__card:nth-child(1) {
        z-index: 1;
    }

    .scene__card:nth-child(2) {
        z-index: 2;
    }

    .scene__card:nth-child(3) {
        z-index: 3;
    }

    .scene__card:nth-child(4) {
        z-index: 4;
    }

    .scene__card:nth-child(5) {
        z-index: 5;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .scene__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== Print CTA — dark-inverted banner highlighting fast local print
   turnaround (compiled from scss/_print-cta.scss) ===== */
.print-cta {
    background: #0e1b33;
    color: #faf8f4;
}

.print-cta__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 96px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 64px);
}

.print-cta__content {
    flex: 1 1 480px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    transform: translateY(24px);
}

.print-cta__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f7b42c;
}

.print-cta__heading {
    margin: 0;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-size: clamp(28px, 3.6vw, 44px);
}

.print-cta__heading em {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.print-cta__sub {
    margin: 0;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.7;
    color: rgba(250, 248, 244, 0.65);
}

.print-cta__button {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 26px;
    border-radius: var(--radius-full, 999px);
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #faf8f4;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.print-cta__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(252, 87, 94, 0.35);
}

.print-cta__visual {
    flex: 1 1 380px;
    max-width: 420px;
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    /* Same wipe-open reveal as the About section's photo cards
       (.scene__media--a/--b) — starts fully clipped from the top,
       animated open in js/print-cta.js. */
    clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

.print-cta__visual img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767.98px) {
    .print-cta__inner {
        flex-direction: column-reverse;
        text-align: left;
        padding: 56px 24px;
    }

    .print-cta__content {
        flex: 0 0 auto;
        max-width: none;
        align-items: flex-start;
    }

    .print-cta__visual {
        flex: 0 0 auto;
        max-width: 280px;
    }
}

/* ===== hscroll — reusable pinned horizontal-scroll section (compiled from scss/_hscroll.scss) ===== */
.hscroll {
    position: relative;
    background: #faf8f4;
    color: #0e1b33;
    /* Breathing room after the last card before Testimonials starts —
       the pin/scrub only reserves exactly 100vh for itself. */
    padding-bottom: clamp(40px, 6vw, 96px);
}

.hscroll__pin {
    height: 100vh;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(32px, 5vw, 56px);
    overflow: hidden;
}

.hscroll__heading {
    padding: 0 clamp(24px, 6vw, 96px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.hscroll__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b675c;
    margin-bottom: 12px;
}

.hscroll__title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(32px, 5vw, 64px);
}

.hscroll__view-all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 8px 8px 8px 22px;
    border-radius: 999px;
    border: 1px solid rgba(14, 27, 51, 0.15);
    color: #0e1b33;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.hscroll__view-all:hover {
    border-color: transparent;
    background: rgba(14, 27, 51, 0.05);
}

.hscroll__view-all-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0e1b33;
    box-shadow: 0 4px 12px rgba(14, 27, 51, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.hscroll__view-all-arrow svg {
    width: 15px;
    height: 15px;
}

.hscroll__view-all:hover .hscroll__view-all-arrow {
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #fff;
}

.hscroll__track-wrap {
    width: 100%;
    overflow-x: hidden;
    /* Setting only overflow-x still forces overflow-y's computed value to
       "auto" (never truly "visible") per spec, so it clips paint the same
       as "hidden" would — box-shadow included. Padding gives the panels'
       shadow room to render fully *inside* this box's own bounds instead
       of bleeding past its edge, so it never gets cut into a hard flat
       line; the matching negative margin cancels the layout shift. */
    padding: 100px 0;
    margin: -100px 0;
}

.hscroll__track {
    display: flex;
    gap: clamp(20px, 3vw, 32px);
    /* Leading-only padding — see .hscroll__panel-end-spacer for why the
       trailing edge is a real flex item instead of padding-right here. */
    padding: 0 0 0 clamp(24px, 6vw, 96px);
    list-style: none;
    margin: 0;
    will-change: transform;
}

.hscroll__panel {
    position: relative;
    flex: 0 0 auto;
    width: clamp(260px, 30vw, 380px);
    aspect-ratio: 3 / 5;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Desktop trailing spacer — a scroll container's *trailing* padding isn't
   reliably counted in scrollWidth (only the leading side is guaranteed),
   which was undercounting js/hscroll.js's scroll distance and landing the
   last card flush against the edge with no breathing room. A real flex
   item has no such ambiguity. Matches .hscroll__track's own leading
   padding so both ends look symmetric. */
.hscroll__panel-end-spacer {
    flex: 0 0 auto;
    width: clamp(24px, 6vw, 96px);
}

/* Mobile-only trailing spacer (see the mobile media query for its real
   size) — display:none on desktop so it contributes no width AND no flex
   `gap`, leaving js/hscroll.js's scrollWidth-based pin distance untouched. */
.hscroll__spacer {
    display: none;
}

.hscroll__panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.28);
}

/* Separate clipping layer from .hscroll__panel itself — combining
   border-radius + overflow:hidden + box-shadow on one element that also
   has a scaling child is unreliable across browsers (the rounded clip can
   flicker/square off on hover). The shadow lives on the unclipped parent;
   this layer only ever clips the photo. */
.hscroll__panel-media {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

.hscroll__panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hscroll__panel:hover .hscroll__panel-img {
    transform: scale(1.05);
}

.hscroll__panel-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(14, 27, 51, 0.65) 0%, rgba(14, 27, 51, 0) 38%),
        linear-gradient(to bottom, rgba(14, 27, 51, 0.45) 0%, rgba(14, 27, 51, 0) 22%);
    pointer-events: none;
}

.hscroll__panel-pill {
    position: absolute;
    top: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #faf8f4;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.hscroll__panel-pill span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hscroll__panel-pill-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0e1b33;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.hscroll__panel-pill-arrow svg {
    width: 14px;
    height: 14px;
}

a.hscroll__panel-pill:hover .hscroll__panel-pill-arrow {
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #fff;
}

.hscroll__panel-tags {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hscroll__panel-tag-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #faf8f4;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .hscroll__pin {
        height: auto;
        min-height: 0;
        /* Top padding must clear the fixed dock (position:fixed, always
           overlapping whatever's scrolled to the viewport top) — 96px is
           the same clearance value used elsewhere for this (see
           STICKY_OFFSET in js/card-stack.js). 64px wasn't enough and let
           "OUR WORK" render underneath/into the dock. */
        padding: 96px 0 64px;
        overflow: visible;
    }

    .hscroll__track-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        /* Without this, scroll-snap-align:start on the panels settles the
           snap position flush against this container's edge, scrolling
           right past .hscroll__track's own edge padding below and hiding
           it — first and last panels ended up touching the screen edge
           with no visible offset. Matching scroll-padding here tells the
           snap engine to treat that padding as the edge instead. */
        scroll-padding: 0 20px;
    }

    .hscroll__track {
        padding: 0 20px;
        gap: 12px;
    }

    .hscroll__panel {
        width: 70vw;
        scroll-snap-align: start;
    }

    /* Real, explicit trailing space after the last card — not just padding
       on .hscroll__track, which scroll-snap-align:start on the last panel
       can clamp/scroll straight past inconsistently across browsers. This
       is an actual flex child, so it's unambiguously counted as scrollable
       width and the offset is always reachable. display:none on desktop
       (base rule) keeps js/hscroll.js's scrollWidth-based distance untouched. */
    .hscroll__spacer {
        display: block;
        flex: 0 0 auto;
        width: 20px;
    }

    /* The desktop end-spacer is only for the JS transform-driven pin
       scroll — mobile falls back to native scroll-snap, which already has
       its own dedicated .hscroll__spacer above. */
    .hscroll__panel-end-spacer {
        display: none;
    }
}

/* ===== Testimonials — warm cream bg, card grid with decorative object ===== */
.testimonials {
    position: relative;
    background: #ffffff;
    color: #0e1b33;
    padding: clamp(80px, 10vw, 140px) clamp(24px, 6vw, 96px);
    overflow: hidden;
}

.testimonials__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.testimonials__deco svg {
    width: 100%;
    height: 100%;
    display: block;
}

.testimonials__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials__heading {
    margin: 0 0 clamp(40px, 5vw, 64px);
}

.testimonials__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b675c;
    margin-bottom: 12px;
}

.testimonials__title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(32px, 5vw, 64px);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.testimonials__card {
    position: relative;
    padding: clamp(28px, 3vw, 38px);
    padding-top: calc(clamp(28px, 3vw, 38px) + 3px);
    border-radius: var(--radius-md, 16px);
    background: #ffffff;
    border: 1px solid rgba(14, 27, 51, 0.07);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.testimonials__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f7b42c, #fc575e);
    border-radius: 16px 16px 0 0;
}

/* hover-capable pointers only — otherwise a tap leaves the card looking
   "stuck" lifted/shadowed on touch devices until something else is tapped */
@media (hover: hover) and (pointer: fine) {
    .testimonials__card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
    }
}

.testimonials__stars {
    font-size: 14px;
    color: #f7b42c;
    letter-spacing: 3px;
    line-height: 1;
}

.testimonials__quote-mark {
    position: absolute;
    bottom: 14px;
    right: 22px;
    font-family: "Playfair Display", serif;
    font-size: 100px;
    line-height: 1;
    color: rgba(247, 180, 44, 0.09);
    pointer-events: none;
    user-select: none;
}

.testimonials__quote {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(14, 27, 51, 0.72);
    flex: 1;
}

.testimonials__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(14, 27, 51, 0.07);
}

.testimonials__avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.testimonials__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonials__author-name {
    font-size: 14px;
    font-weight: 700;
}

.testimonials__author-role {
    font-size: 13px;
    color: #6b675c;
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .testimonials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Print CTA — two buttons: Print Order (link) + Custom Design (popup) ===== */
.print-cta__actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.print-cta__actions .print-cta__button { margin-top: 0; }
button.print-cta__button { border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.print-cta__button--ghost {
    background: transparent !important;
    border: 1.5px solid rgba(250, 248, 244, 0.35) !important;
    padding: 6px 6px 6px 24px;
}
.print-cta__button--ghost:hover {
    border-color: #f7b42c !important;
    box-shadow: none;
}
.print-cta__button--ghost .btn-arrow { background: rgba(250, 248, 244, 0.12); color: #faf8f4; }

/* Custom Design popup styles: css/design-request.css */
