/* ============================================================
   NOJIMA JIRO — dark museum
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-soft: #121215;
  --bg-card: #16161a;
  --line: #26262c;
  --text: #e9e6df;
  --text-dim: #a9a49a;
  --text-faint: #6f6b64;
  --gold: #c3a36a;
  --gold-soft: rgba(195, 163, 106, 0.35);
  --serif-en: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --serif-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Avenir Next", "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-en), var(--serif-ja);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[data-lang="ja"] body { font-family: var(--serif-ja); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* language visibility */
html[data-lang="en"] .ja { display: none !important; }
html[data-lang="ja"] .en { display: none !important; }

::selection { background: var(--gold-soft); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4vw;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.site-header.scrolled {
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.7rem 4vw;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand .brand-ja { font-family: var(--serif-ja); font-size: 1.05rem; letter-spacing: 0.45em; color: var(--text); }
.brand .brand-en { font-family: var(--serif-en); font-size: 0.68rem; letter-spacing: 0.38em; color: var(--text-dim); text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav a {
  font-family: var(--serif-en); font-size: 0.82rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-dim);
  transition: color .25s;
  position: relative; padding: 0.2rem 0;
}
html[data-lang="ja"] .site-nav a { font-family: var(--serif-ja); letter-spacing: 0.28em; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.lang-toggle {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em;
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--text-dim); background: transparent; cursor: pointer;
  padding: 0.35rem 0.8rem; transition: color .25s, border-color .25s;
}
.lang-toggle:hover { color: var(--gold); border-color: var(--gold-soft); }

/* mobile nav */
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-burger span { display: block; width: 22px; height: 1px; background: var(--text); margin: 5px 0; transition: .3s; }

@media (max-width: 760px) {
  .nav-burger { display: block; z-index: 130; }
  .site-nav {
    position: fixed; inset: 0; background: rgba(11,11,13,0.97);
    flex-direction: column; justify-content: center; gap: 2.6rem;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 1rem; }
  body.nav-locked { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: brightness(0.62) saturate(0.9);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(11,11,13,0.55) 78%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(11,11,13,0.35), transparent 30%, transparent 62%, var(--bg) 98%);
}
.hero-inner { text-align: center; padding: 0 6vw; }
.hero-kicker {
  font-size: 0.8rem; letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.hero-name-ja {
  font-family: var(--serif-ja); font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.2rem);
  letter-spacing: 0.28em; text-indent: 0.28em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}
.hero-name-en {
  font-family: var(--serif-en); font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  letter-spacing: 0.62em; text-indent: 0.62em; text-transform: uppercase;
  color: var(--text); opacity: 0.92; margin-top: 1.1rem;
}
.hero-sub {
  margin-top: 1.7rem; color: var(--text-dim);
  font-size: clamp(0.85rem, 1.6vw, 1rem); letter-spacing: 0.12em;
}
.hero-scroll {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  color: var(--text-faint); font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 52px;
  margin: 0.8rem auto 0; background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .25 } 50% { opacity: 1 } }

/* ---------- shared section layout ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 6vw; max-width: 1280px; margin: 0 auto; }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section-kicker {
  color: var(--gold); font-size: 0.72rem; letter-spacing: 0.5em;
  text-transform: uppercase; margin-bottom: 0.9rem;
}
.section-title {
  font-weight: 500; font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  letter-spacing: 0.06em; line-height: 1.3;
}
html[data-lang="ja"] .section-title { letter-spacing: 0.14em; }
.section-lede { color: var(--text-dim); max-width: 62ch; margin-top: 1.2rem; font-size: 1.02rem; }

.rule { border: none; border-top: 1px solid var(--line); max-width: 1280px; margin: 0 auto; }

/* ---------- statement ---------- */
.statement {
  text-align: center; max-width: 780px;
}
.statement p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 2.1;
  color: var(--text); font-weight: 400;
}
.statement .ja p { letter-spacing: 0.1em; }

/* ---------- collection tiles (home) ---------- */
.collections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 760px) { .collections { grid-template-columns: 1fr; } }
.collection-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--bg-card);
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.8); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s;
}
.collection-card:hover img { transform: scale(1.05); filter: brightness(0.95); }
.collection-card .card-label {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.6rem 1.3rem;
  background: linear-gradient(transparent, rgba(5,5,7,0.88));
}
.card-label .card-title { font-size: 1.25rem; letter-spacing: 0.1em; font-weight: 500; }
.card-label .card-count { color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 0.3rem; }

/* ---------- works gallery ---------- */
.works-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.work {
  cursor: pointer; background: transparent; border: none; text-align: left;
  color: inherit; font: inherit; padding: 0;
}
.work .work-frame {
  overflow: hidden; background: var(--bg-card); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.work img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s;
  filter: brightness(0.92);
}
.work:hover img { transform: scale(1.04); filter: brightness(1.02); }
.work figcaption { padding: 0.9rem 0.2rem 0; }
.work .work-title { font-size: 1rem; letter-spacing: 0.06em; }
.work .work-meta { color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.08em; margin-top: 0.15rem; font-family: var(--sans); }

/* pencil drawings look better on light tiles */
.works-grid.paper .work-frame { background: #1c1c20; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(5, 5, 7, 0.96);
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 72vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-caption { text-align: center; margin-top: 1.4rem; padding: 0 6vw; }
.lightbox-title { font-size: 1.15rem; letter-spacing: 0.08em; }
.lightbox-meta { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; font-family: var(--sans); letter-spacing: 0.05em; }
.lightbox-buy {
  display: inline-block; margin-top: 1.1rem;
  border: 1px solid var(--gold-soft); color: var(--gold);
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 0.65rem 1.6rem; transition: background .3s, color .3s;
}
.lightbox-buy:hover { background: var(--gold); color: #0b0b0d; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 1.6rem; padding: 1rem; transition: color .25s;
  font-family: var(--serif-en);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--text); }
.lightbox-close { top: 1rem; right: 1.4rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-dim); margin-bottom: 1.3rem; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-figure img { filter: brightness(0.85); }
.about-figure figcaption { color: var(--text-faint); font-size: 0.78rem; margin-top: 0.7rem; letter-spacing: 0.06em; font-family: var(--sans); }

.timeline { list-style: none; margin-top: 1rem; }
.timeline li {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 1.4rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.timeline .year { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; }
.timeline .event { color: var(--text-dim); font-size: 0.95rem; }
.timeline .event em { color: var(--text); font-style: normal; }

/* ---------- photo strip ---------- */
.photo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  margin-top: 2.2rem;
}
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr; } }
.photo-strip img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: brightness(0.9); transition: filter .4s;
}
.photo-strip img:hover { filter: brightness(1.02); }

/* ---------- contact ---------- */
.contact-wrap { text-align: center; max-width: 720px; }
.contact-email {
  display: inline-block; margin-top: 1.8rem;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem); letter-spacing: 0.06em;
  color: var(--text); border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.3rem; transition: color .3s, border-color .3s;
}
.contact-email:hover { color: var(--gold); border-color: var(--gold); }
.contact-note { color: var(--text-faint); font-size: 0.85rem; margin-top: 2rem; font-family: var(--sans); }

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.link-card {
  border: 1px solid var(--line); padding: 1.8rem 1.6rem; text-align: left;
  transition: border-color .3s, transform .3s; background: var(--bg-soft);
}
.link-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.link-card .lc-kicker { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase; }
.link-card .lc-title { font-size: 1.1rem; margin-top: 0.6rem; letter-spacing: 0.04em; }
.link-card .lc-sub { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.4rem; }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  position: relative; min-height: 46svh; display: flex; align-items: flex-end;
  isolation: isolate; overflow: hidden; padding: 0 6vw 3rem;
}
.page-hero .hero-bg { filter: brightness(0.5); animation: none; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(11,11,13,0.5), transparent 45%, var(--bg));
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; width: 100%; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 4rem;
  padding: 3rem 6vw 2.6rem; text-align: center;
}
.footer-name { font-family: var(--serif-ja); letter-spacing: 0.4em; text-indent: 0.4em; font-size: 1rem; }
.footer-links { margin-top: 1.2rem; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-faint); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--text-faint); font-size: 0.72rem; margin-top: 1.6rem; font-family: var(--sans); letter-spacing: 0.08em; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}
