/* Gallery visual system. Loaded after the legacy component styles on every public page. */
:root {
  --sumi: #10100f;
  --sumi-2: #191917;
  --kin: #a68c58;
  --kin-2: #c9b887;
  --text-on-sumi: #eee9dd;
  --text-dim: #b1ada2;
  --gallery-line: rgba(201, 184, 135, .25);
  --gallery-width: 1280px;
  --gallery-gutter: clamp(22px, 4.8vw, 80px);
  --header-height: 88px;
  color-scheme: dark;
}
body { background: var(--sumi); font-weight: 400; line-height: 1.95; }
::selection { background: #b49c66; color: #10100f; }
:focus-visible { outline: 2px solid var(--kin-2); outline-offset: 5px; }
img { height: auto; }
h1, h2, h3 { font-weight: 400; }
button, input, select, textarea { accent-color: var(--kin); }
.site-header {
  min-height: var(--header-height); padding: 16px var(--gallery-gutter);
  gap: 24px; background: rgba(13, 13, 12, .96); border-color: var(--gallery-line);
}
.brand { flex-shrink: 0; gap: 16px; }
.logo-plate img { height: 32px; }
.brand .wordmark .ja { font-size: .87rem; letter-spacing: .16em; }
.brand .wordmark .en { margin-top: 5px; color: var(--text-dim); font-size: .55rem; letter-spacing: .32em; }
.site-nav { gap: 12px 22px; font-size: .76rem; letter-spacing: .09em; }
.site-nav a { padding-block: 6px; }
.site-nav .owners-link { border-color: var(--gallery-line) !important; color: var(--text-on-sumi) !important; font-size: .7rem; }
.site-nav .owners-link:hover { background: rgba(201,184,135,.12); }
.drop-menu-inner { background: #151513; border-color: var(--gallery-line); }
.nav-drop:focus-within .drop-menu { visibility: visible; opacity: 1; }
.language-switch { gap: 6px; border-color: var(--gallery-line); padding-left: 18px; }
.section { padding: 88px var(--gallery-gutter); scroll-margin-top: calc(var(--header-height) + 20px); }
.section-inner { max-width: var(--gallery-width); }
.section-head { gap: 22px; margin-bottom: 42px; flex-wrap: wrap; }
.section-head::before { display: none; }
.section-head::after { content: ""; height: 1px; background: var(--gallery-line); flex: 1; min-width: 30px; align-self: center; }
.section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); letter-spacing: .13em; }
.section-head .en { color: var(--kin-2); font-size: .65rem; letter-spacing: .24em; }
.cta { padding: 13px 26px; font-size: .8rem; letter-spacing: .12em; color: var(--text-on-sumi); border-color: var(--kin); }
.cta:hover, button.cta:hover { background: var(--kin-2); border-color: var(--kin-2); color: var(--sumi); }
.text-link { display: inline-flex; align-items: center; gap: 34px; padding-block: 12px; border-bottom: 1px solid var(--kin); font-size: .82rem; }
.text-link::after { content: "⟶"; color: var(--kin-2); }
.text-link:hover { color: var(--kin-2); }
.gallery-kicker { font-size: .66rem; color: var(--kin-2); letter-spacing: .3em; text-transform: uppercase; }

/* Homepage: the art is visible, with copy on the quiet left wall. */
.hero-home {
  min-height: 740px; min-height: min(900px, 94svh); margin-top: var(--header-height);
  background-image: url('/assets/hero-gallery-202609.webp'); background-position: center 46%;
}
.hero-home::before { background: linear-gradient(90deg, rgba(9,9,8,.24), transparent 62%), linear-gradient(0deg, rgba(10,10,9,.2), transparent 28%); }
.hero-home .hero-inner { display: block; width: 100%; max-width: calc(var(--gallery-width) + 2 * var(--gallery-gutter)); padding: 70px var(--gallery-gutter) 100px; }
.hero-home .gallery-kicker { margin-bottom: 25px; }
.hero-home .hero-title { writing-mode: horizontal-tb; font-size: clamp(2.3rem, 4.4vw, 4.5rem); line-height: 1.6; letter-spacing: .09em; font-weight: 400; }
.hero-home .hero-title-line { animation: none; }
.hero-home .hero-title-beauty::first-letter { font-size: 1em; color: inherit; font-weight: inherit; text-shadow: none; }
.hero-home .hero-side { max-width: 43%; margin-top: 20px; }
.hero-home .hero-side > .lead, .hero-home .hero-side > .cta { animation: none; }
.hero-home .hero-side p.lead { font-size: clamp(.85rem, 1.35vw, 1.12rem); margin-bottom: 35px; }
.hero-home .cta { min-width: 200px; }
.hero-home .cta::after { content: "⟶"; margin-left: 34px; color: var(--kin-2); }
.hero-home .cta:hover::after { color: var(--sumi); }
.hero-footnote { position: absolute; bottom: 24px; left: var(--gallery-gutter); color: var(--text-dim); font-size: .56rem; letter-spacing: .25em; }
.hero-image-note { position: absolute; right: var(--gallery-gutter); bottom: 24px; color: #cbc5b7; font-size: .58rem; }
html[data-language="en"] .hero-home .hero-title { max-width: 11em; font-size: clamp(2rem, 4vw, 4rem); }

/* Exhibition entries are editorial spreads, not enclosed product cards. */
.exhibits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 38px; }
.exhibit-card { padding: 24px 0 28px; border: 0; border-bottom: 1px solid var(--gallery-line); background: none; min-height: 260px; }
.exhibit-card .status { position: static; align-self: flex-start; padding: 0; color: var(--kin-2); background: none; font-size: .7rem; }
.exhibit-card .status::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; margin-right: 12px; vertical-align: middle; }
.exhibit-card .status.soon, .exhibit-card .status.closed { color: var(--text-dim); background: none; }
.exhibit-card .venue-tag { position: static; align-self: flex-start; margin-top: 8px; border: 0; padding: 0; color: var(--kin-2); font-size: .65rem; }
.exhibit-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-block: 12px 4px; }
.exhibit-card p { max-width: 48em; }
.exhibit-card .artist-en { flex-grow: 0; }
.exhibit-card .cta { padding: 8px 0; border: 0; border-bottom: 1px solid var(--kin); }
.exhibit-card .cta:hover { background: none; color: var(--kin-2); }
.exhibit-card.soon-card { border: 1px solid var(--gallery-line); padding: 35px; }
.exhibit-visual { margin: -24px 0 24px; position: relative; overflow: hidden; }
.exhibit-visual img { width: 100%; aspect-ratio: 1.9; object-fit: cover; display: block; }
.exhibit-visual figcaption { position: absolute; right: 12px; bottom: 10px; font-size: .58rem; color: #e9e2d3; background: rgba(0,0,0,.65); padding: 2px 8px; }
.list-more { text-align: right; margin-top: 30px; }

/* The same black/ivory palette carries into research, member and archive pages. */
.washi-zone { background: #181816; color: var(--text-on-sumi); border-block: 1px solid var(--gallery-line); }
.washi-zone .section-head .en { color: var(--kin-2); }
.washi-zone p { font-size: .92rem; line-height: 2.1; }
.info-table th, .info-table td { border-color: var(--gallery-line); padding-block: 18px; }
.info-table th { color: var(--kin-2); }
.cta.on-washi { color: var(--text-on-sumi); border-color: var(--kin); }
.cta.on-washi:hover { background: var(--kin-2); color: var(--sumi); }
.goods-list span { border-radius: 0; background: none; border-color: var(--gallery-line); color: var(--text-dim); }
.gallery-story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 84px); align-items: center; }
.gallery-story-image img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.gallery-story h2 { font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.6; letter-spacing: .13em; margin: 16px 0 24px; }
.gallery-story p:not(.gallery-kicker) { color: var(--text-dim); font-size: .92rem; margin-bottom: 20px; }
.gallery-story .actions { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.artist-chip { border: 0; border-bottom: 1px solid var(--gallery-line); padding: 24px 30px 24px 0; background: none; min-width: 240px; }
.artist-chip.soon { border-style: solid; }
.artist-face { border-color: var(--gallery-line); }
.artist-face.large { width: 160px; height: 190px; }
.profile-side { text-align: left; }
.profile-name { font-size: 1.4rem; }
.artist-profile { padding: 50px 0; gap: 64px; border-color: var(--gallery-line); }
.page-hero {
  min-height: 430px; padding: 170px max(var(--gallery-gutter), calc((100vw - var(--gallery-width)) / 2)) 65px;
  align-items: flex-start; text-align: left; border-color: var(--gallery-line);
  background-image: linear-gradient(90deg, rgba(10,10,9,.87), rgba(10,10,9,.22)), linear-gradient(0deg, #10100f, transparent 65%), var(--page-hero-image);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: .13em; }
.page-hero .en-label { margin-bottom: 15px; letter-spacing: .25em; }
.page-hero .page-lead { max-width: 48em; color: var(--text-dim); }
.research-leader { background: var(--sumi); padding: 52px var(--gallery-gutter) 70px; }
.research-leader-inner { border: 0; background: none; max-width: 1100px; padding: 0; }
.research-leader-inner::after { display: none; }
.research-leader-portrait { border-color: var(--gallery-line); }
.exhibit-card.path-card { padding: 30px; }
.path-card.chosen { background: #22221c; border: 1px solid var(--gallery-line); }
.why-sub { color: var(--kin-2); }
.why-sub::after { background: var(--gallery-line); }
.video-caption { color: var(--text-dim); }
.gamut-verification { background: #1c1c19; border-color: var(--gallery-line); }
.member-card, .washi-zone .member-card { background: #1c1c19; border-color: var(--gallery-line); }
.member-card:hover, .washi-zone .member-card:hover { background: #23231f; border-color: var(--kin); }
.washi-zone .member-card.lead { border-color: var(--kin); }
.washi-zone .member-name { color: var(--text-on-sumi); }
.washi-zone .member-role, .team-more { color: var(--kin-2); }
.washi-zone .member-role::before { background: var(--kin); }
.washi-zone .member-name.unnamed, .washi-zone .member-note { color: var(--text-dim); }
.flow-list li::before { color: var(--kin-2); border-color: var(--kin); }
.flow-list li:not(:last-child)::after { background: var(--gallery-line); }
.filter-controls input, .filter-controls select, .login-field, #monyo-search, #monyo-cat {
  color: var(--text-on-sumi); background: var(--sumi-2); border-color: var(--gallery-line); border-radius: 0;
}
input::placeholder { color: #99968c; opacity: 1; }
.chip, .page-btn { border-radius: 0; color: var(--text-on-sumi); border-color: var(--gallery-line); }
.chip.active, .chip:hover, .page-btn:hover, .page-btn[aria-current="page"] { background: var(--kin-2); border-color: var(--kin-2); color: var(--sumi); }
.monyo-card, .wish-pattern-card, .wish-results, .monyo-modal-panel { background: var(--sumi-2); color: var(--text-on-sumi); border-color: var(--gallery-line); }
.m-read, .wish-pattern-read, .wish-results .wish-result-kicker, .monyo-modal-links a, #no-hit { color: var(--kin-2); }
.m-mean, .m-cat, .monyo-note, .monyo-count, .page-ellipsis, .wish-pattern-mean, .wish-results-head > div > p:last-child, .wish-result-count, .monyo-modal-meta, .monyo-modal-tags { color: var(--text-dim); }
.m-cat, .wish-result-count { border-radius: 0; border-color: var(--gallery-line); }
.wish-view-all { color: var(--kin-2); border-color: var(--kin); }
.wish-view-all:hover { background: var(--kin-2); color: var(--sumi); }
.wish-filter-notice { color: var(--kin-2); background: rgba(201,184,135,.07); border-color: var(--kin); }
.monyo-modal-close { background: #181816; color: var(--text-on-sumi); border-color: var(--kin); }
.page-btn:disabled:hover { color: var(--text-dim); border-color: var(--gallery-line); }
.site-footer { padding: 58px var(--gallery-gutter) 28px; text-align: left; background: #0c0c0b; border-color: var(--gallery-line); }
.footer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; max-width: var(--gallery-width); margin: 0 auto 32px; align-items: center; }
.site-footer .logo-plate { margin-bottom: 0; }
.footer-sibling { font-size: .78rem; color: var(--text-dim); border-left: 1px solid var(--gallery-line); padding: 12px 0 12px 30px; }
.footer-sibling:hover { color: var(--kin-2); }
.site-footer .links { max-width: var(--gallery-width); margin: 0 auto 25px; justify-content: flex-start; gap: 12px 28px; font-size: .7rem; }
.site-footer > small { display: block; max-width: var(--gallery-width); margin: 0 auto; font-size: .6rem; color: var(--text-dim); }

@media (min-width: 1201px) {
  .site-header:has(.member-nav) { flex-wrap: wrap; }
  .site-nav.member-nav { margin-left: auto; }
}
@media (max-width: 1200px) {
  :root { --header-height: 78px; }
  .nav-toggle { display: block; flex: none; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 24px var(--gallery-gutter) 36px; background: #111110; flex-direction: column; align-items: stretch; gap: 0; visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav > a, .site-nav > a[href="/"] { display: block; padding: 13px 0; font-size: .95rem; border: 0; }
  .site-nav .nav-drop { position: static; }
  .site-nav .nav-drop-btn { pointer-events: none; display: block; padding: 22px 0 6px; color: var(--text-dim); font-size: .7rem; border: 0; }
  .nav-drop-btn::after { display: none; }
  .drop-menu { position: static; transform: none; visibility: visible; opacity: 1; padding: 0; }
  .drop-menu-inner { padding: 0; border: 0; background: none; gap: 0; }
  .drop-menu a { padding: 12px 0 12px 18px; font-size: .9rem; }
  .site-nav .owners-link { margin: 20px 0 0; padding: 15px 0; height: auto; border: 0 !important; justify-content: flex-start; font-size: .9rem; }
  .site-nav > a.current::before, .drop-menu a.current::before { display: none; }
  .site-nav .language-switch { margin: 20px 0 0; padding: 0; border: 0; gap: 20px; }
  .site-nav .owner-name { margin: 18px 0 0; }
  .site-nav .logout-form { display: block; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 760px) {
  :root { --header-height: 76px; }
  .site-header { padding: 13px 22px; }
  .brand { gap: 10px; flex-wrap: nowrap; }
  .brand .wordmark { display: flex; }
  .brand .wordmark .ja { font-size: .74rem; letter-spacing: .08em; white-space: normal; }
  .brand .wordmark .en { font-size: .48rem; letter-spacing: .2em; }
  .logo-plate img { height: 27px; }
  .hero-home { min-height: 790px; min-height: min(880px, 110svh); align-items: flex-end; background-position: 78% top; background-size: auto 66%; background-repeat: no-repeat; background-color: #10100f; }
  .hero-home::before { background: linear-gradient(0deg, #10100f 0%, #10100f 27%, rgba(16,16,15,.92) 36%, transparent 65%); }
  .hero-home .hero-inner { padding: 340px 22px 76px; text-align: left; }
  .hero-home .gallery-kicker { margin-bottom: 17px; font-size: .57rem; }
  .hero-home .hero-title { max-height: none; font-size: clamp(1.85rem, 7.2vw, 3.1rem); line-height: 1.6; }
  .hero-home .hero-side { max-width: 100%; margin-top: 17px; }
  .hero-home .hero-side p.lead { margin-bottom: 24px; font-size: .87rem; }
  .hero-footnote { bottom: 19px; font-size: .48rem; }
  .hero-image-note { bottom: auto; top: 18px; font-size: .5rem; }
  html[data-language="en"] .hero-home .hero-title { font-size: 2.1rem; }
  .section { padding: 58px 22px; }
  .section-head { gap: 10px 18px; margin-bottom: 30px; }
  .section-head h2 { font-size: 1.55rem; }
  .section-head .en { font-size: .55rem; }
  .exhibits { grid-template-columns: 1fr; gap: 28px; }
  .exhibit-card { min-height: 0; }
  .two-col, .gallery-story { grid-template-columns: 1fr; gap: 34px; }
  .gallery-story-image img { aspect-ratio: 1.5; }
  .artist-profile { grid-template-columns: 1fr; gap: 32px; }
  .profile-side { flex-wrap: wrap; }
  .artist-face.large { width: 110px; height: 140px; margin-bottom: 0; }
  .page-hero { min-height: 355px; padding: 140px 22px 45px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6.3vw, 2.5rem); overflow-wrap: anywhere; }
  .page-hero .page-lead { font-size: .82rem; }
  .research-leader { padding: 32px 22px 48px; }
  .research-leader-inner { padding: 0; }
  .info-table { font-size: .78rem; }
  .info-table th { padding-right: 14px; }
  .site-footer { padding: 40px 22px 24px; }
  .footer-sibling { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--gallery-line); width: 100%; }
  .site-footer .links { gap: 12px 20px; }
  .owner-page-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
