/* =========================================================
   Homepage v2 — completely new section layouts
   ========================================================= */

.page-home-v2 .qc-hero,
.page-home-v2 .qc-proof,
.page-home-v2 .qc-collections,
.page-home-v2 .qc-featured,
.page-home-v2 .qc-washes,
.page-home-v2 .qc-atelier,
.page-home-v2 .qc-faq,
.page-home-v2 .qc-promise {
    display: none !important;
}

/* ----- Header over split hero ----- */
.page-home-v2 .site-header {
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 1100;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: none;
}

.page-home-v2 .site-header.is-solid {
    position: sticky;
    top: 0;
    background: rgba(250, 251, 249, .96);
    border-bottom-color: var(--line);
    backdrop-filter: blur(16px);
}

/* =========================================================
   SPLIT-STAGE HERO
   Left copy rail + right image stage + filmstrip thumbs
   ========================================================= */
.tl-hero {
    display: grid;
    grid-template-columns: minmax(320px, 42%) 1fr;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tl-hero-rail {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--topbar-h) + var(--header-h) + 36px) clamp(28px, 4vw, 56px) 48px;
    background:
        linear-gradient(180deg, #0d1613 0%, #14201c 55%, #1a2e26 100%);
    border-right: 1px solid rgba(212, 255, 74, .18);
}

.tl-hero-brand {
    margin: 0 0 22px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: .9;
    letter-spacing: -.045em;
    color: #fff;
}

.tl-hero-brand span {
    color: var(--volt);
}

.tl-hero-title {
    margin: 0 0 14px;
    max-width: 14ch;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.tl-hero-sub {
    margin: 0 0 28px;
    max-width: 34ch;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.65;
}

.tl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tl-hero-actions .btn-primary {
    background: var(--volt);
    color: var(--ink);
}

.tl-hero-actions .btn-primary:hover {
    background: #fff;
    color: var(--ink);
}

.tl-hero-meter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .55);
}

.tl-hero-index {
    color: var(--volt);
    font-size: 1.1rem;
}

.tl-hero-meter-track {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
    max-width: 140px;
}

.tl-hero-meter-track i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--volt);
    animation: tlHeroProgress 6000ms linear;
}

@keyframes tlHeroProgress {
    from { width: 0; }
    to { width: 100%; }
}

.tl-hero-stage {
    position: relative;
    min-height: 100%;
    background: #0a1210;
}

.tl-hero-viewport {
    position: absolute;
    inset: 0 0 96px 0;
    overflow: hidden;
}

.tl-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
    z-index: 1;
}

.tl-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.tl-hero-slide-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 18, 16, .35) 0%, transparent 28%),
        var(--slide-image) center/cover no-repeat;
    transform: scale(1.08);
    transition: transform 6.2s ease-out;
}

.tl-hero-slide.is-active .tl-hero-slide-media {
    transform: scale(1);
}

.tl-hero-film {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 96px;
    background: rgba(8, 14, 12, .92);
    border-top: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
}

.tl-hero-thumb {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: background .25s ease;
}

.tl-hero-thumb:last-child {
    border-right: 0;
}

.tl-hero-thumb:hover,
.tl-hero-thumb.is-active {
    background: rgba(212, 255, 74, .1);
}

.tl-hero-thumb.is-active {
    box-shadow: inset 0 -3px 0 var(--volt);
}

.tl-hero-thumb-img {
    display: block;
    width: 56px;
    height: 64px;
    background-size: cover;
    background-position: center;
    filter: grayscale(.35) brightness(.85);
    transition: filter .25s ease;
}

.tl-hero-thumb.is-active .tl-hero-thumb-img,
.tl-hero-thumb:hover .tl-hero-thumb-img {
    filter: none;
}

.tl-hero-thumb-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tl-hero-thumb-meta em {
    font-style: normal;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 800;
    color: var(--volt);
    letter-spacing: .08em;
}

.tl-hero-thumb-meta strong {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-hero-controls {
    position: absolute;
    top: calc(var(--topbar-h) + var(--header-h) + 18px);
    right: 18px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

.tl-hero-ctrl {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(10, 18, 16, .45);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s ease;
}

.tl-hero-ctrl:hover {
    background: var(--volt);
    border-color: var(--volt);
    color: var(--ink);
}

/* =========================================================
   TICKER CREDENTIALS
   ========================================================= */
.tl-ticker {
    background: var(--volt);
    color: var(--ink);
    overflow: hidden;
    border-bottom: 1px solid rgba(20, 32, 28, .12);
}

.tl-ticker-track {
    display: flex;
    width: max-content;
    animation: tlTicker 38s linear infinite;
}

.tl-ticker:hover .tl-ticker-track {
    animation-play-state: paused;
}

@keyframes tlTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tl-ticker-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 18px 36px;
    white-space: nowrap;
    border-right: 1px solid rgba(20, 32, 28, .15);
}

.tl-ticker-item strong {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.tl-ticker-item span {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .7;
}

/* =========================================================
   DIVISION ZIGZAG ROWS
   ========================================================= */
.tl-lines {
    padding: 88px 0 0;
    background: var(--paper);
}

.tl-lines-head {
    margin-bottom: 40px;
}

.tl-lines-head h2 {
    max-width: 16ch;
    margin-bottom: 0;
}

.tl-lines-stack {
    display: flex;
    flex-direction: column;
}

.tl-line {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 360px;
    color: inherit;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.tl-line.is-flip {
    grid-template-columns: .85fr 1.15fr;
}

.tl-line.is-flip .tl-line-media {
    order: 2;
}

.tl-line.is-flip .tl-line-copy {
    order: 1;
}

.tl-line-media {
    background: var(--line-image) center/cover no-repeat;
    min-height: 280px;
    transform: scale(1.02);
    transition: transform .7s ease;
}

.tl-line:hover .tl-line-media {
    transform: scale(1.07);
}

.tl-line-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 56px);
    background: var(--paper);
}

.tl-line:nth-child(even) .tl-line-copy {
    background: var(--cream);
}

.tl-line-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .14em;
    color: var(--brand);
    margin-bottom: 14px;
}

.tl-line-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -.03em;
}

.tl-line-copy p {
    margin: 0 0 20px;
    max-width: 36ch;
}

.tl-line-copy em {
    font-style: normal;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tl-line:hover .tl-line-copy em {
    color: var(--brand);
}

.tl-line:hover .tl-line-copy em i {
    transform: translate(3px, -3px);
    transition: transform .25s ease;
}

/* =========================================================
   PRODUCT HORIZONTAL RAILS
   ========================================================= */
.tl-rail-section {
    padding: 80px 0 48px;
    background: var(--paper);
    overflow: hidden;
}

.tl-rail-section.is-dark {
    background: var(--navy);
    color: #fff;
}

.tl-rail-section.is-dark h2,
.tl-rail-section.is-dark p {
    color: #fff;
}

.tl-rail-section.is-dark p {
    color: rgba(255, 255, 255, .7);
}

.tl-rail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.tl-rail-head h2 {
    margin-bottom: .25em;
}

.tl-rail-head p {
    margin: 0;
    max-width: 42ch;
}

.tl-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 8px max(24px, calc((100% - 1280px) / 2 + 24px)) 28px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.tl-rail-item {
    flex: 0 0 min(280px, 72vw);
    scroll-snap-align: start;
}

/* dark product-card styles live in storefront-theme.css (.pc-card) */

/* =========================================================
   HYBRID STICKY + SCROLL GALLERY
   ========================================================= */
.tl-hybrid {
    background: var(--cream);
    border-top: 1px solid var(--line);
}

.tl-hybrid-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
    align-items: start;
}

.tl-hybrid-sticky {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    align-self: start;
    padding: 80px 0;
    z-index: 2;
    background: var(--cream);
}

.tl-hybrid-sticky h2 {
    margin-bottom: .4em;
    max-width: 14ch;
}

.tl-hybrid-points {
    list-style: none;
    margin: 28px 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tl-hybrid-points li {
    padding-left: 14px;
    border-left: 3px solid var(--volt);
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.5;
}

.tl-hybrid-points strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .95rem;
    margin-bottom: 2px;
    letter-spacing: -.02em;
}

.tl-hybrid-scroll {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 28px;
    padding: 80px 0;
    min-width: 0;
}

.tl-hybrid-shot {
    margin: 0;
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 340px;
    overflow: hidden;
    border: 1px solid rgba(20, 32, 28, .1);
    background: #111;
}

.tl-hybrid-shot.is-offset {
    margin-left: 0;
    max-width: 520px;
}

.tl-hybrid-shot img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s ease;
}

.tl-hybrid-shot:hover img {
    transform: scale(1.04);
}

.tl-hybrid-shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, transparent, rgba(10, 18, 16, .85));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tl-hybrid-shot figcaption span {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--volt);
}

.tl-hybrid-shot figcaption strong {
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

/* =========================================================
   ATELIER OVERLAP BOARD
   ========================================================= */
.tl-atelier {
    padding: 100px 0;
    background: var(--paper);
}

.tl-atelier-board {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 0;
    align-items: center;
    position: relative;
}

.tl-atelier-photo {
    position: relative;
    z-index: 1;
}

.tl-atelier-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.tl-atelier-panel {
    position: relative;
    z-index: 2;
    margin-left: -12%;
    background: var(--navy);
    color: #fff;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid rgba(212, 255, 74, .22);
}

.tl-atelier-panel h2,
.tl-atelier-panel p {
    color: #fff;
}

.tl-atelier-panel p {
    color: rgba(255, 255, 255, .75);
}

.tl-atelier-steps {
    list-style: none;
    margin: 28px 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tl-atelier-steps li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: 12px;
}

.tl-atelier-steps span {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--volt);
    font-size: .85rem;
}

.tl-atelier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tl-atelier-panel .btn-primary {
    background: var(--volt);
    color: var(--ink);
}

.tl-atelier-panel .btn-outline {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.tl-atelier-panel .btn-outline:hover {
    background: #fff;
    color: var(--ink);
}

/* =========================================================
   FAQ SPLIT
   ========================================================= */
.tl-faq {
    padding: 96px 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
}

.tl-faq-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.tl-faq-intro h2 {
    max-width: 10ch;
}

.tl-faq-intro p {
    max-width: 32ch;
}

.tl-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tl-faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
}

.tl-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.tl-faq-item summary::-webkit-details-marker {
    display: none;
}

.tl-faq-item summary::after {
    content: "+";
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--brand);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tl-faq-item[open] summary::after {
    content: "–";
}

.tl-faq-item[open] {
    border-color: var(--brand);
}

.tl-faq-item[open] summary {
    color: var(--brand);
}

.tl-faq-item p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
}

/* =========================================================
   CLOSING BAND
   ========================================================= */
.tl-close {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-align: left;
}

.tl-close-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.tl-close::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(10, 18, 16, .92) 0%, rgba(15, 107, 76, .55) 100%);
}

.tl-close-inner {
    position: relative;
    z-index: 2;
    padding: 90px 0;
    max-width: 680px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    margin-left: max(24px, calc((100% - 1280px) / 2 + 24px));
}

.tl-close-brand {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--volt);
    letter-spacing: -.03em;
}

.tl-close h2 {
    color: #fff;
    margin-bottom: .4em;
    max-width: 14ch;
}

.tl-close p {
    color: rgba(255, 255, 255, .78);
    max-width: 42ch;
}

.tl-close-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tl-close .btn-primary {
    background: var(--volt);
    color: var(--ink);
}

.tl-close .btn-primary:hover {
    background: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .tl-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tl-hero-rail {
        min-height: auto;
        padding-top: calc(var(--topbar-h) + var(--header-h) + 28px);
        border-right: 0;
        border-bottom: 1px solid rgba(212, 255, 74, .18);
    }

    .tl-hero-stage {
        min-height: 62vh;
    }

    .tl-hero-viewport {
        inset: 0 0 0 0;
    }

    .tl-hero-film {
        position: relative;
        height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .tl-hero-controls {
        top: 16px;
        right: 16px;
    }

    .tl-hybrid-layout,
    .tl-faq-grid,
    .tl-atelier-board {
        grid-template-columns: 1fr;
    }

    .tl-atelier-panel {
        margin-left: 0;
        margin-top: -48px;
        width: min(100%, 520px);
        justify-self: end;
    }

    .tl-hybrid-sticky {
        position: relative;
        top: auto;
        padding-bottom: 24px;
    }

    .tl-hybrid-scroll {
        padding-top: 0;
    }

    .tl-line,
    .tl-line.is-flip {
        grid-template-columns: 1fr;
    }

    .tl-line.is-flip .tl-line-media,
    .tl-line.is-flip .tl-line-copy {
        order: unset;
    }
}

@media (max-width: 720px) {
    .tl-hero-film {
        grid-template-columns: 1fr 1fr;
    }

    .tl-hero-thumb-meta strong {
        font-size: .7rem;
    }

    .tl-hero-thumb-img {
        width: 44px;
        height: 52px;
    }

    .tl-rail-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tl-hybrid-scroll {
        align-items: stretch;
    }

    .tl-hybrid-shot,
    .tl-hybrid-shot.is-offset {
        width: 100%;
        max-width: 100%;
        height: 260px;
        margin-left: 0;
    }

    .tl-close-inner {
        margin-left: 24px;
        margin-right: 24px;
        width: auto;
    }

    .tl-ticker-item {
        padding: 16px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-ticker-track {
        animation: none;
    }

    .tl-hero-slide-media,
    .tl-hero-meter-track i {
        animation: none !important;
        transition: none !important;
    }
}
