/* ═══ sanatci-portfolio — Minimalist gallery ═══ */

:root {
  --color-bg:         #ffffff;
  --color-bg-alt:     #f8f6f2;
  --color-text:       #0a0a0a;
  --color-text-muted: #6a6a6a;
  --color-text-faded: #999999;
  --color-border:     #e5e5e5;
  --color-accent:     #8a6e3a;
  --color-dark:       #0a0a0a;

  --radius-sm: 2px;
  --radius:    4px;

  --maxw: 1320px;
  --nav-h: 90px;

  --font-script:  'Dancing Script', 'Allura', cursive;
  --font-display: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --e-std: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--e-std); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-text); }
p { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .container { padding: 0 24px; } }

/* ═══ Reveal animations (subtle) ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--e-std), transform 1.2s var(--e-std);
  animation: fadeFallback 0s linear 2s forwards;
}
.fade-in.visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes fadeFallback { to { opacity: 1; transform: translateY(0); } }

.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }
.delay-3 { transition-delay: .45s; }
.delay-4 { transition-delay: .6s; }

/* ═══ NAV ═══ */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
}
.nav .logo {
  font-family: var(--font-script);
  font-size: 42px;
  color: #fff;
  letter-spacing: 0.02em;
  mix-blend-mode: difference;
  line-height: 1;
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  mix-blend-mode: difference;
  position: relative;
  padding: 4px 0;
}
.nav-links a.active { color: #d0b274; mix-blend-mode: normal; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--e-std);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-social {
  display: flex; gap: 16px; align-items: center;
}
.nav-social a {
  color: #fff;
  mix-blend-mode: difference;
  font-size: 16px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  color: #fff;
  mix-blend-mode: difference;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-social { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 20px;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 40px;
    z-index: 80; overflow-y: auto;
  }
  body.nav-open .nav-links a { color: var(--color-text); mix-blend-mode: normal; font-size: 20px; }
}

/* Inner pages have solid nav */
body.inner .nav {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
body.inner .nav .logo { color: var(--color-text); mix-blend-mode: normal; }
body.inner .nav-links a { color: var(--color-text); mix-blend-mode: normal; }
body.inner .nav-social a { color: var(--color-text); mix-blend-mode: normal; }
body.inner .nav-toggle { color: var(--color-text); mix-blend-mode: normal; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}
.hero:hover .hero-img img { transform: scale(1.03); }
.hero-content {
  position: absolute;
  bottom: 80px; left: 40px; right: 40px;
  z-index: 2;
  color: #fff;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  flex-wrap: wrap;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 24ch;
}
.hero-content .cta {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff;
  font-size: 17px;
  position: relative;
  padding-bottom: 6px;
}
.hero-content .cta::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: #fff;
  transform: scaleX(1); transform-origin: right;
  transition: transform .6s var(--e-std);
}
.hero-content .cta:hover::after { transform: scaleX(0); }
@media (max-width: 700px) { .hero-content { bottom: 40px; left: 24px; right: 24px; } }

/* ═══ Sections ═══ */
section { padding: 140px 0; }
@media (max-width: 700px) { section { padding: 80px 0; } }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* ═══ About preview split ═══ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 50px; } }
.about-text h2 {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 40px;
}
.about-text p {
  color: var(--color-text-muted);
  font-size: 16.5px;
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 52ch;
}
.about-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--e-std);
}
.about-image:hover img { transform: scale(1.04); }

/* ═══ Portfolio preview ═══ */
.portfolio-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .portfolio-head { grid-template-columns: 1fr; gap: 20px; } }
.portfolio-head h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
}
.portfolio-head-right {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding-bottom: 6px;
}
.portfolio-head-right p { color: var(--color-text-muted); max-width: 30ch; line-height: 1.7; }
.portfolio-head-right .more {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--color-text);
  font-size: 16px;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
}
.portfolio-head-right .more:hover { color: var(--color-accent); }

.portfolio-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
@media (max-width: 900px) { .portfolio-preview { grid-template-columns: repeat(2, 1fr); } }
.portfolio-preview .tile {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}
.portfolio-preview .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--e-std);
}
.portfolio-preview .tile:hover img { transform: scale(1.08); }

/* ═══ Exhibitions preview ═══ */
.exhibitions-preview {
  background: var(--color-bg);
  padding: 140px 0;
}
.exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  align-items: end;
}
@media (max-width: 900px) { .exhibitions-grid { grid-template-columns: 1fr; gap: 60px; } }
.exhibition-card {
  display: flex; flex-direction: column; gap: 20px;
  text-align: right;
}
.exhibition-card:nth-child(2) { margin-top: -60px; }
@media (max-width: 900px) { .exhibition-card:nth-child(2) { margin-top: 0; } .exhibition-card { text-align: left; } }
.exhibition-card .img {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.exhibition-card .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--e-std);
}
.exhibition-card:hover .img img { transform: scale(1.06); }
.exhibition-card .meta { text-align: left; }
.exhibition-card .name { font-size: 22px; font-weight: 500; color: var(--color-text); margin-bottom: 4px; }
.exhibition-card .venue { color: var(--color-text-muted); font-size: 15px; margin-top: 2px; }
.exhibition-card .venue .city { color: var(--color-accent); }
.exhibition-card .date { color: var(--color-text-faded); font-size: 14px; margin-top: 6px; }

/* ═══ CTA contact black section ═══ */
.cta-contact {
  background: var(--color-dark);
  color: #fff;
  padding: 140px 0;
}
.cta-contact h2 {
  color: #fff;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 20ch;
}
.cta-contact p { color: rgba(255,255,255,.7); max-width: 52ch; margin-bottom: 40px; font-size: 17px; line-height: 1.7; }
.cta-contact .cta-link {
  display: inline-flex; align-items: center; gap: 14px;
  color: #fff;
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
}
.cta-contact .cta-link:hover { color: #d0b274; }

/* ═══ FOOTER ═══ */
footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.78);
  padding: 100px 0 30px;
}
footer .cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr; gap: 40px; } }
footer h4 {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
footer ul { display: grid; gap: 10px; }
footer ul a, footer a { color: rgba(255,255,255,.8); font-size: 15px; }
footer ul a:hover, footer a:hover { color: #fff; }
footer .phone { display: inline-flex; align-items: center; gap: 10px; }
footer .social-row { display: flex; align-items: center; gap: 18px; }
footer .social-row .sep { color: rgba(255,255,255,.3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 30px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}

/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 14px;
  max-width: 22ch;
}
.page-hero .meta {
  display: flex; gap: 24px; color: var(--color-text-muted); font-size: 14.5px; flex-wrap: wrap;
}
.page-hero .breadcrumbs {
  color: var(--color-text-faded);
  font-size: 13px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══ About page ═══ */
.about-body {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  padding: 100px 0;
}
@media (max-width: 900px) { .about-body { grid-template-columns: 1fr; gap: 40px; } }
.about-body .portrait {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
  position: sticky;
  top: 40px;
  max-height: 80vh;
}
.about-body .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body .bio h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  margin-bottom: 20px;
  margin-top: 40px;
}
.about-body .bio h2:first-child { margin-top: 0; }
.about-body .bio p {
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.cv-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
.cv-list .cv-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.cv-list .cv-item .year {
  font-size: 14px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.cv-list .cv-item .desc {
  color: var(--color-text);
  font-size: 15.5px;
}
.cv-list .cv-item .desc strong { font-weight: 500; }

/* ═══ Paintings grid (gallery page) ═══ */
.paintings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  padding: 60px 0 120px;
}
@media (max-width: 900px) { .paintings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .paintings-grid { grid-template-columns: 1fr; } }
.painting-card { cursor: zoom-in; }
.painting-card .img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
  margin-bottom: 18px;
}
.painting-card .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--e-std);
}
.painting-card:hover .img img { transform: scale(1.05); }
.painting-card .meta .title { font-size: 17px; color: var(--color-text); font-weight: 500; }
.painting-card .meta .details { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; letter-spacing: 0.02em; }

/* ═══ Exhibitions full list ═══ */
.exhibitions-list-full {
  padding: 60px 0 120px;
}
.exhibitions-list-full .ex-item {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
@media (max-width: 800px) { .exhibitions-list-full .ex-item { grid-template-columns: 1fr; gap: 10px; } }
.exhibitions-list-full .ex-item .name { font-size: 20px; font-weight: 500; color: var(--color-text); }
.exhibitions-list-full .ex-item .venue { font-size: 15px; color: var(--color-text-muted); }
.exhibitions-list-full .ex-item .date { font-size: 15px; color: var(--color-text-faded); font-variant-numeric: tabular-nums; }

/* ═══ Photo gallery ═══ */
.photos-masonry {
  column-count: 3;
  column-gap: 20px;
  padding: 60px 0 120px;
}
@media (max-width: 900px) { .photos-masonry { column-count: 2; } }
@media (max-width: 520px) { .photos-masonry { column-count: 1; } }
.photo-tile {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: zoom-in;
  overflow: hidden;
}
.photo-tile img {
  width: 100%; height: auto;
  display: block;
  transition: transform 1s var(--e-std);
}
.photo-tile:hover img { transform: scale(1.05); }

/* ═══ Lightbox ═══ */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,.96);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lb.open { display: flex; }
.lb img { max-width: 92%; max-height: 88vh; }
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  color: #fff;
  font-size: 28px;
  width: 52px; height: 52px;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .2s var(--e-std);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { transform: scale(1.15); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-caption {
  position: fixed; left: 0; right: 0; bottom: 24px;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

/* ═══ Contact page ═══ */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 100px 0 120px;
  align-items: start;
}
@media (max-width: 900px) { .contact-body { grid-template-columns: 1fr; gap: 50px; } }
.contact-body h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  margin-bottom: 24px;
}
.contact-body .info-row {
  display: flex; gap: 20px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-body .info-row:last-child { border-bottom: 0; }
.contact-body .info-row .ico {
  width: 24px; height: 24px; flex-shrink: 0;
  color: var(--color-text-muted);
}
.contact-body .info-row .lbl {
  font-size: 11px; color: var(--color-text-faded);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.contact-body .info-row .val { font-size: 16px; color: var(--color-text); font-weight: 500; margin-top: 2px; }
.atelier-map {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
}
.atelier-map img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ Series detail page ═══ */
.series-hero-img {
  aspect-ratio: 21/9;
  overflow: hidden;
}
.series-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.series-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px;
}
.series-intro h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  margin-bottom: 24px;
}
.series-intro p {
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 18px;
}

/* ═══ Press page ═══ */
.press-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 20px 120px;
}
.press-body .press-hero {
  aspect-ratio: 2/1;
  margin-bottom: 40px;
  overflow: hidden;
}
.press-body .press-hero img { width: 100%; height: 100%; object-fit: cover; }
.press-body h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
}
.press-body .press-meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}
.press-body .press-meta .cat {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 500;
}
.press-body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; margin: 40px 0 14px; }
.press-body p { color: var(--color-text); font-size: 17px; line-height: 1.85; margin-bottom: 18px; }
.press-body img { width: 100%; margin: 30px 0; }
.press-body blockquote {
  border-left: 2px solid var(--color-accent);
  padding: 14px 24px;
  margin: 30px 0;
  font-style: italic;
  color: var(--color-text);
  font-size: 19px;
}

/* Utility */
.text-center { text-align: center; }
.mt-6 { margin-top: 24px; }
