/* Pleometric's brighter, character-led direction. */
[data-theme="light"] {
  --bg: #c9f5fa; --bg-alt: #f0eaff; --bg-card: #fffdf5;
  --text: #292061; --text-secondary: #544c76; --text-tertiary: #655d7d;
  --purple: #452598; --border: #302068; --border-strong: #302068;
  --yellow: #ffcf39; --pink: #f4a6d9; --cyan: #27d0ec;
}
[data-theme="dark"] {
  --bg: #171b37; --bg-alt: #30314e; --bg-card: #23243f;
  --text: #f7f1ff; --text-secondary: #d1cce0; --text-tertiary: #c3bbd8;
  --purple: #d5b9ff; --border: #aa94d5; --border-strong: #aa94d5;
  --yellow: #ffcf39; --pink: #f4a6d9; --cyan: #27d0ec;
}
body { font-family: 'Nunito', sans-serif; background-image: radial-gradient(#5ab8c43b 1px, transparent 1px); background-size: 20px 20px; line-height: 1.55; }
.page { max-width: 1160px; padding: 26px 38px 18px; }
a { color: inherit; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px; z-index: 20; background: var(--bg-card); border: 2px solid; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
.site-header-row { gap: 10px; }
.site-name { font: 900 26px/1 'Nunito', sans-serif; letter-spacing: -1px; }
.mascot { width: 40px; height: 40px; border: 2px solid #302068; border-radius: 50%; overflow: hidden; background: transparent; }
[data-theme="dark"] .mascot { background: transparent; border-color: #302068; }
.social-links { display: flex; gap: 18px; font-size: 14px; font-weight: 800; }
.social-links a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.social-links span { font-size: 16px; }
.site-nav { margin: 0 0 26px; padding: 0; border: 0; }
.site-nav ul { gap: 10px; }
.site-nav a { display: block; font: 800 15px/1.2 'Nunito', sans-serif; text-transform: none; letter-spacing: 0; color: var(--text); padding: 11px 24px; border: 2px solid transparent; border-radius: 10px; }
.site-nav a::after { display: none; }
.site-nav a.active { color: #292061; background: var(--yellow); border-color: #302068; box-shadow: 3px 3px 0 #302068; }
.site-nav a:hover { text-decoration: none; border-color: var(--border); }
.welcome { background: var(--bg-card); border: 3px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 7px 7px 0 var(--border); }
.welcome-banner { width: 100%; height: auto; display: block; border-bottom: 3px solid var(--border); }
.welcome-copy { display: flex; justify-content: space-between; align-items: center; padding: 30px 34px; gap: 24px; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
h1 { font: 900 clamp(32px, 5vw, 52px)/1.05 'Nunito', sans-serif; letter-spacing: -1.8px; }
.welcome-copy p:last-child { margin-top: 12px; color: var(--text-secondary); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; background: var(--yellow); color: #292061; border: 2px solid #302068; border-radius: 10px; padding: 13px 20px; font-weight: 900; box-shadow: 3px 3px 0 #302068; flex-shrink: 0; text-decoration: none; }
.button:hover { background: #ffdc64; color: #292061; text-decoration: none; transform: translateY(-1px); }
.home-note { display: flex; gap: 36px; align-items: center; padding: 35px 6px; }
.note-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.home-note p { color: var(--text-secondary); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 2px solid var(--border); margin-top: 30px; padding: 18px 0 0; font: 700 12px 'Nunito', sans-serif; color: var(--text-secondary); }
.theme-toggle { position: fixed; right: 18px; bottom: 18px; top: auto; width: 40px; height: 40px; border: 2px solid var(--border); background: var(--bg-card); color: var(--text); border-radius: 50%; font-size: 22px; }
@media (max-width: 640px) {
  .page { padding: 20px 20px 16px; }
  .site-header { flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
  .site-name { font-size: 24px; }
  .social-links { gap: 22px; }
  .welcome-copy { flex-direction: column; align-items: flex-start; padding: 24px; }
  .home-note { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer { padding-right: 30px; }
  .theme-toggle { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Video collections */
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 32px 0 24px; }
.gallery-heading > div > p:last-child { margin-top: 12px; color: var(--text-secondary); }
.collection-count { background: var(--pink); color: #292061; border: 2px solid #302068; border-radius: 50%; padding: 18px 10px; font-size: 14px; font-weight: 900; transform: rotate(8deg); }
.collection-nav { display: flex; gap: 24px; border-bottom: 2px solid var(--border); margin-bottom: 26px; }
.collection-nav a { padding: 12px 0; font-weight: 900; position: relative; text-decoration: none; }
.collection-nav a[aria-current]::after { content: ''; height: 5px; background: var(--purple); position: absolute; bottom: -3px; left: 0; right: 0; border-radius: 3px; }
.series-note { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 26px; padding: 24px 28px; border: 2px solid var(--border); border-radius: 14px; background: var(--bg-card); box-shadow: 4px 4px 0 var(--border); margin-bottom: 38px; }
.series-note h2 { font: 900 28px/1.1 'Nunito', sans-serif; letter-spacing: -0.7px; text-transform: none; color: var(--text); border: 0; margin: 0; }
.series-note > p { font-size: 15px; color: var(--text-secondary); }
.gallery-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 16px; }
.gallery-meta h2 { font: 900 22px 'Nunito', sans-serif; color: var(--text); border: 0; text-transform: none; margin: 0; }
.gallery-meta p { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.video-card { min-width: 0; border: 2px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-card); display: flex; flex-direction: column; }
.video-poster { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-bottom: 2px solid var(--border); background: #111; }
.video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.video-poster:hover img { transform: scale(1.025); }
.play-icon { position: absolute; left: 16px; bottom: 16px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; padding-left: 3px; border: 2px solid #302068; border-radius: 50%; background: #ffcf39; color: #292061; font-size: 17px; box-shadow: 2px 2px 0 #302068; }
.duration { position: absolute; bottom: 16px; right: 12px; background: #211848eb; color: #fff; font-size: 12px; font-weight: 900; padding: 4px 7px; border-radius: 5px; }
.video-card-copy { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.series-label { display: inline-block; background: var(--yellow); color: #292061; border-radius: 5px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.4px; padding: 4px 7px; margin-bottom: 12px; }
.series-label.standalone { background: var(--pink); }
.video-card h3 { font: 900 19px/1.2 'Nunito', sans-serif; letter-spacing: -0.3px; margin-bottom: 10px; }
.video-card h3 a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.video-card-copy > p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; padding-bottom: 18px; }
.render-date { font-size: 11px; font-weight: 800; color: var(--text-secondary); margin-top: auto; }
.back-link { display: inline-block; margin: 10px 0 28px; font-size: 14px; font-weight: 800; }
.watch-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 38px; align-items: start; }
.watch-player { position: relative; aspect-ratio: 1; background: #111; border: 3px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 5px 5px 0 var(--border); }
.watch-player video, .watch-player iframe, .stream-launch, .stream-launch img { display: block; width: 100%; height: 100%; aspect-ratio: 1; border: 0; object-fit: contain; }
.stream-launch { cursor: pointer; padding: 0; background: #111; }
.stream-launch .play-icon { width: 64px; height: 64px; font-size: 25px; left: calc(50% - 32px); bottom: calc(50% - 32px); }
.watch-copy { padding-top: 12px; }
.watch-copy h1 { font-size: clamp(28px, 3.8vw, 42px); letter-spacing: -1px; line-height: 1.1; }
.watch-description { margin: 22px 0; font-size: 18px; color: var(--text-secondary); }
.watch-date, .watch-date .render-date { font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.watch-series-note { border-top: 2px solid var(--border); padding-top: 20px; margin-top: 24px; color: var(--text-secondary); font-size: 14px; }
.short-form-note { background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px; padding: 38px; max-width: none; margin: 40px 0; }
.short-form-note h2 { font: 900 32px/1.1 'Nunito', sans-serif; text-transform: none; border: 0; letter-spacing: -0.5px; color: var(--text); }
.short-form-note > p:not(.eyebrow) { color: var(--text-secondary); margin: 20px 0; }
.short-form-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-weight: 800; font-size: 14px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .watch-layout { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; } }
@media (max-width: 640px) { .series-note { grid-template-columns: 1fr; gap: 16px; padding: 22px; } .gallery-heading { margin-top: 26px; } .gallery-heading .eyebrow { max-width: 220px; } .gallery-meta { align-items: flex-start; } .gallery-meta p { text-align: right; max-width: 150px; } .video-grid { gap: 16px; } .video-card-copy { padding: 14px; } .video-card h3 { font-size: 18px; } .series-label { font-size: 9px; } .short-form-note { padding: 24px; } }
@media (max-width: 440px) { .video-grid { grid-template-columns: 1fr; } .collection-count { font-size: 12px; padding: 15px 8px; flex-shrink: 0; } }

/* Dates sit directly below titles, with a quieter visual weight. */
.title-date { display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary); margin: 0 0 14px; }
.video-card h3 { margin-bottom: 6px; }
.watch-copy .title-date { margin-top: 12px; }

/* Preserve widescreen exports without cropping their content. */
.video-poster img { object-fit: contain; }
.watch-player video, .watch-player iframe, .stream-launch, .stream-launch img { aspect-ratio: auto; }

.short-form-card .video-poster { aspect-ratio: 9 / 16; }

/* Local SVG brand marks inherit the link color in both themes. */
.social-links { gap: 8px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.social-links a:hover { background: var(--bg-card); }
.social-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.social-icon { display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--social-icon) center / contain no-repeat; mask: var(--social-icon) center / contain no-repeat; }
.social-icon-x { --social-icon: url('/static/social-x.svg'); }
.social-icon-instagram { --social-icon: url('/static/social-instagram.svg'); }
.social-icon-tiktok { --social-icon: url('/static/social-tiktok.svg'); }

.video-source { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; font-size: 15px; line-height: 1.65; }
.video-source a, .archive-text a { text-decoration: underline; text-underline-offset: 3px; }
.archive-text { max-width: 76ch; margin: 28px auto; overflow-wrap: anywhere; }
.archive-text h1 { font-size: clamp(28px, 4vw, 42px); margin: 24px 0; }
.archive-text p { margin: 0 0 1.3em; }
.archive-provenance { font-size: 13px; color: var(--text-secondary); }
.archive-transcript { margin-top: 32px; font-size: 17px; line-height: 1.8; }
.archive-transcript blockquote { border-left: 3px solid var(--pink); background: var(--bg-card); margin: 24px 0; padding: 18px 22px; }
.archive-transcript blockquote p:last-child { margin-bottom: 0; }
.archive-transcript hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.home-intro { max-width: none; margin: 32px 0 48px; padding: clamp(22px, 4vw, 36px); background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.home-intro h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.8px; margin-bottom: 24px; }
.home-intro p { font-size: 18px; line-height: 1.75; margin: 0 0 20px; }
.home-intro a { text-decoration: underline; text-underline-offset: 4px; }

.home-intro { position: relative; padding-bottom: 100px; }
.home-dancer { position: absolute; right: 8px; bottom: -24px; width: 150px; z-index: 1; }
.home-dancer img { display: block; width: 100%; height: auto; filter: none; mix-blend-mode: normal; }
.dance-toggle { position: absolute; bottom: 12px; right: 0; border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; color: var(--text-secondary); background: var(--bg-card); cursor: pointer; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .dance-toggle { display: none; } }
.video-poster picture { display: block; width: 100%; height: 100%; }

.play-icon svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.stream-launch .play-icon svg { width: 28px; height: 28px; }
@media (min-width: 901px) and (max-width: 1100px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Compact, portrait-first Short Form feed. */
.video-grid.short-form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 10px; }
.short-form-grid .video-card { border: 0; border-radius: 0; background: transparent; }
.short-form-grid .video-poster { aspect-ratio: 3 / 4; border: 0; border-radius: 6px; }
.short-form-grid .video-poster picture { display: block; width: 100%; height: 100%; }
.short-form-grid .video-card-copy { padding: 8px 2px 0; }
.short-form-grid h3 { font-size: 13px; line-height: 1.25; letter-spacing: 0; margin: 0 0 4px; }
.short-form-grid .title-date { font-size: 10px; margin: 0; }
.short-form-grid .play-icon { left: 8px; bottom: 8px; width: 24px; height: 24px; padding: 0; border: 0; box-shadow: none; background: transparent; color: white; filter: drop-shadow(0 1px 2px #000); }
.short-form-grid .play-icon svg { width: 14px; height: 14px; }
.short-form-grid .duration { right: 6px; bottom: 8px; font-size: 10px; padding: 2px 4px; }
@media (max-width: 1100px) { .video-grid.short-form-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 800px) { .video-grid.short-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .video-grid.short-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 6px; } .short-form-grid h3 { font-size: 11px; } .short-form-grid .title-date { font-size: 9px; } }

/* Keep the primary menu beside the brand on desktop. */
.site-header .site-nav { margin: 0 auto 0 12px; }
.site-header-row, .site-header .social-links { flex-shrink: 0; }
@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; }
  .site-header .site-nav { order: 3; width: 100%; margin: 0; }
  .site-header .social-links { margin-left: auto; }
}

.watch-copy { display: flex; flex-direction: column; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin: 12px 0 24px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.watch-copy .watch-meta .title-date { margin: 0; }
.watch-copy .video-text-links { margin-top: auto; padding-top: 36px; font-size: 14px; line-height: 1.7; }
.video-text-links small { display: block; margin-top: 10px; color: var(--text-secondary); font-size: 12px; }
