.shell {
    overflow: visible;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    transform-origin: center top;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topbar.is-scrolled {
    transform: scale(0.97);
    box-shadow: 0 14px 28px rgba(20, 58, 45, 0.16);
}

.brand img {
    animation: page-bob 4.5s ease-in-out infinite;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before,
.hero::after {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    content: "";
    animation: page-float 7s ease-in-out infinite;
}

.hero::before {
    top: 12%;
    right: 7%;
    width: 124px;
    height: 124px;
    background: linear-gradient(135deg, rgba(246, 180, 203, 0.54), rgba(164, 182, 255, 0.48));
    box-shadow: 0 12px 30px rgba(83, 91, 158, 0.1);
}

.hero::after {
    bottom: 8%;
    left: 4%;
    width: 82px;
    height: 82px;
    background: linear-gradient(135deg, rgba(247, 217, 140, 0.48), rgba(122, 199, 165, 0.4));
    animation-delay: -3.5s;
}

.offer-card,
.info-card,
.details-card,
.formula-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover,
.info-card:hover,
.details-card:hover,
.formula-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(38, 24, 45, 0.12);
}

.bubble-rain {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    contain: paint;
}

.page {
    position: relative;
    z-index: 1;
}

.photo-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 36px);
    padding: clamp(18px, 3vw, 28px);
    overflow: hidden;
    border: 1px solid rgba(32, 27, 43, 0.06);
    border-radius: 28px;
    background: linear-gradient(135deg, #f0fff7 0%, #fff 58%, #fff0f5 100%);
    box-shadow: 0 14px 28px rgba(38, 24, 45, 0.08);
}

.photo-feature figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 22px;
    background: #f7fdf9;
    box-shadow: 0 10px 24px rgba(38, 24, 45, 0.14);
}

.photo-feature img {
    display: block;
    width: 100%;
    height: clamp(210px, 24vw, 320px);
    object-fit: cover;
    object-position: center 50%;
}

.photo-feature img.photo-focus-upper { object-position: center 28%; }
.photo-feature img.photo-focus-center { object-position: center 50%; }
.photo-feature img.photo-focus-lower { object-position: center 68%; }

.photo-feature figcaption {
    padding: 10px 14px;
    background: linear-gradient(120deg, #fff5d8, #fff0f6);
    color: #536a60;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.photo-feature-copy {
    min-width: 0;
}

.photo-feature-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ecfff4;
    color: #2d7f63;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.photo-feature-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    letter-spacing: -0.05em;
    line-height: 1.15;
}

.photo-feature-copy p {
    margin: 0;
    color: #536a60;
    line-height: 1.8;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: clamp(12px, 2vw, 18px);
}

.photo-strip figure {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 0;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 20px;
    background: #f7fdf9;
    box-shadow: 0 10px 24px rgba(38, 24, 45, 0.12);
}

.photo-strip figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(38, 24, 45, 0.16);
}

.photo-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 180px;
    max-height: 230px;
    object-fit: cover;
    object-position: center 50%;
    transition: transform 0.35s ease;
}

.photo-strip img.photo-focus-upper { object-position: center 25%; }
.photo-strip img.photo-focus-center { object-position: center 50%; }
.photo-strip img.photo-focus-lower { object-position: center 72%; }

.photo-strip figure:hover img {
    transform: scale(1.025);
}

.photo-strip figcaption {
    min-height: 54px;
    display: grid;
    place-items: center;
    padding: 8px 12px;
    background: linear-gradient(120deg, #fff5d8, #fff0f6);
    color: #536a60;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.photo-strip .portrait-photo {
    object-position: center 38%;
}

.soap-bubble {
    position: absolute;
    top: -70px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 26%, rgba(255,255,255,0.98) 0 4%, transparent 18%),
        radial-gradient(circle at 72% 76%, rgba(244,167,187,0.4), transparent 44%),
        radial-gradient(circle at 35% 78%, rgba(164,182,255,0.4), transparent 48%),
        rgba(255,255,255,0.12);
    box-shadow:
        inset -4px -5px 12px rgba(122,199,165,0.22),
        inset 3px 4px 10px rgba(255,255,255,0.78),
        0 4px 14px rgba(111,143,161,0.12);
    animation: page-bubble-fall var(--bubble-duration) ease-in-out var(--bubble-delay) both;
}

@keyframes page-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes page-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes page-bubble-fall {
    0% { opacity: 0; transform: translate3d(0, -8vh, 0) scale(0.55); }
    10% { opacity: 0.85; transform: translate3d(var(--bubble-drift-1), 8vh, 0) scale(0.8); }
    28% { transform: translate3d(var(--bubble-drift-2), 28vh, 0) scale(1.05); }
    48% { opacity: 0.8; transform: translate3d(var(--bubble-drift-3), 49vh, 0) scale(0.9); }
    68% { transform: translate3d(var(--bubble-drift-4), 71vh, 0) scale(1.08); }
    86% { opacity: 0.72; transform: translate3d(var(--bubble-drift-5), 92vh, 0) scale(0.86); }
    100% { opacity: 0; transform: translate3d(var(--bubble-drift-6), 112vh, 0) scale(0.6); }
}

@media (max-width: 640px) {
    .hero::before { width: 82px; height: 82px; }
    .hero::after { width: 56px; height: 56px; }
}

@media (max-width: 760px) {
    .photo-feature {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .photo-feature img {
        height: clamp(220px, 58vw, 320px);
    }

    .photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .page { padding: 0 8px 20px; }
    .shell { border-radius: 0 0 22px 22px; }
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }
    .brand {
        min-width: 0;
        gap: 10px;
        font-size: clamp(1rem, 5vw, 1.25rem);
    }
    .brand img {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }
    .top-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .top-actions a {
        min-width: 0;
        min-height: 48px;
        padding: 8px;
        font-size: 0.84rem;
        line-height: 1.25;
        text-align: center;
    }
    main { padding: 14px 12px; }
    .hero {
        padding: 26px 18px;
        border-radius: 24px;
    }
    h1 {
        font-size: clamp(2rem, 9.5vw, 2.8rem);
        line-height: 1.05;
        letter-spacing: -0.05em;
        overflow-wrap: anywhere;
    }
    .eyebrow {
        max-width: 100%;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        line-height: 1.4;
    }
    .lead,
    .copy,
    .hero-copy { font-size: 1rem; }
    .content-section { padding-top: 24px; }
    .photo-strip img {
        height: auto;
        max-height: none;
        min-height: 0;
    }
    .offer-card,
    .info-card,
    .details-card,
    .formula-card { padding: 20px 16px; }
    .closing { padding: 22px 16px; }
    footer { padding: 20px 14px 22px; }
}

@media (max-width: 480px) {
    .photo-strip {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .photo-strip figure:hover {
        transform: none;
        box-shadow: 0 10px 24px rgba(38, 24, 45, 0.12);
    }

    .photo-strip figure:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bubble-rain { display: none; }
    .topbar,
    .topbar.is-scrolled { transform: none; transition: none; }
    .brand img,
    .hero::before,
    .hero::after,
    .offer-card,
    .info-card,
    .details-card,
    .formula-card {
        animation: none;
        transition: none;
    }

    .offer-card:hover,
    .info-card:hover,
    .details-card:hover,
    .formula-card:hover {
        transform: none;
    }
}
