/* ==========================================================================
   ACK-arch — Home
   Hero film, brand statement, numbers band, collection stage, tiles, CTA.
   ========================================================================== */

/* ---------- 1. Hero film ---------- */
.hero-canvas-section {
    position: relative;
    background: #b9b9b9;
}

.hero-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, #cfcfcf 0%, #a9a9a9 75%);
}

.hero-scrub-video,
.hero-fallback-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback-canvas {
    display: none;
}

.hero-fallback-canvas.is-active {
    display: block;
}

/* Opening headline (top) and actions (bottom) frame the floating fixture */
.hero-intro {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(18px, 3vh, 28px);
    padding: calc(var(--nav-offset) + clamp(4px, 1.5vh, 20px)) var(--gutter) 0;
    text-align: center;
    color: #1d1d1f;
    pointer-events: none;
    will-change: opacity, transform;
}

.hero-intro__eyebrow {
    font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: #1d1d1f;
    opacity: 0.78;
}

.hero-intro__title {
    margin-top: 6px;
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #1d1d1f;
}

.hero-intro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
    pointer-events: auto;
}

/* The hero sits on a fixed light-grey studio backdrop in both appearances */
.hero-intro__actions .btn-primary {
    background: #1d1d1f;
    color: #f5f5f7;
}

.hero-intro__actions .btn-primary:hover {
    background: #3a3a3c;
}

.hero-intro__actions .btn-link {
    color: #1d1d1f;
    font-weight: 500;
}

/* Scroll-synchronised taglines (opacity/transform driven by canvas-scroll.js) */
.hero-overlays {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-tagline {
    position: absolute;
    left: 50%;
    top: calc(var(--nav-offset) + clamp(30px, 6vh, 64px));
    width: min(1120px, calc(100% - var(--gutter) * 2));
    margin: 0;
    transform: translate(-50%, -50%);
    font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.032em;
    text-align: center;
    text-wrap: balance;
    color: #1d1d1f;
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
}

.hero-tagline--on-dark {
    color: #f5f5f7;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    top: calc(100svh - 52px);
    z-index: 3;
    transform: translateX(-50%);
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.hero-scroll-indicator.hidden {
    opacity: 0;
}

.scroll-arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 1.6px solid rgba(29, 29, 31, 0.6);
    border-bottom: 1.6px solid rgba(29, 29, 31, 0.6);
    transform: rotate(45deg);
    animation: ack-hint 2.2s var(--ease) infinite;
}

@keyframes ack-hint {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.4; }
    50% { transform: translateY(6px) rotate(45deg); opacity: 1; }
}

/* ---------- 2. Brand statement ---------- */
.home-intro {
    padding: var(--section) 0;
    background: var(--bg);
}

.home-intro .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(40px, 7vw, 120px);
}

.home-intro__title {
    font-size: var(--fs-h1);
    line-height: 1.05;
    letter-spacing: -0.032em;
}

.home-intro__lead {
    margin-top: 24px;
    max-width: 34em;
    font-size: var(--fs-lead);
    line-height: 1.45;
    letter-spacing: -0.016em;
    color: var(--ink-2);
}

.home-intro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 36px;
}

.home-intro__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--bg-soft);
    transform: scale(calc(0.92 + 0.08 * var(--scale-progress, 1)));
    transform-origin: 50% 70%;
    will-change: transform;
}

.home-intro__media picture,
.home-intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-intro__media figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 72px 28px 24px;
    font-size: var(--fs-small);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- 3. Numbers band (always dark) ---------- */
.home-stats {
    padding: var(--section) 0;
    background: #000;
    color: #f5f5f7;
}

.home-stats .eyebrow {
    color: #ff453a;
}

.home-stats .section-title {
    color: #f5f5f7;
    max-width: 14ch;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
    margin: clamp(48px, 7vw, 88px) 0 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-stat dd {
    margin: 0;
}

.home-stat__value {
    order: -1;
    font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffffff 30%, #9a9aa0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-stat__label {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #f5f5f7;
}

.home-stat__desc {
    font-size: var(--fs-small);
    line-height: 1.45;
    color: #a1a1a6;
    max-width: 24ch;
}

/* ---------- 4. Collection stage ---------- */
/* The film has a white studio backdrop in both appearances, so the stage
   keeps light-scheme tokens locally. */
.collections-scroll-section {
    --ink: #1d1d1f;
    --ink-2: #6e6e73;
    --ink-3: #86868b;
    --link: #c4111b;
    --accent: #e50914;
    --fill: rgba(0, 0, 0, 0.05);
    --fill-strong: rgba(0, 0, 0, 0.09);
    position: relative;
    background: #ededed;
    color: var(--ink);
}

.collections-scroll-wrapper {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.collections-video-stage {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, #fafafa 0%, #e6e6e6 80%);
}

.collections-scrub-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop: the fixture sits in its own band between the title and the product
   card, scaled down and faded at the edges into the studio background. */
@media (min-width: 768px) {
    .collections-video-stage {
        background: none;
    }

    .collections-scrub-video {
        position: absolute;
        left: 50%;
        top: calc(var(--nav-offset) + clamp(120px, 15vh, 160px));
        bottom: clamp(190px, 24vh, 240px);
        width: auto;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        /* The fixture fills only the middle of the frame; enlarge it to the band */
        transform: translateX(-50%) scale(1.42);
        transform-origin: 50% 52%;
        height: calc(100% - var(--nav-offset) - clamp(120px, 15vh, 160px) - clamp(190px, 24vh, 240px));
        object-fit: contain;
        -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 98%);
        mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 98%);
    }

    .collections-scroll-section {
        background: radial-gradient(ellipse at 50% 40%, #f4f4f4 0%, #e8e8e8 80%);
    }
}

.collections-ui-stage {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--nav-offset) + clamp(12px, 3vh, 36px));
    padding-bottom: clamp(20px, 4vh, 40px);
    max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

.collections-pinned-header {
    text-align: center;
}

.collections-pinned-header .eyebrow {
    margin-bottom: 8px;
}

.collections-pinned-title {
    font-size: var(--fs-h2);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--ink);
}

/* Vertical A · C · K pager on the right edge, clear of the fixture */
.collections-steps-tracker {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
}

.collections-step-indicator {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-3);
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.collections-step-indicator.is-active {
    background: #1d1d1f;
    color: #f5f5f7;
    transform: scale(1.06);
}

.ack-arch-badge {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transform: translate(-50%, -6px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
}

.ack-arch-badge.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.collections-products-stage {
    position: relative;
    flex: 1;
}

.collection-interactive-card {
    position: absolute;
    bottom: 0;
    /* Üç kart yan yana açık kalabildiği için genişlik üçe bölünür */
    width: min(480px, calc((100% - 32px) / 3));
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s var(--ease), transform 0.7s var(--ease-out);
}

.collection-interactive-card.pos-left {
    left: 0;
}

.collection-interactive-card.pos-center {
    left: 50%;
    transform: translate(-50%, 18px);
}

.collection-interactive-card.pos-right {
    right: 0;
}

.collection-interactive-card.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.collection-interactive-card.pos-center.is-active {
    transform: translateX(-50%);
}

.card-glass-panel {
    display: grid;
    grid-template-columns: clamp(96px, 9vw, 150px) minmax(0, 1fr);
    gap: 20px;
    padding: 14px 22px 14px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 24px 60px -24px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.card-image-box {
    border-radius: 14px;
    overflow: hidden;
    background: #ddd;
    aspect-ratio: 1 / 1;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 4px 0;
}

.card-category {
    font-size: var(--fs-caption);
    color: var(--ink-3);
    line-height: 1.4;
}

.card-index {
    display: block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2px;
}

.card-title {
    margin-top: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.card-specs {
    margin-top: 8px;
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--ink-2);
}

.card-specs span + span::before {
    content: "·";
    margin: 0 6px;
    color: var(--ink-3);
}

.card-link {
    margin-top: 12px;
    font-size: 0.9375rem;
}

/* Static fallback: no JavaScript or reduced motion shows all three cards */
html:not(.js) .collections-scroll-wrapper {
    height: auto;
    overflow: visible;
}

html:not(.js) .collections-video-stage {
    position: relative;
    height: 56vh;
}

html:not(.js) .collections-ui-stage {
    height: auto;
    padding-bottom: var(--section);
}

html:not(.js) .collections-products-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

html:not(.js) .collection-interactive-card {
    position: static;
    width: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .collections-scroll-wrapper {
        height: auto;
        overflow: visible;
    }

    .collections-video-stage {
        position: relative;
        height: 56vh;
    }

    .collections-ui-stage {
        height: auto;
        padding-bottom: var(--section);
    }

    .collections-products-stage {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
        margin-top: 32px;
    }

    .collection-interactive-card,
    .collection-interactive-card.pos-center {
        position: static;
        width: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

/* ---------- 5. Tiles ---------- */
.home-tiles {
    padding: var(--section) 0 clamp(24px, 3vw, 40px);
    background: var(--bg);
}

.home-tiles__head {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: clamp(460px, 44vw, 660px);
    padding: clamp(36px, 4.4vw, 60px) 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    background: var(--bg-soft);
    color: var(--ink);
    transform: translateZ(0);
}

.tile--wide {
    grid-column: 1 / -1;
    min-height: clamp(480px, 46vw, 720px);
}

.tile__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.tile__media picture,
.tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out);
}

.tile:hover .tile__media img {
    transform: scale(1.035);
}

.tile--dark {
    color: #f5f5f7;
    background: #111;
}

.tile--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0) 62%);
}

.tile__eyebrow {
    font-size: clamp(1rem, 0.92rem + 0.35vw, 1.1875rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    opacity: 0.9;
}

.tile__title {
    margin-top: 8px;
    max-width: 18ch;
    font-size: var(--fs-h3);
    line-height: 1.1;
    letter-spacing: -0.026em;
    color: inherit;
}

.tile--wide .tile__title {
    font-size: var(--fs-h2);
    max-width: 20ch;
}

.tile__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 1.0625rem;
    color: inherit;
}

.tile:hover .tile__link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tile:focus-visible {
    outline-offset: 4px;
    border-radius: var(--radius-lg);
}

/* Product shot on a studio grey: the tile continues the photo's own vertical
   gradient (#e5e6e8 → #a8a9ae) so the square image has no visible edges. */
.tile--light {
    color: #1d1d1f;
    background: linear-gradient(180deg, #e5e6e8 0%, #e5e6e8 38%, #c5c6c8 69%, #a8a9ae 100%);
}

.tile--light .tile__link {
    color: #c4111b;
}

.tile--product .tile__media {
    inset: auto 0 0;
    height: 62%;
    display: flex;
    pointer-events: none;
    justify-content: center;
}

.tile--product .tile__media picture {
    width: auto;
    height: 100%;
}

.tile--product .tile__media img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

/* ---------- 6. Closing call to action ---------- */
.home-cta {
    padding: clamp(96px, 12vw, 176px) 0;
    background: var(--bg);
    text-align: center;
}

.home-cta__title {
    max-width: 16ch;
    margin-inline: auto;
    font-size: var(--fs-h1);
    line-height: 1.05;
    letter-spacing: -0.032em;
}

.home-cta__lead {
    max-width: 36em;
    margin: 20px auto 0;
    font-size: var(--fs-lead);
    line-height: 1.45;
    color: var(--ink-2);
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

/* ---------- 7. Responsive ---------- */
@media (max-width: 1023.98px) {
    .home-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-interactive-card {
        width: min(500px, 100%);
    }

    /* Dar ekranda kartlar yan yana sığmaz: yalnızca güncel kart görünür */
    .collection-interactive-card.is-active:not(.is-current) {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 767.98px) {
    .hero-intro__title {
        font-size: clamp(2.75rem, 12vw, 3.5rem);
    }

    .home-intro .container {
        grid-template-columns: 1fr;
    }

    .home-intro__media {
        aspect-ratio: 4 / 4.4;
    }

    .home-stat__value {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .collections-pinned-title {
        font-size: clamp(1.75rem, 7.4vw, 2.25rem);
    }

    /* Portrait screens: lower the film so the title sits on clean backdrop */
    .collections-video-stage {
        top: 24%;
        background: none;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
    }

    .collections-scroll-section {
        background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
    }

    .collections-steps-tracker {
        top: 38%;
    }

    .collections-step-indicator {
        width: 30px;
        height: 30px;
    }

    .collection-interactive-card,
    .collection-interactive-card.pos-center,
    .collection-interactive-card.pos-right {
        left: 0;
        right: 0;
        width: auto;
        transform: translateY(18px);
    }

    .collection-interactive-card.is-active,
    .collection-interactive-card.pos-center.is-active {
        transform: none;
    }

    .card-glass-panel {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
        padding: 10px 16px 10px 10px;
        border-radius: 20px;
    }

    .card-title {
        font-size: 1.0625rem;
    }

    .card-specs {
        font-size: 0.8125rem;
    }

    .card-specs span:nth-child(n+3) {
        display: none;
    }

    .tile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tile,
    .tile--wide {
        min-height: 500px;
    }

    .tile--wide .tile__title {
        font-size: var(--fs-h3);
    }
}
