/* ============================================================
   Mina's Art and Sculptures — gallery style
   palette: warm ivory ground, deep umber ink, terracotta accent
   typography: Fraunces serif display + Outfit sans body
   ============================================================ */

:root {
  --bg:        #F5EFE6;
  --bg-alt:    #EDE6D8;
  --paper:    #FBF7F0;
  --ink:       #1F1A14;
  --ink-soft:  #4A4339;
  --ink-faint: #7E7368;
  --rule:      rgba(31,26,20,0.12);
  --accent:    #B86D3E;        /* terracotta */
  --accent-d:  #8E4F2A;
  --stone:     #C9B89B;
  --max:       1440px;
  --gut:       clamp(20px, 4vw, 56px);
  --max-text:  62ch;
  --shadow-1:  0 1px 2px rgba(31,26,20,0.04), 0 8px 24px -8px rgba(31,26,20,0.10);
  --shadow-2:  0 2px 6px rgba(31,26,20,0.06), 0 28px 60px -20px rgba(31,26,20,0.18);
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.serif { font-family: 'Fraunces', 'EB Garamond', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; font-weight: 300; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  background: linear-gradient(to bottom, rgba(245,239,230,0.92), rgba(245,239,230,0.0));
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(245,239,230,0.94);
  border-bottom: 1px solid var(--rule);
  padding: 12px var(--gut);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__monogram {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  border-radius: 50%;
  font-style: italic; font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
}
.brand__name { font-weight: 500; }
.brand__apos { font-style: italic; font-weight: 300; color: var(--accent); }

.nav__links {
  list-style: none; display: flex; gap: 32px; margin: 0; padding: 0;
  font-size: 14px; letter-spacing: 0.04em;
}
.nav__links a {
  position: relative; padding: 6px 0; color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px; padding: 0; position: relative;
}
.nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 12px; }
.nav__burger span:nth-child(2) { top: 17px; }
.nav__burger span:nth-child(3) { top: 22px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh; min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
  padding: 0 var(--gut) clamp(40px, 8vh, 96px);
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video,
.hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 18%;
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.02);
}
@media (max-width: 800px) {
  .hero__video, .hero__fallback { object-position: center 22%; }
}
.hero__fallback { z-index: 0; }
.hero__video { z-index: 1; opacity: 0; transition: opacity 0.8s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(31,26,20,0.05) 0%, rgba(31,26,20,0.1) 40%, rgba(31,26,20,0.6) 100%),
    radial-gradient(110% 70% at 50% 100%, rgba(31,26,20,0.6) 0%, rgba(31,26,20,0) 60%);
}

.hero__copy {
  position: relative; z-index: 2;
  max-width: 940px;
  padding-bottom: 32px;
}
.hero__overline {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(251,247,240,0.75);
  margin-bottom: 18px;
  font-weight: 400;
}
.hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.94; letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.hero__title .serif { display: block; font-weight: 300; }
.hero__title-line { display: block; font-weight: 400; }
.hero__sub {
  max-width: 56ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(251,247,240,0.86);
  margin: 0 0 30px;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--paper); color: var(--ink);
  border-radius: 999px;
  font-size: 14px; letter-spacing: 0.04em;
  font-weight: 500;
  transition: transform 0.4s var(--ease-out), background 0.3s var(--ease);
  box-shadow: var(--shadow-1);
}
.hero__cta:hover { transform: translateY(-2px); background: #fff; }
.hero__cta:active { transform: translateY(0); }

/* ============================================================
   INTRO (single-line statement)
   ============================================================ */

.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gut);
  display: grid; grid-template-columns: 1fr;
  gap: 28px;
}
.intro__kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0;
}
.intro__lead {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 28ch;
}

/* ============================================================
   WORKS (sections that contain a grid)
   ============================================================ */

.works {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gut);
}
.works__head {
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 720px;
}
.works__kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0;
}
.works__title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1; letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.works__title .italic { font-weight: 300; }
.works__deck {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

/* ============================================================
   PINTEREST MASONRY GRID — CSS columns, tight gaps, natural aspect
   ============================================================ */

.grid {
  column-count: 4;
  column-gap: 12px;
}
.grid--two { column-count: 2; column-gap: 18px; }

@media (max-width: 1280px) { .grid { column-count: 3; } }
@media (max-width: 800px)  { .grid { column-count: 2; column-gap: 10px; } .grid--two { column-count: 2; column-gap: 12px; } }
@media (max-width: 480px)  { .grid { column-count: 2; column-gap: 8px; } }

.card {
  position: relative;
  display: block;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  break-inside: avoid;
  margin: 0 0 12px;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
@media (max-width: 800px) { .card { margin-bottom: 10px; } }
@media (max-width: 480px) { .card { margin-bottom: 8px; } }

.card__frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: 2px;
}
.card__frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.4s var(--ease-out), filter 0.6s var(--ease);
  will-change: transform;
}
.card:hover .card__frame img { transform: scale(1.04); }

/* Caption overlay — appears on hover, museum-label style */
.card__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(31,26,20,0.78) 0%, rgba(31,26,20,0.35) 65%, rgba(31,26,20,0) 100%);
  color: var(--paper);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
  font-size: 12px; letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.card:hover .card__caption,
.card:focus-visible .card__caption { opacity: 1; transform: translateY(0); }
.card__caption .l { font-weight: 500; }
.card__caption .l .num {
  color: rgba(251,247,240,0.6);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.card__caption .r {
  color: rgba(251,247,240,0.7);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.card__title-italic {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: 16px; letter-spacing: -0.005em;
}

@media (max-width: 800px) {
  /* Show caption permanently on touch — no hover */
  .card__caption { opacity: 1; transform: none; padding: 28px 10px 10px; font-size: 11px; }
  .card__title-italic { font-size: 13px; }
}

/* ============================================================
   FEATURE — full-bleed showcase between grids
   ============================================================ */

.feature {
  background: var(--bg-alt);
  padding: clamp(80px, 12vw, 160px) var(--gut);
  display: grid; grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 100%;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.1fr 1fr; max-width: var(--max); margin: 0 auto; }
}
.feature__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-2);
}
.feature__copy { max-width: 52ch; }
.feature__kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 18px;
}
.feature__title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1; letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.feature__title .italic { font-weight: 300; }
.feature__body {
  font-size: 17px; color: var(--ink-soft); line-height: 1.65;
  margin: 0 0 32px;
}
.feature__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.feature__meta dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 4px;
}
.feature__meta dd { margin: 0; font-size: 14px; color: var(--ink); }

/* ============================================================
   TRIBUTE
   ============================================================ */

.tribute {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gut);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}
@media (min-width: 900px) {
  .tribute { grid-template-columns: 0.85fr 1fr; }
}
.tribute__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
}
.tribute__copy {}
.tribute__kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 24px;
}
.tribute__body {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.tribute__sig { color: var(--ink-faint); font-size: 14px; }

/* ============================================================
   STUDIO
   ============================================================ */

.studio {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gut);
}
.studio__columns {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 72ch;
}
@media (min-width: 900px) {
  .studio__columns { grid-template-columns: 1fr 1fr 1fr; max-width: 100%; }
  .studio__columns p { max-width: 36ch; }
}

/* ============================================================
   INQUIRIES
   ============================================================ */

.inquiries {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 14vw, 180px) var(--gut);
}
.inquiries__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 26px;
  max-width: 760px;
}
.inquiries__kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(251,247,240,0.6); margin: 0;
}
.inquiries__title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1; letter-spacing: -0.025em;
  margin: 0;
}
.inquiries__title .italic { font-weight: 300; }
.inquiries__body {
  font-size: clamp(16px, 1.2vw, 18px);
  color: rgba(251,247,240,0.78);
  max-width: 56ch;
  margin: 0;
}
.inquiries__cta {
  display: inline-block;
  margin-top: 14px;
  padding: 16px 26px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.02em;
  font-weight: 500;
  width: max-content;
  transition: transform 0.4s var(--ease-out);
}
.inquiries__cta:hover { transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: clamp(40px, 5vw, 64px) var(--gut);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 13px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.footer__brand .brand__monogram { width: 26px; height: 26px; font-size: 13px; }
.footer__loc { margin: 4px 0 0; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em; }
.footer__small { margin: 0; color: var(--ink-faint); }

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31,26,20,0.92);
  backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure {
  margin: 0; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column;
  gap: 18px; align-items: center;
}
.lightbox__figure img {
  max-width: 100%; max-height: 80vh;
  width: auto;
  object-fit: contain;
  box-shadow: var(--shadow-2);
  transform: scale(0.96);
  transition: transform 0.5s var(--ease-out);
}
.lightbox.is-open .lightbox__figure img { transform: scale(1); }
.lightbox figcaption {
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  text-align: center;
  letter-spacing: -0.005em;
}
.lightbox figcaption span.meta {
  display: block; font-family: 'Outfit', sans-serif; font-style: normal;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(251,247,240,0.6); margin-top: 6px;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(251,247,240,0.08);
  border: 1px solid rgba(251,247,240,0.15);
  color: var(--paper);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 24px; line-height: 1;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(251,247,240,0.15); }

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */

@media (max-width: 800px) {
  .nav__links {
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: min(80vw, 360px);
    background: var(--paper);
    flex-direction: column; gap: 0;
    padding: 88px 32px 32px;
    transition: right 0.4s var(--ease-out);
    box-shadow: var(--shadow-2);
  }
  .nav__links.is-open { right: 0; }
  .nav__links li { border-bottom: 1px solid var(--rule); }
  .nav__links a { display: block; padding: 18px 0; font-size: 17px; color: var(--ink); }
  .nav__burger { display: block; z-index: 60; position: relative; }
}

/* ============================================================
   GSAP HELPERS
   ============================================================ */

/* Reveals — driven entirely by GSAP inline styles. If GSAP fails to advance
   (hidden tab, rAF throttle), the safety net in main.js will force opacity:1. */

@media (prefers-reduced-motion: reduce) {
  .card__frame img, .hero__media img { transform: none !important; }
}
