:root {
  color-scheme: light;
  --paper: #f3efe6;
  --ink: #23241e;
  --accent: #a63823;
  --rule: #bdb6a7;
  font-family: Arial, sans-serif;
}

.home-contact { position: absolute; z-index: 2; bottom: 24px; left: 0; width: 100%; text-align: center; }
.home-contact a { padding: 12px 20px; font: 14px Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.instagram-contact { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding-block: 8px; }
.instagram-contact:hover span { text-decoration: underline; text-underline-offset: .25em; }

.contact-form { display: grid; gap: 12px; max-width: 640px; margin-block: 32px; }
.contact-form label { margin-top: 8px; font-size: 14px; }
.contact-form input:not([type="hidden"]):not([hidden]), .contact-form textarea {
  width: 100%; padding: 12px; border: 1px solid #666; border-radius: 2px;
  background: #141414; color: #fff; font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form :focus-visible { outline: 2px solid white; outline-offset: 3px; }
.contact-form button { justify-self: start; padding: 12px 24px; border: 1px solid white; background: white; color: black; font: inherit; cursor: pointer; }
.contact-form button:disabled { opacity: .55; cursor: wait; }
.form-note { color: #bcbcbc; font-size: 12px; line-height: 1.5; }
.form-status { line-height: 1.5; }
.form-status:empty { display: none; }

.music-performance { margin-top: 40px; }
.music-performance h2 { font: 400 clamp(24px, 4vw, 42px)/1.25 Arial, sans-serif; letter-spacing: .02em; }
.performance-video { display: block; width: min(100%, 540px); height: 640px; margin-top: 24px; border: 0; background: white; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
figure, p, h1, h2 { margin: 0; }
.wrap { width: min(1240px, 90%); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; border-bottom: 1px solid var(--rule); }
.wordmark { font: bold 32px Georgia, serif; letter-spacing: -.08em; }
.wordmark span, .explore span, h1 em { color: var(--accent); }
nav { display: flex; gap: 32px; }
.bar a:not(.wordmark), .explore { font-size: 14px; }
.label { font: 12px/1.5 monospace; text-transform: uppercase; letter-spacing: .14em; }
h1, h2 { font-family: Georgia, serif; font-weight: normal; letter-spacing: -.065em; }
figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 12px; font-size: 14px; }
figcaption span, figcaption small { color: #655e52; font: 11px monospace; }
figcaption small { margin-left: auto; }
.gallery, .about, footer.bar { border-top: 1px solid var(--rule); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-block: 30px; }
.section-heading > p, .about div p { color: #655e52; line-height: 1.5; }
h2 { font-size: clamp(42px, 6vw, 82px); line-height: 1.05; }
.studies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 70px; }
.about { display: grid; grid-template-columns: .8fr 1fr; gap: 5%; padding-block: 48px 64px; }
.about div p { margin-top: 14px; max-width: 42ch; }
footer.bar { border-bottom: 0; }

@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { flex-direction: column; align-items: start; }
  .studies { grid-template-columns: 1fr; gap: 24px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}



.hero {
  isolation: isolate;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  color: white;
  background: #241e18;
  text-align: center;
  padding: clamp(28px, 5vh, 64px) 18px 25px;
}
.cover-photo, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover-photo { object-fit: cover; object-position: 65% center; }
.hero::after {
  content: "";
  background: linear-gradient(180deg, #0009, #0001 32%, #0002 53%, #0009 100%);
}
.hero h1,
.interior h1 {
  font: 300 clamp(24px, 5vw, 54px)/1.2 Arial, sans-serif;
  letter-spacing: .29em;
  text-transform: uppercase;
}
.hero h1 { text-indent: .29em; }
.interior h1 { overflow-wrap: anywhere; }
.hero nav {
  grid-row: 2;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(12px, 3vw, 36px);
  transform: translateY(clamp(30px, 13vh, 140px));
}
.hero nav a {
  padding: 10px 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-shadow: 0 1px 5px black;
}
.hero a:hover { color: white; }
.hero a:focus-visible { outline-color: white; }
.hero-scroll { grid-row: 3; align-self: end; padding: 10px 16px; font-size: 22px; }
.studies img { display: block; width: 100%; height: auto; }

.portfolio-section { border-top: 1px solid var(--rule); padding-block: 38px 64px; }
.portfolio-section h2 { margin-top: 8px; }
.section-copy { margin-top: 12px; line-height: 1.6; max-width: 62ch; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; align-items: start; }
.archive-grid img { display: block; width: 100%; height: auto; }
.tehran-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .archive-grid, .tehran-grid { grid-template-columns: 1fr; }
  .hero nav { max-width: 350px; }
}

.cover-link { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: clamp(28px, 5vh, 64px) 18px 40px; isolation: isolate; }
.cover-link::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(#0008, transparent 33%, transparent 65%, #000a); }
.hero::after { content: none; }
.cover-link:focus-visible { outline-offset: -8px; }
.enter-label { padding: 10px 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.enter-label span { margin-left: 8px; }
.interior-bar { gap: 18px; }
.interior-bar nav { flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; }
.interior-bar [aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.interior section { border-top: 0; }
@media (max-width: 700px) {
  .interior-bar { align-items: flex-start; }
  .interior-bar .wordmark { padding-top: 9px; }
  .interior-bar nav { gap: 10px 14px; }
}

.biography-page {
  min-height: 100vh;
  background: #000;
  color: #fff;
  isolation: isolate;
}
.biography-page::before,
.exhibition-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#0006, #0008), url("assets/biography-background.webp") center / cover no-repeat;
}
.biography-page .bar { border: 0; }
.biography-page .wordmark span,
.biography-page a:hover,
.biography-page [aria-current="page"],
.biography-page .about div p { color: #fff; }
.biography-page a:focus-visible { outline-color: #fff; }
.biography-page .about { display: block; max-width: 760px; padding-block: clamp(48px, 10vh, 128px); }
.biography-page .about div p { max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) {
  .biography-page .about > div, .portfolio-page main { animation: portfolio-enter 650ms ease-out 240ms both; }
}
@keyframes portfolio-enter {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

.portfolio-page { background: #000; color: #fff; }
.portfolio-page .bar, .portfolio-page .gallery { border: 0; }
.portfolio-page .wordmark span,
.portfolio-page a:hover,
.portfolio-page [aria-current="page"],
.portfolio-page .section-heading > p,
.portfolio-page figcaption span { color: #fff; }
.portfolio-page a:focus-visible { outline-color: #fff; }

.exhibition-landing {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.exhibition-landing::before { background-color: #000; }
.exhibition-index { flex: 1; padding-block: clamp(40px, 8vh, 80px); }
.exhibition-list { flex-direction: column; align-items: flex-start; gap: 28px; }
.exhibition-list a {
  font: 400 clamp(18px, 2.4vw, 30px)/1.4 Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  text-shadow: 0 2px 14px #000;
  text-underline-offset: .15em;
}
.exhibition-list a:hover, .exhibition-list a:focus-visible { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .exhibition-landing main { animation: none; }
  .exhibition-list a { animation: portfolio-enter 800ms ease-out both; }
  .exhibition-list a:nth-child(2) { animation-delay: 120ms; }
  .exhibition-list a:nth-child(3) { animation-delay: 240ms; }
}

.music-page { background: #000; color: #fff; color-scheme: dark; }
.music-page .music-performance { padding-bottom: 40px; }
.music-page video { display: block; width: min(100%, 960px); max-height: 75vh; background: #000; margin-top: 24px; }

.split-cover {
  position: relative;
  color: #fff;
  text-align: center;
}

.split-cover h1 {
  position: absolute;
  z-index: 1;
  inset: clamp(28px, 6vh, 72px) 0 auto;
  pointer-events: none;
  font: 400 clamp(20px, 4vw, 44px)/1.2 Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}

.split-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-height: 100vh;
  min-height: 100svh;
}

.split-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 90px 8px;
  min-width: 0;
  font: 400 clamp(12px, 3.2vw, 44px)/1.2 Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.split-panel span { display: block; }

.split-sculpture {
  background: #292420;
  text-shadow: 0 2px 12px #000;
}

.split-panel img,
.split-panel::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.split-sculpture img { object-fit: cover; object-position: 50% 35%; }
.split-music img { object-fit: cover; object-position: 50% 25%; }
.split-music { background: radial-gradient(ellipse at 65% 50%, #543936, #22191b 75%); }
.split-panel::after {
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .74) 48%, rgba(0, 0, 0, .92) 100%);
  opacity: 1;
}
.split-panel:focus-visible { outline-offset: -6px; }
.split-panel:focus-visible::after { opacity: .9; }
.split-navigation:has(.split-sculpture:focus-visible) { grid-template-columns: minmax(0, 78fr) minmax(0, 22fr); }
.split-navigation:has(.split-music:focus-visible) { grid-template-columns: minmax(0, 22fr) minmax(0, 78fr); }
.split-panel:focus-visible span { transform: scale(1.3); }

@media (hover: hover) {
  .split-panel:hover::after { opacity: .9; }
  .split-navigation:has(.split-sculpture:hover) { grid-template-columns: minmax(0, 78fr) minmax(0, 22fr); }
  .split-navigation:has(.split-music:hover) { grid-template-columns: minmax(0, 22fr) minmax(0, 78fr); }
  .split-panel:hover span { transform: scale(1.3); }
  .split-navigation:has(.split-panel:hover) .split-panel:not(:hover) span { transform: scale(.65); }
}

@media (prefers-reduced-motion: no-preference) {
  .split-navigation { transition: grid-template-columns 700ms cubic-bezier(.22, 1, .36, 1); }
  .split-panel span { transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
  .split-panel::after { transition: opacity 260ms ease; }
  .split-sculpture img { transition: transform 400ms ease; }
  .split-sculpture:focus-visible img { transform: scale(1.04); }
  @media (hover: hover) {
    .split-sculpture:hover img { transform: scale(1.04); }
  }
}



