/* ========================================
   BARTENEV VALERII — Film Director Portfolio
   Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors */
  --c-black: #050508;
  --c-dark: #0a0a10;
  --c-dark-blue: #0d1b2a;
  --c-navy: #1b2d45;
  --c-blue: #1b4965;
  --c-blue-light: #2e6f8e;
  --c-green: #00ff88;
  --c-green-dim: #00cc6a;
  --c-green-glow: rgba(0, 255, 136, 0.15);
  --c-green-glow-strong: rgba(0, 255, 136, 0.3);
  --c-white: #f0f0f5;
  --c-gray: #8892a0;
  --c-gray-light: #b0b8c4;
  --c-gray-dark: #2a2e38;
  --c-card-bg: rgba(13, 27, 42, 0.6);
  --c-card-border: rgba(0, 255, 136, 0.08);
  --c-overlay: rgba(5, 5, 8, 0.85);

  /* Typography */
  --f-display: 'Outfit', 'Noto Sans JP', sans-serif;
  --f-body: 'Inter', 'Noto Sans JP', sans-serif;
  --f-jp: 'Noto Sans JP', sans-serif;

  /* Sizes */
  --fs-hero: clamp(3rem, 8vw, 7rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --s-xs: 0.5rem;
  --s-sm: 1rem;
  --s-md: 1.5rem;
  --s-lg: 2.5rem;
  --s-xl: 4rem;
  --s-xxl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-h: 80px;

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Border radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-body);
  background: var(--c-black);
  color: var(--c-white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--c-green);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--c-green-dim);
}

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

button {
  cursor: pointer;
  font-family: var(--f-body);
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--c-green);
  color: var(--c-black);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--c-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--c-blue);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-green);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-md);
}

/* --- Section Base --- */
.section {
  padding: var(--s-xxl) 0;
  position: relative;
}

.section__title {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  margin-bottom: var(--s-xl);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--c-green);
  box-shadow: 0 0 10px var(--c-green-glow);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--t-base), box-shadow var(--t-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-card-border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

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

/* Japanese vertical accent near logo */
.logo::before {
  content: '映画監督';
  font-family: var(--f-jp);
  font-size: var(--fs-xs);
  font-weight: 300;
  writing-mode: vertical-rl;
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-gray);
  opacity: 0.4;
  letter-spacing: 0.2em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}

.nav__list {
  display: flex;
  gap: var(--s-md);
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--s-xs) 0;
  position: relative;
  transition: color var(--t-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-green);
  transition: width var(--t-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--c-green);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  border: 1px solid var(--c-gray-dark);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.lang-btn {
  padding: 6px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-gray);
  transition: all var(--t-fast);
  background: transparent;
}

.lang-btn:hover {
  color: var(--c-white);
  background: var(--c-gray-dark);
}

.lang-btn.active {
  color: var(--c-black);
  background: var(--c-green);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  border-radius: 1px;
  transition: all var(--t-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 255, 136, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(27, 73, 101, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(13, 27, 42, 0.8) 0%, var(--c-black) 70%);
  animation: heroGradient 12s ease-in-out infinite alternate;
}

@keyframes heroGradient {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Grid lines overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--s-md);
}

.hero__title {
  font-family: var(--f-display);
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: var(--s-md);
  background: linear-gradient(135deg, var(--c-white) 0%, var(--c-gray-light) 50%, var(--c-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleReveal 1.5s var(--t-slow) both;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__subtitle {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--c-green);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: var(--s-sm);
  animation: fadeUp 1s 0.3s both;
}

.hero__tagline {
  font-size: var(--fs-body);
  color: var(--c-gray);
  max-width: 500px;
  margin: 0 auto var(--s-lg);
  animation: fadeUp 1s 0.5s both;
}

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

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  padding: 14px 36px;
  border: 1px solid var(--c-green);
  color: var(--c-green);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--r-sm);
  transition: all var(--t-base);
  animation: fadeUp 1s 0.7s both;
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-green);
  transform: translateY(100%);
  transition: transform var(--t-base);
  z-index: -1;
}

.hero__cta:hover {
  color: var(--c-black);
}

.hero__cta:hover::before {
  transform: translateY(0);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* Japanese decorative vertical text */
.hero__jp-accent {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--f-jp);
  font-size: var(--fs-small);
  font-weight: 300;
  color: var(--c-gray);
  opacity: 0.15;
  letter-spacing: 0.5em;
  user-select: none;
  pointer-events: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s 1s both;
}

.hero__scroll span {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-gray);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   FEATURED WORKS (Home Page)
   ======================================== */
.featured {
  background: var(--c-dark);
  position: relative;
}

.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-green-glow), transparent);
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s-md);
}

/* ========================================
   PORTFOLIO CARDS
   ======================================== */
.card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-card-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-base);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px var(--c-green-glow);
}

.card__thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-dark-blue);
}

.card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.card:hover .card__thumbnail img {
  transform: scale(1.05);
}

/* Placeholder for missing thumbnails */
.card__thumbnail--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-dark-blue), var(--c-navy));
}

.card__thumbnail--placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--c-gray);
  opacity: 0.3;
}

.card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--t-base);
}

.card:hover .card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card__play svg {
  width: 20px;
  height: 20px;
  color: var(--c-black);
  margin-left: 2px;
}

.card__body {
  padding: var(--s-md);
}

.card__type {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-green);
  margin-bottom: var(--s-xs);
}

.card__title {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--s-xs);
  line-height: 1.3;
}

.card__year {
  font-size: var(--fs-xs);
  color: var(--c-gray);
  margin-bottom: var(--s-xs);
}

.card__desc {
  font-size: var(--fs-small);
  color: var(--c-gray-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-sm);
}

.card__tag {
  font-size: var(--fs-xs);
  padding: 3px 10px;
  border: 1px solid var(--c-gray-dark);
  border-radius: 20px;
  color: var(--c-gray);
  transition: all var(--t-fast);
}

.card:hover .card__tag {
  border-color: var(--c-blue);
}

/* ========================================
   PORTFOLIO PAGE
   ======================================== */
.portfolio-filters {
  display: flex;
  gap: var(--s-xs);
  margin-bottom: var(--s-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: var(--fs-small);
  font-weight: 500;
  border: 1px solid var(--c-gray-dark);
  border-radius: var(--r-sm);
  color: var(--c-gray-light);
  transition: all var(--t-fast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-btn:hover {
  border-color: var(--c-blue-light);
  color: var(--c-white);
}

.filter-btn.active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-black);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s-md);
}

.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s-xxl) 0;
  color: var(--c-gray);
  font-size: var(--fs-h3);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
  padding-top: calc(var(--header-h) + var(--s-xl));
  min-height: 50vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(27, 73, 101, 0.1) 0%, transparent 50%),
    var(--c-dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-xl);
  align-items: start;
}

.about-photo {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--c-dark-blue), var(--c-navy));
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Japanese-inspired decorative frame */
.about-photo::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--r-sm);
  pointer-events: none;
  z-index: 1;
}

.about-photo__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--f-jp);
  font-size: 5rem;
  color: var(--c-gray);
  opacity: 0.1;
}

.about-text h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  margin-bottom: var(--s-md);
}

.about-text p {
  color: var(--c-gray-light);
  margin-bottom: var(--s-md);
  line-height: 1.8;
}

.about-statement {
  background: var(--c-dark);
  position: relative;
}

.about-statement blockquote {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  color: var(--c-white);
  line-height: 1.8;
  font-weight: 300;
  padding-left: var(--s-lg);
  border-left: 2px solid var(--c-green);
  max-width: 800px;
}

/* Resume button */
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--c-green);
  color: var(--c-green);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--r-sm);
  transition: all var(--t-base);
  margin-top: var(--s-md);
}

.btn-resume:hover {
  background: var(--c-green);
  color: var(--c-black);
}

.btn-resume svg {
  width: 16px;
  height: 16px;
}

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-md);
}

.award-card {
  padding: var(--s-lg);
  background: var(--c-card-bg);
  border: 1px solid var(--c-card-border);
  border-radius: var(--r-md);
  transition: all var(--t-base);
}

.award-card:hover {
  border-color: rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.award-card__year {
  font-size: var(--fs-xs);
  color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-xs);
}

.award-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--s-xs);
}

.award-card__org {
  font-size: var(--fs-small);
  color: var(--c-gray);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-hero {
  padding-top: calc(var(--header-h) + var(--s-xl));
  min-height: 50vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 60% 60%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
    var(--c-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-card-bg);
  border: 1px solid var(--c-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  color: var(--c-green);
}

.contact-info__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gray);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: var(--fs-body);
  color: var(--c-white);
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--s-sm);
  margin-top: var(--s-sm);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.social-link:hover {
  border-color: var(--c-green);
  background: var(--c-green-glow);
}

.social-link svg {
  width: 18px;
  height: 18px;
  color: var(--c-gray-light);
  transition: color var(--t-fast);
}

.social-link:hover svg {
  color: var(--c-green);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-card-border);
  border-radius: var(--r-md);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  transition: border-color var(--t-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px var(--c-green-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-gray);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  padding: 16px 40px;
  background: var(--c-green);
  color: var(--c-black);
  font-size: var(--fs-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--r-sm);
  transition: all var(--t-base);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--c-green-dim);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.form-message {
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  display: none;
}

.form-message.success {
  display: block;
  background: var(--c-green-glow);
  border: 1px solid var(--c-green);
  color: var(--c-green);
}

.form-message.error {
  display: block;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff5050;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: var(--s-xl) 0;
  border-top: 1px solid var(--c-card-border);
  background: var(--c-black);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-body);
  letter-spacing: 0.05em;
}

.footer__credit {
  font-size: var(--fs-xs);
  color: var(--c-gray);
}

.footer__right {
  font-size: var(--fs-xs);
  color: var(--c-gray);
}

/* ========================================
   LIGHTBOX / MODAL
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--c-overlay);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  max-width: 960px;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 1.5rem;
  transition: color var(--t-fast);
  z-index: 2001;
}

.lightbox__close:hover {
  color: var(--c-green);
}

.lightbox__video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-dark);
}

.lightbox__video iframe,
.lightbox__video video {
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox__image {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
}

.lightbox__image img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__info {
  margin-top: var(--s-sm);
  text-align: center;
}

.lightbox__title {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--s-xs);
}

.lightbox__desc {
  font-size: var(--fs-small);
  color: var(--c-gray-light);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--t-slow);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */
.page-header {
  padding-top: calc(var(--header-h) + var(--s-xxl));
  padding-bottom: var(--s-xl);
  position: relative;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(27, 73, 101, 0.1) 0%, transparent 50%),
    var(--c-dark);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-card-border), transparent);
}

.page-header__title {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Japanese accent for page headers */
.page-header__jp {
  font-family: var(--f-jp);
  font-size: var(--fs-xs);
  color: var(--c-gray);
  opacity: 0.4;
  margin-top: var(--s-xs);
  letter-spacing: 0.3em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 400px;
  }

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + var(--s-lg)) var(--s-lg) var(--s-lg);
    transition: right var(--t-base);
    z-index: 999;
    border-left: 1px solid var(--c-card-border);
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: var(--s-md);
    width: 100%;
  }

  .nav__link {
    font-size: var(--fs-body);
    display: block;
    padding: var(--s-xs) 0;
  }

  .lang-switcher {
    margin-top: auto;
  }

  .hero__jp-accent {
    display: none;
  }

  .logo::before {
    display: none;
  }

  .featured__grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .hero__title {
    letter-spacing: 0.04em;
  }
}

@media (max-width: 480px) {
  .hero__subtitle {
    letter-spacing: 0.15em;
    font-size: var(--fs-small);
  }

  .portfolio-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: var(--fs-xs);
  }
}
