﻿:root {
  --crimson-violet: #5f0f40;
  --deep-crimson: #9a031e;
  --princeton-orange: #fb8b24;
  --autumn-leaf: #e36414;
  --dark-teal: #0f4c5c;

  --bg: var(--crimson-violet);
  --surface: #6f164d;
  --surface2: #7e1e5b;
  --ink: #fcf8f2;
  --ink-muted: rgba(252, 248, 242, 0.7);
  --ink-dim: rgba(252, 248, 242, 0.3);
  --vermillion: var(--princeton-orange);
  --vermillion-soft: rgba(251, 139, 36, 0.15);
  --vermillion-glow: rgba(251, 139, 36, 0.4);
  --gold: var(--autumn-leaf);
  --gold-soft: rgba(227, 100, 20, 0.08);
  --gold-glow: rgba(227, 100, 20, 0.35);
  --seam: rgba(252, 248, 242, 0.07);
  --seam2: rgba(252, 248, 242, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 125%; /* Globally scale all relative typography up by 25% */
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* GRAIN */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
  z-index: 5000;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

nav::after {
  display: none;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 8px 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.logo span {
  color: var(--vermillion);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(252, 248, 242, 0.24);
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-links a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(252, 248, 242, 0.82);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.4s, background 0.4s, box-shadow 0.4s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  background: rgba(251, 139, 36, 0.18);
  box-shadow: inset 0 0 0 1px rgba(251, 139, 36, 0.35);
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(252, 248, 242, 0.24);
  border-radius: 999px;
  background: transparent;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  padding: 6px 9px;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s, box-shadow 0.3s;
}

.lang-switch button.active, .lang-switch button:hover {
  color: var(--gold);
}

.lang-switch button.active {
  color: var(--ink);
  background: var(--vermillion);
  box-shadow: 0 8px 18px rgba(229, 62, 62, 0.28);
}

/* SECTION HEADER SHARED */
.sec-head {
  padding: 0 60px;
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.sec-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.63rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--seam2), transparent);
}

.sec-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to top, rgba(12, 19, 36, 0.94) 0%, rgba(12, 19, 36, 0.4) 50%, rgba(12, 19, 36, 0.8) 100%), url('../img/hero_cover.jpg');
  background-size: cover;
  background-position: center;
}


.hero-deco {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border: 1px solid var(--seam);
  border-radius: 50%;
  animation: breathe 8s ease-in-out infinite;
}

.hero-deco::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid var(--seam);
  border-radius: 50%;
}

.hero-deco::after {
  content: '';
  position: absolute;
  inset: 44px;
  border: 1px solid rgba(201, 76, 43, 0.1);
  border-radius: 50%;
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.65;
    transform: translateY(-50%) scale(1.015);
  }
}

.hero-kanji {
  position: absolute;
  right: 60px;
  top: 28%;
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.82rem;
  letter-spacing: 0.5em;
  color: var(--ink-dim);
  animation: fadeR 1.6s 0.6s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--vermillion), transparent);
  margin-bottom: 32px;
  animation: fadeU 1s 0.2s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.63rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: fadeU 1s 0.4s cubic-bezier(.16, 1, .3, 1) both;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  max-width: 700px;
  animation: fadeU 1.2s 0.5s cubic-bezier(.16, 1, .3, 1) both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 460px;
  line-height: 1.8;
  animation: fadeU 1.2s 0.7s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeIn 1.5s 1.4s ease both;
}

.hero-scroll span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--ink-dim);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--vermillion);
  animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

@keyframes fadeU {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeR {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ===== BIOGRAPHY ===== */
#biography {
  --bg: var(--dark-teal);
  --surface: #155869;
  --surface2: #1b6477;
  --gold: var(--princeton-orange);
  --gold-glow: rgba(251, 139, 36, 0.35);
  --seam: rgba(252, 248, 242, 0.06);
  --seam2: rgba(252, 248, 242, 0.12);
  padding: 140px 60px 120px;
  background: var(--bg);
}

.bio-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

.bio-portrait-wrap {
  position: relative;
  max-width: 1100px;
  width: 100%;
}

.bio-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.8);
  display: block;
}

.bio-portrait-frame {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--seam2);
  pointer-events: none;
}

.bio-portrait-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid rgba(201, 76, 43, 0.12);
  pointer-events: none;
}

.bio-tag-vert {
  position: absolute;
  bottom: 24px;
  left: -28px;
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0.7;
}

.bio-name-jp {
  font-family: 'Shippori Mincho', serif;
  font-size: 2.4rem;
  color: var(--ink-dim);
  margin-bottom: 6px;
  letter-spacing: 0.12em;
}

.bio-name-en {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
}

.bio-intro {
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--ink);
}

.bio-intro em {
  font-style: italic;
  color: var(--gold);
}

.bio-text {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.bio-video-wrap {
  margin-top: 36px;
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--seam2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 255, 255, 0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-video-wrap:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 24px var(--gold-glow);
  transform: translateY(-4px);
}

.bio-video-wrap iframe,
.bio-video-wrap video,
.bio-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--seam);
}

.bio-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.bio-stat-num span {
  font-size: 1.4rem;
  color: var(--vermillion);
}

.bio-stat-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 6px;
}

/* ===== JOURNEY (TIMELINE) ===== */
#journey {
  --bg: var(--deep-crimson);
  --surface: #aa122a;
  --surface2: #b81c35;
  --vermillion: var(--princeton-orange);
  --vermillion-glow: rgba(251, 139, 36, 0.4);
  --seam: rgba(252, 248, 242, 0.06);
  --seam2: rgba(252, 248, 242, 0.12);
  padding: 120px 0 140px;
  background: var(--bg);
}

.journey-inner {
  padding: 0 60px;
}

.timeline {
  margin-top: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 160px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, 
    var(--vermillion) 0%, 
    var(--vermillion) var(--timeline-progress, 0%), 
    var(--seam2) var(--timeline-progress, 0%), 
    var(--seam2) 100%
  );
  filter: drop-shadow(0 0 4px var(--vermillion-glow));
  transition: background 0.1s ease;
}

.tl-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  padding: 0 0 64px 0;
  position: relative;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 4px;
  padding-right: 40px;
  text-align: right;
}

.tl-dot {
  position: absolute;
  left: 156px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  z-index: 2;
}

.tl-dot.accent {
  background: var(--vermillion);
  border-color: var(--vermillion);
}

.tl-body {
  padding-left: 44px;
}

.tl-title {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.3;
}

.tl-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-muted);
}

.tl-place {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 12px;
}

.tl-img-wrap {
  margin-top: 24px;
  max-width: 600px;
  aspect-ratio: 21/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--seam2);
  background: var(--surface);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tl-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 19, 36, 0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.tl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, filter 0.8s ease;
  filter: grayscale(18%) saturate(0.8) brightness(0.88);
}

.tl-item:hover .tl-img {
  transform: scale(1.05);
  opacity: 1;
  filter: grayscale(0%) saturate(1.05) brightness(1);
}

/* ===== GALLERY FULL ===== */
#gallery {
  --bg: var(--crimson-violet);
  --surface: #6f164d;
  --surface2: #7e1e5b;
  --seam: rgba(252, 248, 242, 0.06);
  --seam2: rgba(252, 248, 242, 0.12);
  padding: 140px 0 160px;
  background: var(--bg);
}

.gallery-filter {
  padding: 0 60px;
  margin-bottom: 48px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--seam2);
  color: var(--ink-muted);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 8px 20px;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.gallery-masonry {
  padding: 0 60px;
  columns: 3;
  column-gap: 24px;
}

.gal-card {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gal-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ===== ARTWORK ILLUSTRATION OVERLAY ===== */
.gal-img-wrap {
  overflow: hidden;
  position: relative;
}

.gal-img-wrap img.gal-photo {
  width: 100%;
  display: block;
  filter: grayscale(15%) brightness(0.7) saturate(0.8);
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(.19, 1, .22, 1), filter 1.2s ease;
}

.gal-card:hover .gal-img-wrap img.gal-photo {
  transform: scale(1);
  filter: grayscale(0%) brightness(0.82) saturate(1.1);
}

/* Katazome silk art overlay - creates the painted-silk illusion */
.gal-silk-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 1px, transparent 1px, transparent 4px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 1px, transparent 1px, transparent 4px);
  transition: opacity 0.8s ease;
}

.gal-card:hover .gal-silk-overlay {
  opacity: 0.25;
}

/* City-colour tint badge */
.gal-city-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  transition: opacity 0.6s ease;
}

.gal-card:hover .gal-city-tint {
  opacity: 0.08;
}

/* Woodblock-print scan lines effect */
.gal-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  opacity: 0.7;
}

/* Illustration caption strip */
.gal-illus-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 18px 14px;
  background: linear-gradient(to top, rgba(7, 6, 10, 0.88) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.gal-card:hover .gal-illus-caption {
  opacity: 1;
  transform: translateY(0);
}

.gal-illus-caption-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: rgba(242, 237, 230, 0.65);
  text-transform: uppercase;
}

.gal-illus-caption:has(.gal-illus-caption-text:empty) {
  display: none;
}

.gal-img-accent {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 1px;
  height: 0;
  background: var(--vermillion);
  transition: height 0.7s cubic-bezier(.16, 1, .3, 1);
}

.gal-card:hover .gal-img-accent {
  height: 44px;
}

.gal-info {
  padding: 20px 22px 22px;
}

.gal-location {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.gal-location:empty,
.gal-title:empty {
  display: none;
}

.gal-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.3;
}

.gal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--seam);
}

.gal-meta-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.52rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}

.gal-meta-val {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.gal-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.gal-price span {
  font-size: 0.8rem;
  color: var(--gold);
}

.gal-cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  background: none;
  border: 1px solid var(--seam2);
  color: var(--ink-muted);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: all 0.35s;
  text-align: center;
}

.gal-cta:hover {
  border-color: var(--vermillion);
  color: var(--vermillion);
  background: var(--vermillion-soft);
}

.gal-sold {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 6, 10, 0.85);
  border: 1px solid var(--seam2);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.52rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 10px;
  z-index: 3;
}

/* ===== PRESS & EXHIBITIONS ===== */
#press-exhibitions {
  --bg: var(--crimson-violet);
  --surface: #6f164d;
  --surface2: #7e1e5b;
  --gold: var(--princeton-orange);
  --gold-glow: rgba(251, 139, 36, 0.35);
  --seam: rgba(251, 139, 36, 0.06);
  --seam2: rgba(251, 139, 36, 0.12);
  padding: 140px 60px 120px;
  background: var(--bg);
}

/* COMPACT 3-PANEL PRESS & EXHIBITIONS */
.press-ex-compact-grid {
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.compact-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.compact-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--gold-glow);
}

.compact-panel-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--seam2);
}

/* PANEL 1: EXHIBITIONS LIST */
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
}

.compact-list::-webkit-scrollbar {
  width: 4px;
}
.compact-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.compact-list::-webkit-scrollbar-thumb {
  background: rgba(251, 139, 36, 0.3);
  border-radius: 2px;
}
.compact-list::-webkit-scrollbar-thumb:hover {
  background: var(--vermillion);
}

.compact-item {
  border-bottom: 1px dashed var(--seam);
  padding-bottom: 12px;
}

.compact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compact-item-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.compact-year {
  background: var(--vermillion-soft);
  color: var(--vermillion);
  border: 1px solid rgba(251, 139, 36, 0.3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
}

.compact-city {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.compact-item-title {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

/* PANEL 2: PRESS QUOTES */
.compact-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
}

.compact-quotes::-webkit-scrollbar {
  width: 4px;
}
.compact-quotes::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.compact-quotes::-webkit-scrollbar-thumb {
  background: rgba(251, 139, 36, 0.3);
  border-radius: 2px;
}
.compact-quotes::-webkit-scrollbar-thumb:hover {
  background: var(--vermillion);
}

.compact-quote-block {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.quote-pub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}

.quote-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.quote-link:hover {
  color: var(--vermillion);
  text-shadow: 0 0 8px var(--vermillion-glow);
}

.quote-year {
  color: var(--ink-dim);
}

.quote-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* PANEL 3: FEATURED VIDEO SPOTLIGHT */
.spotlight-panel {
  padding: 0;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}

.spotlight-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}

.spotlight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.compact-panel:hover .spotlight-bg {
  transform: scale(1.08);
}

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

.spotlight-tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 12px;
}

.spotlight-title {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
}

.spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vermillion);
  transition: color 0.3s;
}

.play-btn-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vermillion-soft);
  border: 1px solid var(--vermillion);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.spotlight-btn:hover .play-btn-circle {
  background: var(--vermillion);
  color: var(--ink);
  transform: scale(1.15);
  box-shadow: 0 0 10px var(--vermillion-glow);
}

/* ===== PROCESS ===== */
#process {
  --bg: var(--dark-teal);
  --surface: #155869;
  --surface2: #1b6477;
  --seam: rgba(252, 248, 242, 0.06);
  --seam2: rgba(252, 248, 242, 0.12);
  padding: 140px 0;
  background: var(--bg);
}

.process-intro {
  max-width: 800px;
  margin: -20px 60px 64px;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-muted);
}

.process-grid {
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.proc-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--seam);
  background: var(--bg);
  position: relative;
}

.proc-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 19, 36, 0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.proc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1), opacity 0.8s ease, filter 0.8s ease;
  filter: grayscale(15%) saturate(0.8) brightness(0.88);
}

.proc-step:hover .proc-img {
  transform: scale(1.06);
  opacity: 1;
  filter: grayscale(0%) saturate(1.08) brightness(1);
}

.proc-step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--vermillion), transparent);
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(.16, 1, .3, 1);
}

.proc-step:hover::after {
  transform: scaleX(1);
}

.proc-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--seam2);
  line-height: 1;
  margin-bottom: 20px;
}

.proc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.proc-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-muted);
}

/* ===== CONTACT ===== */
#contact {
  --bg: var(--dark-teal);
  --surface: #155869;
  --surface2: #1b6477;
  --seam: rgba(252, 248, 242, 0.06);
  --seam2: rgba(252, 248, 242, 0.12);
  padding: 140px 60px 120px;
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-intro {
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 48px;
}

.contact-intro em {
  font-style: italic;
  color: var(--ink);
}

.contact-info-block {
  margin-bottom: 32px;
}

.contact-info-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-info-val {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.contact-info-val a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-val a:hover {
  color: var(--ink);
}

.contact-socials {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.social-btn {
  border: 1px solid var(--seam2);
  color: var(--ink-muted);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.35s;
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.form-row {
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--seam2);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}

.form-row select option {
  background: var(--surface);
}

.form-row textarea {
  resize: none;
  height: 120px;
  line-height: 1.7;
}

.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--gold);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: none;
  border: 1px solid var(--vermillion);
  color: var(--vermillion);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: all 0.4s;
}

.form-submit:hover {
  background: var(--vermillion);
  color: var(--ink);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 14px;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--seam);
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--ink-muted);
}

.footer-mark {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  color: var(--vermillion);
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }
.d5 { transition-delay: 0.48s; }

/* ===== LIGHTBOX ===== */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 10, 0.96);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

.lb-inner {
  max-width: 80vw;
  max-height: 88vh;
  position: relative;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.lb-img-wrap {
  flex: 1;
  max-width: 58vw;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.lb-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

/* Lightbox silk overlay */
.lb-silk-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.35;
  width: 100%;
  height: 100%;
}

.lb-detail {
  width: 280px;
  padding-top: 8px;
}

.lb-detail-loc {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.lb-detail-title {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
}

.lb-detail-row {
  margin-bottom: 16px;
}

.lb-detail-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.56rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 5px;
}

.lb-detail-val {
  font-size: 1rem;
  color: var(--ink-muted);
}

.lb-detail-price {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  margin-top: 28px;
}

.lb-detail-price span {
  font-size: 0.9rem;
  color: var(--gold);
}

.lb-close {
  position: absolute;
  top: -24px;
  right: -24px;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 1.8rem;
  line-height: 1;
  transition: color 0.3s, transform 0.3s;
}

.lb-close:hover {
  color: var(--vermillion);
  transform: rotate(90deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .bio-portrait-wrap {
    max-width: 100%;
  }
  .press-ex-compact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .gallery-masonry {
    columns: 2;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .lb-inner {
    flex-direction: column;
    max-width: 90vw;
    gap: 24px;
  }
  .lb-img-wrap {
    max-width: 90vw;
  }
  .lb-detail {
    width: 100%;
  }
  .lb-close {
    top: -20px;
    right: 0;
  }
}

@media (max-width: 768px) {
  .process-intro {
    margin: -20px 24px 48px;
    font-size: 1.1rem;
    line-height: 1.7;
  }

  nav {
    padding: 22px 24px;
  }
  .logo {
    font-size: 0.88rem;
    letter-spacing: 0.22em;
    white-space: nowrap;
  }
  .nav-right {
    gap: 16px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 0 24px 70px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
  }
  .hero-deco, .hero-kanji {
    display: none;
  }
  .bio-name-jp {
    font-size: 1.95rem;
  }
  .bio-intro {
    font-size: 1.25rem;
    line-height: 1.6;
  }
  .bio-stat-num {
    font-size: 2.15rem;
  }
  .sec-head, #biography, #contact, footer, #press-exhibitions {
    padding-left: 24px;
    padding-right: 24px;
  }
  .journey-inner, .gallery-filter, .gallery-masonry, .process-grid, .press-ex-compact-grid {
    padding-left: 24px;
    padding-right: 24px;
  }
  .gallery-masonry {
    columns: 1;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 90px;
  }
  .tl-item {
    grid-template-columns: 90px 1fr;
  }
  .tl-dot {
    left: 86px;
  }
  .tl-body {
    padding-left: 24px;
  }
  .tl-year {
    padding-right: 20px;
  }
  .form-row input, .form-row textarea, .form-row select {
    font-size: 16px; /* Enforce 16px to prevent iOS Safari forced zoom on focus */
  }
  .lb-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(12, 19, 36, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid var(--seam2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
  .lb-detail-title, .lb-detail-price {
    font-size: 1.4rem;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 36px 24px;
  }
}

/* ===== MOBILE MENU HAMBURGER BUTTON ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, rgba(251, 139, 36, 0.22), rgba(7, 6, 10, 0.88));
  border: 1px solid rgba(251, 139, 36, 0.76);
  border-radius: 999px;
  padding: 11px 10px;
  z-index: 10000;
  margin-left: 0;
  box-shadow: 0 10px 24px rgba(7, 6, 10, 0.42), 0 0 16px rgba(251, 139, 36, 0.26);
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  box-shadow: 0 0 8px rgba(251, 139, 36, 0.75);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

/* Hamburger transition to 'X' */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(0px, -1px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(0px, 1px);
}

/* ===== MOBILE OVERLAY MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(12, 19, 36, 0.98);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
  transform: scale(1.05);
}

/* Show Hamburger on mobile screens */
@media (max-width: 768px) {
  nav {
    padding: 16px 22px;
    background: transparent;
  }
  .nav-right {
    gap: 10px;
    position: static;
  }
  .lang-switch {
    display: none;
  }
  nav .menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    background: transparent;
    border-color: rgba(251, 139, 36, 0.56);
    pointer-events: auto;
  }
}

/* Extra Small Devices Fine-Tuning */
@media (max-width: 480px) {
  .logo {
    max-width: calc(100vw - 86px);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }
  .timeline::before {
    left: 12px;
  }
  .tl-item {
    grid-template-columns: 1fr;
    padding-left: 32px;
    padding-bottom: 40px;
  }
  .tl-year {
    text-align: left;
    padding-right: 0;
    padding-bottom: 6px;
    font-size: 0.8rem;
  }
  .tl-dot {
    left: 8px;
  }
  .tl-body {
    padding-left: 0;
  }
  .bio-portrait {
    aspect-ratio: 16/10; /* Crop image landscape on small mobile screens */
  }
  .bio-portrait-frame::before {
    display: none !important; /* Eliminate right/bottom offset border overflow */
  }
  .bio-portrait-frame {
    inset: -6px;
  }
  .bio-stats {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    text-align: center;
  }
  .bio-stat-label {
    margin-top: 4px;
    font-size: 0.65rem;
  }
  .sec-head {
    margin-bottom: 48px;
  }
}

/* ===== MODERN PREMIUM ICON STYLES ===== */
.sec-icon {
  width: 28px;
  height: 28px;
  margin-right: 16px;
  color: var(--gold);
  filter: drop-shadow(0 0 4px var(--gold-glow));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease, color 0.6s ease;
}

.sec-head:hover .sec-icon {
  transform: scale(1.2) rotate(10deg);
  color: var(--vermillion);
  filter: drop-shadow(0 0 12px var(--vermillion-glow));
}

.proc-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--gold);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-step:hover .proc-icon {
  color: var(--vermillion);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 79, 43, 0.4);
  box-shadow: 0 8px 32px rgba(255, 79, 43, 0.15);
  transform: translateY(-4px) scale(1.05);
}

.proc-step:hover .proc-icon svg {
  transform: rotate(10deg);
}

.proc-step:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 189, 43, 0.05);
}
/* ===== DYNAMIC MOTION EFFECTS ===== */
.ambient-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  opacity: 0.16;
  filter: blur(130px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 50vw;
  height: 50vw;
  background: var(--crimson-violet);
  left: -10vw;
  top: -10vw;
  animation: floatOrb1 25s ease-in-out infinite alternate;
}

.orb-2 {
  width: 60vw;
  height: 60vw;
  background: var(--dark-teal);
  right: -15vw;
  bottom: -15vw;
  animation: floatOrb2 30s ease-in-out infinite alternate;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: var(--autumn-leaf);
  left: 30vw;
  top: 40vw;
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { transform: translate(15vw, 10vh) scale(1.15) rotate(360deg); border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1.1) rotate(0deg); border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; }
  100% { transform: translate(-10vw, -15vh) scale(0.9) rotate(-360deg); border-radius: 30% 70% 60% 40% / 60% 40% 50% 50%; }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(0.9) rotate(0deg); border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%; }
  100% { transform: translate(8vw, -8vh) scale(1.1) rotate(180deg); border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
}

/* Interactive timeline reveal effects */
.tl-item {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.tl-dot {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.tl-item.active-in-view .tl-dot {
  transform: scale(1.5);
  background: var(--vermillion);
  border-color: var(--ink);
  box-shadow: 0 0 15px var(--vermillion-glow);
}

/* Smooth link and button spring animations */
/* Smooth link and button spring animations */
a, button, select, input, textarea, .gal-card, .lang-switch button {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* 3D Perspective settings for gallery cards */
.gal-card {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

/* ========================================================
   =================== 3D WEB UPGRADES ====================
   ======================================================== */

/* 1. WebGL Full-Screen Canvas Overlay */
#webgl-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  background: #09080c; /* Matches Obsidian Urushi theme */
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. 3D Mode Document Hiding & Navigation Overrides */
body.mode-3d-active #webgl-gallery {
  opacity: 1;
  pointer-events: all;
}

body.mode-3d-active .hero,
body.mode-3d-active section,
body.mode-3d-active footer,
body.mode-3d-active .ambient-orbs {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

body.mode-3d-active nav {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

body.mode-3d-active nav .logo,
body.mode-3d-active nav .lang-switch,
body.mode-3d-active nav .menu-toggle {
  display: none !important;
}

body.mode-3d-active nav .nav-right {
  pointer-events: none;
}

body.mode-3d-active nav .btn-3d-toggle {
  display: none !important;
}

/* 3. 3D Instructions & Control HUD Overlay */
.hud-3d-overlay {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(15, 11, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px 44px;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mode-3d-active .hud-3d-overlay {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.hud-instructions {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.hud-instruction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.64rem;
  color: rgba(252, 248, 242, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.hud-instruction-item .key {
  background: rgba(252, 248, 242, 0.12);
  border: 1px solid rgba(252, 248, 242, 0.24);
  border-radius: 4px;
  padding: 3px 10px;
  color: #fcf8f2;
  font-weight: 600;
  font-size: 0.56rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 4. Dynamic Control HUD Toggle Buttons */
.btn-3d-toggle {
  background: none;
  border: 1px solid var(--vermillion);
  color: var(--vermillion);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(251, 139, 36, 0.12);
}

.btn-3d-toggle:hover {
  background: var(--vermillion-soft);
  color: var(--ink);
  box-shadow: 0 0 20px var(--vermillion-glow);
  transform: translateY(-2px);
}

.btn-exit-3d {
  background: var(--vermillion);
  border: none;
  color: #fcf8f2;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 36px;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px var(--vermillion-glow);
}

.btn-exit-3d:hover {
  background: #e04828;
  transform: scale(1.04);
  box-shadow: 0 0 35px var(--vermillion-glow);
}

/* 5. BYÅŒBU FOLDING SCREENS (CSS 3D REVEAL SCROLL) */
#biography, #journey, #press-exhibitions, #process, #gallery, #contact {
  perspective: 2000px;
  perspective-origin: 50% 35%;
  transform-style: preserve-3d;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 60px, -240px) rotateY(-18deg) rotateX(3deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg);
}

/* Alternating ByÅbu folding rotation directions for a dynamic layout feel */
section:nth-of-type(even) .reveal {
  transform: translate3d(0, 60px, -240px) rotateY(18deg) rotateX(3deg);
}
section:nth-of-type(even) .reveal.visible {
  transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg);
}

/* Responsive adjustment for Mobile HUD */
@media (max-width: 768px) {
  .hud-3d-overlay {
    bottom: 20px;
    padding: 16px 20px;
    border-radius: 14px;
    gap: 16px;
  }
  .hud-instructions {
    gap: 16px;
  }
  .hud-instruction-item {
    font-size: 0.54rem;
  }
  .hud-instruction-item .key {
    padding: 2px 6px;
    font-size: 0.48rem;
  }
  .btn-exit-3d {
    padding: 8px 24px;
    font-size: 0.58rem;
  }
  .btn-3d-toggle {
    padding: 8px 16px;
    font-size: 0.54rem;
    letter-spacing: 0.15em;
  }
}

