:root {
  --bg: oklch(0.975 0.004 85);
  --bg-alt: oklch(0.945 0.006 85);
  --ink: oklch(0.22 0.01 260);
  --ink-muted: oklch(0.52 0.01 260);
  --accent: oklch(0.55 0.19 30);
  --line: oklch(0.86 0.005 85);
  --frame: oklch(0.3 0.01 260);
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", "Zen Kaku Gothic New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* progress hairline */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 120;
}

/* header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: oklch(0.975 0.004 85 / 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 19px; }
.brand-sub { font-size: 10px; color: var(--ink-muted); }
.nav { display: flex; gap: 26px; font-size: 12px; }
.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav a:hover { color: var(--accent); border-color: var(--accent); }

/* section basics */
.sec { padding: 96px 0; }
.sec-head { margin-bottom: 48px; max-width: 680px; }
.sec-lead { font-size: 14px; color: var(--ink-muted); margin: 14px 0 0; }
.kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 18px;
}
h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 30px;
  font-feature-settings: "palt";
}
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  margin: 0;
  font-feature-settings: "palt";
}

/* hero */
.hero { position: relative; padding: 128px 0 120px; overflow: hidden; }
.hero-art {
  position: absolute;
  top: 32px;
  right: -90px;
  width: min(54vw, 680px);
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent);
  mask-image: linear-gradient(to left, black 55%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-lead { max-width: 680px; font-size: 16px; margin: 0 0 18px; }
.hero-sub { max-width: 680px; font-size: 13px; color: var(--ink-muted); margin: 0; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  margin: 48px 0 0;
}
.hero-stats > div {
  padding: 4px 36px 4px 0;
  margin: 0 36px 12px 0;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: none; }
.hero-stats dt { font-size: 11px; color: var(--ink-muted); margin: 0 0 2px; }
.hero-stats dd { margin: 0; }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.unit { font-size: 12px; color: var(--ink-muted); margin-left: 6px; }
.hero-cap { font-size: 10px; color: var(--ink-muted); margin: 40px 0 0; }

/* timeline */
.sec--timeline {
  padding: 88px 0;
  background-image: radial-gradient(oklch(0.22 0.01 260 / 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.tl {
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.tl::-webkit-scrollbar { height: 6px; }
.tl::-webkit-scrollbar-track { background: transparent; }
.tl::-webkit-scrollbar-thumb { background: var(--line); }
.tl-track {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  min-width: max-content;
  list-style: none;
  margin: 0;
  padding: 64px 40px 8px;
}
.tl-year { border-left: 1px solid var(--frame); padding-left: 20px; min-width: 150px; }
.tl-y {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 18px;
}
.tl-y::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}
.tl-items { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.tl-item { position: relative; width: 116px; }
.tl-item img {
  width: 116px;
  height: 66px;
  object-fit: cover;
  border: 1px solid var(--frame);
  background: #fff;
  padding: 3px;
}
.tl-name { font-size: 11px; line-height: 1.55; margin: 8px 0 0; color: var(--ink-muted); }
.tl-item--text {
  width: auto;
  max-width: 190px;
  border: 1px dashed var(--line);
  background: #fff;
  padding: 10px 12px;
}
.tl-item--text .tl-name { margin: 0; }
.tl-item[data-tip]:hover::after,
.tl-item[data-tip]:focus-within::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: max-content;
  max-width: 320px;
  background: var(--ink);
  color: oklch(0.975 0.004 85);
  padding: 8px 11px;
  font-size: 11px;
  line-height: 1.6;
}
.tl-none { font-size: 11px; color: var(--ink-muted); margin: 0; }

/* gallery */
.sec--gallery { position: relative; }
.sec--gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
.sec--gallery .wrap { position: relative; }

/* filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 44px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 72px;
}
.f-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.f-label { font-size: 11px; color: var(--ink-muted); margin-right: 8px; }
.f-btn {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-size: 12px;
  line-height: 1;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.f-btn:hover { border-color: var(--accent); color: var(--accent); }
.f-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-btn.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: oklch(0.975 0.004 85);
}
.f-count { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.f-num {
  font-size: 10px;
  margin-left: 7px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.f-btn.is-zero:not(.is-on) { opacity: 0.35; }

/* works grid */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  align-items: stretch;
}
.work { min-width: 0; margin-bottom: 96px; }
.work--small { display: flex; flex-direction: column; }
.work--small .w-info { display: flex; flex-direction: column; flex: 1 0 auto; }
.work--large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 64px;
  align-items: start;
  margin-bottom: 160px;
}
.work--flip .w-media { order: 2; }
.work--flip .w-info { order: 1; }
.work.is-hidden { display: none; }
.works-empty {
  border: 1px dashed var(--line);
  color: var(--ink-muted);
  font-size: 13px;
  padding: 32px 24px;
  margin: 0 0 96px;
}

/* frames */
.frame {
  background: #fff;
  border: 1px solid var(--frame);
  padding: 20px;
  margin: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.frame:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
}
.frame figcaption {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-size: 10px;
  color: var(--ink-muted);
  padding-top: 10px;
}
.strip { display: flex; gap: 16px; margin-top: 20px; }
.strip .frame { flex: 1; min-width: 0; padding: 10px; }
.frame--side { margin-top: 20px; padding: 10px; max-width: 320px; }

/* work info */
.w-info { min-width: 0; }
.work--small .w-info { margin-top: 26px; }
.cat-no { font-size: 12px; font-weight: 500; color: var(--accent); margin: 0 0 10px; }
.plate {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 22px;
  transition: border-color 0.3s;
}
.work:hover .plate { border-color: var(--accent); }
.plate-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.plate-meta {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.plate-artist { font-size: 13px; margin: 0; }
.badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  line-height: 1.6;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: 1px;
  white-space: nowrap;
}
.note-plate {
  background: #fff;
  border: 1px solid var(--accent);
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
}
.note-plate .mono {
  display: block;
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 4px;
}
.w-desc { font-size: 14px; margin: 20px 0 0; }
.w-sub {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-size: 10px;
  color: var(--accent);
  margin: 18px 0 4px;
}
.w-cast, .w-credits {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-muted);
  margin: 0;
}
.w-link { font-size: 12px; margin: 18px 0 0; word-break: break-all; line-height: 2; }
.w-link a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.w-link a:hover { color: var(--accent); border-color: var(--accent); }
.w-note {
  font-size: 10px;
  line-height: 1.8;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  margin: 24px 0 0;
  padding-top: 12px;
}
.work--small .w-info .w-note { margin-top: auto; }

/* artist wall */
.sec--artists { padding: 120px 0; background: var(--bg-alt); }
.wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}
.panel {
  grid-column: span 5;
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 36px 32px;
}
.panel--wide { grid-column: span 7; grid-row: span 2; }
.panel--strip { grid-column: 1 / -1; padding: 26px 36px; }
.panel--strip .panel-lead { margin: 0; }
.panel-no { font-size: 11px; color: var(--accent); margin: 0 0 6px; }
.panel h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.panel-lead { font-size: 13.5px; margin: 0 0 22px; }
.panel-thumbs { display: flex; flex-wrap: wrap; gap: 14px; }
.panel-thumbs .frame { padding: 8px; width: calc(50% - 7px); }
.panel--wide .panel-thumbs .frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.panel:not(.panel--wide) .panel-thumbs .frame { width: 100%; }
.panel-works { font-size: 11px; color: var(--ink-muted); margin: 20px 0 0; }

/* colophon */
.sec--colophon {
  padding: 64px 0;
  background-image: radial-gradient(oklch(0.22 0.01 260 / 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.col-note { font-size: 14px; margin: 0 0 26px; }
.col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 2.3;
  columns: 2;
  column-gap: 56px;
  word-break: break-all;
}
.col-list a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.col-list a:hover { color: var(--accent); border-color: var(--accent); }
.col-verified { font-size: 11px; color: var(--ink-muted); margin: 30px 0 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 46px; }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}
.foot-name { font-family: var(--font-serif); font-weight: 500; font-size: 15px; margin: 0; }
.foot-date { font-size: 11px; color: var(--ink-muted); margin: 0; }

/* reveal animations */
[data-io] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-io].in { opacity: 1; transform: none; }
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
body.boot .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-io], .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .frame, .frame:hover { transform: none; transition: none; }
  .nav a, .f-btn, .plate, .w-link a, .col-list a { transition: none; }
  .site-head { transition: none; }
}

/* responsive */
@media (max-width: 1024px) {
  .hero-art { right: -160px; opacity: 0.35; }
  .work--large { gap: 28px 40px; }
  .wall { grid-template-columns: 1fr; }
  .panel, .panel--wide, .panel--strip { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 767px) {
  .wrap { padding: 0 24px; }
  .sec { padding: 64px 0; }
  .hero { padding: 88px 0 72px; }
  .sec--artists { padding: 80px 0; }
  .sec--colophon { padding: 56px 0; }
  .head-in { flex-wrap: wrap; gap: 8px 20px; }
  .site-head { transition: transform 0.35s var(--ease); }
  .site-head.is-condensed { transform: translateY(calc(-1 * var(--head-shift, 46px))); }
  .nav { gap: 18px; overflow-x: auto; }
  .hero-art { top: auto; bottom: -40px; right: -140px; width: 90vw; }
  .hero-stats > div { padding-right: 20px; margin-right: 20px; }
  .works { grid-template-columns: 1fr; column-gap: 0; }
  .work { margin-bottom: 72px; }
  .work--small .w-info .w-note { margin-top: 24px; }
  .work--large { grid-template-columns: 1fr; margin-bottom: 96px; }
  .work--flip .w-media { order: 0; }
  .work--flip .w-info { order: 0; }
  .frame { padding: 12px; }
  .strip { gap: 10px; }
  .strip .frame, .frame--side { padding: 8px; }
  .panel { padding: 26px 24px; }
  .panel--strip { padding: 22px 24px; }
  .f-count { margin-left: 0; width: 100%; }
  .col-list { columns: 1; }
  .tl-track { padding: 60px 24px 8px; gap: 36px; }
}
