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

:root {
  --bg:        #0a0a0a;
  --bg-alt:    #161616;
  --surface:   #101010;
  --text:      #f2f2f2;
  --text-muted:#8c8c8c;
  --accent:    #e0e0e0;
  --accent2:   #8a8a8a;
  --border:    #262626;
  --radius:    12px;
  --nav-h:     64px;
  --ff-head:   'Poppins', sans-serif;
  --ff-body:   'Poppins', sans-serif;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Nav ── */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-head);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.nav-emblem {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.nav-bar nav {
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-bar nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-bar nav a:hover,
.nav-bar nav a.active { color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 1; }

.hero-sub {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-logo {
  width: auto;
  max-width: min(640px, 90vw);
  height: auto;
  margin: 0 auto 28px;
  object-fit: contain;
}

.hero-tagline {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-emblem {
  width: auto;
  height: clamp(70px, 12vw, 110px);
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.95;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1.5px solid var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  background: transparent;
  font-family: var(--ff-body);
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-full {
  width: 100%;
  text-align: center;
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-full:hover {
  background: transparent;
  color: var(--text);
}

/* ── Sections ── */
.section { padding: 100px 0; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 560px;
}

/* ── Bio ── */
.bio-section { background: var(--surface); }

/* Top-align the photo with the heading instead of vertical-centering */
.bio-section .two-col { align-items: start; }

.bio-image-wrap {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.bio-image-wrap img {
  border-radius: 0;
  width: 100%;
  height: auto;            /* show the full photo, no cropping */
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.bio-image-wrap:hover img {
  filter: grayscale(0%);
}

.bio-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  min-height: 440px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.bio-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-family: var(--ff-head);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Gallery ── */
.gallery-section { background: var(--bg); }

.gallery-section > .container > h2,
.portfolio-section > .container > h2 {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform var(--transition), filter var(--transition);
}

.gallery-item:hover img,
.gallery-item.revealed img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-title { display: none; }

.gallery-overlay p {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.gallery-title {
  font-weight: 600;
}

.gallery-credit {
  margin-top: 4px;
  font-size: 0.68rem !important;
  font-weight: 500;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65) !important;
}

.gallery-item:hover .gallery-overlay,
.gallery-item.revealed .gallery-overlay { opacity: 1; }

/* ── Portfolio ── */
.portfolio-section { background: var(--surface); }

.spotify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.spotify-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}

.spotify-card-label {
  padding: 16px 20px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spotify-card iframe {
  display: block;
  border-radius: 0;
}

.spotify-single {
  max-width: 720px;
  margin: 0 auto;
}

.spotify-single iframe {
  display: block;
}

/* ── Contact ── */
.contact-section { background: var(--bg); }

.contact-layout { align-items: start; }

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item svg { flex-shrink: 0; color: var(--text); }
.contact-item a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-btn:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface);
}

/* ── Form ── */
.contact-form {
  background: var(--surface);
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text);
}

.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6fcf76;
}

.form-success.visible { display: block; }

.contact-emblem {
  display: block;
  width: auto;
  height: clamp(64px, 9vw, 96px);
  margin: 64px auto 0;
  object-fit: contain;
  opacity: 0.9;
}

/* ── Footer ── */
.footer {
  background: #000000;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ── Intro Animation ── */
body.intro-active { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ink-defs { position: absolute; width: 0; height: 0; }

.intro-text {
  font-family: 'Tangerine', 'Uncial Antiqua', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: 92vw;
  filter: url(#ink-filter);
  text-shadow: 0 0 1px rgba(242, 242, 242, 0.4);
  color: #f2f2f2;
  text-align: center;
  white-space: nowrap;
  /* "writing" reveal: wipe in from the left */
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  animation: intro-write 3.2s cubic-bezier(0.55, 0.1, 0.25, 1) 0.3s forwards;
}

@keyframes intro-write {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 0 0);    opacity: 1; }
}

.intro.is-leaving {
  animation: intro-out 0.9s ease forwards;
}

@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 600px) {
  .intro-text { white-space: normal; max-width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-text { animation: none; clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-bar { padding: 0 24px; }
  .container { padding: 0 24px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .spotify-grid { grid-template-columns: 1fr; }
  .bio-image-placeholder { min-height: 260px; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  /* hide the side emblems so they don't overlap the links; hero keeps the branding */
  .nav-logo { display: none; }
  .nav-bar { justify-content: center; padding: 0 16px; }
  .nav-bar nav {
    position: static;
    transform: none;
    gap: 18px;
  }
  .nav-bar nav a { font-size: 0.72rem; letter-spacing: 0.08em; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-form { padding: 28px 20px; }
  .stats-row { gap: 24px; }
  .hero h1 { font-size: 3rem; }
  /* 16px prevents iOS Safari from auto-zooming when an input is focused */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }
}
