/* ===================================
   BASE
   =================================== */

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

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --text: #b0aaaa;
  --text-muted: #5a5555;
  --text-bright: #d8d2d2;
  --accent: #8a8080;
  --border: #1e1e1e;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #2a2525;
  color: var(--text-bright);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-bright);
}

img {
  display: block;
  max-width: 100%;
}

/* ===================================
   FILM GRAIN OVERLAY
   =================================== */

.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(2) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, -1%); }
  50% { transform: translate(1%, 1.5%); }
  75% { transform: translate(-0.5%, 0.5%); }
  100% { transform: translate(0, 0); }
}

/* ===================================
   SCROLL PROGRESS BAR
   =================================== */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--text-muted);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ===================================
   CURSOR GLOW
   =================================== */

.cursor-glow {
  position: fixed;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(180, 170, 160, 0.03) 0%,
    rgba(180, 170, 160, 0.01) 40%,
    transparent 70%
  );
  will-change: left, top;
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  mix-blend-mode: difference;
}

.nav-mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.1em;
}

.nav-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translateY(5px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translateY(-5px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.nav-overlay.open a {
  transform: translateY(0);
  opacity: 1;
}

.nav-overlay.open a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.open a:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.open a:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.open a:nth-child(4) { transition-delay: 0.4s; }

.nav-overlay a:hover {
  color: var(--text-bright);
}

/* ===================================
   HERO
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 6rem 3rem 3rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* Portrait bloom background */
.portrait-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(90, 75, 60, 0.18) 0%,
    rgba(60, 50, 40, 0.08) 40%,
    transparent 70%
  );
  animation: bloomPulse 7s ease-in-out infinite;
  z-index: 0;
}

@keyframes bloomPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.hero-portrait {
  width: 220px;
  height: 280px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.5s ease 0.3s forwards, portraitReveal 5s ease 1.5s forwards;
  filter: grayscale(100%) contrast(0.9) brightness(0.65);
}

@keyframes portraitReveal {
  0%   { filter: grayscale(100%) contrast(0.9)  brightness(0.65); }
  100% { filter: grayscale(15%)  contrast(0.97) brightness(0.88); }
}

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

/* Vignette overlay */
.portrait-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.hero-text {
  text-align: center;
  overflow: hidden;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Split text character animation */
.hero-text h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: charIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-text h1 .char-space {
  display: inline-block;
  width: 0.3em;
}

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

.scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

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

@keyframes charIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   SECTIONS
   =================================== */

.section {
  padding: 8rem 3rem;
  border-top: 1px solid var(--border);
  position: relative;
}

/* Animated border draw */
.section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--text-muted);
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.section.in-view::before {
  width: 100%;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 3rem;
}

.section-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 0.4rem;
}

.section-content {
  max-width: 600px;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-bright);
  margin-bottom: 2rem;
}

.section-content p + p {
  margin-top: 1.2rem;
}

/* ===================================
   DISCIPLINES
   =================================== */

.disciplines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.discipline {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  transition: transform 0.4s ease;
}

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

.discipline-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.discipline h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
}

.discipline p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================
   LISTEN / AUDIO
   =================================== */

.audio-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 40px;
  margin-top: 3rem;
  opacity: 0.3;
}

.audio-bars span {
  display: block;
  width: 2px;
  background: var(--text-muted);
  animation: bar 1.8s ease-in-out infinite;
}

.audio-bars span:nth-child(1)  { height: 15px; animation-delay: 0.0s; }
.audio-bars span:nth-child(2)  { height: 25px; animation-delay: 0.1s; }
.audio-bars span:nth-child(3)  { height: 10px; animation-delay: 0.2s; }
.audio-bars span:nth-child(4)  { height: 35px; animation-delay: 0.15s; }
.audio-bars span:nth-child(5)  { height: 20px; animation-delay: 0.3s; }
.audio-bars span:nth-child(6)  { height: 30px; animation-delay: 0.05s; }
.audio-bars span:nth-child(7)  { height: 12px; animation-delay: 0.25s; }
.audio-bars span:nth-child(8)  { height: 28px; animation-delay: 0.35s; }
.audio-bars span:nth-child(9)  { height: 18px; animation-delay: 0.1s; }
.audio-bars span:nth-child(10) { height: 32px; animation-delay: 0.2s; }
.audio-bars span:nth-child(11) { height: 8px;  animation-delay: 0.4s; }
.audio-bars span:nth-child(12) { height: 22px; animation-delay: 0.15s; }
.audio-bars span:nth-child(13) { height: 38px; animation-delay: 0.05s; }
.audio-bars span:nth-child(14) { height: 14px; animation-delay: 0.3s; }
.audio-bars span:nth-child(15) { height: 26px; animation-delay: 0.2s; }
.audio-bars span:nth-child(16) { height: 10px; animation-delay: 0.35s; }
.audio-bars span:nth-child(17) { height: 30px; animation-delay: 0.1s; }
.audio-bars span:nth-child(18) { height: 16px; animation-delay: 0.25s; }
.audio-bars span:nth-child(19) { height: 20px; animation-delay: 0.0s; }
.audio-bars span:nth-child(20) { height: 34px; animation-delay: 0.15s; }

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

/* ===================================
   CONTACT
   =================================== */

.section-contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--text-bright);
  border-color: var(--text);
}

.location {
  margin-top: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  padding: 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  border-top: 1px solid var(--border);
}

/* ===================================
   REVEAL ANIMATIONS
   =================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay {
  transition-delay: 0.2s;
}

/* ===================================
   SMOOTH SCROLL (lenis-like)
   =================================== */

html.smooth-scroll {
  scroll-behavior: auto;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }

  .nav {
    padding: 1.5rem 1.5rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-portrait {
    width: 160px;
    height: 210px;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-label {
    padding-top: 0;
  }

  .disciplines {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .discipline:hover {
    transform: none;
  }
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}
