:root{
  --bg:#07070a;
  --bg-soft:#0d0d13;
  --fg:#f3f3f5;
  --fg-dim:#9a9aa5;
  --neon-blue:#3ad6ff;
  --neon-magenta:#ff3ad6;
  --neon-yellow:#e8ff3a;
  --neon-green:#3affa0;
  --line:rgba(255,255,255,0.08);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:'Space Grotesk','Noto Sans JP',sans-serif;
  overflow-x:hidden;
}
::selection{background:var(--neon-magenta);color:#000;}

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

/* ---------- NAV ---------- */
nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 6vw;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
}
nav .logo{font-weight:700;}
nav ul{display:flex;gap:32px;list-style:none;}
nav ul li a{opacity:0.75;transition:opacity .25s ease;}
nav ul li a:hover{opacity:1;}
nav ul li a.active{opacity:1;color:var(--neon-blue);text-shadow:0 0 10px rgba(58,214,255,0.6);}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  color:var(--fg);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  padding:4px;
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  height:100vh;
  min-height:680px;
  background:var(--bg);
  display:flex;
  flex-direction:column;
  padding:104px 2.5vw 0;
  overflow:hidden;
}
.hero-carousel-wrap{
  position:relative;
  flex:1;
  min-height:0;
  margin:0 11vw 24px;
  border-radius:16px;
  overflow:hidden;
}
.hero-carousel{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.hero-track{
  display:flex;
  width:100%;
  height:100%;
  transition:transform .8s cubic-bezier(.65,0,.35,1);
  will-change:transform;
}
.hero-slide{
  position:relative;
  flex:0 0 100%;
  width:100%;
  height:100%;
}
.hero-slide img,
.hero-slide video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
  filter:saturate(1.15) contrast(1.05);
}
.hero-carousel::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(7,7,10,0.05) 0%, rgba(7,7,10,0.15) 50%, rgba(7,7,10,0.88) 100%);
  pointer-events:none;
}
.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:48px;height:48px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(7,7,10,0.35);
  color:var(--fg);
  font-size:20px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter:blur(6px);
  transition:all .3s ease;
}
.hero-arrow:hover{
  border-color:var(--neon-blue);
  color:var(--neon-blue);
  box-shadow:0 0 20px rgba(58,214,255,0.5);
}
.hero-arrow.prev{left:24px;}
.hero-arrow.next{right:24px;}
.hero-dots{
  position:absolute;
  bottom:36px;
  left:50%;
  transform:translateX(-50%);
  z-index:3;
  display:flex;
  gap:12px;
}
.hero-dot{
  width:9px;height:9px;
  border-radius:50%;
  border:1px solid var(--fg-dim);
  background:transparent;
  cursor:pointer;
  padding:0;
  transition:all .3s ease;
}
.hero-dot.active{
  background:var(--neon-blue);
  border-color:var(--neon-blue);
  box-shadow:0 0 12px rgba(58,214,255,0.8);
}
.hero-content{
  position:absolute;
  z-index:2;
  left:0;right:0;bottom:0;
  padding:0 40px 40px;
  width:100%;
}
.hero-eyebrow{
  font-size:13px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  color:var(--neon-blue);
  text-shadow:0 0 14px rgba(58,214,255,0.8);
  margin-bottom:12px;
}
.hero h1{
  font-size:clamp(2rem, 5vw, 4.4rem);
  line-height:0.98;
  font-weight:700;
  letter-spacing:-0.02em;
  text-shadow:0 0 40px rgba(58,214,255,0.25);
}
.hero-sub{
  margin-top:16px;
  max-width:520px;
  color:var(--fg-dim);
  font-size:clamp(0.95rem,1.4vw,1.15rem);
  line-height:1.7;
}
.scroll-hint{
  position:absolute;
  bottom:24px;right:24px;
  z-index:3;
  font-size:11px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--fg-dim);
  display:flex;
  align-items:center;
  gap:10px;
}
.scroll-hint::after{
  content:'';
  width:1px;height:40px;
  background:linear-gradient(180deg, var(--neon-blue), transparent);
  animation:scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse{
  0%,100%{opacity:0.3;}
  50%{opacity:1;}
}

/* ---------- PAGE HEADER (non-home pages) ---------- */
.page-header{
  padding:150px 6vw 40px;
}

/* ---------- SECTION SHARED ---------- */
section{
  padding:140px 6vw;
  position:relative;
}
.section-label{
  font-size:12px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  color:var(--neon-magenta);
  text-shadow:0 0 12px rgba(255,58,214,0.6);
  margin-bottom:20px;
}
.section-title{
  font-size:clamp(1.8rem, 4vw, 3.2rem);
  font-weight:700;
  letter-spacing:-0.01em;
  margin-bottom:48px;
  max-width:900px;
}

/* ---------- ABOUT ---------- */
.about{
  background:var(--bg-soft);
  border-bottom:1px solid var(--line);
}
.about-grid{
  display:grid;
  grid-template-columns:1.7fr 0.7fr;
  gap:64px;
  align-items:start;
}
.about-text p{
  color:var(--fg-dim);
  font-size:1.05rem;
  line-height:1.9;
  margin-bottom:24px;
}
.about-side{
  display:flex;
  flex-direction:column;
  gap:36px;
}
.about-photo{
  width:70%;
  max-width:280px;
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:8px;
  filter:saturate(1.05);
}
.about-text strong{color:var(--fg);font-weight:500;}
.about-subheading{
  font-size:12px;
  letter-spacing:0.25em;
  text-transform:uppercase;
  color:var(--neon-magenta);
  text-shadow:0 0 10px rgba(255,58,214,0.5);
  margin:8px 0 20px;
}
.about-facts{
  display:flex;
  flex-direction:column;
  gap:0;
  border-top:1px solid var(--line);
}
.about-facts div{
  display:flex;
  justify-content:space-between;
  padding:18px 0;
  border-bottom:1px solid var(--line);
  font-size:0.95rem;
}
.about-facts span:first-child{color:var(--fg-dim);letter-spacing:0.05em;text-transform:uppercase;font-size:12px;}
.about-facts span:last-child{color:var(--fg);text-align:right;}

/* ---------- WORK / GALLERY ---------- */
.work-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
}
.work-item{
  position:relative;
  z-index:1;
  aspect-ratio:3/2;
  overflow:hidden;
  border-radius:8px;
  background:#000;
  cursor:pointer;
  transition:transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease, opacity .45s ease;
}
.work-item img,
.work-item video{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.1);
}
.work-item:hover{
  transform:scale(1.06);
  z-index:5;
  box-shadow:0 30px 70px rgba(0,0,0,0.65), 0 0 50px rgba(232,255,58,0.3);
}
.work-grid:hover .work-item:not(:hover):not(.placeholder){opacity:0.45;}
.work-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(7,7,10,0) 38%, rgba(7,7,10,0.68) 78%, rgba(7,7,10,0.9) 100%);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:28px;
  opacity:0;
  transform:translateY(16px);
  transition:opacity .35s ease, transform .35s ease;
}
.work-item:hover .work-overlay{opacity:1; transform:translateY(0);}
.work-overlay .tag{
  font-size:11px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--neon-yellow);
  text-shadow:0 0 10px rgba(232,255,58,0.6);
  margin-bottom:8px;
}
.work-overlay h3{font-size:1.3rem;font-weight:500;color:var(--fg);}
.work-item.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px),
    var(--bg-soft);
  border:1px dashed var(--line);
}
.work-item.placeholder span{
  color:var(--fg-dim);
  font-size:12px;
  letter-spacing:0.15em;
  text-transform:uppercase;
}
.work-item[data-gallery-trigger]{cursor:zoom-in;}

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(7,7,10,0.97);
  overflow-y:auto;
  padding:100px 6vw 80px;
}
.lightbox[hidden]{display:none;}
.lightbox-close{
  position:fixed;
  top:24px;right:24px;
  z-index:201;
  width:44px;height:44px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--fg);
  font-size:16px;
  cursor:pointer;
  transition:all .3s ease;
}
.lightbox-close:hover{
  border-color:var(--neon-blue);
  color:var(--neon-blue);
  box-shadow:0 0 20px rgba(58,214,255,0.5);
}
.lightbox-inner{max-width:1100px;margin:0 auto;}
.lightbox-video{
  width:100%;
  border-radius:12px;
  margin-bottom:48px;
  background:#000;
}
.lightbox-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
#kanami-gallery .lightbox-grid{
  grid-template-columns:repeat(2, 1fr);
}
.lightbox-grid img,
.lightbox-grid video{
  width:100%;
  height:100%;
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:6px;
  filter:saturate(1.1);
}

@media (max-width:820px){
  .lightbox{padding:90px 6vw 60px;}
  .lightbox-grid{grid-template-columns:repeat(2, 1fr);}
}

/* ---------- EVENTS / TIMELINE ---------- */
.events-source{display:none;}
.events-group{margin-bottom:64px;}
.events-group:last-child{margin-bottom:0;}
.events-group-title{
  font-size:13px;
  letter-spacing:0.25em;
  text-transform:uppercase;
  margin-bottom:20px;
  color:var(--fg-dim);
}
#group-future .events-group-title{color:var(--neon-blue);text-shadow:0 0 10px rgba(58,214,255,0.5);}
#group-current .events-group-title{color:var(--neon-green);text-shadow:0 0 10px rgba(58,255,160,0.5);}
.timeline{
  display:flex;
  flex-direction:column;
}
.timeline-row{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:40px;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}
.timeline-row:first-child{border-top:1px solid var(--line);}
.timeline-year{
  color:var(--neon-green);
  text-shadow:0 0 10px rgba(58,255,160,0.6);
  font-size:0.95rem;
  font-weight:500;
  letter-spacing:0.05em;
}
#group-past .timeline-year{color:var(--fg-dim);text-shadow:none;}
#group-future .timeline-year{color:var(--neon-blue);text-shadow:0 0 10px rgba(58,214,255,0.6);}
.timeline-desc h4{font-size:1.1rem;font-weight:500;margin-bottom:6px;}
.timeline-desc p{color:var(--fg-dim);font-size:0.95rem;line-height:1.6;}
.timeline-desc p a{
  color:var(--fg);
  border-bottom:1px solid var(--fg-dim);
  transition:color .25s ease, border-color .25s ease;
}
.timeline-desc p a:hover{color:var(--neon-blue);border-color:var(--neon-blue);}
.events-empty{color:var(--fg-dim);font-size:0.95rem;}

/* ---------- CONTACT ---------- */
.contact{
  text-align:center;
}
.contact .section-title{margin:0 auto 28px;}
.contact-lead{
  color:var(--fg-dim);
  max-width:520px;
  margin:0 auto 48px;
  line-height:1.8;
}
.contact-email{
  display:inline-block;
  font-size:clamp(1.6rem, 4vw, 2.8rem);
  font-weight:700;
  color:var(--fg);
  border-bottom:2px solid var(--neon-blue);
  padding-bottom:8px;
  transition:color .3s ease, text-shadow .3s ease;
  text-shadow:0 0 0 transparent;
}
.contact-email:hover{
  color:var(--neon-blue);
  text-shadow:0 0 24px rgba(58,214,255,0.7);
}
.social-links{
  display:flex;
  justify-content:center;
  gap:28px;
  margin-top:52px;
  flex-wrap:wrap;
}
.social-links a{
  font-size:12px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--fg-dim);
  padding:10px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  transition:all .3s ease;
}
.social-links a:hover{
  color:var(--bg);
  background:var(--neon-magenta);
  border-color:var(--neon-magenta);
  box-shadow:0 0 24px rgba(255,58,214,0.5);
}

footer{
  padding:36px 6vw;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:var(--fg-dim);
  letter-spacing:0.05em;
  border-top:1px solid var(--line);
}

@media (max-width:820px){
  nav{padding:20px 6vw;}
  .nav-toggle{display:block;}
  nav ul{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:100%;left:0;right:0;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    padding:0 6vw;
    gap:0;
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
  }
  nav ul.open{max-height:340px;padding:12px 6vw 20px;}
  nav ul li{border-top:1px solid var(--line);}
  nav ul li:first-child{border-top:none;}
  nav ul li a{display:block;padding:14px 0;}
  .page-header{padding:120px 6vw 24px;}
  section{padding:100px 6vw;}
  .about-grid{grid-template-columns:1fr;gap:48px;}
  .work-grid{grid-template-columns:1fr;}
  .timeline-row{grid-template-columns:1fr;gap:10px;}
  footer{flex-direction:column;gap:10px;text-align:center;}

  /* Touch devices have no :hover — show captions and the pop-out card
     effect without waiting for an interaction that will never come. */
  .work-item{transform:none !important;box-shadow:none !important;}
  .work-overlay{
    opacity:1;
    transform:translateY(0);
    background:linear-gradient(180deg, rgba(7,7,10,0) 45%, rgba(7,7,10,0.88) 100%);
  }
  .work-grid:hover .work-item:not(:hover):not(.placeholder){opacity:1;}
}
