@font-face{font-family:"Questrial";src:url("assets/fonts/questrial/Questrial-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Bebas Neue";src:url("assets/fonts/bebas-neue/BebasNeue-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
:root{--brand-red:#9b111e}
.site-header .site-home-link:hover,.site-header .site-home-link:focus-visible,.site-header .archive-brand:hover,.site-header .archive-brand:focus-visible{color:#b83a36!important}
.site-header .top-menu a:hover,.site-header .top-menu a:focus-visible,.site-header .top-menu a[aria-current="page"]{color:#f2e9da}
.site-header .top-menu a:hover::after,.site-header .top-menu a:focus-visible::after,.site-header .top-menu a[aria-current="page"]::after{opacity:1;transform:scaleX(1)}
.site-header>#language:hover,.site-header>#language:focus-visible{color:var(--brand-red);outline:1px solid var(--brand-red);outline-offset:2px}
/* Persian type scale: body → section heading → page heading. */
html[dir="rtl"] .profile-grid h2,html[dir="rtl"] .section-heading h2,html[dir="rtl"] .archive-heading h2{font-size:clamp(1.4rem,2vw,1.7rem)!important;line-height:1.45!important}
html[dir="rtl"] .lead-list p,html[dir="rtl"] .cv-list p,html[dir="rtl"] .timeline-text,html[dir="rtl"] .archive-text,html[dir="rtl"] .photo-card figcaption,html[dir="rtl"] .description{font-size:1rem!important;line-height:1.9!important}
html[dir="rtl"] .section-number,html[dir="rtl"] .timeline-year,html[dir="rtl"] .archive-year,html[dir="rtl"] .photo-card time,html[dir="rtl"] .counter,html[dir="rtl"] .meta{font-size:.78rem!important}

/* Shared fixed frame: language | navigation | artist name. Page content starts below it. */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  display: flex !important;
  width: 100%;
  min-height: clamp(82px, 12vh, 126px) !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 2.5vw, 2.75rem);
  padding: clamp(1rem, 3vh, 2rem) 7vw !important;
  overflow: visible;
  background: rgba(5, 8, 9, .58) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  direction: ltr;
  backdrop-filter: blur(10px);
}

.site-header .top-menu {
  order: 2;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(.5rem, 1.15vw, 1.15rem);
  margin: 0 !important;
  direction: ltr;
}

html[dir="rtl"] .site-header .top-menu {
  direction: rtl;
}

.site-header .top-menu a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .35rem 0;
  color: rgba(242, 233, 218, .76);
  font-size: clamp(.72rem, .9vw, .92rem);
  font-weight: 400;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .48s ease;
}

.site-header .top-menu a::after {
  position: absolute;
  right: 0;
  bottom: .25rem;
  left: 0;
  height: 1px;
  background: var(--brand-red);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .52s cubic-bezier(.22,1,.36,1),opacity .36s ease;
}

.site-header .top-menu i {
  display: none;
}

.site-header .site-home-link,
.site-header .archive-brand {
  order: 3;
  flex: 0 0 auto;
  max-width: none;
  margin: 0 !important;
  color: transparent !important;
  font-family: "Questrial", "Century Gothic", "Avenir Next", Arial, sans-serif !important;
  font-size: clamp(1.08rem, 2.56vw, 3.04rem) !important;
  font-weight: 600;
  letter-spacing: .16em !important;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-text-stroke: 0;
  background: radial-gradient(circle 190px at -300px -300px,#ff6a72 0%,#e13a49 34%,#b92a39 66%,#861725 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.82));
}

html[lang="en"] .site-header .site-home-link,
html[lang="en"] .site-header .archive-brand {
  font-family: "Bebas Neue", Impact, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: .09em !important;
}

.site-header > #language {
  position: static !important;
  order: 1;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(242, 233, 218, .72);
  direction: ltr;
}

.site-header > h1,
.site-header > p,
.site-header > #artist-role {
  display: none !important;
}

.site-header ~ main {
  padding-top: 0 !important;
}

.page-intro {
  padding: clamp(4rem, 10vh, 8rem) 7vw clamp(3rem, 8vh, 6rem);
  border-bottom: 0;
}

.page-intro + .profile-grid,
.page-intro + #text-archive .archive-section:first-child {
  border-top: 0;
}

.page-intro h1 {
  max-width: 12ch;
  margin: 0 0 .2em;
  color: var(--bone);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: .95;
}

.page-intro .about-intro,
.page-intro .archive-intro {
  max-width: 62ch;
  margin: 0;
}

html[dir="rtl"] .page-intro h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  line-height: 1.3;
}

html[dir="rtl"] .page-intro .about-intro,
html[dir="rtl"] .page-intro .archive-intro {
  font-size: 1rem;
  line-height: 1.85;
}

html[dir="rtl"] .page-intro #artist-role {
  display: block;
  margin: 0 0 1.25rem;
  color: var(--gold);
}

@media (max-width: 700px) {
  .site-header {
    min-height: 76px !important;
    gap: .5rem;
    padding: .8rem 6vw !important;
  }

  .site-header .site-home-link,
  .site-header .archive-brand {
    font-size: clamp(1rem, 5.46vw, 1.68rem) !important;
  }

  .site-header .top-menu {
    max-width: 100%;
    flex-wrap: wrap;
    gap: .2rem .75rem;
  }

  .site-header .top-menu a {
    min-height: 36px;
    font-size: .66rem;
  }

  .page-intro {
    padding: 3.5rem 6vw 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .top-menu a,
  .contact-line {
    transition: none;
  }
}

/* Match the internal header frame to the landing's finished position. */
@media (min-width: 701px) {
  .site-header {
    height: clamp(76px, 11.7vh, 94px);
    min-height: 0 !important;
    align-items: flex-start;
    padding: clamp(2rem, 6vh, 3rem) clamp(72px, 8vw, 112px) 5px !important;
  }

  .site-header > #language {
    position: absolute !important;
    top: 20px !important;
    left: clamp(18px, 3vw, 48px) !important;
  }

  .site-header .top-menu {
    flex: 0 0 min(47vw, 595px);
    width: min(47vw, 595px);
    align-items: flex-start;
  }

  .site-header .top-menu a {
    min-height: 36px;
    padding: .15rem 0;
    font-size: clamp(.88rem, 1vw, 1rem);
    letter-spacing: 0 !important;
  }

  .site-header .site-home-link,
  .site-header .archive-brand {
    margin-left: auto !important;
  }
}

/* Match the landing's finished dark frame on every internal page. */
body.gallery-page,
body.about-page,
body.archive-page,
body.contact-page {
  background-color: #050809 !important;
  background-image:
    linear-gradient(rgba(0, 0, 0, .38), rgba(0, 0, 0, .38)),
    url("assets/images/reveal-landing/bg-dark.webp") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* The biography is the first destination after the landing page. */
.site-header .top-menu a[data-menu="artist"],
.site-header .top-menu a[data-menu="biography"] { order: 1; }
.site-header .top-menu a[data-menu="works"] { order: 2; }
.site-header .top-menu a[data-menu="exhibitions"] { order: 3; }
.site-header .top-menu a[data-menu="awards"] { order: 4; }
.site-header .top-menu a[data-menu="media"],
.site-header .top-menu a[data-menu="publications"] { order: 5; }
.site-header .top-menu a[data-menu="contact"] { order: 6; }

/* Keep English and Persian page text at the same visual scale. */
html[lang="en"] .page-intro h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.2vw, 2.65rem) !important;
  line-height: 1.3;
}

html[lang="en"] .page-intro .about-intro,
html[lang="en"] .page-intro .archive-intro {
  font-size: 1rem !important;
  line-height: 1.85;
}

html[lang="en"] .profile-grid h2,
html[lang="en"] .section-heading h2,
html[lang="en"] .archive-heading h2,
html[lang="en"] .contact-copy h2 {
  font-size: clamp(1.4rem, 2vw, 1.7rem) !important;
  line-height: 1.45;
}

html[lang="en"] .lead-list p,
html[lang="en"] .cv-list p,
html[lang="en"] .timeline-text,
html[lang="en"] .archive-text,
html[lang="en"] .description {
  font-size: 1rem !important;
  line-height: 1.9;
}

@media (prefers-reduced-motion: reduce) {
  .about-page .about-page-intro,
  .about-page .profile-grid,
  .about-page .cv-section,
  .site-header .top-menu a,
  .site-header .top-menu a::after,
  .contact-line,
  .collection-card,
    button,
  .artwork-entry,
  .artwork-image img,
  .artwork-info-content,
  .profile-portrait img,
  .photo-card img {
    transition: none !important;
  }

}
