/* GOCCIA — scroll pin vitrin (2026 editorial) */

.gh-scroll-story {
    position: relative;
    height: min(440vh, 3800px);
    margin: 0;
    background: #0c0b0a;
    isolation: isolate;
}

.gh-scroll-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    color: #f7f2ea;
}

.gh-scene-bg {
    position: absolute;
    inset: 0;
    clip-path: polygon(42% 0, 100% 0, 100% 100%, 28% 100%);
}

.gh-story-canvas,
.gh-story-webgl {
    width: 100%;
    height: 100%;
    display: block;
}

.gh-story-webgl {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.gh-story-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, #0c0b0a 0%, #0c0b0a 38%, transparent 58%),
        radial-gradient(ellipse 80% 60% at 78% 45%, rgba(176, 141, 87, 0.14), transparent 55%);
}

.gh-story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
}

.gh-story-brand {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(247, 242, 234, 0.88);
}

.gh-step-counter {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    color: #b08d57;
}

.gh-rail {
    position: absolute;
    top: 3.5rem;
    left: clamp(1.25rem, 4vw, 2.5rem);
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gh-rail-line {
    position: absolute;
    left: 0.55rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.gh-rail-line span {
    display: block;
    width: 100%;
    height: 0%;
    border-radius: inherit;
    background: linear-gradient(180deg, #b08d57, rgba(176, 141, 87, 0.35));
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gh-rail-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(168, 152, 136, 0.75);
    text-align: left;
    transition: color 0.35s ease, transform 0.35s ease;
}

.gh-rail-dot:hover {
    color: rgba(232, 220, 200, 0.95);
}

.gh-rail-num {
    font-size: 0.65rem;
    font-variant-numeric: tabular-nums;
    width: 1.6rem;
    opacity: 0.7;
}

.gh-rail-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.gh-rail-dot.is-on {
    color: #f7f2ea;
    transform: translateX(4px);
}

.gh-rail-dot.is-on .gh-rail-num {
    color: #b08d57;
    opacity: 1;
}

.gh-story-layout {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
    height: 100%;
    padding: 5.25rem clamp(1.25rem, 4vw, 2.5rem) 4.25rem calc(clamp(1.25rem, 4vw, 2.5rem) + 5.5rem);
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.gh-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.35rem 1.35rem 1.15rem;
}

.gh-step-stage {
    position: relative;
    min-height: 9.5rem;
}

.gh-step {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.985);
    filter: blur(4px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s ease,
        visibility 0.65s;
    pointer-events: none;
}

.gh-step.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    pointer-events: auto;
}

.gh-step-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b08d57;
}

.gh-step-title {
    margin: 0 0 0.55rem;
    font-family: var(--font-heading, "Georgia", serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #f7f2ea;
}

.gh-step-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(196, 184, 168, 0.95);
    max-width: 34ch;
}

.gh-configurator {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gh-config-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.gh-config-label {
    flex: 0 0 4.5rem;
    margin: 0;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(138, 129, 120, 0.95);
}

.gh-config-label strong {
    color: #f7f2ea;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.85rem;
}

.gh-swatch-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gh-swatch {
    width: 2.1rem;
    height: 2.1rem;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-swatch-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.gh-swatch.is-on {
    border-color: #f7f2ea;
    box-shadow:
        0 0 0 2px rgba(176, 141, 87, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.35);
    transform: scale(1.08);
}

.gh-swatch:active {
    transform: scale(0.96);
}

.gh-width-field {
    display: block;
}

.gh-width-field input[type="range"] {
    width: 100%;
    margin-top: 0.35rem;
    accent-color: #b08d57;
    cursor: pointer;
}

.gh-panel-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.25rem;
}

.gh-build-line {
    margin: 0;
    flex: 1 1 12rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(247, 242, 234, 0.9);
}

.gh-cta {
    flex: 0 0 auto;
    white-space: nowrap;
}

.gh-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(68vh, 560px);
    padding: 1rem 0;
}

.gh-ambient {
    position: absolute;
    width: min(90%, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(var(--gh-tint-r, 212), var(--gh-tint-g, 196), var(--gh-tint-b, 168), 0.35),
        transparent 68%
    );
    filter: blur(40px);
    opacity: calc(0.45 + var(--gh-smooth-progress, 0) * 0.35);
    transform: translate(
        calc(var(--gh-pointer-x, 0) * 12px),
        calc(var(--gh-pointer-y, 0) * 10px + var(--gh-parallax-y, 0) * 0.5px)
    );
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.gh-showcase-frame {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    aspect-ratio: 4 / 5;
    perspective: 1280px;
    perspective-origin: 50% 42%;
    transform: translate3d(
            calc(var(--gh-pointer-x, 0) * 8px),
            calc(var(--gh-parallax-y, 0) * 1px + var(--gh-pointer-y, 0) * 6px),
            0
        )
        rotateX(calc(var(--gh-tilt, 0) * 1deg + var(--gh-pointer-y, 0) * -4deg))
        rotateY(calc(var(--gh-pointer-x, 0) * 5deg))
        scale(var(--gh-scale, 1));
    transform-style: preserve-3d;
    perspective: 900px;
    will-change: transform;
    --gh-tint-r: 212;
    --gh-tint-g: 196;
    --gh-tint-b: 168;
}

.gh-orbit {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-90deg);
}

.gh-orbit-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1.2;
}

.gh-orbit-fill {
    fill: none;
    stroke: rgba(176, 141, 87, 0.75);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.12s linear;
}

.gh-preview-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 22px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
    text-decoration: none;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.gh-preview-card.is-on {
    opacity: 1;
    visibility: visible;
    transform: rotateX(var(--gh-carousel-x, -6deg)) rotateY(var(--gh-carousel-y, 0deg)) translateZ(28px)
        scale(1);
    transform-style: preserve-3d;
    pointer-events: auto;
}

.gh-showcase-gl {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 22px;
    pointer-events: none;
}

.gh-scroll-story.is-webgl .gh-preview-card.is-on img {
    opacity: 0.06;
}

.gh-scroll-story.is-webgl .gh-preview-card.is-on .gh-preview-tint {
    opacity: 0.08;
}

.gh-preview-card.is-on img {
    animation: gh-ken 22s ease-in-out infinite alternate;
}

@keyframes gh-ken {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); }
}

.gh-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
}

.gh-preview-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgb(var(--gh-tint-r), var(--gh-tint-g), var(--gh-tint-b));
    mix-blend-mode: multiply;
    opacity: 0.26;
    transition: opacity 0.35s ease, background 0.35s ease;
}

.gh-preview-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.gh-preview-tag {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b08d57;
    margin-bottom: 0.25rem;
}

.gh-preview-cap {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.gh-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    margin: 0;
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(138, 129, 120, 0.9);
    animation: gh-hint-float 2.8s ease-in-out infinite;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gh-scroll-story.is-scrolled .gh-scroll-hint {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
    animation: none;
}

@keyframes gh-hint-float {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
    50% { transform: translateX(-50%) translateY(-6px); opacity: 1; }
}

.gh-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 13;
}

.gh-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #967546, #d4b078);
    transition: width 0.1s linear;
}

@supports (animation-timeline: scroll()) {
    .gh-scroll-story {
        view-timeline-name: --gh-vitrin;
        view-timeline-axis: block;
    }

    .gh-scroll-pin {
        animation: gh-pin-fade linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    @keyframes gh-pin-fade {
        from { opacity: 0.92; }
        to { opacity: 1; }
    }
}

@media (max-width: 1024px) {
    .gh-scroll-story {
        height: min(360vh, 3000px);
    }

    .gh-story-layout {
        grid-template-columns: 1fr;
        padding: 4.75rem 1.15rem 4rem 4.5rem;
        align-content: center;
    }

    .gh-scene-bg {
        clip-path: polygon(0 42%, 100% 28%, 100% 100%, 0 100%);
        top: auto;
        height: 55%;
        bottom: 0;
    }

    .gh-showcase {
        min-height: 42vh;
        order: -1;
    }

    .gh-showcase-frame {
        width: min(72vw, 300px);
    }

    .gh-rail {
        flex-direction: row;
        flex-wrap: wrap;
        left: 1.15rem;
        right: 1.15rem;
        top: 3.35rem;
        max-width: none;
    }

    .gh-rail-line {
        display: none;
    }

    .gh-rail-dot.is-on {
        transform: none;
    }

    .gh-rail-label {
        display: none;
    }

    .gh-ambient {
        width: 70vw;
    }
}

.gh-hotspots {
    position: absolute;
    inset: 12% 8% 18% 8%;
    z-index: 2;
    pointer-events: none;
}

.gh-hotspot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(247, 242, 234, 0.95);
    box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.55);
    animation: gh-hotspot-ping 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.gh-hotspot::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: #b08d57;
}

.gh-hotspot--a { top: 22%; left: 28%; animation-delay: 0s; }
.gh-hotspot--b { top: 48%; left: 62%; animation-delay: 0.7s; }
.gh-hotspot--c { top: 68%; left: 38%; animation-delay: 1.4s; }

@keyframes gh-hotspot-ping {
    0% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.55); transform: scale(1); }
    55% { box-shadow: 0 0 0 14px rgba(176, 141, 87, 0); transform: scale(1.08); }
    100% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0); transform: scale(1); }
}

.gh-shop-tag {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.55rem 0.55rem 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(12, 11, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.gh-shop-tag.is-tag-pop {
    animation: gh-tag-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes gh-tag-pop {
    0% { transform: translateX(-50%) scale(0.96); }
    45% { transform: translateX(-50%) scale(1.03); }
    100% { transform: translateX(-50%) scale(1); }
}

.gh-shop-tag-ring {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #b08d57;
    box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.6);
    animation: gh-hotspot-ping 2s ease infinite;
}

.gh-shop-tag-body {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    padding-left: 0.75rem;
}

.gh-shop-tag-kicker {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 242, 234, 0.65);
}

.gh-shop-tag-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f7f2ea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
}

.gh-shop-tag-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #b08d57;
}

.gh-shop-tag-price.is-empty {
    display: none;
}

.gh-shop-tag-cta {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #f7f2ea;
    color: #1a1714;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gh-shop-tag-cta:hover {
    background: #fff;
    transform: translateY(-1px);
    color: #1a1714;
}

.gh-scroll-hint-icon {
    display: inline-block;
    margin-right: 0.35rem;
    animation: gh-hint-bob 1.6s ease-in-out infinite;
}

@keyframes gh-hint-bob {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gh-scroll-story {
        height: auto;
    }

    .gh-scroll-pin {
        position: relative;
        height: auto;
        min-height: 0;
        padding-bottom: 2rem;
    }

    .gh-scene-bg,
    .gh-scroll-hint,
    .gh-progress,
    .gh-hotspots {
        display: none;
    }

    .gh-shop-tag.is-tag-pop {
        animation: none;
    }

    .gh-step {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-bottom: 1rem;
    }

    .gh-step:not(.is-on) {
        display: none;
    }

    .gh-preview-card {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-bottom: 1rem;
    }

    .gh-preview-card:not(.is-on) {
        display: none;
    }

    .gh-preview-card.is-on img {
        animation: none;
    }

    .gh-story-webgl,
    .gh-showcase-gl {
        display: none !important;
    }

    .gh-scroll-story.is-webgl .gh-preview-card.is-on img {
        opacity: 1;
    }

}
