/*
 * Prototype home11 (/html/home11.html), "Cinematic": DEPO told as a film's opening sequence.
 * A scope shot dollies in behind the opening title, the cast arrives as full-bleed scenes that
 * wipe in over each other, the six values are chapters over portraits, the magazines are a
 * drifting poster wall, and the page ends on a credits roll and Join DEPO. A scene strip at the
 * bottom (and a scene selection menu) jumps between scenes. Header and footer are the site's own.
 * Without JS, or with reduced motion, every scene is a plain full-height block in reading order.
 */
@font-face {
    font-family: "H11 Lazurski";
    src: url("/demo8/fonts/LazurskiRegular.woff2") format("woff2"), url("/demo8/fonts/LazurskiRegular.woff") format("woff");
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00CC, U+00CE, U+00D0-00EC, U+00EE, U+00F0-00FF, U+2010-2027;
}
@font-face {
    font-family: "H11 Lazurski";
    src: url("/demo8/fonts/LazurskiBold.woff2") format("woff2"), url("/demo8/fonts/LazurskiBold.woff") format("woff");
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00CC, U+00CE, U+00D0-00EC, U+00EE, U+00F0-00FF, U+2010-2027;
}
.proto-home11 {
    --c-ground: #0d1410;
    --c-raise: #16201a;
    --c-raise-2: #1e2a23;
    --c-ink: #f2efe8;
    --c-soft: #bdb6a8;
    --c-yellow: #ffb500;
    --f-title: "H11 Lazurski", Georgia, serif;
    --f-text: "Lato", system-ui, sans-serif;
    --s-xl: clamp(46px, 8.4vw, 152px);
    --s-l: clamp(36px, 4.8vw, 84px);
    --s-m: clamp(22px, 1.9vw, 30px);
    --s-body: clamp(17px, 1.25vw, 19px);
    --s-small: 15px;
    --edge: clamp(16px, 3.4vw, 56px);
    --strip-h: 72px;
    --stage-h: calc(100svh - var(--header-h, 70px));
    --ease: cubic-bezier(.22, .7, .16, 1);
    background: var(--c-ground);
}
.proto-home11 .main { padding: 0; }
.proto-home11 .header { background: var(--c-ground); }
.proto-home11 .header::before { display: none; }
.h11x :where(*) { color: inherit; }
.h11x { color: var(--c-ink); font: 400 var(--s-body)/1.55 var(--f-text); }
.h11x img { display: block; max-width: 100%; }
.h11x h1, .h11x h2, .h11x h3 { margin: 0; font-family: var(--f-title); font-weight: 400; word-spacing: -0.09em; }
.h11x p { margin: 0; }
.h11x-wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 var(--edge); }
.h11x-d { margin-right: -0.1em; }
.h11x-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h11x-h2 { font-size: var(--s-l); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.h11x :focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }

/* ── controls ───────────────────────────────────────────────────────────────────────────── */
.h11x-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.h11x-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px;
    border-radius: 999px; background: var(--c-yellow); color: #17130a;
    font: 700 16px/1 var(--f-text); transition: background 220ms ease, transform 160ms ease;
}
.h11x-btn:hover { background: #ffc93d; transform: translateY(-2px); }
.h11x-btn:active { transform: scale(0.97); }
.h11x-link {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    font: 700 16px/1 var(--f-text); color: var(--c-ink);
}
.h11x-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: currentColor;
    transform-origin: left; transition: transform 320ms var(--ease);
}
.h11x-link:hover::after { transform: scaleX(0.35); }
.h11x-link:active { opacity: 0.7; }
.h11x-credit { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.h11x-credit__with { font-size: var(--s-small); color: var(--c-soft); }
.h11x-credit__name { font: 400 var(--s-m)/1.1 var(--f-title); }

/* ── opening: the scope shot dollies in behind the title ───────────────────────────────── */
.h11x-open { position: relative; }
.h11x-open__stage { position: relative; height: var(--stage-h); min-height: 560px; overflow: hidden; background: var(--c-ground); }
.h11x-open__shot { position: absolute; inset: 0; }
.h11x-open__shot img {
    position: absolute; left: 50%; top: 50%; height: 100%; width: auto; max-width: none;
    transform: translate(-50%, -50%); transform-origin: 50% 50%; will-change: transform;
}
.h11x-open__shot::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgb(8 12 10 / 0) 40%, rgb(8 12 10 / 0.72) 100%);
}
.h11x-open__card {
    position: absolute; left: var(--edge); right: var(--edge); bottom: calc(var(--strip-h) + clamp(28px, 5vh, 56px));
    display: grid; gap: 22px; max-width: 1180px; will-change: transform, opacity;
}
.h11x-open__title { font-size: var(--s-xl); line-height: 0.92; letter-spacing: -0.03em; max-width: 9.5em; text-wrap: balance; }
.h11x-open__row { display: grid; gap: 22px; }
.h11x-open__lead { max-width: 34em; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; }
.h11x-open__second {
    position: absolute; right: var(--edge); top: clamp(24px, 6vh, 64px); max-width: 15em;
    font: 400 clamp(24px, 2.6vw, 36px)/1.2 var(--f-title); letter-spacing: -0.01em; text-align: right;
}
/* Pinned with JS: the shot opens from scope ratio to a close-up while the titles move faster. */
.js-cine .h11x-open { height: calc(var(--stage-h) * 2.6); }
.js-cine .h11x-open__stage { position: sticky; top: var(--header-h, 70px); }
.js-cine .h11x-open__shot::after { opacity: var(--scrim, 0.4); }
.js-cine .h11x-open__second {
    top: auto; bottom: calc(var(--strip-h) + 56px); left: var(--edge); right: auto; max-width: 9em;
    font-size: var(--s-l); line-height: 1.02; letter-spacing: -0.02em; word-spacing: -0.09em; text-align: left; opacity: 0; will-change: transform, opacity;
}
.js-cine .h11x-open__card { max-width: none; }
.js-cine .h11x-open__title { max-width: none; }
@media (min-width: 900px) {
    .js-cine .h11x-open__row { grid-template-columns: minmax(0, 36em) auto; align-items: center; justify-content: space-between; gap: 40px; }
}

/* ── the cast: full-bleed scenes, each one wipes in over the last ─────────────────────── */
.h11x-reel { position: relative; }
.h11x-scene { position: relative; height: var(--stage-h); min-height: 560px; overflow: hidden; background: var(--c-ground); }
.h11x-scene__photo { position: absolute; inset: 0 -12%; will-change: transform; }
.h11x-scene__photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) var(--fy);
    animation: h11x-kenburns 22s ease-in-out infinite alternate;
}
@keyframes h11x-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.h11x-scene::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgb(8 12 10 / 0.78) 0%, rgb(8 12 10 / 0.38) 46%, rgb(8 12 10 / 0) 72%),
        linear-gradient(180deg, rgb(8 12 10 / 0) 50%, rgb(8 12 10 / 0.6) 100%);
}
.h11x-scene__shade { position: absolute; inset: 0; z-index: 2; background: #050807; opacity: 0; pointer-events: none; }
.h11x-scene__text {
    position: absolute; z-index: 3; left: var(--edge); bottom: calc(var(--strip-h) + clamp(28px, 5vh, 60px));
    display: grid; gap: 18px; justify-items: start; width: min(1100px, calc(100% - 2 * var(--edge)));
    will-change: transform, opacity;
}
.h11x-scene__title { font-size: var(--s-xl); line-height: 0.92; letter-spacing: -0.03em; max-width: 8.6em; text-wrap: balance; }
.h11x-scene__line { max-width: 31em; }
.js-cine .h11x-reel__stage { position: sticky; top: var(--header-h, 70px); height: var(--stage-h); min-height: 560px; overflow: hidden; }
.js-cine .h11x-scene { position: absolute; inset: 0; height: auto; min-height: 0; }
.js-cine .h11x-scene:not(:first-child) { clip-path: inset(0 0 0 100%); }
.js-cine .h11x-scene:not(.is-near) .h11x-scene__photo img { animation-play-state: paused; }

/* ── six values as chapters: a scope frame and a card laid over it ───────────────────── */
.h11x-values { padding: clamp(110px, 14vw, 210px) 0 clamp(90px, 10vw, 160px); }
.h11x-values__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.h11x-values__lead { max-width: 30em; color: var(--c-ink); }
.h11x-values__list { display: grid; gap: clamp(100px, 11vw, 180px); margin-top: clamp(70px, 8vw, 120px); }
.h11x-chapter { position: relative; }
.h11x-chapter__frame { position: relative; margin: 0; aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--c-raise); }
.h11x-chapter__frame img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; will-change: transform; }
.h11x-chapter__card {
    position: relative; z-index: 1; display: grid; gap: 18px; width: min(600px, 46%);
    margin: -150px 0 0 6%; padding: clamp(28px, 3vw, 48px); background: var(--c-raise);
}
.h11x-chapter--right .h11x-chapter__card { margin-left: auto; margin-right: 6%; }
.h11x-chapter__title { font-size: var(--s-l); line-height: 1; letter-spacing: -0.02em; }

/* ── magazines: the poster wall drifts, column against column ─────────────────────────── */
.h11x-mags { position: relative; padding: clamp(60px, 8vw, 120px) 0 clamp(110px, 12vw, 200px); background: var(--c-raise); }
.h11x-mags__stage {
    width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 var(--edge);
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: start;
}
.h11x-mags__intro { position: sticky; top: calc(var(--header-h, 70px) + 48px); display: grid; gap: 22px; padding-top: 40px; }
.h11x-mags__names { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.h11x-mag {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px;
    padding: 6px 14px; margin-left: -14px; border: 0; border-radius: 6px; background: transparent; color: var(--c-ink);
    cursor: pointer; text-align: left; transition: background 200ms ease, padding 260ms var(--ease);
}
.h11x-mag__name { font: 400 var(--s-m)/1.1 var(--f-title); }
.h11x-mag__count { font: 400 var(--s-small)/1 var(--f-text); color: var(--c-soft); }
.h11x-mag:hover { background: var(--c-raise-2); padding-left: 22px; }
.h11x-mag[aria-pressed="true"] { background: var(--c-ink); color: var(--c-ground); padding-left: 22px; }
.h11x-mag[aria-pressed="true"] .h11x-mag__count { color: var(--c-ground); }
.h11x-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.h11x-wall__col { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; will-change: transform; }
.h11x-wall__col[data-col="1"], .h11x-wall__col[data-col="3"] { margin-top: 120px; }
.h11x-poster a { position: relative; display: block; overflow: hidden; background: var(--c-raise-2); }
.h11x-poster img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease), opacity 400ms ease; }
.h11x-poster span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 14px; line-height: 1.2;
    background: linear-gradient(180deg, rgb(8 12 10 / 0), rgb(8 12 10 / 0.75));
    opacity: 0; transform: translateY(6px); transition: opacity 260ms ease, transform 260ms ease;
}
.h11x-poster a:hover img, .h11x-poster a:focus-visible img { transform: scale(1.05); }
.h11x-poster a:hover span, .h11x-poster a:focus-visible span, .h11x-poster.is-match span { opacity: 1; transform: none; }
.h11x-wall.is-picking .h11x-poster:not(.is-match) img { opacity: 0.16; }

/* ── closing credits and the final shot ─────────────────────────────────────────────────── */
.h11x-credits { position: relative; }
.h11x-roll { padding: clamp(110px, 11vw, 180px) var(--edge) clamp(80px, 9vw, 140px); text-align: center; }
.h11x-roll__logo { width: 120px; height: auto; margin: 0 auto 26px; }
.h11x .h11x-roll__tag { font: 400 var(--s-m)/1.2 var(--f-title); margin-bottom: clamp(56px, 6vw, 96px); }
.h11x-roll__list { display: grid; gap: clamp(40px, 4vw, 60px); margin: 0; }
.h11x-roll__group { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; row-gap: 8px; }
.h11x-roll__group dt { grid-column: 1; grid-row: 1 / span 20; justify-self: end; padding-top: 8px; font-size: var(--s-small); color: var(--c-soft); }
.h11x-roll__group dd { grid-column: 2; justify-self: start; margin: 0; font: 400 var(--s-m)/1.25 var(--f-title); }
.h11x-end { padding-bottom: clamp(110px, 12vw, 180px); }
.h11x-end__shot { position: relative; margin: 0 0 clamp(48px, 6vw, 88px); aspect-ratio: 1920 / 528; overflow: hidden; }
.h11x-end__shot img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.h11x-end__text { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px 64px; align-items: end; }
.h11x-end__text .h11x-h2 { grid-row: span 2; max-width: 9em; }
.h11x-end__text p { max-width: 28em; }

/* ── scene strip (live): where you are, every scene as a frame, and scene selection ───── */
.h11x-strip { display: none; }
.js-strip .h11x-strip {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--strip-h);
    display: flex; align-items: center; gap: 20px; padding: 0 var(--edge);
    background: rgb(9 14 11 / 0.96); color: var(--c-ink); font-family: var(--f-text);
    transition: transform 420ms var(--ease);
}
.js-strip .h11x-strip.is-away { transform: translateY(105%); }
.h11x-strip__now { display: grid; gap: 2px; min-width: 0; width: 250px; flex: 0 0 auto; margin: 0; }
.h11x-strip__chapter { font-size: 13px; color: var(--c-soft); }
.h11x-strip__scene { font: 400 18px/1.15 var(--f-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h11x-strip__frames { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 6px; }
.h11x-strip__frames li { position: relative; }
.h11x-strip__frames li.is-chapter:not(:first-child) { margin-left: 14px; }
.h11x-frame {
    position: relative; display: block; width: 58px; height: 36px; padding: 0; border: 0; border-radius: 3px; overflow: hidden;
    background: var(--c-raise); cursor: pointer; opacity: 0.42; transition: opacity 240ms ease, transform 300ms var(--ease);
}
.h11x-frame img { width: 100%; height: 100%; object-fit: cover; }
.h11x-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-ink); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.h11x-frame:hover, .h11x-frame:focus-visible { opacity: 0.85; transform: translateY(-3px); }
.h11x-frame.is-on { opacity: 1; transform: scale(1.12); }
.h11x-frame.is-on::after { transform: scaleX(1); }
.h11x-frame:active { transform: scale(0.94); }
.h11x-frame__tip {
    position: absolute; left: 50%; bottom: calc(100% + 12px); padding: 8px 12px; border-radius: 4px; white-space: nowrap;
    background: var(--c-ink); color: var(--c-ground); font-size: 14px; pointer-events: none;
    opacity: 0; transform: translate(-50%, 6px); transition: opacity 180ms ease, transform 180ms ease;
}
.h11x-frame:hover + .h11x-frame__tip, .h11x-frame:focus-visible + .h11x-frame__tip { opacity: 1; transform: translate(-50%, 0); }
.h11x-strip__step { display: flex; gap: 4px; }
.h11x-strip__btn, .h11x-strip__all, .h11x-select__close {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
    border: 0; border-radius: 999px; background: var(--c-raise-2); color: var(--c-ink); cursor: pointer;
    font: 700 15px/1 var(--f-text); transition: background 200ms ease, transform 150ms ease;
}
.h11x-strip__btn { padding: 0; }
.h11x-strip__short { display: none; }
@media (max-width: 575px) { .h11x-strip__long { display: none; } .h11x-strip__short { display: inline; } }
.h11x-strip__btn:hover, .h11x-strip__all:hover, .h11x-select__close:hover { background: #2b3a31; }
.h11x-strip__btn:active, .h11x-strip__all:active, .h11x-select__close:active { transform: scale(0.94); }
.h11x-strip__btn:disabled { opacity: 0.35; cursor: default; }
.h11x-strip :focus-visible, .h11x-select :focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }

.h11x-select {
    position: fixed; inset: 0; z-index: 65; overflow-y: auto; overscroll-behavior: contain;
    background: var(--c-ground); color: var(--c-ink);
}
.h11x-select[hidden] { display: none; }
.h11x-select__inner { max-width: 1640px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--edge) 80px; }
.h11x-select__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }
.h11x-select__chapter { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px 40px; padding: 26px 0; }
.h11x-select__chapter h3 { font-size: var(--s-m); line-height: 1.1; padding-top: 4px; }
.h11x-select__chapter ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.h11x-pick { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--c-ink); text-align: left; cursor: pointer; }
.h11x-pick__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--c-raise); }
.h11x-pick__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.h11x-pick:hover .h11x-pick__img img, .h11x-pick:focus-visible .h11x-pick__img img { transform: scale(1.06); }
.h11x-pick__title { margin-top: 6px; font: 400 21px/1.15 var(--f-title); }
.h11x-pick__who { font-size: var(--s-small); color: var(--c-soft); }
.h11x-pick.is-on .h11x-pick__img { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.h11x-pick:active { transform: scale(0.98); }
body.h11x-selecting { overflow: hidden; }

/* ── reveals (only once JS is running) ──────────────────────────────────────────────────── */
.js-rv [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease); transition-delay: var(--d, 0ms); }
.js-rv [data-rv].is-in { opacity: 1; transform: none; }
.js-rv [data-wipe] { clip-path: inset(0 100% 0 0); transition: clip-path 1500ms var(--ease); }
.js-rv .h11x-chapter--right [data-wipe] { clip-path: inset(0 0 0 100%); }
.js-rv [data-wipe].is-in { clip-path: inset(0 0 0 0); }

/* ── responsive ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .h11x-strip__now { width: 190px; }
    .h11x-frame { width: 46px; height: 30px; }
    .h11x-strip__frames li.is-chapter:not(:first-child) { margin-left: 8px; }
}
@media (max-width: 899px) {
    .proto-home11 { --strip-h: 64px; }
    .h11x-strip__frames { display: none; }
    .js-strip .h11x-strip { gap: 10px; }
    .h11x-strip__now { width: auto; flex: 1 1 auto; }
    .h11x-values__head, .h11x-end__text { grid-template-columns: minmax(0, 1fr); }
    .h11x-end__text .h11x-h2 { grid-row: auto; }
    .h11x-chapter__frame { aspect-ratio: 4 / 3; }
    .h11x-chapter__card, .h11x-chapter--right .h11x-chapter__card { width: auto; margin: -64px 16px 0; }
    .h11x-mags__stage { grid-template-columns: minmax(0, 1fr); }
    .h11x-mags__intro { position: static; padding-top: 0; }
    .h11x-wall { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 calc(-1 * var(--edge)); }
    .h11x-wall__col, .h11x-wall__col[data-col="1"], .h11x-wall__col[data-col="3"] {
        display: flex; gap: 10px; margin: 0; padding: 0 var(--edge); overflow-x: auto; scroll-snap-type: x proximity;
        scrollbar-width: none; transform: none !important;
    }
    .h11x-wall__col::-webkit-scrollbar { display: none; }
    .h11x-poster { flex: 0 0 clamp(132px, 30vw, 200px); scroll-snap-align: start; }
    .h11x-poster span { opacity: 1; transform: none; }
    .h11x-select__chapter { grid-template-columns: minmax(0, 1fr); }
    .h11x-select__chapter ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .h11x-pick__title { font-size: 18px; }
}
@media (max-width: 575px) {
    .proto-home11 { --s-xl: clamp(40px, 11.6vw, 52px); }
    .h11x-scene__title { font-size: 40px; }
    .h11x-open__second { display: none; }
    .js-cine .h11x-open__second { display: block; font-size: 36px; }
    .h11x-scene::after {
        background: linear-gradient(180deg, rgb(8 12 10 / 0) 25%, rgb(8 12 10 / 0.55) 55%, rgb(8 12 10 / 0.86) 100%);
    }
    .h11x-scene__line { font-size: 16px; }
    .h11x-roll__group { grid-template-columns: minmax(0, 1fr); }
    .h11x-roll__group dt { grid-column: 1; grid-row: auto; justify-self: center; padding: 0 0 6px; }
    .h11x-roll__group dd { grid-column: 1; justify-self: center; }
    .h11x-mag { margin-left: 0; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .h11x-scene__photo img { animation: none; }
    .h11x-btn, .h11x-link::after, .h11x-frame, .h11x-poster img, .h11x-pick__img img, .js-strip .h11x-strip { transition: none; }
}
