/* Hero: event intro with the countdown ticket, and the speaker carousel. */

.hero {
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    background: var(--c-sand);
}

.hero-main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(32px, 5vw, 88px);
    width: 100%;
    max-width: calc(1180px + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(0px, .6vw, 8px) var(--gutter) clamp(56px, 6vw, 110px);
}

/* ---------- intro ---------- */

.hero-kicker span + span::before { content: "•"; margin: 0 .9em; }

.hero-title {
    margin: .3em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3.875rem, 7.2vw, 7.75rem);
    line-height: .98;
    letter-spacing: 0;
    color: var(--c-accent);
}

.hero-title__line { display: block; }

.hero-title__the {
    display: block;
    margin: 0 0 .08em .06em;
    font-weight: 400;
    font-size: .46em;
    line-height: 1;
    letter-spacing: 0;
}

.hero-rule {
    width: 56px;
    height: 1px;
    margin: clamp(20px, 2vw, 30px) 0 clamp(16px, 1.6vw, 22px);
    border: 0;
    background: var(--c-accent);
}

.hero-lead {
    max-width: 30em;
    margin: 0;
    font-size: clamp(1.0625rem, 1.35vw, 1.3125rem);
    letter-spacing: .01em;
    text-wrap: pretty;
}

.hero-meta {
    display: grid;
    gap: 8px;
    margin: clamp(16px, 1.8vw, 26px) 0 0;
    padding: 0;
    list-style: none;
}

.hero-meta li { display: flex; align-items: center; gap: 14px; font-size: clamp(1rem, 1.2vw, 1.1875rem); }
.hero-meta svg { flex: none; width: 26px; height: 26px; color: var(--c-accent); }

/* ---------- countdown ticket ---------- */

.hero-ticket-wrap {
    position: relative;
    isolation: isolate;
    max-width: 660px;
    margin-top: clamp(24px, 2.6vw, 40px);
}


.hero-ticket-shadow {
    filter: drop-shadow(0 22px 34px rgba(80, 30, 25, .12)) drop-shadow(0 2px 4px rgba(80, 30, 25, .06));
    will-change: transform; /* painted once, not on every scroll: see .ticket-card */
}

.hero-ticket {
    --cut-x: 57%;
    --cut-y: 56%;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
    border-radius: 6px;
    background: var(--c-white);
}

.hero-ticket__count { padding: clamp(22px, 2.2vw, 32px) clamp(18px, 2.4vw, 36px) clamp(20px, 2vw, 28px); }
.hero-ticket__count .eyebrow { font-size: 0.8125rem; letter-spacing: .18em; white-space: nowrap; color: var(--c-ink-2); }

.hero-ticket__perf { width: 0; margin: 22px 0; border-left: 1.5px dashed var(--c-line); }

.hero-ticket__buy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(22px, 2.2vw, 32px) clamp(16px, 2vw, 30px);
    text-align: center;
}

.hero-ticket__buy .btn { width: 100%; max-width: 220px; }
.hero-ticket__note { font-size: 0.7812rem; letter-spacing: .2em; line-height: 1.5; }

.hero-price {
    margin: 4px 0 0;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.hero-price strong { font-weight: 600; font-size: 1.25em; color: var(--c-accent); }

.countdown { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.countdown__cell { padding: 0 6px; text-align: center; }
.countdown__cell + .countdown__cell { border-left: 1px solid var(--c-line); }

.countdown__num {
    display: block;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.875rem, 4.4vw, 4.125rem);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.countdown__unit {
    display: block;
    margin-top: 8px;
    font-size: 0.7812rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c-ink-2);
}

/* ---------- speaker carousel ---------- */

.speakers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    width: 100%;
    min-width: 0;
    max-width: 540px;
}

.speakers__label { align-self: stretch; margin-bottom: clamp(14px, 1.6vw, 24px); }

.speakers__stage {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 clamp(40px, 4.2vw, 64px);
}

.speakers__frame { position: relative; z-index: 1; width: 100%; max-width: 380px; margin: 0 14px 14px 0; }

.speakers__photos {
    position: relative;
    aspect-ratio: 44 / 52;
    overflow: hidden;
    border-radius: 22px;
    background: #D8C6B4;
    transform: translateZ(0);
}

.speakers__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    opacity: 0;
    transition: opacity .6s ease;
}

.speakers__photo.is-active { opacity: 1; }

.speakers__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(48px, 3.8vw, 58px);
    height: clamp(48px, 3.8vw, 58px);
    border: 0;
    border-radius: 50%;
    background: var(--c-card);
    color: var(--c-ink);
    cursor: pointer;
    box-shadow: 0 8px 22px -10px rgba(60, 20, 20, .35);
    transform: translateY(-50%);
    transition: background .2s, color .2s;
}

.speakers__arrow:hover { background: var(--c-accent); color: #fff; }
.speakers__arrow svg { width: 20px; height: 20px; }
.speakers__arrow--prev { left: 0; }
.speakers__arrow--next { right: 0; }

.speakers__captions {
    display: grid;
    width: 100%;
    max-width: 520px;
    margin-top: clamp(16px, 1.8vw, 26px);
    text-align: center;
}

.speakers__caption {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility 0s linear .6s;
}

.speakers__caption.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }

.speakers__name {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.875rem, 2.7vw, 2.625rem);
    line-height: 1.05;
    color: var(--c-accent);
}

.speakers__role { margin-top: .6em; font-size: 0.8125rem; }

.speakers__topic {
    max-width: 26em;
    margin: .7em auto 0;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.45;
    text-wrap: balance;
}

.speakers__dots { display: flex; gap: 4px; margin-top: clamp(14px, 1.6vw, 22px); }

.speakers__dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.speakers__dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(110, 20, 35, .22);
    transition: background .3s, transform .3s;
}

.speakers__dot[aria-current="true"]::before { background: var(--c-accent); transform: scale(1.25); }

@media (pointer: coarse) {
    .speakers__dots { gap: 0; }
    .speakers__dot { width: 44px; height: 44px; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
    .hero-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
        padding-top: clamp(14px, 2.4vw, 22px);
        padding-bottom: clamp(84px, 18vw, 150px);
    }

    .hero-ticket-wrap { max-width: none; }
    .speakers { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 560px) {
    .hero-kicker { font-size: 0.8125rem; letter-spacing: .16em; }
    .hero-kicker span + span::before { margin: 0 .6em; }
    .hero-title { font-size: clamp(3.625rem, 18.5vw, 5.25rem); }

    /* the ticket turns: perforation runs across, notches move to the sides */
    .hero-ticket { grid-template-columns: minmax(0, 1fr); -webkit-mask: var(--notch-mask-y); mask: var(--notch-mask-y); }
    .hero-ticket__perf { width: auto; height: 0; margin: 0 22px; border-left: 0; border-top: 1.5px dashed var(--c-line); }
    .hero-ticket__count { padding: 22px 16px 20px; }
    .hero-ticket__count .eyebrow { letter-spacing: .14em; }
    .hero-ticket__buy { padding: 20px 20px 24px; }
    .hero-ticket__buy .btn { max-width: none; }
    .countdown__num { font-size: 3.125rem; }

    .speakers__stage { padding: 0 26px; }
    .speakers__frame { margin: 0 9px 9px 0; }
    .speakers__photos { --frame-x: 9px; --frame-y: 9px; --frame-shadow: 0 18px 30px -20px rgba(80, 30, 25, .45); }
    .speakers__arrow { width: 46px; height: 46px; }
}
