/* ═══════════════════════════════════════════════════════════════
   KIM YEWON — VIOLINIST  |  styles.css
   Theme: midnight blue · black · white · silver
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --midnight:    #06090f;
  --navy-deep:   #080e1c;
  --navy:        #0c1628;
  --blue-mid:    #162a50;
  --blue-soft:   #1e3f78;
  --blue-accent: #3060a8;
  --silver:      #8aa0bc;
  --silver-light:#b8cce0;
  --silver-pale: #dde8f2;
  --white:       #ffffff;
  --off-white:   #f2f5f8;
  --text-dark:   #0d1420;
  --text-mid:    #3a4a60;
  --text-light:  #7a8fa8;

  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-sans:   'Montserrat', 'Helvetica Neue', sans-serif;
  --font-korean: 'Noto Sans KR', sans-serif;

  --nav-h:  70px;
  --gap:    clamp(1.5rem, 4vw, 3rem);
  --radius: 3px;
  --ease:   cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body.ko { font-family: var(--font-korean), var(--font-sans); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── UTILITY ────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.section-header.light h2 { color: var(--white); }
.section-header.light .section-tag { color: var(--silver-light); border-color: var(--silver-light); }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
  border-bottom: 1px solid var(--blue-accent);
  padding-bottom: 5px;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#navbar.scrolled {
  background: rgba(6, 9, 15, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--white);
}

.logo-main {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: right;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-persistent {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--silver-light);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.7);
  padding: 2px 4px;
  transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active { color: #ffffff; }

.lang-sep { color: rgba(255,255,255,.4); font-size: 0.7rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

/* Background photo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gradient overlay: dark on left/bottom, lighter on right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(6, 9, 15, 0.90) 0%,
      rgba(6, 9, 15, 0.70) 45%,
      rgba(6, 9, 15, 0.20) 100%
    ),
    linear-gradient(
      to top,
      rgba(6, 9, 15, 0.80) 0%,
      transparent 55%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
  max-width: 680px;
}

.hero-eyebrow {
  font-size: clamp(0.6rem, 1.6vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--silver-light);
  margin-bottom: 1.4rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 15vw, 12rem);
  font-weight: 300;
  color: var(--white);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}

.hero-name em {
  font-style: italic;
  color: var(--silver-light);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.7rem, 1.8vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  line-height: 2.1;
  margin-bottom: 2.5rem;
}

.btn-hero {
  display: inline-block;
  padding: 0.85em 2.8em;
  border: 1px solid rgba(184, 204, 224, 0.6);
  color: var(--silver-light);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-hero:hover {
  background: var(--silver-light);
  border-color: var(--silver-light);
  color: var(--midnight);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.45));
  margin: 0 auto;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════════ */
#about {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 290px 1fr 195px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.about-photo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(6, 9, 15, 0.28);
  aspect-ratio: 2 / 3;
  background: var(--navy);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.bio-block p {
  font-size: clamp(0.87rem, 1.8vw, 0.99rem);
  color: var(--text-mid);
  line-height: 1.9;
}

.bio-block p strong { color: var(--navy); font-weight: 600; }

/* Right-margin callout column */
.about-callouts {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(12, 22, 40, 0.12);
}

.callout-title {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 1rem;
}

.callout-list { list-style: none; }

.callout-list li {
  font-family: var(--font-serif);
  font-size: 0.83rem;
  color: var(--text-mid);
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(12, 22, 40, 0.06);
  line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════════════
   MEDIA
══════════════════════════════════════════════════════════════════ */
#media {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--off-white);
}

.media-sub-heading {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-accent);
  border-bottom: 1px solid var(--blue-accent);
  padding-bottom: 3px;
  margin-bottom: 1.5rem;
}

/* ── GALLERY GRID ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: start;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s var(--ease);
}

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

/* ══════════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════════ */
#contact {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg,
      #050810 0%,
      #0c1628 55%,
      #08122a 100%);
  z-index: 0;
}

/* Subtle diagonal stripes */
.contact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 40px,
    rgba(255,255,255,.012) 40px,
    rgba(255,255,255,.012) 42px
  );
}

#contact .container { position: relative; z-index: 1; }

.contact-mailto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.contact-invite {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: rgba(255,255,255,.55);
  font-style: italic;
  max-width: 520px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,.5);
  transition: color 0.25s;
}

.contact-action:hover { color: var(--silver-light); }

.contact-action svg {
  width: 30px;
  height: 30px;
}

.contact-action span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
#footer {
  background: var(--midnight);
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}

.footer-nav a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--silver-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,.2);
  margin: 0;
}

.footer-credit {
  font-size: 0.65rem;
  color: rgba(255,255,255,.15);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 5, 10, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 88vh;
}

.lightbox-img-wrap img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
  display: block;
}

.lightbox.open .lightbox-img-wrap img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
  transition: color 0.2s;
  z-index: 3010;
}

.lightbox-close svg { width: 28px; height: 28px; }
.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 3.5rem;
  font-family: var(--font-serif);
  cursor: pointer;
  padding: 1rem 1.25rem;
  line-height: 1;
  transition: color 0.2s;
  z-index: 3010;
  user-select: none;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,.35);
  font-family: var(--font-sans);
}

/* ══════════════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.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; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1050px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
  }

  .about-callouts {
    grid-column: 1 / -1;
    position: static;
    flex-direction: row;
    gap: 3rem;
    border-left: none;
    border-top: 1px solid rgba(12, 22, 40, 0.1);
    padding-left: 0;
    padding-top: 2rem;
  }

  .callout-group { flex: 1; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo-frame { aspect-ratio: 2/3; max-width: 340px; }
  .hero-content { max-width: 100%; }
}

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

  .nav-right {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6, 9, 15, 0.65);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    pointer-events: none;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .nav-right.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
  }

  .lang-switcher {
    justify-content: flex-start;
    padding-top: 0.3rem;
  }

  .lang-btn { font-size: 0.78rem; }

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

  .lightbox-prev,
  .lightbox-next { display: none; }

  .lightbox-img-wrap img {
    max-width: 96vw;
    max-height: 82vh;
  }
}

@media (max-width: 540px) {
  .photo-frame { max-width: 280px; margin: 0 auto; }

  .about-callouts {
    flex-direction: column;
    gap: 2rem;
  }

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

  .hero-name {
    font-size: clamp(3.5rem, 20vw, 5rem);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
