:root {
  color-scheme: dark;
  --background: #0b0b0c;
  --text: #efedea;
  --muted: #98948f;
  --line: #2a2826;
  --accent: #f1d2c2;
  --soft: #b9b3ad;
  --mono: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; color: var(--text); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="ja"] { display: none; }
html[lang="en"] [data-lang="en"] { display: revert; }

.page { width: min(1360px, calc(100% - 88px)); margin: 0 auto; }
.masthead { height: 98px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.back { font-size: 11px; letter-spacing: .14em; color: var(--muted); padding: 14px 0; }
.back:hover { color: var(--text); }

/* fallback toggle (used only when the shared i18n runtime is unavailable) */
.fallback-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.fallback-toggle button { appearance: none; border: 0; background: transparent; color: rgba(255,255,255,.6); font: 500 .68rem var(--mono); letter-spacing: .12em; padding: .5rem .85rem; cursor: pointer; }
.fallback-toggle button.is-active { background: rgba(255,255,255,.14); color: #fff; }

/* intro */
.intro { padding: 74px 0 44px; max-width: 980px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); letter-spacing: .19em; font-size: 10px; margin: 0 0 28px; }
.dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: var(--accent); }
h1 { font-weight: 430; font-size: clamp(64px, 9vw, 132px); line-height: .92; letter-spacing: -.04em; margin: 0 0 34px; font-variant-numeric: tabular-nums; }
h1 span { display: block; margin-top: 18px; font-size: clamp(18px, 2vw, 28px); letter-spacing: .02em; font-weight: 400; color: var(--soft); }
.description { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.9; letter-spacing: .035em; max-width: 780px; margin: 0; }

/* hero photo */
.hero { margin: 0; border: 1px solid var(--line); background: #0e0e0f; }
.hero img, .shot img { width: 100%; height: auto; display: block; }
figcaption { padding: 17px 21px; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .09em; line-height: 1.7; }

/* festival performance */
.performance-callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 18px 21px; border: 1px solid var(--line); border-top: 0; background: #0e0e0f; }
.performance-callout h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; font-weight: 500; }
.performance-callout p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.65; }
.performance-callout .performance-location { display: flex; flex-wrap: wrap; gap: 0 14px; }
.performance-callout a { color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: .24em; }

.performance-actions { display: grid; justify-items: start; gap: 10px; }
.performance-callout a.feedback-link { display: inline-block; background: var(--accent); color: var(--background); font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 3px; }
.performance-callout a.feedback-link:hover { text-decoration: underline; }

/* blocks */
.block { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 40px; padding: 64px 0; border-top: 1px solid var(--line); }
.performance-callout + .block { border-top: 0; }
.label { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--accent); display: flex; gap: 14px; align-items: baseline; position: sticky; top: 24px; align-self: start; }
.label .num { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.body { max-width: 860px; }
.body p { margin: 0 0 18px; font-size: 14px; line-height: 2; color: #c4beb8; overflow-wrap: break-word; }
.body p:last-child { margin-bottom: 0; }
.body .lead { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.7; color: var(--text); letter-spacing: .02em; margin-bottom: 28px; }

/* title equation */
.equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin: 0 0 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--soft); }
.equation span { border: 1px solid var(--line); padding: 8px 12px; }
.equation b { color: var(--accent); font-weight: 400; font-size: 18px; }
.equation .open { border-style: dashed; color: var(--muted); }

/* methods */
.methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: m; }
.methods li { background: var(--background); padding: 28px 26px 30px; counter-increment: m; position: relative; }
.methods li::after { content: "+" counter(m); position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.m-tag { font-family: var(--mono); font-size: 9.5px !important; letter-spacing: .16em; color: var(--accent) !important; margin: 0 0 14px !important; line-height: 1.5 !important; }
.methods h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; letter-spacing: .03em; }
.methods p { font-size: 13px; line-height: 1.95; }

/* project and press resources */
.project-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.project-links a, .info-page .body a { color: var(--accent); text-decoration: underline; text-underline-offset: .24em; }
.gallery-heading { font-size: 18px; font-weight: 550; margin: 0 0 8px; scroll-margin-top: 28px; }
.gallery + .gallery-heading { margin-top: 38px; }
.body .gallery-meta { color: var(--muted); margin: 0 0 16px; }
.featured-shot { grid-column: 1 / -1; }
.info-page .intro { max-width: 860px; }
.info-page .intro h1 { font-size: clamp(48px, 7vw, 100px); }
.info-page .info-hero { max-width: 1150px; }
.info-page .body h3 { font-size: 18px; font-weight: 550; margin: 24px 0 8px; }
.info-page .body h3:first-child { margin-top: 0; }
.info-page .body ul { padding-left: 1.25rem; line-height: 1.9; }
.info-page .body p + ul { margin-top: -8px; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot { margin: 0; border: 1px solid var(--line); background: #0e0e0f; min-width: 0; }
.shot figcaption { padding: 12px 16px; }
figcaption .photo-credit { color: var(--soft); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.timeline time { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--text); }
.timeline .venue { font-size: 15px; color: var(--text); margin: 0 0 4px; line-height: 1.6; }
.timeline .note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.timeline .city { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }

/* credits */
.credit-list { margin: 0; display: grid; gap: 0; }
.credit-list > div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credit-list dt { font-size: 11px; letter-spacing: .08em; color: var(--muted); line-height: 1.8; }
.credit-list dd { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text); }

.page-footer { padding: 26px 0 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #6f6a65; font-size: 9px; letter-spacing: .16em; }

@media (min-width: 1600px) { .intro { padding-top: 88px; } }
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .label { position: static; }
  .methods { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page { width: calc(100% - 36px); }
  .masthead { height: 74px; }
  .intro { padding: 48px 0 32px; }
  .eyebrow { margin-bottom: 24px; font-size: 9px; }
  h1 { margin-bottom: 26px; }
  .description { font-size: 15px; line-height: 1.95; letter-spacing: .02em; }
  figcaption { padding: 13px 12px; gap: 10px; font-size: 11px; }
  .performance-callout { padding: 14px 12px; }
  .body p { font-size: 13px; line-height: 1.95; }
  .methods li { padding: 24px 20px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .timeline li > div { grid-column: 1 / -1; grid-row: 2; }
  .credit-list > div { grid-template-columns: 1fr; gap: 2px; }
  .page-footer { padding-bottom: 26px; font-size: 8px; }
}
