/**
 * Section 9 — Women's + Kids' Two-Panel
 * 50/50 lookbook tiles desktop, stacked + alternating mobile alignment
 */
.tnk-s9 {
    --tnk-red: #E31E24;
    --tnk-black: #131313;
    --tnk-ink: #1a1a1a;
    --tnk-muted: #737373;
    --tnk-line: #ededed;
    --tnk-white: #ffffff;
    --tnk-radius: 6px;
    --tnk-ease: cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: var(--tnk-black);
    padding: 96px 24px 96px;
    -webkit-font-smoothing: antialiased;
}
.tnk-s9 *, .tnk-s9 *::before, .tnk-s9 *::after { box-sizing: border-box; }
.tnk-s9__inner { max-width: 1440px; margin: 0 auto; }

.tnk-s9__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tnk-s9__tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--tnk-radius);
    background-color: var(--tnk-ink);
    text-decoration: none !important;
    color: #fff;
    isolation: isolate;
    cursor: pointer;
    aspect-ratio: 5/6;
}
.tnk-s9__tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--tnk-ease);
    z-index: 0;
}
.tnk-s9__tile:hover::before { transform: scale(1.04); }
.tnk-s9__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.40) 35%,
        rgba(0,0,0,0.10) 65%,
        rgba(0,0,0,0.0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Per-tile gradient placeholders */
.tnk-s9__tile--women { --bg-desktop: linear-gradient(135deg, #c2185b 0%, #4a0e2e 100%); }
.tnk-s9__tile--kids  { --bg-desktop: linear-gradient(135deg, #006fc9 0%, #003a6b 100%); }

.tnk-s9__specs {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.9);
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 3px;
    pointer-events: none;
}
.tnk-s9__specs-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--tnk-red); }
.tnk-s9__specs-sep { opacity: 0.5; font-weight: 400; margin: 0 2px; }

.tnk-s9__tile-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 40px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.tnk-s9__tile-text { min-width: 0; max-width: 360px; }

.tnk-s9__tile-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
}
.tnk-s9__tile-kicker-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tnk-red);
}
.tnk-s9__tile-title {
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.0;
    margin: 0 0 12px;
    color: #fff;
}
.tnk-s9__tile-sub {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.tnk-s9__tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    background: #fff;
    color: var(--tnk-black);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.25s var(--tnk-ease), color 0.25s var(--tnk-ease), gap 0.25s var(--tnk-ease), transform 0.25s var(--tnk-ease);
}
.tnk-s9__tile-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s var(--tnk-ease);
}
.tnk-s9__tile:hover .tnk-s9__tile-cta {
    background: var(--tnk-black);
    color: #fff;
    gap: 14px;
    transform: translateY(-2px);
}
.tnk-s9__tile:hover .tnk-s9__tile-cta svg { transform: translateX(3px); }
.tnk-s9__tile:focus-visible {
    outline: 3px solid var(--tnk-red);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .tnk-s9 { padding: 72px 20px 80px; }
    .tnk-s9__grid { gap: 12px; }
    .tnk-s9__tile-body { padding: 28px; }
    .tnk-s9__tile-title { font-size: clamp(26px, 3.2vw, 36px); }
    .tnk-s9__tile-sub { font-size: 13px; }
}

@media (max-width: 640px) {
    .tnk-s9 { padding: 56px 0 64px; }
    .tnk-s9__inner { max-width: 100%; }
    .tnk-s9__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tnk-s9__tile {
        aspect-ratio: auto;
        height: 520px;
        border-radius: 0;
    }
    .tnk-s9__tile::before {
        background-image: var(--bg-mobile, var(--bg-desktop));
    }
    .tnk-s9__tile::after {
        background: linear-gradient(to top,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.50) 35%,
            rgba(0,0,0,0.12) 65%,
            rgba(0,0,0,0.0) 100%);
    }
    .tnk-s9__tile-body {
        padding: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
    .tnk-s9__tile-text { max-width: 100%; }
    .tnk-s9__tile-title { font-size: 32px; margin-bottom: 10px; }
    .tnk-s9__tile-sub { font-size: 13px; }
    .tnk-s9__tile-cta { padding: 13px 22px; font-size: 11px; }
    .tnk-s9__specs { top: 14px; left: 14px; font-size: 9px; padding: 4px 8px; }

    /* Mirror modifier — flips text alignment to right on mobile */
    .tnk-s9__tile--mirror-mobile .tnk-s9__tile-body {
        align-items: flex-end;
    }
    .tnk-s9__tile--mirror-mobile .tnk-s9__tile-text {
        text-align: right;
    }
    .tnk-s9__tile--mirror-mobile .tnk-s9__tile-kicker {
        flex-direction: row-reverse;
    }
    .tnk-s9__tile--mirror-mobile .tnk-s9__specs {
        left: auto;
        right: 14px;
    }

    .tnk-s9__tile:hover::before { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tnk-s9__tile::before, .tnk-s9__tile-cta, .tnk-s9__tile-cta svg { transition: none; }
    .tnk-s9__tile:hover::before { transform: none; }
}
