/* ==========================================================================
   Artists — 24:34
   The creator network (a 60-minute dial), the plate archive, the dossier.
   ========================================================================== */

/* --- Hero ------------------------------------------------------------------ */
.a-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--bar-h) + clamp(24px, 4vh, 56px));
  padding-bottom: clamp(28px, 5vh, 56px);
  display: flex;
  overflow: clip;
}

.a-hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: var(--col-gap);
  row-gap: clamp(20px, 3vh, 40px);
  width: 100%;
}

.a-hero__meta {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.a-hero__tc {
  display: inline-flex;
  gap: 1.2em;
  text-transform: uppercase;
}

.a-hero__title {
  grid-column: 1 / span 7;
  grid-row: 2;
  align-self: start;
  font-size: clamp(3.5rem, 11.6vw, 12.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
  padding-top: clamp(8px, 2vh, 28px);
}

:root[lang="ja-JP"] .a-hero__title {
  font-size: clamp(2.75rem, 7.4vw, 8rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.a-hero__copy {
  grid-column: 1 / span 6;
  grid-row: 3;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: clamp(8px, 2vh, 24px);
}

.a-hero__subtitle {
  font-family: var(--f-serif);
  font-size: clamp(1.375rem, 2.15vw, 2.125rem);
  line-height: 1.5;
  letter-spacing: 0.03em;
  max-width: 21em;
}

:root[lang="en"] .a-hero__subtitle {
  letter-spacing: -0.005em;
  line-height: 1.28;
}

.a-hero__body {
  color: var(--fg-2);
  max-width: 34em;
}

/* zh has no phrase segmentation, so "pretty" alone still split words and
   left widows here ("…创 / 作者们", "…的作 / 者网络。", "…的 / 方向。").
   Break these lines only at spaces and punctuation; overflow-wrap catches
   any phrase longer than the measure. */
.a-hero__subtitle:lang(zh-Hans),
.a-hero__body:lang(zh-Hans),
.archive .section-head__aside:lang(zh-Hans) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ja: the phrase segmenter base.css gives asides ("…長期協力 / メンバー。"). */
.a-hero__subtitle:lang(ja-JP),
.a-hero__body:lang(ja-JP) {
  line-break: strict;
  word-break: auto-phrase;
}

.a-hero__foot {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid var(--line);
}

.a-hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color var(--d-1);
}

.a-hero__cue-line {
  width: 40px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform var(--d-3) var(--ease-out);
}

.a-hero__cue:hover,
.a-hero__cue:focus-visible {
  color: var(--fg);
}

.a-hero__cue:hover .a-hero__cue-line,
.a-hero__cue:focus-visible .a-hero__cue-line {
  transform: scaleX(1.6);
}

.a-hero__next {
  display: inline-flex;
  gap: 1.2em;
  text-transform: uppercase;
}

/* --- Creator network: the dial ------------------------------------------------ */
.network {
  --node: 15%;
  --spin: calc((var(--p, 0.5) - 0.5) * 64deg);
  grid-column: 8 / span 5;
  grid-row: 2 / span 2;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  margin: 0;
  container-type: inline-size;
}

.network__dial {
  position: relative;
  aspect-ratio: 1;
}

.network__stage {
  position: absolute;
  inset: 0;
  transform: rotate(var(--spin));
  will-change: transform;
}

.network__face,
.network__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network__ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.network__ring--orbit {
  stroke-dasharray: 2 5;
}

.network__tick {
  stroke: var(--fg-4);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.network__tick.is-five {
  stroke: var(--fg-3);
}

.network__tick.is-signal {
  stroke: var(--signal);
  stroke-width: 2;
}

.network__edge {
  stroke: var(--fg);
  stroke-opacity: var(--o, 0.3);
  stroke-width: var(--w, 1px);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke-opacity var(--d-2) var(--ease-out), stroke var(--d-2) var(--ease-out);
}

.network.has-active .network__edge {
  stroke-opacity: 0.05;
}

.network.has-active .network__edge.is-on {
  stroke: var(--signal);
  stroke-opacity: 0.95;
}

/* Arrival: chords open out from the hub, then the creators take their seats. */
.js .network__edges {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1500ms var(--ease-tape) 380ms;
}

.js .network.is-in .network__edges {
  clip-path: circle(72% at 50% 50%);
}

.network__nodes {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--node);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  z-index: 1;
}

.js .node {
  opacity: 0;
  scale: 0.6;
  transition:
    opacity 600ms var(--ease-out) calc(820ms + var(--i) * 110ms),
    scale 900ms var(--ease-out) calc(820ms + var(--i) * 110ms);
}

.js .network.is-in .node {
  opacity: 1;
  scale: 1;
}

.node__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(calc(var(--spin) * -1));
}

.node__disc {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 5px var(--bg);
  transition: box-shadow var(--d-2) var(--ease-out);
}

.node__disc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node__duo {
  position: absolute;
  inset: 0;
  isolation: isolate;
  transition: opacity var(--d-3) var(--ease-out);
}

.node__duo img {
  filter: grayscale(1) contrast(1.12) brightness(0.84);
}

.node__duo::before,
.plate__duo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in oklab, rgb(var(--art)) 34%, #09090b);
  mix-blend-mode: screen;
}

.node__duo::after,
.plate__duo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #d8d0bf;
  mix-blend-mode: multiply;
}

.node__name {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-size: max(0.625rem, 1.9cqi);
  line-height: 1.5;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--bg);
  color: var(--fg-2);
  transition: color var(--d-2);
}

.network.is-crowded .node__name {
  display: none;
}

.node:hover .node__duo,
.node:focus-visible .node__duo,
.node.is-active .node__duo,
.node.is-linked .node__duo {
  opacity: 0;
}

.node:hover .node__disc,
.node.is-active .node__disc {
  box-shadow: 0 0 0 1px var(--signal), 0 0 0 5px var(--bg);
}

.node.is-active .node__name,
.node.is-linked .node__name,
.node:hover .node__name {
  color: var(--fg);
}

.network.has-active .node:not(.is-active):not(.is-linked) {
  opacity: 0.4;
}

.node:focus-visible {
  box-shadow: none;
}

.node:focus-visible .node__disc {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--signal);
}

.network__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6cqi;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 1.4cqi var(--bg), 0 0 0 calc(1.4cqi + 1px) var(--line);
  text-align: center;
  pointer-events: none;
}

.network__count {
  font-size: clamp(3rem, 7vw, 6rem);
  font-size: 16cqi;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.network__label {
  max-width: 78%;
  font-size: 0.625rem;
  font-size: max(0.5625rem, 1.75cqi);
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.network__caption {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 32em;
  margin-left: auto;
  padding-left: 18px;
  border-left: 1px solid var(--signal);
  font-size: var(--t-small);
  line-height: 1.8;
  color: var(--fg-2);
}

@media (max-width: 1100px) {
  .a-hero {
    min-height: 0;
  }
  .a-hero__inner {
    grid-template-rows: auto;
  }
  .a-hero__title {
    grid-column: 1 / -1;
    padding-top: clamp(16px, 4vw, 40px);
    font-size: clamp(3.5rem, 18vw, 11rem);
  }
  :root[lang="ja-JP"] .a-hero__title {
    font-size: clamp(2.75rem, 12.5vw, 8rem);
  }
  .a-hero__copy {
    grid-column: 1 / span 10;
    grid-row: 3;
  }
  .network {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    max-width: 560px;
    margin-top: clamp(24px, 6vw, 56px);
  }
  .network__caption {
    margin-left: 0;
  }
  .a-hero__foot {
    grid-row: 5;
  }
}

@media (max-width: 700px) {
  .a-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .a-hero__copy {
    grid-column: 1 / -1;
  }
  .a-hero__next {
    display: none;
  }
  .network {
    width: calc(100% - 24px);
  }
}

/* --- Archive desk: search, count, role filters -------------------------------- */
.archive {
  padding-top: clamp(72px, 9vw, 144px);
}

.desk {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 22px;
  padding-block: 28px 30px;
  margin-bottom: clamp(56px, 7vw, 112px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.desk__search {
  grid-column: 1 / span 8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: text;
}

.desk__label {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.desk__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out);
}

.desk__field:hover {
  border-color: var(--fg-3);
}

.desk__field:focus-within {
  border-color: var(--signal);
  box-shadow: 0 1px 0 0 var(--signal);
}

.desk__icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--fg-3);
  transition: color var(--d-2);
}

.desk__field:focus-within .desk__icon {
  color: var(--signal);
}

.desk__input {
  flex: 1;
  min-width: 0;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: var(--t-3);
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-appearance: none;
  appearance: none;
}

.desk__input::placeholder {
  color: var(--fg-4);
}

.desk__input:focus-visible {
  box-shadow: none;
}

.desk__input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.desk__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: center / 14px no-repeat
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M1 1l12 12M13 1L1 13' stroke='%23eeebe4' stroke-width='1.4' stroke-linecap='round'/></svg>");
  opacity: 0.6;
}

.desk__input::-webkit-search-cancel-button:hover {
  opacity: 1;
}

.desk__count {
  grid-column: 9 / span 4;
  align-self: end;
  justify-self: end;
  padding-bottom: 22px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  text-align: right;
}

.desk__roles {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desk__roles .chip {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.desk__roles .chip:focus-visible {
  box-shadow: var(--focus);
  border-radius: 999px;
}

@media (pointer: coarse) {
  .desk__roles .chip {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .desk__search,
  .desk__count {
    grid-column: 1 / -1;
  }
  .desk__count {
    justify-self: start;
    padding-bottom: 0;
    text-align: left;
  }
  .desk__input {
    min-height: 56px;
  }
  /* One row that scrolls sideways, bleeding to the screen edges. */
  .desk__roles {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .desk__roles::-webkit-scrollbar {
    display: none;
  }
  .desk__roles .chip {
    flex: none;
  }
}

/* --- Plates ---------------------------------------------------------------------
   Large portrait plates on the 12-column grid: odd plates hold columns 1–5,
   even plates columns 8–12, dropped by --stagger like a contact sheet that
   has been laid out by hand. */
.plates {
  --stagger: clamp(72px, 12vw, 220px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(64px, 8vw, 136px);
  align-items: start;
}

.plates.ends-b {
  padding-bottom: var(--stagger);
}

.plate {
  position: relative;
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  container-type: inline-size;
  cursor: pointer;
}

.plate[data-col="b"] {
  grid-column: 8 / span 5;
  translate: 0 var(--stagger);
}

.plates.is-single .plate {
  grid-column: 1 / span 6;
  translate: none;
}

.plate.is-arriving {
  animation: plate-arrive 520ms var(--ease-out) both;
}

@keyframes plate-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
}

.plate__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.plate__no {
  color: var(--fg);
  transition: color var(--d-2);
}

.plate__rule {
  flex: 1;
  height: 1px;
  margin-inline: 6px;
  background: var(--line);
  transform-origin: left;
  transition: background-color var(--d-2);
}

.plate__count b {
  font-weight: 500;
  color: var(--fg);
  margin-left: 0.4em;
}

.plate__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--night-2);
}

.plate__zoom {
  position: absolute;
  inset: 0;
  transition: transform 1400ms var(--ease-out);
}

.plate__zoom img,
.plate__duo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Duotone at rest: shadows take the portrait's own tone, highlights are bone. */
.plate__duo {
  position: absolute;
  inset: 0;
  isolation: isolate;
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms var(--ease-tape);
}

.plate__duo img {
  filter: grayscale(1) contrast(1.14) brightness(0.8);
}

.plate__frame.is-lifted .plate__zoom {
  opacity: 0;
}

.plate__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

/* --units is set per name by artists.js (its own width, floor 4.2, cap 9). */
.plate__name {
  font-size: clamp(1.75rem, 4.2vw, 4.25rem);
  font-size: clamp(min(1.75rem, calc(96cqi / var(--units, 6))), calc(96cqi / var(--units, 6)), 6rem);
  --wdth: 100;
  line-height: 0.95;
  overflow-wrap: anywhere;
  transition: font-variation-settings 700ms var(--ease-out);
}

/* A name past the cap is broken into measured lines (plates and dossier). */
.name-line {
  display: block;
}

.plate__roles {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
}

.plate__bio {
  max-width: 34em;
  color: var(--fg-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plate__bio:empty {
  display: none;
}

.plate__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.75rem;
  color: var(--fg-2);
}

.plate__metrics strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg);
}

.plate__open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

/* The whole plate is the hit area of its one button. */
.plate__open::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 2;
}

.plate__open:focus-visible {
  box-shadow: none;
}

.plate__open:focus-visible::after {
  box-shadow: var(--focus);
  border-radius: var(--radius);
}

.plate__open-label {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size 520ms var(--ease-out);
}

.plate__arrow {
  display: inline-block;
  transition: transform var(--d-2) var(--ease-out), color var(--d-2);
}

/* Lit: hover, keyboard focus, or (touch) centred in the viewport. */
.plate:hover .plate__duo,
.plate:focus-within .plate__duo,
.plate.is-lit .plate__duo {
  clip-path: inset(0 0 0 100%);
}

.plate:hover .plate__name,
.plate:focus-within .plate__name,
.plate.is-lit .plate__name {
  --wdth: 125;
}

.plate:hover .plate__zoom,
.plate:focus-within .plate__zoom {
  transform: scale(1.035);
}

.plate:hover .plate__no,
.plate:focus-within .plate__no,
.plate.is-lit .plate__no {
  color: var(--signal);
}

.plate:hover .plate__rule,
.plate:focus-within .plate__rule {
  background: var(--line-strong);
}

.plate:hover .plate__open-label,
.plate:focus-within .plate__open-label {
  background-size: 100% 1px;
}

.plate:hover .plate__arrow,
.plate:focus-within .plate__arrow {
  transform: translateX(4px);
  color: var(--signal);
}

.plates-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-bottom: clamp(48px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}

.plates-empty__title {
  font-size: var(--t-2);
  --wdth: 112;
}

.plates-empty__body {
  color: var(--fg-2);
}

@media (max-width: 1100px) {
  .plates {
    --stagger: clamp(48px, 10vw, 120px);
  }
  .plate {
    grid-column: 1 / span 6;
  }
  .plate[data-col="b"] {
    grid-column: 7 / span 6;
  }
}

@media (max-width: 760px) {
  .plates {
    row-gap: 72px;
  }
  .plates.ends-b {
    padding-bottom: 0;
  }
  .plate,
  .plate[data-col="b"],
  .plates.is-single .plate {
    grid-column: 1 / -1;
    translate: none;
  }
  .plate__frame {
    aspect-ratio: 1;
  }
}

/* Name measurer (off-screen; read by artists.js) */
.name-measure {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.name-measure span {
  display: inline-block;
  white-space: nowrap;
  font-size: 100px;
  line-height: 1;
  --wdth: 125;
}

/* --- Dossier ------------------------------------------------------------------ */
.dossier {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  justify-content: flex-end;
  color: var(--bone);
}

.dossier__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
}

/* The panel is uncovered from its right edge, like a sheet drawn from a file;
   its layout never moves, so the portrait can land exactly. */
.dossier__panel {
  position: relative;
  width: min(1240px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--night);
  border-left: 1px solid var(--line);
  isolation: isolate;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 760ms var(--ease-tape);
}

.dossier__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 18% 30%, rgb(var(--art) / 0.2), transparent 72%),
    radial-gradient(40% 40% at 90% 100%, rgb(var(--art) / 0.08), transparent 70%);
  pointer-events: none;
  transition: background 1200ms var(--ease-out);
}

.dossier.is-open .dossier__backdrop {
  opacity: 1;
}

.dossier.is-open .dossier__panel {
  clip-path: inset(0 0 0 0);
}

.dossier__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;
  border-bottom: 1px solid var(--line);
}

.dossier__file {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.dossier__rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: rec-blink 2.4s steps(1, end) infinite;
}

.dossier__pos {
  color: var(--fg);
}

.dossier__close {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fg);
  transition: transform var(--d-3) var(--ease-out), border-color var(--d-2);
}

.dossier__close:hover {
  transform: rotate(90deg);
  border-color: var(--fg);
}

.dossier__layout {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(28px, 4.4vw, 80px);
  padding: 0 var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.dossier__plate {
  position: sticky;
  top: 0;
  align-self: start;
  padding-block: clamp(24px, 4vh, 44px);
}

.dossier__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(100%, calc((100vh - 190px) * 0.8));
  width: min(100%, calc((100dvh - 190px) * 0.8));
  margin: 0;
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 50px 140px -50px rgb(var(--art) / 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dossier__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier__portrait.is-awaiting img {
  opacity: 0;
}

.dossier__no {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--bone);
  mix-blend-mode: difference;
}

.dossier__note {
  margin-top: 14px;
  max-width: 40em;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--fg-3);
}

.dossier__content {
  min-width: 0;
  padding-block: clamp(28px, 5vh, 56px) calc(72px + env(safe-area-inset-bottom));
  container-type: inline-size;
}

.dossier__content > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 500ms var(--ease-out), transform 800ms var(--ease-out);
}

.dossier.is-open .dossier__content > * {
  opacity: 1;
  transform: none;
}

.dossier.is-open .dossier__content > :nth-child(1) { transition-delay: 260ms; }
.dossier.is-open .dossier__content > :nth-child(2) { transition-delay: 330ms; }
.dossier.is-open .dossier__content > :nth-child(3) { transition-delay: 400ms; }
.dossier.is-open .dossier__content > :nth-child(4) { transition-delay: 450ms; }
.dossier.is-open .dossier__content > :nth-child(5) { transition-delay: 500ms; }
.dossier.is-open .dossier__content > :nth-child(n + 6) { transition-delay: 540ms; }

.dossier__name {
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-size: clamp(min(2.25rem, calc(96cqi / var(--units, 6))), calc(96cqi / var(--units, 6)), 6.5rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.dossier__roles {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  margin-top: 20px;
}

.dossier__lede {
  margin-top: 22px;
  max-width: 26em;
  font-family: var(--f-serif);
  font-size: var(--t-4);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.dossier__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
  margin-top: clamp(28px, 4vh, 44px);
  padding-block: 18px 28px;
  border-top: 1px solid var(--line-strong);
}

.fact {
  display: grid;
  gap: 4px;
  margin: 0;
}

.fact__label {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.fact__value {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.dossier__section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.dossier__section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.dossier__kicker {
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.dossier__section-head .dossier__kicker {
  margin: 0;
  order: 2;
}

.dossier__h3 {
  font-size: var(--t-3);
  font-weight: 600;
  line-height: 1.25;
}

.dossier__links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  column-gap: 24px;
  border-top: 1px solid var(--line);
}

.dossier__bio {
  max-width: 30em;
}

.dossier__specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--fg-2);
}

/* Recent releases as a tracklist */
.tracks {
  border-top: 1px solid var(--line);
}

.track {
  display: grid;
  grid-template-columns: 2rem 64px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: padding var(--d-2) var(--ease-out), background-color var(--d-2);
}

.track__no {
  font-size: var(--t-micro);
  color: var(--fg-3);
}

.track__cover {
  width: 64px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--night-2);
}

.track__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.track__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.track__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.track__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--fg-3);
  /* Greedy breaking: "pretty" (inherited from li) pulls the last CJK
     character of the series down to sit beside the date. */
  text-wrap: wrap;
}

/* "· date" never breaks, so the separator never ends a line on its own. */
.track__date {
  white-space: nowrap;
}

.track__tag {
  padding: 4px 10px;
  border: 1px solid var(--signal);
  border-radius: 999px;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  white-space: nowrap;
}

.track__arrow {
  grid-column: 5;
  font-family: var(--f-mono);
  color: var(--fg-4);
  transition: transform var(--d-2) var(--ease-out), color var(--d-2);
}

.track:hover,
.track:focus-visible {
  padding-left: 8px;
  background: rgba(238, 235, 228, 0.03);
}

.track:hover .track__cover img {
  transform: scale(1.06);
}

.track:hover .track__arrow,
.track:focus-visible .track__arrow {
  color: var(--signal);
  transform: translate(2px, -2px);
}

.track:hover .track__no {
  color: var(--signal);
}

.tracks__empty {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
}

/* The portrait in flight (plate → dossier) */
.portrait-ghost {
  position: fixed;
  z-index: 96;
  overflow: hidden;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}

.portrait-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .dossier__panel {
    border-left: 0;
  }
  .dossier__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dossier__plate {
    position: static;
    padding-bottom: 0;
  }
  .dossier__portrait {
    aspect-ratio: 1;
    width: 100%;
  }
  .dossier__content {
    padding-top: 28px;
  }
  .track {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
  }
  .track__no {
    display: none;
  }
  .track__cover {
    width: 56px;
  }
  .track__tag {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .track__arrow {
    grid-column: 3;
    grid-row: 1;
  }
}

/* --- Reduced motion: state changes stay, travel goes ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .network__stage,
  .node__inner {
    transform: none;
  }
  .js .network__edges {
    clip-path: none;
  }
  .js .node {
    opacity: 1;
    scale: 1;
  }
  .dossier__rec {
    animation: none;
  }
  .dossier__content > * {
    opacity: 1;
    transform: none;
  }
  .plate.is-arriving {
    animation: none;
  }
}

/* English and Japanese rag (balance keeps compounds such as "long-term" whole;
   auto-phrase keeps Japanese words together). */
:root[lang="en"] .a-hero__subtitle,
:root[lang="en"] .archive .section-head__aside {
  text-wrap: balance;
}

.network__caption:lang(ja-JP) {
  line-break: strict;
  word-break: auto-phrase;
}
