/* ===================================================================
   Courtney Lewis - Insight videos (watch/insight.html)
   Load AFTER responsive.css. Behaviour lives in js/insight.js.

   1. .insight-intro    page title + short introduction
   2. .insight-seasons  season jump menu (one row; scrolls sideways on phones)
   3. .insight-season   one season: label + grid of episode cards
   4. .insight-card     click-to-play video + episode title + programme
====================================================================== */

.insight-page {
    --ins-bg: #0d0c0b;
    --ins-card-bg: #151311;
    --ins-accent: #d1e3e3; /* same tint as press / home cite */
    --ins-text: #ece9e5;
    --ins-muted: rgba(236, 233, 229, .55);
    --ins-rule: rgba(255, 255, 255, .12);
    --ins-rule-faint: rgba(255, 255, 255, .055); /* programme dividers: just visible */

    background: var(--ins-bg);
    color: var(--ins-text);
}


/* -------------------------------------------------------------------
   1. Intro
---------------------------------------------------------------------- */
.insight-intro {
    padding: 170px 0 56px;  /* clears the fixed logo bar */
    text-align: center;
}
.insight-intro__eyebrow {
    display: block;
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ins-accent);
}
.insight-intro__title {
    margin: 0 0 24px;
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}
.insight-intro__text {
    max-width: 680px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ins-muted);
}


/* -------------------------------------------------------------------
   2. Season jump menu
   Sticks to the top of the window while you scroll through the videos.
   Always one row: on narrow screens it scrolls sideways instead of
   wrapping / stacking.
---------------------------------------------------------------------- */
.insight-seasons {
    position: sticky;
    top: 0;
    z-index: 20; /* under the logo bar (99) */
    background: rgba(13, 12, 11, .94);
    border-top: 1px solid var(--ins-rule);
    border-bottom: 1px solid var(--ins-rule);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.insight-seasons__list {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    padding: 0 15px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.insight-seasons__list::-webkit-scrollbar { display: none; }
.insight-seasons__list li { flex: none; margin: 0; }
.insight-seasons__list a {
    position: relative;
    display: block;
    padding: 20px 22px 19px;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .2em;
    white-space: nowrap;
    color: var(--ins-muted);
    transition: color .3s ease;
}
.insight-seasons__list a::after {            /* thin underline for the current season */
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -1px;
    height: 1px;
    background: var(--ins-accent);
    transform: scaleX(0);
    transition: transform .4s ease;
}
.insight-seasons__list a:hover,
.insight-seasons__list a:focus-visible { color: #fff; }
.insight-seasons__list a.is-current { color: var(--ins-accent); }
.insight-seasons__list a.is-current::after { transform: scaleX(1); }


/* -------------------------------------------------------------------
   3. Season block
---------------------------------------------------------------------- */
.insight-season {
    padding: 80px 0 30px;
    scroll-margin-top: 58px;                 /* height of the sticky jump menu */
}
.insight-season:last-of-type { padding-bottom: 110px; }

.insight-season__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 40px;
    font-family: futura-pt, sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ins-accent);
}
.insight-season__head::after {
    content: "";
    flex: 1;
    order: 1;
    height: 1px;
    background: var(--ins-rule);
}
.insight-season__count {
    order: 2;
    letter-spacing: .2em;
    color: var(--ins-muted);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 32px;
}


/* -------------------------------------------------------------------
   4. Episode card
---------------------------------------------------------------------- */
.insight-card { margin: 0; }

/* video: thumbnail + play button until clicked, then the YouTube player */
.insight-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ins-card-bg);
}
.insight-video__play {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.insight-video__play img {
    width: 100%;
    height: 100%;
    object-fit: cover;                       /* trims the black bars of the YouTube thumbnail */
    opacity: .82;
    transform: scale(1.001);
    transition: opacity .5s ease, transform 1.2s cubic-bezier(.2, .6, .2, 1);
}
.insight-video__play::after {                /* soft vignette */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}
.insight-video__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    transition: background-color .35s ease, border-color .35s ease, transform .35s ease;
}
.insight-video__icon::before {               /* play triangle */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -5px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
}
.insight-video__play:hover img,
.insight-video__play:focus-visible img { opacity: 1; transform: scale(1.04); }
.insight-video__play:hover .insight-video__icon,
.insight-video__play:focus-visible .insight-video__icon {
    background: rgba(209, 227, 227, .22);
    border-color: var(--ins-accent);
    transform: scale(1.06);
}
.insight-video__play:focus-visible { outline: 1px solid var(--ins-accent); outline-offset: 3px; }
.insight-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* text */
.insight-card__body { padding: 24px 0 0; }
.insight-card__ep {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ins-accent);
}
.insight-card__title {
    margin: 0 0 18px;
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 13px;                         /* quiet, same scale as the "Episode N" label */
    line-height: 1.6;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
}

/* programme: piece on the left, timecode on the right */
.insight-program {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ins-rule-faint);
}
.insight-program li {
    margin: 0;
    border-bottom: 1px solid var(--ins-rule-faint);
}
.insight-program a,
.insight-program span.insight-program__row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ins-text);
}
.insight-program__piece { flex: 1; }
.insight-program__piece em { font-style: italic; }
.insight-program__note {
    display: block;
    font-size: 13px;
    color: var(--ins-muted);
}
.insight-program__time {
    flex: none;
    font-size: 13px;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
    color: var(--ins-muted);
    transition: color .3s ease;
}
.insight-program__time::before {             /* small play mark before the time */
    content: "";
    display: inline-block;
    margin-right: 8px;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent currentColor;
    opacity: .7;
    vertical-align: 1px;
}
.insight-program a:hover,
.insight-program a:focus-visible { color: #fff; }
.insight-program a:hover .insight-program__time,
.insight-program a:focus-visible .insight-program__time { color: var(--ins-accent); }


/* -------------------------------------------------------------------
   5. Watch page (watch/index.html)
   Two larger performance videos + a link panel to the Insight series.
---------------------------------------------------------------------- */
.insight-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.insight-grid--two .insight-card__title { font-size: 26px; line-height: 1.3; letter-spacing: .01em; text-transform: none; margin-bottom: 8px; }   /* description sits close under the title */
.insight-card__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ins-muted);
}

.insight-cta-wrap { padding-top: 40px; }
.insight-cta {
    display: block;
    padding: 64px 8%;
    border: 1px solid var(--ins-rule);
    text-align: center;
    color: var(--ins-text);
    transition: border-color .4s ease, background-color .4s ease;
}
.insight-cta:hover,
.insight-cta:focus-visible {
    border-color: rgba(209, 227, 227, .45);
    background: var(--ins-card-bg);
    color: var(--ins-text);
}
.insight-cta__eyebrow {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ins-accent);
}
.insight-cta__title {
    display: block;
    margin-bottom: 14px;
    font-family: futura-pt, sans-serif;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: .04em;
    color: #fff;
}
.insight-cta__text {
    display: block;
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ins-muted);
}
.insight-cta__link {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}
.insight-cta__link::after {                  /* thin underline, same as the press links */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: .5;
    transition: opacity .3s ease;
}
.insight-cta__link::before {                 /* arrow after the label */
    content: "\2192";
    position: absolute;
    right: -1.6em;
    top: -1px;
    transition: transform .3s ease;
}
.insight-cta:hover .insight-cta__link { color: var(--ins-accent); }
.insight-cta:hover .insight-cta__link::after { opacity: 1; }
.insight-cta:hover .insight-cta__link::before { transform: translateX(4px); }


/* -------------------------------------------------------------------
   6. Watch page banner (featured Insight episode)
   Same photo + parallax as before; the text is restyled to match
   the cards: letter-spaced label, light title, thin round play button.
---------------------------------------------------------------------- */
.watch-feature {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 700px;
    padding: 130px 0 90px;                   /* top clears the fixed logo bar */
    color: #fff;
}
.watch-feature > .container { width: 100%; }
.watch-feature__shade {                      /* darker toward the bottom so the text reads */
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .6) 75%),
        linear-gradient(to bottom, rgba(13, 12, 11, .35) 0%, rgba(13, 12, 11, .55) 60%, #0d0c0b 100%);
}
.watch-feature__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.watch-feature__play {
    position: relative;
    display: inline-block;
    width: 88px;
    height: 88px;
    margin-bottom: 34px;
}
.watch-feature__play .insight-video__icon {
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    background: rgba(0, 0, 0, .2);
}
.watch-feature__play .insight-video__icon::before {
    margin: -12px 0 0 -7px;
    border-width: 12px 0 12px 20px;
}
.watch-feature__play .insight-video__icon::after {   /* slow pulse ring */
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(209, 227, 227, .6);
    border-radius: 50%;
    animation: watch-pulse 2.8s ease-out infinite;
}
@keyframes watch-pulse {
    0%   { transform: scale(1);    opacity: .8; }
    100% { transform: scale(1.55); opacity: 0; }
}
.watch-feature__play:hover .insight-video__icon,
.watch-feature__play:focus-visible .insight-video__icon {
    background: rgba(209, 227, 227, .22);
    border-color: #d1e3e3;
    transform: scale(1.06);
}

.watch-feature__eyebrow {
    display: block;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #d1e3e3;
}
.watch-feature__dot { margin: 0 .5em; opacity: .7; }
.watch-feature__title {
    margin: 0 0 20px;
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}
.watch-feature__text {
    max-width: 540px;
    margin: 0 auto 36px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(236, 233, 229, .78);
}
.watch-feature__link {
    display: inline-block;
    padding: 15px 34px;
    border: 1px solid rgba(255, 255, 255, .55);
    font-size: 13px;
    line-height: 1;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #fff;
    transition: border-color .35s ease, background-color .35s ease, color .35s ease;
}
.watch-feature__link:hover,
.watch-feature__link:focus-visible {
    border-color: #d1e3e3;
    background: rgba(209, 227, 227, .12);
    color: #d1e3e3;
}


/* -------------------------------------------------------------------
   Tablet
---------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 28px; }
}
@media (max-width: 991px) {
    .insight-intro { padding: 150px 0 48px; }
    .insight-intro__title { font-size: 46px; }
    .insight-season { padding-top: 64px; }
}


/* -------------------------------------------------------------------
   Mobile
---------------------------------------------------------------------- */
@media (max-width: 767px) {
    .insight-intro { padding: 120px 0 40px; }
    .insight-intro__eyebrow { font-size: 12px; }
    .insight-intro__title { font-size: 26px; margin-bottom: 16px; }   /* smaller than the logo on phones */
    .insight-intro__text { font-size: 16px; }

    .insight-seasons__list {
        justify-content: flex-start;         /* scrolls sideways, never stacks */
        gap: 0;
        padding: 0 6px;
        /* fade the edge so it is clear there is more to scroll */
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
    }
    .insight-seasons__list.is-end {          /* set by insight.js when scrolled to the end */
        -webkit-mask-image: none;
        mask-image: none;
    }
    .insight-seasons__list a { padding: 18px 14px 17px; font-size: 13px; letter-spacing: .14em; }
    .insight-seasons__list a::after { left: 14px; right: 14px; }
    .insight-season { padding-top: 52px; scroll-margin-top: 52px; }
    .insight-season:last-of-type { padding-bottom: 70px; }
    .insight-season__head { margin-bottom: 28px; font-size: 12px; gap: 14px; }

    .insight-grid { grid-template-columns: 1fr; gap: 48px; }
    .insight-video__icon { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
    .insight-card__body { padding-top: 20px; }
    .insight-card__title { font-size: 12px; }

    .insight-season__head { white-space: nowrap; }
    .insight-season__count--wide { display: none; }   /* longer labels: hidden on phones */
    .insight-grid--two { grid-template-columns: 1fr; gap: 48px; }
    .insight-grid--two .insight-card__title { font-size: 20px; }
    .insight-cta-wrap { padding-top: 20px; }
    .insight-cta { padding: 44px 22px; }
    .insight-cta__title { font-size: 22px; }
    .insight-cta__text { font-size: 16px; }

    /* photo at the top, scaled so the whole conductor (left half of the
       photo) fits the screen; the text sits underneath as it fades to dark */
    .watch-feature {
        min-height: 0;
        padding: calc(52vw + 150px) 0 64px;
        background-color: #0d0c0b !important;
        background-size: 190vw auto !important;
        background-position: 6% 60px !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
    .watch-feature__shade {
        background: linear-gradient(to bottom, rgba(13, 12, 11, .15) 0, rgba(13, 12, 11, .25) calc(52vw + 20px), rgba(13, 12, 11, .92) calc(52vw + 170px), #0d0c0b calc(109vw + 60px));
    }
    .watch-feature__play,
    .watch-feature__play .insight-video__icon { width: 68px; height: 68px; }
    .watch-feature__play { margin-bottom: 26px; }
    .watch-feature__play .insight-video__icon { margin: -34px 0 0 -34px; }
    .watch-feature__play .insight-video__icon::before { margin: -9px 0 0 -5px; border-width: 9px 0 9px 15px; }
    .watch-feature__eyebrow { font-size: 11px; letter-spacing: .22em; }
    .watch-feature__dot { margin: 0 .3em; }
    .watch-feature__title { font-size: 26px; margin-bottom: 12px; }
    .watch-feature__text { font-size: 16px; margin-bottom: 30px; }
}


/* ===================================================================
   7. Insight page (insight/index.html), 2026 update
   - featured "Up Next" video on top (section 6 above)
   - intro statement
   - toolbar: "Repertoire A-Z" button + season jump menu
   - repertoire panel: every piece, A-Z by composer's last name
====================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* intro sits at the very top (clears the logo bar), the Up Next video follows */
.insight-top { padding-bottom: 0; }
/* compact banner: just clears the logo bar, tighter spacing between lines */
.insight-top .insight-intro { padding: 118px 0 34px; }
.insight-top .insight-intro__eyebrow { margin-bottom: 10px; }
.insight-top .insight-intro__title { margin-bottom: 12px; font-size: 50px; }
.insight-top .insight-intro__lead { margin-bottom: 10px; font-size: 24px; }
.insight-top .insight-intro__text { max-width: 760px; font-size: 16px; line-height: 1.6; }
@media (max-width: 991px) {
    .insight-top .insight-intro { padding: 108px 0 30px; }
    .insight-top .insight-intro__title { font-size: 42px; }
}
@media (max-width: 767px) {
    .insight-top .insight-intro { padding: 86px 0 24px; }
    .insight-top .insight-intro__eyebrow { margin-bottom: 8px; }
    .insight-top .insight-intro__title { margin-bottom: 8px; font-size: 26px; }
    .insight-top .insight-intro__lead { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
    .insight-top .insight-intro__text { font-size: 14.5px; line-height: 1.55; }
}
.watch-feature--after-intro { padding-top: 90px; }
.watch-feature--after-intro .watch-feature__shade {     /* photo fades in from the intro's dark */
    background:
        linear-gradient(to bottom, rgba(13, 12, 11, .7) 0, rgba(13, 12, 11, 0) 50px),
        radial-gradient(ellipse at center, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .45) 80%),
        linear-gradient(to bottom, rgba(13, 12, 11, 0) 0%, rgba(13, 12, 11, .4) 60%, #0d0c0b 100%);
}
/* the photo stays still (no parallax drift) so the conductor is never slid under the bars */
.watch-feature--after-intro {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: 30% 20% !important;
}
/* episode title stays smaller than the page title "Insight" (56px) */
.watch-feature--after-intro .watch-feature__title { font-size: 40px; letter-spacing: .1em; }

/* "Join Music Director..." on one line (wraps naturally on phones) */
.watch-feature--after-intro .watch-feature__inner { max-width: 960px; }
@media (min-width: 768px) {
    .watch-feature--after-intro .watch-feature__text { max-width: none; white-space: nowrap; }
}
.insight-intro__lead {
    max-width: 760px;
    margin: 0 auto 22px;
    font-family: futura-pt, sans-serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 1.45;
    color: #fff;
}
.watch-feature button.watch-feature__link { background: transparent; cursor: pointer; }

/* toolbar */
.insight-seasons {
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.insight-seasons__list { flex: 0 1 auto; min-width: 0; margin: 0; }
.insight-intro__text { text-wrap: balance; }
/* the main way into the videos: a clear, filled button (not just a label) */
.insight-rep-btn {
    flex: none;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 9px 18px 9px 15px;
    padding: 13px 22px 12px;
    border: 1px solid var(--ins-accent);
    border-radius: 0;
    background: var(--ins-accent);
    font-family: futura-pt, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #0d0c0b;
    cursor: pointer;
    transition: color .35s ease, background-color .35s ease, border-color .35s ease;
}
.insight-rep-btn__az { color: inherit; opacity: .7; }
.insight-rep-btn:hover,
.insight-rep-btn:focus-visible { background: #fff; border-color: #fff; color: #0d0c0b; }
.insight-rep-btn:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.insight-rep-btn__icon {                    /* three short lines = a list */
    position: relative;
    width: 16px;
    height: 11px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}
.insight-rep-btn__icon::after {
    content: "";
    position: absolute;
    left: 0; right: 4px; top: 4px;
    height: 1px;
    background: currentColor;
}

/* card picked from the repertoire list: a short glow so the eye finds it */
.insight-card.is-target .insight-video { animation: ins-target 2.4s ease-out; }
@keyframes ins-target {
    0%, 35% { box-shadow: 0 0 0 2px var(--ins-accent); }
    100%    { box-shadow: 0 0 0 2px rgba(209, 227, 227, 0); }
}
.insight-season { scroll-margin-top: 80px; }


/* -------------------------------------------------------------------
   Repertoire panel
   Desktop: a drawer from the right. Phones: a full-screen sheet.
   The page behind is locked while it is open, so there is only ever
   one scrolling list (no scroll-inside-a-scroll).
---------------------------------------------------------------------- */
html.rep-open,
html.rep-open body { overflow: hidden; }

.rep-panel {
    --rep-bg: #151311;
    position: fixed;
    inset: 0;
    z-index: 10002;                          /* above the logo bar and the menu */
    color: var(--ins-text, #ece9e5);
}
.rep-panel[hidden] { display: none; }
.rep-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .3s ease;
}
.rep-panel__sheet {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    background: var(--rep-bg);
    border-left: 1px solid rgba(255, 255, 255, .1);
    transform: translateX(40px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}
.rep-panel.is-open .rep-panel__backdrop { opacity: 1; }
.rep-panel.is-open .rep-panel__sheet { transform: none; opacity: 1; }

.rep-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 40px 18px;
}
.rep-panel__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #d1e3e3;
}
.rep-panel__title {
    margin: 0;
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}
.rep-panel__close {
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
    margin: -4px -8px 0 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.rep-panel__close::before,
.rep-panel__close::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 24px; height: 2px;
    margin: -1px 0 0 -12px;
    background: #fff;
    transform: rotate(45deg);
    transition: background-color .3s ease;
}
.rep-panel__close::after { transform: rotate(-45deg); }
.rep-panel__close:hover::before,
.rep-panel__close:hover::after { background: #d1e3e3; }

.rep-panel__tools {
    padding: 4px 40px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.rep-panel__filter { display: block; margin: 0 0 14px; }
.rep-panel__filter input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    background: rgba(255, 255, 255, .04);
    font-family: futura-pt, sans-serif;
    font-size: 16px;                         /* 16px stops iOS zooming in */
    color: #fff;
}
.rep-panel__filter input::placeholder { color: rgba(236, 233, 229, .45); }
.rep-panel__filter input:focus { outline: 0; border-color: #d1e3e3; }

.rep-panel__letters {                       /* all 26 letters on one row */
    display: flex;
    flex-wrap: nowrap;
    margin: 0 -4px;
}
.rep-panel__letters a,
.rep-panel__letters span {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    color: #fff;
}
.rep-panel__letters a:hover,
.rep-panel__letters a:focus-visible { color: #d1e3e3; }
.rep-panel__letters .is-off { color: rgba(236, 233, 229, .2); }

.rep-panel__body {
    position: relative;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 22px 40px 60px;
}
.rep-panel__body:focus { outline: 0; }
.rep-panel__hint {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(236, 233, 229, .55);
}
.rep-panel__hint strong { font-weight: 500; color: rgba(236, 233, 229, .85); }
.rep-panel__empty { margin: 30px 0 0; font-size: 16px; color: rgba(236, 233, 229, .7); }

/* panel title and composer names in the site's light blue */
.rep-panel .rep-panel__title,
.rep-panel .rep-composer__name { color: #d1e3e3; }
.rep-panel .rep-letter:first-child { padding-top: 4px !important; }   /* "A" sits close under the intro line */
.rep-panel .rep-letter { margin: 0; padding: 22px 0 0; overflow: visible; }   /* theme pads every <section> */
html.rep-open .scroll-top-arrow { display: none !important; }
.rep-letter__head {
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: .28em;
    color: #d1e3e3;
}
.rep-composer { padding: 20px 0 8px; }
.rep-composer + .rep-composer { border-top: 1px solid rgba(255, 255, 255, .06); }
.rep-composer__name {
    margin: 0 0 6px;
    font-family: futura-pt, sans-serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}
.rep-pieces { margin: 0; padding: 0; list-style: none; }
.rep-piece {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
}
.rep-piece__link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
    padding: 7px 0;
    color: var(--ins-text, #ece9e5);
    transition: color .25s ease;
}
.rep-piece > .rep-piece__title { flex: 1 1 220px; padding: 7px 0; }
.rep-piece__link .rep-piece__title { flex: 1; }
.rep-piece__title em { font-style: italic; }
.rep-piece__season,
.rep-piece__version {
    flex: none;
    font-size: 12px;
    letter-spacing: .1em;
    font-variant-numeric: tabular-nums;
    color: rgba(236, 233, 229, .5);
}
.rep-piece__season::before,
.rep-piece__version::before {              /* small play mark, as on the cards */
    content: "";
    display: inline-block;
    margin-right: 7px;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent currentColor;
    vertical-align: 1px;
}
.rep-piece__versions { display: flex; gap: 8px; padding: 6px 0; }
.rep-piece__version {                       /* same piece, several seasons: pick one */
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.rep-piece__link:hover,
.rep-piece__link:focus-visible { color: #fff; }
.rep-piece__link:hover .rep-piece__season,
.rep-piece__link:focus-visible .rep-piece__season { color: #d1e3e3; }
.rep-piece__version:hover,
.rep-piece__version:focus-visible { border-color: #d1e3e3; color: #d1e3e3; background: rgba(209, 227, 227, .08); }


/* ===================================================================
   7a. Up Next video window (js/insight.js: playHere)
====================================================================== */
.play-modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 40px;
}
.play-modal[hidden] { display: none; }
.play-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 7, 6, .92);
    opacity: 0;
    transition: opacity .3s ease;
}
.play-modal__box {
    position: relative;
    width: min(1100px, 100%, calc((100vh - 140px) * 16 / 9));
    opacity: 0;
    transform: scale(.97);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
.play-modal.is-open .play-modal__backdrop { opacity: 1; }
.play-modal.is-open .play-modal__box { opacity: 1; transform: none; }
.play-modal__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.play-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-modal__close {
    position: absolute;
    top: -52px;
    right: -8px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.play-modal__close::before,
.play-modal__close::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 26px; height: 2px;
    margin: -1px 0 0 -13px;
    background: #fff;
    transform: rotate(45deg);
    transition: background-color .3s ease;
}
.play-modal__close::after { transform: rotate(-45deg); }
.play-modal__close:hover::before,
.play-modal__close:hover::after { background: #d1e3e3; }
@media (max-width: 767px) {
    .play-modal { padding: 60px 0; }
    .play-modal__close { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .play-modal__backdrop, .play-modal__box { transition: none; }
}


/* ===================================================================
   7b. Calmer season view (built by js/insight.js)
   - card: composers on one quiet line, "Program" toggle opens the list
   - season: newest open, older seasons fold into slim bars
====================================================================== */
.insight-card__composers {
    margin: -8px 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ins-muted);
}
.insight-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: none;
    font-family: futura-pt, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: color .3s ease;
}
.insight-card__toggle::after {              /* small plus that turns into a minus */
    content: "";
    width: 9px;
    height: 9px;
    background:
        linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1px 9px no-repeat;
    transition: transform .35s ease;
}
.insight-card__toggle[aria-expanded="true"]::after { transform: rotate(90deg); background-size: 9px 1px, 0 0; }
.insight-card__toggle-n { letter-spacing: .12em; text-transform: none; color: var(--ins-muted); }
.insight-card__toggle:hover,
.insight-card__toggle:focus-visible { color: var(--ins-accent); }

/* smooth open / close of any height */
.insight-card__program,
.insight-season__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .45s cubic-bezier(.22, .61, .36, 1);
}
.insight-card__program > div,
.insight-season__panel > div { min-height: 0; overflow: hidden; }
.insight-card__program { grid-template-rows: 0fr; }
.insight-card__program.is-open { grid-template-rows: 1fr; }
.insight-card__program .insight-program { margin-top: 12px; }
.insight-season.is-collapsed .insight-season__panel { grid-template-rows: 0fr; }

/* season heading becomes the toggle: same look, plus a chevron */
.insight-season__head { margin-bottom: 0; }
.insight-season__toggle {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.insight-season__toggle::after {            /* the thin rule, now inside the button */
    content: "";
    flex: 1;
    order: 1;
    height: 1px;
    background: var(--ins-rule);
}
.insight-season__head::after { display: none; }
.insight-season__chev {
    order: 3;
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 2px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .4s ease, margin .4s ease;
}
.insight-season.is-collapsed .insight-season__chev { transform: rotate(-45deg); margin-top: 0; }
.insight-season__toggle:hover,
.insight-season__toggle:focus-visible { color: #fff; }
.insight-season__panel > div > .insight-grid { padding-top: 40px; }

/* folded seasons: slim bars, close together */
.insight-season.is-collapsed { padding-top: 0; padding-bottom: 0; }
.insight-season.is-collapsed .insight-season__toggle { padding: 26px 0; }
.insight-season:not(.is-collapsed) + .insight-season.is-collapsed { margin-top: 50px; }
.insight-season.is-collapsed:last-of-type { padding-bottom: 110px; }

@media (max-width: 767px) {
    .insight-card__composers { font-size: 14px; }
    .insight-season__panel > div > .insight-grid { padding-top: 28px; }
    .insight-season.is-collapsed .insight-season__toggle { padding: 22px 0; }
    .insight-season:not(.is-collapsed) + .insight-season.is-collapsed { margin-top: 30px; }
    .insight-season.is-collapsed:last-of-type { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
    .insight-card__program, .insight-season__panel { transition: none; }
}


/* ===================================================================
   8. Watch page (watch/index.html), 2026 update: banner + two videos
====================================================================== */
.watch-videos { padding-top: 90px; }

/* Watch: "Listen" audio clips - same quiet card as the podcast on the Press page */
.watch-listen { padding: 40px 0 50px; }
.watch-listen__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 40px;
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ins-accent);
}
.watch-audio {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 48px;
    margin: 0 0 30px;
    padding: 44px 48px;
    border: 1px solid var(--ins-rule);
    background: var(--ins-card-bg);
    transition: border-color .5s ease;
}
.watch-audio:hover { border-color: rgba(209, 227, 227, .28); }
.watch-audio__date {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ins-accent);
}
.watch-audio__title {
    margin: 0 0 6px;
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: .01em;
    color: #fff;
}
.watch-audio__note {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 300;
    color: var(--ins-text);
}
.watch-audio__credit {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ins-muted);
}
/* custom dark player (js/sc-player.js). SoundCloud's own player stays in the page, hidden,
   and only shows if SoundCloud's controls can't load (.is-fallback). */
.sc-player { position: relative; }
.sc-player__ui {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 26px 30px;
    border: 1px solid var(--ins-rule);
    border-radius: 10px;
    background: #0f0e0d;
}
.sc-player__btn {
    position: relative;
    flex: none;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(209, 227, 227, .55);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border-color .3s ease, background-color .3s ease, opacity .3s ease;
}
.sc-player__btn:hover,
.sc-player__btn:focus-visible { border-color: var(--ins-accent); background: rgba(209, 227, 227, .1); outline: none; }
.sc-player__icon {                           /* play: a triangle */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: -10px 0 0 -6px;
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent var(--ins-accent);
}
.sc-player.is-playing .sc-player__icon {    /* pause: two bars */
    width: 16px;
    height: 20px;
    margin: -10px 0 0 -8px;
    border: 0;
    border-left: 5px solid var(--ins-accent);
    border-right: 5px solid var(--ins-accent);
}
.sc-player:not(.is-ready) .sc-player__btn { opacity: .4; cursor: default; }
.sc-player__main { flex: 1; min-width: 0; }
.sc-player__bar {
    position: relative;
    height: 22px;                            /* tall hit area, thin line drawn inside */
    cursor: pointer;
    touch-action: none;
    outline: none;
}
.sc-player__bar::before,
.sc-player__fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
}
.sc-player__bar::before { content: ""; background: rgba(255, 255, 255, .14); }
.sc-player__fill {
    background: var(--ins-accent);
    transform: scaleX(0);
    transform-origin: left center;
}
.sc-player__bar:hover::before,
.sc-player__bar:focus-visible::before { background: rgba(255, 255, 255, .24); }
.sc-player__bar:focus-visible { box-shadow: 0 0 0 1px rgba(209, 227, 227, .4); border-radius: 4px; }
.sc-player__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 6px;
}
.sc-player__time {
    font-size: 14px;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
    color: var(--ins-muted);
}
.sc-player__cur { color: var(--ins-text); }
.sc-player__link {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ins-muted);
    transition: color .3s ease;
}
.sc-player__link:hover { color: var(--ins-accent); }
.sc-player__link::after { content: "\2197"; margin-left: .45em; }
.sc-player__frame {                          /* SoundCloud's player: kept out of sight */
    position: absolute;
    width: 1px;
    height: 1px;
    left: 0;
    top: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.sc-player.is-fallback .sc-player__ui { display: none; }
.sc-player.is-fallback .sc-player__frame {
    position: static;
    width: 100%;
    height: 166px;
    opacity: 1;
    pointer-events: auto;
    border-radius: 10px;
}
.watch-more { padding: 30px 0 110px; }
.watch-more__link {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 22px;
    padding: 34px 20px;
    border-top: 1px solid var(--ins-rule);
    border-bottom: 1px solid var(--ins-rule);
    text-align: center;
    color: var(--ins-text);
    transition: background-color .35s ease;
}
.watch-more__eyebrow {
    font-size: 13px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ins-accent);
}
.watch-more__text { font-size: 19px; line-height: 1.5; }
.watch-more__text::after { content: "\2192"; margin-left: .7em; display: inline-block; transition: transform .3s ease; }
.watch-more__link:hover { background: var(--ins-card-bg); color: #fff; }
.watch-more__link:hover .watch-more__text::after { transform: translateX(4px); }


@media (max-width: 767px) {
    .watch-feature--after-intro {             /* photo starts right under the intro */
        padding-top: calc(52vw + 70px);
        background-size: 190vw auto !important;
        background-position: 6% 0 !important;
    }
    .watch-feature--after-intro .watch-feature__title { font-size: 21px; }   /* "Insight" is 26px on phones */
    .watch-feature--after-intro .watch-feature__shade {
        background: linear-gradient(to bottom, #0d0c0b 0, rgba(13, 12, 11, .1) 50px, rgba(13, 12, 11, .25) calc(52vw - 40px), rgba(13, 12, 11, .92) calc(52vw + 100px), #0d0c0b calc(109vw));
    }
    .insight-intro__lead { font-size: 21px; margin-bottom: 16px; }

    .insight-rep-btn { margin: 8px 10px 8px 12px; padding: 11px 14px 10px; gap: 8px; font-size: 12px; letter-spacing: .14em; }
    .rep-composer__name { font-size: 17px; }
    .insight-rep-btn__icon { width: 14px; }

    .rep-panel__sheet { width: 100%; border-left: 0; transform: translateY(24px); }
    .rep-panel__head { padding: 18px 20px 14px; }
    .rep-panel__title { font-size: 20px; }
    .rep-panel__tools { padding: 0 20px 10px; }
    .rep-panel__letters { flex-wrap: wrap; row-gap: 2px; }       /* phones: two even rows of 13 */
    .rep-panel__letters a,
    .rep-panel__letters span { flex: 0 0 7.69%; padding: 8px 0; font-size: 15px; }
    .rep-panel__body { padding: 14px 20px calc(50px + env(safe-area-inset-bottom)); }
    .rep-piece { font-size: 16px; }

    .watch-videos { padding-top: 50px; }
    .watch-listen { padding: 30px 0 30px; }
    .watch-listen__head { margin-bottom: 28px; font-size: 12px; gap: 14px; }
    .watch-audio { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; padding: 28px 20px 22px; }
    .watch-audio__date { font-size: 12px; letter-spacing: .16em; margin-bottom: 10px; }
    .watch-audio__title { font-size: 21px; }
    .watch-audio__note { font-size: 17px; margin-bottom: 10px; }
    .sc-player__ui { gap: 18px; padding: 20px 18px; }
    .sc-player__btn { width: 54px; height: 54px; }
    .sc-player__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .watch-more { padding: 10px 0 70px; }
    .watch-more__text { font-size: 17px; }

    /* easier reading on phones: slightly larger text, more air between lines */
    .insight-page .container { padding-left: 22px; padding-right: 22px; }
    .insight-top .insight-intro__text { font-size: 16.5px; line-height: 1.65; }
    .watch-feature__text { font-size: 17px; line-height: 1.65; }
    .insight-card__text { font-size: 17px; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
    .rep-panel__sheet, .rep-panel__backdrop { transition: none; }
    .insight-card.is-target .insight-video { animation: none; }
    .insight-video__play img,
    .insight-video__play:hover img { transition: none; transform: none; }
    .watch-feature__play .insight-video__icon::after { animation: none; opacity: 0; }
}
