/* MOCO VIRTUAL OFFICE — design system v1
   Warm paper, ink, one marker-yellow accent; chroma comes from the characters and the department colours.
   No inline styles anywhere (CSP style-src 'self'): colours are chosen with data-dept / data-level attributes. */

/* Headings, names, buttons, navigation: M PLUS 1p Black (the owner chose D from the specimen; one heading typeface only) */
@font-face {
  font-family: "M PLUS 1p";
  src: url("fonts/mplus1p-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-2: #efe7d6;
  --card: #fffdf8;
  --ink: #1d1a16;
  --ink-2: #453f36;
  --mute: #675f53;
  --line: #ddd3bf;
  --line-2: #cbbfa6;
  --marker: #ffe36e;
  --focus: #1d1a16;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 0 rgb(29 26 22 / 6%), 0 14px 30px -18px rgb(29 26 22 / 35%);
  --font-display: "M PLUS 1p", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-latin: "Unbounded", "Futura", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1180px;
  --dept: var(--ink);
}

[data-dept="executive"] { --dept: #2b3a67; }
[data-dept="product"] { --dept: #2a78b5; }
[data-dept="creative"] { --dept: #e2552d; }
[data-dept="content"] { --dept: #23906a; }
[data-dept="social"] { --dept: #d03d83; }
[data-dept="research"] { --dept: #7552cf; }
[data-dept="growth"] { --dept: #c5870a; }
[data-dept="operations"] { --dept: #5b6c7d; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(1200px 520px at 8% -8%, rgb(255 227 110 / 28%), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgb(226 85 45 / 8%), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
  word-break: auto-phrase; /* break Japanese at phrase boundaries (Chromium); others fall back to the default */
  line-break: strict;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus-visible { outline: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 1.3; letter-spacing: 0.03em; margin: 0; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.chapter-figure { margin: 28px 0 8px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.chapter-img { width: 100%; height: auto; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.draft-banner { background: var(--marker); padding: 8px var(--gutter); font-size: 0.8125rem; text-align: center; font-weight: 700; }
.draft-badge { display: inline-block; background: var(--marker); border: 1px solid #b89a1c; border-radius: 6px; padding: 0 0.5em; font-size: 0.6875rem; line-height: 1.7; vertical-align: middle; letter-spacing: 0.08em; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgb(247 242 232 / 86%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(29 26 22 / 8%);
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 5px; }
.brand-mark { font-family: var(--font-latin); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.14em; }
.brand-sub { font-family: var(--font-latin); font-weight: 900; font-size: 0.5rem; letter-spacing: 0.34em; color: var(--mute); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 0.875rem; letter-spacing: 0.06em; }
.site-nav a:hover { background: rgb(29 26 22 / 7%); }
.site-nav a[aria-current="page"] { background: var(--marker); }
.nav-button { display: none; }

.breadcrumbs { padding: 18px var(--gutter) 0; font-size: 0.75rem; color: var(--mute); width: min(100%, calc(var(--wrap) + var(--gutter) * 2)); margin-inline: auto; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

main { display: block; padding-bottom: 96px; }

/* ---------- typography helpers ---------- */
.eyebrow { font-family: var(--font-latin); font-weight: 900; font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.mark { background: linear-gradient(transparent 58%, var(--marker) 58% 92%, transparent 92%); padding: 0 0.08em; }
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 40em; }
.num { font-family: var(--font-latin); font-weight: 900; letter-spacing: 0; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.06em; border: 2px solid var(--ink); cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-2px); background: var(--marker); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--arrow::after { content: "→"; font-family: var(--font-latin); }

.section { padding-top: clamp(56px, 9vw, 112px); }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { font-size: clamp(1.625rem, 3.4vw, 2.5rem); }
.section-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 42em; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 700; line-height: 1.7; letter-spacing: 0.04em; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dept); flex: none; }
.chip--rank::before { display: none; }
.chip--icon::before { display: none; }
.chip--icon { padding-left: 4px; }
.dept-icon { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.dept-head .dept-icon { width: 44px; height: 44px; }
.chip--rank { background: var(--paper-2); }

/* ---------- member cards ---------- */
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px) clamp(14px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.member-card { position: relative; container-type: inline-size; }
.member-card[hidden] { display: none; }
.card-link { display: block; text-decoration: none; }
.card-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-link:hover .card-photo img, .card-link:focus-visible .card-photo img { transform: scale(1.045); }
/* member cards coming into view: the department's colour bar fills the frame like a door, opens upward, and the member
   rises in behind it with a small bounce (site.js adds .rise-ready and, per card in view, .is-risen) */
.card-photo::after { z-index: 2; }
.rise-ready .member-card .card-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--dept); transform: scaleY(0); transform-origin: 50% 100%; pointer-events: none; }
.rise-ready .member-card:not(.is-risen) .card-photo img { translate: 0 100%; }
.rise-ready .member-card.is-risen .card-photo::before { animation: door-open 0.7s cubic-bezier(0.65, 0, 0.35, 1) both; }
.rise-ready .member-card.is-risen .card-photo img { animation: member-arrive 0.7s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes door-open {
  0% { transform: scaleY(0); transform-origin: 50% 100%; }
  38% { transform: scaleY(1); transform-origin: 50% 100%; }
  39% { transform: scaleY(1); transform-origin: 50% 0; }
  100% { transform: scaleY(0); transform-origin: 50% 0; }
}
@keyframes member-arrive {
  0% { translate: 0 100%; scale: 1; }
  62% { translate: 0 0; scale: 1.05; }
  100% { translate: 0 0; scale: 1; }
}
.card-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--dept); }
.card-body { padding: 14px 4px 0; }
.card-name { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.1875rem; letter-spacing: 0.08em; }
.card-name small { font-family: var(--font-latin); font-size: 0.5625rem; letter-spacing: 0.18em; color: var(--mute); font-weight: 900; text-transform: uppercase; }
.card-titles { margin: 4px 0 0; font-size: 0.75rem; color: var(--mute); line-height: 1.7; letter-spacing: 0.08em; }
.card-walker { position: absolute; left: 0; top: calc((100cqw * 0.75) - 61px); width: 60px; height: 65px; pointer-events: none; opacity: 0; }
.card-walker .sprite-frame { width: 60px; height: 65px; }
.card-walker .sprite-walk { width: 480px; height: 65px; animation-duration: 0.6s; }
.card-link:hover ~ .card-walker, .card-link:focus-visible ~ .card-walker { opacity: 1; animation: cross 3.4s linear infinite; }
@keyframes cross { from { transform: translateX(-70px); } to { transform: translateX(calc(100cqw + 10px)); } }

/* ---------- sprites ---------- */
.sprite-frame { display: block; overflow: hidden; width: 120px; height: 130px; flex: none; }
.sprite-walk { display: block; width: 960px; max-width: none; height: 130px; animation: walk 0.8s steps(8) infinite; }
@keyframes walk { to { transform: translateX(-100%); } }
.sprite-frame--idle { width: 192px; height: 208px; }
.sprite-idle { display: block; width: 1152px; max-width: none; height: 208px; }
/* idle blink timings differ per character: four patterns taken from the motion manifest */
@keyframes idle-a {
  0.00% { transform: translateX(0px); }
  43.78% { transform: translateX(-192px); }
  70.05% { transform: translateX(-384px); }
  96.32% { transform: translateX(-576px); }
  97.37% { transform: translateX(-768px); }
  98.95% { transform: translateX(-960px); }
}
.sprite-idle[data-idle="a"] { animation: idle-a 5.71s step-end infinite; }
@keyframes idle-b {
  0.00% { transform: translateX(0px); }
  41.96% { transform: translateX(-192px); }
  83.92% { transform: translateX(-384px); }
  84.97% { transform: translateX(-576px); }
  86.71% { transform: translateX(-768px); }
  87.76% { transform: translateX(-960px); }
}
.sprite-idle[data-idle="b"] { animation: idle-b 5.72s step-end infinite; }
@keyframes idle-c {
  0.00% { transform: translateX(0px); }
  36.67% { transform: translateX(-192px); }
  63.33% { transform: translateX(-384px); }
  83.33% { transform: translateX(-576px); }
  84.67% { transform: translateX(-768px); }
  86.67% { transform: translateX(-960px); }
}
.sprite-idle[data-idle="c"] { animation: idle-c 6.00s step-end infinite; }
@keyframes idle-d {
  0.00% { transform: translateX(0px); }
  39.93% { transform: translateX(-192px); }
  68.97% { transform: translateX(-384px); }
  96.19% { transform: translateX(-576px); }
  97.28% { transform: translateX(-768px); }
  98.91% { transform: translateX(-960px); }
}
.sprite-idle[data-idle="d"] { animation: idle-d 5.51s step-end infinite; }

/* ---------- team index ---------- */
.page-hero { padding-top: clamp(28px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); letter-spacing: 0.04em; }
.page-hero h1 .num { font-size: 1.15em; }
.team-tools, .work-tools { grid-template-columns: minmax(0, 1fr); min-width: 0; display: grid; gap: 12px; margin: 28px 0 36px; padding: 14px 0; background: rgb(247 242 232 / 92%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.team-tools > *, .work-tools > * { min-width: 0; }
.search-box { display: none; align-items: center; gap: 10px; }
.js .search-box { display: flex; }
.search-box input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); }
.search-box input::placeholder { color: var(--mute); }
.result-count { font-size: 0.8125rem; color: var(--mute); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.filter { font: inherit; font-size: 0.8125rem; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; letter-spacing: 0.04em; }
.filter::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dept); }
.filter--all::before, .filter--rank::before { display: none; }
.filter:hover { background: var(--card); }
.filter[aria-pressed="true"], .filter[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-label { font-family: var(--font-latin); font-weight: 900; font-size: 0.5625rem; letter-spacing: 0.26em; color: var(--mute); margin-right: 4px; align-self: center; }
.filters-row { flex-wrap: wrap; align-items: center; gap: 8px; }
.dept-block { margin-bottom: clamp(44px, 7vw, 84px); }
.dept-block[hidden] { display: none; }
.dept-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 3px solid var(--dept); }
.dept-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.dept-head .count { font-family: var(--font-latin); font-weight: 900; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--mute); }
.empty-note { color: var(--mute); padding: 40px 0; text-align: center; }

/* ---------- member page ---------- */
.member-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: clamp(16px, 3vw, 40px); }
.member-portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); aspect-ratio: 9 / 16; max-width: 420px; justify-self: end; width: 100%; }
.member-portrait img { width: 100%; height: 100%; object-fit: cover; }
.member-portrait::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: var(--dept); }
.member-id h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: 0.08em; line-height: 1.1; }
.member-roman { font-family: var(--font-latin); font-weight: 900; letter-spacing: 0.22em; font-size: 0.8125rem; color: var(--mute); margin: 8px 0 18px; text-transform: uppercase; }
.member-titles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.member-titles li { font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: 0.06em; padding: 4px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.member-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.member-oneliner { position: relative; margin: 22px 0 0; padding: 18px 20px 18px 24px; background: var(--card); border-radius: var(--radius); border-left: 5px solid var(--dept); font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; line-height: 1.7; box-shadow: var(--shadow); }
.member-bio { max-width: 40em; margin-top: 8px; color: var(--ink-2); }

/* member page sections: each opens with an ink rule (a short bar in the department colour on its left end), a number
   in the department colour, the heading, and its English name pushed to the right — a chapter, clearly separated */
.member { counter-reset: member-section; }
.member-section { position: relative; counter-increment: member-section; margin-top: clamp(56px, 7vw, 92px); padding-top: 26px; border-top: 3px solid var(--ink); scroll-margin-top: 24px; }
.member-section::before { content: ""; position: absolute; top: -3px; left: 0; width: 88px; height: 3px; background: var(--dept); }
.member-section > h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 26px; }
.member-section > h2::before { content: counter(member-section, decimal-leading-zero); flex: none; padding: 3px 9px; border: 2px solid var(--dept); border-radius: 8px; font-family: var(--font-latin); font-weight: 900; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--dept); line-height: 1.2; }
.member-section > h2 small { margin-left: auto; font-family: var(--font-latin); font-weight: 900; font-size: 0.625rem; letter-spacing: 0.3em; color: var(--mute); text-transform: uppercase; }
/* "このページの内容": the numbered list of the sections, right under the hero */
.page-index { margin: clamp(36px, 5vw, 56px) 0 0; padding: 18px 22px 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-index-head { margin: 0 0 12px; font-family: var(--font-display); font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.06em; }
.page-index-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 28px; }
.page-index-label { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-weight: 900; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--mute); }
.page-index ol { list-style: none; margin: 0; padding: 0; }
.page-index a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.page-index a:hover { color: var(--dept); }
.page-index-no { flex: none; min-width: 2.2em; font-family: var(--font-latin); font-weight: 900; font-size: 0.75rem; color: var(--dept); }

.stage { display: flex; align-items: flex-end; gap: clamp(16px, 4vw, 56px); padding: 28px clamp(16px, 3vw, 40px) 0; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--card), var(--paper-2)); border: 1px solid var(--line); overflow: hidden; position: relative; min-height: 260px; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 36px); opacity: 0.6; }
.stage figure { margin: 0; position: relative; z-index: 1; text-align: center; }
.stage figcaption { font-size: 0.6875rem; font-family: var(--font-latin); font-weight: 900; letter-spacing: 0.24em; color: var(--mute); padding: 8px 0 34px; text-transform: uppercase; }
.stage .sprite-frame { margin-inline: auto; }
.member-name-row { display: flex; align-items: flex-end; gap: 14px; }
.member-name-row h1 { margin-bottom: 0; }
.member-walker { flex: none; margin-bottom: 0.1em; }
.member-walker .sprite-frame { width: 60px; height: 65px; }
.member-walker .sprite-walk { width: 480px; height: 65px; animation-duration: 0.6s; }
.stage-note { margin-left: auto; align-self: center; max-width: 26em; font-size: 0.875rem; color: var(--ink-2); padding-bottom: 28px; position: relative; z-index: 1; }

.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.skill { padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; }
.skill-name { font-weight: 700; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); text-decoration: none; }
a.skill-name:hover { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 4px; }
.skill--untested .skill-level i { border-color: var(--line-2); }
.skill-lv { font-weight: 700; color: var(--ink); }
.skill--untested .skill-lv { font-weight: 400; color: var(--mute); }
.skill-rarity span { margin-right: 4px; color: #c8961a; letter-spacing: 0.05em; }
.skill-level { display: flex; align-items: center; gap: 4px; }
.skill-level i { flex: 1; height: 10px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); }
.skill-level[data-level="1"] i:nth-child(-n+1), .skill-level[data-level="2"] i:nth-child(-n+2), .skill-level[data-level="3"] i:nth-child(-n+3), .skill-level[data-level="4"] i:nth-child(-n+4), .skill-level[data-level="5"] i:nth-child(-n+5) { background: var(--dept); border-color: var(--dept); }
.skill-level[data-level="0"] i { border-style: dashed; background: transparent; }
.skill-state { font-size: 0.75rem; color: var(--mute); display: flex; justify-content: space-between; gap: 8px; }
.skill-note { margin-top: 14px; font-size: 0.8125rem; color: var(--mute); }

/* ---------- member page: the character sheet (profile + game-like status window) and personality ---------- */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.profile-facts { margin: 0; padding: 8px 22px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.profile-facts div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.profile-facts div:last-child { border-bottom: 0; }
.profile-facts dt { font-size: 0.75rem; font-weight: 700; color: var(--mute); padding-top: 2px; }
.profile-facts dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.sheet-status { display: grid; gap: 14px; }
.status-window { position: relative; padding: 18px 22px 16px; border-radius: 16px; background: #1b1d33; color: #f6f3ea; border: 3px solid #f6f3ea; box-shadow: 0 0 0 3px #1b1d33, var(--shadow); }
.status-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid rgb(246 243 234 / 30%); font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.08em; }
.status-sub { font-size: 0.75rem; letter-spacing: 0.3em; color: rgb(246 243 234 / 70%); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.stat { display: grid; grid-template-columns: 6.6em minmax(0, 1fr) 1.6em 5.6em; align-items: center; gap: 10px; font-size: 0.875rem; }
.stat-name { font-weight: 700; }
.stat-gauge { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.stat-gauge i { height: 12px; border-radius: 2px; background: rgb(246 243 234 / 14%); }
.stat-gauge[data-v="1"] i:nth-child(-n+1), .stat-gauge[data-v="2"] i:nth-child(-n+2), .stat-gauge[data-v="3"] i:nth-child(-n+3), .stat-gauge[data-v="4"] i:nth-child(-n+4), .stat-gauge[data-v="5"] i:nth-child(-n+5), .stat-gauge[data-v="6"] i:nth-child(-n+6), .stat-gauge[data-v="7"] i:nth-child(-n+7), .stat-gauge[data-v="8"] i:nth-child(-n+8), .stat-gauge[data-v="9"] i:nth-child(-n+9), .stat-gauge[data-v="10"] i { background: var(--gauge, var(--dept)); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 22%); }
.stat-value { font-family: var(--font-latin); font-weight: 900; font-size: 1.0625rem; text-align: right; }
.stat-rank { font-size: 0.6875rem; color: rgb(246 243 234 / 70%); text-align: right; white-space: nowrap; }
.stat--top .stat-rank { color: #ffe36e; font-weight: 700; }
.status-best { margin: 14px 0 0; padding-top: 10px; border-top: 2px solid rgb(246 243 234 / 30%); font-size: 0.875rem; }
.status-best strong { margin: 0 4px; padding: 0 8px; border-radius: 6px; background: var(--gauge, var(--dept)); color: #fff; }
/* on the dark status window, the two darkest department colours would vanish: they get a lighter tone of the same hue */
.status-window[data-dept="executive"] { --gauge: #7f93d6; }
.status-window[data-dept="operations"] { --gauge: #93a8bc; }
/* the status window on the 100-point scale: radar (colour attribute; dashed = everyone's average), total, two columns */
.status-window--100 { --radar: var(--gauge, var(--dept)); }
.status-window--100[data-attr="red"] { --radar: #e86a5c; } .status-window--100[data-attr="orange"] { --radar: #f0a050; } .status-window--100[data-attr="yellow"] { --radar: #f0c94a; }
.status-window--100[data-attr="green"] { --radar: #6fc283; } .status-window--100[data-attr="blue"] { --radar: #7c9cf0; } .status-window--100[data-attr="cyan"] { --radar: #6fd0ea; }
.status-window--100[data-attr="purple"] { --radar: #b08ee6; } .status-window--100[data-attr="pink"] { --radar: #ee86bb; } .status-window--100[data-attr="white"] { --radar: #ece6d8; }
.status-top { position: relative; }
.radar { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.radar-ring { fill: none; stroke: rgb(246 243 234 / 16%); }
.radar-axis { stroke: rgb(246 243 234 / 16%); }
.radar-label { fill: #f6f3ea; font-size: 11px; font-family: inherit; }
.radar-avg { fill: none; stroke: rgb(246 243 234 / 55%); stroke-dasharray: 4 3; }
.radar-own { fill: var(--radar); fill-opacity: 0.35; stroke: var(--radar); stroke-width: 2.5; }
.radar-dot { fill: var(--radar); }
.status-total { position: absolute; top: 0; right: 0; margin: 0; display: grid; justify-items: end; line-height: 1.1; }
.status-total span { font-size: 0.6875rem; color: rgb(246 243 234 / 72%); }
.status-total strong { font-family: var(--font-latin); font-weight: 900; font-size: 2.6rem; color: var(--radar); letter-spacing: 0.02em; }
.radar-key { margin: 0 0 10px; text-align: center; font-size: 0.75rem; color: rgb(246 243 234 / 72%); }
.radar-key span { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 4px; }
.radar-key-own { border-top: 3px solid var(--radar); }
.radar-key-avg { border-top: 2px dashed rgb(246 243 234 / 55%); margin-left: 8px; }
.status-list { margin-top: 18px; }
/* ten stats: two columns of five (no stat left alone on a last row); one column on a phone */
.stats100 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
@media (max-width: 640px) { .stats100 { grid-template-columns: minmax(0, 1fr); } }
.stat100 { display: grid; gap: 3px; padding: 6px 0; border-top: 1px solid rgb(246 243 234 / 14%); }
.stat100-head { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.stat100-name { font-weight: 700; font-size: 0.875rem; }
.stat100-value { margin-left: auto; font-family: var(--font-latin); font-weight: 900; font-size: 1.125rem; }
.stat100-rank { font-size: 0.6875rem; color: rgb(246 243 234 / 70%); white-space: nowrap; }
.stat100.stat--top .stat100-rank { color: #ffe36e; font-weight: 700; }
.stat100-bar { display: block; height: 6px; border-radius: 99px; background: rgb(246 243 234 / 14%); overflow: hidden; }
.stat100-bar i { display: block; height: 100%; border-radius: inherit; background: var(--radar); }
.stat100-bar[data-pct="0"] i { width: 0%; }
.stat100-bar[data-pct="5"] i { width: 5%; }
.stat100-bar[data-pct="10"] i { width: 10%; }
.stat100-bar[data-pct="15"] i { width: 15%; }
.stat100-bar[data-pct="20"] i { width: 20%; }
.stat100-bar[data-pct="25"] i { width: 25%; }
.stat100-bar[data-pct="30"] i { width: 30%; }
.stat100-bar[data-pct="35"] i { width: 35%; }
.stat100-bar[data-pct="40"] i { width: 40%; }
.stat100-bar[data-pct="45"] i { width: 45%; }
.stat100-bar[data-pct="50"] i { width: 50%; }
.stat100-bar[data-pct="55"] i { width: 55%; }
.stat100-bar[data-pct="60"] i { width: 60%; }
.stat100-bar[data-pct="65"] i { width: 65%; }
.stat100-bar[data-pct="70"] i { width: 70%; }
.stat100-bar[data-pct="75"] i { width: 75%; }
.stat100-bar[data-pct="80"] i { width: 80%; }
.stat100-bar[data-pct="85"] i { width: 85%; }
.stat100-bar[data-pct="90"] i { width: 90%; }
.stat100-bar[data-pct="95"] i { width: 95%; }
.stat100-bar[data-pct="100"] i { width: 100%; }
.stat100-note { font-size: 0.75rem; line-height: 1.55; color: rgb(246 243 234 / 76%); }
@media (max-width: 480px) { .status-total strong { font-size: 2rem; } }
.status-kin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kin { padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.kin-label { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; color: var(--mute); }
.persona { display: grid; gap: 20px; }
.persona-text { margin: 0; padding: 20px 24px; border-left: 6px solid var(--dept); border-radius: 0 var(--radius) var(--radius) 0; background: var(--card); font-size: 1rem; line-height: 1.9; }
.persona-voices .bubble-label a { color: inherit; }
/* the office profile (a proposal in the drafts build): about, companions, relation cards, abilities */
/* the catch line: the first thing to read after the name, in large type right under it */
.member-catch { max-width: 30em; margin: -4px 0 22px; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.75; letter-spacing: 0.02em; color: var(--ink); text-wrap: pretty; }
.vo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vo-main { display: grid; gap: 14px; }
.vo-character { margin: 0; padding: 0 4px; color: var(--ink-2); font-size: 0.9375rem; }
.vo-quotes ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.vo-quotes li { padding: 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.vo-worry { padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--dept) 10%, var(--card)); border: 1px dashed var(--dept); }
.vo-worry p:last-child { margin: 4px 0 0; }
.vo-list { margin: 0; padding-left: 1.2em; }
.vo-list li { margin: 2px 0; }
.attr-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.attr-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / 18%); background: var(--attr, #ccc); flex: none; }
.attr-chip[data-attr="red"] i { --attr: #d9534f; } .attr-chip[data-attr="orange"] i { --attr: #e08e3c; } .attr-chip[data-attr="yellow"] i { --attr: #d6a92a; }
.attr-chip[data-attr="green"] i { --attr: #5aa469; } .attr-chip[data-attr="blue"] i { --attr: #4a72c8; } .attr-chip[data-attr="cyan"] i { --attr: #5bb8d4; }
.attr-chip[data-attr="purple"] i { --attr: #8e6bc0; } .attr-chip[data-attr="pink"] i { --attr: #d46ba0; } .attr-chip[data-attr="white"] i { --attr: #f4f1ea; }
.attr-help { position: relative; display: inline-block; margin-left: 8px; vertical-align: middle; }
.attr-help summary { list-style: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-2); color: var(--ink-2); font-size: 0.75rem; font-weight: 900; cursor: help; }
.attr-help summary::-webkit-details-marker { display: none; }
.attr-help summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.attr-pop { display: none; position: absolute; z-index: 20; left: 50%; top: calc(100% + 8px); transform: translateX(-60%); width: min(380px, 86vw); padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgb(0 0 0 / 18%); font-size: 0.8125rem; line-height: 1.6; }
.attr-help[open] .attr-pop, .attr-help:hover .attr-pop, .attr-help:focus-within .attr-pop { display: block; }
.attr-pop p { margin: 0 0 8px; color: var(--ink-2); }
.attr-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.attr-pop li { display: grid; gap: 1px; padding: 4px 6px; border-radius: 8px; }
.attr-pop li.is-own { background: color-mix(in srgb, var(--marker) 40%, var(--card)); }
.attr-pop li > span:last-child { color: var(--ink-2); font-size: 0.75rem; }
@media (max-width: 640px) { .attr-pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; transform: none; max-height: 70vh; overflow-y: auto; } }
.vo .voice-label, .persona-voices .voice-label, .vo-worry .voice-label { font-family: var(--font-display); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--ink-2); }
.vo-abilities { margin-top: 22px; }
.vo-abilities-head { margin: 0 0 10px; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--ink-2); }
.vo-abilities ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.ability { display: grid; gap: 1px; height: 100%; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.ability:hover { border-color: var(--dept); }
.ability strong { font-size: 0.875rem; }
.ability span { font-size: 0.6875rem; line-height: 1.5; color: var(--mute); }
.vo-subhead { font-size: 1rem; margin: 24px 0 10px; }
.relation-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.relation-card { padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--dept); }
.relation-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.relation-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dept); background: #fff; flex: none; }
.relation-head p { margin: 0; display: grid; }
.relation-head strong a { color: var(--ink); }
.relation-head span { font-size: 0.8125rem; color: var(--ink-2); }
.relation-card dl { margin: 0; display: grid; gap: 6px; }
.relation-card dt { font-size: 0.6875rem; font-weight: 700; color: var(--mute); }
.relation-card dd { margin: 0; font-size: 0.875rem; line-height: 1.7; }
.stat-note { grid-column: 1 / -1; margin: -2px 0 4px; font-size: 0.75rem; color: rgb(246 243 234 / 72%); }
.dict-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; }
.dict-tabs button { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius); border: 2px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; text-align: left; cursor: pointer; }
.dict-tabs button span { font-family: inherit; font-weight: 400; font-size: 0.8125rem; color: var(--ink-2); }
.dict-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dict-tabs button[aria-selected="true"] span { color: rgb(247 242 232 / 80%); }
.dict-tabs button:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }
.dict-head { margin: 8px 0 14px; font-size: 1.25rem; }
.dict-head small { margin-left: 8px; font-size: 0.8125rem; font-weight: 400; color: var(--mute); }
.js .dict-panel[hidden] { display: none; }
.genre-index { margin: 0 0 14px; }
.genre-index-head { margin: 0 0 8px; font-family: var(--font-display); font-weight: 900; }
.genre-index ol { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; }
.genre-index li[hidden], .ability-genre[hidden] { display: none; }
.genre-index a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 6px 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.875rem; text-decoration: none; }
.genre-index a:hover { background: var(--marker); }
.ability-genre { margin: 0 0 30px; scroll-margin-top: 24px; }
.genre-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 3px solid var(--ink); font-size: 1.125rem; }
.genre-head span { font-size: 0.8125rem; font-weight: 400; color: var(--mute); }
@media (max-width: 900px) { .vo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .stat { grid-template-columns: 5.6em minmax(0, 1fr) 1.4em; } .stat-rank { grid-column: 2 / -1; text-align: left; margin-top: -4px; } .status-window { padding: 16px 14px 14px; } }

.relations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.relation { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.relation h3 { font-family: var(--font-latin); font-size: 0.625rem; letter-spacing: 0.3em; color: var(--mute); margin-bottom: 12px; text-transform: uppercase; }
.relation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--dept); flex: none; }
.person strong { display: block; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.08em; line-height: 1.3; }
.person span { display: block; font-size: 0.6875rem; color: var(--mute); line-height: 1.5; }
.person:hover strong { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 4px; }

.interview { display: grid; gap: 14px; margin: 0; }
.qa { background: var(--card); border-radius: var(--radius); padding: 18px 22px; border: 1px solid var(--line); }
.qa dt { font-family: var(--font-display); font-weight: 900; margin-bottom: 6px; letter-spacing: 0.05em; }
.qa dt::before { content: "Q"; font-family: var(--font-latin); display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--marker); margin-right: 10px; font-size: 0.75rem; }
.qa dd { margin: 0; color: var(--ink-2); }

.credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.credit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.credit h3 { font-size: 1.0625rem; }
.credit p { margin: 6px 0 0; font-size: 0.8125rem; color: var(--mute); }
.credit-empty { background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, transparent 10px 20px); border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 26px; color: var(--ink-2); }

.others-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.others-head h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }


/* ---------- member: voice, duties, pairs ---------- */
.voice { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.voice-card { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 24px 24px 22px; position: relative; overflow: hidden; }
.voice-card::after { content: "“"; position: absolute; right: 14px; top: -22px; font-family: var(--font-display); font-size: 9rem; line-height: 1; color: rgb(255 227 110 / 22%); }
.voice-facts { display: grid; gap: 12px; margin: 0 0 18px; }
.voice-facts dt { font-family: var(--font-latin); font-weight: 900; font-size: 0.5625rem; letter-spacing: 0.26em; color: var(--marker); margin-bottom: 2px; }
.voice-facts dd { margin: 0; font-size: 0.9375rem; line-height: 1.7; }
.voice-label { font-family: var(--font-latin); font-weight: 900; font-size: 0.5625rem; letter-spacing: 0.26em; color: var(--marker); margin: 0 0 8px; }
.catchphrases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.catchphrases li { font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; line-height: 1.5; }
.bubbles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bubble-label { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; color: var(--mute); margin: 0 0 4px 62px; }
.bubble-body { display: flex; align-items: flex-end; gap: 10px; }
.bubble-body img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dept); flex: none; background: #fff; }
.bubble-body p { position: relative; margin: 0; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; font-size: 0.9375rem; line-height: 1.75; box-shadow: var(--shadow); }
.duties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.duty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; border-top: 5px solid var(--dept); }
.duty--not { border-top-color: var(--line-2); background: var(--paper-2); }
.duty h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.duty ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.7; }
.pairs { margin-top: 26px; }
.pairs h3 { font-family: var(--font-latin); font-weight: 900; font-size: 0.625rem; letter-spacing: 0.3em; color: var(--mute); margin-bottom: 12px; }
.pairs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.relation-owner { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.filters-row { display: none; }
.js .filters-row { display: flex; }


/* ---------- bands / groups ---------- */
.card-band { margin: 4px 0 0; font-size: 0.75rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.06em; line-height: 1.6; }
.card-band .card-part { display: block; margin-left: 1.15em; font-weight: 400; color: var(--mute); }
.chip--band { text-decoration: none; background: var(--marker); border-color: #cdb02c; }
.chip--band::before { display: none; }
.chip--band span { font-weight: 400; margin-left: 6px; color: var(--ink-2); }
.chip--band:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter--band::before { display: none; }
.filter-count { font-family: var(--font-latin); font-weight: 900; font-size: 0.625rem; opacity: 0.7; }
.filter--link { background: var(--marker); border-color: #cdb02c; }
.filter--link::before { display: none; }
.band-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.band-link { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s; height: 100%; }
.band-link:hover { transform: translateY(-4px); }
.band-photo { aspect-ratio: 1600 / 992; background: var(--paper-2); }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band-body { padding: 18px 22px 22px; }
.band-body h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.band-count { margin: 2px 0 12px; color: var(--mute); font-size: 0.8125rem; }
.band-count .num { font-size: 1.25rem; color: var(--ink); margin-right: 2px; }
.band-faces { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.band-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.band-hero .lead { margin-bottom: 24px; }
.band-hero .num { font-size: 1.3em; }
.band-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.band-visual img { width: 100%; height: auto; }
.band-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.member-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.member-band-visual { display: block; border-radius: var(--radius); overflow: hidden; }
.member-band-name { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; margin: 0 0 8px; }
.member-band-name a { text-decoration: none; }
.member-band-name a:hover { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 5px; }
.mates-title { font-family: var(--font-latin); font-weight: 900; font-size: 0.625rem; letter-spacing: 0.26em; color: var(--mute); margin: 18px 0 10px; }
.mates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }


/* ---------- org chart, skill dictionary, site search ---------- */
.org { margin-top: 28px; }
.org-owner { margin: 0 0 12px; }
.org-children { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 10px; position: relative; }
.org-children::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 18px; width: 2px; background: var(--line-2); }
.org-children--root { padding-left: 14px; }
.org-node { position: relative; }
.org-node::before { content: ""; position: absolute; left: -14px; top: 26px; width: 14px; height: 2px; background: var(--line-2); }
.org-card { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--dept); }
.org-card .person img { width: 40px; height: 40px; border-width: 0; }
.org-note { font-size: 0.6875rem; color: var(--mute); background: var(--paper-2); border-radius: 999px; padding: 0 10px; }
/* making-of articles: a list of large thumbnail cards, and the article page */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 24px; list-style: none; margin: 8px 0 0; padding: 0; }
.article-card a { display: grid; height: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease; }
.article-card a:hover { transform: translateY(-3px); border-color: var(--ink); }
.article-card a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.article-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.article-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.article-card a:hover .article-card-thumb img { transform: scale(1.04); }
.article-card-body { display: grid; align-content: start; gap: 8px; padding: 18px 22px 22px; }
.article-card-body time, .article-meta time { font-family: var(--font-latin); font-weight: 900; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--mute); }
.article-card-title { font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; line-height: 1.4; letter-spacing: 0.02em; }
.article-card-lead { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.75; }
.article-card-more { justify-self: start; margin-top: 4px; font-weight: 700; font-size: 0.875rem; border-bottom: 3px solid var(--marker); }
.article-hero .eyebrow a { color: inherit; }
.article-meta { margin: 6px 0 0; }
.article-figure { margin: 0 0 32px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-prose { max-width: 46em; }
.article-reviewers { max-width: 46em; margin: 40px 0 0; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.article-reviewers h2 { margin: 0 0 14px; font-size: 1.0625rem; }
.article-reviewers ul { display: flex; flex-wrap: wrap; gap: 14px 24px; list-style: none; margin: 0; padding: 0; }
.article-back { margin: 36px 0 0; }

/* a banner to another site, placed in a text page by {{banner:<id>}}: the picture on the left, the words on the right */
.site-banner-wrap { margin: 20px 0 24px; }
.site-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease; }
.site-banner:hover { transform: translateY(-2px); border-color: var(--ink); }
.site-banner:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-banner--text { grid-template-columns: minmax(0, 1fr); }
.site-banner-img { display: block; width: 100%; height: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.site-banner-body { display: grid; gap: 6px; padding: 18px 22px; }
.site-banner-kicker { font-size: 0.75rem; font-weight: 700; color: var(--mute); letter-spacing: 0.08em; }
.site-banner-title { font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; letter-spacing: 0.04em; line-height: 1.3; }
.site-banner-text { font-size: 0.875rem; color: var(--ink-2); line-height: 1.7; }
.site-banner-host { justify-self: start; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--marker); font-size: 0.8125rem; font-weight: 700; }
@media (max-width: 640px) { .site-banner { grid-template-columns: minmax(0, 1fr); } }

/* skill dictionary: cards of equal width; inside, every holder has a tile of the same width, so the faces line up in columns */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.skill-entry[hidden], .search-list li[hidden], .search-group[hidden], .skill-index li[hidden] { display: none; }
.skill-entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; scroll-margin-top: 24px; }
.skill-entry:target { border-color: var(--ink); box-shadow: 0 0 0 3px var(--marker); }
.skill-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.skill-entry h3 { font-size: 1.0625rem; margin: 0; }
.skill-count { margin: 0; flex: none; font-size: 0.75rem; color: var(--mute); white-space: nowrap; }
.skill-count .num { font-family: var(--font-latin); font-weight: 900; font-size: 1.25rem; color: var(--ink); margin-right: 3px; }
.skill-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 8px; }
.skill-people li { min-width: 0; transition: opacity 0.2s ease; }
.skill-people li.is-dim { opacity: 0.32; }
.skill-person { position: relative; display: flex; align-items: center; gap: 10px; height: 100%; min-height: 76px; padding: 9px 10px; border-radius: 14px; background: var(--paper); border: 1.5px solid transparent; color: var(--ink); text-decoration: none; }
.skill-person:hover { border-color: var(--dept); background: var(--card); }
.skill-person:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.skill-person img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--dept); }
.skill-person-text { min-width: 0; display: grid; gap: 1px; }
.skill-person-text strong { font-family: var(--font-display); font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.08em; line-height: 1.3; }
.skill-person-text span { font-size: 0.6875rem; color: var(--mute); line-height: 1.4; }
.skill-person-text .skill-person-level { justify-self: start; margin-top: 3px; padding: 0 7px; border-radius: 99px; background: var(--card); border: 1px solid var(--dept); font-size: 0.625rem; font-weight: 700; line-height: 1.6; color: var(--ink); }
.skill-people li.is-hit .skill-person { background: var(--marker); border-color: var(--ink); }
@media (max-width: 560px) {
  .skill-entry { padding: 14px 12px 14px; }
  .skill-people { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
  .skill-person { gap: 8px; min-height: 64px; padding: 7px 8px; }
  .skill-person img { width: 44px; height: 44px; }
  .skill-person-text span { font-size: 0.625rem; white-space: nowrap; }
}
.skill-index { margin: 0 0 28px; }
.skill-index details { padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.skill-index details[open] .skill-index-head { margin-bottom: 12px; }
.skill-index-head { cursor: pointer; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; }
.skill-index-head span { margin-left: 10px; font-family: inherit; font-weight: 400; font-size: 0.75rem; letter-spacing: 0; color: var(--mute); }
.skill-index ol { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; }
.skill-index a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 13px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 0.8125rem; font-weight: 700; text-decoration: none; }
.skill-index a:hover { border-color: var(--ink); }
.skill-index-count { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--paper-2); font-family: var(--font-latin); font-weight: 900; font-size: 0.6875rem; text-align: center; }
.search-group { margin-top: 36px; }
.search-group h2 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.search-group .count { font-family: var(--font-latin); font-size: 0.6875rem; color: var(--mute); }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.search-list a { display: grid; gap: 0; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-list strong { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.06em; }
.search-list span { font-size: 0.75rem; color: var(--mute); }
.search-list a:hover strong { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 4px; }
.nav-search { background: var(--ink); color: var(--paper) !important; }
.site-nav a.nav-search:hover { background: var(--marker); color: var(--ink) !important; }

/* ---------- music activity portraits (transparent costume art on a band-colour panel) ---------- */
.music-panel { --band: #b02028; --band-2: #5b0f15; display: grid; place-items: end center; position: relative; overflow: hidden; aspect-ratio: 3 / 4; width: 100%; background:
  radial-gradient(circle at 50% 38%, rgb(255 255 255 / 34%) 0 14%, transparent 15%),
  radial-gradient(circle at 50% 38%, var(--band) 0 52%, transparent 53%),
  repeating-linear-gradient(135deg, rgb(255 255 255 / 7%) 0 10px, transparent 10px 20px),
  linear-gradient(180deg, var(--band-2), var(--band)); }
.music-panel[data-band="neko-miko-dolls"] { --band: #b02028; --band-2: #4a0d12; }
.music-panel[data-band="houkago-crisis-student"] { --band: #d2492a; --band-2: #6a2214; }
.music-panel[data-band="ninja-monja"] { --band: #6a3fb0; --band-2: #26134a; }
.music-panel[data-band="signal-singirls"] { --band: #0e92a8; --band-2: #063c47; }
.music-panel[data-band="ensemble-umbrella"] { --band: #2c64b4; --band-2: #13284f; }
.music-panel[data-band="animal-pie-song"] { --band: #d4688a; --band-2: #7a2f47; }
.music-figure { width: auto; max-width: 100%; height: 96%; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 30%)); }
.member-band--music { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
.member-band--music .member-band-visual { border-radius: var(--radius); max-width: 340px; }
.card-photo--music { background: none; border: 0; box-shadow: none; aspect-ratio: 3 / 4; }
.card-photo--music::after { display: none; }
.music-panel--card { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- bands with a dark, metallic look (houkago-crisis now) and their other looks (student days) ---------- */
.music-panel[data-band="houkago-crisis"] { --band: #2c7f88; --band-2: #0b0f14; background:
  radial-gradient(circle at 50% 36%, rgb(44 127 136 / 55%) 0 38%, transparent 39%),
  repeating-linear-gradient(115deg, rgb(255 255 255 / 5%) 0 3px, transparent 3px 22px),
  linear-gradient(180deg, #0b0f14, #1a232b 70%, #0f161c); }
.music-panel--empty { display: grid; place-items: center; }
.music-empty { color: rgb(255 255 255 / 70%); font-family: var(--font-display); font-weight: 900; letter-spacing: 0.2em; }
.band-hero--dark { position: relative; margin-top: 28px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 52px); border-radius: var(--radius-lg); color: #e9eef0; background:
  repeating-linear-gradient(115deg, rgb(255 255 255 / 4%) 0 3px, transparent 3px 24px),
  radial-gradient(900px 340px at 85% 0%, rgb(44 127 136 / 45%), transparent 60%),
  linear-gradient(135deg, #090d11, #17212a); box-shadow: var(--shadow); overflow: hidden; }
.band-hero--dark::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, #2c7f88, #cfd8dc, #2c7f88); }
.band-hero--dark .eyebrow, .band-hero--dark .lead { color: #b7c4ca; }
.band-hero--dark h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
.version-tag { display: inline-block; margin-left: 0.5em; padding: 0.05em 0.55em; font-size: 0.42em; vertical-align: middle; letter-spacing: 0.12em; color: #0b0f14; background: #cfd8dc; border-radius: 6px; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.genre-tags li { font-family: var(--font-display); font-weight: 900; font-size: 0.8125rem; letter-spacing: 0.12em; padding: 4px 14px; border: 1.5px solid #6fa3aa; border-radius: 999px; color: #e9eef0; }
.band-hero--dark .btn--ghost { color: #e9eef0; border-color: #e9eef0; }
.band-hero--dark .btn--ghost:hover { background: #e9eef0; color: #0b0f14; }
.version-switch { margin: 22px 0 0; }
.version-card[data-band$="-student"] { background: linear-gradient(135deg, #d2492a, #6a2214); }
.version-card[data-band$="-student"] .version-card-body span { color: #ffe2d6; }
.member-band--versions { grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.55fr) minmax(0, 1fr); }
.member-band-visual--version { position: relative; display: block; border-radius: var(--radius); max-width: 340px; text-decoration: none; }
.version-caption { position: absolute; left: 10px; top: 10px; padding: 2px 12px; font-family: var(--font-display); font-weight: 900; font-size: 0.75rem; letter-spacing: 0.14em; color: #0b0f14; background: #cfd8dc; border-radius: 6px; }
.version-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.version-card { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: var(--radius-lg); text-decoration: none; color: #e9eef0; background: linear-gradient(135deg, #090d11, #17212a); box-shadow: var(--shadow); transition: transform 0.25s; }
.version-card:hover { transform: translateY(-3px); }
.version-thumbs { display: flex; flex: none; }
.version-thumb { width: 74px; height: 98px; object-fit: contain; margin-right: -26px; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 50%)); }
.version-card-body { display: grid; gap: 4px; padding-left: 28px; }
.version-card-body strong { font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; letter-spacing: 0.04em; }
.version-card-body span { font-size: 0.8125rem; color: #9fb2b9; letter-spacing: 0.08em; }

/* ---------- work scene: a wide picture with the member's line laid over it ---------- */
.scene { padding-top: clamp(40px, 6vw, 72px); }
.scene-figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #11161c; }
.scene-img { width: 100%; height: auto; display: block; }
.scene-figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(8 12 16 / 78%) 0%, rgb(8 12 16 / 48%) 30%, transparent 58%), linear-gradient(0deg, rgb(8 12 16 / 35%), transparent 40%); }
.scene-quote { position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); bottom: clamp(18px, 6vw, 72px); max-width: min(46%, 520px); color: #fff; font-family: var(--font-display); font-weight: 900; text-shadow: 0 2px 18px rgb(0 0 0 / 55%); }
.scene-quote q { display: block; quotes: none; font-size: clamp(1.15rem, 3.2vw, 2.5rem); line-height: 1.4; letter-spacing: 0.06em; word-break: auto-phrase; line-break: strict; text-wrap: balance; }
.scene-mark { display: block; font-family: var(--font-latin); font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.7; color: var(--marker); margin-bottom: 0.1em; }
.scene-by { display: block; margin-top: 0.9em; font-size: clamp(0.7rem, 1.2vw, 0.9rem); letter-spacing: 0.3em; color: rgb(255 255 255 / 80%); }
.scene-by::before { content: "— "; }
@media (max-width: 720px) { .scene-quote { max-width: 70%; bottom: 14px; } .scene-quote q { font-size: 1rem; } .scene-mark { font-size: 2rem; } }

/* ---------- extracurricular activities ---------- */
.club-summary { margin: 4px 0 10px; color: var(--ink-2); font-size: 0.9375rem; }
.club-labels { margin: 0 0 10px; }
/* the genre tags are white-on-dark (the dark band header); on the light activity pages the same tags are ink-on-paper */
.club-labels li { color: var(--ink); border-color: var(--line-2); background: transparent; font-size: 0.75rem; letter-spacing: 0.06em; padding: 3px 12px; }
.club-jump a { color: inherit; text-decoration: none; display: block; margin: -3px -12px; padding: 3px 12px; }
.club-jump li:hover { background: var(--marker); border-color: var(--ink); }
.activity-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip--activity { text-decoration: none; padding: 6px 16px 6px 8px; font-size: 0.875rem; }
.chip--activity::before { display: none; }
.chip--activity:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-cat { font-family: var(--font-latin); font-weight: 900; font-size: 0.5625rem; letter-spacing: 0.14em; background: var(--paper-2); color: var(--mute); padding: 2px 10px; border-radius: 999px; margin-right: 8px; }
.chip--activity:hover .chip-cat { background: rgb(255 255 255 / 18%); color: var(--paper); }
.solo-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.solo-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.solo-item h3 { font-size: 1.0625rem; margin-bottom: 10px; }
@media (max-width: 720px) { .solo-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(24px, 5vw, 64px); }
.hero > div:first-child { position: relative; z-index: 2; min-width: 0; }
.hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.875rem); line-height: 1.3; letter-spacing: 0.02em; }
/* three lines (私たちは / AIキャラクター51人の、 / 小さな制作会社です。); each line may wrap inside its column, so it can never run under the picture */
.hero-line { display: block; word-break: auto-phrase; line-break: strict; }
.hero-line--pre { font-size: 0.55em; letter-spacing: 0.12em; color: var(--ink-2); margin-bottom: 0.25em; }
.hero h1 .num { font-size: 1.25em; line-height: 1; }
.hero .lead { margin: 22px 0 0; }
.hero .lead--second { margin: 10px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); min-width: 0; }
.hero-visual img { width: 100%; height: auto; }
.hero-visual--movie { container-type: inline-size; }
.opening-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.opening-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 2.4em 5cqw 1em; text-align: center; white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-size: calc(clamp(0.9rem, 3.3cqw, 1.9rem) * var(--opening-fit, 1)); line-height: 1.55; letter-spacing: 0.05em; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.opening-caption[data-on="1"] { opacity: 1; }
.opening-caption[data-tone="light"] { color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / 65%); background: linear-gradient(0deg, rgb(8 12 16 / 62%), transparent); }
.opening-caption[data-tone="dark"] { top: 50%; bottom: auto; transform: translateY(-50%); padding: 0 5cqw; color: var(--ink); background: none; }
.opening-rest { visibility: hidden; }
.opening-caption[data-typing="1"] .opening-typed::after { content: ""; display: inline-block; width: 0; height: 1em; margin: 0 -0.11em 0 0.04em; vertical-align: -0.12em; border-left: 0.07em solid currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.opening-measure { right: auto; bottom: auto; top: 0; padding: 0; visibility: hidden; }
.opening-toggle { position: absolute; right: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(29 26 22 / 72%); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.opening-toggle[hidden] { display: none; }
.opening-toggle:hover { background: var(--ink); transform: scale(1.08); }
.opening-toggle::before { content: ""; position: absolute; left: 14px; top: 12px; width: 4px; height: 16px; background: #fff; box-shadow: 8px 0 0 #fff; }
.opening-toggle.is-paused::before { left: 15px; top: 11px; width: 0; height: 0; background: none; box-shadow: none; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fact b { display: block; font-family: var(--font-latin); font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.fact span { font-size: 0.8125rem; color: var(--mute); line-height: 1.6; display: block; margin-top: 4px; }
.march { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); background: rgb(255 253 248 / 92%); }
.march-track { display: flex; width: max-content; animation: march 120s linear infinite; padding: 12px 0 10px; }
.march:hover .march-track, .march:focus-within .march-track { animation-play-state: paused; }
.march ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0 4px; }
.march li { flex: none; }
.march-link { position: relative; display: block; border-radius: 50%; text-decoration: none; transition: transform 0.2s; }
.march-link:hover, .march-link:focus-visible { transform: translateY(-4px) scale(1.08); }
.march-face { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.march-name { position: absolute; left: 50%; bottom: calc(100% + 4px); z-index: 2; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 900; font-size: 0.75rem; letter-spacing: 0.08em; line-height: 1.7; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.march-link:hover .march-name, .march-link:focus-visible .march-name { opacity: 1; }
.more { margin-top: 32px; }
@keyframes march { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.entrances { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.entrance { display: grid; gap: 8px; align-content: start; height: 100%; padding: 26px 24px 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden; }
.entrance::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--dept); }
.entrance:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.entrance .eyebrow { margin: 6px 0 0; }
.entrance h3 { font-size: 1.5rem; }
.entrance p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.entrance .go { margin-top: 8px; font-family: var(--font-latin); font-weight: 900; font-size: 0.75rem; letter-spacing: 0.16em; }

/* ---------- teamwork (home) ---------- */
.teamwork-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.teamwork-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.teamwork-figure img { width: 100%; height: auto; display: block; }
.teamwork-text h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 18px; }
.teamwork-text p { color: var(--ink-2); max-width: 36em; }
.teamwork-link { margin-top: 22px; }
.roles { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.role { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; display: grid; gap: 4px; align-content: start; }
.role b { font-family: var(--font-latin); font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.role b small { font-family: var(--font-display); font-size: 0.8125rem; margin-left: 2px; }
.role-name { font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: 0.04em; }
.role-note { font-size: 0.8125rem; color: var(--mute); line-height: 1.7; }

/* ---------- prose (text pages) ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin: 2.4em 0 0.8em; }
.prose h3 { font-size: 1.125rem; margin: 1.8em 0 0.6em; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.stub { margin-top: 32px; padding: 28px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--card); max-width: 42rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; width: min(100%, var(--wrap)); margin-inline: auto; font-size: 0.875rem; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid h2 { font-family: var(--font-latin); font-weight: 900; font-size: 0.625rem; letter-spacing: 0.3em; color: var(--mute); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-wordmark { font-family: var(--font-latin); font-weight: 900; font-size: clamp(1.1rem, 5.5vw, 5.4rem); line-height: 0.9; letter-spacing: 0.04em; white-space: nowrap; margin: clamp(32px, 5vw, 64px) 0 -0.12em; user-select: none; text-align: center; color: var(--ink); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- draft page: two ways of typing the opening lines ---------- */
.opening-way-box { max-width: 720px; }
.opening-way-lines { margin: 14px 0 0; padding-left: 1.4em; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- home: the working-scene reel and the band row ---------- */
.reel { display: flex; gap: clamp(12px, 2vw, 22px); list-style: none; margin: 0; padding: 4px 4px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.reel-item { flex: 0 0 min(560px, 78%); scroll-snap-align: start; }
.reel-card { position: relative; display: block; height: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #11161c; color: #fff; text-decoration: none; }
.reel-card::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 2; height: 6px; background: var(--dept); }
.reel-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(8 12 16 / 78%) 0%, rgb(8 12 16 / 42%) 34%, transparent 62%), linear-gradient(0deg, rgb(8 12 16 / 38%), transparent 42%); }
.reel-img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.6s ease; }
.reel-card:hover .reel-img { transform: scale(1.04); }
.reel-quote { position: absolute; z-index: 3; left: clamp(14px, 3vw, 30px); bottom: clamp(14px, 3vw, 28px); max-width: 58%; font-family: var(--font-display); font-weight: 900; text-shadow: 0 2px 14px rgb(0 0 0 / 60%); }
.reel-quote q { display: block; quotes: none; font-size: clamp(1rem, 1.9vw, 1.5rem); line-height: 1.4; letter-spacing: 0.05em; word-break: auto-phrase; line-break: strict; text-wrap: balance; }
.reel-by { display: block; margin-top: 0.7em; font-size: 0.75rem; letter-spacing: 0.25em; color: rgb(255 255 255 / 88%); }
.reel-by::before { content: "— "; }
.reel-hint { margin: 2px 0 0; text-align: center; font-family: var(--font-latin); font-size: 0.6875rem; letter-spacing: 0.22em; color: var(--mute); }
.bandrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); list-style: none; margin: 0; padding: 0; }
.bandrow-card { display: grid; gap: 4px; align-content: start; text-decoration: none; transition: transform 0.25s; }
.bandrow-card:hover { transform: translateY(-6px); }
.bandrow-name { margin-top: 6px; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.02em; font-size: 0.875rem; line-height: 1.35; overflow-wrap: anywhere; }
.bandrow-count { font-size: 0.75rem; color: var(--mute); }

/* the strip of faces stays at the bottom of the window on a computer (owner's decision 2026-10-04) */
@media (min-width: 961px) {
  html { scroll-padding-bottom: 120px; }
  .has-march { padding-bottom: 104px; }
  .has-march .march { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; overflow: visible; border-bottom: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -6px 24px rgb(29 26 22 / 8%); }
  .has-march .march-track { padding-top: 22px; }
  .has-march .march { overflow-x: clip; overflow-y: visible; }
}

/* ---------- works: list cards, one work, credits ---------- */
.work-tools { margin: 28px 0 28px; scroll-margin-top: 84px; }
.filter--plain::before { display: none; }
.work-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.work-labels li { font-size: 0.75rem; font-weight: 700; line-height: 1.7; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.work-labels li.is-genre { background: var(--marker); border-color: #cdb02c; color: var(--ink); }
.work-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.work-chip { display: inline-block; font-size: 0.8125rem; font-weight: 700; line-height: 1.8; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); text-decoration: none; }
.work-chip:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.work-card { display: flex; }
.work-card[hidden] { display: none; }
.work-link { display: grid; gap: 8px; align-content: start; width: 100%; padding: 22px 22px 18px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
.work-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-type { margin: 0; font-family: var(--font-latin); font-size: 0.6875rem; font-weight: 900; letter-spacing: 0.16em; color: var(--mute); }
.work-link h3 { font-size: 1.25rem; line-height: 1.45; }
.work-summary { margin: 0; color: var(--ink-2); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.work-faces { display: flex; margin: 4px 0 0; padding: 0; list-style: none; }
.work-faces li + li { margin-left: -10px; }
.work-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); background: #fff; }
.work-date { margin: 4px 0 0; font-size: 0.75rem; color: var(--mute); }
.work-hero h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.4; }
.work-hero .lead { margin-top: 14px; }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 8px; }
.work-body { max-width: none; min-width: 0; font-size: 1.0625rem; line-height: 1.95; }
.work-body > :first-child { margin-top: 0; }
.work-body h2 { font-size: 1.5rem; margin: 2.2em 0 0.7em; padding-bottom: 0.3em; border-bottom: 2px solid var(--ink); }
.work-body h3 { font-size: 1.1875rem; margin: 1.8em 0 0.6em; }
.work-body p { margin: 0 0 1.1em; }
.work-body a { overflow-wrap: anywhere; }
.work-body blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--line-2); color: var(--ink-2); }
.work-body pre { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 0.875rem; line-height: 1.7; }
.work-body code { font-size: 0.92em; }
.work-body .table-wrap { overflow-x: auto; margin: 1.2em 0; }
.work-body table { border-collapse: collapse; min-width: 100%; font-size: 0.9375rem; line-height: 1.7; }
.work-body th, .work-body td { border: 1px solid var(--line-2); padding: 7px 11px; text-align: left; vertical-align: top; }
.work-body th { background: var(--paper-2); }
.work-body th:first-child, .work-body td:first-child { white-space: nowrap; }
.work-body .al-c { text-align: center; }
.work-body .al-r { text-align: right; }
.work-meta { position: sticky; top: 88px; display: grid; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.work-meta h2 { font-size: 1rem; margin-top: 4px; }
.work-facts { display: grid; gap: 10px; margin: 0; }
.work-facts div { display: grid; gap: 2px; }
.work-facts dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; color: var(--mute); }
.work-facts dd { margin: 0; font-size: 0.9375rem; }
.work-credits { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.work-back { margin: 4px 0 0; font-size: 0.875rem; }
.credit h3 a { text-decoration-color: var(--marker); text-decoration-thickness: 3px; }

/* ---------- games: the stage on a game's work page, and the memory game's cards ---------- */
.game-stage { margin: 8px 0 40px; padding: clamp(14px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.game-nojs { margin: 0; color: var(--ink-2); }
.js .game-nojs { display: none; }
.game-root { display: grid; gap: 12px; }
.game-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.game-sizes, .game-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.game-btn { font: inherit; font-size: 0.875rem; font-weight: 700; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid #9f895d; background: transparent; color: var(--ink); cursor: pointer; letter-spacing: 0.04em; }
.game-btn:hover { background: var(--paper-2); }
.game-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.game-btn--strong { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.game-btn--strong:hover { background: var(--marker); color: var(--ink); }
.game-status { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); }
.game-status span { white-space: nowrap; }
.game-caption { margin: 0; min-height: 1.6em; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.06em; }
.game-table { position: relative; }
.game-board { display: grid; gap: clamp(6px, 1.4vw, 12px); grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.game-board[data-pairs="12"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mcard { position: relative; display: block; aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; perspective: 700px; font: inherit; color: inherit; }
.mcard:disabled { cursor: default; }
.mcard:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.mcard-inner { position: absolute; inset: 0; transition: transform 0.45s; transform-style: preserve-3d; }
.mcard.is-open .mcard-inner { transform: rotateY(180deg); }
.mcard-back, .mcard-front { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mcard-back { background: radial-gradient(circle at 50% 50%, var(--marker) 0 24%, transparent 25%), repeating-linear-gradient(135deg, #2a2620 0 10px, #1d1a16 10px 20px); box-shadow: 0 2px 8px rgb(29 26 22 / 25%); }
.mcard-front { transform: rotateY(180deg); background: #fff; border: 3px solid var(--dept, var(--ink)); }
.mcard-front img { width: 100%; height: 100%; object-fit: cover; }
.mcard-name { padding: 4px; font-family: var(--font-display); font-weight: 900; font-size: clamp(0.8rem, 2.4vw, 1.25rem); letter-spacing: 0.06em; text-align: center; line-height: 1.3; }
.mcard.is-matched .mcard-front { box-shadow: 0 0 0 3px #a88900; }
.game-board[hidden] { display: none; }
.game-result { display: grid; align-content: start; gap: 10px; padding: clamp(8px, 2vw, 20px); text-align: center; }
.game-result:focus { outline: none; }
.game-result:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: var(--radius); }
.game-result-making { font-weight: 700; }
.game-result h3 { font-size: clamp(1.4rem, 4vw, 2rem); }
.game-result p { margin: 0; }
.game-result-score { font-weight: 700; }
.game-result-lead { color: var(--ink-2); font-size: 0.9375rem; }
.game-met { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 6px 0; padding: 0; list-style: none; text-align: left; }
.game-met-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.game-met-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dept, var(--ink)); flex: none; }
.game-met-text { display: grid; line-height: 1.3; }
.game-met-text a { display: inline-block; padding: 6px 0; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.06em; }
.game-met-text small { font-size: 0.6875rem; color: var(--mute); }
.game-modal-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgb(29 26 22 / 55%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: modal-in 0.2s ease-out; }
.game-modal { display: grid; justify-items: center; gap: 8px; width: min(420px, 100%); max-height: 100%; overflow: auto; padding: 24px 22px 22px; border-radius: var(--radius-lg); background: var(--card); border-top: 8px solid var(--dept, var(--ink)); box-shadow: 0 24px 60px rgb(0 0 0 / 35%); text-align: center; }
.game-modal-face { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid var(--dept, var(--ink)); background: #fff; }
.game-modal-lead { margin: 4px 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--mute); letter-spacing: 0.08em; }
.game-modal-name { font-size: 1.75rem; }
.game-modal-role { margin: 0; font-weight: 700; color: var(--ink-2); }
.game-modal-line { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 0.9375rem; line-height: 1.7; }
.game-modal-link { font-size: 0.875rem; }
.game-modal .game-btn { margin-top: 8px; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .game-board[data-pairs="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-board[data-pairs="12"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* the concept movie (it has sound: controls, no autoplay) */
.concept-box { max-width: 1040px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); line-height: 0; }
.concept-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper); }
.concept-text { max-width: 1040px; margin: 8px auto 0; }
.concept-text summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.concept-text summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.concept-text ol { margin: 4px 0 0; padding-left: 1.5em; line-height: 1.9; }

/* the home page's cards of the demo movies (they lead to the movie on its page) */
.demo-cards-wrap { max-width: 1040px; margin: 28px auto 0; }
.demo-cards-head { margin: 0 0 12px; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; }
.demo-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .demo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-card { display: grid; align-content: start; gap: 6px; height: 100%; padding: 10px 10px 14px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.demo-card:hover { border-color: var(--ink); }
.demo-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.demo-card-frame { position: relative; display: block; border-radius: 12px; overflow: hidden; line-height: 0; }
.demo-card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.demo-card-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(29 26 22 / 78%); box-shadow: 0 4px 16px rgb(0 0 0 / 30%); }
.demo-card-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.demo-card:hover .demo-card-play { background: var(--ink); }
.demo-card-title { padding: 0 4px; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; }
.demo-card-lead { padding: 0 4px; font-size: 0.875rem; color: var(--ink-2); }
.movie-dialog { width: min(1280px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 12px; border: 0; border-radius: var(--radius-lg); background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgb(0 0 0 / 45%); }
.movie-dialog::backdrop { background: rgb(29 26 22 / 72%); }
.movie-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.movie-dialog-title { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; }
.movie-dialog-close { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.movie-dialog-close:hover { background: var(--ink); color: var(--paper); }
.movie-dialog-video { display: block; width: 100%; height: auto; max-height: calc(100vh - 160px); aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.movie-dialog-more { display: inline-block; margin-top: 10px; font-size: 0.875rem; color: var(--ink-2); }

/* a movie inside a text page ({{video:<id>}}, site/content/videos.json) */
.page-video { margin: 28px 0 32px; }
.page-video-head { display: grid; gap: 4px; margin-bottom: 12px; }
.page-video-title { font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; letter-spacing: 0.04em; }
.page-video-lead { color: var(--ink-2); font-size: 0.9375rem; }
.page-video .concept-box, .page-video .concept-text { max-width: none; margin-left: 0; margin-right: 0; }
.page-video-note { margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-2); }

/* the quiz game: a catchphrase and the faces to choose from */
.quiz-card { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.quiz-no { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-2); }
.quiz-quote { position: relative; margin: 0 0 10px; padding: clamp(18px, 3.4vw, 30px) clamp(16px, 3.4vw, 32px); border-radius: var(--radius-lg); background: var(--marker); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: clamp(1.25rem, 4.6vw, 1.875rem); line-height: 1.6; letter-spacing: 0.04em; text-align: center; text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }
.quiz-quote::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 0; height: 0; margin-left: -14px; border: 14px solid transparent; border-bottom: 0; border-top-color: var(--marker); }
.quiz-ask { margin: 0; font-weight: 700; text-align: center; }
.quiz-group { display: grid; gap: 12px; }
.quiz-choices { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.quiz-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; width: 100%; min-height: 72px; padding: 10px 14px; border-radius: 16px; border: 2px solid #9f895d; background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.quiz-choice:hover:not(:disabled) { background: var(--paper-2); border-color: var(--ink); }
.quiz-choice:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.quiz-choice:disabled { cursor: default; color: var(--ink); }
.quiz-choice:disabled:not(.is-right):not(.is-wrong) { opacity: 0.8; }
.quiz-choice img, .quiz-review-who img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--dept, var(--ink)); background: #fff; }
.quiz-choice-text { display: grid; flex: 1 1 5em; min-width: 0; line-height: 1.35; }
.quiz-choice-text strong { font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; letter-spacing: 0.06em; }
.quiz-choice-text small { font-size: 0.75rem; color: var(--ink-2); overflow-wrap: anywhere; }
.quiz-mark { flex: none; margin-left: auto; font-size: 0.8125rem; font-weight: 900; letter-spacing: 0.04em; }
.quiz-mark:empty { display: none; }
.quiz-choice.is-right { border: 3px solid #1f7a45; background: #e3f4e8; }
.quiz-choice.is-right .quiz-mark { color: #14532d; }
.quiz-choice.is-wrong { border: 3px solid #a63a2f; background: #fbe4e1; }
.quiz-choice.is-wrong .quiz-mark { color: #7f1d12; }
.quiz-feedback { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--dept, var(--ink)); }
.quiz-verdict { flex: 1 1 10em; margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; letter-spacing: 0.04em; }
.quiz-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 0.875rem; font-weight: 700; }
.quiz-review { display: grid; gap: 8px; margin: 6px 0; padding: 0; list-style: none; text-align: left; }
.quiz-review-item { display: grid; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--dept, var(--ink)); }
.quiz-review-mark { font-size: 0.8125rem; font-weight: 900; letter-spacing: 0.04em; }
.quiz-review-item.is-right .quiz-review-mark { color: #14532d; }
.quiz-review-item.is-wrong .quiz-review-mark { color: #7f1d12; }
.game-result p.quiz-review-quote { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; line-height: 1.6; }
.quiz-review-who { display: flex; align-items: center; gap: 10px; }
@media (min-width: 640px) {
  .quiz-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-review-item { grid-template-columns: 7.5em minmax(0, 1fr) minmax(0, 15em); align-items: center; }
}
@media (min-width: 760px) {
  .quiz-choices[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* a work's card for the game it is about */
.play-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; margin: 4px 0 36px; padding: clamp(14px, 2.4vw, 24px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.play-card-cover { display: block; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.play-card-cover img { width: 100%; height: auto; }
.play-card-body { display: grid; gap: 8px; align-content: center; justify-items: start; }
.play-card-eyebrow { margin: 0; font-family: var(--font-latin); font-size: 0.6875rem; font-weight: 900; letter-spacing: 0.2em; color: var(--mute); }
.play-card-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.25rem, 2.6vw, 1.75rem); letter-spacing: 0.04em; line-height: 1.4; }
.play-card-summary { margin: 0; color: var(--ink-2); }
.play-card-req { margin: 0; font-size: 0.8125rem; color: var(--mute); }
.play-card .work-play { margin: 6px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-hero, .hero { grid-template-columns: minmax(0, 1fr); }
  .member-portrait { order: -1; justify-self: center; max-width: 440px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 14px 16px; }
  .teamwork-grid { grid-template-columns: minmax(0, 1fr); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-layout { grid-template-columns: minmax(0, 1fr); }
  .play-card { grid-template-columns: minmax(0, 1fr); }
  .work-meta { position: static; }
  .bandrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .relations, .credits, .duties, .voice, .band-grid, .member-band, .member-band--versions, .search-list { grid-template-columns: minmax(0, 1fr); }
    .skills { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { flex-wrap: wrap; }
  .stage-note { margin-left: 0; }
}
@media (max-width: 720px) {
  .bandrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .reel-item { flex-basis: 84%; }
  .reel-quote { max-width: 72%; bottom: 12px; left: 14px; }
  .site-header { flex-wrap: wrap; }
  .js .nav-button { display: inline-flex; margin-left: auto; font: inherit; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding-top: 8px; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .card-name { font-size: 1rem; flex-wrap: wrap; gap: 2px 8px; }
  .card-titles { font-size: 0.6875rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .filter { flex: none; white-space: nowrap; }
  .filter-label { display: none; }
  .js .filters-row { display: block; }
  .page-hero h1 { letter-spacing: 0.02em; }
}

@media (forced-colors: active) {
  .mcard-back { border: 3px solid CanvasText; }
  .mcard-front { border-color: CanvasText; }
  .game-btn[aria-pressed="true"], .filter[aria-pressed="true"] { border: 4px solid Highlight; }
  .game-btn--strong { border: 3px solid CanvasText; }
  .quiz-quote { border: 3px solid CanvasText; }
  .quiz-quote::after { display: none; }
  .quiz-choice { border-color: ButtonText; }
  .quiz-choice.is-right { border: 5px solid Highlight; }
  .quiz-choice.is-wrong { border-style: dashed; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card-walker { display: none; }
  .march { overflow-x: auto; }
  .march ul[aria-hidden="true"] { display: none; }
}
@media print {
  .site-header, .team-tools, .march, .nav-button, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* the phone dock (built by site.js on narrow screens): sections, menu, back to top — within reach of the thumb */
.dock { display: none; }
@media (max-width: 720px) {
  .has-dock body { padding-bottom: 76px; }
  .dock { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; padding: 6px; border-radius: 999px; background: var(--ink); box-shadow: 0 12px 30px -10px rgb(29 26 22 / 55%); transform: translateY(140%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .dock.is-shown { transform: none; }
  .dock button { min-height: 48px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 0.875rem; cursor: pointer; }
  .dock-toc { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 16px 0 6px; background: var(--paper); color: var(--ink); text-align: left; }
  .dock-toc-label { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--marker); font-family: var(--font-display); font-weight: 900; letter-spacing: 0.08em; }
  .dock-toc-now { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.8125rem; }
  .dock-menu, .dock-top { padding: 0 14px; background: transparent; color: var(--paper); }
  .dock-top { border: 1px solid rgb(247 242 232 / 35%) !important; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .dock { transition: none; } }
.dock-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 640px; max-height: 78vh; margin: 0 auto; padding: 0 18px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -18px 48px rgb(0 0 0 / 30%); }
.dock-sheet::backdrop { background: rgb(29 26 22 / 55%); }
.dock-sheet[open] { animation: dock-rise 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes dock-rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dock-sheet[open] { animation: none; } }
.dock-sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -18px 4px; padding: 14px 18px 10px; background: var(--card); border-bottom: 2px solid var(--ink); }
.dock-sheet-head p { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.06em; }
.dock-sheet-close { min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.dock-group-name { margin: 16px 0 2px; font-weight: 900; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--mute); }
.dock-sheet ol { list-style: none; margin: 0; padding: 0; }
.dock-sheet a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 6px; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.dock-sheet a[aria-current] { margin: 0 -8px; padding-left: 14px; border-radius: 10px; border-bottom-color: transparent; background: rgb(255 227 110 / 55%); box-shadow: inset 4px 0 0 var(--ink); }
.dock-sheet a[aria-current] .dock-no { color: var(--ink); }
.dock-no { flex: none; min-width: 2.2em; font-family: var(--font-latin); font-weight: 900; font-size: 0.75rem; color: var(--mute); }
@media (max-width: 720px) { main h2[id] { scroll-margin-top: 84px; } }
