/* -------------------------------------------------------
   ZEINAB MOUSAVI — ARTIST PORTFOLIO 2022—2026
   Add the image files listed in README.txt to /images.
   ------------------------------------------------------- */

:root {
  --paper: #e9e7df;
  --ink: #25241f;
  --muted: #77746c;
  --line: rgba(37, 36, 31, .19);
  --soft-line: rgba(37, 36, 31, .11);
  --gutter: clamp(22px, 4.2vw, 68px);
  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
::selection { background: #c7c2b5; color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

/* HOME */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
}
.site-name, .panel-name {
  font-size: 11px;
  letter-spacing: .16em;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.main-nav a, .close-link, .site-footer a, .project-pagination a {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.main-nav a { position: relative; padding-bottom: 5px; }
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 var(--gutter) clamp(52px, 8vh, 92px);
  background-color: #77776e;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.03) 38%, rgba(0,0,0,.48) 100%),
    url("images/home-background.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}
.hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-caption { position: relative; z-index: 1; max-width: min(880px, 84vw); }
.hero-kicker, .eyebrow {
  margin: 0 0 21px;
  font-size: 10px;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(68px, 12.2vw, 174px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .78;
}
.mobile-break { display: none; }
.hero-note { margin: 27px 0 0 5px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: clamp(52px, 8vh, 92px);
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-cue span { font-size: 18px; transition: transform .2s ease; }
.scroll-cue:hover span { transform: translateY(4px); }
.hero-credit {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* HASH-OPENED SECTIONS — works without JavaScript */
.page-panel {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  animation: panel-in .28s ease both;
  overscroll-behavior: contain;
}
.page-panel:target { display: block; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.panel-inner { min-height: 100%; padding: 27px var(--gutter) 70px; }
.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-topline a { color: var(--ink); }
.close-link { display: inline-flex; align-items: center; gap: 11px; }
.close-link span { font-size: 18px; line-height: .7; }
.about-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.5fr);
  gap: clamp(30px, 8vw, 150px);
  max-width: 1180px;
  margin: clamp(82px, 14vh, 155px) auto 90px;
}
.eyebrow { color: var(--muted); }
.about-content { max-width: 770px; }
.about-content h2, .contact-content h2, .projects-intro h2, .project-heading h2 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(39px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.about-content p, .contact-content p, .projects-intro p, .project-description {
  max-width: 670px;
  color: #5f5c55;
  font-size: 14px;
  line-height: 1.85;
}
.about-content .lead { color: var(--ink); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.65; }
.about-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 38px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* PROJECT INDEX */
.projects-layout {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.5fr);
  gap: clamp(30px, 8vw, 150px);
  max-width: 1180px;
  margin: clamp(82px, 14vh, 155px) auto 60px;
}
.projects-intro h2 { margin-bottom: 18px; }
.project-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-list li { border-bottom: 1px solid var(--line); }
.project-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(95px, auto) 18px;
  align-items: baseline;
  gap: 15px;
  padding: 24px 0;
  transition: padding .2s ease;
}
.project-list a:hover { padding-right: 8px; padding-left: 8px; }
.project-number, .project-year { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.project-title { font-family: var(--serif); font-size: clamp(22px, 2.7vw, 35px); line-height: 1.12; }
.project-arrow { justify-self: end; font-size: 18px; }
.index-note {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 17px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

/* CONTACT */
.contact-content h2 { max-width: 780px; }
.contact-email, .contact-instagram {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin: 21px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  overflow-wrap: anywhere;
}
.contact-instagram { margin-top: 18px; font-size: clamp(18px, 2.4vw, 27px); }

/* PROJECT DETAIL PAGES */
.project-heading {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.5fr);
  column-gap: clamp(30px, 8vw, 150px);
  max-width: 1180px;
  margin: clamp(66px, 10vh, 112px) auto 47px;
}
.project-heading .eyebrow { grid-column: 1; grid-row: 1 / span 2; }
.project-heading h2 { grid-column: 1; margin: 0 0 15px; }
.project-heading > div { grid-column: 2; }
.project-heading > div h2 { margin-bottom: 14px; }
.project-description { grid-column: 2; margin: 0; max-width: 680px; }
.statement-block {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1.5fr);
  gap: clamp(30px, 8vw, 150px);
  max-width: 1180px;
  margin: 0 auto 62px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.statement-question {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -.025em;
  line-height: 1.12;
}
.statement-copy { max-width: 690px; }
.statement-copy p, .statement-copy {
  color: #5f5c55;
  font-size: 14px;
  line-height: 1.9;
}
.statement-copy p:first-child { margin-top: 0; }
.statement-copy p:last-child { margin-bottom: 0; }
.full-width-copy { grid-column: 2; max-width: 720px; margin: 0; }
.compact-statement { margin-bottom: 49px; }

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px) clamp(15px, 2vw, 28px);
  max-width: 1360px;
  margin: 0 auto;
  align-items: start;
}
.artwork-card { min-width: 0; margin: 0; }
.artwork-card.wide-card { grid-column: 1 / -1; width: 78%; }
.artwork-card.offset-card { margin-top: clamp(24px, 6vw, 90px); }
.artwork-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #d6d2c8;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(65,62,54,.08)),
    var(--artwork-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.artwork-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(37,36,31,.045);
  content: "";
  pointer-events: none;
}
.artwork-image.landscape { aspect-ratio: 16 / 9; }
.artwork-image.portrait { aspect-ratio: 4 / 5; }
.artwork-image.tall { aspect-ratio: 5 / 8; }
.artwork-image.square { aspect-ratio: 1 / 1; }
.artwork-card figcaption, .video-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .035em;
  line-height: 1.55;
}
.artwork-card figcaption span:first-child, .video-figure figcaption span:first-child { color: var(--ink); }
.project-meta {
  max-width: 1360px;
  margin: 48px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1360px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}
.project-pagination a { padding: 5px 0; }
.project-pagination a:hover, .site-footer a:hover { opacity: .55; }

/* VIMEO ARCHIVE */
.video-statement { margin-bottom: 46px; }
.video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  max-width: 1360px;
  margin: 0 auto;
}
.video-figure { min-width: 0; margin: 0; }
.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #d2cfc6;
  aspect-ratio: 16 / 9;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER */
.site-footer {
  padding: 20px var(--gutter) 24px;
  background: var(--paper);
  color: var(--muted);
}
.footer-topline { display: flex; justify-content: space-between; gap: 20px; }
.site-footer span { font-size: 10px; letter-spacing: .07em; }
.copyright-notice {
  max-width: 850px;
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
  font-size: 9px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding-top: 20px; }
  .site-name { padding-top: 3px; font-size: 9px; }
  .main-nav { justify-content: flex-end; flex-wrap: wrap; gap: 11px 15px; max-width: 68%; }
  .main-nav a { font-size: 8px; }
  .hero { min-height: 100svh; background-position: 54% center; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(62px, 15vw, 108px); }
  .mobile-break { display: block; }
  .hero-caption { max-width: 100%; }
  .hero-note { max-width: 260px; font-size: 9px; line-height: 1.7; }
  .hero-credit { display: none; }
  .scroll-cue { right: var(--gutter); bottom: 21px; left: var(--gutter); justify-content: space-between; }
  .about-layout, .contact-layout, .projects-layout, .project-heading, .statement-block { grid-template-columns: 1fr; gap: 22px; }
  .about-layout, .contact-layout, .projects-layout { margin-top: 60px; }
  .about-content h2, .contact-content h2, .projects-intro h2, .project-heading h2 { font-size: clamp(39px, 11vw, 60px); }
  .project-heading { margin-top: 58px; margin-bottom: 32px; }
  .project-heading .eyebrow, .project-heading > div { grid-column: 1; grid-row: auto; }
  .project-heading h2 { font-size: clamp(39px, 11vw, 60px); }
  .statement-block { margin-bottom: 42px; padding-top: 20px; }
  .statement-question { max-width: 550px; }
  .full-width-copy { grid-column: 1; }
  .project-list a { grid-template-columns: 25px minmax(0, 1fr) 16px; gap: 10px; padding: 19px 0; }
  .project-year { display: none; }
  .project-title { font-size: 23px; }
  .artwork-grid, .video-list { grid-template-columns: 1fr; gap: 29px; }
  .artwork-card.wide-card { grid-column: auto; width: 100%; }
  .artwork-card.offset-card { margin-top: 0; }
  .artwork-card figcaption, .video-figure figcaption { display: block; }
  .artwork-card figcaption span, .video-figure figcaption span { display: block; }
  .panel-inner { padding-top: 20px; }
  .footer-topline { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
