/* =========================================================
   Free webinar pages (#2500) - includes/webinar-page.php
   Redesigned after the taste-skill rules: one section per screen on a
   desktop, a conference photograph leading every section, the hero's
   entrance once on load, one moment (the statement lights up word by
   word: assets/vendor/tasteskill/moments) and nothing else moving on
   scroll. Colours, type and buttons are the site's own (icset.css :root).
   ========================================================= */

.wb-hero,
.wb-screen {
    --wb-ease-enter: cubic-bezier(.22, 1, .36, 1);
    --wb-teal: #0B7A72;          /* mint, darkened until it reads as text on white (5.2:1) */
}

/* ---------- one screen per section (desktop) ---------- */
.wb-screen {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(72px, 8vw, 112px) 0;
    background: #fff;
}

@media (min-width: 992px) {
    .wb-screen {
        min-height: 100svh;
    }
}

.wb-screen > .container {
    width: 100%;
}

/* ---------- photographs: square-cornered frames, never captioned ---------- */
.wb-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--soft-gray);
    aspect-ratio: 4 / 3;
}

.wb-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wb-frame--tall {
    aspect-ratio: 4 / 5;
    max-height: min(640px, 72svh);
    width: 100%;
}

.wb-frame--fill {
    aspect-ratio: auto;
    min-height: 320px;
}

/* ---------- 1. hero ---------- */
.wb-hero {
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: clamp(140px, 13vw, 180px) 0 clamp(64px, 6vw, 96px);
    background: var(--navy);
}

.wb-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.wb-hero::before {
    /* navy veil: solid behind the words, opening up toward the pass */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 32, 63, .96) 0%, rgba(0, 32, 63, .88) 42%, rgba(1, 51, 90, .55) 100%),
        linear-gradient(0deg, rgba(0, 32, 63, .7) 0%, rgba(0, 32, 63, 0) 40%);
}

.wb-title {
    max-width: 660px;
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.1;
    letter-spacing: -.015em;
    text-wrap: balance;
}

/* buttons on the text's left edge at every width (the site centres them below 992px) */
.wb-hero .icset-btn-group {
    justify-content: flex-start;
}

.wb-title-no {
    margin-bottom: 12px;
    font-family: var(--font-num);
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--mint);
}

/* the admission pass: notches cut by a mask so the photograph shows through them */
.wb-hero-side {
    filter: drop-shadow(0 30px 50px rgba(0, 8, 20, .45));
}

.wb-pass {
    --tear: 131px;
    position: relative;
    max-width: 380px;
    padding: 26px 28px 28px;
    background: #fff;
    border-radius: 22px;
    color: var(--navy);
    -webkit-mask:
        radial-gradient(circle 13px at 0 var(--tear), #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 13px at 100% var(--tear), #0000 97%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle 13px at 0 var(--tear), #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 13px at 100% var(--tear), #0000 97%, #000) right / 51% 100% no-repeat;
}

.wb-pass::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--mint);
}

.wb-pass-date {
    flex-shrink: 0;
    width: 88px;
    height: 82px;
    padding-top: 12px;
    border-radius: 16px;
    background: var(--gradient);
    color: #fff;
}

.wb-pass-day {
    font-family: var(--font-num);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    color: var(--mint);
}

.wb-pass-month {
    margin-top: 6px;
    font-family: var(--font-num);
    font-size: 13px;
    font-weight: 600;
}

.wb-pass-kicker {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.wb-pass-name {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.wb-pass-tear {
    margin: 22px -28px;
    border-top: 2px dashed var(--border-line);
}

.wb-pass-facts {
    display: grid;
    gap: 14px;
}

.wb-pass-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy);
}

.wb-pass-facts i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(54, 236, 222, .18);
    color: var(--navy);
    font-size: 17px;
}

/* the entrance: once on load, about 1.1 s; the photograph settles, the words rise */
@media (prefers-reduced-motion: no-preference) {
    .wb-hero[data-enter] .wb-hero-bg {
        animation: wb-settle 1.1s var(--wb-ease-enter) both;
    }

    .wb-hero[data-enter] .wb-title {
        animation: wb-rise .7s var(--wb-ease-enter) both;
    }

    .wb-hero[data-enter] .page-crumbs,
    .wb-hero[data-enter] .vg-badge {
        animation: wb-rise .7s var(--wb-ease-enter) both;
    }

    .wb-hero[data-enter] .icset-btn-group {
        animation: wb-fade-up .52s var(--wb-ease-enter) .38s both;
    }

    .wb-hero[data-enter] .wb-hero-side {
        animation: wb-fade-up .52s var(--wb-ease-enter) .44s both;
    }
}

@keyframes wb-settle {
    from { transform: scale(1.05); }
    to   { transform: scale(1); }
}

@keyframes wb-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}

@keyframes wb-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- 2. statement (the moment) ---------- */
.wb-statement {
    /* what assets/vendor/tasteskill/moments/word-highlight/moment.css reads */
    --font-display: var(--font-head);
    --display-weight: 700;
    --display-tracking: -.015em;
    --t-h2: clamp(28px, 3.1vw, 46px);
    --ink: var(--navy);
    --bg: #fff;
    --accent: var(--wb-teal);
}

.wb-kicker {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--wb-teal);
}

.wb-statement .mo-wh__text {
    margin: 0;
    color: var(--navy);
}

.wb-statement .mo-wh__text strong {
    color: var(--wb-teal);
}

/* ---------- 3. about ---------- */
.wb-about {
    background: var(--surface-tint);
}

.wb-body {
    max-width: 62ch;
    font-size: 17px;
    line-height: 1.8;
    color: #2F2F2F;
}

.wb-body--lg {
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.75;
}

.wb-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wb-pair .wb-frame {
    aspect-ratio: 3 / 4;
}

.wb-pair .wb-frame:last-child {
    margin-top: 48px !important;
}

/* ---------- 4. speaker ---------- */
.wb-h3 {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    color: var(--navy);
}

.wb-tba {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px dashed var(--border-line);
    border-radius: 999px;
    background: var(--surface-alt);
    font-weight: 600;
    color: var(--text-muted);
}

.wb-tba::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint-hover);
}

/* ---------- 5. agenda (layout from the reference in the ticket's document) ---------- */
.wb-agenda-sec {
    background: var(--surface-tint);
}

.wb-agenda-head p {
    font-family: var(--font-num);
    font-weight: 600;
    color: var(--text-muted);
}

.wb-slot {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--border-line);
    border-left: 4px solid var(--navy-2);
    border-radius: 14px;
    background: #fff;
}

.wb-slot.is-keynote {
    border-left-color: var(--mint-hover);
    background: #EFFBFA;
}

.wb-slot-time {
    font-family: var(--font-num);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy-2);
}

.wb-slot-time > span {
    display: block;
}

.wb-slot-tag {
    display: inline-block !important;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--mint);
    font-size: 11.5px;
    letter-spacing: .04em;
}

.wb-slot-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.wb-slot-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: #4a4f55;
}

/* ---------- 6. registration ---------- */
.wb-register {
    background: var(--gradient);
}

.wb-card {
    padding: clamp(24px, 3vw, 44px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 34px 70px rgba(0, 8, 20, .35);
}

.wb-register-sub {
    color: var(--text-muted);
}

.wb-thanks {
    color: #2F2F2F;
    line-height: 1.75;
}

.wb-thanks:focus {
    outline: none;
}

.wb-thanks-icon {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 44px;
    line-height: 1;
    color: var(--wb-teal);
}

/* ---------- tablet and phone ---------- */
@media (max-width: 991.98px) {
    .wb-hero {
        min-height: 0;
        padding-top: 180px;   /* the phone header (contact bar + logo bar) is taller */
    }

    .wb-pass {
        max-width: 460px;
    }

    .wb-frame--tall {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .wb-pass {
        --tear: 127px;
        padding: 22px 20px 24px;
    }

    .wb-pass::before {
        left: 20px;
        right: 20px;
    }

    .wb-pass-tear {
        margin: 22px -20px;
    }

    .wb-pair {
        gap: 10px;
    }

    .wb-pair .wb-frame:last-child {
        margin-top: 28px !important;
    }

    .wb-slot {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wb-slot-time > span:first-child {
        display: inline;
    }

    .wb-slot-tag {
        margin: 0 0 0 8px;
    }
}
