/*
Theme Name: Mahroo Hemmati
Description: Portfolio theme for painter Mahroo Hemmati
Version: 1.1
*/

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

.google-sans-flex-head {
  font-family: "Google Sans Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}
.google-sans-flex-subhead {
  font-family: "Google Sans Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100, "GRAD" 0;
  background: #0f0f0f;
}
body.home { overflow: hidden; }

/* ── Navigation ── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  transition: background 0.5s, backdrop-filter 0.5s;
}

#nav.scrolled {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; }
nav ul { list-style: none; display: flex; gap: 44px; }
nav ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}
nav ul li a:hover { color: #fff; }

/* ── Intro overlay ── */
#intro {
  position: fixed;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#intro h1 {
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 300;
  color: #fdfdfd;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  justify-content: center;
}

.word { overflow: hidden; display: inline-block; }
.word span { display: inline-block; }

/* ── Hero ── */
#hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  gap: 14px;
}

.hero-content .eyebrow { font-size: 0.75rem; letter-spacing: 5px; text-transform: uppercase; opacity: 0.65; }
.hero-content h2 { font-size: clamp(1.4rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; }
.hero-content .divider { width: 50px; height: 1px; background: rgba(255,255,255,0.5); }
.hero-content p { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.6; }

.hero-btn {
  margin-top: 10px;
  padding: 12px 36px;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.hero-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ── Bio section ── */
#bio {
  position: relative;
  background: #0f0f0f;
  min-height: 100vh;
  padding: 110px 80px 120px;
  overflow: hidden;
}

.bio-curtain {
  position: absolute;
  inset: 0;
  background: #c9a96e;
  z-index: 5;
}

.bio-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.bio-display {
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 300;
  color: #fff;
  opacity: 0.04;
  line-height: 0.9;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  margin-bottom: -0.15em;
}

.bio-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 56px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.photo-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-right { padding-top: 8px; }

.line-wrap { overflow: hidden; }
.line-inner { display: block; }

.bio-name {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.bio-role {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 44px;
}

.bio-body { margin-bottom: 52px; }

.bio-link {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.bio-link:hover {
  color: #c9a96e;
}

.bio-line {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  font-weight: 300;
}

.bio-line.gap { margin-top: 20px; }

.bio-em {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

.bio-footer {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.bio-stat .stat-num {
  display: block;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.03em;
}

.bio-stat .stat-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* ── Contact section ── */
#contact {
  position: relative;
  background: #0a0a0a;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 80px;
  overflow: hidden;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.contact-display {
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 300;
  color: #fff;
  opacity: 0.04;
  line-height: 0.9;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.contact-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 40px;
}

.contact-heading {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 56px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}
.contact-item:hover { opacity: 0.7; }

.contact-item-label {
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a96e;
}

.contact-item-value {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.contact-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  align-self: center;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Scroll-down hint ── */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%       { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ── Works page nav: visible from start ── */
.page-template-page-works #nav {
  transform: none;
}

/* ── Works intro (editable from the page editor) ── */
#works-intro {
  background: #0f0f0f;
  padding: 160px 80px 100px;
}

.works-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.works-intro-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 24px;
}

.works-intro-body {
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

.works-intro-body p {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.75;
  margin-bottom: 20px;
}

.works-intro-body p:last-child { margin-bottom: 0; }

.works-intro-img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.works-intro-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Works filter bar ── */
#works-filter-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.works-filter-heading {
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.works-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.works-pill {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-family: "Google Sans Flex", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.works-pill:hover {
  border-color: rgba(201,169,110,0.5);
  color: #c9a96e;
}

.works-pill.active {
  background: #c9a96e;
  border-color: #c9a96e;
  color: #0f0f0f;
}

#works-filter-bar:first-child { margin-top: 64px; }

/* ── Works stream ── */
#works-stream {
  background: #0f0f0f;
}

.work-panel {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 80px 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.work-panel.hidden {
  display: none;
}

.work-panel-head {
  margin-bottom: 36px;
}

.work-panel-cat {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 10px;
}

.work-panel-title {
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
}

.work-panel-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.work-panel-img-wrap img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  #works-intro { padding: 130px 24px 60px; }
  .works-intro-grid { grid-template-columns: 1fr; gap: 36px; }

  #works-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 24px;
    top: 56px;
  }
  #works-filter-bar:first-child { margin-top: 56px; }
  .works-filter-pills { justify-content: flex-start; }
  .work-panel { padding: 48px 24px 60px; min-height: 100svh; }
  .work-panel-img-wrap img { max-height: 60vh; }
}

@media (max-width: 540px) {
  .works-pill { padding: 6px 14px; font-size: 0.62rem; }
}

/* ── Home: works feature ── */
#home-works {
  background: #0f0f0f;
  padding: 100px 80px;
  overflow: hidden;
  position: relative;
}

#home-works-display {
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 300;
  color: #fff;
  opacity: 0.04;
  line-height: 0.9;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  margin-bottom: -0.15em;
}

.home-works-header {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.home-works-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 14px;
}

.home-works-title {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
}

.home-works-img-wrap {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}

.home-works-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-works-img-wrap:hover img {
  transform: scale(1.03);
}

.home-works-caption {
  max-width: 1200px;
  margin: 28px auto 0;
}

.home-works-footer {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: flex-end;
}

.home-works-link {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.home-works-link:hover {
  color: #c9a96e;
}

@media (max-width: 768px) {
  #home-works { padding: 80px 24px; }
}

/* ── Section divider ── */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0 80px;
}

@media (max-width: 768px) {
  .section-divider { margin: 0 24px; }
}

/* ── Exhibitions horizontal strip ── */
#exhibitions {
  background: #0f0f0f;
  padding: 100px 0 0;
  overflow: hidden;
  position: relative;
}

#exh-display {
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 300;
  color: #fff;
  opacity: 0.04;
  line-height: 0.9;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  margin-bottom: -0.1em;
  padding-left: 80px;
}

.exh-header {
  padding: 0 80px;
  margin-bottom: 44px;
}

.exh-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
}

.exh-track-wrap {
  overflow: hidden;
  width: 100%;
}

.exh-track {
  display: flex;
  gap: 20px;
  padding: 0 80px 72px;
  width: max-content;
  will-change: transform;
}

.exh-slide {
  flex-shrink: 0;
  width: 340px;
}

.exh-slide-img {
  height: 460px;
  overflow: hidden;
}

.exh-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exh-slide:hover .exh-slide-img img {
  transform: scale(1.04);
}

.exh-slide-meta {
  padding: 20px 0 0;
}

.exh-slide-year {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 8px;
}

.exh-slide-name {
  display: block;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.exh-slide-city {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  #exhibitions { padding: 80px 0 0; }
  #exh-display, .exh-header { padding-left: 24px; padding-right: 24px; }
  .exh-track { flex-direction: column; width: 100%; padding: 0 24px 60px; gap: 48px; }
  .exh-slide { width: 100%; }
  .exh-slide-img { height: 260px; }
}

/* ── Bio photo overlay (mobile) ── */
.bio-photo-overlay {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {

  /* Nav */
  #nav { padding: 18px 24px; }
  .nav-toggle { display: flex; }

  nav ul {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  }
  nav ul.open { transform: translateX(0); }
  nav ul li a { font-size: 0.9rem; letter-spacing: 3px; }

  /* Hero */
  .hero-content { padding: 0 28px; }

  /* Bio mobile — full-screen photo with scroll-reveal text */
  #bio { padding: 0; min-height: auto; }
  .bio-curtain { display: none; }
  .bio-display,
  .bio-label { display: none; }
  .bio-inner { max-width: none; margin: 0; }

  .bio-grid {
    display: block;
    position: relative;
    gap: 0;
  }

  .photo-wrap {
    height: 100vh;
    height: 100svh;
    aspect-ratio: auto;
    width: 100%;
  }

  .bio-right {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 28px max(56px, calc(40px + env(safe-area-inset-bottom)));
    z-index: 2;
    opacity: 0;
  }

  .bio-name {
    color: #fff;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 4px;
  }
  .bio-role { color: #c9a96e; margin-bottom: 20px; }
  .bio-body { margin-bottom: 0; }
  .bio-line {
    color: rgba(255,255,255,0.82);
    font-size: clamp(1.05rem, 4.5vw, 1.4rem);
    line-height: 1.7;
  }
  .bio-em { color: rgba(255,255,255,0.96); }
  .bio-line.gap { margin-top: 14px; }
  .bio-footer { display: none; }

  /* Contact */
  #contact { padding: 80px 24px; min-height: auto; }
  #contact::before { left: 24px; right: 24px; }
  .contact-links { flex-direction: column; align-items: center; gap: 32px; }
  .contact-divider { width: 48px; height: 1px; }
}

/* ── Footer ── */
#site-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  #site-footer { padding: 20px 24px; }
}
