/* =============================================
   Susumu Matahira - Biography HP
   Inspired by kurigami.net
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  color: #fff;
  background: #0a0a0f;
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

/* =============================================
   Navigation
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 20px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 150, 100, 0.15);
  transition: background 0.4s;
}

.site-nav a {
  display: block;
  padding: 18px 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s, border-bottom-color 0.3s;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: #d4b896;
  border-bottom-color: #d4b896;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0a0a0f;
  overflow: hidden;
}

.hero-tile-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-rows: 140px;
  gap: 4px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .hero-tile-bg {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    grid-auto-rows: 80px;
    gap: 3px;
  }
}

.hero-tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: grayscale(10%) brightness(1);
  opacity: 0.95;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.7) 40%, rgba(10, 10, 15, 0.15) 75%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.5em;
  color: #fff;
  margin-bottom: 35px;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #fff;
  line-height: 1.2;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.35em;
  color: rgba(212, 184, 150, 0.7);
  margin-top: 25px;
  text-transform: uppercase;
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: #fff;
  margin-top: 22px;
  letter-spacing: 0.25em;
}

.hero-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(212, 184, 150, 0.5), transparent);
  margin: 50px auto 0;
}

/* =============================================
   Section Base
   ============================================= */
.section {
  padding: 100px 40px;
}

.section-dark {
  background: #0a0a0f;
  color: #fff;
}

.section-accent {
  background: #14141b;
  color: #fff;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #f0dcb0;
  margin-bottom: 14px;
  font-weight: 500;
}

#chronology .section-label {
  color: #fff;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
}

.section-dark .section-title,
.section-accent .section-title {
  color: #fff;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: #d4b896;
  margin: 20px auto 0;
}

/* =============================================
   Philosophy Section
   ============================================= */
.philosophy {
  padding: 120px 40px;
  background: #0a0a0f;
  text-align: center;
}

.philosophy-quote {
  max-width: 750px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 2.4;
  color: #fff;
  letter-spacing: 0.08em;
}

.philosophy-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #d4b896;
  margin: 0 auto 40px;
}

.philosophy-quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #d4b896;
  margin: 40px auto 0;
}

/* =============================================
   Biography Section
   ============================================= */
.biography-layout {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 60px;
  align-items: start;
}

.bio-photo-wrap {
  position: sticky;
  top: 100px;
}

.bio-photo {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.bio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  margin-top: 16px;
}

.bio-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.bio-credential {
  font-size: 0.7rem;
  color: #d4b896;
  letter-spacing: 0.05em;
  margin-top: 8px;
  line-height: 1.6;
}

.bio-text {
  font-size: 0.92rem;
  line-height: 2.2;
  color: #fff;
  font-weight: 300;
}

.bio-text p {
  margin-bottom: 1.5em;
}

.bio-text-en {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 184, 150, 0.2);
}

.bio-text-en p {
  margin-bottom: 1.2em;
}

/* =============================================
   Book Section
   ============================================= */
.book-card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 184, 150, 0.2);
  border-radius: 6px;
  padding: 30px;
  margin-top: 50px;
}

.book-img {
  width: 110px;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.book-info-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 10px;
}

.book-info-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.book-list {
  margin-top: 30px;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 184, 150, 0.2);
  border-radius: 6px;
}

.book-list-heading {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.book-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.book-list-items li {
  padding: 10px 0;
  border-top: 1px solid rgba(212, 184, 150, 0.15);
  font-size: 0.88rem;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
}

.book-list-items li:first-child {
  border-top: none;
}

.book-list-title {
  color: #fff;
}

.book-list-meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

/* =============================================
   Timeline / Chronology Section
   ============================================= */
.timeline-container {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(212, 184, 150, 0.3);
}

.timeline-decade {
  margin-bottom: 30px;
}

.timeline-decade-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: rgba(212, 184, 150, 0.55);
  letter-spacing: 0.12em;
  padding-left: 140px;
  margin-bottom: 18px;
}

.timeline-year-group {
  margin-bottom: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 18px 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 105px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0a0a0f;
  border: 2px solid #d4b896;
}

.timeline-item.has-note::before {
  background: #d4b896;
}

.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #d4b896;
  text-align: right;
  padding-top: 4px;
}

.timeline-content {
  padding-left: 30px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.timeline-text {
  flex: 1;
  min-width: 0;
}

.timeline-thumb {
  flex-shrink: 0;
  width: 240px;
  height: auto;
  border-radius: 4px;
  opacity: 0.92;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.timeline-thumb:hover {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6);
}

.timeline-artist {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.timeline-artist a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(212, 184, 150, 0.5);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.timeline-artist a:hover {
  color: #d4b896;
  border-bottom-color: #d4b896;
}

.timeline-artist a[target="_blank"]::after {
  content: '↗';
  display: inline-block;
  margin-left: 2px;
  font-size: 0.7em;
  opacity: 0.6;
  transform: translateY(-1px);
}

.timeline-venue {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.timeline-note {
  font-size: 0.88rem;
  color: #d4b896;
  margin-top: 6px;
  font-style: italic;
}

.timeline-sub-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 14px 0;
  position: relative;
}

.timeline-sub-item::before {
  content: '';
  position: absolute;
  left: 107px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(212, 184, 150, 0.45);
}

.timeline-sub-item .timeline-year {
  visibility: hidden;
}

.timeline-sub-item .timeline-content {
  padding-left: 30px;
}

/* =============================================
   Works Gallery Section
   ============================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.work-item:hover {
  transform: scale(1.03);
}

.work-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s;
}

.work-item:hover img {
  filter: grayscale(0%);
}

.work-item-label {
  padding: 10px 8px;
  font-size: 0.7rem;
  color: #fff;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* =============================================
   Programs Gallery
   ============================================= */
.programs-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d4b896 transparent;
}

.programs-scroll::-webkit-scrollbar {
  height: 4px;
}

.programs-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.programs-scroll::-webkit-scrollbar-thumb {
  background: #d4b896;
  border-radius: 2px;
}

.program-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.program-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: #0a0a0f;
  text-align: center;
  padding: 60px 40px;
  border-top: 1px solid rgba(212, 184, 150, 0.1);
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: #fff;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  letter-spacing: 0.1em;
}

/* =============================================
   Lightbox
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* =============================================
   Animations
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =============================================
   Responsive
   ============================================= */
@media screen and (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0;
    padding: 0 5px;
  }

  .site-nav a {
    padding: 12px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .section {
    padding: 60px 20px;
  }

  .philosophy {
    padding: 80px 20px;
  }

  .philosophy-quote {
    font-size: 0.95rem;
    line-height: 2.2;
  }

  .biography-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bio-photo-wrap {
    position: static;
    text-align: center;
  }

  .bio-photo {
    width: 91px;
    margin: 0 auto;
    display: block;
  }

  .bio-name, .bio-name-en, .bio-credential {
    text-align: center;
  }

  .timeline-container::before {
    left: 50px;
  }

  .timeline-item,
  .timeline-sub-item {
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 10px 0;
  }

  .timeline-item::before {
    left: 44.5px;
  }

  .timeline-sub-item::before {
    left: 46.5px;
  }

  .timeline-decade-label {
    padding-left: 70px;
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .timeline-decade {
    margin-bottom: 14px;
  }

  .timeline-year {
    font-size: 0.9rem;
  }

  .timeline-content {
    padding-left: 12px;
    gap: 14px;
  }

  .timeline-sub-item .timeline-content {
    padding-left: 12px;
  }

  .timeline-artist {
    font-size: 0.88rem;
  }

  .timeline-venue {
    font-size: 0.78rem;
    margin-top: 3px;
  }

  .timeline-note {
    font-size: 0.75rem;
    margin-top: 3px;
  }

  .timeline-thumb {
    width: 100px;
    height: auto;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  }

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .work-item img {
    height: 130px;
  }

  .program-card {
    flex: 0 0 150px;
  }

  .program-card img {
    height: 210px;
  }

  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
