/* =====================================================
   ===== STRYV4 HOMEPAGE CARD · POSTCARDS INTRO       =====
   ===== v13 · Tag: STR                               =====
   ===== file: card-postcards-intro_STR.css           =====
   ===================================================== */

/*
 * v13 changes (over v12):
 *   - Added .pci-tools cluster: two small circular
 *     buttons in the bottom-left, sitting just above
 *     the CTA. Info button (i) and music button (♪)
 *   - Added .pci-info-pop: small popup that appears
 *     near the info button, listing credits
 *   - Music button toggles .is-playing for visual state
 */




/* =====================================================
   ===== SECTION 0: CUSTOM FONT FACE                  =====
   ===================================================== */

@font-face {
    font-family: 'CakeCouture';
    src: url('../../fonts/CakeCouture-BLaAw.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}




/* =====================================================
   ===== SECTION 1: CARD CANVAS                       =====
   ===================================================== */

.hp-postcard-canvas.card-postcards-intro {
    background: #4FA8D6;
    position: relative;
}

.card-postcards-intro .hp-postcard-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
}




/* =====================================================
   ===== SECTION 2: BALLOON STAGE                     =====
   ===================================================== */

.card-postcards-intro .pci-sky {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.card-postcards-intro .pci-balloon {
    position: absolute;
    bottom: -170px;
    left: var(--x);
    animation: pci-rise var(--d) linear infinite;
    animation-delay: var(--dl);
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
}

.card-postcards-intro .pci-balloon__sway {
    animation: pci-sway 4s ease-in-out infinite;
    animation-delay: var(--dl);
}

.card-postcards-intro .pci-balloon__body {
    width: 54px;
    height: 68px;
    border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
    position: relative;
    background: var(--c);
    box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.13);
}

.card-postcards-intro .pci-balloon__body::before {
    content: '';
    position: absolute;
    top: 13%;
    left: 22%;
    width: 16%;
    height: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.card-postcards-intro .pci-balloon__body::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--c);
}

.card-postcards-intro .pci-balloon__string {
    display: block;
    margin: 8px auto 0;
}

.card-postcards-intro .pci-frag {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: var(--c);
    animation: pci-burst 0.7s ease-out forwards;
    z-index: 4;
    pointer-events: none;
}

.card-postcards-intro .pci-balloon.pci-pop {
    animation: pci-popout 0.2s ease-out forwards !important;
}




/* =====================================================
   ===== SECTION 3: CONTENT LAYER                     =====
   ===================================================== */

.card-postcards-intro .pci-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.card-postcards-intro .pci-logo {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 6;
}

.card-postcards-intro .pci-logo img {
    width: 256px;
    height: 256px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}




/* =====================================================
   ===== SECTION 4: TITLE                             =====
   ===================================================== */

.card-postcards-intro .pci-title {
    position: absolute;
    top: 20px;
    left: 290px;
    right: 240px;
    z-index: 5;
}

.card-postcards-intro .pci-title__svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.card-postcards-intro .pci-title__text,
.card-postcards-intro .pci-title__measure {
    font-family: 'CakeCouture', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-weight: 900;
    font-size: 315px;
}

.card-postcards-intro .pci-title__text {
    fill: #ffffff;
    stroke: #F5688A;
    stroke-width: 12;
    paint-order: stroke;
    stroke-linejoin: round;
}




/* =====================================================
   ===== SECTION 5: ROTATING HEADLINE (SUBTITLE)      =====
   ===================================================== */

.card-postcards-intro .pci-headline {
    position: absolute;
    top: 60%;
    left: 290px;
    right: 240px;
    transform: translateY(-50%);
    min-height: 120px;
    z-index: 5;
}

.card-postcards-intro .pci-headline__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #ffffff;
    font-family: 'CakeCouture', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 44px;
    line-height: 1.25;
    font-weight: 400;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.55s ease;
}

.card-postcards-intro .pci-headline__line.is-active {
    opacity: 1;
}

.card-postcards-intro .pci-headline__line strong {
    font-weight: 400;
    color: #FFE0EB;
}




/* =====================================================
   ===== SECTION 6: CALL TO ACTION                    =====
   ===================================================== */

.card-postcards-intro .pci-cta {
    position: absolute;
    bottom: 25px;
    left: 290px;
    background: #F5688A;
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 9px;
    text-decoration: none;
    font-family: 'CakeCouture', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(245, 104, 138, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 6;
    pointer-events: auto;
}

.card-postcards-intro .pci-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 104, 138, 0.55);
}

.card-postcards-intro .pci-cta__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.card-postcards-intro .pci-cta:hover .pci-cta__arrow {
    transform: translateX(3px);
}




/* =====================================================
   ===== SECTION 7: CAROUSEL                          =====
   ===================================================== */

.card-postcards-intro .pci-carousel {
    position: absolute;
    right: 24px;
    top: 50%;
    height: 252px;
    width: 200px;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 3;
    pointer-events: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}

.card-postcards-intro .pci-carousel__track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: pci-scroll 22s linear infinite;
}

.card-postcards-intro .pci-mini {
    flex-shrink: 0;
    height: 44px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--mini-from), var(--mini-to));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    font-family: 'CakeCouture', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
}

.card-postcards-intro .pci-mini__name {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}




/* =====================================================
   ===== SECTION 8: TOOLS CLUSTER                     =====
   ===================================================== */

/* CodeNumber 8.1 — Tools row in the bottom-left corner.
   Sits above the CTA at bottom: 85 (CTA height ~52 + ~33
   gap). Two small circular buttons. */

.card-postcards-intro .pci-tools {
    position: absolute;
    bottom: 85px;
    left: 30px;
    display: flex;
    gap: 8px;
    z-index: 7;
    pointer-events: auto;
}

/* CodeNumber 8.2 — Individual tool button. Translucent
   white pill with a subtle hover lift. */

.card-postcards-intro .pci-tool {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: 'CakeCouture', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.card-postcards-intro .pci-tool:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.card-postcards-intro .pci-tool:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* CodeNumber 8.3 — Music button's active state when the
   audio is currently playing. */

.card-postcards-intro .pci-tool--music.is-playing {
    background: #F5688A;
    border-color: #F5688A;
    animation: pci-pulse 1.2s ease-in-out infinite;
}

@keyframes pci-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 104, 138, 0.7); }
    50%      { box-shadow: 0 0 0 8px rgba(245, 104, 138, 0); }
}




/* =====================================================
   ===== SECTION 9: INFO POPUP                        =====
   ===================================================== */

/* CodeNumber 9.1 — Info popup. Hidden by default via the
   `hidden` attribute on the HTML element. JS toggles by
   removing the attribute and adding .is-open. Position
   anchored above the tools cluster so it appears as a
   natural extension of the info button. */

.card-postcards-intro .pci-info-pop {
    position: absolute;
    bottom: 130px;
    left: 30px;
    width: 320px;
    max-width: calc(100% - 60px);
    background: rgba(40, 70, 100, 0.96);
    color: #ffffff;
    border-radius: 12px;
    padding: 18px 22px 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    z-index: 10;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-postcards-intro .pci-info-pop.is-open {
    opacity: 1;
    transform: translateY(0);
}

.card-postcards-intro .pci-info-pop[hidden] {
    display: none;
}

/* CodeNumber 9.2 — Popup contents. */

.card-postcards-intro .pci-info-pop__title {
    font-family: 'CakeCouture', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 20px;
    margin: 0 0 8px;
    padding-right: 24px;
}

.card-postcards-intro .pci-info-pop p {
    margin: 0 0 8px;
}

.card-postcards-intro .pci-info-pop ul {
    margin: 0 0 8px;
    padding-left: 18px;
}

.card-postcards-intro .pci-info-pop li {
    margin: 0 0 3px;
}

.card-postcards-intro .pci-info-pop__note {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.78;
    font-style: italic;
}

/* CodeNumber 9.3 — Close button, top-right of popup. */

.card-postcards-intro .pci-info-pop__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    transition: opacity 0.15s ease;
}

.card-postcards-intro .pci-info-pop__close:hover {
    opacity: 1;
}




/* =====================================================
   ===== SECTION 10: ANIMATIONS                       =====
   ===================================================== */

@keyframes pci-rise {
    0%   { transform: translateY(0);     opacity: 0; }
    7%   {                                opacity: 1; }
    80%  {                                opacity: 1; }
    100% { transform: translateY(-620px); opacity: 0; }
}

@keyframes pci-sway {
    0%, 100% { transform: translateX(-7px); }
    50%      { transform: translateX(7px); }
}

@keyframes pci-popout {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pci-burst {
    0%   { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
    100% { transform: translate(calc(var(--dx) - 50%), calc(var(--dy) - 50%)) rotate(var(--r)); opacity: 0; }
}

@keyframes pci-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(calc(-50% - 4px)); }
}




/* =====================================================
   ===== SECTION 11: REDUCED MOTION                   =====
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .card-postcards-intro .pci-balloon,
    .card-postcards-intro .pci-balloon__sway,
    .card-postcards-intro .pci-carousel__track,
    .card-postcards-intro .pci-tool--music.is-playing {
        animation: none;
    }
}