/* ── Fonts ── */
@font-face { font-family: 'DM Serif Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/dm-serif-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-serif-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/inter.woff2') format('woff2'); }

/* ── Base ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#bg-container { position: fixed; inset: 0; z-index: 0; }
.bg-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease;
  will-change: opacity;
}
.bg-layer.active { opacity: 0.4; }

#bg-overlay { position: fixed; top: 0; left: 0; right: 0; height: 100vh; z-index: 1; background: rgba(0,0,0,0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; }

html, body { overflow-x: hidden; }
body { background: #111; font-family: 'Inter', sans-serif; }

#app {
  position: relative; z-index: 2; height: 100vh; height: 100dvh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; padding: 1rem; flex-shrink: 0;
}
@media (min-width: 640px) { #app { padding: 2rem; } }

#portfolio-container {
  width: 100%; max-width: 90rem; border-radius: 1rem; overflow: hidden;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.7),
    0 0 0 4px rgba(255,255,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 1px 0 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    inset -1px 0 0 rgba(0,0,0,0.25);
}

#viewport { position: relative; flex: 1; overflow: hidden; }

#slide-track { display: flex; height: 100%; will-change: transform; }
#slide-track.animating { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.slide { flex-shrink: 0; position: relative; }

#progress-track { background: rgba(255,255,255,0.15); }
#progress-thumb {
  transition: width 0.4s ease;
  background: linear-gradient(90deg, #ff3cb4, #ff80d0, rgba(255,60,180,0.30));
}

.slide img { transition: opacity 0.4s ease; }

nav a:hover { color: #ff3cb4 !important; }
.cut-text, nav a, footer p, footer span, button span {
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 -1px 0 rgba(255,255,255,0.04);
}
.wordmark {
  font-family: 'Inter', sans-serif; font-weight: 300; letter-spacing: 0.35em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 -1px 0 rgba(255,255,255,0.04);
}
.slide-num   { font-family: 'Inter', sans-serif; font-weight: 300; }
.slide-title { font-family: 'Inter', sans-serif; font-weight: 400; }
.slide-cat   { font-family: 'Inter', sans-serif; font-weight: 300; }

#mobile-logo-wrap, #mobile-spacer { display: none; }

@media (max-width: 767px) {
  #app { flex-direction: column; align-items: center; justify-content: center; padding: 0 5%; gap: 0; min-height: 100vh; }
  #mobile-logo-wrap { display: flex !important; flex: 1; align-items: center; justify-content: center; }
  #mobile-logo {
    display: block; text-align: center; color: white;
    font-family: 'Inter', sans-serif; font-weight: 300; letter-spacing: 0.35em;
    font-size: 1.1rem; text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 -1px 0 rgba(255,255,255,0.04);
  }
  #mobile-spacer { display: block !important; flex: 1; }
  #portfolio-container { width: 90%; max-width: 90%; }
  #viewport header { display: none; }
  #btn-prev, #btn-next { display: none; }
  .slide-num   { font-size: 1.5rem; }
  .slide-title { font-size: 1rem; }
  #main-footer { flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 6px; padding: 12px 24px !important; }
  #main-footer > div { order: 1; }
  #footer-tagline    { order: 2; }
  #slide-index { display: none; }
}

/* ── Scroll cue ── */
#scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.2); font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 300;
  animation: nudge 2.2s ease-in-out infinite; pointer-events: none; z-index: 10;
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Bokeh ── */
.bokeh {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.bokeh span {
  position: absolute; border-radius: 50%;
  opacity: 0; pointer-events: none;
  animation: bokeh-float linear infinite;
}
@-webkit-keyframes bokeh-float {
  0%   { -webkit-transform: translateY(0);     opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { -webkit-transform: translateY(-120%); opacity: 0; }
}
@keyframes bokeh-float {
  0%   { transform: translateY(0);     opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* ── About ── */
#about {
  min-height: 100vh; background: radial-gradient(ellipse at 75% 10%, #2a0520 0%, #1a0318 35%, #0a050f 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 2rem; position: relative; overflow: hidden;
}
#about::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.06);
}
.about-wrap {
  max-width: 1080px; width: 100%;
  display: grid; grid-template-columns: 400px 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 2;
}
.photo-frame {
  border-radius: 1rem; overflow: hidden; aspect-ratio: 4/5;
  background: #1c1c1c;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.7),
    0 0 0 4px rgba(255,255,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 1px 0 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    inset -1px 0 0 rgba(0,0,0,0.25);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio { display: flex; flex-direction: column; }
.bio-tag {
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,100,200,0.80); font-weight: 300; margin-bottom: 20px;
}
.bio-headline {
  font-family: 'DM Serif Display', serif; font-style: italic;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.15;
  color: white; font-weight: 400; margin-bottom: 28px;
  text-shadow: 0 0 80px rgba(255,60,180,0.35);
}
.bio-rule { width: 36px; height: 1px; background: rgba(255,60,180,0.7); margin-bottom: 28px; box-shadow: 0 0 14px rgba(255,60,180,0.5); }
.bio-body {
  font-size: 0.875rem; line-height: 1.9;
  color: rgba(255,255,255,0.48); font-weight: 300; margin-bottom: 28px;
}
.subjects-label {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); font-weight: 300; margin-bottom: 12px;
}
.subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.subject-tag {
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255,60,180,0.35);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,140,220,0.90); font-weight: 300;
  background: rgba(255,30,150,0.08);
}
.bio-closing {
  font-size: 0.875rem; line-height: 1.9;
  color: rgba(255,255,255,0.48); font-weight: 300; margin-bottom: 36px;
}
.bio-cta {
  display: inline-flex; align-items: center; gap: 12px;
  color: white; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  text-decoration: none; font-weight: 300;
  padding-bottom: 5px; border-bottom: 1px solid rgba(255,60,180,0.45);
  width: fit-content; transition: border-color 0.25s, text-shadow 0.25s;
}
.bio-cta:hover { border-color: rgba(255,255,255,0.6); }
.bio-cta svg { transition: transform 0.25s; }
.bio-cta:hover svg { transform: translateX(5px); }

@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; gap: 48px; }
  .photo-frame { max-width: 300px; margin: 0 auto; }
  #about { padding: 70px 1.5rem; }
  #scroll-cue { display: none; }
}

/* ── Contact ── */
#contact {
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 50%, #150808 0%, #0a0505 40%, #050202 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 2rem; position: relative; overflow: hidden;
}
#contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.06);
}
.stars-layer {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.leak {
  position: absolute; pointer-events: none;
  opacity: 0; border-radius: 999px;
  animation: leak ease-in-out infinite;
  transform-origin: center center;
}
@keyframes leak {
  0%   { opacity: 0; transform: translateX(-8%) rotate(-18deg) scaleX(1); }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(8%) rotate(-18deg) scaleX(1); }
}
.contact-wrap {
  position: relative; z-index: 2;
  max-width: 680px; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
}
.contact-tag {
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,100,200,0.80); font-weight: 300; margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.contact-headline {
  font-family: 'DM Serif Display', serif; font-style: italic;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1;
  color: white; font-weight: 400; margin-bottom: 12px;
  text-shadow: 0 0 80px rgba(255,60,180,0.35);
}
.contact-sub {
  font-size: 0.875rem; color: rgba(255,255,255,0.35);
  font-weight: 300; margin-bottom: 48px; line-height: 1.7;
  font-family: 'Inter', sans-serif;
}
.contact-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); font-weight: 300;
  font-family: 'Inter', sans-serif;
}
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px; color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 300;
  padding: 12px 16px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: none; width: 100%; box-sizing: border-box;
  -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.18); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(255,60,180,0.50);
  box-shadow: 0 0 0 3px rgba(255,60,180,0.08), 0 0 20px rgba(255,60,180,0.12);
}
.field select option { background: #0a0a1a; color: white; }
.form-submit {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 1px solid rgba(255,60,180,0.40);
  border-radius: 6px; color: white;
  font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 300; padding: 14px 28px;
  cursor: pointer; margin-top: 8px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-submit:hover {
  border-color: rgba(255,100,200,0.80);
  box-shadow: 0 0 24px rgba(255,60,180,0.15);
  background: rgba(255,60,180,0.06);
}
.form-submit svg { transition: transform 0.25s; }
.form-submit:hover svg { transform: translateX(4px); }
.contact-rule { width: 36px; height: 1px; background: rgba(255,60,180,0.50); margin: 44px 0 28px; box-shadow: 0 0 12px rgba(255,60,180,0.35); }
.socials-label {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); font-weight: 300; margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255,60,180,0.20);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,140,220,0.70); font-weight: 300;
  background: rgba(255,30,150,0.05); text-decoration: none;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
  font-family: 'Inter', sans-serif;
}
.social-link:hover {
  border-color: rgba(255,100,200,0.60);
  color: white; box-shadow: 0 0 16px rgba(255,60,180,0.12);
}
.social-link svg { opacity: 0.6; flex-shrink: 0; }
.social-link:hover svg { opacity: 1; }

@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
  #contact { padding: 70px 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bg-layer { transition: none !important; filter: none !important; }
}
