@font-face {
  font-family: "Noto Gallery";
  src: url("assets/type/noto-jp-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #08090c;
  --ink: #f0f4fa;
  --display: "futura-pt", Futura, "Century Gothic", "Trebuchet MS", "Noto Gallery", sans-serif;
  --body: "Noto Gallery", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --ease: cubic-bezier(.25, 1, .5, 1);
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html, body, figure { margin: 0; }
main { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow-x: clip; }
.stage { width: min(100%,1920px); position: relative; isolation: isolate; aspect-ratio: 16/9; }
@media (min-aspect-ratio: 16/9) {
  .stage { width: min(100%,1920px,177.7778vh); width: min(100%,1920px,177.7778svh); }
}
.photo { display: block; width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plane { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.member[data-id="isagen"] .plane, .member[data-id="kinu"] .plane { z-index: 1; }
.hit { pointer-events: fill; fill: transparent; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.figure-art { opacity: 0; pointer-events: none; }
.cutout { transform: translateY(0); filter: brightness(1); }
.is-active .figure-art { opacity: 1; }
.is-active .cutout { transform: translateY(-3px); filter: brightness(1.16) saturate(1.045); }
/* A quiet focus halo follows the lifted contour, never the crop or SVG viewport. */
.member:has(.hit:focus-visible).is-active .cutout { filter: brightness(1.23) drop-shadow(0 0 1.2px #daeaff); }
.caption {
  position: absolute; z-index: 2; inset-inline-start: var(--head-x); top: var(--head-y);
  transform: translate(-50%, calc(-100% - 6px)); text-align: center;
  color: var(--ink); font: 300 .8rem/1.5 var(--body);
  width: max-content; max-width: calc(100vw - 24px);
  pointer-events: none;
  text-shadow: 0 1px 9px rgba(6,17,42,.55);
}
.caption[hidden] { display: none; }
.name, .role { margin: 0; }
.name { font: 300 clamp(1rem,1.36vw,1.43rem)/1.4 var(--display); letter-spacing: .065em; }
.name :lang(ja) { font-family: var(--body); letter-spacing: .09em; }
.role {
  color: #d5e1f1; font: 400 clamp(.61rem,.72vw,.71rem)/1.4 var(--display);
  letter-spacing: .135em; margin-top: 5px;
}
.profile {
  position: relative; display: inline-block; pointer-events: auto; color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: #bdd3ea86; text-underline-offset: .23em;
}
.profile:hover, .profile:focus-visible { color: white; text-decoration-color: currentColor; }
.profile:focus-visible { outline: none; text-decoration-thickness: 2px; }
@media (pointer: coarse) {
  /* Hit padding extends only into the air above the name and never covers the roles. */
  .profile::after { content: ""; position: absolute; inset: auto -9px -2px; min-width: 44px; height: 44px; left: 50%; width: calc(100% + 18px); transform: translateX(-50%); }
}
@media (min-width: 721px) {
  .caption { pointer-events: auto; }
}
@media (max-width: 720px) {
  .caption { top: calc(100% + clamp(16px,4.5vh,44px)); left: 50%; transform: translateX(-50%); text-shadow: none; }
  .name { font-size: clamp(1rem,4.6vw,1.23rem); }
  .role { color: #c1cfdf; font-size: .65rem; }
}
@media (max-width: 720px) and (max-aspect-ratio: 4/5) {
  /* On portrait phones the caption lives in the empty margin, not over the people. */
  main { padding-bottom: min(9svh,64px); }
}
@media (max-width: 720px) and (min-aspect-ratio: 1/1) {
  .caption { top: var(--head-y); left: var(--head-x); transform: translate(-50%,calc(-100% - 3px)); text-shadow: 0 1px 6px #122041; }
  .name { font-size: 1rem; }
  .role { font-size: .61rem; margin-top: 3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage { animation: reveal 2.4s var(--ease) both; }
  .figure-art { transition: opacity .32s var(--ease); }
  .cutout { transition: transform .65s var(--ease), filter .8s var(--ease); }
  .caption:not([hidden]) { animation: lettering .46s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .is-active .cutout { transform: none; }
  .repair { visibility: hidden; }
}
@keyframes reveal { from { opacity: 0; translate: 0 20px; filter: blur(4px); } }
@keyframes lettering { from { opacity: 0; translate: 0 4px; } }
