/* --blue-bright:  #4d5bff; */

@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/helvetica/Helvetica.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/helvetica/Helvetica-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/helvetica/Helvetica-Oblique.woff') format('woff');
  font-weight: 400;
  font-style: oblique;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/helvetica/Helvetica-BoldOblique.woff') format('woff');
  font-weight: 700;
  font-style: oblique;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/helvetica/helvetica-light-587ebe5a59211.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/helvetica/helvetica-compressed-5871d14b6903a.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Rounded';
  src: url('../assets/fonts/helvetica/helvetica-rounded-bold-5871d05ead8de.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
  UACO — University of Art Contemporary Orchestra
  Stylesheet
  ========================================================================== */

:root {
  --black: #060608;
  --black-soft: #0c0d13;
  --panel: #101119;
  --line: #23242f;
  --blue: #2b3bf6;
  /* --blue-bright:  #4d5bff; */
  --blue-bright: #1F51FF;
  --blue-deep: #0c1258;
  --white: #f5f5f2;
  --muted: #9a9baa;
  --muted-dim: #66677a;

  /* System font stacks only — no external font requests, so the page
     never blocks or hangs waiting on a network call. */
  --font-display: 'Helvetica', Arial, sans-serif;
  --font-head: 'Helvetica', Arial, sans-serif;
  --font-body: 'Helvetica', Arial, sans-serif;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--blue-bright);
}

/* ==========================================================================
   Home — full-bleed photo band
   ========================================================================== */
.photo-band {
  position: relative;
  height: min(72vh, 640px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.photo-band-media {
  position: absolute;
  inset: 0;
}

.photo-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(12%) contrast(1.06) brightness(.92);
}

.photo-band-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, .25) 0%, rgba(6, 6, 8, .05) 38%, rgba(6, 6, 8, .9) 100%),
    linear-gradient(90deg, rgba(6, 6, 8, .55) 0%, rgba(6, 6, 8, 0) 40%);
}

.photo-band-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
}

.photo-band-caption h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 40px);
  max-width: 20ch;
}

@media (max-width: 760px) {
  .photo-band {
    height: 56vh;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}


.btn-outline:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  transform: translateY(-2px);
}

.btn-filled {
  background-color: black;
}

.btn-filled:hover {
  /* border-color: var(--blue-bright);
  color: var(--blue-bright); */
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform .25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 6, 8, .94) 0%, rgba(6, 6, 8, .8) 65%, rgba(6, 6, 8, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: none;
  padding-bottom: 22px;
  margin-bottom: -22px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  z-index: 3;
}

.header-logo {
  width: 3.5rem;
  margin: 4px;
}

.brand {
  margin-right: .5rem;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--white);
}

.brand-mark span {
  color: var(--blue-bright);
}

.brand-sub {
  width: 18rem;
  margin-top: 7px;
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.nav-desktop {
  display: flex;
  gap: 6px;
}

.nav-desktop a {
  padding: 10px 18px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-desktop a.active {
  color: var(--white);
  border-color: var(--blue-bright);
}

/* Dropdown mega-menu (History / Projects / People) */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-bright);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 60;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
}

.dropdown-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: default;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.dropdown-label::after {
  content: '\203A';
  color: var(--blue-bright);
  font-size: 15px;
}

.dropdown-item:hover .dropdown-label,
.dropdown-item:focus-within .dropdown-label {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}

.submenu {
  position: absolute;
  top: -8px;
  left: 100%;
  margin-left: 8px;
  min-width: 110px;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-bright);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
}

.dropdown-item:hover .submenu,
.dropdown-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.submenu a:hover {
  color: var(--blue-bright);
  background: rgba(255, 255, 255, .04);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}

.nav-toggle-bars span:nth-child(2) {
  top: 5px;
}

.nav-toggle-bars span:nth-child(3) {
  top: 11px;
}

body.nav-open .nav-toggle-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 106px 0 0 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 12px var(--pad) 40px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

body.nav-open .nav-mobile {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .02em;
  color: var(--white);
}

.nav-mobile a.active {
  color: var(--blue-bright);
}

/* Mobile accordion (History / Projects / People) */
.nav-mobile-item {
  border-bottom: 1px solid var(--line);
}

.nav-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-mobile-row a {
  flex: 1;
  border-bottom: none;
}

.nav-mobile-toggle {
  flex: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-mobile-toggle:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.nav-mobile-sub {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
  transition: max-height .4s var(--ease), opacity .3s var(--ease);
}

.nav-mobile-item.is-open .nav-mobile-sub {
  max-height: 320px;
  opacity: 1;
  padding-bottom: 16px;
}

.nav-mobile-group {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.nav-mobile-group:first-child {
  margin-top: 4px;
}

.nav-mobile .nav-mobile-sublink {
  padding: 10px 0 10px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: none;
}

.nav-mobile .nav-mobile-sublink:hover {
  color: var(--blue-bright);
}

/* وقتی کلاس فعال باشه */
body.nav-open .nav-mobile {
  position: unset;
}

/* وقتی کلاس فعال نباشه (حالت پیش‌فرض) */
body:not(.nav-open) .nav-mobile {
  position: fixed;
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  /* border-bottom: 1px solid var(--line); */
  padding: clamp(64px, 11vw, 120px) 0 clamp(48px, 7vw, 90px);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 105vh;
  min-height: 90svh;
}

.hero-pattern {
  position: absolute;
  inset: -20% -10%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  transform: rotate(-9deg);
  opacity: .12;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 30%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 62% 30%, #000 40%, transparent 78%);
}

.hero-pattern span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-left: 24px;
  border-left: 2px solid var(--blue-bright);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 15ch;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .5);
}

.hero-title em {
  font-style: normal;
  color: var(--blue-bright);
}

.hero-tagline {
  margin-top: 26px;
  max-width: 520px;

  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;

  color: #fff;

  background: transparent;
  padding: 0;

  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(0px) brightness(1.5) saturate(1);
  transform: scale(1.03);
  /* blur bleeds past edges, so scale up to hide it */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, .5) 0%, rgba(6, 6, 8, .60) 55%, var(--black) 100%),
    radial-gradient(ellipse 60% 50% at 30% 15%, rgba(43, 59, 246, .22), transparent 70%);
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-header {
  /* border-bottom: 1px solid var(--line); */
  padding: 56px 0 44px;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.page-header h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -.01em;
}

.page-header .lede {
  margin-top: 8px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 17px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-border {
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
}

.section-head .link-more {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border-bottom: 1px solid var(--blue-bright);
  padding-bottom: 2px;
}

/* ==========================================================================
   Card grid (home quick-links)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--black);
  padding: 34px 30px;
  transition: background .25s var(--ease);
}

.card:hover {
  background: var(--black-soft);
}

.card-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--blue-bright);
}

.card h3 {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 21px;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.card .link-more {
  margin-top: 22px;
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.card:hover .link-more {
  color: var(--blue-bright);
}

/* ==========================================================================
   Featured project (home)
   ========================================================================== */
.featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.featured-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-meta {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.featured-meta div {
  font-size: 13px;
  color: var(--muted);
}

.featured-meta strong {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  margin-bottom: 3px;
}

.featured h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.08;
  white-space: nowrap;
}

.featured p.desc {
  margin-top: 18px;
  color: var(--muted);
  max-width: 48ch;
}

.featured .btn {
  margin-top: 30px;
}

/* ==========================================================================
   Timeline (history)
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.timeline-era {
  position: relative;
  padding-bottom: 64px;
}

.timeline-era:last-child {
  padding-bottom: 0;
}

.timeline-era::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--blue-bright);
}

.timeline-era .era-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.timeline-era h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
}

.timeline-era .years {
  color: var(--muted-dim);
  font-size: 14px;
  margin-top: 4px;
}

.timeline-era .body {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
}

.timeline-era .body p+p {
  margin-top: 14px;
}

.mini-list {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}

.mini-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list li:last-child {
  border-bottom: none;
}

.mini-list b {
  color: var(--white);
  min-width: 150px;
  font-family: var(--font-head);
  font-weight: 600;
}

.flow {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.flow span {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.flow i {
  color: var(--blue-bright);
  font-style: normal;
  font-size: 13px;
}

/* ==========================================================================
   Projects
   ========================================================================== */
.project-group-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.project-group-title h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  white-space: nowrap;
}

.project-group-title .rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.project-group-note {
  margin-top: -20px;
  margin-bottom: 36px;
  color: var(--muted-dim);
  font-size: 14px;
  max-width: 64ch;
}

.project {
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.project.is-official {
  border-color: var(--blue);
}

.project-top {
  padding: 32px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}

.project-tag {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.project-top h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 24px);
}

.project-year {
  font-family: var(--font-head);
  color: var(--muted);
  font-size: 15px;
}

.project-body {
  padding: 32px clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 44px;
}

.project-body p {
  color: var(--muted);
}

.project-body p+p {
  margin-top: 14px;
}

.project-roles {
  display: grid;
  gap: 14px;
  align-content: start;
}

.project-roles div:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.project-roles b {
  display: block;
  font-family: var(--font-head);
  font-size: 14.5px;
  margin-top: 4px;
}

.project-roles span {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.subsection {
  margin-top: 28px;
}

.subsection h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

/* ==========================================================================
   Archive
   ========================================================================== */
.archive-year {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.archive-year:last-child {
  border-bottom: none;
}

.archive-year .years {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--blue-bright);
}

.archive-year h3 {
  font-family: var(--font-head);
  font-size: 21px;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
}

/* .archive-img {
  width: 100%;
  height: 400px;
} */

.archive-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.archive-dialog-actions {
  margin-top: 14px;
  display: none;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Leadership / people
   ========================================================================== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.person {
  background: var(--black);
  padding: 28px 26px;
}

.person h4 {
  font-family: var(--font-head);
  font-size: 17px;
}

.person span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* ==========================================================================
   People (by year)
   ========================================================================== */
.people-year {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.anchor-target {
  scroll-margin-top: 110px;
}

.anchor-target:target {
  animation: anchorFlash 1.6s var(--ease);
}

@keyframes anchorFlash {
  0% {
    background: rgba(77, 91, 255, .28);
  }

  100% {
    background: transparent;
  }
}

.people-year:last-child {
  border-bottom: none;
}

.people-year-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 32px;
}

.people-year-head .years {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--blue-bright);
}

.people-year-head .rule {
  height: 1px;
  background: var(--line);
  flex: 1;
}

.people-year-head p {
  color: var(--muted-dim);
  font-size: 13px;
}

.ppl-block {
  margin-top: 44px;
}

.ppl-block:first-child {
  margin-top: 0;
}

.ppl-block>h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.ppl-note {
  margin-top: 18px;
  color: var(--muted-dim);
  font-size: 13.5px;
  max-width: 74ch;
  line-height: 1.75;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 32px;
}

.name-grid li {
  font-size: 14px;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.orchestra-groups {
  columns: 3;
  column-gap: 32px;
}

.orchestra-group {
  break-inside: avoid;
  margin-bottom: 28px;
}

.orchestra-group h5 {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 10px;
}

.orchestra-group ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.orchestra-group li {
  font-size: 13.5px;
  color: var(--muted);
}

.orchestra-sub {
  margin-top: 12px;
}

.orchestra-sub:first-of-type {
  margin-top: 0;
}

.orchestra-sub-label {
  display: block;
  font-size: 11px;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
}


.bio-grid--fixed3 {
  grid-template-columns: repeat(5, 1fr);
}


.bio-card {
  background: var(--black);
  padding: 28px 26px;
  display: flex;
  gap: 16px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-deep);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-bright);
}

.bio-card h4 {
  font-family: var(--font-head);
  font-size: 16.5px;
}

.bio-card .role {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.bio-card p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.bio-card-col {
  flex-direction: column;
}

/* ==========================================================================
   Branch tree (History / Projects hover navigation)
   ========================================================================== */
.branch-tree {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.branch-group {
  position: relative;
  padding-bottom: 28px;
}

.branch-label {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  /* font-family: var(--font-display); */
  font-size: clamp(10px, 2.6vw, 20px);
  color: var(--white);
  font-weight: 700;
}

.branch-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  transition: transform .3s var(--ease);
}

.branch-group:hover .branch-label::before,
.branch-group:focus-within .branch-label::before,
.branch-group.is-open .branch-label::before {
  transform: scale(1.5);
}

.branch-children {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  margin-left: 4px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  transition: max-height .45s var(--ease), opacity .3s var(--ease), padding-left .45s var(--ease);
}

/* .branch-children::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 98px;
  bottom: 0;
  width: 29px;
  background-color: var(--black)
} */
.fav-icon {
  font-size: 50px !important;
}

.branch-group:hover .branch-children,
.branch-group:focus-within .branch-children,
.branch-group.is-open .branch-children {
  max-height: 80px;
  opacity: 1;
  padding-left: 22px;
}

.branch-children a {
  position: relative;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .2s var(--ease);
}

.branch-group:hover .branch-children a,
.branch-group:focus-within .branch-children a,
.branch-group.is-open .branch-children a {
  opacity: 1;
  transform: translateX(0);
}

.branch-children a:nth-child(1) {
  transition-delay: .06s;
}

.branch-children a:nth-child(2) {
  transition-delay: .13s;
}

.branch-children a:nth-child(3) {
  transition-delay: .2s;
}

.branch-children a::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--line);
}

.branch-children a:hover {
  color: var(--blue-bright);
}

/* ==========================================================================
   Archive — filters and grid
   ========================================================================== */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.pill:hover {
  border-color: var(--blue-bright);
  color: var(--white);
}

.pill.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 22px;
  row-gap: 45px;
  margin-top: 36px;
}

.archive-card {
  display: flex;
  flex-direction: column;
}

.archive-card.is-hidden {
  display: none;
}

.archive-grid.is-filtering .archive-card:not(.is-hidden) {
  animation: cardFade .45s var(--ease) both;
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.archive-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  padding: 40px;
  overflow: hidden;
  background: var(--black-soft);
  border: 1px solid var(--line);
}

.archive-card[data-type="photo"] .archive-thumb {
  background: linear-gradient(135deg, var(--panel), var(--blue-deep));
  border: 1px solid var(--line);
  padding: 40px !important;
}






.archive-card[data-type="photo"] .archive-thumb::before {
  content: "";
  position: absolute;
  inset: 40px;
  /* این عدد = مقدار پدینگ از لبه‌های کانتینر */
  background: linear-gradient(135deg, var(--panel), var(--blue-deep));
  z-index: 0;
}


.archive-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.archive-card .a-type {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.archive-card .a-title {
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}

.archive-empty {
  margin-top: 40px;
  color: var(--muted-dim);
  display: none;
}

.archive-empty.is-visible {
  display: block;
}

/* ==========================================================================
   History — narrative subsections + related project card
   ========================================================================== */
.history-sub {
  margin-top: 30px;
}

.history-sub h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.history-sub p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.related-project {
  margin-top: 40px;
  padding: 0 0 28px 34px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.related-project h5 {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.related-project .rp-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
}

.related-project .rp-meta {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.related-project .rp-meta div {
  font-size: 13.5px;
  color: var(--muted);
}

.related-project .rp-meta b {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  margin-right: 6px;
}

.rp-links {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.rp-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--blue-bright);
  padding-bottom: 3px;
  transition: color .2s var(--ease);
}

.rp-links a:hover {
  color: var(--blue-bright);
}

/* ==========================================================================
   Projects — performance schedule rows
   ========================================================================== */
.perf-list {
  margin-top: 10px;
  display: grid;
}

.perf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.perf-row:last-child {
  border-bottom: none;
}

.perf-row .when {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--white);
}

.perf-row .where {
  font-size: 12.5px;
  color: var(--muted-dim);
  margin-top: 2px;
}

.status {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.status.performed {
  color: var(--blue-bright);
  border-color: var(--blue-bright);
}

.status.cancelled {
  color: var(--muted-dim);
}

.status.rescheduled {
  color: #e0a83c;
  border-color: #e0a83c;
}

/* ==========================================================================
   Contact — channel grid
   ========================================================================== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.channel-card {
  background: var(--black);
  padding: 30px 28px;
  transition: background .2s var(--ease);
}

.channel-card:hover {
  background: var(--black-soft);
}

.channel-card .label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.channel-card .handle {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--white);
  transition: color .2s var(--ease);
}

.channel-card:hover .handle {
  color: var(--blue-bright);
}

.channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-deep);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.channel-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-bright);
  fill: none;
}


/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info dl {
  display: grid;
  gap: 22px;
}

.contact-info dt {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.contact-info dd {
  margin: 6px 0 0;
  font-size: 17px;
}

.contact-info dd a:hover {
  color: var(--blue-bright);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
  transition: border-color .2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue-bright);
  outline: none;
}

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* ==========================================================================
   Header search
   ========================================================================== */
#site-header {
  position: relative;
}

.search-toggle {
  width: 40px;
  height: 40px;
  margin-left: 14px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.search-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.search-toggle:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--black-soft);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s var(--ease), opacity .3s var(--ease);
  z-index: 90;
}

body.search-open .search-panel {
  max-height: 440px;
  opacity: 1;
}

.search-panel .container {
  padding-top: 22px;
  padding-bottom: 22px;
}

.search-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 14px 16px;
  font-size: 15px;
}

.search-input:focus {
  border-color: var(--blue-bright);
  outline: none;
}

.search-results {
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s var(--ease);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: rgba(255, 255, 255, .04);
}

.search-result.is-active {
  background: rgba(255, 255, 255, .06);
}

.search-result .sr-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--white);
}

.search-result .sr-section {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  white-space: nowrap;
}

.search-result mark {
  background: none;
  color: var(--blue-bright);
  font-weight: 700;
}

.search-empty {
  padding: 14px 10px;
  color: var(--muted-dim);
  font-size: 13.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-logo {
  width: 5.5rem;
  object-fit: contain;
  display: block;
  /* margin-bottom: 18px; */
}

.footer-top {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand .brand-mark {
  font-size: 24px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 27ch;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s var(--ease);
}

.footer-col a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-dim);
}

.footer-bottom .socials {
  display: flex;
  gap: 18px;
}

.footer-bottom .socials a {
  color: var(--muted);
}

.footer-bottom .socials a:hover {
  color: var(--blue-bright);
}

/* ==========================================================================
   History logo
   ========================================================================== */

.support-block {
  margin-top: 32px;
}

.support-block h5 {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.logo-row img {
  width: 12rem;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.6);
  opacity: .85;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}

.logo-row img:hover {
  filter: none;
  opacity: 1;
}

.archive-thumb.archive-pdf {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
}

.archive-thumb.archive-pdf .archive-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

/* دکمه‌ها روی تصویر (وسط) */
.archive-thumb.archive-pdf .pdf-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  /* دکمه‌ها زیر هم */
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}

/* لایه تیره روی تصویر هنگام هاور */
.archive-thumb.archive-pdf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* هاور */
/* .archive-thumb.archive-pdf:hover::after {
  opacity: 1;
}

.archive-thumb.archive-pdf:hover .pdf-actions {
  opacity: 1;
  visibility: visible;
} */


/* استایل دکمه‌ها داخل overlay */
.archive-thumb.archive-pdf .pdf-actions .btn {
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 10px 18px;
}


/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-media {
    display: none;
  }

  .hero-overlay {
    background:
      radial-gradient(ellipse 90% 55% at 15% 0%, rgba(43, 59, 246, .35), transparent 60%),
      radial-gradient(ellipse 70% 50% at 100% 100%, rgba(31, 81, 255, .28), transparent 65%),
      linear-gradient(160deg, var(--black-soft) 0%, var(--black) 75%);
  }


  .featured {
    grid-template-columns: 1fr;
  }

  .project-body {
    grid-template-columns: 1fr;
  }

  .archive-year {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .name-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .orchestra-groups {
    columns: 2;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "brand brand brand"
      "nav explore contact";
    gap: 32px;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-top .footer-col:nth-child(2) {
    grid-area: nav;
  }

  .footer-top .footer-col:nth-child(3) {
    grid-area: explore;
  }

  .footer-top .footer-col:nth-child(4) {
    grid-area: contact;
  }

  .hero-title {
    font-size: clamp(28px, 5.5vw, 48px);
  }

  .page-header h1 {
    font-size: clamp(24px, 4.5vw, 36px);
  }

  .featured h2 {
    font-size: clamp(20px, 3vw, 26px);
  }

  .project-group-title h2 {
    font-size: clamp(20px, 3vw, 28px);
  }

  .section-head h2 {
    font-size: clamp(22px, 3vw, 32px);
  }

  .timeline-era h3 {
    font-size: clamp(20px, 3vw, 26px);
  }

  .people-year-head .years {
    font-size: clamp(26px, 3.5vw, 36px);
  }

  .archive-year .years {
    font-size: clamp(20px, 2.4vw, 26px);
  }

  .brand-mark {
    font-size: 22px;
  }

  /* .channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  } */

  .channel-card .handle {
    margin-top: 0;
  }

  .logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding: clamp(90px, 20vw, 130px) 0 clamp(50px, 10vw, 70px);
  }

  .hero-inner {
    margin-left: var(--pad);
  }
}


@media (max-width: 760px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .branch-tree {
    gap: 40px;
  }

  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }

  .orchestra-groups {
    columns: 1;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .featured h2 {
    white-space: normal;
    font-size: clamp(22px, 6vw, 30px);
  }

  .project-group-title h2 {
    white-space: normal;
  }

  .brand-sub {
    width: auto;
    max-width: 60vw;
  }

  .footer-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "explore"
      "contact";
    gap: 28px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    /* gap: 14px; */
  }

  .footer-logo {
    width: 3.5rem;
  }

  .hero-title {
    font-size: clamp(26px, 8vw, 36px);
  }

  .page-header h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .featured h2 {
    font-size: clamp(20px, 6vw, 24px);
  }

  .project-group-title h2 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .section-head h2 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .timeline-era h3 {
    font-size: clamp(19px, 5vw, 23px);
  }

  .people-year-head .years {
    font-size: clamp(24px, 8vw, 30px);
  }

  .archive-year .years {
    font-size: clamp(19px, 4.5vw, 22px);
  }

  .nav-mobile a {
    font-size: 22px;
  }

  .header-logo {
    width: 2.6rem;
  }

  .brand-mark {
    font-size: 19px;
  }

  .channel-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
  }

  .channel-icon svg {
    width: 13px;
    height: 13px;
  }
}

.archive-cover {
  cursor: pointer;
}

.archive-grouped-hidden {
  display: none !important;
}

.archive-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(6, 6, 8, .85);
  border: 1px solid var(--blue-bright);
  color: var(--blue-bright);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.archive-thumb {
  position: relative;
}

.archive-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}

.archive-dialog.is-open {
  opacity: 1;
  visibility: visible;
}

.archive-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, .92);
  backdrop-filter: blur(6px);
}

.archive-dialog-box {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.archive-dialog-media {
  max-width: 100%;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-dialog-media img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}

.archive-dialog-media iframe {
  width: min(95vw, 900px);
  height: min(70vh, 506px);
  border: 1px solid var(--line);
}

.archive-dialog-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.archive-dialog-close:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.archive-dialog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(6, 6, 8, .7);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

.archive-dialog-nav:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.archive-dialog-prev {
  left: -60px;
}

.archive-dialog-next {
  right: -60px;
}

.archive-dialog-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 13px;
}

.archive-dialog-title {
  color: var(--white);
  font-weight: 600;
}

body.archive-dialog-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .archive-dialog-prev {
    left: 4px;
  }

  .archive-dialog-next {
    right: 4px;
  }

  .archive-dialog-close {
    top: 8px;
    right: 8px;
    background: rgba(6, 6, 8, .7);
  }
}

/* ==========================================================================
   Archive page — responsive (scoped only to body[data-page="archive"])
   ========================================================================== */

@media (max-width: 900px) {
  body[data-page="archive"] .archive-thumb {
    height: 280px;
    padding: 28px;
  }
}

@media (max-width: 760px) {
  body[data-page="archive"] .filter-row {
    gap: 8px;
  }

  body[data-page="archive"] .pill {
    padding: 9px 14px;
    font-size: 12px;
  }

  body[data-page="archive"] .archive-grid {
    column-gap: 14px;
    row-gap: 30px;
  }

  body[data-page="archive"] .archive-thumb {
    height: 220px;
    padding: 20px;
  }

  body[data-page="archive"] .archive-card[data-type="photo"] .archive-thumb::before {
    inset: 12px;
  }
}

@media (max-width: 480px) {
  body[data-page="archive"] .archive-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="archive"] .archive-thumb {
    height: 260px;
  }

  body[data-page="archive"] .page-header .lede {
    font-size: 15px;
  }
}

/* ==========================================================================
   Projects page — mobile: move .rp-links to the end of each project container
   ========================================================================== */
@media (max-width: 980px) {
  body[data-page="projects"] .project-body {
    gap: 0;
    /* فاصله‌ها از طریق margin کنترل می‌شوند */
  }

  /* فرزندان div اول به آیتم‌های مستقیم grid تبدیل می‌شوند */
  body[data-page="projects"] .project-body>div:first-child {
    display: contents;
  }

  /* ترتیب: محتوا ← نقش‌ها ← لینک‌ها */
  body[data-page="projects"] .project-roles {
    order: 1;
    margin-top: 32px;
  }

  body[data-page="projects"] .project-body .rp-links {
    order: 2;
  }
}

/* ==========================================================================
   Contact page — mobile: keep channel grid centered, prevent overflow
   ========================================================================== */
@media (max-width: 760px) {

  /* ستون grid اجازه‌ی کوچک‌شدن پیدا می‌کند تا از عرض صفحه بیرون نزند */
  body[data-page="contact"] .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="contact"] .contact-info,
  body[data-page="contact"] .channel-grid {
    min-width: 0;
    width: 100%;
  }

  body[data-page="contact"] .channel-card {
    min-width: 0;
  }

  /* متن‌های بلند (ایمیل و هندل‌ها) به‌جای سرریز، بشکنند */
  body[data-page="contact"] .channel-card .handle {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.about-container {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .about-container {
    margin-top: 8px;
  }
}