/* ==========================================================================
   /insights/interviews (user, 2026-11-18): the mockup's featured interview, the cards, the Ladder interview band and
   the Performance Insider video series (Figma KGlgETYGN6qQK4klEAORlL 13748:84394, "insight card - portrait -
   light-v1"). Everything is scoped to .iv-page. All content sits in the homepage's container: max 1278px, 44px off
   the edges from 992px, 24px below. Type follows the homepage's scale (titles 32/24, body 14/16, eyebrows 14px
   teal uppercase, Nunito 14px buttons).
   Spec: docs/superpowers/specs/2026-11-18-insights-interviews-redesign-design.md
   ========================================================================== */

.iv-page {
    --iv-gutter: max(24px, calc((100% - 1278px) / 2));
    --iv-ink: #232e33;
    --iv-ink-900: #151c1f;
    --iv-text: #515b60;
    --iv-muted: #6e767a;
    --iv-line: #e0e5ea;
    --iv-teal: #00acc1;
    --iv-teal-dark: #009db0;
    --iv-grey-50: #e9ebeb;

    font-family: 'Poppins', sans-serif;
    color: var(--iv-ink);
    background: #fff;
    overflow-x: hidden;
}

@media (min-width: 992px) {
    .iv-page {
        --iv-gutter: max(44px, calc((100% - 1278px) / 2));
    }
}

.iv-page *,
.iv-page *::before,
.iv-page *::after {
    box-sizing: border-box;
}

/* Beats the site's global h1-h3/p margins and line heights. */
.iv-page h1,
.iv-page h2,
.iv-page h3,
.iv-page p,
.iv-page blockquote,
.iv-page ul {
    margin: 0;
    padding: 0;
    line-height: normal;
}

/* The base display rules below must not show what waits hidden for watch mode. */
.iv-page [hidden] {
    display: none !important;
}

.iv-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.iv-page .iv-eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--iv-teal-dark);
}

/* 8px from an eyebrow to its title everywhere (uniformity audit, 2026-11-18). */
.iv-page .iv-eyebrow + :is(h1, h2, .iv-head__title-row, .iv-videos__title-row) {
    margin-top: 8px;
}

.iv-arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform .2s ease;
}

/* Buttons and links, as on the homepage: Nunito Sans 14px, 35px tall. */
.iv-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid transparent;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: .28px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}

.iv-btn:hover .iv-arrow,
.iv-btn:focus-visible .iv-arrow,
.iv-link:hover .iv-arrow,
.iv-link:focus-visible .iv-arrow {
    transform: translateX(3px);
}

.iv-btn--outline-light {
    border-color: var(--iv-grey-50);
    color: var(--iv-grey-50);
}

.iv-btn--outline-light:hover,
.iv-btn--outline-light:focus-visible {
    border-color: var(--iv-teal);
    color: var(--iv-teal);
    text-decoration: none;
}

.iv-btn--outline {
    border-color: #bcbfc1;
    color: var(--iv-ink);
}

.iv-btn--outline:hover,
.iv-btn--outline:focus-visible {
    background: #f3f5f5;
    color: var(--iv-ink);
    text-decoration: none;
}

/* One text-link style on the page (uniformity audit, 2026-11-18): teal, an arrow, underlined on hover, 8px above
   and below for a taller touch target. The light variant is for the dark band. */
.iv-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: .28px;
    color: var(--iv-teal-dark);
    text-decoration: none;
}

.iv-link:hover,
.iv-link:focus-visible {
    color: #007a89;
    text-decoration: underline;
}

.iv-page :focus-visible {
    outline: 2px solid var(--iv-teal);
    outline-offset: 2px;
}

/* ---------- Head: eyebrow, title with its rule, the description and the filters ---------- */
.iv-head {
    display: flex;
    flex-direction: column;
    padding: 44px var(--iv-gutter) 24px;
}

.iv-head__title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Section titles 24/400 as on the homepage; the featured hero alone is 32px (uniformity audit, 2026-11-18). */
.iv-page .iv-head__title,
.iv-page .iv-ladder__title,
.iv-page .iv-videos__title {
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
}

.iv-page .iv-head__title {
    color: var(--iv-ink);
}

.iv-head__rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--iv-teal);
}

/* The filters start level with the description, right under the rule (user, 2026-11-18). */
.iv-head__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 44px;
    margin-top: 8px;
}

.iv-page .iv-head__text {
    max-width: 620px;
    font-size: 14px;
    line-height: 21px;
    color: var(--iv-muted);
}

.iv-filters {
    display: flex;
    flex: none;
    gap: 16px;
}

/* The listings' selects: a drawn chevron 12px from the right edge (as on the other three listings). */
.iv-filters select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 148px;
    padding: 7px 36px 7px 12px;
    border: 1px solid #bcbfc1;
    border-radius: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23232e33' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 12px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: .28px;
    color: var(--iv-ink);
    cursor: pointer;
}

.iv-filters select[name="capability"] {
    min-width: 220px;
}

.iv-filters__submit {
    padding: 7px 16px;
    border: 1px solid #bcbfc1;
    background: #fff;
    font: inherit;
}

/* ---------- Cards ---------- */
.iv-cards {
    padding: 0 var(--iv-gutter) 44px;
}

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

.iv-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.iv-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--iv-grey-50);
}

.iv-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.iv-card:hover .iv-card__media img {
    transform: scale(1.03);
}

.iv-page .iv-card__eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--iv-teal-dark);
}

/* Card titles one style: the interview cards and the video list (uniformity audit, 2026-11-18). */
.iv-page .iv-card__title,
.iv-page .iv-videos__item-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--iv-ink);
}

.iv-card .iv-link {
    margin-top: auto;
}

.iv-empty {
    padding: 24px 0;
    color: var(--iv-muted);
}

.iv-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* ---------- The Ladder interview ---------- */
/* As the mockup (user, 2026-11-19): dark on the left under the copy, teal to the right with a soft light behind
   the portrait, which is cut out and stands on the band's bottom edge. */
.iv-ladder {
    --iv-ladder-cover: 240px;
    --iv-ladder-portrait: 280px;

    position: relative;
    padding: 0 var(--iv-gutter);
    overflow: hidden;
    background:
        /* Centred on the portrait (the container's right edge less half its width), whatever the width. */
        radial-gradient(420px 340px at calc(100% - var(--iv-gutter) - var(--iv-ladder-portrait) / 2) 42%, rgba(46, 150, 168, .55) 0, rgba(46, 150, 168, 0) 100%),
        linear-gradient(105deg, #0f181c 0, #10191d 40%, #0f3a44 75%, #12505c 100%);
}

.iv-ladder__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 44px;
}

.iv-ladder__copy {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    padding: 44px 0;
}

.iv-page .iv-ladder__copy > .iv-eyebrow + .iv-ladder__title {
    margin-top: -4px;
}

.iv-page .iv-ladder .iv-eyebrow {
    color: var(--iv-teal);
}

.iv-page .iv-ladder__title {
    color: #fff;
}

.iv-page .iv-ladder__quote {
    margin: 4px 0 8px;
    padding-left: 16px;
    border-left: 2px solid var(--iv-teal);
}

.iv-page .iv-ladder__quote p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--iv-grey-50);
}

.iv-page .iv-ladder__name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.iv-page .iv-ladder__role {
    margin-top: -8px;
    font-size: 14px;
    font-style: italic;
    color: #bcbfc1;
}

.iv-link--light {
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--iv-teal);
    color: #fff;
}

.iv-link--light:hover,
.iv-link--light:focus-visible {
    color: var(--iv-teal);
    text-decoration: none;
}

/* The cover with a faint teal glow, close beside the cut-out portrait, which stands on the band's bottom edge. */
.iv-ladder__media {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 12px;
    padding-top: 24px;
}

.iv-ladder__cover {
    width: var(--iv-ladder-cover);
    height: auto;
    margin-bottom: 24px;
    box-shadow: 0 0 40px rgba(0, 172, 193, .22), 0 16px 32px rgba(0, 0, 0, .5);
}

.iv-ladder__portrait {
    display: block;
    width: var(--iv-ladder-portrait);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}

/* ---------- Video series (Figma 13748:84394) ---------- */
.iv-videos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 44px var(--iv-gutter);
}

.iv-videos__head {
    display: flex;
    flex-direction: column;
}

/* The title row (it held the playlist link on the right until 2026-11-23; kept so the title spacing stays). */
.iv-videos__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 24px;
}

.iv-page .iv-videos__title {
    color: var(--iv-ink);
}

/* Descriptions in one colour, 8px under their title (as under "Interviews"). */
.iv-page .iv-videos__text {
    font-size: 14px;
    color: var(--iv-muted);
}

.iv-page .iv-videos__text {
    margin-top: 8px;
}

.iv-videos__body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    container-type: inline-size;
}

/* The main video takes the row beside the 480px list (user, 2026-11-19: about 774x435 at 1278, was 603x339). */
.iv-videos__main {
    flex: 1 1 0;
    min-width: 0;
}

/* A compact list beside the main video (user, 2026-11-19; was 627px of 320x180 thumbnails, as drawn). */
.iv-videos__panel {
    flex: 0 1 480px;
    min-width: 0;
}

.iv-videos__list {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.iv-videos__item {
    display: flex;
    align-items: center;
}

.iv-videos__item + .iv-videos__item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #bcbfc1;
}

/* The main video's row waits hidden, so the first visible row keeps no rule above it. */
.iv-videos__item--main + .iv-videos__item {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* The row numbers show in watch mode only. */
.iv-videos__index {
    display: none;
}

.iv-page .iv-videos__item-title {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 0 0 24px;
}

/* "card webinar video": square corners (user, 2026-11-18; Figma had 4px), the soft shadow, a gradient over the thumbnail and the play triangle. */
.iv-video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--iv-grey-50);
    box-shadow: 0 0 12px rgba(0, 0, 0, .2);
    aspect-ratio: 16 / 9;
}

button.iv-video {
    cursor: pointer;
}

.iv-video--small {
    flex: 0 0 240px;
    width: 240px;
    height: 135px;
}

.iv-video__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iv-video__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(35, 46, 51, 0) 40%, rgba(35, 46, 51, .45) 100%);
}

/* The Figma triangle (76 x 66, pointing up) turned to point right, in an 88px box at the centre. */
.iv-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 66px;
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .2s ease;
}

button.iv-video:hover .iv-video__play,
button.iv-video:focus-visible .iv-video__play {
    transform: translate(-50%, -50%) rotate(90deg) scale(1.08);
}

.iv-video--small .iv-video__play {
    width: 52px;
    height: 45px;
}

.iv-video__frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
}

.iv-videos__item .iv-video__frame {
    flex: 0 0 240px;
    width: 240px;
    height: 135px;
}

/* From 1200px, the main video as tall as the three rows beside it, at every width (user, 2026-11-19), with no
   cropping: the thumbnails take their width from the body's (B). With a 216px title column and two 33px rules
   (16 + 1 + 16), 9/16 of the main's width (B - 24 - t - 240) equals 3 rows of 9t/16 + 66 when t = (B - 381px) / 4:
   224x126 beside a 790x444 video at 1278, 183x103 beside 665x374 at 1112. Watch mode keeps its own layout. */
@media (min-width: 1200px) {
    .iv-videos__body:not(.is-watching) .iv-videos__panel {
        flex: 0 0 calc((100cqw - 381px) / 4 + 240px);
    }

    .iv-videos__body:not(.is-watching) .iv-video--small {
        flex: 0 0 auto;
        width: calc((100cqw - 381px) / 4);
        height: auto;
    }
}

/* ---------- Watch mode (user, 2026-11-18): YouTube's watch page after the first play ---------- */
/* The player big, the series a compact panel: beside the player from 1200px, under it below. Spec:
   docs/superpowers/specs/2026-11-18-insights-interviews-watch-mode-design.md */
.iv-videos__stage {
    scroll-margin-top: 96px;
    view-transition-name: iv-stage;
}

.iv-videos__panel {
    view-transition-name: iv-panel;
}

.iv-videos__stage iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

.iv-videos__body.is-watching {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "now" "panel";
    gap: 0;
}

.iv-videos__body.is-watching .iv-videos__main {
    display: contents;
}

/* 16:9 from the first moment, before YouTube's iframe arrives: no jump, and the panel beside it is already as
   tall as the player when the playing row is scrolled into it. */
.iv-videos__body.is-watching .iv-videos__stage {
    grid-area: stage;
    aspect-ratio: 16 / 9;
    background: var(--iv-ink-900);
}

.iv-videos__body.is-watching .iv-videos__stage iframe {
    height: 100%;
}

.iv-page .iv-videos__body.is-watching .iv-videos__now {
    grid-area: now;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--iv-ink);
}

.iv-videos__body.is-watching .iv-videos__panel {
    display: flex;
    grid-area: panel;
    flex-direction: column;
    margin-top: 24px;
    padding: 0;
    border: 1px solid var(--iv-line);
    background: #fff;
}

.iv-videos__panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--iv-line);
}

.iv-page .iv-videos__panel-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--iv-ink);
}

.iv-page .iv-videos__panel-count {
    flex: none;
    font-size: 14px;
    color: var(--iv-muted);
}

.iv-videos__body.is-watching .iv-videos__list {
    position: relative;
    min-height: 0;
    padding: 8px 0;
    overflow-y: auto;
}

/* A compact row: number (▶ while playing), a 120 x 68 thumbnail, the title on two lines. */
.iv-videos__body.is-watching .iv-videos__item {
    display: grid;
    grid-template-columns: 16px 120px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 16px 8px 12px;
    border: 0;
    cursor: pointer;
    transition: background-color .2s;
}

.iv-videos__body.is-watching .iv-videos__item:hover {
    background: #f3f5f5;
}

.iv-videos__body.is-watching .iv-videos__item.is-current {
    background: #f3f5f5;
    box-shadow: inset 3px 0 0 var(--iv-teal);
}

.iv-videos__body.is-watching .iv-videos__index {
    display: block;
    font-size: 12px;
    text-align: center;
    color: var(--iv-muted);
}

.iv-videos__body.is-watching .is-current .iv-videos__index {
    font-size: 0;
}

.iv-videos__body.is-watching .is-current .iv-videos__index::before {
    content: '\25B6';
    font-size: 10px;
    color: var(--iv-teal-dark);
}

.iv-videos__body.is-watching .iv-video--small {
    flex: none;
    width: 120px;
    height: 68px;
    box-shadow: none;
}

.iv-videos__body.is-watching .iv-video--small .iv-video__play {
    display: none;
}

.iv-page .iv-videos__body.is-watching .iv-videos__item-title {
    display: -webkit-box;
    padding: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* From 1200px the panel stands beside the player, as tall as it (its list scrolls when it has to). */
@media (min-width: 1200px) {
    .iv-videos__body.is-watching {
        grid-template-columns: minmax(0, 1fr) 400px;
        grid-template-areas: "stage panel" "now .";
        column-gap: 24px;
    }

    .iv-videos__body.is-watching .iv-videos__panel {
        align-self: stretch;
        margin-top: 0;
        contain: size;
    }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1199px) {
    .iv-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iv-videos__body {
        flex-direction: column;
    }

    .iv-videos__main {
        width: 100%;
        padding: 0;
    }

    .iv-videos__panel {
        flex-basis: auto;
        width: 100%;
        padding-top: 0;
    }

    .iv-ladder {
        --iv-ladder-cover: 170px;
        --iv-ladder-portrait: 200px;
    }
}

@media (max-width: 991px) {
    .iv-head__row {
        flex-direction: column;
        align-items: stretch;
    }

    .iv-ladder__inner {
        flex-direction: column;
        gap: 0;
    }

    .iv-ladder__copy {
        max-width: none;
        padding-bottom: 8px;
    }

    .iv-ladder__media {
        justify-content: center;
    }

    /* Stacked: the media centred under the copy, so the light sits behind the portrait there, low in the band. */
    .iv-ladder {
        background:
            radial-gradient(320px 300px at calc(50% + (var(--iv-ladder-cover) + 12px) / 2) calc(100% - var(--iv-ladder-portrait) * .7), rgba(46, 150, 168, .5) 0, rgba(46, 150, 168, 0) 100%),
            linear-gradient(180deg, #10191d 0, #10191d 45%, #0f3a44 100%);
    }
}

@media (max-width: 767px) {
    /* The homepage's phone proportion: section titles 20px (the featured band: insights-featured.css). */
    .iv-page .iv-head__title,
    .iv-page .iv-ladder__title,
    .iv-page .iv-videos__title {
        font-size: 20px;
    }

    .iv-cards__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The filters full width, 44px touch targets. */
    .iv-filters {
        flex-direction: column;
        gap: 8px;
    }

    .iv-filters select,
    .iv-filters select[name="capability"] {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .iv-btn {
        min-height: 44px;
    }

    .iv-ladder {
        --iv-ladder-cover: 130px;
        --iv-ladder-portrait: 160px;
    }

    /* A list item stacks: its video full width, the title under it. */
    .iv-videos__item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .iv-video--small,
    .iv-videos__item .iv-video__frame {
        flex-basis: auto;
        width: 100%;
        height: auto;
    }

    .iv-page .iv-videos__item-title {
        padding: 0;
    }
}

/* The smallest phones: the cover and portrait (with their 12px gap) inside the 24px gutters. */
@media (max-width: 360px) {
    .iv-ladder {
        --iv-ladder-cover: 110px;
        --iv-ladder-portrait: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iv-page *,
    .iv-page *::before,
    .iv-page *::after {
        transition: none !important;
    }
}
