/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #111111;
  --text: #eeeeee;
  --text-muted: #777777;
  --header-h: 64px;
  --key-color: #eeeeee;
  --ease: 0.3s ease;
  --max-w: 1440px;
}

body {
  visibility: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.lang-jp {
  font-family: 'Noto Sans JP', sans-serif;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.display-none {
  display: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  color: var(--text);
  transition: background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: var(--bg);
  border-bottom-color: rgba(238, 238, 238, 0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.9;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.lang-btn {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.3rem 0;
  transition: color var(--ease);
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--text);
}

.lang-sep {
  color: rgba(238, 238, 238, 0.2);
  font-size: 0.6rem;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  padding: 2px 0;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background-color: var(--text);
  width: 100%;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ============================================================
   NAV OVERLAY
   ============================================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background-color: rgba(10, 10, 10, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-close {
  position: absolute;
  top: calc(var(--header-h) / 2);
  right: 2.5rem;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--ease);
}

.nav-close:hover {
  color: var(--text);
}

.nav-list {
  text-align: center;
}

.nav-list li + li {
  margin-top: 0.5rem;
}

.nav-list a {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(238, 238, 238, 0.5);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--text);
}


/* ============================================================
   MAIN & FOOTER
   ============================================================ */

main {
  flex: 1;
}

.site-footer {
  padding: 1.75rem 2.5rem;
  border-top: 1px solid rgba(238, 238, 238, 0.08);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.copyright {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sitemap-links {
  display: flex;
  gap: 1.5rem;
}

.sitemap-links a {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color var(--ease);
}

.sitemap-links a:hover {
  color: var(--text);
}


/* ============================================================
   INDEX PAGE — PROJECT LIST
   ============================================================ */

.project-list {
  padding-top: var(--header-h);
}

.project-item {
  position: relative;
  border-bottom: 1px solid rgba(238, 238, 238, 0.06);
  overflow: hidden;
}

.project-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
  min-height: 85vh;
  align-items: stretch;
}

.project-item:nth-child(even) .project-link {
  grid-template-areas: 'info image';
}

.project-item:nth-child(even) .project-img-wrap {
  grid-area: image;
}

.project-item:nth-child(even) .project-info {
  grid-area: info;
}

/* Image */
.project-img-wrap {
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-img-wrap img {
  transform: scale(1.04);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
}

/* Key-color accent line */
.project-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--key-color);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:nth-child(even)::after {
  left: auto;
  right: 0;
}

.project-item:hover::after {
  opacity: 1;
}

/* Info */
.project-info {
  padding: 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.project-type {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--key-color);
  opacity: 0.7;
}

.project-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--key-color);
}

.project-dates {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(238, 238, 238, 0.6);
  max-width: 440px;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--key-color);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 0.5rem;
}

.project-cta::after {
  content: '→';
  transition: transform 0.3s ease;
}

.project-item:hover .project-cta {
  opacity: 1;
  transform: translateX(0);
}

.project-item:hover .project-cta::after {
  transform: translateX(4px);
}


/* ============================================================
   PROJECT TOP PAGE
   ============================================================ */

/* Fade-in targets */
.fade-in-target {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-target.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.project-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #0d0d0d;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2a2a2a;
}

.project-hero-meta {
  position: absolute;
  bottom: 3.5rem;
  left: 2.5rem;
  right: 2.5rem;
}

.project-hero-title {
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.project-hero-dates {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Sub-nav */
.project-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid rgba(238, 238, 238, 0.08);
  padding: 0 2.5rem;
}

.project-subnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.project-subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  padding: 1rem 1.5rem 1rem 0;
  margin-right: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  transition: color var(--ease);
}

.subnav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 1rem;
  height: 1px;
  background-color: var(--key-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.subnav-link.active {
  color: var(--text);
}

.subnav-link.active::after {
  transform: scaleX(1);
}

.subnav-link:hover {
  color: var(--text);
}

/* Overview content */
.project-content {
  padding: 5rem 2.5rem;
}

.project-content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.overview-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 6rem;
  align-items: start;
}

.overview-text {
  font-size: 1rem;
  line-height: 2;
  color: rgba(238, 238, 238, 0.75);
  white-space: pre-line;
}

.overview-meta {
  border-left: 1px solid var(--key-color);
  padding-left: 2rem;
}

.overview-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.overview-dates {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(238, 238, 238, 0.6);
  white-space: pre-line;
}

/* YouTube embed */
.video-embed {
  margin-top: 4rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed:empty {
  display: none;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================================
   ARTISTS PAGE  (light-page variant)
   ============================================================ */

.light-page {
  --bg: #e4e4e4;
  --text: #111111;
  --text-muted: #555555;
  background-color: var(--bg);
  color: var(--text);
}

.light-page .site-header {
  --text: #eeeeee;
  --text-muted: #777777;
  background-color: #111 !important;
  border-bottom-color: rgba(238, 238, 238, 0.08) !important;
}

.light-page .site-footer {
  --text: #eeeeee;
  --text-muted: #777777;
  background-color: #111;
  color: var(--text);
  border-top-color: rgba(238, 238, 238, 0.08);
}

.light-page .sitemap-links a:hover {
  color: #eeeeee;
}

.light-page .project-subnav {
  background-color: #111;
  border-bottom-color: rgba(238, 238, 238, 0.08);
}

.light-page .subnav-link {
  color: #555;
}

.light-page .subnav-link.active {
  color: #eeeeee;
}

.light-page .subnav-link:hover {
  color: #eeeeee;
}

/* Artists grid */
.artists-section {
  padding: 4rem 2.5rem 6rem;
}

.artists-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3.5rem 3rem;
}

.artist-card {
  /* no decoration needed */
}

.artists-coming-soon {
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4rem 0;
  text-align: center;
}

.artist-img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: #c8c8c8;
}

.artist-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #c8c8c8;
}

.artist-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.artist-bio {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-muted);
  white-space: pre-line;
}


/* ============================================================
   OPEN CALL PAGE  (light-page variant)
   ============================================================ */

.opencall-section {
  padding: 5rem 2.5rem 7rem;
}

.opencall-section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.opencall-section h2, 
.opencall-section h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.opencall-section h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-bottom: 1rem;
}

.opencall-section h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--text-muted);
  vertical-align: middle;
  transform: translateY(-2px);
  margin-right: 0.5rem;
}
.opencall-section p, .opencall-section li {
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.opencall-section li {
  margin: 0 0 0 1.5rem;
  position: relative;
  list-style: disc;
}

.opencall-section a {
  color: var(--text);
  text-decoration: underline;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes heroReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.project-hero {
  animation: heroReveal 1.2s ease forwards;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .overview-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .overview-meta {
    border-left: none;
    border-top: 1px solid var(--key-color);
    padding-left: 0;
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .project-hero {
    height: 100vw;
  }

  .site-header {
    padding: 0 1.25rem;
  }

  .nav-close {
    right: 1.25rem;
    top: calc(var(--header-h) / 2);
  }

  /* Index: stack on mobile */
  .project-link {
    grid-template-columns: 1fr;
    grid-template-areas: none !important;
    min-height: auto;
  }

  .project-item:nth-child(even) .project-img-wrap,
  .project-item:nth-child(even) .project-info {
    grid-area: unset;
  }

  .img-placeholder {
    min-height: 60vw;
  }

  .project-info {
    padding: 2.5rem 1.25rem;
    gap: 1rem;
  }

  .project-desc {
    max-width: none;
  }

  /* Project hero */
  .project-hero-meta {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 2.5rem;
  }

  /* Sub-nav */
  .project-subnav {
    padding: 0 1.25rem;
  }

  /* Content */
  .project-content {
    padding: 3rem 1.25rem;
  }

  /* Artists */
  .artists-section {
    padding: 3rem 1.25rem 5rem;
  }

  .artists-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem 1.5rem;
  }

  /* Open call */
  .opencall-section {
    padding: 3rem 1.25rem 5rem;
  }

  /* Footer */
  .site-footer {
    padding: 1.5rem 1.25rem;
  }

  .footer-inner {
    align-items: flex-end;
    gap: 0.75rem 1rem;
  }

  .copyright {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .artists-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
}
