/* Nelliza Cuneapen — Gallery White */
:root {
  --ink: #111111;
  --ink-soft: #555555;
  --paper: #ffffff;
  --paper-warm: #faf8f5;
  --papaya: #ff7300;
  --rule: #e8e4de;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand svg { height: 34px; width: auto; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .04em; }
nav.primary { display: flex; gap: 28px; }
nav.primary a {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); padding: 4px 0; position: relative;
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--papaya); transition: width .25s;
}
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { width: 100%; }
nav.primary a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav.primary {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: center; gap: 22px;
    padding: 26px 0 30px; border-bottom: 1px solid var(--rule);
    transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  nav.primary.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  nav.primary a { font-size: 1rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 45%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px 32px;
}
.hero-overlay h1 {
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: .01em;
}
.hero-overlay p {
  color: rgba(255,255,255,.92); margin-top: 14px;
  font-size: .82rem; letter-spacing: .26em; text-transform: uppercase;
}
.hero-credit {
  position: absolute; right: 16px; bottom: 12px;
  font-size: .62rem; letter-spacing: .08em; color: rgba(255,255,255,.55);
}

/* ---------- shared ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }
.eyebrow {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--papaya); font-weight: 600; margin-bottom: 16px;
}
h2.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 22px;
}
.lede { max-width: 640px; color: var(--ink-soft); font-size: 1.06rem; }
.rule-track { border: none; height: 14px; margin: 0; position: relative; background:
  repeating-linear-gradient(90deg, var(--rule) 0 26px, transparent 26px 40px);
  background-size: 100% 3px; background-position: center; background-repeat: no-repeat;
}

/* ---------- galleries ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.tile { position: relative; overflow: hidden; background: var(--paper-warm); cursor: zoom-in; border: none; padding: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; transition: transform .5s ease, opacity .6s; }
.tile.landscape img { aspect-ratio: 4/3; }
.tile:hover img { transform: scale(1.025); }
.tile img[data-src] { opacity: 0; }
.tile video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.tile.span-2 { grid-column: span 2; }
@media (max-width: 540px) { .tile.span-2 { grid-column: span 2; } }

/* ---------- look sections ---------- */
.look { padding: 72px 0; border-top: 1px solid var(--rule); }
.look-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }
.look-num {
  font-family: var(--serif); font-size: 3.2rem; color: var(--rule);
  font-weight: 600; line-height: 1;
}
.look-head h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; }
.look p.note { color: var(--ink-soft); max-width: 620px; margin-bottom: 28px; }

/* ---------- home: project cards ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }
.project-card { position: relative; overflow: hidden; display: block; }
.project-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; transition: transform .6s ease; }
.project-card:hover img { transform: scale(1.03); }
.project-card .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  color: #fff;
}
.project-card .label .eyebrow { color: #ffb377; margin-bottom: 4px; }
.project-card .label h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }

/* ---------- statement band ---------- */
.statement { background: var(--paper-warm); }
.statement blockquote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4; max-width: 880px; font-weight: 500;
}
.statement cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .text p { margin-bottom: 18px; color: #333; }
.skills { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.skills span {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--rule); padding: 7px 14px; border-radius: 999px; color: var(--ink-soft);
}

/* ---------- contact ---------- */
.contact-band { text-align: center; padding: 110px 0; }
.contact-band .email {
  font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.6rem);
  border-bottom: 3px solid var(--papaya); padding-bottom: 6px; display: inline-block;
  margin-top: 26px;
}
.contact-band .email:hover { color: var(--papaya); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--rule); padding: 36px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
footer .f-brand { display: flex; align-items: center; gap: 12px; }
footer .f-brand svg { height: 22px; width: auto; color: var(--ink); }
footer p { font-size: .74rem; color: var(--ink-soft); letter-spacing: .06em; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.94);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox .lb-caption { color: #bbb; font-size: .8rem; margin-top: 14px; letter-spacing: .06em; }
.lightbox button {
  position: absolute; background: none; border: none; color: #fff; cursor: pointer;
  font-size: 2rem; line-height: 1; padding: 16px; opacity: .75;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: 150px 0 30px; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; }
.page-hero .lede { margin-top: 18px; }

.credit-line { font-size: .7rem; color: #999; letter-spacing: .08em; margin-top: 10px; }

::selection { background: var(--papaya); color: #fff; }
