/**
 * Nataly Celebrities Section - Styles
 * Matches the reference luxury editorial design mockup exactly.
 */

/* ==========================================================================
   CELEBRITY CLIENTELE SECTION
   ========================================================================== */

.celebrities {
    padding: var(--pad-section, clamp(120px, 15vw, 240px)) 0;
    background: var(--bg-dark, #111111);
    color: var(--text-light, #FBFBF9);
    overflow: hidden;
    position: relative;
}

.celebrities.light {
    background: var(--bg-light, #FBFBF9);
    color: var(--text-dark, #1C1C1A);
}

/* Header */
.celeb-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 70px;
    max-width: 640px;
}

.celeb-header .eyebrow {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent, #9A8C78);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.celeb-header .eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent, #9A8C78);
}

.celeb-header h2 {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: var(--celeb-title-font-size, clamp(38px, 5.5vw, 72px));
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
}

.celeb-header h2 .italic {
    font-style: italic;
    color: var(--accent, #9A8C78);
}

.celeb-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--celeb-intro-font-size, 14.5px);
    line-height: 1.8;
    opacity: 0.6;
    font-weight: 300;
    color: inherit;
}

.celebrities.light .celeb-header p {
    color: var(--text-dark, #1C1C1A);
    opacity: 0.7;
}

/* Viewport */
.celeb-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    margin: 0 calc(-1 * var(--margin-x, clamp(24px, 6vw, 100px)));
    padding: 0 var(--margin-x, clamp(24px, 6vw, 100px)) 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
    cursor: grab;
    user-select: none;
}

.celeb-viewport:active {
    cursor: grabbing;
}

.celeb-viewport::-webkit-scrollbar {
    display: none;
}

/* Track */
.celeb-track {
    display: flex;
    gap: 28px;
    width: max-content;
    will-change: transform;
}

/* Card */
.celeb-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: clamp(230px, 26vw, 300px);
    display: flex;
    flex-direction: column;
}

.celeb-card .reveal-img-wrap {
    aspect-ratio: 3/4;
    margin-bottom: 24px;
    background: #1c1c1c;
    position: relative;
    overflow: hidden;
}

.celeb-card .reveal-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-dark, #111111);
    transform-origin: top;
    transition: transform 1.5s var(--ease-slow, cubic-bezier(0.77, 0, 0.175, 1));
    z-index: 2;
}

.celebrities.light .celeb-card .reveal-img-wrap::after {
    background: var(--bg-light, #FBFBF9);
}

.is-visible.reveal-img-wrap::after,
.is-visible .reveal-img-wrap::after {
    transform: scaleY(0);
}

.celeb-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15);
    transform: scale(1.1);
    transition: transform 1.2s var(--ease-slow, cubic-bezier(0.77, 0, 0.175, 1)), filter 0.6s ease;
}

.is-visible .celeb-card img,
.is-visible.celeb-card img {
    transform: scale(1);
}

.celeb-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.celeb-name {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 400;
    margin-bottom: 4px;
    color: inherit;
    line-height: 1.2;
}

.celeb-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent, #9A8C78);
    margin-bottom: 14px;
    font-weight: 500;
}

.celeb-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.75;
    opacity: 0.6;
    font-weight: 300;
    color: inherit;
}

/* Controls */
.celeb-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
}

.celeb-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.4;
    font-weight: 400;
    color: inherit;
}

.celeb-arrows {
    display: flex;
    gap: 12px;
}

.celeb-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(251, 251, 249, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    color: var(--text-light, #FBFBF9);
    padding: 0;
    transition: border-color 0.3s ease, background 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.celebrities.light .celeb-arrow {
    border-color: rgba(28, 28, 26, 0.25);
    color: var(--text-dark, #1C1C1A);
}

.celeb-arrow:hover {
    border-color: var(--accent, #9A8C78);
    background: rgba(154, 140, 120, 0.15);
}

.celeb-arrow:focus-visible {
    outline: 2px solid var(--accent, #9A8C78);
    outline-offset: 2px;
}

.celeb-arrow svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke-width: 1.4;
}

/* Responsive */
@media (max-width: 899px) {
    .celeb-header {
        margin-bottom: 50px;
    }
    .celeb-header h2 {
        font-size: var(--celeb-title-font-size-tablet, var(--celeb-title-font-size, clamp(34px, 5vw, 56px)));
    }
    .celeb-card {
        width: clamp(210px, 32vw, 260px);
    }
}

@media (max-width: 767px) {
    .celeb-header {
        margin-bottom: 40px;
    }
    .celeb-header h2 {
        font-size: var(--celeb-title-font-size-mobile, var(--celeb-title-font-size-tablet, var(--celeb-title-font-size, clamp(30px, 6vw, 44px))));
    }
    .celeb-viewport {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    }
    .celeb-card {
        width: clamp(200px, 60vw, 240px);
    }
    .celeb-controls {
        margin-top: 36px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .celeb-card img {
        transform: none !important;
        transition: none !important;
    }
    .celeb-card:hover img {
        transform: none !important;
        filter: grayscale(0.15) !important;
    }
    .celeb-card .reveal-img-wrap::after {
        transform: scaleY(0) !important;
        transition: none !important;
    }
}