/* ============================================================
   BENEDIKT PLEYER PORTFOLIO — STYLESHEET
   Nomadic Nostoc | Cinematic Dark · Science Editorial
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --bg:           #0a0a0f;
  --bg-alt:       #0d0d16;
  --bg-card:      rgba(255, 255, 255, 0.03);
  --text:         #e8e6e0;
  --text-muted:   #7a7870;
  --text-dim:     rgba(232, 230, 224, 0.65);
  --accent:       #00c8aa;
  --accent-dim:   rgba(0, 200, 170, 0.12);
  --accent-glow:  rgba(0, 200, 170, 0.25);
  --border:       rgba(232, 230, 224, 0.08);
  --border-hover: rgba(0, 200, 170, 0.4);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-jp:      'Noto Sans JP', sans-serif;

  --nav-h: 72px;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t:     0.35s var(--ease);
  --t-fast: 0.18s ease;
}

/* ── Password Gate ──────────────────────────────────────────── */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease);
}
.password-gate.unlocking {
  opacity: 0;
  pointer-events: none;
}
#gate-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.password-gate-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.password-gate-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.password-gate-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.password-gate-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.password-form { width: 100%; max-width: 320px; }
.password-input-wrap {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.password-input-wrap:focus-within { border-color: var(--accent); }
.password-input-wrap input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
}
.password-input-wrap input::placeholder { color: var(--text-muted); }
.password-input-wrap button {
  padding: 0 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  transition: background var(--t-fast);
}
.password-input-wrap button svg { width: 1.1rem; height: 1.1rem; }
.password-input-wrap button:hover { background: rgba(0,200,170,0.1); }
.password-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #e05c5c;
  text-align: center;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* Japanese font override */
body.lang-jp,
body.lang-jp p,
body.lang-jp h1,
body.lang-jp h2,
body.lang-jp h3,
body.lang-jp span,
body.lang-jp a,
body.lang-jp button,
body.lang-jp label,
body.lang-jp input,
body.lang-jp textarea {
  font-family: var(--font-jp), var(--font-heading), sans-serif;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, button { -webkit-appearance: none; appearance: none; }
[hidden] { display: none !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
}

body.lang-jp h1,
body.lang-jp h2,
body.lang-jp h3 {
  font-family: var(--font-jp), sans-serif;
  font-weight: 500;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(1180px, 100%);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  margin-inline: auto;
}

.section { padding-block: clamp(5rem, 10vw, 8rem); }
.section--dark { background: var(--bg-alt); }

/* ── Scroll-reveal animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }


/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav-logo {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  position: relative;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset-block-end: -3px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t-fast);
}
.nav-links a:hover         { color: var(--text); }
.nav-links a:hover::after  { width: 100%; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.875rem; }

/* Language toggle */
#lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}
#lang-toggle:hover { border-color: var(--accent); color: var(--text); }
#lang-toggle .lang-sep { color: var(--border); margin-inline: 0.1rem; }

body.lang-en #lang-toggle .lang-en-label { color: var(--accent); }
body.lang-jp #lang-toggle .lang-jp-label { color: var(--accent); }
body.lang-de #lang-toggle .lang-de-label { color: var(--accent); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--t-fast), opacity var(--t-fast);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.nav-mobile a:hover { color: var(--accent); padding-inline-start: calc(clamp(1.25rem, 5vw, 3rem) + 0.5rem); }


/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(10,10,15,0.65) 100%),
    linear-gradient(to bottom, rgba(10,10,15,0.15) 0%, rgba(10,10,15,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
  max-width: 900px;
  width: 100%;
}

/* Staggered entrance animations */
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroUp 0.85s 0.35s var(--ease) forwards;
}
.hero-name {
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroUp 0.85s 0.55s var(--ease) forwards;
}
.hero-subtitle {
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: heroUp 0.85s 0.75s var(--ease) forwards;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  color: rgba(232, 230, 224, 0.5);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroUp 0.85s 0.95s var(--ease) forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--t-fast), color var(--t-fast);
  opacity: 0;
  animation: heroUp 0.85s 1.15s var(--ease) forwards;
}
.hero-cta:hover { background: var(--accent); color: var(--bg); }

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 2rem;
  height: 2rem;
  color: rgba(232,230,224,0.4);
  animation: scrollBounce 2.4s ease infinite;
}
.scroll-arrow svg { width: 100%; height: 100%; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 1; }
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--t);
}
.about-photo:hover { filter: grayscale(0%) contrast(1); }

.about-image-deco {
  position: absolute;
  inset-block-end: -1.5rem;
  inset-inline-end: -1.5rem;
  width: 55%;
  height: 55%;
  border: 1px solid var(--accent);
  border-radius: 2px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.about-bio {
  font-size: clamp(0.9rem, 1.4vw, 1.025rem);
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }


/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.filter-btn:hover  { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Masonry via CSS columns */
.gallery-grid {
  columns: 3 260px;
  column-gap: 0.875rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.875rem;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--bg-alt);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item.hidden {
  display: none;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.2) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.gallery-overlay-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Video badge */
.gallery-video-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 200, 170, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  pointer-events: none;
}
.gallery-video-badge svg { width: 0.85rem; height: 0.85rem; }

/* Video tile inner wrap */
.gallery-video-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}
.gallery-video-wrap video {
  width: 100%;
  height: auto;
  display: none;
}

/* Dark gradient placeholder shown before hover */
.gallery-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,200,170,0.08) 0%, transparent 70%),
    linear-gradient(135deg, #0d0d16 0%, #0a0f14 50%, #080e0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.gallery-video-play-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(0,200,170,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.gallery-item:hover .gallery-video-play-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Loading placeholder */
.gallery-item-placeholder {
  width: 100%;
  padding-top: 66.67%;
  background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(0,200,170,0.05) 100%);
  position: relative;
}


/* ============================================================
   FEATURED VIDEO
   ============================================================ */
.section-featured {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.featured-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,  rgba(10,10,15,0.55) 0%, transparent 30%),
    linear-gradient(to top,     rgba(10,10,15,0.75) 0%, transparent 40%),
    linear-gradient(135deg,     rgba(0,200,170,0.08) 0%, transparent 60%);
}
.featured-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
  max-width: 860px;
}
.featured-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.featured-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s 0.1s var(--ease), transform 0.9s 0.1s var(--ease);
}
.featured-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s 0.2s var(--ease), transform 0.8s 0.2s var(--ease);
}
.featured-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(0,200,170,0.4);
  border-radius: 2px;
  padding: 0.65rem 1.4rem;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s 0.32s var(--ease), transform 0.8s 0.32s var(--ease),
              background var(--t-fast), border-color var(--t-fast);
}
.featured-link:hover {
  background: rgba(0,200,170,0.12);
  border-color: var(--accent);
}
.section-featured.featured-visible .featured-eyebrow,
.section-featured.featured-visible .featured-title,
.section-featured.featured-visible .featured-desc,
.section-featured.featured-visible .featured-link {
  opacity: 1;
  transform: translateY(0);
}
body.lang-jp .featured-title,
body.lang-jp .featured-desc { font-family: var(--font-jp), sans-serif; }


/* ============================================================
   TIMELINE / ACHIEVEMENTS
   ============================================================ */
.timeline {
  position: relative;
  padding-inline-start: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--accent) 15%, var(--accent) 85%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease);
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item:last-child { padding-bottom: 0; }

/* Dot on the timeline line */
.timeline-dot {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: -2.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(calc(50% - 0.5px));
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.timeline-item:hover .timeline-dot::after { opacity: 1; }

.timeline-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.timeline-item:hover .timeline-card {
  border-color: var(--border-hover);
  background: rgba(0, 200, 170, 0.03);
}

.timeline-award {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 0.4rem;
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 0.6rem;
  color: var(--text);
}
body.lang-jp .timeline-title { font-family: var(--font-jp), sans-serif; font-weight: 500; }
.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.timeline-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.timeline-card--link:hover,
.timeline-card--link:focus-visible {
  border-color: var(--accent) !important;
  background: rgba(0, 200, 170, 0.06) !important;
  outline: none;
}
.timeline-link-label {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  opacity: 0.8;
  transition: opacity var(--t-fast);
}
.timeline-card--link:hover .timeline-link-label { opacity: 1; }


/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.925rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; font-size: 0.875rem; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 200, 170, 0.04);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  align-self: flex-start;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.btn-primary svg { width: 1rem; height: 1rem; }
.btn-primary:hover { opacity: 0.82; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 200, 170, 0.07);
  border: 1px solid rgba(0, 200, 170, 0.3);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.875rem;
  animation: fadeIn 0.4s ease;
}
.form-success svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Social links */
.contact-social { padding-top: 0.5rem; }
.social-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.social-links { display: flex; flex-direction: column; gap: 0.625rem; }

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.social-link:hover {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  color: var(--text);
  transform: translateX(5px);
}
.social-link-icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; color: var(--accent); }
.social-link-name { font-weight: 600; flex: 1; }
.social-link-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 10, 0.96);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }

.lightbox-media {
  max-width: min(90vw, 1100px);
  max-height: 85dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: 85dvh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

.lightbox-btn {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.lightbox-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.lightbox-btn svg { width: 1.1rem; height: 1.1rem; }

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }


/* ============================================================
   RESPONSIVE — Tablet (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image-wrap {
    max-width: 320px;
    margin-inline: auto;
  }

  .contact-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}


/* ============================================================
   RESPONSIVE — Mobile (max 480px / iPhone 375px target)
   ============================================================ */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  .hero-name { letter-spacing: -0.03em; }
  .hero-subtitle { letter-spacing: 0.05em; }

  .gallery-grid { columns: 2 140px; column-gap: 0.625rem; }
  .gallery-item { margin-bottom: 0.625rem; }

  .timeline { padding-inline-start: 1.75rem; }
  .timeline-dot { inset-inline-start: -1.75rem; }

  .about-image-deco { inset-inline-end: -0.75rem; inset-block-end: -0.75rem; }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-btn  { width: 2.25rem; height: 2.25rem; }

  .btn-primary { width: 100%; }
}

@media (max-width: 360px) {
  .gallery-grid { columns: 1; }
}
