/* im4creative.com: Isaac Miller's portfolio. Toned to the navy studio headshot: a steel-navy glow falling off to
   near-black navy, chalk paper, blazer-navy ink. Garamond type, matted pictures, quiet small-caps labels. */
:root {
  --paper: #edf1f6; --band: #dfe6ef; --card: #f6f8fb; --mat: #fdfdfe;
  --ink: #111d2c; --muted: #526176; --rule: #c3cedb;
  --accent: #24466d; --accent-strong: #1a3554; --sky: #b4cbe4;
  --glow: rgba(61, 97, 135, .14); --shadow: rgba(12, 25, 46, .18); --scrim: rgba(5, 11, 20, .94);
  --head-bg: rgba(237, 241, 246, .92);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1626; --band: #101d30; --card: #15243a; --mat: #1c2e47;
    --ink: #e8eef5; --muted: #9eb0c6; --rule: #24364e;
    --accent: #9dbce0; --accent-strong: #c2d6ee;
    --glow: rgba(91, 132, 177, .12); --shadow: rgba(0, 0, 0, .55); --head-bg: rgba(11, 22, 38, .92);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1626; --band: #101d30; --card: #15243a; --mat: #1c2e47;
  --ink: #e8eef5; --muted: #9eb0c6; --rule: #24364e;
  --accent: #9dbce0; --accent-strong: #c2d6ee;
  --glow: rgba(91, 132, 177, .12); --shadow: rgba(0, 0, 0, .55); --head-bg: rgba(11, 22, 38, .92);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.15rem/1.62 var(--text); font-variant-numeric: oldstyle-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.label { font: 500 .92rem/1.2 var(--text); font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--muted); margin: 0 0 12px; }

/* ---------- header and footer ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--head-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.mark { font: italic 600 1.45rem/1 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.top nav a { font: 500 .98rem/1 var(--text); font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--muted); text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 10px; min-height: 0; }
  .top nav { justify-content: flex-start; gap: 2px 16px; }
}
.foot { border-top: 1px solid var(--rule); padding-block: 26px 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 .92rem/1.2 var(--text); font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot span { margin-right: auto; }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1px solid var(--accent); color: var(--accent); background: transparent;
       font: 500 .95rem/1 var(--text); font-variant-caps: all-small-caps; letter-spacing: .14em; text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn:hover { background: var(--accent); color: var(--paper); }
.btn.solid { background: var(--accent); color: var(--paper); }
.btn.solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { border-color: transparent; padding-inline: 8px; }
.btn.ghost:hover { background: transparent; color: var(--accent-strong); text-decoration: underline; }

/* ---------- navy bands: hero, page heads, contact ---------- */
.band {
  --ink: #f2f6fa; --muted: #c9d6e5; --rule: #2f4866; --accent: #b4cbe4; --accent-strong: #ffffff; --paper: #0e2036;
  color: var(--ink); background-color: #0e2036;
  background-image: radial-gradient(ellipse 72% 105% at 30% 35%, #46678a 0%, #375a7e 24%, #254563 50%, #15304b 74%, #0e2036 100%);
}
.band .btn.solid { background: #f2f6fa; border-color: #f2f6fa; color: #24466d; }
.band .btn.solid:hover { background: #b4cbe4; border-color: #b4cbe4; color: #111d2c; }
.band .btn:not(.solid):hover { background: #f2f6fa; color: #24466d; }

.hero { padding-block: 64px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.portrait { margin: 0; max-width: 420px; justify-self: center; background: #fdfdfe; padding: 10px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(1.18rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink); max-width: 38em; margin-top: 18px; }
.hero .lede { color: #e3ebf4; }
@media (max-width: 860px) {
  .hero { padding-block: 32px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 340px; }
}

.page-head { padding-block: 72px 64px; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 500; }
.page-head .lede { color: #e3ebf4; }

/* ---------- work grid ---------- */
.work { padding-block: 72px 40px; }
.sec-head { max-width: 46em; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; margin-bottom: 10px; }
.sec-head p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chip { border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 15px; cursor: pointer;
        font: 500 1rem/1 var(--text); }
.chip span { color: var(--muted); font-size: .85em; margin-left: 2px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 30px; }
.card a { display: grid; gap: 10px; color: var(--ink); text-decoration: none; }
.mat { display: block; background: var(--mat); padding: 8px; border: 1px solid var(--rule); box-shadow: 0 18px 32px -26px var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.card a:hover .mat { transform: translateY(-3px); box-shadow: 0 26px 40px -24px var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font-size: 1.6rem; margin-top: 6px; }
.card a:hover h3 { color: var(--accent); }
.card .meta { font: 500 .9rem/1.3 var(--text); font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--muted); margin: 0; }
.card .line { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 26px 20px; }
.cards.compact h3 { font-size: 1.3rem; }
.more-link { margin: 48px 0 0; font-style: italic; }

.teaser { padding-block: 40px 88px; }
.teaser-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; border-top: 3px double var(--rule); padding-top: 48px; }
.teaser h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 500; }
.teaser p { font-size: 1.2rem; max-width: 36em; }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- project pages ---------- */
.project-head { padding-block: 40px 28px; max-width: 900px; margin-inline: auto; text-align: center; }
.project-head .back { font-style: italic; margin-bottom: 26px; }
.project-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
.project-head .lede { margin-inline: auto; color: var(--muted); }
.cover { margin: 0 auto 48px; }
.cover button, .tiles button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cover img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--mat); padding: 10px; border: 1px solid var(--rule); box-shadow: 0 24px 44px -30px var(--shadow); }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-bottom: 24px; }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; gap: 28px; } }
.prose { max-width: 40em; }
.prose h2 { font-size: 2rem; font-weight: 500; margin: 1.6em 0 .5em; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.side { position: sticky; top: 84px; display: grid; gap: 22px; }
@media (max-width: 860px) { .side { position: static; } }
.facts { margin: 0; display: grid; gap: 12px; border-top: 3px double var(--rule); padding-top: 18px; }
.facts dt { font: 500 .88rem/1.2 var(--text); font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.numbers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.numbers b { display: block; font: 600 2rem/1 var(--display); color: var(--accent); }
.numbers span { font-size: .95rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.watch-list { display: grid; gap: 6px; }
.watch-list .label { margin-bottom: 4px; }
.watch { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.watch:hover { color: var(--accent); }
.watch .play { font-size: .75em; color: var(--accent); }
.watch time { margin-left: auto; color: var(--muted); font-size: .95rem; }
.video { margin: 28px 0 0; }
.video video { display: block; width: 100%; height: auto; background: #000; border: 8px solid var(--mat); box-shadow: 0 18px 32px -26px var(--shadow); }
.video figcaption, .tiles figcaption { font: italic 400 .95rem/1.4 var(--text); color: var(--muted); padding-top: 7px; }

.gallery { margin-top: 40px; }
.gallery h2 { font-size: 1.9rem; font-weight: 500; margin-bottom: 18px; padding-top: 22px; border-top: 1px solid var(--rule); }
.tiles.masonry { columns: 3 260px; column-gap: 16px; }
.tiles.masonry figure { margin: 0 0 18px; break-inside: avoid; }
.tiles.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px 16px; align-items: start; }
.tiles.grid figure { margin: 0; }
.tiles img { width: 100%; background: var(--mat); padding: 6px; border: 1px solid var(--rule); transition: border-color .2s; }
.tiles button:hover img { border-color: var(--accent); }
.tiles.photos { margin-top: 8px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 64px 0 72px; padding-top: 22px; border-top: 3px double var(--rule); }
.pager a { display: grid; gap: 4px; font: 600 1.4rem/1.15 var(--display); color: var(--ink); text-decoration: none; }
.pager a:hover { color: var(--accent); }
.pager small { font: 500 .88rem/1 var(--text); font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--muted); }
.pager .next { text-align: right; }

/* ---------- story ---------- */
.chapter { padding-block: 64px 24px; border-bottom: 1px solid var(--rule); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 48px; }
.chapter h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 500; }
.chapter .prose p { font-size: 1.2rem; }
.related { margin-top: 28px; padding-bottom: 32px; }
@media (max-width: 760px) { .chapter-grid { grid-template-columns: 1fr; gap: 10px; } }
.end-cta { padding-block: 48px 80px; }

/* ---------- archive ---------- */
.archive { padding-block: 40px 72px; }
.arch { margin-top: 44px; }
.arch h2 { font-size: 2.2rem; font-weight: 500; margin-bottom: 8px; padding-top: 22px; border-top: 3px double var(--rule); }
.arch .note { color: var(--muted); margin-bottom: 22px; }
.films { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 26px 20px; }
.film { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.film .poster { position: relative; display: block; background: var(--mat); padding: 6px; border: 1px solid var(--rule); }
.film .poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film time { position: absolute; right: 12px; bottom: 12px; background: rgba(8, 16, 28, .82); color: #fff; font-size: .85rem; padding: 2px 7px; }
.film strong { font: 600 1.2rem/1.2 var(--display); }
.film small { color: var(--muted); font-size: .95rem; }
a.film:hover strong { color: var(--accent); }

/* ---------- contact ---------- */
.contact { padding-block: 80px; text-align: center; }
.contact h2 { font-size: clamp(2.6rem, 6vw, 4rem); font-style: italic; font-weight: 500; }
.contact-lede { max-width: 32em; margin: 16px auto 24px; color: #e3ebf4; font-size: 1.2rem; }
.mail { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font: italic 500 1.6rem/1.2 var(--display); }
.mail a { color: var(--ink); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; font-size: 1rem; }
.contact-links span { color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 16px 0; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #dfe7f1; font: italic 400 1rem/1.4 var(--text); text-align: center; max-width: 60ch; padding-inline: 16px; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 10px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: 8px; right: 12px; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 40px 1fr 40px; } .lightbox img { max-width: calc(100vw - 80px); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mat, .card a:hover .mat { transition: none; transform: none; } }
@media print { .top, .foot, .contact, .chips, .lightbox, .pager { display: none !important; } .band { background: none; color: #000; } }

/* ---------- showcase: a timeline you move through left to right ---------- */
body.showcase-page { background: #0b1626; }
.showcase-page .top { --ink: #f2f6fa; --muted: #b9c8da; background: rgba(8, 17, 30, .55); border-bottom-color: rgba(255, 255, 255, .08); }
.tl-live, .tl-live body { height: 100%; overflow: hidden; }
.tl-wrap { --tl-ink: #f2f6fa; --tl-muted: #a9bbd0; --tl-soft: #c9d6e5; --tl-rule: rgba(242, 246, 250, .16); --pad: clamp(20px, 3vw, 44px); --colgap: clamp(18px, 2vw, 30px);
  position: relative; height: calc(100svh - var(--top-h, 61px)); min-height: 480px; display: grid; grid-template-rows: auto minmax(0, 1fr);
  color: var(--tl-ink); background: radial-gradient(ellipse 90% 85% at 35% 30%, #1a3150 0%, #10213a 50%, #0b1626 100%); }

/* The year ruler: where you are in time; click a year or drag along it */
.tl-ruler { padding: 12px var(--pad) 4px; }
.tl-line { position: relative; display: flex; flex-wrap: wrap; gap: 6px 18px; min-height: 30px; touch-action: none; cursor: pointer; }
.tl-live .tl-line { display: block; height: 32px; }
.tl-live .tl-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--tl-rule); }
.tick { font: 500 .85rem/1 var(--text); font-variant-numeric: lining-nums; letter-spacing: .06em; color: var(--tl-muted); text-decoration: none; padding: 4px 0; }
.tl-live .tick { position: absolute; bottom: 5px; padding: 0 0 9px 6px; border-left: 1px solid rgba(242, 246, 250, .35); white-space: nowrap; }
.tick:hover, .tick.on { color: #fff; border-left-color: #fff; }
.tl-live .tick.tight:not(.on) { color: transparent; }
.tl-window { display: none; }
.tl-live .tl-window { display: block; position: absolute; bottom: 1px; height: 9px; min-width: 14px; border-radius: 9px; background: rgba(242, 246, 250, .24); pointer-events: none; }

/* The scroller and its track */
.tl { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; transition: opacity .16s ease; }
.tl-live .tl { scrollbar-width: none; cursor: grab; }
.tl-live .tl::-webkit-scrollbar { display: none; }
.tl.dragging { cursor: grabbing; user-select: none; }
.tl.switching { opacity: 0; }
.tl-track { position: relative; display: flex; height: 100%; width: max-content; box-sizing: border-box; padding: 0 var(--pad) 96px 0; }
.tl-intro, .tl-end { flex: none; width: clamp(280px, 30vw, 460px); box-sizing: border-box; padding: 0 var(--pad); display: flex; flex-direction: column; justify-content: center; }
.tl-end { margin-left: var(--colgap); border-left: 1px solid var(--tl-rule); }
.tl-intro .label { color: var(--tl-muted); font-variant-numeric: lining-nums; }
.tl-title { font: italic 500 clamp(2.5rem, 4.6vw, 4.2rem)/1 var(--display); margin: 0 0 16px; text-wrap: balance; }
.tl-hint { color: var(--tl-soft); margin: 0 0 22px; max-width: 34ch; }
.tl-go { font: 500 .95rem/1 var(--text); font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--tl-muted); margin: 0; }
.tl-go span { display: inline-block; animation: tl-nudge 1.8s ease-in-out infinite; }
@keyframes tl-nudge { 50% { transform: translateX(7px); } }
.tl-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.tl-links a { color: var(--tl-ink); font-style: italic; }

/* A year: its number stays pinned at the left while you move through its work */
.yr { flex: none; display: flex; flex-direction: column; margin-left: var(--colgap); padding: 16px 0 0 var(--colgap); border-left: 1px solid var(--tl-rule); }
.yr-head { position: sticky; left: var(--pad); align-self: flex-start; display: grid; gap: 6px; margin: 0 0 18px; padding-right: 24px; font-weight: 500; }
.yr-num { font: 500 clamp(2.3rem, 4vw, 3.5rem)/.95 var(--display); font-variant-numeric: lining-nums; white-space: nowrap; }
.yr-note { font: 500 .95rem/1.2 var(--text); font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--tl-muted); white-space: nowrap; }
.yr-row { flex: 1; min-height: 0; display: flex; gap: var(--colgap); }
.yr.out, .pj.out { display: none; }

/* A project: title, then cover, films and pictures filling the height */
.pj { flex: none; width: clamp(270px, 24vw, 390px); display: flex; flex-direction: column; min-height: 0; }
.pj.wide { width: clamp(320px, 36vw, 580px); }
.pj-head { flex: none; margin-bottom: 12px; }
.pj-when { font: 600 .82rem/1.2 var(--text); font-variant-caps: all-small-caps; font-variant-numeric: lining-nums; letter-spacing: .16em; color: #e9c46a; margin: 0 0 6px; }
.pj-head h3 { font: 600 clamp(1.35rem, 1.8vw, 1.75rem)/1.1 var(--display); margin: 0 0 5px; }
.pj-head h3 a { color: inherit; text-decoration: none; }
.pj-head h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pj-meta { font: 500 .85rem/1.25 var(--text); font-variant-caps: all-small-caps; font-variant-numeric: lining-nums; letter-spacing: .12em; color: var(--tl-muted); margin: 0; }
.pj-sum { font: italic 400 1rem/1.35 var(--text); color: var(--tl-soft); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-sum:empty { display: none; }
.pj-media { flex: 1; min-height: 180px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.m { position: relative; display: block; min-height: 0; overflow: hidden; border: 0; border-radius: 3px; padding: 0; background: #15263d; cursor: zoom-in; font: inherit; color: inherit; }
a.m { cursor: pointer; }
.m img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .5s ease; -webkit-user-drag: none; user-select: none; }
.tl-live .m img { opacity: 0; }
.tl-live .m img.in { opacity: 1; }
.m:hover img { transform: scale(1.04); }
.tl.dragging .m img { transform: none; }
.m:focus-visible, .pj-head a:focus-visible, .tick:focus-visible { outline: 2px solid #b4cbe4; outline-offset: 2px; }
.m-cover { grid-column: 1 / -1; }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.s6 { grid-column: span 6; }
.m .play { position: absolute; left: 8px; bottom: 8px; background: rgba(8, 16, 28, .84); color: #fff; font: 600 .8rem/1 var(--text); font-variant-numeric: lining-nums;
  padding: 5px 8px 5px 7px; border-radius: 2px; }
.m-more::after { content: ""; position: absolute; inset: 0; background: rgba(8, 16, 28, .62); transition: background .2s; }
.m-more:hover::after { background: rgba(8, 16, 28, .45); }
.m-n { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font: 500 1.7rem/1 var(--display); font-variant-numeric: lining-nums; color: #fff; }
.pj-stack { flex: none; width: clamp(230px, 19vw, 300px); display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.pj-stack .pj.piece { width: auto; flex: 1 1 0; }
.pj.piece .pj-head { margin-bottom: 8px; }
.pj.piece .pj-when { margin-bottom: 3px; }
.pj.piece .pj-head h3 { font-size: 1.1rem; margin: 0; }
.pj.piece .pj-sum { font-size: .92rem; margin-top: 2px; -webkit-line-clamp: 1; }
.pj.piece .pj-media { min-height: 80px; }
.pj-stack.out { display: none; }

/* The filter bar */
.tl-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 6px;
  max-width: calc(100vw - 24px); padding: 6px; border-radius: 999px; background: rgba(8, 17, 30, .7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); }
.tl-bar .chips { display: flex; flex-wrap: nowrap; gap: 2px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.tl-bar .chips::-webkit-scrollbar { display: none; }
.tl-bar .chip { background: transparent; border-color: transparent; color: #dfe7f1; white-space: nowrap; }
.tl-bar .chip span { color: #9eb0c6; }
.tl-bar .chip:hover { border-color: rgba(255, 255, 255, .25); }
.tl-bar .chip[aria-pressed="true"] { background: #f2f6fa; border-color: #f2f6fa; color: #111d2c; }
.tl-bar .chip[aria-pressed="true"] span { color: #526176; opacity: 1; }
.list-link { flex: none; color: #dfe7f1; font-style: italic; padding: 0 14px 0 8px; white-space: nowrap; }
.list-link:hover { color: #fff; }

@media (max-width: 640px) {
  .tl-wrap { --colgap: 16px; }
  .pj, .pj.wide { width: 80vw; }
  .pj-stack { width: 70vw; }
  .tl-intro, .tl-end { width: 84vw; }
  .yr-note { font-size: .85rem; }
  .tick .c { display: none; }
  .tick::before { content: "\2019"; }
  .tl-bar { left: 10px; right: 10px; transform: none; max-width: none; border-radius: 14px; }
  .tl-track { padding-bottom: 84px; }
}
@media (max-height: 640px) { .pj-sum { display: none; } .yr-head { margin-bottom: 10px; } .yr { padding-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .m img, .tl { transition: none; } .tl-go span { animation: none; } }
