/*
  v3/dp.css - the 明治大学雄辯部 home page in the direction of the Dappled Studios reference, kept for the hero: a painted
  hall behind the club's title, set vertically (縦組み) as a speech manuscript is written, the lead beside it, a plum pill
  for the one action. After the hero a sheet of paper rises over the hall and the page reads as a commentary (解説):
  read.css. Built on the kit (../assets/system.css) and the tokens in tokens.css. Motion: transform, opacity and filter
  only; entrances once; loops stop under reduced motion, in a hidden tab and when the visitor presses the pause button
  (html.dp-still). The interlude and glass rules further down are no longer used by index.html.
*/

/* ---------------------------------------------------------------- base */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { background: var(--p-night); }
body { color: var(--p-ink); overflow-x: clip; }
:lang(ja) body { line-height: 1.8; }
:lang(ja) :is(h1, h2, h3, p, li, dd) { word-break: auto-phrase; line-break: strict; }
/* a quarter-ish space between Japanese and Latin letters or figures, where the browser can (text-autospace) */
body { text-autospace: normal; }
.serif { font-family: var(--font-serif); font-weight: 300; font-style: normal; }
html[data-ryumin="loading"] .serif { opacity: 0; }
:focus-visible { outline: 2px solid var(--p-gold-light); outline-offset: 3px; }
.dp-flow { position: relative; z-index: 10; }
main > .dp-flow { overflow: clip; }

/* ---------------------------------------------------------------- the stage: a still, then the live walk video */
.dp-stage { position: fixed; inset: 0; z-index: 0; height: 100lvh; overflow: hidden; background: var(--p-night); }
.dp-stage__still { position: absolute; inset: 0; background: var(--p-night) url("scene-still.jpg") 46% 50% / cover no-repeat;
  transition: opacity var(--m-boot-fade) ease; }
#dp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 50%;
  display: block; opacity: 0; transition: opacity var(--m-boot-fade) ease; will-change: transform;
  filter: blur(calc(clamp(.7px, .085vw, 1.05px) * var(--dp-hall-finish, 0))); }
.dp-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--dp-hall-finish, 0);
  background: linear-gradient(to bottom, transparent 16%, color-mix(in srgb, var(--p-night-deep) 22%, transparent) 58%); }
html.dp-scene-on #dp-video { opacity: 1; }
html.dp-scene-on .dp-stage__still { opacity: 0; }
@media (max-width: 760px) {
  .dp-stage__still { background-image: url("scene-still-phone.jpg"); background-position: center; }
  #dp-video { object-position: 46.5% 50%; }
}

/* Light falling through the windows: two soft pools that drift. */
.dp-dapple { position: fixed; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .4; filter: blur(7px); }
.dp-dapple--a { top: -10%; left: 8%; width: 50vw; height: 60vh;
  background: radial-gradient(40% 34% at 50% 40%, color-mix(in oklab, var(--scene-window) 55%, transparent), transparent 70%),
              radial-gradient(26% 22% at 26% 66%, color-mix(in oklab, var(--scene-window) 40%, transparent), transparent 72%); }
.dp-dapple--b { top: 20%; right: -6%; width: 44vw; height: 66vh;
  background: radial-gradient(38% 32% at 52% 44%, color-mix(in oklab, var(--scene-window) 45%, transparent), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.dp-still) .dp-dapple--a { animation: dpDapA var(--m-dapple-a) ease-in-out infinite alternate; }
  html:not(.dp-still) .dp-dapple--b { animation: dpDapB var(--m-dapple-b) ease-in-out infinite alternate; }
}
@keyframes dpDapA { to { transform: translate(-3vw, 2vh) rotate(2deg); } }
@keyframes dpDapB { to { transform: translate(2vw, -2.5vh) rotate(-2deg); } }

/* the boot screen: the club's name, its characters hopping in turn while the scene is built (1.6s loop, 85ms apart) */
.dp-boot { display: none; }
html.dp-js.dp-anim .dp-boot { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: var(--p-night-deep); pointer-events: none; transition: opacity var(--m-boot-fade) ease; }
.dp-boot.done { opacity: 0; }
.dp-boot span { display: flex; gap: .1em; font-size: var(--t-dp-boot); color: var(--p-cream); letter-spacing: .05em; }
.dp-boot i { font-style: normal; display: inline-block; opacity: .42; animation: dpBootHop var(--m-boot-hop) var(--m-shim-ease) infinite; animation-delay: calc(var(--i) * var(--m-boot-step)); }
@keyframes dpBootHop {
  0%, 58%, 100% { transform: translateY(0); opacity: .42; filter: var(--fx-glow-off); }
  26% { transform: translateY(-.15em); opacity: 1; filter: var(--fx-glow-boot); }
}

/* ---------------------------------------------------------------- the bar */
.dp-nav { --dp-nav-edge: var(--dp-edge); position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; min-height: var(--rd-bar); padding: var(--s-3) var(--dp-nav-edge); pointer-events: none;
  color: var(--rd-ink); background: var(--rd-paper); box-shadow: 0 1px 0 var(--rd-line); }
.dp-nav > * { pointer-events: auto; }
.dp-nav :focus-visible { outline-color: var(--rd-plum); }
.dp-wordmark { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 44px; min-width: 44px; color: inherit; font-size: var(--t-dp-wordmark); }
.dp-wordmark img { width: 32px; height: 32px; border-radius: var(--r-sm); }
.dp-nav__end { display: flex; align-items: center; gap: var(--s-2); }
.dp-nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
:is(.dp-nav__links, .dp-nav__menu) a { display: flex; align-items: center; min-height: 44px; color: inherit;
  font-size: var(--t-small); white-space: nowrap; }
:is(.dp-nav__links, .dp-nav__menu) a:hover { text-decoration: underline; text-underline-offset: .25em; }
.dp-nav__menu { display: none; }
.dp-nav__menu summary { display: flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-width: 44px; min-height: 44px; padding-inline: var(--s-2); border: 1px solid currentColor; border-radius: var(--r-sm);
  font-size: var(--t-small); line-height: 1; list-style: none; cursor: pointer; white-space: nowrap; }
.dp-nav__menu summary::-webkit-details-marker { display: none; }
.dp-nav__menu[open] .dp-arrow { transform: rotate(180deg); }
.dp-nav__menu ul { position: absolute; inset: 100% var(--dp-nav-edge) auto auto; min-width: 12rem;
  max-height: calc(100dvh - var(--rd-bar) - var(--s-4)); overflow-y: auto; padding: var(--s-2) var(--s-4);
  border: 1px solid var(--rd-line); border-radius: var(--r-sm); color: var(--rd-ink); background: var(--rd-paper);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--p-night) 20%, transparent); }
.dp-nav__menu li + li { border-top: 1px solid var(--rd-line); }
.dp-nav__menu a:focus-visible { outline-offset: -2px; }
@media (max-width: 959px) {
  .dp-nav__links { display: none; }
  .dp-nav__menu { display: block; }
}

/* the bar's plum pill; the older .dp-cta keeps its cream styling */
.dp-pill, .dp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-pill);
  font: 500 var(--t-dp-pill)/1 var(--font-text); letter-spacing: .06em;
  transition: transform var(--m-hover-dp) var(--m-ease-expo);
}
.dp-pill { font-size: var(--t-small); font-weight: 700; color: var(--rd-paper); background: var(--rd-plum); white-space: nowrap; }
.dp-cta { position: relative; isolation: isolate; overflow: hidden; color: var(--p-gold-deep);
  background: linear-gradient(180deg, var(--p-cream), var(--p-cream-2)); box-shadow: var(--sh-pill); }
.dp-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-110%);
  background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--p-gold-light) 80%, transparent) 50%, transparent 70%);
  transition: transform var(--m-sweep) var(--m-ease-expo); }
.dp-cta::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; box-shadow: var(--sh-glow); opacity: 0; transition: opacity var(--m-hover-dp) var(--m-ease-expo); }
.dp-pill em, .dp-cta em, .dp-visit em { display: inline-flex; }   /* a transform needs a box: an inline em would not move */
.dp-arrow { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dp-pill em, .dp-cta em { font-style: normal; transition: transform var(--m-hover-dp) var(--m-ease-expo); }
@media (hover: hover) and (pointer: fine) {
  .dp-cta:hover::before { transform: translateX(110%); }
  .dp-cta:hover::after { opacity: 1; transition-duration: var(--m-hover-dp-in); }
  .dp-pill:hover em { transform: translateX(4px); transition-duration: var(--m-hover-dp-in); }
  .dp-cta:hover em { transform: translateX(7px); transition-duration: var(--m-hover-dp-in); }
}
.dp-pill:focus-visible em { transform: translateX(4px); }
.dp-pill:active, .dp-cta:active { transform: scale(.978); transition-duration: var(--m-press); }

/* the pause button: stops every loop and the scene's own movement (the camera still follows the scroll) */
.dp-still-toggle { position: absolute; inset-inline-end: var(--dp-edge); inset-block-end: var(--dp-hero-controls-bottom); z-index: 2;
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); cursor: pointer;
  color: var(--p-cream); background: var(--p-night-deep); border: 1px solid color-mix(in oklab, var(--p-cream) 55%, transparent); }
.dp-still-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dp-still-toggle .i-play { display: none; }
.dp-still-toggle[aria-pressed="true"] .i-play { display: inline; }
.dp-still-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------------------------------------------------------------- panels: one column of words over the scene */
.dp-panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--dp-pad) var(--dp-edge); overflow-x: clip; }
.dp-panel.dp-tall { min-height: auto; padding-block: calc(var(--dp-pad) + var(--s-4)); }
.dp-wrap { position: relative; z-index: 2; width: 100%; max-width: var(--dp-wrap); margin: 0 auto; }
.dp-left { align-items: flex-start; text-align: left; }
.dp-center { align-items: center; text-align: center; }
/* a soft dark pool behind the words, so they read on any part of the scene */
.dp-scrim .dp-wrap::before { content: ""; position: absolute; inset: -32% -22%; z-index: -1; filter: blur(18px);
  background: radial-gradient(ellipse 58% 66% at 30% 52%, color-mix(in oklab, var(--p-shade) 80%, transparent), color-mix(in oklab, var(--p-shade) 46%, transparent) 54%, transparent 78%); }

.dp-eyebrow { display: inline-block; margin-bottom: var(--s-4); font-size: var(--t-dp-eyebrow); font-weight: 500; letter-spacing: .22em; color: var(--p-gold-light); text-shadow: var(--ts-lead); }
/* the hero's title, set vertically: two columns read from the right, the lead beside them on its foot */
.dp-hero { --dp-hero-controls-bottom: 2rem; align-items: stretch; }
.dp-hero .dp-wrap { display: grid; grid-template-columns: max-content minmax(0, 27em); align-items: end; column-gap: clamp(2rem, 5vw, 4.5rem); padding-inline-start: clamp(0rem, 2.5vw, 2rem); }
html.dp-scene-on .dp-hero .dp-wrap { transition: opacity var(--m-boot-fade) ease; }
html.dp-scene-on .dp-hero--at-stage .dp-wrap { opacity: 0; }
.dp-display { writing-mode: vertical-rl; inline-size: fit-content; font-size: var(--t-dp-display); line-height: 1.24; letter-spacing: .06em; color: var(--p-ink); text-shadow: var(--ts-display); }
.dp-hero .dp-lead { margin-top: 0; }
.dp-display .ln { display: block; }
.dp-display .gold { color: var(--p-gold); }
.dp-h2 { font-size: var(--t-dp-h2); line-height: 1.35; letter-spacing: .02em; max-width: 16em; text-shadow: var(--ts-h2); }
.dp-center .dp-h2 { margin-inline: auto; }
.dp-lead { max-width: 30em; margin-top: var(--s-5); font-size: var(--t-dp-lead); font-weight: 500; line-height: 1.9; letter-spacing: .02em; color: var(--p-cream); text-shadow: var(--ts-lead); }
.dp-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* the scroll cue: bobs 6px every 2.4s, and jumps to the sheet below when pressed */
.dp-cue { position: absolute; inset-inline: 0; bottom: var(--dp-hero-controls-bottom); z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; min-width: 48px; min-height: 48px; margin-inline: auto; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
  font-size: var(--t-dp-eyebrow); letter-spacing: .12em; color: var(--p-cream); text-shadow: var(--ts-lead); }
.dp-cue:hover { color: var(--p-gold-light); }
.dp-cue span { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-2); }
/* the skip link: fixed at the top left, over the bar, when it has focus */
.skip-link:focus { position: fixed; top: var(--s-3); left: var(--s-3); z-index: 80; transform: none; background: var(--p-cream); color: var(--p-gold-deep); border-color: var(--p-gold); }
.dp-cue i { font-style: normal; font-size: var(--t-dp-cue); letter-spacing: 0; transition: transform var(--m-hover-dp) var(--m-ease-expo); }
html.dp-scene-on .dp-hero--at-stage .dp-cue { bottom: .375rem; }
html.dp-scene-on .dp-hero--at-stage .dp-cue span { flex-direction: row; gap: .35rem; line-height: 1.2; }
html.dp-scene-on .dp-hero--at-stage .dp-cue i { font-size: 1.1rem; }
@media (hover: hover) and (pointer: fine) { .dp-cue:hover i { transform: translateY(3px); } }
@media (prefers-reduced-motion: no-preference) { html:not(.dp-still) .dp-cue span { animation: dpBob var(--m-bob) ease-in-out infinite; } }
@keyframes dpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------------------------------------------------------------- entrances (JS on, motion allowed; once) */
@media (prefers-reduced-motion: no-preference) {
  html.dp-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--m-reveal-dp) var(--m-ease-expo), transform var(--m-reveal-dp) var(--m-ease-expo); }
  html.dp-anim .reveal.in { opacity: 1; transform: none; }
  html.dp-anim .reveal.d1 { transition-delay: var(--m-step-dp); }
  html.dp-anim .reveal.d2 { transition-delay: calc(var(--m-step-dp) * 2); }
  html.dp-anim .reveal.d3 { transition-delay: calc(var(--m-step-dp) * 3); }
  /* the hero's lead follows once the title is nearly in place */
  html.dp-anim .dp-panel:first-child .reveal.d2 { transition-delay: var(--m-lead-delay); }

  /* the hero title: characters arrive over --m-arrive-sweep (with a little jitter), each over --m-arrive, out of a
     blur and 5px low, flickering as they settle; afterwards a few characters catch a gold light now and then (6.5s) */
  html.dp-anim .dp-display.split:not(.play) .c { opacity: 0; }
  html.dp-anim .dp-display .c { position: relative; display: inline-block; }
  html.dp-anim .dp-display.play .c { opacity: 0; animation: dpArrive var(--m-arrive) var(--m-shim-ease) calc(var(--m-arrive-sweep) * var(--fi) + var(--m-arrive-jitter) * var(--j1)) forwards; }
  html.dp-anim .dp-display.play .c.settled { animation: none; opacity: 1; filter: none; transform: none; }
  html.dp-anim .dp-display .c.flick::after { content: attr(data-ch); position: absolute; left: 0; top: 0; opacity: 0; color: var(--p-gold); pointer-events: none; }
  html.dp-anim:not(.dp-still) .dp-display.play .c.flick::after { animation: dpFlick var(--m-flick) ease-in-out calc(var(--m-arrive-sweep) + var(--m-arrive) + 600ms + var(--gj) * var(--m-flick)) infinite; }
  html.dp-anim .dp-display.idle .c.flick::after { animation-play-state: paused; }

  /* the interludes: characters hop in from the middle outward, 60ms apart and 80ms per phrase, with a gold glow */
  html.dp-anim .dp-breathline .ch { opacity: 0; display: inline-block; }
  html.dp-anim .dp-breathline.in .ch { animation: dpHop var(--m-hop) var(--m-hop-ease) forwards; animation-delay: calc(var(--i) * var(--m-hop-char) + var(--wi) * var(--m-hop-word)); }
  html.dp-anim .dp-breathline.settled .ch { animation: none; opacity: 1; transform: none; filter: none; }
}
@keyframes dpArrive {
  0% { opacity: 0; filter: blur(3.5px); transform: translateY(5px); }
  25% { opacity: .37; filter: blur(1.9px); }
  40% { opacity: .36; filter: blur(2.45px); }
  58% { opacity: .68; filter: blur(1.05px); }
  72% { opacity: .6; filter: blur(1.6px); transform: translateY(2px); }
  86% { opacity: .97; filter: blur(.4px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes dpFlick { 0%, 4%, 17%, 100% { opacity: 0; } 9% { opacity: 1; } }
@keyframes dpHop {
  0% { opacity: 0; transform: translateY(.08em); filter: blur(1.8px) var(--fx-glow-off); }
  63% { opacity: 1; transform: translateY(-.08em); filter: blur(.4px) var(--fx-glow-hop); }
  86% { transform: translateY(.01em); filter: blur(0) var(--fx-glow-off); }
  100% { opacity: 1; transform: none; filter: blur(0) var(--fx-glow-off); }
}

/* ---------------------------------------------------------------- interludes */
.dp-breath { min-height: calc(100svh * .85); }
.dp-breathline { font-size: var(--t-dp-breath); line-height: 1.5; letter-spacing: .06em; opacity: .94; text-shadow: var(--ts-h2); }
.dp-breathline .ph { display: inline-block; }
/* a small dark pool behind the one line, and behind the story beside the timeline */
.dp-breath .dp-wrap::before { content: ""; position: absolute; z-index: -1; filter: blur(18px); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in oklab, var(--p-shade) 62%, transparent), color-mix(in oklab, var(--p-shade) 26%, transparent) 55%, transparent 78%); }
.dp-breath .dp-wrap::before { inset: -60% 10%; }
.dp-story { padding: var(--s-6) var(--s-5); }

/* ---------------------------------------------------------------- glass, and the sheen that travels round its edge */
.dp-glass { position: relative; border-radius: var(--r-lg);
  background: radial-gradient(color-mix(in oklab, var(--p-ink) 5%, transparent) 1.2px, transparent 1.5px) 0 0 / 7px 7px,
              linear-gradient(165deg, color-mix(in oklab, var(--p-night-deep) 82%, transparent), color-mix(in oklab, var(--p-night-deep) 74%, transparent));
  border: 1px solid color-mix(in oklab, var(--p-ink) 13%, transparent); box-shadow: var(--sh-glass); }
.dp-sheen { position: absolute; inset: -1px; border-radius: calc(var(--r-lg) + 1px); overflow: hidden; pointer-events: none; padding: 1.4px;
  -webkit-mask: linear-gradient(var(--p-shade), var(--p-shade)) content-box, linear-gradient(var(--p-shade), var(--p-shade)); -webkit-mask-composite: xor;
  mask: linear-gradient(var(--p-shade), var(--p-shade)) content-box, linear-gradient(var(--p-shade), var(--p-shade)); mask-composite: exclude; }
.dp-sheen i { position: absolute; left: 50%; top: 50%; width: var(--spin, 200%); aspect-ratio: 1; display: block; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 6%, color-mix(in oklab, var(--p-cream) 60%, transparent) 13%, color-mix(in oklab, var(--p-gold-light) 27%, transparent) 18%, transparent 27% 56%,
    color-mix(in oklab, var(--p-cream) 48%, transparent) 63%, color-mix(in oklab, var(--p-gold-light) 21%, transparent) 68%, transparent 77% 100%); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.dp-still) .dp-sheen i { animation: dpGlint var(--m-sheen) linear infinite; animation-delay: var(--gd, 0s); }
  .idle .dp-sheen i, .dp-sheen.idle i { animation-play-state: paused !important; }
}
@keyframes dpGlint { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.dp-checks { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); }
.dp-checks li { position: relative; padding-left: 1.4rem; font-size: var(--t-small); line-height: 1.6; color: var(--p-lead); }
.dp-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: .82rem; height: .82rem; background: var(--p-gold-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------------------------------------------------------------- three doors */
.dp-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: var(--s-7); }
.dp-door { padding: var(--s-5) 1.45rem 1.6rem; transition: transform var(--m-lift) var(--m-ease-expo); }
@media (hover: hover) and (pointer: fine) { .dp-door:hover { transform: translateY(-4px); } }
.dp-door__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.dp-door h3 { font-size: var(--t-dp-card); line-height: 1.2; color: var(--p-ink); }
.dp-door__lede { font-size: var(--t-body); color: var(--p-ink); }
.dp-mini { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--p-gold-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dp-mini .ping { stroke: color-mix(in oklab, var(--p-gold-light) 50%, transparent); transform-origin: 22px 22px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { html:not(.dp-still) .dp-door:not(.idle) .dp-mini .ping { animation: dpPing var(--m-ping) ease-out infinite; } }
@keyframes dpPing { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }

/* ---------------------------------------------------------------- records: a panel and a framed photograph */
.dp-show { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.2rem; align-items: start; margin-top: var(--s-7); }
.dp-showpanel { padding: 1.7rem 1.6rem 1.8rem; }
.dp-kicker { font-size: var(--t-label); letter-spacing: .14em; color: var(--p-gold-light); margin-bottom: var(--s-2); }
.dp-showpanel h3 { font-size: var(--t-dp-show); line-height: 1.25; margin-bottom: var(--s-2); }
.dp-what { font-size: var(--t-small); color: var(--p-lead); }
.dp-checks--links li { display: flex; justify-content: space-between; gap: var(--s-4); }
.dp-checks--links a { display: inline-flex; align-items: center; min-height: 44px; margin-block: calc(var(--s-3) * -1); color: var(--p-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--p-ink) 30%, transparent); text-underline-offset: 4px; }
.dp-checks--links a:hover { text-decoration-color: var(--p-gold-light); }
.dp-checks--links time { flex: none; font-size: var(--t-label); color: var(--p-muted); align-self: center; }
.dp-visit { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-top: var(--s-5); padding: 0 var(--s-5); border-radius: var(--r-pill);
  font-size: var(--t-dp-pill); font-weight: 500; letter-spacing: .12em; color: var(--p-accent-ink); background: var(--p-gold); transition: transform var(--m-hover-dp) var(--m-ease-expo); }
.dp-row .dp-visit { margin-top: 0; }
.dp-visit em { font-style: normal; transition: transform var(--m-hover-dp) var(--m-ease-expo); }
.dp-visit--ghost { color: var(--p-ink); background: color-mix(in oklab, var(--p-night-deep) 60%, transparent); border: 1px solid color-mix(in oklab, var(--p-ink) 24%, transparent); }
@media (hover: hover) and (pointer: fine) { .dp-visit:hover em { transform: translate(3px, -3px); } }
.dp-visit:focus-visible em { transform: translate(3px, -3px); }
.dp-plate { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--p-night-deep);
  border: 1px solid color-mix(in oklab, var(--p-ink) 16%, transparent); box-shadow: var(--sh-plate); }
.dp-plate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--sh-ring-gold), var(--sh-glow); opacity: 0; transition: opacity var(--m-lift) var(--m-ease-expo); pointer-events: none; }
.dp-plate:hover::after, .dp-plate:focus-visible::after { opacity: 1; }
.dp-plate__bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: color-mix(in oklab, var(--p-ink) 7%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); }
.dp-plate__bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--p-ink) 22%, transparent); }
.dp-plate__bar span { margin-left: .6rem; font-size: var(--t-label); line-height: 1; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-plate img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- tournaments: three tiles */
.dp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); }
.dp-stat { padding: 1.4rem 1.3rem; border-radius: var(--r-tile); background: color-mix(in oklab, var(--p-night-deep) 72%, transparent); border: 1px solid color-mix(in oklab, var(--p-gold) 28%, transparent); }
.dp-stat__num { font-size: var(--t-dp-stat); line-height: 1.3; color: var(--p-gold-light); margin-bottom: var(--s-2); }
.dp-stat p:not(.dp-stat__num) { font-size: var(--t-small); line-height: 1.6; color: var(--p-lead); }

/* ---------------------------------------------------------------- questions: beats in one glass panel */
.dp-beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); padding: var(--s-6) var(--s-5); }
.dp-beat { padding: 1.1rem 1.15rem; border-radius: var(--r-tile); background: color-mix(in oklab, var(--p-ink) 5%, transparent); border: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent); }
.dp-beat__t { font-family: var(--font-text); font-size: var(--t-small); font-weight: 500; letter-spacing: .06em; line-height: 1.5; color: var(--p-gold-light); }
.dp-beat p { margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.7; color: var(--p-lead); }
.dp-email { display: inline-flex; align-items: center; min-height: 44px; color: var(--p-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.dp-email:hover { color: var(--p-cream); }

/* ---------------------------------------------------------------- history: a timeline beside the story */
.dp-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.4rem; align-items: start; margin-top: var(--s-7); }
.dp-split .dp-lead { margin-top: 0; }
.dp-timeline__list { display: grid; gap: var(--s-5); }
.dp-timeline { position: relative; padding: var(--s-6) var(--s-5) var(--s-6) calc(var(--s-5) + 2.2rem); overflow: hidden; }
.dp-timeline::before { content: ""; position: absolute; left: calc(var(--s-5) + .55rem); top: var(--s-7); bottom: var(--s-7); width: 2px; background: color-mix(in oklab, var(--p-gold-light) 35%, transparent); }
.dp-timeline li { position: relative; display: grid; }
.dp-timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--p-night-deep); border: 2px solid var(--p-gold-light); }
.dp-timeline li:first-of-type::before { background: var(--p-gold); }
.dp-timeline__when { font-size: var(--t-label); letter-spacing: .14em; color: var(--p-gold-light); }
.dp-timeline__what { font-size: var(--t-dp-card); line-height: 1.35; }
.dp-timeline__note { font-size: var(--t-small); color: var(--p-lead); }
/* a spark that runs down the line (the reference's dashes flowing along a road, done with a moving dot) */
.dp-timeline__spark { position: absolute; left: calc(var(--s-5) + .55rem - 3px); top: var(--s-7); width: 8px; height: 8px; border-radius: 50%; background: var(--p-cream); filter: var(--fx-glow-spark); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.dp-still) .dp-timeline.in:not(.idle) .dp-timeline__spark { animation: dpSpark var(--m-spark) linear infinite; }
}
@keyframes dpSpark { 0% { transform: translateY(0); opacity: 0; } 10%, 85% { opacity: 1; } 100% { transform: translateY(var(--run, 260px)); opacity: 0; } }
.dp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s-5); }
.dp-chips li { padding: .4rem .8rem; border-radius: var(--r-pill); font-size: var(--t-label); letter-spacing: .05em; color: var(--p-ink);
  background: linear-gradient(165deg, color-mix(in oklab, var(--p-night-deep) 82%, transparent), color-mix(in oklab, var(--p-night-deep) 74%, transparent));
  border: 1px solid color-mix(in oklab, var(--p-ink) 17%, transparent); box-shadow: var(--sh-glass); }

/* ---------------------------------------------------------------- join: the facts and the one big button */
.dp-join { justify-content: flex-start; padding-top: calc(var(--dp-pad) * .6); padding-bottom: var(--s-7); }
.dp-joinpanel { max-width: 560px; margin-top: var(--s-6); padding: var(--s-6) var(--s-5) var(--s-5); }
.dp-facts { display: grid; gap: var(--s-3); margin: 0; }
.dp-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
.dp-facts dt { font-size: var(--t-label); letter-spacing: .14em; color: var(--p-gold-light); }
.dp-facts dd { margin: 0; font-size: var(--t-dp-card); text-align: right; }
.dp-facts dd a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-text); font-size: var(--t-small); color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; }
.dp-cta { width: 100%; min-height: 56px; margin-top: var(--s-6); font-size: var(--t-small); letter-spacing: .14em; }
.dp-alt { margin-top: var(--s-3); font-size: var(--t-small); color: var(--p-lead); }
.dp-foot { margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); font-size: var(--t-label); color: var(--p-muted); text-shadow: var(--ts-lead); }
.dp-foot ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.dp-foot a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--p-lead); }
.dp-foot a:hover { color: var(--p-cream); text-decoration: underline; text-underline-offset: 3px; }
.dp-foot p { align-self: center; }

/* ---------------------------------------------------------------- paused, and a hidden tab: every loop stops */
html.dp-still *, html.dp-hidden * { animation-play-state: paused !important; }
html.dp-still .dp-display.play .c, html.dp-still .dp-breathline.in .ch, html.dp-still .dp-boot i { animation-play-state: running !important; }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 900px) {
  .dp-show, .dp-split { grid-template-columns: 1fr; gap: 1.4rem; }
  .dp-beats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) { .dp-doors { grid-template-columns: 1fr; gap: .9rem; } }
@media (max-width: 780px) { .dp-stats { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dp-panel { padding-top: 5.5rem; padding-bottom: 5.75rem; }
  .dp-hero .dp-wrap { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); padding-inline-start: 0; }
  .dp-display { justify-self: end; margin-inline-end: .25rem; }
  .dp-wordmark .club-wordmark { display: none; }
  .dp-panel.dp-tall { padding-block: 7rem; }
  .dp-scrim .dp-wrap::before { inset: -28% -10%;
    background: radial-gradient(ellipse 90% 58% at 50% 52%, color-mix(in oklab, var(--p-shade) 82%, transparent), color-mix(in oklab, var(--p-shade) 50%, transparent) 54%, transparent 86%); }
  .dp-beats { grid-template-columns: 1fr; padding: var(--s-4); }
  .dp-showpanel h3 { font-size: var(--t-dp-card); }
  .dp-pill { padding: 0 var(--s-4); }
  .dp-hero { --dp-hero-controls-bottom: 1.25rem; }
}
@media (max-height: 700px) and (max-width: 640px) {
  .dp-panel { padding-top: 4.85rem; padding-bottom: 4.25rem; }
  .dp-hero .dp-wrap { row-gap: var(--s-4); }
  .dp-lead { font-size: 1rem; line-height: 1.75; }
  .dp-hero { --dp-hero-controls-bottom: .75rem; }
  .dp-cue span { flex-direction: row; gap: .35rem; }
  .dp-cue i { font-size: 1.1rem; }
}
@media (max-width: 420px) { .dp-pill em { display: none; } }
@media (max-width: 380px) {
  .dp-nav { --dp-nav-edge: var(--s-3); }
  .dp-nav__end { gap: var(--s-1); }
  .dp-pill { padding-inline: var(--s-2); }
  .dp-nav__menu summary .dp-arrow { display: none; }
}
