/* =========================================================
   PRJ CÔGEIMU — site styles
   Black & chic. Accent colours come from the works:
   copper (02 Kagane) and silver / ice (01 Yuki).
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #121213;
  --bg-3: #19191b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9e5df;
  --text-2: #b4aea6;
  --muted: #7d7872;

  --copper: #c8845b;
  --copper-hi: #e8b18a;
  --copper-lo: #6e3f25;
  --silver: #cfd3d8;
  --ice: #9fdbe4;

  --accent: var(--copper);
  --accent-hi: var(--copper-hi);

  --f-logo: "Cormorant Garamond", "Noto Serif JP", serif;
  --f-type: "Courier Prime", "Courier New", monospace;
  --f-head: "Noto Serif JP", "Cormorant Garamond", serif;
  --f-body: "Noto Sans JP", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

.theme-yuki {
  --accent: var(--ice);
  --accent-hi: #d6f3f7;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Cormorant defaults to old-style figures ("01" reads as "OI") */
body, svg text { font-variant-numeric: lining-nums; }
html[lang="en"] body { letter-spacing: 0.01em; line-height: 1.75; font-size: 16px; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #0a0a0b; }

/* film grain over everything, like the key visual.
   A real element (<div class="grain">), not body::after: iOS Safari 26 colours the status bar
   from the fixed header it finds at the top edge, and it looks past a fixed layer only when that
   layer is an element of its own with opacity under 0.1 and pointer-events: none.
   A pseudo-element counts as <body> and hides the header from it. Keep the opacity below 0.1. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- language switching ----------
   Every bilingual string is written twice: lang="ja" and lang="en".
   The active language lives on <html lang>.                         */
html[lang="ja"] body [lang="en"],
html[lang="en"] body [lang="ja"] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--text); color: var(--bg); padding: 8px 14px;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

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

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
/* opaque and without backdrop-filter: iOS Safari 26 then paints the status bar above it in the same colour
   (a translucent or blurred header leaves the page showing through up there) */
.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.logo {
  font-family: var(--f-logo); font-weight: 500;
  font-size: 22px; letter-spacing: 0.12em;
  text-decoration: none; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.logo small {
  font-family: var(--f-type); font-size: 12px; letter-spacing: 0.24em;
  color: var(--muted); text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.nav__links a {
  font-family: var(--f-type); font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none; color: var(--text-2);
  transition: color 0.25s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent-hi); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 2px; font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.12em;
}
.lang-toggle button {
  appearance: none; border: 0; background: none; color: var(--muted);
  font: inherit; letter-spacing: inherit; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.menu-btn {
  display: none; appearance: none; background: none; border: 0; color: var(--text);
  width: 40px; height: 40px; cursor: pointer; position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-btn::before { top: 15px; }
.menu-btn span { top: 20px; }
.menu-btn::after { top: 25px; }
.menu-open .menu-btn::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span { opacity: 0; }
.menu-open .menu-btn::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: rgba(10, 10, 11, 0.97);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  .nav__links a { font-size: 15px; }
  .menu-open .nav__links { opacity: 1; visibility: visible; }
  .logo small { display: none; }
}

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head__label, .sec-head .sec-head__label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-type); font-size: 13px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.sec-head__label::before { content: ""; flex: 0 0 28px; height: 1px; background: currentColor; }
.sec-head h2 {
  font-family: var(--f-head); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.45; letter-spacing: 0.08em; margin: 0;
}
html[lang="en"] .sec-head h2 { font-family: var(--f-logo); font-size: clamp(32px, 4.4vw, 52px); letter-spacing: 0.02em; line-height: 1.15; }
.sec-head p:not(.sec-head__label) { color: var(--text-2); margin-top: 18px; max-width: 46em; }

.eyebrow {
  font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
}

.lead {
  font-family: var(--f-head); font-size: clamp(18px, 2vw, 22px); line-height: 2;
  letter-spacing: 0.08em; color: var(--text);
}
html[lang="en"] .lead { font-family: var(--f-logo); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; letter-spacing: 0.01em; }

.muted { color: var(--muted); }
.nw { white-space: nowrap; } /* keep a word together on one line */
.note { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.note::before { content: "※ "; }
html[lang="en"] .note::before { content: "* "; }

.tba {
  display: inline-block; font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-strong);
  padding: 2px 10px; border-radius: 2px;
}

/* ---------- grid helpers ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split--wide-left { grid-template-columns: 1.25fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.25fr; }
  .split--center { align-items: center; }
}

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg); padding: clamp(24px, 3vw, 36px); }
.card__label {
  font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.card h3 {
  font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: 0.08em;
  line-height: 1.6; margin: 0 0 12px;
}
html[lang="en"] .card h3 { letter-spacing: 0.01em; }
.card p { color: var(--text-2); font-size: 15px; }

.bullets li { position: relative; padding-left: 1.4em; margin-bottom: 0.7em; color: var(--text-2); }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.9em; width: 6px; height: 1px; background: var(--accent);
}
.bullets strong { color: var(--text); font-weight: 500; }

/* ---------- hero (top page) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 70%, var(--bg) 100%),
    radial-gradient(ellipse 70% 60% at 50% 45%, #2b2b2d 0%, #151516 55%, var(--bg) 100%);
}
.hero__typed {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 var(--gutter); font-family: var(--f-type);
  font-size: clamp(22px, 4.4vw, 56px); line-height: 1.45; text-align: left;
  color: rgba(255, 255, 255, 0.035); white-space: nowrap; user-select: none; pointer-events: none;
  filter: blur(0.6px);
}
@media (max-width: 600px) { .hero__typed { display: none; } }
.hero__inner { position: relative; z-index: 1; padding: 120px var(--gutter) 96px; }
.hero__eyebrow {
  font-family: var(--f-type); font-size: clamp(13px, 1.4vw, 16px); letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; padding-left: 0.5em;
}
.hero h1 {
  font-family: var(--f-logo); font-weight: 400; margin: 0; line-height: 0.95;
  font-size: clamp(64px, 14vw, 184px); letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff 30%, #9c958c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag {
  margin-top: 28px; font-family: var(--f-head); font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.24em;
  padding-left: 0.4em;
}
.hero__tag .x { color: var(--accent); margin-inline: 0.3em; }
.hero__lead { max-width: 34em; margin: 26px auto 0; color: var(--text-2); font-size: 15px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  font-family: var(--f-type); font-size: 12px; letter-spacing: 0.24em; color: var(--muted);
  text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--muted), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- concept strike ---------- */
.concept { text-align: center; }
.concept__from, .concept__to { font-family: var(--f-head); letter-spacing: 0.1em; }
.concept__from {
  font-size: clamp(18px, 2.4vw, 26px); color: var(--muted);
  text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 1px;
}
.concept__to { font-size: clamp(30px, 5.4vw, 64px); margin-top: 10px; line-height: 1.3; }
.concept__to em { font-style: normal; color: var(--accent-hi); }
html[lang="en"] .concept__from, html[lang="en"] .concept__to { font-family: var(--f-logo); letter-spacing: 0.01em; }
html[lang="en"] .concept__to em { font-style: italic; }

/* ---------- positioning map ---------- */
.posmap { width: 100%; max-width: 520px; margin-inline: auto; }
.posmap text { font-family: var(--f-type); fill: var(--muted); font-size: 12.5px; letter-spacing: 0.1em; }
.posmap .q { font-family: var(--f-head); fill: var(--text-2); font-size: 15px; letter-spacing: 0.08em; }
.posmap .pm-note { fill: var(--copper-hi); font-size: 12px; letter-spacing: 0.04em; paint-order: stroke; stroke: var(--bg); stroke-width: 5px; }
.posmap .brand { font-family: var(--f-logo); fill: var(--accent-hi); font-size: 20px; letter-spacing: 0.08em; }

/* ---------- works ---------- */
.works { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 760px) { .works { grid-template-columns: 1fr 1fr; } }
.work {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--bg-2); border: 1px solid var(--line);
  isolation: isolate;
}
.work img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease), filter 0.8s;
  filter: saturate(0.85) brightness(0.8);
}
.work::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,11,0.1) 0%, rgba(10,10,11,0) 35%, rgba(10,10,11,0.75) 62%, rgba(10,10,11,0.95) 100%);
}
.work:hover img, .work:focus-visible img { transform: scale(1.04); filter: saturate(1) brightness(0.95); }
.work__body { position: absolute; inset: auto 0 0; padding: clamp(22px, 3vw, 36px); }
.work__no {
  font-family: var(--f-logo); font-size: 64px; line-height: 1; color: var(--work-accent);
  position: absolute; top: clamp(18px, 2.4vw, 30px); left: clamp(22px, 3vw, 36px);
}
.work__mat {
  position: absolute; top: clamp(26px, 3vw, 40px); right: clamp(22px, 3vw, 36px);
  font-family: var(--f-type); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2);
}
.work__code { font-family: var(--f-type); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--work-accent); }
.work__title {
  font-family: var(--f-type); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.08em;
  line-height: 1.15; margin: 8px 0 12px; text-transform: uppercase;
}
.work__title--tba { color: var(--muted); font-weight: 400; }
.work__desc { color: var(--text-2); font-size: 14.5px; max-width: 30em; }
.work__more {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase;
}
.work__more::after { content: ""; width: 32px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.work:hover .work__more::after { width: 56px; }
.work--yuki { --work-accent: var(--silver); }
.work--kagane { --work-accent: var(--copper-hi); }
.work--kagane:hover { border-color: rgba(200, 132, 91, 0.5); }
.work--yuki:hover { border-color: rgba(207, 211, 216, 0.4); }

/* sub heading used outside .sec-head */
.subhead {
  font-family: var(--f-head); font-weight: 500; font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: 0.08em; line-height: 1.6; margin: 0 0 28px;
}
html[lang="en"] .subhead { font-family: var(--f-logo); font-size: clamp(26px, 3.2vw, 36px); letter-spacing: 0.01em; line-height: 1.25; }

.work__cv { margin: 14px 0 0; font-size: 14px; color: var(--text); }
.work__cv-label {
  font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.2em; color: var(--work-accent);
  margin-right: 10px;
}

/* ---------- team ---------- */
.team { display: grid; gap: clamp(40px, 5vw, 56px); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.member__photo {
  width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-strong); margin-bottom: 22px; filter: grayscale(1) contrast(1.05);
}
.member__role { font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.member h3 { font-family: var(--f-head); font-weight: 500; font-size: 22px; letter-spacing: 0.12em; margin: 6px 0 2px; }
.member__en { font-family: var(--f-logo); font-style: italic; color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.member p { color: var(--text-2); font-size: 14.5px; }
.member dl { margin: 18px 0 0; font-size: 13.5px; color: var(--text-2); }
.member dt { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.member dd { margin: 4px 0 0; }

/* supervisors / supporters / partners */
.people, .partners {
  display: grid; gap: 32px 48px; margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .partners { grid-template-columns: repeat(2, 1fr); } .people { grid-template-columns: repeat(3, auto); justify-content: start; } }
.partners { margin-top: clamp(40px, 5vw, 56px); }
.people__label {
  font-family: var(--f-type); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.people ul { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.people li { font-family: var(--f-head); font-size: 19px; letter-spacing: 0.1em; }
.people li a { text-decoration: none; transition: color 0.25s; }
.people li a:hover { color: var(--accent-hi); }
.people__en { display: block; font-family: var(--f-logo); font-style: italic; font-size: 16px; letter-spacing: 0.02em; color: var(--muted); }
.people li small { display: block; margin-top: 6px; font-family: var(--f-body); font-size: 13.5px; letter-spacing: 0.04em; color: var(--text-2); max-width: 22em; }
.partners__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.logo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 132px; height: 132px; background: #fff; overflow: hidden;
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile--dark { width: auto; min-width: 220px; padding: 0 28px; background: var(--bg-2); border: 1px solid var(--line-strong); }
.logo-tile--dark img { width: 180px; height: auto; }
a.logo-tile { transition: opacity 0.25s; }
a.logo-tile:hover { opacity: 0.85; }
.partners__note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- records ---------- */

.timeline li {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline time { font-family: var(--f-type); font-size: 14px; color: var(--accent); letter-spacing: 0.05em; }
.timeline h4 { margin: 0; font-weight: 500; font-size: 15px; letter-spacing: 0.05em; }
.timeline p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }
.press li { border-bottom: 1px solid var(--line); }
.press a { display: block; padding: 14px 0; text-decoration: none; transition: color 0.25s; }
.press a:hover .press__title { color: var(--accent-hi); }
.press__meta { display: block; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 4px; }
.press__title { display: block; font-size: 15px; line-height: 1.7; color: var(--text); }
.press__title::after { content: " ↗"; color: var(--muted); }
.press__others { margin-top: 18px; font-size: 14px; color: var(--text-2); }

.genre { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.genre__list { display: flex; flex-wrap: wrap; gap: 10px; }
.genre__list li {
  padding: 8px 16px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); letter-spacing: 0.06em;
}
.genre__next {
  position: relative; margin: 14px 0 0; padding: 18px 30px 16px;
  border: 1px solid var(--copper); background: linear-gradient(135deg, rgba(200,132,91,0.16), rgba(200,132,91,0.02));
  font-family: var(--f-logo); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: 0.08em; color: var(--copper-hi); line-height: 1.1;
}
.genre__label { display: block; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.22em; color: var(--text-2); margin-bottom: 6px; }

.record-note {
  margin-top: 28px; padding: 18px 22px; border-left: 2px solid var(--accent);
  background: var(--bg-2); font-size: 14px; color: var(--text-2);
}

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px;
  border: 1px solid var(--line-strong); text-decoration: none;
  font-family: var(--f-type); font-size: 14px; letter-spacing: 0.12em;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-hi); background: rgba(200, 132, 91, 0.06); }
.btn small { color: var(--muted); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; }
.site-footer .logo { font-size: 28px; color: var(--text); }
.site-footer p { margin: 8px 0 0; }
.site-footer__note { flex: 0 0 100%; padding-right: max(0px, 100% - 46em); font-size: 12px; line-height: 1.8; }
.site-footer__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Work pages
   ========================================================= */
.work-hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 110px var(--gutter) 0;
  background:
    linear-gradient(180deg, transparent 75%, var(--bg) 100%),
    radial-gradient(ellipse 70% 55% at 50% 58%, #333235 0%, #19191a 55%, var(--bg) 100%);
}
.work-hero__pre {
  font-family: var(--f-type); letter-spacing: 0.24em; font-size: clamp(14px, 2vw, 22px);
  color: var(--text-2); padding-left: 0.4em;
}
.work-hero__title {
  font-family: var(--f-type); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 8.4vw, 108px); letter-spacing: 0.1em; line-height: 1.05;
  margin: 10px 0 0; padding-left: 0.1em; color: #f1ede7; position: relative; z-index: 2;
}
.work-hero__visual {
  position: relative; width: auto; max-width: 100%;
  height: min(72svh, 86vw); object-fit: contain;
  margin-top: clamp(-40px, -3vw, -10px);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
}
.work-hero__meta {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px;
  font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2);
}
.work-hero__meta span b { color: var(--accent-hi); font-weight: 400; }

/* photo hero (Yuki) */
.work-hero--photo { justify-content: flex-end; padding-bottom: clamp(80px, 10vw, 120px); background: var(--bg); }
.work-hero--photo .work-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.work-hero--photo .work-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(0.4) brightness(0.55); }
.work-hero--photo .work-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.3) 0%, rgba(10,10,11,0.15) 40%, var(--bg) 96%);
}
.work-hero--photo > *:not(.work-hero__bg) { position: relative; z-index: 1; }

.statement {
  font-family: var(--f-type); font-size: clamp(16px, 1.9vw, 21px); line-height: 1.9; letter-spacing: 0.02em;
  color: var(--text-2); white-space: pre-line;
}
.statement b { color: var(--text); font-weight: 400; }
html[lang="ja"] .statement { font-family: var(--f-head); letter-spacing: 0.1em; line-height: 2.3; }

.facts { border-top: 1px solid var(--line); margin: 0; }
.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }
.facts dt { font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); padding-top: 0.4em; }
.facts dd { margin: 0; color: var(--text); font-size: 15.5px; }
.facts dd small { display: block; color: var(--muted); font-size: 13px; }

.steps > li { position: relative; padding: 0 0 30px 0; }
.steps > li::before {
  content: ""; display: block; width: 28px; height: 1px; background: var(--accent); margin-bottom: 16px;
}
.steps h3 { font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: 0.08em; margin: 0 0 8px; }
/* steps that carry an English label use the label instead of the copper rule */
.steps--labeled > li::before { display: none; }
.steps p { color: var(--text-2); }

.figure { margin: 0; }
.figure img { width: 100%; border: 1px solid var(--line); }
.figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery--lead > :first-child { grid-column: span 2; grid-row: span 2; } }
.gallery img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 9; filter: saturate(0.9); transition: filter 0.4s; }
.gallery img:hover { filter: saturate(1.05); }

.callout {
  margin-top: 36px; padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(200, 132, 91, 0.35);
  background: linear-gradient(135deg, rgba(200,132,91,0.08), rgba(200,132,91,0.02));
  font-family: var(--f-head); letter-spacing: 0.06em; line-height: 2;
}
.theme-yuki .callout { border-color: rgba(159, 219, 228, 0.3); background: linear-gradient(135deg, rgba(159,219,228,0.07), rgba(159,219,228,0.01)); }
html[lang="en"] .callout { font-family: var(--f-body); letter-spacing: 0.01em; line-height: 1.7; }

/* embedded video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* diagrams */
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--f-type); fill: var(--text-2); font-size: 13px; letter-spacing: 0.08em; }
.diagram .d-strong { fill: var(--text); font-family: var(--f-head); font-size: 15px; }
.diagram .d-accent { fill: var(--accent-hi); }
.diagram .d-line { stroke: var(--line-strong); fill: none; }
.diagram .d-accent-line { stroke: var(--accent); fill: none; }

/* credits: plain text list, grouped */
.credit-list { display: grid; gap: 40px 64px; margin-top: 8px; }
@media (min-width: 900px) { .credit-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.credit-list__heading {
  font-family: var(--f-head); font-weight: 500; font-size: 17px; letter-spacing: 0.12em;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
html[lang="en"] .credit-list__heading { font-family: var(--f-logo); font-size: 21px; letter-spacing: 0.02em; }
.credit-list dl { margin: 0; }
.credit-list dl > div { padding: 7px 0; }
.credit-list dt { font-family: var(--f-type); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.credit-list dd { margin: 2px 0 0; font-size: 16px; letter-spacing: 0.06em; }
html[lang="en"] .credit-list dd { letter-spacing: 0.02em; }

.next-work {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  text-decoration: none; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.next-work__label { font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.next-work__title { font-family: var(--f-type); font-weight: 700; font-size: clamp(28px, 5vw, 60px); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; margin-top: 8px; transition: color 0.3s; }
.next-work:hover .next-work__title { color: var(--next-accent, var(--accent-hi)); }
.next-work__arrow { font-family: var(--f-type); font-size: 32px; transition: transform 0.4s var(--ease); }
.next-work:hover .next-work__arrow { transform: translateX(10px); }

.back-link {
  font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
}
.back-link:hover { color: var(--accent-hi); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* =========================================================
   Kagane / Yuki page additions
   ========================================================= */
.section--bg { overflow: hidden; }
.section__bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: 0.22; filter: saturate(0.9);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
}
.section--bg { isolation: isolate; }

.concept-block { text-align: center; max-width: 820px; margin: 0 auto clamp(56px, 8vw, 96px); }
.concept-block .concept__from { margin: 22px 0 0; }
.concept__theme {
  display: inline-flex; align-items: baseline; gap: 16px; margin: 30px 0 0;
  font-family: var(--f-head); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: 0.3em;
  padding: 10px 26px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
}
html[lang="en"] .concept__theme { font-family: var(--f-logo); letter-spacing: 0.08em; }
.concept__theme-label { font-family: var(--f-type); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.concept__text { margin: 30px auto 0; max-width: 40em; }
.about-catch .concept__to { margin-top: 0; font-size: clamp(26px, 5.4vw, 64px); }

@media (min-width: 900px) {
  .steps--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* in-game view A: the eye-shaped glimpse, edges dissolving into the dark (no rim) */
.eye-view { margin: 0; }
.eye-view__socket img {
  display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 42%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 42%, transparent 100%);
}
.eye-view figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* concept steps with a picture on top */
.steps__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; margin-bottom: 20px; }
@media (min-width: 900px) { .steps__img { aspect-ratio: 4 / 5; } }

/* statement: lead across, then text and a picture */
.statement-lead { max-width: 38em; margin-bottom: clamp(36px, 5vw, 56px); }
.statement-body p { color: var(--text-2); }
.statement-body .message__sign { color: var(--text-2); }
.statement-figure { margin: 0; }
.statement-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 899px) { .statement-figure img { aspect-ratio: 4 / 3; object-position: 50% 35%; } }

/* notes: index on the page, contents in a second layer */
.notes-index { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .notes-index { grid-template-columns: 1fr 1fr; column-gap: 1px; } }
.notes-index li { border-bottom: 1px solid var(--line); }
.notes-index__item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 16px 4px; text-decoration: none;
}
@media (min-width: 900px) { .notes-index__item { grid-template-columns: 96px minmax(0, 1fr) auto; padding: 20px 20px 20px 0; } .notes-index li:nth-child(even) .notes-index__item { padding-left: 20px; } }
.notes-index__item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: saturate(0.85) brightness(0.9); transition: filter 0.4s; }
.notes-index__item .card__label { margin-bottom: 6px; }
.notes-index__title { display: block; font-family: var(--f-head); font-size: 16px; letter-spacing: 0.06em; line-height: 1.6; transition: color 0.3s; }
html[lang="en"] .notes-index__title { letter-spacing: 0.01em; }
.notes-index__arrow { font-family: var(--f-type); font-size: 20px; color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
.notes-index__item:hover .notes-index__title, .notes-index__item:focus-visible .notes-index__title { color: var(--accent-hi); }
.notes-index__item:hover img { filter: none; }
.notes-index__item:hover .notes-index__arrow { transform: translateX(6px); color: var(--accent-hi); }

.notes__bar { display: none; }
.notes__item { padding-block: var(--section); border-top: 1px solid var(--line); }
.js .notes {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.js .notes.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.js .notes__item { border-top: 0; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.js .notes__item[hidden] { display: none; }
.js .notes__bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line);
}
.notes__crumb { margin: 0; font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes__crumb-label { color: var(--accent); }
.notes__close {
  flex: none; appearance: none; background: none; color: var(--text); cursor: pointer;
  border: 1px solid var(--line-strong); padding: 8px 14px; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.14em;
}
.notes__close:hover { border-color: var(--accent); color: var(--accent-hi); }
.note-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 8vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); }
.note-nav a { text-decoration: none; display: block; }
.note-nav a:last-child:not(:first-child), .note-nav__next { text-align: right; }
.note-nav small { display: block; font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.note-nav span { font-family: var(--f-head); font-size: 15px; letter-spacing: 0.06em; color: var(--text-2); transition: color 0.3s; }
.note-nav a:hover span { color: var(--accent-hi); }

/* in-game view B: full width with a dark vignette */
.screen-shot { margin: 0 auto; max-width: 1280px; position: relative; }
.screen-shot img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}


.duo { display: grid; gap: 8px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 900px) {
}

/* work card title helper */
.work__title small { font-size: 0.55em; letter-spacing: 0.08em; color: var(--text-2); font-weight: 400; }

/* record: exhibitions */
.timeline--wide li { grid-template-columns: 11em 1fr; }
@media (max-width: 560px) { .timeline li, .timeline--wide li { grid-template-columns: 1fr; gap: 4px; } }

/* record: media */
.media { margin-top: clamp(64px, 9vw, 104px); }
.media__sub {
  font-family: var(--f-head); font-size: 17px; letter-spacing: 0.12em; margin: clamp(48px, 6vw, 64px) 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
html[lang="en"] .media__sub { font-family: var(--f-logo); font-size: 21px; letter-spacing: 0.02em; }
.media-featured { display: grid; gap: 16px; }
@media (min-width: 900px) { .media-featured { grid-template-columns: 1.3fr 1fr 1fr; } }
.media-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 260px; padding: clamp(24px, 3vw, 34px);
  text-decoration: none; border: 1px solid var(--line-strong); background: var(--bg-2);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.media-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.media-card__badge {
  align-self: flex-start; font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.16em;
  color: var(--bg); background: var(--copper-hi); padding: 3px 10px;
}
.media-card__outlet { font-family: var(--f-logo); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: 0.04em; color: var(--text); margin-top: 6px; }
.media-card__title { font-family: var(--f-head); font-size: 15.5px; line-height: 1.75; letter-spacing: 0.04em; color: var(--text); }
.media-card__note { margin-top: auto; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.media-card--tv { background: linear-gradient(150deg, rgba(200,132,91,0.18), var(--bg-2) 60%); border-color: rgba(200,132,91,0.45); }
.media-card--tv .media-card__outlet { font-family: var(--f-type); font-weight: 700; font-size: clamp(48px, 6vw, 76px); color: var(--copper-hi); }
.media-card--tv .media-card__title { font-size: 18px; }

.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.video-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; opacity: 0.85; }
.video-card__thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: rgba(10,10,11,0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23e9e5df'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1px solid rgba(255,255,255,0.3);
}
.video-card:hover .video-card__thumb img { transform: scale(1.04); opacity: 1; }
.video-card__title { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.video-card:hover .video-card__title { color: var(--accent-hi); }

/* smooth page transitions (browsers that support cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Kagane: the call that gives the work its name */
.statement__call {
  font-family: var(--f-type); font-weight: 700; font-size: clamp(30px, 5vw, 58px); line-height: 1.3;
  letter-spacing: 0.04em; color: #f1ede7; margin: 0 0 28px;
}
html[lang="ja"] .statement__call { font-family: var(--f-head); font-weight: 500; letter-spacing: 0.12em; line-height: 1.5; }

/* Kagane: title before / after */
.title-flip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .title-flip { grid-template-columns: 1fr 1fr; } }
.title-flip__side { background: var(--bg); padding: clamp(28px, 4vw, 48px); }
.title-flip__side--after { background: linear-gradient(150deg, rgba(200,132,91,0.14), var(--bg) 70%); }
.title-flip__when { font-family: var(--f-type); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
html[lang="ja"] .title-flip__when { font-family: var(--f-head); letter-spacing: 0.2em; }
.title-flip__phrase { font-family: var(--f-type); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; }
.title-flip__who { color: var(--text-2); margin: 0; }
.origin { border-left: 1px solid var(--accent); padding-left: clamp(20px, 3vw, 32px); }
.origin h3 {
  font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: 0.08em;
  line-height: 1.6; margin: 0 0 12px;
}
html[lang="en"] .origin h3 { letter-spacing: 0.01em; }

/* keep card text readable on small screens */
@media (max-width: 760px) {
  .work::before { background: linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.55) 30%, rgba(10,10,11,0.93) 58%, rgba(10,10,11,0.97) 100%); }
}

/* =========================================================
   Mobile polish
   ========================================================= */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html[lang="ja"] body { line-break: strict; }

/* menu: the full-screen menu brings its own dark ground, so the header goes clear over it.
   Never give the header a backdrop-filter, transform or filter: it would become the containing
   block of the fixed menu and squash the menu into the header. */
html.no-scroll { overflow: hidden; }
.menu-open .site-header,
.menu-open .site-header.is-scrolled { background: transparent; border-bottom-color: transparent; }
@media (max-width: 820px) {
  .nav__links { height: 100dvh; }
}

/* labels used in centred layouts get a line on both sides */
.sec-head__label--center, .people__label--center { justify-content: center; }
.sec-head__label--center::after { content: ""; flex: 0 0 28px; height: 1px; background: currentColor; }
.people__label--center { display: flex; align-items: center; gap: 14px; }
.people__label--center::before, .people__label--center::after { content: ""; flex: 0 0 22px; height: 1px; background: currentColor; }

/* organisers / grant: centred */
.partners { justify-items: center; text-align: center; }
.partners__group { display: flex; flex-direction: column; align-items: center; }
.partners__logos { justify-content: center; }

/* work cards: CV on separate lines */
.work__cv { display: flex; align-items: baseline; gap: 12px; }
.work__cv-names > span { display: block; }
.work__cv-label { flex: none; margin-right: 0; }

/* work pages: hero */
.work-hero__material {
  position: relative; z-index: 2; margin: 14px 0 0;
  font-family: var(--f-type); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-hi);
}
.work-hero--kv { justify-content: flex-start; padding-bottom: clamp(40px, 6vw, 72px); }
.work-hero__kv {
  width: min(100%, 72svh, 860px); height: auto; margin-top: 18px;
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 70%, transparent 100%);
}
.work-hero--kv .work-hero__material { margin-top: 4px; }

@media (max-width: 760px) {
  /* home: work cards stack image and text so her face stays visible */
  .work { aspect-ratio: auto; display: flex; flex-direction: column; }
  .work img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; }
  .work::before {
    background: linear-gradient(180deg, rgba(10,10,11,0) 0%, rgba(10,10,11,0) 44%, rgba(10,10,11,0.85) 58%, var(--bg-2) 66%, var(--bg-2) 100%);
  }
  .work__body { position: relative; inset: auto; margin-top: -76px; padding: 0 22px 26px; }
  .work__title { font-size: 26px; }
  .work__desc { font-size: 14px; }

  /* work pages: hero */
  .work-hero, .work-hero--photo { min-height: auto; }
  .work-hero--photo { min-height: 78svh; }
  .work-hero--kv { padding-top: 92px; }
  .work-hero__kv { width: 100%; margin-top: 10px; }

  /* image grids: even gutters, no orphan cells */
  .gallery, .process-grid, .portraits, .duo { gap: 6px; }
  .gallery--lead > :first-child { grid-column: 1 / -1; }
  .screen-shot { margin-inline: 0; }
  .eye-view { margin-top: 12px; }
  .split > .gallery, .split > .portraits, .split > .reveal > .gallery { margin-top: 4px; }
}
@media (max-width: 899px) {
  .gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
/* line breaks that only apply on phones */
br.sp { display: none; }
@media (max-width: 560px) { br.sp { display: inline; } }
@media (max-width: 820px) { .nav__links { background: rgba(10, 10, 11, 0.985); } }
@media (max-width: 760px) {
  .work__body { margin-top: -44px; }
  .work-hero__kv {
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
}
/* Kagane key visual: keep the whole title visible, only soften the edges */
.work-hero__kv, .work-hero--kv .work-hero__kv {
  width: min(100%, 78svh, 900px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 760px) { .work-hero--kv .work-hero__kv { width: 100%; } }

/* =========================================================
   Image grids — sized only by width + aspect-ratio (no percentage heights),
   so every browser, including iOS Safari, lays them out identically
   ========================================================= */
.portraits { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; align-items: start; }
.portraits img { display: block; width: 100%; height: auto; object-fit: cover; }
.portraits img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; object-position: 50% 32%; }
.portraits img:not(:first-child) { aspect-ratio: 3 / 4; object-position: 50% 30%; }
@media (min-width: 900px) {
  .portraits { grid-template-columns: repeat(3, 1fr); }
  .portraits img, .portraits img:first-child, .portraits img:not(:first-child) { grid-column: auto; aspect-ratio: 9 / 16; }
}
.process-grid { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; align-items: start; }
.process-grid img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 9; }
.process-grid .process-grid__tall { grid-column: 1 / -1; aspect-ratio: 16 / 9; object-position: 50% 32%; }
@media (max-width: 760px) { .portraits, .process-grid { gap: 6px; } }
.gallery { align-items: start; }
.gallery--lead > :first-child { aspect-ratio: auto; }
@media (min-width: 900px) { .gallery--lead > :first-child { aspect-ratio: 16 / 9; } }

/* =========================================================
   Work page hero — same structure on every work:
   PRJ CÔGEIMU — 0X / NAME / title / image
   ========================================================= */
.work-hero--unified {
  min-height: auto; padding: clamp(104px, 12vw, 140px) var(--gutter) clamp(24px, 4vw, 48px);
  justify-content: flex-start;
}
.work-hero__head { position: relative; z-index: 2; }
.work-hero__name {
  font-family: var(--f-type); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 9vw, 104px); letter-spacing: 0.1em; line-height: 1; margin: 12px 0 0; padding-left: 0.1em; color: #f1ede7;
}
.work-hero__subtitle {
  font-family: var(--f-type); text-transform: uppercase; color: var(--accent-hi);
  font-size: clamp(16px, 2.2vw, 24px); letter-spacing: 0.24em; margin: 16px 0 0; padding-left: 0.24em;
}
.work-hero__subtitle small { font-size: 0.75em; letter-spacing: 0.16em; color: var(--text-2); }
.work-hero__img {
  display: block; width: min(100%, 64svh, 760px); height: auto; margin-top: clamp(8px, 2vw, 20px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.work-hero__img--wide { width: min(100%, 1000px); }
@media (max-width: 760px) {
  .work-hero--unified { padding-top: 96px; }
  .work-hero__img, .work-hero__img--wide { width: 100%; }
}

/* home work cards: number and name together, material legible */
.work__head { position: absolute; top: clamp(18px, 2.4vw, 30px); left: clamp(22px, 3vw, 36px); display: flex; align-items: baseline; gap: 12px; }
.work__head .work__no { position: static; }
.work__head .work__code {
  font-family: var(--f-type); font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 1px 10px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.9);
}
.work__no { text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.work__mat {
  padding: 5px 10px; background: rgba(10,10,11,0.62); border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--text); font-size: 12px; letter-spacing: 0.22em;
}
@media (max-width: 760px) {
  /* photo fades into the card instead of ending in a hard edge */
  .work img {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .work::before { display: none; }
  .work__body { margin-top: -64px; }
}

/* labels never wrap one character per line */
.people__label, .sec-head__label, .eyebrow { white-space: nowrap; }
/* darken the top of work cards so number / name / material stay legible */
.work::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0) 100%);
}
.work__head .work__code { font-size: 17px; font-weight: 700; color: #f1ede7; }
.work--yuki .work__no { color: #f1ede7; }
/* Yuki's portrait is narrower than Kagane's key visual: match their heights */
.work-hero__img[src*="yuki/card"] { width: min(100%, 52svh, 620px); }
@media (max-width: 760px) { .work-hero__img[src*="yuki/card"] { width: 82%; } }
.work-hero__img[src*="yuki/card"] {
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 44%, #000 30%, rgba(0,0,0,.6) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 52% at 50% 44%, #000 30%, rgba(0,0,0,.6) 62%, transparent 100%);
}

/* member links */
.member__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.member__links a {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--line-strong); text-decoration: none;
  font-family: var(--f-type); font-size: 12.5px; letter-spacing: 0.08em; color: var(--text-2);
  transition: border-color 0.25s, color 0.25s;
}
.member__links a:hover { border-color: var(--accent); color: var(--accent-hi); }

/* NHK card thumbnail */
.media-card__thumb { display: block; margin: calc(clamp(24px, 3vw, 34px) * -1) calc(clamp(24px, 3vw, 34px) * -1) 4px; overflow: hidden; border-bottom: 1px solid rgba(200,132,91,0.35); }
.media-card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-card--tv:hover .media-card__thumb img { transform: scale(1.03); }

.timeline__link { text-decoration: none; }
.timeline__link:hover { color: var(--accent-hi); }
.timeline__link::after { content: " ↗"; color: var(--muted); }

.gallery--sgw { grid-template-columns: 1fr 1fr; }
.gallery--sgw > :last-child { grid-column: 1 / -1; order: -1; }
@media (min-width: 900px) { .gallery--sgw { grid-template-columns: repeat(3, 1fr); } .gallery--sgw > :last-child { grid-column: auto; order: 0; } }
@media (max-width: 899px) { .gallery--sgw > :first-child:nth-last-child(odd) { grid-column: auto; } }

/* BudouX sets overflow-wrap:anywhere inline, which collapses shrink-to-fit
   boxes (flex items, labels, buttons) to one character per line in Safari */
main, main *, footer, footer * { overflow-wrap: break-word !important; }

/* member links: always one row that wraps */
.member__links { flex-direction: row; list-style: none; padding: 0; }
.member__links li { flex: 0 0 auto; white-space: nowrap; }

/* =========================================================
   Work page hero v3: full-bleed visual, code top-left, title centred
   ========================================================= */
.work-hero--full {
  position: relative; min-height: 100svh; padding: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--bg);
}
.work-hero__bgimg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: brightness(0.5) saturate(0.85);
}
.work-hero--full::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0) 22%, rgba(10,10,11,0) 70%, var(--bg) 100%);
}
.work-hero__code {
  position: absolute; z-index: 2; top: clamp(84px, 9vw, 104px); left: var(--gutter); margin: 0;
  white-space: nowrap; font-family: var(--f-type); font-size: clamp(13px, 1.4vw, 15px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2);
}
.work-hero__code span { color: var(--accent-hi); margin: 0 0.3em; }
.work-hero__code b { font-weight: 700; color: #f1ede7; }
.work-hero__main {
  position: relative; z-index: 2; margin: 0; text-align: center;
  font-family: var(--f-type); font-weight: 700; text-transform: uppercase; color: #f1ede7;
  font-size: clamp(44px, 9vw, 116px); letter-spacing: 0.1em; line-height: 1; padding-left: 0.1em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.55);
}
.work-hero__main small {
  display: block; margin-top: 18px; font-weight: 400; font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 0.4em; color: var(--text-2);
}
/* Kagane: the key visual already carries the title */
.work-hero--kv { background: #262626; }
.work-hero__kvimg {
  position: relative; z-index: 1; display: block; width: auto; height: 100svh; max-width: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
@media (max-width: 760px) {
  .work-hero--full { min-height: 88svh; }
  .work-hero--kv { min-height: auto; padding-top: 120px; }
  .work-hero__kvimg { width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .work-hero__code { top: 80px; font-size: 12.5px; letter-spacing: 0.16em; }
}

/* next / previous work with a small face */
.next-work { grid-template-columns: auto 1fr auto; }
.next-work__thumb { width: clamp(64px, 8vw, 96px); aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line-strong); }
.next-work__thumb img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; opacity: 0.8; transition: opacity 0.3s, transform 0.6s var(--ease); }
.next-work:hover .next-work__thumb img { opacity: 1; transform: scale(1.05); }
.work-hero--kv { background: #1e1e1e; }
.work-hero--kv::after { background: linear-gradient(180deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0) 14%, rgba(10,10,11,0) 80%, var(--bg) 100%); z-index: 2; }
.work-hero__kvimg {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.work-hero__code { z-index: 3; }
@media (max-width: 760px) {
  .work-hero__kvimg { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
}
@media (min-width: 761px) {
  .work-hero--kv { align-items: flex-end; padding-top: 140px; }
  .work-hero__kvimg { height: calc(100svh - 140px); }
}
@media (min-width: 761px) {
  .work-hero--kv { display: block; text-align: center; }
  .work-hero--kv .work-hero__kvimg { display: inline-block; vertical-align: bottom; }
}

/* artist's message */
.message p { color: var(--text-2); }
.message__sign { margin-top: 32px; text-align: right; font-family: var(--f-head); font-size: 15px; letter-spacing: 0.08em; color: var(--text-2); }
html[lang="en"] .message__sign { font-family: var(--f-logo); font-style: italic; font-size: 17px; letter-spacing: 0.02em; }

/* Yuki: emotion wheel and mood grid */
.emotion-wheel { max-width: 440px; margin-inline: auto; display: block; }
.emotion-wheel text { font-size: 13px; }
.mood { margin: 0; }
.mood__row { display: flex; align-items: center; gap: 10px; }
.mood__axis { margin: 8px 0; text-align: center; font-family: var(--f-head); font-size: 14px; letter-spacing: 0.12em; color: var(--text-2); }
.mood__axis--side { flex: none; writing-mode: vertical-rl; margin: 0; letter-spacing: 0.3em; }
html[lang="en"] .mood__axis--side { letter-spacing: 0.08em; }
.mood-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mood-grid__cell {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 92px; padding: 10px 6px;
  font-size: 13px; line-height: 1.6; color: var(--text);
  background: color-mix(in srgb, var(--c, #555) 22%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--c, #555) 55%, transparent);
}
.mood-grid__cell--center { background: var(--bg-3); border: 1px solid var(--accent); color: var(--accent-hi); }
.mood figcaption { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) { .mood-grid__cell { font-size: 12px; min-height: 84px; padding: 8px 4px; } .mood-grid__cell br { display: none; } }

/* Yuki: AI contrast */
.contrast { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .contrast { grid-template-columns: 1fr auto 1fr; } }
.contrast__side { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-strong); background: var(--bg-2); }
.contrast__side--yuki { border-color: rgba(159, 219, 228, 0.45); background: linear-gradient(150deg, rgba(159,219,228,0.1), var(--bg-2) 70%); }
.contrast__label { font-family: var(--f-type); font-size: 13px; letter-spacing: 0.18em; color: var(--muted); margin: 0; }
.contrast__side--yuki .contrast__label { color: var(--accent-hi); }
.contrast__what { font-family: var(--f-head); font-size: 20px; letter-spacing: 0.08em; margin: 6px 0 18px; }
html[lang="en"] .contrast__what { font-family: var(--f-logo); font-size: 24px; letter-spacing: 0.01em; }
.contrast ul { display: grid; gap: 10px; }
.contrast li { padding-left: 1.2em; position: relative; color: var(--text-2); font-size: 14.5px; }
.contrast li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 1px; background: currentColor; }
.contrast__side--yuki li { color: var(--text); }
.contrast__vs { align-self: center; justify-self: center; font-family: var(--f-logo); font-size: 36px; color: var(--muted); }
.mood, .mood__row, .mood-grid, .split > * { min-width: 0; }
.mood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mood-grid__cell { word-break: normal !important; overflow-wrap: anywhere !important; }
.mood-grid__cell, .mood-grid__cell * { word-break: normal !important; overflow-wrap: anywhere !important; }
.mood__axis--sp { display: none; }
@media (max-width: 560px) {
  .mood__axis--side { display: none; }
  .mood__axis--sp { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 13px; }
  .mood__row { gap: 0; }
}

/* home work cards: text gathered at the foot so her face stays clear */
.work__body { padding-top: 0; padding-bottom: clamp(18px, 2.4vw, 28px); transition: transform 0.6s var(--ease); }
.work__title { margin: 0 0 6px; line-height: 1.1; }
.work__desc { line-height: 1.7; margin: 0; }
.work__cv { margin-top: 8px; line-height: 1.6; }
.work__more { margin-top: 10px; }
.work::before { background: linear-gradient(180deg, rgba(10,10,11,0.1) 0%, rgba(10,10,11,0) 50%, rgba(10,10,11,0.8) 74%, rgba(10,10,11,0.96) 100%); }
@media (hover: hover) and (min-width: 761px) {
  /* "View work" stays tucked away until the card is hovered, then the text rises to make room */
  .work__more { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), margin-top 0.5s var(--ease), opacity 0.4s; }
  .work:hover .work__more, .work:focus-visible .work__more { max-height: 24px; margin-top: 12px; opacity: 1; }
}

/* first-layer sections that carry no other heading: the label reads as the title */
.sec-head__label--title, .sec-head .sec-head__label--title {
  font-family: var(--f-logo); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2;
  letter-spacing: 0.06em; text-transform: none; color: var(--text); gap: 18px; margin-bottom: 22px;
}
.sec-head__label--title::before, .sec-head__label--title::after { background: var(--accent); flex-basis: 36px; }

/* concept steps with only two items (craft side / game side) */
@media (min-width: 900px) {
  .steps--two { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .steps--two .steps__img { aspect-ratio: 3 / 2; }
}
/* statement without a picture: one readable column */
.statement-body--single { max-width: 44em; }

/* first-layer titles: their own accent, apart from white body text and orange labels */
.theme-kagane { --title-color: #8fc4b3; }  /* verdigris: the colour copper turns (how-to-play title) */
/* first-layer titles: the text takes the same colour as its rule (copper for Kagane, ice for Yuki) */
.sec-head__label--title, .sec-head .sec-head__label--title { color: var(--accent); }

/* work hero code line: tighter, reads as one unit */
.work-hero__code { letter-spacing: 0.1em; }
.work-hero__code span { margin: 0 0.12em; }
@media (max-width: 760px) { .work-hero__code { letter-spacing: 0.08em; } }

/* =========================================================
   How to play: a stand-alone page reached from the QR code by the work
   ========================================================= */
.site-header--simple .lang-toggle { margin-left: auto; }
.play-hero { position: relative; padding-top: 72px; }
.play-hero__img {
  display: block; width: min(100%, 720px); height: auto; aspect-ratio: 1200 / 986; margin: 0 auto; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
}
.play-hero__text { position: relative; margin-top: -56px; }
.wrap.wrap--play { width: min(100% - var(--gutter) * 2, 760px); }
.play-hero__work { margin: 0 0 10px; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.play-hero__work span { color: var(--accent-hi); margin: 0 0.12em; }
.play-hero__work b { color: #f1ede7; }
.play-hero__title { margin: 0; font-family: var(--f-logo); font-weight: 400; font-size: clamp(46px, 9vw, 88px); line-height: 1; letter-spacing: 0.02em; color: var(--title-color, var(--text)); }
.play-hero__name { margin: 12px 0 0; font-family: var(--f-type); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: var(--text); }
.play-hero__lead { margin-top: 24px; }

.play-steps { border-top: 1px solid var(--line); }
.play-steps > li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.play-steps h2 { margin: 0 0 10px; font-family: var(--f-head); font-weight: 500; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.6; letter-spacing: 0.06em; }
html[lang="en"] .play-steps h2 { font-family: var(--f-logo); font-size: clamp(24px, 3vw, 28px); line-height: 1.3; letter-spacing: 0.01em; }
.play-steps p { margin: 0; color: var(--text-2); }
/* the voice choice matters most: it gets a frame of its own */
.play-steps > li.play-steps__key {
  margin: 14px 0; padding: 26px clamp(18px, 3vw, 28px); border: 1px solid rgba(200, 132, 91, 0.4);
  background: linear-gradient(135deg, rgba(200, 132, 91, 0.1), rgba(200, 132, 91, 0.02));
}
.play-voice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.play-voice__side { padding: 16px 10px; text-align: center; background: var(--bg); border: 1px solid var(--line-strong); }
.play-voice__how { display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--text-2); }
.play-voice__lang { display: block; margin-top: 6px; font-family: var(--f-head); font-size: 24px; letter-spacing: 0.06em; color: var(--text); }
.play-voice__lang small { display: block; margin-top: 2px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.play-hashtag { margin: 14px 0 0 !important; font-family: var(--f-type); font-size: 20px; letter-spacing: 0.08em; color: var(--accent-hi) !important; }

.play-links { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .play-links { grid-template-columns: 1fr 1fr; } }
.play-link { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.3s; }
.play-link img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.play-link small { display: block; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.play-link > span:nth-child(2) > span { font-family: var(--f-head); font-size: 16px; letter-spacing: 0.06em; }
.play-link__arrow { font-family: var(--f-type); color: var(--muted); transition: transform 0.4s var(--ease); }
.play-link:hover { border-color: var(--accent); }
.play-link:hover .play-link__arrow { transform: translateX(4px); color: var(--accent-hi); }

/* visitor counter in the home footer (shown only once a count has loaded) */
.site-footer__end { display: grid; justify-items: end; gap: 4px; }
@media (max-width: 560px) { .site-footer__end { justify-items: start; } }
.visit-counter { display: inline-flex; align-items: baseline; gap: 12px; margin: 0; }
.visit-counter[hidden] { display: none; }
.visit-counter__label { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.visit-counter__num { font-family: var(--f-logo); font-size: 26px; letter-spacing: 0.04em; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.play-cta { margin: clamp(32px, 5vw, 48px) 0 0; }

/* how to play: a larger language switch in the page itself (synced with the header one) */
.lang-toggle--big { margin: 0 0 22px; font-size: 14px; letter-spacing: 0.06em; background: rgba(10, 10, 11, 0.6); }
.lang-toggle--big button { padding: 8px 18px; color: var(--text-2); }
.lang-toggle--big button[aria-pressed="true"] { color: var(--bg); }

/* how to play: requests before playing */
.play-please { margin-top: clamp(36px, 6vw, 56px); }
.play-please h2 { margin: 0 0 14px; font-family: var(--f-head); font-weight: 500; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.6; letter-spacing: 0.06em; }
html[lang="en"] .play-please h2 { font-family: var(--f-logo); font-size: clamp(24px, 3vw, 28px); line-height: 1.3; letter-spacing: 0.01em; }

/* how to play: share buttons */
.share { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 14px; }
.share__btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; padding: 11px 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: none; color: var(--text); text-decoration: none;
  font-family: var(--f-type); font-size: 13px; letter-spacing: 0.08em; transition: border-color 0.3s, color 0.3s;
}
.share__btn:hover, .share__btn:focus-visible { border-color: var(--accent); color: var(--accent-hi); }
.card .share__status { margin: 10px 0 0; min-height: 1.4em; font-size: 13px; color: var(--accent-hi); }
.card .share__note { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* how to play: play time under the lead, the cheek direction, tips for cold or warm cheeks */
.play-hero__time { margin: 14px 0 0; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.12em; color: var(--text-2); }
.play-voice__how b { font-weight: 500; font-size: 1.15em; color: var(--accent-hi); }
.play-tips { margin-top: 20px; padding: 18px clamp(16px, 3vw, 22px) 6px; border-left: 2px solid rgba(200, 132, 91, 0.5); background: rgba(255, 255, 255, 0.02); }
.play-tips h3 { margin: 0 0 12px; font-family: var(--f-head); font-weight: 500; font-size: 16px; letter-spacing: 0.06em; color: var(--text); }
html[lang="en"] .play-tips h3 { font-family: var(--f-logo); font-size: 20px; letter-spacing: 0.01em; }
.play-tips .bullets li { font-size: 14px; }

/* concept pictures: soft, blurred edges instead of a hard frame */
.steps__img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
/* the in-game picture is a little too vivid beside the photos */
.steps__img--dim { filter: brightness(0.78) saturate(0.9); }

/* Yuki's spec picture carries the title in the image: show it whole, without the eye-shaped fade */
.theme-yuki .eye-view__socket img { aspect-ratio: 1; -webkit-mask-image: none; mask-image: none; }

/* home: the deeper read on the project (next genre, positioning) opens from a button */
.about-more { margin: clamp(36px, 5vw, 56px) 0 0; }
.more__part { margin-top: clamp(64px, 9vw, 112px); }

/* news: one line per article (home: latest 10, news/: all) */
.news-list { border-top: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "date cat title arrow";
  align-items: baseline; gap: 6px 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color 0.25s;
}
.news-list time { grid-area: date; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.08em; color: var(--text-2); }
.news-list .news__cat { grid-area: cat; }
.news-list__title { grid-area: title; font-family: var(--f-head); font-size: 16px; letter-spacing: 0.05em; line-height: 1.7; color: var(--text); transition: color 0.25s; }
html[lang="en"] .news-list__title { font-family: var(--f-logo); font-size: 19px; letter-spacing: 0.01em; line-height: 1.4; }
.news-list__arrow { grid-area: arrow; font-family: var(--f-type); color: var(--muted); transition: transform 0.4s var(--ease), color 0.25s; }
.news-list a:hover .news-list__title { color: var(--accent-hi); }
.news-list a:hover .news-list__arrow { transform: translateX(4px); color: var(--accent-hi); }
@media (max-width: 640px) {
  .news-list a { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "date cat arrow" "title title arrow"; }
  .news-list .news__cat { justify-self: start; }
}
.news__cat { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.news-list__all { margin: 28px 0 0; text-align: right; }

/* news article: a blog-style page, text and pictures in any order */
.post { padding-block: clamp(112px, 14vw, 168px) var(--section); }
.wrap--post { width: min(100% - var(--gutter) * 2, 720px); margin-inline: auto; }
.post__back { margin: 0 0 28px; }
.post__back a { font-family: var(--f-type); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.post__back a:hover { color: var(--accent-hi); }
.post__meta { margin: 0 0 14px; display: flex; gap: 16px; align-items: baseline; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.08em; color: var(--text-2); }
.post__title { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(24px, 4vw, 34px); line-height: 1.55; letter-spacing: 0.06em; }
html[lang="en"] .post__title { font-family: var(--f-logo); font-size: clamp(32px, 5vw, 46px); line-height: 1.2; letter-spacing: 0.01em; }
.post__hero { margin: clamp(36px, 5vw, 56px) auto; width: min(100% - var(--gutter) * 2, 1040px); }
.post__hero img, .post__body figure img { display: block; width: 100%; height: auto; }
.post__body { font-size: 15.5px; }
.post__body > p { margin: 0 0 1.6em; color: var(--text); }
.post__body h2 { margin: 2.6em 0 0.9em; padding-left: 14px; border-left: 2px solid var(--accent); font-family: var(--f-head); font-weight: 500; font-size: clamp(18px, 2.4vw, 21px); line-height: 1.6; letter-spacing: 0.06em; }
html[lang="en"] .post__body h2 { font-family: var(--f-logo); font-size: 24px; line-height: 1.3; letter-spacing: 0.01em; }
.post__body figure { margin: 2.4em 0; }
.post__body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.post__body a { color: var(--accent-hi); }
.post__body .press, .post__body .facts { margin: 0 0 1.6em; }
.post__body .press { border-top: 1px solid var(--line); }
.post__body .press p { margin: -4px 0 16px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.post__links { display: grid; justify-items: start; gap: 12px; margin: 2em 0 0; }
.post__body .post__links .btn { color: var(--text); text-align: left; }
.post__body .post__links .btn:hover { color: var(--accent-hi); }
@media (max-width: 560px) { .post__links { justify-items: stretch; } }
/* interview articles: a short profile with a photo, then questions and answers */
.post-profile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: start; margin: 0 0 1.6em; }
.post-profile img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.post-profile p { margin: 0; }
.post-profile__name { font-family: var(--f-head); font-size: 21px; letter-spacing: 0.06em; color: var(--text); }
.post-profile__name small { margin-left: 12px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.post-profile__role { margin-top: 4px !important; font-size: 13px; color: var(--text-2); }
.post-profile__bio { margin-top: 12px !important; font-size: 14px; line-height: 1.9; color: var(--text-2); }
@media (max-width: 560px) { .post-profile { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; } }
.post__body .qa-q { margin: 2.6em 0 0.8em; font-family: var(--f-head); font-weight: 500; font-size: 17px; line-height: 1.7; letter-spacing: 0.04em; color: var(--text); }
html[lang="en"] .post__body .qa-q { font-family: var(--f-logo); font-size: 21px; line-height: 1.35; letter-spacing: 0.01em; }
.qa-q__no { display: block; margin-bottom: 4px; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.16em; color: var(--accent); }
/* a series name on its own line in a title: never broken, a little smaller on narrow screens */
.post-series { white-space: nowrap; font-size: min(1em, 4.9vw, 32px); }
.post__foot { margin-top: clamp(48px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 28px; justify-items: start; }
.post-nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { text-decoration: none; }
.post-nav small { display: block; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }
.post-nav__next { text-align: right; grid-column: 2; }
.post-nav > a:only-child { grid-column: 1 / -1; }
.news-page .sec-head { margin-bottom: 36px; }

/* home: organisers and grant, a band of their own before Contact */
.section--partners .partners { margin-top: 0; }

/* the reading of the project name, once, as ruby over the About heading */
ruby.reading { ruby-align: center; }
ruby.reading rt { ruby-align: center; font-family: var(--f-body); font-size: 0.3em; font-weight: 400; letter-spacing: 0.3em; color: var(--text-2); }
