/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Google+Sans+Display:wght@300;400&display=swap');

/* ── VARIABLES ── */
:root {
  --purple-light: #c9a7eb;
  --purple-mid:   #7b3fa0;
  --purple-dark:  #2a0a3a;
  --near-black:   #0a0010;
  --text-primary: #f0e8ff;
  --text-dim:     #a989c5;
  --accent:       #d4a8ff;
  --nav-h: 70px;
  --font-body:    'Google Sans', sans-serif;
  --font-display: 'Google Sans Display', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BODY ── */
body {
  background: linear-gradient(160deg, #1a0a2e 0%, #0d0118 40%, #000008 100%);
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* ════════════════════════════
   NAVBAR
════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: linear-gradient(to bottom, rgba(10,0,24,.92), rgba(10,0,24,0));
  backdrop-filter: blur(6px);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: .35em;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 200;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease, width .3s ease;
  transform-origin: center;
}
.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 70%; margin-left: auto; }
.hamburger span:nth-child(3) { width: 100%; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 100%; }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Side menu */
.nav-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: linear-gradient(135deg, rgba(42,10,58,.97) 0%, rgba(10,0,16,.99) 100%);
  border-left: 1px solid rgba(201,167,235,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.77,0,.175,1);
  z-index: 150;
}
.nav-menu.open { transform: translateX(0); }
.nav-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--text-dim);
  text-decoration: none;
  padding: .5rem 0;
  position: relative;
  transition: color .25s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s ease;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { width: 100%; }

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
  z-index: 140;
}
.overlay.active { opacity: 1; pointer-events: all; }

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

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

/* ════════════════════════════
   INDEX — HERO
════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(123,63,160,.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  animation: fadeUp .9s ease both;
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: clamp(.75rem, 1.5vw, .95rem);
  letter-spacing: .45em;
  color: var(--text-dim);
  text-transform: uppercase;
  animation: fadeUp .9s .2s ease both;
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  animation: fadeUp .9s .5s ease both;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--purple-mid), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* ════════════════════════════
   INDEX — SECTION LABEL
════════════════════════════ */
.section-label {
  text-align: center;
  padding: 4rem 1rem 2rem;
  position: relative;
  z-index: 1;
}
.section-label h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.section-label .rule {
  margin: 1rem auto 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

/* ════════════════════════════
   INDEX — GALLERY GRID
════════════════════════════ */
.gallery {
  display: grid;
  gap: 4px;
  padding: 0 4px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 2rem;
    gap: 6px;
  }
}
@media (max-width: 767px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
  }
}

.photo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: rgba(201,167,235,.06);
  cursor: pointer;
}
@media (max-width: 767px) {
  .photo-card {
    aspect-ratio: auto;
    height: 100vw;
  }
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.9) saturate(.85);
  transition: transform .6s cubic-bezier(.25,.46,.45,.94), filter .6s ease;
}
.photo-card:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.1);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-dim);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: transform .6s ease;
}
.photo-card:hover .photo-placeholder { transform: scale(1.03); }
.photo-placeholder svg { width: 36px; height: 36px; opacity: .35; }

.card-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem .9rem;
  background: linear-gradient(to top, rgba(5,0,12,.85) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform .4s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.photo-card:hover .card-caption { transform: translateY(0); }
.card-caption span {
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.card-caption em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}

.card-bg-1 { background: linear-gradient(135deg, #1a0832 0%, #0d0020 100%); }
.card-bg-2 { background: linear-gradient(135deg, #0f0520 0%, #180a28 100%); }
.card-bg-3 { background: linear-gradient(135deg, #200935 0%, #0a0015 100%); }

/* ════════════════════════════
   A_PROPOS — PAGE HEADER
════════════════════════════ */
.page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-header .eyebrow {
  font-size: .68rem;
  letter-spacing: .45em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: .9rem;
  animation: fadeUp .7s ease both;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-primary);
  animation: fadeUp .7s .1s ease both;
}
.page-header .rule {
  margin: 1.4rem auto 0;
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  animation: fadeUp .7s .2s ease both;
}

/* ════════════════════════════
   A_PROPOS — LAYOUT
════════════════════════════ */
.about-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
@media (min-width: 768px) {
  .about-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 5rem;
    align-items: start;
  }
  .photo-col {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
  .text-col { padding-top: .5rem; }
}
@media (max-width: 767px) {
  .about-layout { display: block; }
  .photo-col { margin-bottom: 0; }
  .text-col { padding: 2.5rem 0 0; }
}

/* ── Portrait ── */
.portrait-frame {
  position: relative;
  width: 100%;
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(201,167,235,.15);
  pointer-events: none;
  z-index: 2;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 10px;
  right: -10px;
  height: 100%;
  background: linear-gradient(135deg, rgba(123,63,160,.18), rgba(10,0,20,.4));
  z-index: -1;
  filter: blur(2px);
}
.portrait-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: brightness(.88) saturate(.8) sepia(.08);
}
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1e0835 0%, #0d0120 60%, #050010 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
}
.portrait-placeholder svg { width: 48px; height: 48px; opacity: .3; }
.portrait-placeholder span {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .5;
}

/* Name tag */
.name-tag { margin-top: 1.4rem; padding-left: .2rem; }
.name-tag h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: .18em;
  color: var(--text-primary);
}
.name-tag p {
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: .35rem;
}

/* ── Bio ── */
.bio-section { margin-bottom: 3rem; }
.bio-section .section-tag {
  font-size: .65rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  opacity: .8;
}
.bio-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}
.bio-section p {
  font-size: .88rem;
  line-height: 1.95;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.bio-section p:last-child { margin-bottom: 0; }

.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--purple-mid), transparent);
  margin: 2.5rem 0;
}

/* ── Contact ── */
.contact-section .section-tag {
  font-size: .65rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  opacity: .8;
}
.contact-cards { display: flex; flex-direction: column; gap: .8rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(201,167,235,.1);
  background: rgba(201,167,235,.03);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(123,63,160,.12), transparent);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.contact-card:hover { border-color: rgba(201,167,235,.3); background: rgba(201,167,235,.06); }
.contact-card:hover::before { transform: translateX(0); }
.contact-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,167,235,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.contact-info { display: flex; flex-direction: column; gap: .2rem; }
.contact-info .label {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: .7;
}
.contact-info .value {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: .05em;
  color: var(--text-primary);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(201,167,235,.1);
  background: linear-gradient(to bottom, transparent, rgba(5,0,12,.8));
  padding: 4rem 2.5rem 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
  font-size: .78rem;
  line-height: 1.85;
  color: var(--text-dim);
  text-decoration: none;
  display: block;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,167,235,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .68rem;
  letter-spacing: .15em;
  color: rgba(169,137,197,.4);
  text-transform: uppercase;
}