/* PLAN 4 the LAND — styles. Logical properties keep RTL (Farsi) and LTR layouts in sync. */

:root {
  --sea-900: #062a31;
  --sea-800: #0b3a43;
  --sea-700: #0f4d58;
  --sea-500: #1c7d86;
  --olive: #8d9b2c;       /* logo green */
  --lime: #c3d14a;
  --coral: #e57a52;
  --sand: #f6f1e6;
  --sand-2: #efe7d6;
  --paper: #fffdf8;
  --ink: #12282c;
  --muted: #5b6d70;
  --line: rgba(18, 40, 44, .12);
  --white: #fff;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(6, 42, 49, .06), 0 12px 32px -12px rgba(6, 42, 49, .22);
  --shadow-lg: 0 30px 60px -24px rgba(6, 42, 49, .45);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="fa"] { --font: 'Vazirmatn', Tahoma, sans-serif; --font-display: 'Vazirmatn', Tahoma, sans-serif; }
html[lang="zh"] { --font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Hiragino Sans GB', sans-serif; --font-display: 'Songti SC', 'Noto Serif SC', 'SimSun', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="fa"] body { font-size: 17.5px; line-height: 1.95; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
html[lang="fa"] :is(h1, h2, h3, h4) { line-height: 1.5; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--sm { width: .9em; height: .9em; }
[dir="rtl"] .ico--dir { transform: scaleX(-1); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--sea-900); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }
.noscript { padding: 40px; text-align: center; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px;
  background: var(--lime); color: var(--sea-900);
  font-weight: 700; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 10px 24px -10px rgba(195, 209, 74, .8);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(195, 209, 74, .9); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--dark { background: var(--sea-800); color: #fff; box-shadow: var(--shadow); }
.btn--dark:hover { background: var(--sea-700); }
.btn--light { background: #fff; color: var(--sea-800); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive); margin-bottom: .9em;
}
html[lang="fa"] .eyebrow, html[lang="zh"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--lime); }

.display { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.01em; }
html[lang="fa"] .display { font-weight: 800; letter-spacing: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--sea-500); font-size: .92rem; }

/* ------------------------------------------------------------ header */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: transform .35s var(--ease); }
.topbar { background: var(--sea-900); color: rgba(255, 255, 255, .78); font-size: .82rem; transition: margin-top .35s var(--ease); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: var(--lime); }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; }

.bar { transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.bar__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { flex: none; background: rgba(255, 253, 248, .94); border-radius: 16px; padding: 6px 12px; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .4); transition: box-shadow .3s, background .3s; }
.brand img { height: 52px; width: auto; }
.site-header.is-scrolled .topbar { margin-top: -38px; }
.site-header.is-scrolled .bar { background: rgba(255, 253, 248, .9); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(6, 42, 49, .4); }
.site-header.is-scrolled .brand { box-shadow: none; background: transparent; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__row { display: flex; align-items: center; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: .93rem; color: #fff; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav__link:hover, .nav__link.is-current { background: rgba(255, 255, 255, .14); }
.nav__link.is-current { box-shadow: inset 0 -2px 0 var(--lime); }
.is-scrolled .nav__link, .is-scrolled .nav__toggle, .is-scrolled .lang__btn, .is-scrolled .burger { color: var(--ink); }
.is-scrolled .nav__link:hover, .is-scrolled .nav__link.is-current { background: var(--sand); }
.nav__toggle { color: #fff; padding: 6px 4px; margin-inline-start: -8px; display: flex; }
.nav__toggle .ico { width: 15px; transition: transform .25s; }
.has-sub:hover .nav__toggle .ico, .has-sub.is-open .nav__toggle .ico { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 250px;
  background: #fff; color: var(--ink); border-radius: var(--radius-sm); padding: 8px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav__sub::before { content: ''; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub, .has-sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.nav__sub a:hover { background: var(--sand); color: var(--sea-700); }

.bar__tools { display: flex; align-items: center; gap: 6px; }
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: .88rem; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
  transition: background .2s, box-shadow .2s;
}
.lang__btn:hover { background: rgba(255, 255, 255, .14); }
.is-scrolled .lang__btn { box-shadow: inset 0 0 0 1.5px var(--line); }
.is-scrolled .lang__btn:hover { background: var(--sand); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 190px; z-index: 5;
  background: #fff; color: var(--ink); border-radius: var(--radius-sm); padding: 6px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; text-align: start; font-size: .93rem; }
.lang__menu button:hover { background: var(--sand); }
.lang__menu button[aria-checked="true"] { background: var(--sea-800); color: #fff; }
.lang__code { font-family: 'Manrope', sans-serif; font-size: .72rem; font-weight: 800; width: 26px; opacity: .6; }
.burger { display: none; color: #fff; padding: 10px; border-radius: 12px; }
.burger .ico { width: 26px; height: 26px; }

@media (max-width: 1100px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: -1; margin: 0;
    background: var(--sea-900); padding: calc(var(--header-h) + 50px) var(--gutter) 40px;
    overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .bar { background: var(--sea-900); }
  .nav-open .is-scrolled .bar, .nav-open .site-header.is-scrolled .bar { background: var(--sea-900); }
  .nav-open .site-header .burger, .nav-open .site-header .lang__btn { color: #fff; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__row { justify-content: space-between; }
  .nav .nav__link, .is-scrolled .nav .nav__link { color: #fff; font-size: 1.15rem; padding: 14px 4px; background: none !important; box-shadow: none; }
  .nav .nav__link.is-current { color: var(--lime); }
  .nav__toggle, .is-scrolled .nav__toggle { color: #fff; padding: 12px; margin: 0; }
  .nav__toggle .ico { width: 20px; }
  .has-sub:hover .nav__toggle .ico { transform: none; }
  .has-sub.is-open .nav__toggle .ico { transform: rotate(180deg); }
  .nav__sub {
    position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { display: none; }
  .has-sub.is-open > .nav__sub { display: block; }
  .nav__sub a { color: rgba(255, 255, 255, .78); padding: 9px 16px; }
  .nav__sub a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}
@media (max-width: 720px) {
  :root { --header-h: 70px; }
  .topbar__social, .topbar__contact a:last-child { display: none; }
  .brand img { height: 40px; }
  .lang__btn span { display: none; }
  .lang__btn { padding: 10px; }
}

/* ------------------------------------------------------------ hero slider */
.hero { position: relative; height: max(620px, 100svh); min-height: 560px; overflow: hidden; background: var(--sea-900); color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__img { position: absolute; inset: 0; background-size: cover; transform: scale(1.08); transition: transform 8s linear; }
.slide.is-active .slide__img { transform: scale(1); }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 42, 49, .55) 0%, rgba(6, 42, 49, 0) 30%),
    linear-gradient(0deg, rgba(6, 42, 49, .9) 0%, rgba(6, 42, 49, .25) 55%, rgba(6, 42, 49, 0) 75%);
}
.slide__cap { position: absolute; inset-inline: 0; bottom: clamp(120px, 18vh, 190px); z-index: 2; }
.slide__title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1.08;
  max-width: 15ch; margin-bottom: .3em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
html[lang="fa"] .slide__title { line-height: 1.45; font-weight: 800; }
.slide__sub { font-size: clamp(1.05rem, 2vw, 1.4rem); color: rgba(255, 255, 255, .88); max-width: 40ch; margin-bottom: 1.6em; }
.slide__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.slide.is-active .slide__cap > * { animation: rise .9s var(--ease) both; }
.slide.is-active .slide__cap > :nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide__cap > :nth-child(3) { animation-delay: .24s; }
.slide.is-active .slide__cap > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero__ctrl { position: absolute; inset-inline: 0; bottom: clamp(70px, 10vh, 110px); z-index: 3; }
.dots { display: flex; gap: 8px; }
.dot { width: 44px; height: 24px; display: flex; align-items: center; }
.dot span { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.dot span::after { content: ''; position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .dot span::after { transform-origin: right; }
.dot.is-active span::after { animation: fill 6.5s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .slide__img { transition: none; transform: none; }
  .dot.is-active span::after { animation: none; transform: scaleX(1); }
  .slide.is-active .slide__cap > * { animation: none; }
}

.wave-div { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); z-index: 4; fill: var(--paper); }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--sand); }
.section--flush { padding-top: 0; }
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.shead .eyebrow { flex-basis: 100%; margin-bottom: 0; }
.shead h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0; max-width: 24ch; }
html[lang="fa"] .shead h2 { font-weight: 800; }
.link-all { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--sea-500); padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.link-all:hover { border-color: currentColor; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* intro */
.intro { position: relative; overflow: hidden; }
.intro__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__text .display { max-width: 16ch; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.pillars li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--sand); font-weight: 600; font-size: .92rem; }
.pillars .ico { color: var(--olive); }
.intro__art img { width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(6, 42, 49, .18)); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .intro__art img { animation: none; } }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } .intro__art { order: -1; max-width: 340px; margin-inline: auto; } }

/* project cards */
.projects { background: var(--sand); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__body { position: relative; padding: 34px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__icon { position: absolute; top: -26px; inset-inline-start: 24px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sea-800); color: var(--lime); box-shadow: var(--shadow); }
.pcard__icon .ico { width: 24px; height: 24px; }
.pcard h3 { font-size: 1.3rem; }
.pcard p { color: var(--muted); font-size: .97rem; flex: 1; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* stats */
.stats { position: relative; color: #fff; padding-block: clamp(70px, 9vw, 110px); overflow: hidden; background: var(--sea-800); }
.stats__bg { position: absolute; inset: 0; background: url(../img/art/stats-pattern.svg) center / cover no-repeat; opacity: .9; }
.stats .wrap { position: relative; }
.stats__title { font-family: var(--font-display); text-align: center; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: clamp(36px, 5vw, 56px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(4px); }
.stat__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(195, 209, 74, .16); color: var(--lime); margin-bottom: 14px; }
.stat__icon .ico { width: 24px; height: 24px; }
.stat__num { font-family: 'Manrope', var(--font); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
html[lang="fa"] .stat__num { font-family: 'Vazirmatn', sans-serif; }
.stat__unit { color: var(--lime); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.stat__label { font-size: 1.05rem; font-weight: 700; margin-top: 6px; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(120px, auto); gap: 18px; }
.gallery__text { grid-column: 1 / span 5; grid-row: 1 / span 2; align-self: center; padding-inline-end: 20px; }
.gallery__text h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.g { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.05); }
.g1 { grid-column: 6 / span 7; grid-row: 1; aspect-ratio: 16 / 7; }
.g2 { grid-column: 6 / span 4; grid-row: 2; aspect-ratio: 4 / 3; }
.g3 { grid-column: 10 / span 3; grid-row: 2; aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .gallery__text { grid-column: 1 / -1; grid-row: auto; padding: 0; }
  .g1 { grid-column: 1 / -1; grid-row: auto; }
  .g2 { grid-column: 1 / span 7; grid-row: auto; aspect-ratio: 1; }
  .g3 { grid-column: 8 / span 5; grid-row: auto; aspect-ratio: auto; }
}

/* news */
.news { background: linear-gradient(180deg, var(--paper), var(--sand)); }
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ncard a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.ncard a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ncard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ncard a:hover img { transform: scale(1.06); }
.ncard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ncard h3 { font-size: 1.08rem; line-height: 1.45; }
html[lang="fa"] .ncard h3 { line-height: 1.8; }
.ncard p { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .more { margin-top: auto; }
@media (max-width: 900px) { .ngrid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* publications */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.book { display: block; }
.book__cover { border-radius: 6px 18px 18px 6px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: -8px 0 0 -2px var(--sea-700) inset, var(--shadow); transform: perspective(900px) rotateY(0); transition: transform .5s var(--ease), box-shadow .5s; position: relative; }
[dir="rtl"] .book__cover { border-radius: 18px 6px 6px 18px; }
.book__cover::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent); }
[dir="rtl"] .book__cover::after { background: linear-gradient(-90deg, rgba(0, 0, 0, .25), transparent); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .book__cover { transform: perspective(900px) rotateY(-8deg) translateY(-4px); box-shadow: var(--shadow-lg); }
[dir="rtl"] .book:hover .book__cover { transform: perspective(900px) rotateY(8deg) translateY(-4px); }
.book__meta { padding-top: 18px; }
.book time { font-size: .82rem; color: var(--olive); font-weight: 700; }
.book h3 { font-size: 1.15rem; margin-top: 4px; transition: color .2s; }
.book:hover h3 { color: var(--sea-500); }
@media (max-width: 760px) { .bgrid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* partners marquee */
.partners { padding-bottom: clamp(56px, 7vw, 90px); }
.partners .shead { justify-content: center; text-align: center; }
.partners .shead h2 { max-width: none; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { flex: none; width: 140px; height: 133px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.marquee img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + 11px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-inline: var(--gutter); }
  .marquee__track li:nth-child(n + 24) { display: none; }
}

/* CTA */
.cta { padding: 0 var(--gutter) clamp(64px, 8vw, 110px); }
.cta__in {
  position: relative; overflow: hidden; border-radius: 32px; text-align: center; color: #fff;
  padding: clamp(48px, 7vw, 90px) clamp(24px, 6vw, 80px);
  background: radial-gradient(120% 140% at 0% 0%, var(--sea-500) 0%, var(--sea-800) 55%, var(--sea-900) 100%);
}
.cta__in h2 { position: relative; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 26ch; margin: 0 auto 1.1em; }
.cta__in .btn { position: relative; }
.cta__art { position: absolute; inset-inline-end: -40px; bottom: -30px; width: min(420px, 60%); opacity: .2; pointer-events: none; }
[dir="rtl"] .cta__art { transform: scaleX(-1); }

/* ------------------------------------------------------------ page hero */
.phero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; background: var(--sea-900); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; animation: zoom 18s ease-out both; }
@keyframes zoom { from { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .phero__bg { animation: none; } }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 42, 49, .85), rgba(6, 42, 49, .2) 70%); }
.phero__in { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(80px, 10vw, 120px); }
.phero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0; }
html[lang="fa"] .phero h1 { font-weight: 800; }
.crumbs { display: flex; gap: 10px; font-size: .9rem; color: rgba(255, 255, 255, .75); margin-bottom: 10px; }
.crumbs a:hover { color: var(--lime); }

/* ------------------------------------------------------------ about */
.about__intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .about__intro { grid-template-columns: 1fr; } }
.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: a; }
.act { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); overflow: hidden; }
.act__n { position: absolute; inset-inline-end: 16px; top: 6px; font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--sand-2); line-height: 1; }
.act__icon { position: relative; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--sea-800); color: var(--lime); margin-bottom: 18px; }
.act__icon .ico { width: 23px; height: 23px; }
.act p { position: relative; margin: 0; font-size: .96rem; }
@media (max-width: 1100px) { .acts { grid-template-columns: repeat(6, 1fr); } .act { grid-column: span 2; } .act:nth-child(4) { grid-column: 2 / span 2; } }
@media (max-width: 700px) { .acts { grid-template-columns: 1fr; } .act, .act:nth-child(4) { grid-column: auto; } }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.photo-strip figure:nth-child(even) { transform: translateY(26px); }
.photo-strip figure.reveal:nth-child(even):not(.is-in) { transform: translateY(54px); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-strip figure:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

.who { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.who__card { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: var(--sand); }
.who__card > .ico { width: 36px; height: 36px; color: var(--olive); margin-bottom: 14px; }
.who__card h3 { font-size: 1.45rem; }
.who__card--vision { background: var(--sea-800); color: #fff; }
.who__card--vision > .ico { color: var(--lime); }
.who__card--vision p { font-size: 1.25rem; line-height: 1.6; margin: 0; }
.values li { display: flex; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.values li:first-child { border-top: 0; }
.values .ico { color: var(--coral); margin-top: .35em; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }

.slogan { background: var(--sea-900) url(../img/art/stats-pattern.svg) center / cover; color: #fff; padding-block: clamp(70px, 10vw, 130px); text-align: center; }
.slogan__in { max-width: 900px; }
.slogan__q { width: 48px; height: 48px; color: var(--lime); margin: 0 auto 18px; display: block; }
.slogan blockquote { margin: 0; }
.slogan blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.45; font-style: italic; }
html[lang="fa"] .slogan blockquote p, html[lang="zh"] .slogan blockquote p { font-style: normal; line-height: 1.9; }
.slogan footer { color: var(--lime); font-weight: 700; font-size: 1.1rem; margin-top: 18px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.member { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-2); }
.member__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1s var(--ease); }
.member:hover .member__img img { transform: scale(1.05); }
.member figcaption { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.member strong { font-size: 1.15rem; }
.member span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.member em { margin-top: 10px; font-size: .88rem; color: var(--sea-700); font-style: normal; padding-inline-start: 12px; border-inline-start: 3px solid var(--olive); }
.member--memorial .member__img img { filter: grayscale(1); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__banner { border-radius: var(--radius-sm); overflow: hidden; margin: 26px 0; box-shadow: var(--shadow); }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform .25s; color: var(--olive); }
.acc[open] summary .ico { transform: rotate(180deg); }
.acc p { color: var(--muted); padding-bottom: 12px; }
.contact__card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--sea-800); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.contact__card h3 { font-size: 1.5rem; margin-bottom: 22px; }
.contact__card h4 { font-size: 1rem; margin: 26px 0 12px; color: var(--lime); }
.crow { display: flex; gap: 16px; padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.crow:first-child { border-top: 0; }
.crow__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(195, 209, 74, .15); color: var(--lime); }
.crow__label { display: block; font-size: .8rem; color: rgba(255, 255, 255, .6); font-weight: 600; }
.crow a:hover { color: var(--lime); }
.contact__social, .footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.contact__social a, .footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s, color .2s, transform .2s; }
.contact__social a:hover, .footer__social a:hover { background: var(--lime); color: var(--sea-900); transform: translateY(-2px); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 9; min-height: 320px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------ footer */
#site-footer { position: relative; }
.footer__wave svg { display: block; width: 100%; height: 60px; fill: var(--sea-900); }
.footer { background: var(--sea-900); color: rgba(255, 255, 255, .75); padding-top: 30px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { background: var(--paper); border-radius: 14px; padding: 6px 12px; height: 64px; width: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--lime); }
.footer__news a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { margin-top: .3em; color: var(--lime); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ article pages */
.muted { color: var(--muted); }
.phero h1.phero__long { font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.3; max-width: 34ch; }
html[lang="fa"] .phero h1.phero__long { line-height: 1.7; }
.section--article { padding-top: clamp(40px, 6vw, 70px); }
.article { max-width: 920px; }
.notice { background: #fff7e0; border: 1px solid #f1dfa6; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .92rem; color: #6b5a1d; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--olive); font-weight: 700; font-size: .92rem; }
.orig { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.orig a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.orig a:hover { color: var(--sea-500); }

.prose { font-size: 1.05rem; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .2em; font-family: var(--font-display); color: var(--sea-800); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; font-family: var(--font); }
html[lang="fa"] .prose h2, html[lang="fa"] .prose h3 { font-weight: 800; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--sea-500); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--sea-700); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--olive); }
.prose strong { color: var(--ink); }
.prose blockquote { margin-inline: 0; padding: 14px 22px; border-inline-start: 4px solid var(--olive); background: var(--sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose p img { display: inline-block; vertical-align: middle; max-width: min(100%, 420px); margin: 6px; }
.prose .figure { text-align: center; }
.prose .figure img, .prose .figure a { display: inline-block; max-width: 100%; margin: 0; box-shadow: var(--shadow); }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.prose .gallery[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.prose .gallery[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.prose .gallery > img, .prose .gallery > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--sand); box-shadow: var(--shadow); }
.prose .gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; border-radius: 0; transition: transform .6s var(--ease); }
.prose .gallery a:hover img { transform: scale(1.05); }
@media (max-width: 560px) { .prose .gallery, .prose .gallery[data-n] { grid-template-columns: repeat(2, 1fr); } }
.prose a.file {
  display: inline-flex; align-items: center; gap: 8px; margin: 3px 0; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--sand); color: var(--sea-800); text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: background .2s, color .2s;
}
.prose a.file::before { content: 'PDF'; font: 800 .66rem/1 Manrope, sans-serif; letter-spacing: .04em; background: var(--coral); color: #fff; padding: 4px 6px; border-radius: 6px; }
.prose a.file:hover { background: var(--sea-800); color: #fff; }
.prose a.file:has(img)::before { display: none; }
.prose a.file:has(img) { padding: 0; background: none; border-radius: var(--radius-sm); }
.prose .embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose video { width: 100%; border-radius: var(--radius); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--sand); }

.ngrid--list { margin-top: 40px; }
.list-more { text-align: center; margin-top: 32px; }
.ncard time { font-size: .8rem; font-weight: 700; color: var(--olive); margin-bottom: 6px; display: block; }
.ncard__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--olive); background: linear-gradient(135deg, var(--sand), var(--sand-2)); }
.ncard__ph .ico { width: 48px; height: 48px; opacity: .6; }
@media (min-width: 901px) and (max-width: 1100px) { .ngrid { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 42, 49, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: fadein .2s ease; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 16px; inset-inline-end: 16px; color: #fff; padding: 10px; }
.lightbox button .ico { width: 28px; height: 28px; }
@keyframes fadein { from { opacity: 0; } }

/* picture + title + text blocks (books, films, products…) */
.prose .media {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(18px, 3vw, 32px); align-items: center;
  background: #fff; border-radius: var(--radius); padding: clamp(14px, 2vw, 20px); box-shadow: var(--shadow);
}
.prose .media + .media { margin-top: 22px; }
.prose .media .figure { text-align: center; }
.prose .media .figure img { max-height: 340px; width: auto; max-width: 100%; box-shadow: none; display: inline-block; margin: 0; }
.prose .media .figure a { display: inline-block; text-decoration: none; }
.prose .media__body > :first-child { margin-top: 0; }
.prose .media__body > * + * { margin-top: .6em; }
.prose .media__body h2, .prose .media__body h3, .prose .media__body h4 { font-size: 1.2rem; margin-bottom: 0; }
@media (max-width: 640px) { .prose .media { grid-template-columns: 1fr; } .prose .media .figure img { max-height: 280px; } }
.prose .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.prose .media--tile { grid-template-columns: 1fr; align-items: start; text-align: center; margin: 0 !important; padding: 14px 14px 18px; }
.prose .media--tile .figure img { max-height: 220px; }
.prose .media--tile .media__body > * + * { margin-top: .2em; }
.prose .media--tile .media__body h2, .prose .media--tile .media__body h3 { font-size: 1.05rem; }
.prose .media--tile .media__body h4 { font-size: .85rem; font-weight: 600; color: var(--olive); }
.prose .media--tile .media__body p { font-size: .85rem; color: var(--muted); }
