/* JumpGate blog: the index, and three kinds of post (article, tutorial, story) */
:root {
  --bg: #1a0f0b; --surface: #241812; --ink: #f6e9dc; --dim: rgba(246, 233, 220, .74); --line: rgba(246, 233, 220, .16);
  --accent: #e07a3c; --cyan: #4fe0ee; --paper: #f4ead2; --paper-ink: #17110c;
  --display: "Poppins", system-ui, sans-serif; --text: "Poppins", system-ui, sans-serif; --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --g: clamp(16px, 4vw, 56px); --bar: 4rem;
}
body.w-grimshaw-city {
  --bg: #07080c; --surface: #10111a; --ink: #eeeaf2; --dim: #a9a3bb; --line: rgba(238, 234, 242, .16);
  --display: "Cinzel", "Times New Roman", serif; --text: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--paper); color: var(--paper-ink); }
.skip:focus { top: 12px; }
.kicker { margin: 0 0 .9rem; font: 500 12.5px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.draft-flag { display: inline-block; margin: 0 0 1rem; padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--cyan); color: var(--cyan); font-size: 13px; }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 24px; padding: 0 var(--g);
       background: linear-gradient(to bottom, color-mix(in oklab, var(--bg) 94%, transparent), color-mix(in oklab, var(--bg) 55%, transparent) 70%, transparent); font-size: 14px; }
.bar__home { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; font: 500 14px/1 "Poppins", system-ui, sans-serif; letter-spacing: .04em; white-space: nowrap; }
.bar__home img { height: 36px; width: auto; }
.bar__home b { color: var(--accent); font-weight: 500; }
.bar nav { display: flex; gap: 22px; }
.bar nav a { color: var(--dim); text-decoration: none; padding: 10px 0; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }
.bar__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.bar__progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
@media (max-width: 480px) { .bar__home span { display: none; } }

/* ---------- entrances (only when the script is running and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .1, 1); transition-delay: var(--delay, 0ms); }
  .js [data-in].is-in { opacity: 1; transform: none; }
  .js [data-letters] .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .1, 1); transition-delay: calc(var(--i) * 28ms + 120ms); }
  .js [data-letters].is-in .ch { opacity: 1; transform: none; }
}
[data-letters] .word { display: inline-block; white-space: nowrap; }

/* ---------- index ---------- */
.index-head { padding: calc(var(--bar) + clamp(2rem, 8vh, 5rem)) var(--g) 2rem; max-width: 84rem; margin: 0 auto; }
.index-head h1 { font-weight: 300; font-size: clamp(44px, 9vw, 104px); letter-spacing: -.03em; line-height: .98; }
.index-head__dek { max-width: 36rem; color: var(--dim); margin: 1.2rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.chips a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); text-decoration: none; font-size: 14px; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.empty { padding: 2rem var(--g) 6rem; max-width: 84rem; margin: 0 auto; color: var(--dim); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); padding: 1rem var(--g) 6rem; max-width: 84rem; margin: 0 auto; }
.cards--row { padding: 0; max-width: none; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
        transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: border-color .25s, box-shadow .25s; }
.card:hover, .card:focus-visible { border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.card__art { aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, color-mix(in oklab, var(--accent) 34%, #000), #0b0705); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.card:hover .card__art img { transform: scale(1.06); }
.card__copy { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.card__type { margin: 0; font: 500 11.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.card--tutorial .card__type { color: var(--cyan); }
.card__type i { font-style: normal; color: var(--dim); }
.card__type i::before { content: "· "; }
.card__type em { font-style: normal; margin-left: .5em; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--cyan); color: var(--cyan); letter-spacing: .06em; }
.card h3 { font: 500 clamp(19px, 1.6vw, 23px)/1.22 "Poppins", system-ui, sans-serif; }
.card__dek { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin: auto 0 0; padding-top: .6rem; color: var(--dim); font-size: 12.5px; }
/* a story card is a comic cover: taller art, inked frame */
.card--story { background: #000; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--accent); }
.card--story:hover, .card--story:focus-visible { border-color: var(--ink); box-shadow: 10px 10px 0 var(--accent); }
.card--story .card__art { aspect-ratio: 4 / 5; }
.card--story .card__copy { position: relative; margin-top: -5.5rem; padding-top: 3rem; background: linear-gradient(to bottom, transparent, #000 3.2rem); }
.card--story h3 { font-family: var(--display); letter-spacing: .01em; }
@media (min-width: 981px) {
  .card--lead { grid-column: 1 / -1; flex-direction: row; min-height: 24rem; }
  .card--lead .card__art { flex: 1.35; aspect-ratio: auto; }
  .card--lead .card__copy { flex: 1; justify-content: center; padding: 2.4rem; margin: 0; background: none; }
  .card--lead h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
  .card--lead .card__meta { margin-top: .6rem; }
}

/* ---------- post headers ---------- */
.hero__copy h1 { font-size: clamp(36px, 6.4vw, 76px); font-weight: 400; letter-spacing: -.02em; }
.hero__dek { margin: 1.2rem 0 0; max-width: 40rem; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--dim); }
.hero__facts { margin: 1.4rem 0 0; font-size: 13px; letter-spacing: .06em; color: var(--dim); }
.hero--standard { padding: calc(var(--bar) + clamp(2rem, 7vh, 5rem)) var(--g) 0; max-width: 72rem; margin: 0 auto; }
.hero--standard .hero__copy { max-width: 54rem; }
.hero--standard .hero__art, .hero--tutorial .hero__art { overflow: hidden; border-radius: 16px; background: var(--surface); }
.hero--standard .hero__art { margin-top: clamp(2rem, 5vh, 3.5rem); aspect-ratio: 21 / 9; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero--standard .hero__art img, .hero--tutorial .hero__art img { height: 118%; transform: translateY(calc(-9% + var(--v, 0) * 7%)); }
/* a cover with a chosen focus holds still in the page header, so the chosen edge is never pushed out of frame */
.hero--standard .hero__art img[data-focus], .hero--tutorial .hero__art img[data-focus] { height: 100%; transform: none; }
.hero--tutorial { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
                  padding: calc(var(--bar) + clamp(2rem, 6vh, 4rem)) var(--g) 0; max-width: 84rem; margin: 0 auto; }
.hero--tutorial .hero__copy h1 { font-size: clamp(32px, 4.6vw, 60px); }
.hero--tutorial .hero__art { aspect-ratio: 4 / 3; }
.hero--tutorial .kicker { color: var(--cyan); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.hero__chips li { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.hero__chips span { display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
@media (max-width: 860px) { .hero--tutorial { grid-template-columns: minmax(0, 1fr); } }

.hero--story { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: #000; }
.hero--story .hero__art { position: absolute; inset: -4% 0; transform: translateY(calc(var(--h, 0) * 14vh)) scale(calc(1.04 + var(--h, 0) * .1)); will-change: transform; }
.hero--story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .1) 70%), radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(0, 0, 0, .6)); }
.hero--story .hero__copy { position: relative; z-index: 1; padding: 0 var(--g) clamp(4rem, 14vh, 9rem); max-width: 70rem; opacity: calc(1 - var(--h, 0) * 1.6); transform: translateY(calc(var(--h, 0) * -8vh)); }
.hero--story h1 { font-size: clamp(44px, 9.5vw, 128px); font-weight: 600; line-height: .96; letter-spacing: 0; text-shadow: 0 4px 40px rgba(0, 0, 0, .7); }
.hero--story .hero__dek { color: var(--ink); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.hero__cue { position: absolute; z-index: 1; left: 50%; bottom: 1.4rem; margin: 0; transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); opacity: calc(1 - var(--h, 0) * 5); }
.hero__cue::after { content: ""; display: block; width: 1px; height: 2.2rem; margin: .7rem auto 0; background: linear-gradient(var(--accent), transparent); }
@media (prefers-reduced-motion: no-preference) { .hero__cue::after { animation: cue 2s ease-in-out infinite; transform-origin: 50% 0; } }
@keyframes cue { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ---------- the reading column ---------- */
.flow { display: grid; padding: clamp(2.5rem, 7vh, 5rem) 0 2rem;
        grid-template-columns: [full-start] minmax(var(--g), 1fr) [wide-start] minmax(0, 9rem) [text-start] minmax(0, 42rem) [text-end] minmax(0, 9rem) [wide-end] minmax(var(--g), 1fr) [full-end]; }
.flow > * { grid-column: text; min-width: 0; margin: 0; }
.flow > * + * { margin-top: 1.7rem; }
.flow > .is-wide { grid-column: wide; }
.flow > .is-full { grid-column: full; }
.flow > .is-wide + *, .flow > .is-full + *, .flow > * + .is-wide, .flow > * + .is-full { margin-top: clamp(2.4rem, 6vh, 4.5rem); }
.b-text > * { margin: 0; } .b-text > * + * { margin-top: 1.15em; }
.b-text h2, .b-heading { font: 500 clamp(24px, 2.6vw, 34px)/1.2 var(--display); margin-top: 1.4em; color: var(--ink); }
.b-text h3 { font: 500 20px/1.3 var(--text); color: var(--accent); margin-top: 1.6em; }
.b-text p, .b-text li { color: var(--dim); }
.b-text strong { color: var(--ink); font-weight: 600; }
.b-text ul, .b-text ol { padding-left: 1.3em; } .b-text li + li { margin-top: .45em; }
.b-text li::marker { color: var(--accent); }
.b-text blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 3px solid var(--accent); }
.b-text code { font: .9em var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--surface); }
.flow--standard > .b-text:first-of-type > p:first-child { font-size: 1.18em; line-height: 1.6; color: var(--ink); }
.flow--standard > .b-text:first-of-type > p:first-child::first-letter { float: left; font: 500 4.1em/.82 var(--display); padding: .06em .12em 0 0; color: var(--accent); }

figure { margin: 0; }
figcaption { margin-top: .7rem; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.b-image__frame { overflow: hidden; border-radius: 12px; background: var(--surface); }
.b-image__frame img, .b-image__frame video { width: 100%; }
.b-image.is-wide .b-image__frame img, .b-image.is-full .b-image__frame img { height: 112%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .js .b-image.is-wide .b-image__frame, .js .b-image.is-full .b-image__frame { aspect-ratio: var(--ar, 16 / 9); }
  .js .b-image.is-wide .b-image__frame img, .js .b-image.is-full .b-image__frame img { height: 114%; transform: translateY(calc(-7% + var(--v, 0) * 6%)); }
}
.b-image.is-full .b-image__frame { border-radius: 0; }
.b-image.is-full figcaption { padding: 0 var(--g); }
[data-zoom] img { cursor: zoom-in; }
.b-video__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.b-video__frame video, .b-video__frame iframe, .b-video__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.b-video__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.b-video__play span { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 30px rgba(0, 0, 0, .6); transition: transform .2s; }
.b-video__play span::after { content: ""; position: absolute; left: 31px; top: 24px; border: 14px solid transparent; border-left: 22px solid #fff; border-right: 0; }
.b-video__play:hover span { transform: scale(1.08); }
.b-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.b-gallery figure { overflow: hidden; border-radius: 10px; background: var(--surface); }
.b-gallery img, .b-gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.b-gallery.is-tall img, .b-gallery.is-tall video { aspect-ratio: 4 / 5; }
.b-gallery figure:hover img { transform: scale(1.05); }
.b-gallery figcaption { margin: 0; padding: .6rem .8rem .8rem; }
.b-quote { padding: 0 0 0 clamp(1.2rem, 3vw, 2.4rem); border-left: 4px solid var(--accent); }
.b-quote p { margin: 0; font: 300 clamp(24px, 3.2vw, 40px)/1.28 var(--display); color: var(--ink); }
.b-quote cite { display: block; margin-top: 1rem; font: 500 12.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--dim); }
.b-callout { padding: 1.1rem 1.3rem; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); background: var(--surface); }
.b-callout.is-warning { border-left-color: var(--accent); } .b-callout.is-note { border-left-color: var(--dim); }
.b-callout > * { margin: 0; } .b-callout > * + * { margin-top: .6em; }
.b-callout p, .b-callout li { color: var(--dim); font-size: 15.5px; }
.b-callout__label { font: 500 11.5px/1.3 var(--mono) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan) !important; }
.b-callout.is-warning .b-callout__label { color: var(--accent) !important; } .b-callout.is-note .b-callout__label { color: var(--ink) !important; }
.b-divider { width: 100%; border: 0; height: 1px; background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent); }

/* ---------- tutorial ---------- */
.tut { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); max-width: 84rem; margin: 0 auto; padding: 0 var(--g); }
.tut--plain { grid-template-columns: minmax(0, 1fr); max-width: 64rem; }
.flow--tutorial { grid-template-columns: [full-start wide-start text-start] minmax(0, 44rem) [text-end] minmax(0, 1fr) [wide-end full-end]; }
.rail { position: sticky; top: calc(var(--bar) + 1.5rem); align-self: start; margin-top: clamp(2.5rem, 7vh, 5rem); max-height: calc(100vh - var(--bar) - 3rem); overflow: auto; }
.rail__title { margin: 0 0 .8rem; font: 500 11.5px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.rail a { display: flex; gap: .8rem; padding: .55rem 0 .55rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--dim); text-decoration: none; font-size: 14px; line-height: 1.35; transition: color .2s, border-color .2s; }
.rail a span { font: 500 12px/1.6 var(--mono); color: var(--dim); opacity: .7; }
.rail a:hover { color: var(--ink); }
.rail .is-done a { color: var(--ink); } .rail .is-done a span { color: var(--cyan); opacity: 1; }
.rail .is-now a { color: var(--ink); border-left-color: var(--cyan); } .rail .is-now a span { color: var(--cyan); opacity: 1; }
.now { display: none; }
@media (max-width: 980px) {
  .tut { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .now { display: flex; position: fixed; z-index: 15; left: 12px; right: 12px; bottom: 12px; margin: 0; gap: .7rem; align-items: center; padding: 10px 16px; border-radius: 999px;
         background: color-mix(in oklab, var(--bg) 92%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 13.5px;
         opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s; pointer-events: none; }
  .now.is-on { opacity: 1; transform: none; }
  .now b { font: 500 12px/1 var(--mono); color: var(--cyan); white-space: nowrap; }
  .now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.b-materials { padding: 1.4rem 1.5rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.b-materials h2 { font: 500 12.5px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.b-materials ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 2rem; }
.b-materials li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.b-materials label { display: flex; align-items: flex-start; gap: .7rem; flex: 1; cursor: pointer; font-size: 15px; line-height: 1.4; }
.b-materials input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cyan); }
.b-materials b { font-weight: 500; } .b-materials small { color: var(--dim); font-size: 13.5px; }
.b-materials input:checked + span { opacity: .5; text-decoration: line-through; }
.b-materials a { font-size: 13px; }
.b-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: start; padding-top: clamp(1.5rem, 4vh, 2.5rem); border-top: 1px solid var(--line); }
.b-step.no-media { grid-template-columns: minmax(0, 44rem); }
.b-step__copy > * { margin: 0; } .b-step__copy > * + * { margin-top: 1em; }
.b-step__no { font: 300 clamp(56px, 7vw, 96px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px var(--cyan); letter-spacing: -.03em; }
.b-step h2 { font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--text); }
.b-step__copy p, .b-step__copy li { color: var(--dim); } .b-step__copy strong { color: var(--ink); font-weight: 600; }
.b-step__copy ul, .b-step__copy ol { padding-left: 1.3em; } .b-step__copy li::marker { color: var(--cyan); }
.b-step__media { position: sticky; top: calc(var(--bar) + 1.5rem); overflow: hidden; border-radius: 12px; background: var(--surface); }
.b-step__media img, .b-step__media video { width: 100%; }
@media (max-width: 760px) { .b-step { grid-template-columns: minmax(0, 1fr); } .b-step__media { position: static; order: -1; } }
.b-compare__frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface); user-select: none; }
.b-compare__frame img { width: 100%; }
.b-compare__before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.b-compare__bar { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .6); }
.b-compare__bar::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: #fff; color: #111; font: 600 16px/44px system-ui, sans-serif; text-align: center; }
.b-compare__tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .65); font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.b-compare__tag.is-before { left: 12px; } .b-compare__tag.is-after { right: 12px; }
.b-compare__frame input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.b-compare__frame:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- story: captions ---------- */
.cap { margin: 0; max-width: 26rem; }
.cap--narration { padding: .7rem 1rem .75rem; background: var(--paper); color: var(--paper-ink); border: 2px solid var(--paper-ink); box-shadow: 5px 5px 0 var(--accent);
                  font: 600 clamp(12.5px, 1.05vw, 14.5px)/1.5 var(--text); letter-spacing: .07em; text-transform: uppercase; }
.cap--narration a { color: inherit; }
.cap--speech, .cap--shout { position: relative; padding: .8rem 1.2rem .9rem; border-radius: 1.5rem; background: #fff; color: #14100c; border: 2px solid #14100c; font: 500 clamp(15px, 1.25vw, 18px)/1.4 var(--text); }
.cap--speech::after, .cap--shout::after { content: ""; position: absolute; left: 2rem; bottom: -14px; width: 22px; height: 16px; background: inherit; border: inherit; border-top: 0; border-left: 0; clip-path: polygon(0 0, 100% 0, 20% 100%); transform: translateY(-2px); }
.cap--speech b, .cap--shout b { display: block; margin-bottom: .15rem; font: 600 10.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in oklab, var(--accent) 70%, #000); }
.cap--shout { background: var(--accent); color: #fff; border-radius: .4rem; font-weight: 700; font-style: italic; font-size: clamp(18px, 1.8vw, 26px); text-transform: uppercase; transform: rotate(-2deg); box-shadow: 5px 5px 0 #000; }
.cap--shout b { color: #fff; }

/* ---------- story: the column ---------- */
.flow--story { padding-top: clamp(3rem, 9vh, 6rem); }
.flow--story > .b-text { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.8; }
.flow--story > .b-text p { color: color-mix(in oklab, var(--ink) 88%, transparent); }
.flow--story > .b-text:first-child > p:first-child::first-letter { float: left; font: 600 4.4em/.8 var(--display); padding: .08em .14em 0 0; color: var(--accent); }
.b-narration { display: flex; } .b-narration .cap { max-width: 34rem; }
.b-narration:nth-of-type(even) { justify-content: flex-end; }
.b-dialogue { display: flex; padding-bottom: 14px; } .b-dialogue.is-right { justify-content: flex-end; }
.b-dialogue.is-right .cap::after { left: auto; right: 2rem; transform: translateY(-2px) scaleX(-1); }
.b-sfx { overflow: hidden; text-align: center; padding: .1em 0; }
.b-sfx span { display: inline-block; font: 700 clamp(4rem, 19vw, 16rem)/.9 var(--display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: transparent;
              -webkit-text-stroke: 2px var(--accent); text-shadow: 6px 6px 0 color-mix(in oklab, var(--accent) 28%, transparent); transform: rotate(-4deg) translateX(calc(var(--v, 0) * -7vw)); }

.b-chapter { position: relative; min-height: 86vh; display: grid; place-items: center; overflow: hidden; text-align: center; background: #000; }
.b-chapter__art { position: absolute; inset: -10% 0; transform: translateY(calc(var(--v, 0) * 8%)); }
.b-chapter__art img, .b-chapter__art video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.b-chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.b-chapter__copy { position: relative; z-index: 1; padding: 4rem var(--g); }
.b-chapter h2 { font-size: clamp(40px, 8.5vw, 116px); font-weight: 600; line-height: .98; text-shadow: 0 4px 40px rgba(0, 0, 0, .8); }
.b-chapter .kicker { letter-spacing: .4em; }

/* a scene: one picture held on screen while its layers drift and the captions arrive */
.b-scene { position: relative; --p: 0; }
.scene__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.scene__art, .scene__layer { position: absolute; inset: 0; }
.scene__layer { inset: -8%; will-change: transform; }
.scene__layer img, .scene__layer video { width: 100%; height: 100%; object-fit: cover; }
.scene__layer.is-cut { inset: 6% -8% -8%; }
.scene__layer.is-cut img { object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0 40px rgba(0, 0, 0, .6)); }
.scene__layer.is-cut.on-left img { object-position: 14% 100%; } .scene__layer.is-cut.on-right img { object-position: 86% 100%; }
.scene__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 90% at 50% 50%, transparent 52%, rgba(0, 0, 0, .62)), linear-gradient(var(--bg), transparent 9%, transparent 91%, var(--bg)); }
.scene__caps { position: absolute; inset: 0; z-index: 2; display: grid; grid-template: "tl tr" 1fr "c c" auto "bl br" 1fr / 1fr 1fr; gap: 1rem; padding: calc(var(--bar) + 1.5rem) var(--g) clamp(2rem, 7vh, 4rem); }
.caps { display: flex; flex-direction: column; gap: 1.1rem; }
.caps.at-top-left { grid-area: tl; align-items: flex-start; } .caps.at-top-right { grid-area: tr; align-items: flex-end; }
.caps.at-bottom-left { grid-area: bl; align-items: flex-start; justify-content: flex-end; } .caps.at-bottom-right { grid-area: br; align-items: flex-end; justify-content: flex-end; }
.caps.at-center { grid-area: c; align-items: center; text-align: center; }
@media (max-width: 700px) {
  .scene__caps { grid-template: "tl" auto "tr" 1fr "c" auto "bl" 1fr "br" auto / 1fr; }
  .caps.at-top-right, .caps.at-bottom-left { align-items: flex-start; justify-content: flex-start; } .caps.at-bottom-left { justify-content: flex-end; }
  .cap { max-width: 88%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .b-scene.is-short { height: 190vh; } .js .b-scene.is-medium { height: 270vh; } .js .b-scene.is-long { height: 370vh; }
  .js .b-scene .scene__stage { position: sticky; top: 0; }
  .js .b-scene [data-cap] { opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .1, 1.2); }
  .js .b-scene [data-cap].is-on { opacity: 1; transform: none; }
  .js .b-scene .cap--shout.is-on { transform: rotate(-2deg); }
  .js [data-move="push-in"] .scene__layer  { transform: translate3d(0, calc((.5 - var(--p)) * var(--d) * 9vh), 0) scale(calc(1.01 + var(--p) * (.07 + .15 * var(--d)))); }
  .js [data-move="pull-out"] .scene__layer { transform: translate3d(0, calc((var(--p) - .5) * var(--d) * 9vh), 0) scale(calc(1.2 - var(--p) * (.07 + .12 * var(--d)))); }
  .js [data-move="pan-left"] .scene__layer  { transform: translate3d(calc((.5 - var(--p)) * (4 + 9 * var(--d)) * 1vw), 0, 0) scale(1.04); }
  .js [data-move="pan-right"] .scene__layer { transform: translate3d(calc((var(--p) - .5) * (4 + 9 * var(--d)) * 1vw), 0, 0) scale(1.04); }
  .js [data-move="rise"] .scene__layer { transform: translate3d(0, calc((.5 - var(--p)) * (5 + 10 * var(--d)) * 1vh), 0) scale(1.04); }
}

/* a page of panels */
.b-panels { --gut: clamp(6px, .9vw, 12px); display: grid; gap: var(--gut); width: min(100% - 2 * var(--g), 80rem); justify-self: center; padding: var(--gut); background: #000; }
.layout-row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.layout-splash-top, .layout-splash-bottom { grid-template-columns: repeat(var(--m), minmax(0, 1fr)); }
.layout-splash-top .panel:first-child, .layout-splash-bottom .panel:last-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.layout-tall-left, .layout-tall-right { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.layout-tall-left .panel:first-child { grid-row: 1 / span var(--m); aspect-ratio: auto; }
.layout-tall-right .panel:first-child { grid-row: 1 / span var(--m); grid-column: 2; aspect-ratio: auto; }
.layout-tall-left .panel, .layout-tall-right .panel { aspect-ratio: 16 / 10; }
.layout-stack { grid-template-columns: minmax(0, 1fr); } .layout-stack .panel { aspect-ratio: 16 / 9; }
.panel { position: relative; overflow: hidden; margin: 0; aspect-ratio: 3 / 4; background: #0a0a0a; outline: 2px solid color-mix(in oklab, var(--ink) 85%, transparent); outline-offset: -2px; }
.panel__art { position: absolute; inset: 0; }
.panel__art img, .panel__art video { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transform: translateY(calc(var(--v, 0) * 6%)); will-change: transform; }
.panel .cap { position: absolute; left: .8rem; bottom: .9rem; right: 1.2rem; width: fit-content; max-width: calc(100% - 2rem); font-size: clamp(11px, .9vw, 13px); padding: .5rem .7rem; box-shadow: 3px 3px 0 var(--accent); }
.panel:nth-child(even) .cap { top: .8rem; bottom: auto; left: auto; right: .8rem; }
.is-slant .panel { outline: 0; }
.is-slant .panel:nth-child(odd) { clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%); }
.is-slant .panel:nth-child(even) { clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%); margin-left: -5%; }
.is-slant.layout-stack .panel:nth-child(odd) { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.is-slant.layout-stack .panel:nth-child(even) { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); margin: -3% 0 0; }
@media (max-width: 700px) {
  .b-panels { grid-template-columns: minmax(0, 1fr) !important; width: 100%; }
  .b-panels .panel { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3 !important; margin: 0 !important; }
  .is-slant .panel:nth-child(odd) { clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%); }
  .is-slant .panel:nth-child(even) { clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%); margin-top: -5% !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-panel]::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #000; transform-origin: 100% 50%; transition: transform .8s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--delay, 0ms); }
  .js [data-panel]:nth-child(even)::after { transform-origin: 50% 100%; }
  .js [data-panel].is-in::after { transform: scaleX(0); } .js [data-panel]:nth-child(even).is-in::after { transform: scaleY(0); }
  .js [data-panel] .cap { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s ease; transition-delay: calc(var(--delay, 0ms) + 650ms); }
  .js [data-panel].is-in .cap { opacity: 1; transform: none; }
}

/* a strip: panels pass sideways as you scroll down */
.strip__rail { display: flex; gap: clamp(8px, 1vw, 14px); padding: 12px var(--g); overflow-x: auto; scroll-snap-type: x mandatory; background: #000; }
.strip__rail .panel { flex: none; aspect-ratio: auto; height: min(68vh, 34rem); scroll-snap-align: center; }
.strip__rail .panel > img, .strip__rail .panel > video { height: 100%; width: auto; max-width: none; }
.b-strip.is-pinned { height: calc(100vh + var(--travel, 0px)); }
.b-strip.is-pinned .strip__stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; background: #000; }
.b-strip.is-pinned .strip__rail { overflow: visible; scroll-snap-type: none; transform: translate3d(calc(var(--p, 0) * var(--travel, 0px) * -1), 0, 0); will-change: transform; }
.b-strip.is-pinned .strip__rail .panel { height: 72vh; }

/* ---------- the end of a post ---------- */
.tail { max-width: 84rem; margin: 0 auto; padding: 1rem var(--g) 5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 auto 3rem; padding: 0; max-width: 42rem; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.join { max-width: 42rem; margin: 0 auto 4rem; padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.join h2 { font-size: clamp(22px, 2.6vw, 30px); }
.join form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.join input[type=email] { flex: 1 1 14rem; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.join button { padding: 13px 26px; border: 0; border-radius: 8px; background: var(--accent); color: #14060e; font: 600 15px/1 var(--text); letter-spacing: .04em; cursor: pointer; }
.join__note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--dim); }
.join .trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.more h2 { font: 500 12.5px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.4rem; }
.end { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 22px var(--g); border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.end a { color: var(--dim); } .end span { margin-left: auto; }
@media (max-width: 560px) { .end span { margin-left: 0; width: 100%; } }
body:has(.now) .end { padding-bottom: 5rem; }

.zoom { max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(5, 3, 2, .94); }
.zoom::backdrop { background: rgba(5, 3, 2, .94); }
.zoom__body { width: 100%; height: 100%; display: grid; place-items: center; padding: 3rem 1rem 1rem; cursor: zoom-out; }
.zoom__body img, .zoom__body video { max-width: 100%; max-height: calc(100vh - 4rem); object-fit: contain; }
.zoom__close { position: absolute; right: 14px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
