/* ============================================
   CHIOMA ZANE — PORTFOLIO
   Editorial minimalism. Mono palette. No frills.
   ============================================ */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --muted: #8a8a8a;
  --line: #e5e5e5;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  font-size: 14px;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  font-weight: 400;
}

.label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0.65;
  transition: opacity 0.3s var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--black);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- MOBILE NAV ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 90;
  padding: 100px 32px 32px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu a {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.01em;
}

/* ---------- LAYOUT ---------- */
main { padding-top: 0; }

.section {
  padding: 120px 32px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 48px 48px;
  color: var(--white);
  mix-blend-mode: normal;
}
.hero-name {
  font-size: clamp(64px, 13vw, 200px);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: lowercase;
  margin: auto 0 0;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.hero-meta .left p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  opacity: 0.9;
  max-width: 320px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--white);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.hero-cta:hover {
  background: var(--white);
  color: var(--black);
}
.hero-cta::after {
  content: '→';
  font-size: 14px;
  letter-spacing: 0;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  opacity: 0.85;
}

/* ---------- MARQUEE ---------- */
.marquee {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: 'Inter', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--black);
  opacity: 0.6;
  white-space: nowrap;
  font-style: italic;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- FEATURED GRID ---------- */
.featured {
  padding: 120px 32px;
}
.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 16px;
}
.featured-head h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-transform: lowercase;
}
.featured-head a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 3px;
}
.asym-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
}
.asym-grid .tile {
  overflow: hidden;
  position: relative;
  background: #f2f2f2;
  cursor: pointer;
}
.asym-grid .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.asym-grid .tile img.loaded { /* no longer needed; kept for backward compat */ }
.asym-grid .tile:hover img { transform: scale(1.04); }

.asym-grid .t1 { grid-column: span 5; grid-row: span 5; }
.asym-grid .t2 { grid-column: span 4; grid-row: span 3; }
.asym-grid .t3 { grid-column: span 3; grid-row: span 4; }
.asym-grid .t4 { grid-column: span 4; grid-row: span 2; }
.asym-grid .t5 { grid-column: span 3; grid-row: span 3; }
.asym-grid .t6 { grid-column: span 5; grid-row: span 3; }

/* ---------- PAGE HEADER ---------- */
.page-head {
  padding: 160px 32px 80px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { color: var(--muted); display: block; margin-bottom: 24px; }
.page-head h1 {
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin: 0;
  text-transform: lowercase;
}

/* ---------- PORTFOLIO ---------- */
.filter-bar {
  display: flex;
  gap: 32px;
  padding: 40px 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 66px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.filter-btn {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  opacity: 0.5;
  padding: 4px 0;
  transition: opacity 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.filter-btn:hover { opacity: 0.85; }
.filter-btn.active {
  opacity: 1;
  border-bottom-color: var(--black);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 48px 32px 120px;
}
.portfolio-grid .item {
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.portfolio-grid .item.hide {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
}
.portfolio-grid .item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.portfolio-grid .item img.loaded { /* no longer needed; kept for backward compat */ }
.portfolio-grid .item:hover img { transform: scale(1.03); }

/* Vary aspect ratios for editorial feel */
.portfolio-grid .item:nth-child(5n+1) img { aspect-ratio: 3 / 4; }
.portfolio-grid .item:nth-child(5n+2) img { aspect-ratio: 4 / 5; }
.portfolio-grid .item:nth-child(5n+3) img { aspect-ratio: 3 / 4; }
.portfolio-grid .item:nth-child(5n+4) img { aspect-ratio: 2 / 3; }
.portfolio-grid .item:nth-child(5n+5) img { aspect-ratio: 3 / 4; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img-wrap {
  max-width: 80vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 32px; }
.lightbox-next { right: 32px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  padding: 8px 4px;
  opacity: 0.65;
  transition: opacity 0.3s var(--ease);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.65;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  padding: 80px 32px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}
.about-portrait {
  position: sticky;
  top: 100px;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-text p {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 24px;
  max-width: 56ch;
}
.about-text p:first-child::first-letter {
  font-size: 64px;
  font-weight: 200;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
}

.measurements {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.measurements h3,
.timeline h3 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  font-weight: 500;
  margin: 0 0 32px;
  color: var(--muted);
}
.measurements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 520px;
}
.measurements-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.measurements-row span:first-child {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.measurements-row span:last-child {
  font-weight: 400;
}

.timeline {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 300;
}
.timeline-item .year {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ---------- RATES ---------- */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1600px;
  margin: 60px auto 0;
}
.rate-card {
  background: var(--white);
  padding: 56px 40px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s var(--ease);
}
.rate-card:hover { background: #fafafa; }
.rate-card .eyebrow { color: var(--muted); margin-bottom: 24px; }
.rate-card h3 {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-transform: lowercase;
}
.rate-card .price {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}
.rate-card .price small {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--muted);
  font-weight: 400;
  margin-right: 8px;
}
.rate-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
  font-weight: 300;
}

.licensing {
  max-width: 900px;
  margin: 120px auto 0;
  padding: 0 32px;
  text-align: center;
}
.licensing h3 {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-transform: lowercase;
}
.licensing p {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  color: #4a4a4a;
  margin: 0 auto 20px;
  max-width: 60ch;
}
.licensing .soft-cta {
  display: inline-block;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  padding: 80px 32px;
  max-width: 1600px;
  margin: 0 auto;
}
.contact-info h3 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.contact-info p {
  font-size: 17px;
  font-weight: 300;
  margin: 0 0 8px;
}
.contact-info .block { margin-bottom: 48px; }
.contact-info a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.contact-info a:hover { border-bottom-color: var(--black); }

.socials {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.socials a {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}
.socials a:hover { opacity: 1; }

form { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0a' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--black); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.submit {
  margin-top: 16px;
  padding: 18px 36px;
  border: 1px solid var(--black);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  align-self: flex-start;
}
.submit:hover { background: var(--black); color: var(--white); }

/* Form status message (after submit) */
.form-status {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 60ch;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.form-status.success,
.form-status.error {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.form-status.success { color: var(--black); }
.form-status.error { color: #8a3030; }

/* ---------- FOOTER ---------- */
footer {
  padding: 60px 32px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--muted);
}
footer .f-brand {
  font-size: 28px;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--black);
  text-transform: lowercase;
}
footer a { color: var(--black); opacity: 0.65; transition: opacity 0.3s var(--ease); }
footer a:hover { opacity: 1; }
footer ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

/* ---------- STICKY MOBILE BOOK ---------- */
.mobile-book {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  z-index: 80;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-portrait { position: static; max-width: 500px; }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 80px 20px; }
  .nav { padding: 18px 20px; }
  .hero-overlay { padding: 100px 24px 120px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .page-head { padding: 120px 20px 48px; }
  .featured { padding: 80px 20px; }
  .filter-bar { padding: 24px 20px; gap: 20px; top: 58px; }
  .portfolio-grid { grid-template-columns: 1fr; padding: 24px 20px 140px; gap: 12px; }
  .rates-grid { grid-template-columns: 1fr; }
  .rate-card { min-height: auto; padding: 40px 28px; }
  .about-grid, .contact-grid { padding: 40px 20px; gap: 40px; }
  .field-row { grid-template-columns: 1fr; gap: 28px; }
  .mobile-book { display: block; }
  footer { padding: 40px 20px 100px; flex-direction: column; align-items: flex-start; }

  /* Simplify asymmetric grid on mobile */
  .asym-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .asym-grid .t1 { grid-column: span 2; grid-row: span 3; }
  .asym-grid .t2 { grid-column: span 1; grid-row: span 2; }
  .asym-grid .t3 { grid-column: span 1; grid-row: span 2; }
  .asym-grid .t4 { grid-column: span 2; grid-row: span 2; }
  .asym-grid .t5 { grid-column: span 1; grid-row: span 2; }
  .asym-grid .t6 { grid-column: span 1; grid-row: span 2; }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { right: 16px; top: 16px; }
  .lightbox-img-wrap { max-width: 92vw; }

  .hero-name { line-height: 0.92; }
}

/* ---------- UTIL / REVEAL ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
