/* Natalia Ramirez — portfolio
   Editorial fashion: dark, typographic, generous spacing.
   References: IMG / Elite profile structure, collaborations strip, dark image focus.
*/

:root {
  --bg: #050505;
  --bg-elev: #0c0c0c;
  --bg-soft: #121212;
  --text: #f4f1ea;
  --text-dim: #a8a29a;
  --text-faint: #6f6a64;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.22);
  --accent: #d4c4a8;
  --accent-dim: #8d806c;
  --danger: #c9a06a;
  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1280px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.logo span { font-style: italic; font-weight: 400; letter-spacing: 0.08em; text-transform: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a, .nav-link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav-link:hover, .nav a[aria-current="page"] { color: var(--text); }

.nav-book {
  border: 1px solid var(--line-strong);
  padding: 0.55rem 0.95rem;
  color: var(--text) !important;
  letter-spacing: 0.18em !important;
}
.nav-book:hover { border-color: var(--accent); color: var(--accent) !important; }

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0.55rem;
  width: 1.35rem;
  height: 1px;
  background: var(--text);
  content: "";
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.5rem var(--pad) 2rem;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.15fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #000;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 8vh, 6rem) var(--pad);
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
}
.stats-line {
  margin: 2rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
}
.stats-line .sep { color: var(--text-faint); padding: 0 0.55rem; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  color: var(--bg);
  background: var(--text);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-figure {
  position: relative;
  min-height: 70vh;
  background: #000;
  overflow: hidden;
}
.hero-figure img, .hero-figure picture, .hero-figure picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(90deg, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero-credit {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.7);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-figure { min-height: 72vh; order: -1; }
  .hero-figure::after {
    width: 100%;
    height: 40%;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, #000 0%, transparent 100%);
  }
  .hero-copy { padding-top: 2rem; padding-bottom: 3.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7.5rem) 0; }
.section-inner { width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; }
.section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 0.75rem;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 1.25rem;
}
.lead {
  max-width: 38rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}

/* ---------- Portfolio / sticky category nav ---------- */
.portfolio {
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 0;
}
.portfolio-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.tabs { display: flex; gap: 0; }
.tab {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  color: var(--text-faint);
  border: 1px solid var(--line);
}
.tab + .tab { border-left: 0; }
.tab[aria-selected="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.filters { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }
.filter {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.3rem 0;
  position: relative;
}
.filter:hover { color: var(--text-dim); }
.filter[aria-pressed="true"] { color: var(--text); }
.filter[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}

.portfolio-body { width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 3.5rem 0 6rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.5rem);
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
}

.tile {
  position: relative;
  cursor: pointer;
  background: transparent;
}
.tile-frame {
  overflow: hidden;
  background: #0a0a0a;
}
.tile img, .tile picture, .tile picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
  opacity: 0.96;
}
.tile:hover img { transform: scale(1.03); opacity: 1; }
.tile figcaption {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tile.is-hidden { display: none; }
.tile.wide img, .tile.wide picture img { aspect-ratio: 4 / 5; }

.digitals-panel { display: none; padding: 5rem 0 7rem; text-align: center; }
.digitals-panel.active { display: block; }
.gallery-wrap.hidden { display: none; }
.empty-note {
  color: var(--text-faint);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 4rem 0;
  text-align: center;
}
.placeholder-frame {
  border: 1px dashed var(--line-strong);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-dim);
  padding: 2rem;
}
.placeholder-frame p { margin: 0; max-width: 28rem; color: var(--text-faint); }


/* ---------- Reel / Motion ---------- */
.reel {
  background: #000;
  border-bottom: 1px solid var(--line);
}
.reel-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(220px, 0.8fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.reel-copy .lead { margin-bottom: 1.75rem; }
.music-credit {
  margin: 1.75rem 0 0;
  max-width: 28rem;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.music-credit cite { font-style: italic; color: var(--text-dim); }
.music-credit a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.music-credit a:hover { color: var(--text); border-bottom-color: var(--accent); }

.reel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.25rem;
}
.phone-frame {
  position: relative;
  width: min(100%, 300px);
  padding: 0.65rem;
  background: #111;
  border: 1px solid var(--line-strong);
  border-radius: 1.85rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.25rem;
  height: 0.28rem;
  background: #2a2a2a;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}
.phone-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 1.25rem;
  background: #000;
  display: block;
}
.reel-unmute {
  margin-top: 1rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.reel-unmute:hover { border-color: var(--accent); color: var(--accent); }
.reel-unmute[aria-pressed="true"] {
  color: var(--text-dim);
  border-color: var(--line);
}

@media (max-width: 800px) {
  .reel-grid { grid-template-columns: 1fr; }
  .reel-stage { order: -1; }
  .phone-frame { width: min(100%, 260px); }
}

/* ---------- About + stats card ---------- */
.about { background: var(--bg-elev); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-portrait {
  background: #000;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.about-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-portrait figcaption {
  margin-top: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.about-copy p { color: var(--text-dim); margin: 0 0 1.1rem; }
.placeholder-text { color: var(--text-faint); font-style: italic; }

.stats-card {
  margin: 2.25rem 0 2.5rem;
  border: 1px solid var(--line);
  padding: 1.35rem 1.5rem 1.15rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem 1.25rem;
}
.stats-card dt {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.25rem;
}
.stats-card dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.credits { margin: 2rem 0 0; }
.credits h3 {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-weight: 400;
  margin: 0 0 0.9rem;
}
.credits li {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.credits li:last-child { border-bottom: 1px solid var(--line); }
.credits .year { color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.08em; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 28rem; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  padding: 1.8rem 1.6rem 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
.service:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 2rem; }
.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}
.service p { margin: 0; color: var(--text-dim); }
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) {
    padding: 1.5rem 0;
    border-right: 0;
  }
}

/* ---------- Collaborations strip ---------- */
.collab {
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 0;
  overflow: hidden;
}
.collab .section-kicker { width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto 1.75rem; }
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.75rem;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-style: italic;
  padding: 0.4rem 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0 0 1.5rem;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid var(--accent-dim);
}
.form-note strong { color: var(--text-dim); font-weight: 500; }
.field { margin: 0 0 1.1rem; }
.field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.65rem 0;
  border-radius: 0;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-status { margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }
.socials { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; margin-top: 2rem; }
.socials a {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
}
.socials a:hover { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.5rem var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.site-footer a:hover { color: var(--text-dim); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lightbox-caption {
  position: absolute;
  left: var(--pad);
  bottom: 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lb-btn {
  position: absolute;
  color: var(--text);
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  opacity: 0.8;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 0.8rem; right: 0.8rem; font-size: 1.8rem; }
.lb-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

/* Focus */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Hero name heading font */
.hero h1, .hero h1 em { font-family: "Bodoni Moda", "Didot", "Times New Roman", serif; }
