/* ═══════════════════════════════════════════════
   Sabeena — Fine Art
   ═══════════════════════════════════════════════ */

:root {
  --ivory: #faf6ef;
  --ivory-deep: #f3ecdf;
  --ink: #211d18;
  --ink-soft: #5b544a;
  --gold: #ad8a52;
  --gold-soft: #c9ab7c;
  --line: rgba(33, 29, 24, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow-lg: 0 30px 60px -18px rgba(33, 29, 24, 0.35);
  --shadow-md: 0 18px 40px -16px rgba(33, 29, 24, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ── Reveal animations ─────────────────────── */
.reveal, .reveal-img {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-img { transform: translateY(34px) scale(0.985); }
.reveal.in, .reveal-img.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img { opacity: 1; transform: none; transition: none; }
}

/* ═══════════ NAVIGATION ═══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 5vw, 4rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}

.nav__brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.nav__brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__brand-name em {
  font-style: italic;
  color: var(--gold);
}
.nav__brand-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav__links { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.3rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 8vh, 6rem);
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(173, 138, 82, 0.10), transparent 65%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
  overflow: hidden;
}
.hero::before {
  content: "S";
  position: absolute;
  top: 50%; left: -4rem;
  transform: translateY(-52%);
  font-family: var(--serif);
  font-size: clamp(24rem, 46vw, 44rem);
  font-style: italic;
  color: rgba(173, 138, 82, 0.07);
  pointer-events: none;
  line-height: 1;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  width: min(1200px, 100%);
  margin-inline: auto;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  margin-bottom: 1.6rem;
}
.hero__title span { display: block; }
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: transparent;
  background: linear-gradient(105deg, var(--ink) 30%, var(--gold) 75%, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__lede {
  max-width: 44ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 1px solid var(--ink);
  transition: all 0.35s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); box-shadow: 0 12px 28px -10px rgba(173, 138, 82, 0.6); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }

/* hero artwork */
.hero__art { position: relative; }
.hero__frame {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: clamp(0.7rem, 1.4vw, 1.1rem);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform 0.6s var(--ease);
}
.hero__art:hover .hero__frame:not(.hero__frame--back) { transform: rotate(0deg) scale(1.015); }
.hero__frame img { width: 100%; height: auto; }
.hero__frame--back {
  position: absolute;
  z-index: 1;
  top: 8%; right: -9%;
  width: 46%;
  transform: rotate(6deg);
  opacity: 0.9;
  box-shadow: var(--shadow-md);
}
.hero__caption {
  position: relative;
  z-index: 3;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
}
.hero__scroll-line {
  display: block;
  width: 1px; height: 54px;
  background: var(--gold);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════ SECTION HEADINGS ═══════════ */
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
}
.section-head__rule {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 1.4rem auto 0;
  position: relative;
}
.section-head__rule::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  background: var(--ivory);
}
.section-head__rule--left { margin-inline: 0 auto; }
.section-head__rule--left::after { left: 28px; }

/* ═══════════ GALLERY ═══════════ */
.gallery { padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 5vw, 4rem); }

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.chip {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.62rem 1.4rem;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.gallery__grid {
  columns: 3;
  column-gap: clamp(1.2rem, 2.4vw, 2rem);
  width: min(1200px, 100%);
  margin-inline: auto;
}

.card {
  break-inside: avoid;
  margin-bottom: clamp(1.2rem, 2.4vw, 2rem);
  cursor: zoom-in;
}
.card.is-hidden { display: none; }

.card__img {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 0.65rem;
  box-shadow: 0 10px 30px -14px rgba(33, 29, 24, 0.25);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.card__img img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__img { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card:hover .card__img img { transform: scale(1.035); }

.card__meta {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.85rem 0.3rem 0.4rem;
}
.card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  min-width: 1.9rem;
}
.card__meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.2;
}
.card__meta p {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

/* ═══════════ ABOUT ═══════════ */
.about {
  background: linear-gradient(180deg, var(--ivory-deep), var(--ivory));
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 5vw, 4rem);
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  width: min(1100px, 100%);
  margin-inline: auto;
}
.about__art { position: relative; }
.about__art img {
  position: relative;
  z-index: 2;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.about__art-accent {
  position: absolute;
  z-index: 1;
  inset: -1.4rem auto auto -1.4rem;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid var(--gold-soft);
}
.about__text p + p { margin-top: 1.1rem; }
.about__text .section-head__title { margin-bottom: 0; }
.about__text .section-head__rule { margin-bottom: 1.6rem; }
.about__text p { color: var(--ink-soft); max-width: 56ch; }
.about__signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold);
  margin-top: 1.6rem !important;
}

/* ═══════════ CONTACT ═══════════ */
.contact {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4rem) 2.4rem;
}
.contact .section-head__title { color: var(--ivory); }
.contact__lede {
  max-width: 52ch;
  margin: 1.4rem auto 2.4rem;
  color: rgba(250, 246, 239, 0.72);
}
.contact .btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.contact .btn--solid:hover { background: var(--ivory); border-color: var(--ivory); }
.contact__foot {
  margin-top: 4.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(250, 246, 239, 0.14);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.5);
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 13, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.is-open { opacity: 1; }

.lightbox__stage {
  max-width: min(88vw, 1000px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8);
  background: #fff;
  padding: clamp(4px, 0.8vw, 10px);
}
.lightbox__caption {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--ivory);
}
.lightbox__caption #lbTitle {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}
.lightbox__caption #lbMedium {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 0.2rem;
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  z-index: 2;
  background: none;
  border: 0;
  color: rgba(250, 246, 239, 0.75);
  cursor: pointer;
  font-family: var(--serif);
  transition: color 0.25s ease, transform 0.25s ease;
}
.lightbox__close {
  top: 1rem; right: 1.4rem;
  font-size: 2.8rem;
  line-height: 1;
}
.lightbox__close:hover { color: #fff; transform: rotate(90deg); }
.lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.6rem;
  padding: 1rem;
  line-height: 1;
}
.lightbox__arrow--prev { left: clamp(0.2rem, 2vw, 2rem); }
.lightbox__arrow--next { right: clamp(0.2rem, 2vw, 2rem); }
.lightbox__arrow:hover { color: #fff; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 980px) {
  .gallery__grid { columns: 2; }
  .hero__inner { gap: 2.5rem; }
}

@media (max-width: 780px) {
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(250, 246, 239, 0.98);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 1rem; }
  .nav__toggle { display: flex; position: relative; z-index: 110; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__text { text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__frame { transform: rotate(0.8deg); }
  .hero__frame--back { display: none; }
  .hero__scroll { display: none; }
  .hero::before { left: 50%; transform: translate(-50%, -52%); }

  .about__inner { grid-template-columns: 1fr; }
  .about__art { max-width: 420px; margin-inline: auto; }
  .about__text { text-align: center; }
  .about__text p { margin-inline: auto; }
  .section-head__rule--left { margin-inline: auto; }
  .section-head__rule--left::after { left: 50%; }

  .lightbox__arrow { display: none; }
}

@media (max-width: 560px) {
  .gallery__grid { columns: 1; }
  .btn { padding: 0.9rem 1.6rem; }
  .card__img { padding: 0.5rem; }
}
