/* Hallmark · shape: one studio page, the halftone hero flowing into classes, schedule, prices, story and the place · genre: editorial · theme: Sport tokens in the studio's own faces (by request: the halftone poster look from the user's reference) · job: book · draw: 4f1517
 * hero: Stage, the halftone bleeding off the outer edge · nav: edge-aligned, sticky, the wordmark, four anchors and the booking · footer: letter close · imagery: photographs 2 (the studio's own files; the hero one printed as a moving two-plate halftone) · signature: the studio photo printed as a teal and ink halftone that rolls in a slow wave and tilts toward the pointer, the headline sitting into it
 * axes: light/grotesk-heavy/chromatic-teal · posture: restrained · contrast: pass · fold: pass · brand: B Active (spec 2026-11-28), faces Archivo Black and Space Grotesk from the live site · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: S, the halftone is printed from a still life, not a class; the slot takes a real class photo and the plates redraw from it */
/* Hallmark · waive 49b · the address link, two lines at most at 320px · 255 boul. de la Concorde Ouest in Laval is the studio's real address and cannot be shortened */
/* Hallmark · answered F4 · the second primary is the same button inverted for the ink booking bar, one recipe on two surfaces */
/* Hallmark · dismissed 25 · each class line is one sentence, a caption under its name, so 30ch holds */
/* Hallmark · waive 59 · the Spinning Trampoline Pilates marquee band sits flush under the hero, 41px, as its moving edge · the marquee is the hero's border, not a section of its own */
/* Hallmark · dismissed 58 · the window holds the six-row price sheet, each row one plan, its price and a three-word detail */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 88px; --bar-h: 72px; }

body { padding-bottom: var(--bar-h); }
h1, h2, h3 { line-height: 0.98; }
h3 { letter-spacing: -0.015em; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: var(--space-sm) var(--space-lg); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; font: 500 var(--text-lg)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-dot); border-color: var(--color-dot); color: var(--color-ink); }
.btn--secondary { background: transparent; color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--small { min-height: 44px; font-size: var(--text-md); }
.on-ink .btn--primary { background: var(--color-dot); border-color: var(--color-dot); color: var(--color-ink); }
.on-ink .btn--primary:hover { background: var(--color-paper); border-color: var(--color-paper); }
.on-ink .btn:focus-visible, .on-ink a:focus-visible { outline-color: var(--color-dot); }

.link { text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent-deep); }
.link:active { color: var(--color-ink-2); }

/* nav: edge-aligned, sticky */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-grid); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
/* the logo scales with the screen, 44 to 64px; beside it the studio's own ACTIVE wordmark, cut from the logo file, at its logo proportion */
.brand { --logo-h: clamp(44px, 2.4vw + 20px, 64px); --word-h: calc(var(--logo-h) * 106 / 311); display: inline-flex; align-items: center; gap: var(--space-md); text-decoration: none; white-space: nowrap; }
.brand img { width: auto; height: var(--logo-h); }
.brand .brand__word { height: var(--word-h); }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav__links a:not(.btn) { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.3em; white-space: nowrap; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.nav__links a:not(.btn):hover { text-decoration-color: var(--color-dot); }
.nav__lang { color: var(--color-muted); }

/* hero: the halftone stage */
.hero { position: relative; border-bottom: var(--rule-hair) solid var(--color-grid); }
.hero__grid { display: grid; grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [text-start] minmax(0, calc(var(--container) / 2 - var(--gutter))) [text-end art-start] minmax(0, calc(var(--container) / 2 - var(--gutter))) minmax(var(--gutter), 1fr) [full-end]; min-height: calc(100dvh - var(--nav-h) - var(--bar-h)); }
.hero__text { grid-column: text; position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: var(--space-xl); padding-block: var(--space-2xl); border-right: var(--rule-hair) solid var(--color-grid); }
.hero h1 { max-width: none; margin-right: calc(var(--space-4xl) * -1); font-size: clamp(3.5rem, 8.6vw, 9.5rem); line-height: 0.92; }
.hero .lead { max-width: 30ch; color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero__art { grid-column: art-start / full-end; position: relative; margin: 0; min-height: 520px; background: var(--color-paper); }
.hero__art canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.hero__pause { position: absolute; z-index: 3; right: var(--space-md); bottom: var(--space-md); min-height: 44px; padding: var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.hero__pause:hover { background: var(--color-paper-2); }
.hero__pause:active { background: var(--color-paper-3); }
.hero__pause:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hero__pause:disabled { opacity: 0.55; cursor: not-allowed; }
.cross { position: absolute; z-index: 4; width: var(--space-md); height: var(--space-md); pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--color-muted); }
.cross::before { left: 50%; top: 0; width: 1px; height: 100%; }
.cross::after { top: 50%; left: 0; height: 1px; width: 100%; }
.cross--a { left: calc(var(--gutter) - var(--space-xs)); bottom: calc(var(--space-xs) * -1); }

/* sections */
.section { padding-block: var(--section-gap); }
.section--s { padding-block: var(--section-gap-s); }
.section--well { background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-ink); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head h2 { grid-column: 1 / span 7; }
.head .lead { grid-column: 8 / span 5; color: var(--color-ink-2); }

/* classes: three columns set in type, then the women-only row */
.classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-ink); }
.classes li { display: grid; align-content: space-between; gap: var(--space-2xl); min-height: 300px; padding: var(--space-xl) var(--space-xl) var(--space-xl) 0; border-right: var(--rule-hair) solid var(--color-grid); }
.classes li + li { padding-left: var(--space-xl); }
.classes li:nth-child(3) { border-right: 0; }
.classes li:nth-child(4) { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; min-height: 0; padding: var(--space-xl) 0; border-right: 0; border-top: var(--rule-hair) solid var(--color-grid); }
.classes li:nth-child(4) h3 { grid-column: 1 / span 6; }
.classes li:nth-child(4) p { grid-column: 7 / span 6; }
.classes h3 { max-width: none; font-size: var(--text-section); }
.classes p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 30ch; }

/* schedule */
.schedule { min-height: 480px; padding: var(--space-xl); background: var(--color-paper); border-top: var(--rule-bar) solid var(--color-ink); }
.schedule__fallback { margin-top: var(--space-lg); }
.schedule iframe:focus, .schedule iframe:focus-visible { outline: 2px solid var(--color-focus) !important; outline-offset: 2px; }
.schedule:focus-within { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* prices: a sheet */
.prices { width: 100%; border-collapse: collapse; border-top: var(--rule-bar) solid var(--color-ink); border-bottom: var(--rule-bar) solid var(--color-ink); }
.prices th { padding: var(--space-sm) var(--space-md); text-align: left; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.prices td { padding: var(--space-lg) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); vertical-align: middle; }
.prices td:first-child, .prices th:first-child { padding-left: 0; }
.prices td:last-child, .prices th:last-child { padding-right: 0; text-align: right; }
.plan { font: var(--text-xl)/1.1 var(--font-display); letter-spacing: -0.015em; }
.price { font: var(--text-3xl)/1 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { display: block; margin-top: var(--space-2xs); font: 500 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0; color: var(--color-muted); }
.detail { color: var(--color-ink-2); max-width: 48ch; }
.prices tr.is-intro td { background: var(--color-paper-2); }
.prices tr.is-intro td:first-child { box-shadow: inset 4px 0 0 var(--color-dot); padding-left: var(--space-md); }

/* story: a statement */
.statement { grid-column: 1 / span 11; max-width: none; margin: 0; font: var(--text-display)/1 var(--font-display); letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.statement-note { grid-column: 1 / span 6; margin-top: var(--space-xl); font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }

/* find us: a sheet of facts */
.facts { margin: 0; border-top: var(--rule-bar) solid var(--color-ink); }
.facts > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { grid-column: 1 / span 3; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.facts dd { grid-column: 4 / span 9; margin: 0; font: 500 var(--text-2xl)/1.25 var(--font-body); }
.facts dd a { text-decoration: none; border-bottom: var(--rule-bar) solid var(--color-rule); transition: border-color var(--dur-short) var(--ease-out); }
.facts dd a:hover { border-color: var(--color-dot); }

/* close: the price and the booking */
.close { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
.close__price { font: clamp(5rem, 13vw, 12rem)/0.85 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.close__price small { display: block; margin-top: var(--space-md); font: 500 var(--text-lead)/1.4 var(--font-body); letter-spacing: 0; color: var(--color-ink-2); }
.close__side { display: grid; gap: var(--space-lg); justify-items: start; }
.close__photo { width: 100%; aspect-ratio: 16 / 10; border-radius: 0; }

/* footer: a letter close */
.footer { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-grid); }
.footer__sign { font: var(--text-section)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); font-size: var(--text-sm); color: var(--color-muted); }
.footer__meta ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }

/* the sticky booking bar */
.bar { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-sticky); background: var(--color-ink); color: var(--color-paper); }
.bar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--bar-h); }
.bar strong { font-weight: 500; }

.photo-slot > img { object-position: 50% 60%; }

@media (max-width: 60rem) {
  :root { --nav-h: 72px; }
  .nav__links li:not(.keep) { display: none; }
  .hero__grid { grid-template-columns: [full-start] var(--gutter) [text-start art-start] minmax(0, 1fr) [text-end] var(--gutter) [full-end]; min-height: 0; }
  .hero__text { border-right: 0; }
  .hero h1 { margin-right: 0; }
  .hero__art { grid-column: full; min-height: 380px; }
  .head, .facts > div, .classes li:nth-child(4) { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .head h2, .head .lead, .facts dt, .facts dd, .classes li:nth-child(4) h3, .classes li:nth-child(4) p { grid-column: 1 / -1; }
  .classes { grid-template-columns: minmax(0, 1fr); }
  .classes li, .classes li + li { min-height: 0; gap: var(--space-md); padding: var(--space-xl) 0; border-right: 0; border-bottom: var(--rule-hair) solid var(--color-grid); }
  .classes li:nth-child(4) { border-top: 0; }
  .statement, .statement-note { grid-column: 1 / -1; }
  .close { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
  .prices td { padding: 0; border: 0; }
  .prices td.detail, .prices td:last-child { grid-column: 1 / -1; text-align: left; }
  .prices tr.is-intro { background: var(--color-paper-2); padding-inline: var(--space-md); box-shadow: inset 4px 0 0 var(--color-dot); }
  .prices tr.is-intro td:first-child { box-shadow: none; padding-left: 0; }
  .prices tr.is-intro td { background: transparent; }
}
@media (max-width: 40rem) {
  .bar p { font-size: var(--text-sm); }
  .schedule { padding: var(--space-md); }
  .facts dd { font-size: var(--text-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .link, .nav__links a, .facts dd a, .hero__pause { transition: none; }
  .btn:active { transform: none; }
}

/* ===== motion layer ===== */

/* the marquee: the three classes, huge, moving with the scroll */
.marquee { overflow: clip; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-grid); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; flex-shrink: 0; }
.marquee__word { padding-inline: var(--space-xl); font: clamp(4rem, 11vw, 10rem)/0.9 var(--font-display); letter-spacing: var(--tracking-display); white-space: nowrap; }
.marquee__word:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 2px var(--color-ink); }
.marquee__sep { flex-shrink: 0; width: clamp(1.5rem, 3vw, 3rem); aspect-ratio: 1; border-radius: 50%; background: var(--color-dot); }

/* class cards: a link each, flooded with teal dots on hover */
.classes li { padding: 0; }
.classes li + li { padding-left: 0; }
.class-card { position: relative; isolation: isolate; display: grid; align-content: space-between; gap: var(--space-2xl); height: 100%; min-height: 300px; padding: var(--space-xl); color: inherit; text-decoration: none; overflow: hidden; }
.classes li:first-child .class-card { padding-left: 0; }
.class-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle at center, var(--color-dot) 0 34%, transparent 36%); background-size: 14px 14px; clip-path: inset(100% 0 0 0); transition: clip-path var(--dur-long) var(--ease-out); }
.class-card:hover::before, .class-card:focus-visible::before { clip-path: inset(0 0 0 0); }
.class-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.class-card:active { background: var(--color-paper-2); }
.class-card h3 { transition: transform var(--dur-long) var(--ease-out); }
.class-card:hover h3 { transform: translateX(var(--space-xs)); }
.class-card p { position: relative; }
.class-card:hover p { background: var(--color-paper); box-shadow: 0 0 0 var(--space-xs) var(--color-paper); }
.classes li:nth-child(4) .class-card { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; min-height: 0; padding-inline: 0 var(--space-xl); }
.classes li:nth-child(4) .class-card h3 { grid-column: 1 / span 6; }
.classes li:nth-child(4) .class-card p { grid-column: 7 / span 6; }
.classes li:nth-child(4) { display: block; padding: 0; }

/* finale: the price over the runner, printed in dots on the ink */
.finale { background: var(--color-ink); color: var(--color-paper); overflow: clip; }
.finale__grid { display: grid; grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [text-start] minmax(0, calc(var(--container) / 2 - var(--gutter))) [text-end art-start] minmax(0, calc(var(--container) / 2 - var(--gutter))) minmax(var(--gutter), 1fr) [full-end]; min-height: 720px; }
.finale__text { grid-column: text; position: relative; z-index: 3; display: grid; align-content: center; justify-items: start; gap: var(--space-lg); padding-block: var(--section-gap-s); }
.finale__price { margin: 0; font: clamp(6rem, 16vw, 15rem)/0.82 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--color-paper); }
.finale__note { font-size: var(--text-lead); color: var(--color-paper-3); max-width: 34ch; }
.finale__head { margin-top: var(--space-md); color: var(--color-paper); font-size: var(--text-section); max-width: 14ch; }
.finale__art { grid-column: art-start / full-end; position: relative; margin: 0; min-height: 560px; background: var(--color-ink); }
.finale__art canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.finale [data-slot] > img { mix-blend-mode: normal; filter: grayscale(1); opacity: 0.35; }
.finale [data-slot]:has(> img)::before { display: none; }

.footer__credits { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.footer__credits a { color: inherit; }

.bar__actions { display: flex; align-items: center; gap: var(--space-sm); }
.bar__motion { min-height: 44px; padding: var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--color-muted); background: transparent; color: var(--color-paper); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.bar__motion:hover { border-color: var(--color-paper); }
.bar__motion:active { background: var(--color-ink-2); }
.bar__motion:focus-visible { outline: 2px solid var(--color-dot); outline-offset: 2px; }
.bar__motion:disabled { opacity: 0.55; cursor: not-allowed; }

/* the cursor ring (mouse only, made by the script) */
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-tooltip); width: 28px; height: 28px; translate: -50% -50%; border: 2px solid var(--color-dot); border-radius: 50%; pointer-events: none; opacity: 0; }
.cursor::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-dot); transform: scale(0.18); transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.cursor.on { opacity: 1; }
.cursor.is-link::after { transform: scale(1); opacity: 0.35; }
.cursor.is-art::after { transform: scale(0.5); }

/* [data-magnet] buttons move by script; give the return a soft ease */
[data-magnet] { transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-out); }

/* entrances: only when the script has said motion is welcome, so the page is never blank */
.js [data-rise] .w { display: inline-block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; }
.js [data-rise] .w > span { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 70ms + 80ms); }
.js [data-rise].is-in .w > span { transform: translateY(0); }
.js [data-enter] { opacity: 0; transform: translateY(var(--space-lg)); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 120ms); }
.js [data-enter].is-in { opacity: 1; transform: none; }
.js .prices[data-enter] tbody tr { opacity: 0; transform: translateY(var(--space-md)); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i) * 70ms + 200ms); }
.js .prices[data-enter].is-in tbody tr { opacity: 1; transform: none; }
.scrub-ready [data-scrub] .sw { opacity: 0.16; transition: opacity 400ms var(--ease-out); }
.scrub-ready [data-scrub] .sw.on { opacity: 1; }

@media (max-width: 60rem) {
  .class-card, .classes li:first-child .class-card { min-height: 0; gap: var(--space-md); padding: var(--space-xl) 0; }
  .classes li:nth-child(4) .class-card { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); padding-inline: 0; }
  .classes li:nth-child(4) .class-card h3, .classes li:nth-child(4) .class-card p { grid-column: 1 / -1; }
  .finale__grid { grid-template-columns: [full-start] var(--gutter) [text-start art-start] minmax(0, 1fr) [text-end] var(--gutter) [full-end]; min-height: 0; }
  .finale__art { grid-column: full; min-height: 380px; }
}
@media (max-width: 40rem) {
  .bar__row > p { display: none; }
  .bar__actions { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .class-card::before, .class-card h3, .bar__motion, [data-magnet] { transition: none; }
  .class-card:hover h3 { transform: none; }
}

/* the gallery: four real classes, teal and ink, each frame wiping open */
.gal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, 400px); gap: var(--gap-columns); }
.gal__item { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-sm); margin: 0; min-width: 0; }
.gal__item--1 { grid-column: 1 / span 7; }
.gal__item--2 { grid-column: 8 / span 5; }
.gal__item--3 { grid-column: 1 / span 5; }
.gal__item--4 { grid-column: 6 / span 7; }
.gal__frame { position: relative; min-height: 0; height: 100%; overflow: hidden; }
.gal__frame:has(> img) { background: var(--color-dot); }
.gal__frame > img { object-position: 50% 50%; transform: scale(1.14); will-change: transform; }
.gal figcaption { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.js [data-wipe] .gal__frame { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-out); }
.js [data-wipe].gal__item--2 .gal__frame, .js [data-wipe].gal__item--4 .gal__frame { transition-delay: 160ms; }
.js [data-wipe].is-in .gal__frame { clip-path: inset(0 0 0 0); }

/* the playlist */
.music__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.music__text { display: grid; gap: var(--space-lg); justify-items: start; }
.music__text h2 { font-size: var(--text-display); }
.music__link { font-weight: 500; font-size: var(--text-lead); }
.music__player { position: relative; padding: var(--space-md); background: var(--color-ink); }
.music__player iframe { display: block; width: 100%; height: 452px; border: 0; border-radius: var(--space-sm); }
.music__player:focus-within { outline: 2px solid var(--color-focus); outline-offset: 4px; }

@media (max-width: 60rem) {
  .gal__grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .gal__item--1, .gal__item--2, .gal__item--3, .gal__item--4 { grid-column: 1 / -1; }
  .gal__frame { height: auto; aspect-ratio: 4 / 3; }
  .music__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .music__player iframe { height: 380px; }
}
