/*
 * demo44 "Connect · Wide Screens" — the Connect page as a row of cinema screens: a letterboxed
 * 21:9 banner, PARTNERS as 16:10 crops with the magazine name set huge across each card, FREE as
 * medium wide cards and People as a two-row rail of compact cards. Rails: js/rail.js +
 * css/rail.css, restyled here through the --rail-* properties.
 */
.main { padding-top: 16px; padding-bottom: 96px; }

:root {
    --ws-pad: clamp(16px, 3vw, 40px);
    --ws-edge: max(var(--ws-pad), calc((100vw - 1720px) / 2 + var(--ws-pad)));
    --ws-ink-2: rgb(255 255 255 / 0.7);
    --ws-ink-3: rgb(255 255 255 / 0.5);
    --ws-line: rgb(255 255 255 / 0.12);
    --ws-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── banner: a letterboxed screen ──────────────────────────────────────────────────────────── */
.ws-hero { max-width: 1720px; margin: 0 auto; padding-inline: var(--ws-pad); }
.ws-hero__frame { position: relative; overflow: hidden; aspect-ratio: 21 / 9; min-height: 420px; max-height: 74vh; width: 100%; border-radius: 6px; background: #0c0f1e; isolation: isolate; }
.ws-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; animation: ws-drift 24s ease-in-out infinite alternate; }
.ws-hero__shade { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgb(8 10 22 / 0.82) 0%, rgb(8 10 22 / 0.35) 45%, rgb(8 10 22 / 0) 70%),
    linear-gradient(0deg, rgb(12 12 16 / 0.85) 0%, rgb(12 12 16 / 0) 40%); }
.ws-hero__frame::before, .ws-hero__frame::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 4.5%; background: #0b0b0d; }
.ws-hero__frame::before { top: 0; }
.ws-hero__frame::after { bottom: 0; }
.ws-hero__copy { position: absolute; left: clamp(20px, 5vw, 80px); top: 50%; z-index: 3; max-width: 640px; transform: translateY(-58%); }
.ws-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 11px/1 var(--font); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ws-ink-2); }
.ws-rec { width: 8px; height: 8px; border-radius: 50%; background: rgb(83 245 126); box-shadow: 0 0 12px rgb(83 245 126 / 0.8); animation: ws-blink 2.4s ease-in-out infinite; }
.ws-hero__title { font: 600 clamp(64px, 12vw, 210px)/0.8 var(--font-head); letter-spacing: -0.06em; margin-left: -0.05em; text-transform: uppercase; }
.ws-hero__lead { max-width: 40ch; margin: 22px 0 0; font: 400 clamp(16px, 1.3vw, 19px)/1.5 var(--font); color: var(--ws-ink-2); }
.ws-hero__credits { position: absolute; left: clamp(20px, 5vw, 80px); right: clamp(20px, 5vw, 80px); bottom: calc(4.5% + clamp(16px, 2.4vw, 32px)); z-index: 3; display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 56px); margin: 0; padding-top: 16px; border-top: 1px solid var(--ws-line); }
.ws-hero__credits > div { display: grid; gap: 6px; }
.ws-hero__credits dt { order: 2; font: 700 10.5px/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ws-ink-3); }
.ws-hero__credits dd { margin: 0; font: 600 28px/1 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ws-hero__credits .ws-hero__cta { margin-left: auto; }
.ws-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--ws-line); border-radius: 999px; color: #fff; font: 500 15px/1 var(--font-head); text-decoration: none; transition: background-color 0.3s ease; }
.ws-btn--solid { border-color: var(--green); background: var(--green); }
.ws-btn--solid:hover { background: var(--primary-hover); }
.ws-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ── section heads ─────────────────────────────────────────────────────────────────────────── */
.ws-sec { margin-top: clamp(56px, 7vw, 104px); }
.ws-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 24px; margin-bottom: 22px; }
.ws-head__kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 0; font: 700 11px/1 var(--font); letter-spacing: 0.28em; text-transform: uppercase; color: var(--yellow); }
.ws-head__kicker span { color: var(--ws-ink-3); letter-spacing: 0.14em; }
.ws-head__kicker::after { content: ""; flex: 1; height: 1px; background: var(--ws-line); }
.ws-head__title { font: 600 clamp(28px, 3.4vw, 50px)/1 var(--font-head); letter-spacing: -0.035em; }
.ws-head__all { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ws-line); border-radius: 999px; color: #fff; font: 500 14px/1 var(--font-head); text-decoration: none; white-space: nowrap; transition: border-color 0.3s ease, background-color 0.3s ease; }
.ws-head__all:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.05); }
.ws-head__all:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ── rails ─────────────────────────────────────────────────────────────────────────────────── */
.ws-rail {
    --rail-pad: var(--ws-edge);
    --rail-gap: clamp(12px, 1.4vw, 20px);
    --rail-ui-bg: rgb(16 16 20 / 0.42);
    --rail-ui-rest: 0.22;
    --rail-fade: rgb(16 16 20 / 0.5);
    --rail-line: rgb(255 255 255 / 0.1);
    --rail-thumb: rgb(255 255 255 / 0.6);
    --rail-bar-h: 40px;
}
.ws-rail .rail__track { padding-block: 4px; }
.ws-rail .rail__edge { width: clamp(56px, 7vw, 120px); }
.ws-rail .rail__edge--prev { left: 0; }
.ws-rail .rail__chev { width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / 0.16); }
.ws-rail .rail__bar { padding-top: 16px; height: var(--rail-bar-h); }
.ws-rail .rail__pos { font: 600 11px/1 var(--font-head); letter-spacing: 0.18em; }
.ws-rail--partners { --rail-card: min(64vw, 1000px); }
.ws-rail--free { --rail-card: clamp(260px, 27vw, 440px); }
.ws-rail--people { --rail-card: clamp(272px, 24vw, 360px); --rail-gap: 12px; }

/* ── wide cards ────────────────────────────────────────────────────────────────────────────── */
.ws-card { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 6px; color: #fff; text-decoration: none; background: #111; isolation: isolate; }
.ws-card__pic { position: absolute; inset: 0; }
.ws-card__pic img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(0.85); transform: scale(1.02); transition: filter 0.7s ease, transform 1.2s var(--ws-ease); }
.ws-card.is-active .ws-card__pic img, .ws-card:hover .ws-card__pic img, .ws-card:focus-visible .ws-card__pic img { filter: none; transform: scale(1); }
.ws-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(8 8 10 / 0.78) 0%, rgb(8 8 10 / 0.2) 42%, rgb(8 8 10 / 0) 60%), linear-gradient(180deg, rgb(8 8 10 / 0.45) 0%, rgb(8 8 10 / 0) 22%); pointer-events: none; }
.ws-card::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); pointer-events: none; transition: box-shadow 0.5s ease; }
.ws-card.is-active::after { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.ws-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.ws-card__top { position: absolute; top: clamp(14px, 1.6vw, 24px); left: clamp(16px, 2vw, 30px); right: clamp(16px, 2vw, 30px); z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.ws-card__no { font: 600 11px/1 var(--font-head); letter-spacing: 0.2em; color: var(--ws-ink-2); font-variant-numeric: tabular-nums; }
.ws-tag { padding: 6px 10px 5px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; background: rgb(16 16 20 / 0.35); font: 700 10px/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ws-tag--paid { border-color: transparent; background: var(--yellow); color: #18171a; }

/* the name, set huge across the screen */
.ws-card__name {
    position: absolute;
    left: clamp(10px, 1.2vw, 18px);
    right: 0;
    bottom: 25%;
    z-index: 2;
    font: 600 calc(var(--rail-card) * min(0.2, 1.42 / var(--len, 8)))/0.8 var(--font-head);
    letter-spacing: -0.055em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgb(255 255 255 / 0.9);
    text-shadow: 0 2px 30px rgb(0 0 0 / 0.3);
    transform: translateX(0);
    transition: color 0.7s ease, transform 1.2s var(--ws-ease);
}
.ws-card--partner:not(.is-active) .ws-card__name { color: rgb(255 255 255 / 0.55); }
.ws-card--partner.is-active .ws-card__name, .ws-card--partner:hover .ws-card__name { transform: translateX(0.6%); }
.ws-card__foot { position: absolute; left: clamp(16px, 2vw, 30px); right: clamp(16px, 2vw, 30px); bottom: clamp(14px, 1.8vw, 26px); z-index: 3; display: grid; gap: 4px; }
.ws-card--partner .ws-card__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ws-card__line { max-width: 46ch; font: 400 clamp(14px, 1.15vw, 17px)/1.4 var(--font); color: #fff; }
.ws-card__meta { font: 700 10.5px/1.3 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ws-ink-3); }

.ws-card--free { aspect-ratio: 3 / 2; }
.ws-card--free .ws-card__pic img { filter: brightness(0.78) saturate(0.9); }
.ws-card--free .ws-card__title { font: 600 clamp(20px, 1.7vw, 26px)/1.05 var(--font-head); letter-spacing: -0.02em; }

/* ── People: compact horizontal cards in two rows ──────────────────────────────────────────── */
.ws-person { position: relative; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 16px; min-height: 120px; padding: 10px 44px 10px 10px; border: 1px solid var(--ws-line); border-radius: 8px; background: rgb(28 27 32 / 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; text-decoration: none; transition: background-color 0.4s ease, border-color 0.4s ease; }
.ws-person:hover { background: rgb(40 39 46 / 0.7); border-color: rgb(255 255 255 / 0.22); }
.ws-person:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ws-person__pic { display: block; width: 84px; height: 100px; overflow: hidden; border-radius: 5px; }
.ws-person__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ws-ease); }
.ws-person:hover .ws-person__pic img { transform: scale(1.06); }
.ws-person__txt { display: grid; gap: 4px; min-width: 0; }
.ws-person__name { font: 600 17px/1.15 var(--font-head); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-person__role { font: 400 14px/1.3 var(--font); color: var(--ws-ink-2); }
.ws-person__city { font: 700 10.5px/1.3 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ws-ink-3); }
.ws-person__badge { position: absolute; top: 10px; right: 10px; padding: 4px 7px 3px; border: 1px solid rgb(83 245 126 / 0.35); border-radius: 999px; font: 700 9px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(83 245 126); }
.ws-person__go { position: absolute; right: 16px; bottom: 14px; color: var(--ws-ink-3); font: 500 16px/1 var(--font-head); transition: transform 0.4s var(--ws-ease), color 0.4s ease; }
.ws-person:hover .ws-person__go { color: #fff; transform: translateX(4px); }

/* ── motion ────────────────────────────────────────────────────────────────────────────────── */
@keyframes ws-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes ws-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── responsive ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ws-hero__frame { aspect-ratio: auto; height: min(640px, 82vh); min-height: 520px; max-height: none; }
    .ws-hero__img { object-position: 40% 35%; }
    .ws-hero__shade { background: linear-gradient(0deg, rgb(8 10 22 / 0.92) 0%, rgb(8 10 22 / 0.55) 55%, rgb(8 10 22 / 0.1) 100%); }
    .ws-hero__copy { top: auto; bottom: 150px; left: 20px; right: 20px; transform: none; }
    .ws-hero__credits { left: 20px; right: 20px; flex-wrap: wrap; }
    .ws-rail--partners { --rail-card: 82vw; }
    .ws-rail--free { --rail-card: 62vw; }
}
@media (max-width: 560px) {
    .ws-hero__copy { bottom: 170px; }
    .ws-hero__lead { font-size: 15px; }
    .ws-hero__credits { gap: 14px 24px; }
    .ws-hero__credits dd { font-size: 22px; }
    .ws-hero__credits .ws-hero__cta { margin-left: 0; width: 100%; }
    .ws-head { grid-template-columns: 1fr; }
    .ws-head__all { justify-self: start; }
    .ws-rail--partners { --rail-card: 86vw; }
    .ws-card--partner { aspect-ratio: 4 / 3; }
    .ws-card__line { display: none; }
    .ws-card__name { bottom: 22%; font-size: calc(var(--rail-card) * min(0.22, 1.42 / var(--len, 8))); }
    .ws-rail--free { --rail-card: 70vw; }
    .ws-rail--people { --rail-card: 78vw; }
}
@media (hover: none) {
    .ws-card .ws-card__pic img { filter: brightness(0.85); }
    .ws-card.is-active .ws-card__pic img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ws-hero__img, .ws-rec { animation: none; }
    .ws-card__pic img, .ws-card__name, .ws-person__pic img, .ws-person__go { transition: none; }
}
