/* ==========================================================================
   رویداد تابستانهٔ رستا
   پالت و فرم بصری مستقیماً از پوستر رویداد گرفته شده: کاغذ کرم، حاشیهٔ
   شنگرفی، تذهیب طلایی، و آبی سرمه‌ای هویت رستا برای بخش‌های تیره.
   ========================================================================== */

@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Lalezar'; src: url('/fonts/Lalezar-Arabic.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Lalezar'; src: url('/fonts/Lalezar-Latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --paper:        #FBF3DF;
  --paper-deep:   #F3E7CA;
  --crimson:      #A6161C;
  --crimson-deep: #6E0F14;
  --gold:         #E0A31E;
  --gold-soft:    #F0D394;
  --navy:         #16243F;
  --sky:          #93C2DC;
  --ink:          #2C2318;
  --ink-soft:     #6B5D4A;

  --display: 'Lalezar', 'Vazirmatn', system-ui, sans-serif;
  --body: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: min(1180px, 100% - 2.5rem);
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M20 1.5 L26.5 9 L20 16.5 L13.5 9 Z' fill='none' stroke='%23A6161C' stroke-width='1.4'/%3E%3Ccircle cx='20' cy='9' r='2.1' fill='%23E0A31E'/%3E%3Cpath d='M0 9 H12.5 M27.5 9 H40' stroke='%23E0A31E' stroke-width='1.3'/%3E%3Ccircle cx='0' cy='9' r='1.7' fill='%23A6161C'/%3E%3Ccircle cx='40' cy='9' r='1.7' fill='%23A6161C'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 4px; }

:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute; inset-block-start: -100%; inset-inline-start: 1rem;
  background: var(--crimson); color: var(--paper);
  padding: 0.6rem 1.2rem; border-radius: 0 0 6px 6px; z-index: 100;
}
.skip-link:focus { inset-block-start: 0; }

/* --- تیترها ------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.35; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem); color: var(--crimson-deep); }
h3 { font-size: 1.2rem; color: var(--ink); }

/* عنوان بخش: یک نشان لوزی طلایی که تیتر را به خط تذهیب وصل می‌کند */
.section-head { display: flex; align-items: center; gap: 0.9rem; margin-block-end: 2.25rem; }
.section-head::after {
  content: ''; flex: 1; height: 13px;
  background: var(--band) repeat-x center / auto 100%;
  opacity: 0.75;
}
.section-head h2 { white-space: nowrap; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6rem); }
.section--tinted { background: var(--paper-deep); }

/* --- دکمه‌ها ------------------------------------------------------------ */

.btn {
  display: inline-block; font-family: var(--body); font-weight: 700;
  font-size: 1.02rem; padding: 0.85rem 2.1rem; border: 0; cursor: pointer;
  border-radius: 4px; text-decoration: none; text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn--primary {
  background: var(--crimson); color: var(--paper);
  box-shadow: 0 0 0 1px var(--crimson), 0 0 0 4px var(--paper), 0 0 0 5px var(--gold);
}
.btn--primary:hover { background: var(--crimson-deep); transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: var(--crimson-deep);
  box-shadow: inset 0 0 0 1.5px var(--crimson);
}
.btn--ghost:hover { background: rgba(166, 22, 28, 0.07); }
.btn--gold {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--navy), 0 0 0 5px var(--gold-soft);
}
.btn--gold:hover { background: #F0B62F; transform: translateY(-2px); }
.btn[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }

.logo-mark {
  display: inline-block; flex-shrink: 0;
  width: 1.32em; height: 1.5em;
  background-color: currentColor;
  -webkit-mask: url('/img/rasta-logo.png') no-repeat center / contain;
  mask: url('/img/rasta-logo.png') no-repeat center / contain;
}

/* --- ناوبری ------------------------------------------------------------- */

.nav {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(251, 243, 223, 0.93);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid rgba(166, 22, 28, 0.22);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.75rem; }
.nav__brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-size: 1.5rem; color: var(--crimson);
  text-decoration: none; letter-spacing: 0.01em;
}
.nav__links { display: flex; gap: 1.4rem; margin-inline-start: auto; list-style: none; padding: 0; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  padding-block: 0.35rem; border-block-end: 2px solid transparent;
}
.nav__links a:hover { color: var(--crimson); border-block-end-color: var(--gold); }
.nav__cta { padding: 0.55rem 1.3rem; font-size: 0.92rem; box-shadow: none; }
.nav__cta.btn--primary { box-shadow: inset 0 0 0 1px var(--crimson-deep); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__toggle {
    display: block; margin-inline-start: auto; background: none; border: 0;
    font-family: var(--body); font-size: 0.9rem; font-weight: 700;
    color: var(--crimson); cursor: pointer; padding: 0.5rem;
  }
  .nav[data-open='true'] .nav__links {
    display: flex; flex-direction: column; gap: 0.25rem;
    flex-basis: 100%; order: 3; padding-block: 0.75rem 1rem;
  }
  .nav[data-open='true'] .nav__inner > .btn { display: block; order: 4; flex-basis: 100%; }
  .nav[data-open='true'] .nav__inner { flex-wrap: wrap; }
}

/* --- هیرو --------------------------------------------------------------- */

.hero { padding-block: clamp(2rem, 1rem + 4vw, 4rem) clamp(3rem, 2rem + 4vw, 5rem); }

/* قاب تذهیب: سه لایه حاشیه (شنگرفی/کاغذ/طلایی) دور کل هیرو */
.hero__frame {
  position: relative;
  border: 7px solid var(--crimson);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold);
  padding: clamp(1.5rem, 1rem + 3vw, 3.25rem);
  background:
    radial-gradient(circle at 100% 0, rgba(224, 163, 30, 0.16), transparent 45%),
    radial-gradient(circle at 0 100%, rgba(147, 194, 220, 0.16), transparent 45%),
    var(--paper);
}
/* مدالیون گوشه‌ها، مثل چهار گوشهٔ سرلوح پوستر */
.hero__frame::before, .hero__frame::after {
  content: ''; position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--gold); background: var(--paper);
  transform: rotate(45deg);
}
.hero__frame::before { inset-block-start: -13px; inset-inline-start: -13px; }
.hero__frame::after { inset-block-end: -13px; inset-inline-end: -13px; }

.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }

.hero__eyebrow {
  font-size: 0.95rem; font-weight: 500; color: var(--crimson);
  margin: 0 0 0.5rem;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.6rem + 5.4vw, 5rem);
  line-height: 1.12; color: var(--crimson-deep); margin: 0;
}
.hero__tagline {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem); font-weight: 500;
  color: var(--ink-soft); margin: 0.75rem 0 1.5rem; max-width: 34ch;
}
.hero__facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem;
  font-weight: 500; margin-block-end: 1.75rem;
}
.hero__facts span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__facts .lozenge { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

.hero__poster {
  border: 3px solid var(--crimson-deep);
  box-shadow: 0 18px 40px -22px rgba(110, 15, 20, 0.75);
  max-height: min(66vh, 560px);
  max-width: 100%;
  width: auto;
  height: auto;
  justify-self: center;
}

/* --- شمارش معکوس -------------------------------------------------------- */

.countdown { margin-block-end: 1.9rem; }
.countdown__label { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.countdown__units {
  display: flex; gap: 0; list-style: none; margin: 0; padding: 0;
  /* واحدها از چپ به راست: روز، ساعت، دقیقه، ثانیه */
  direction: ltr; justify-content: flex-end;
}
.countdown__unit { padding-inline: clamp(0.7rem, 0.4rem + 1.2vw, 1.5rem); text-align: center; }
.countdown__unit + .countdown__unit { border-inline-start: 1px solid rgba(224, 163, 30, 0.6); }
.countdown__unit:last-child { padding-inline-end: 0; }
.countdown__value {
  display: block; font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); line-height: 1;
  color: var(--crimson); font-variant-numeric: tabular-nums;
}
.countdown__name { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-block-start: 0.4rem; }
.countdown__done { font-family: var(--display); font-size: 1.5rem; color: var(--crimson); margin: 0; }

/* --- نوار تذهیب بین بخش‌ها ---------------------------------------------- */

.rule { height: 18px; background: var(--band) repeat-x center; }

/* --- دربارهٔ رویداد ------------------------------------------------------ */

.about__prose { max-width: 62ch; }
.about__prose p { margin-block: 0 1.25rem; }

.workshops {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0; margin-block-start: 3rem;
  border-block-start: 1px solid rgba(166, 22, 28, 0.25);
}
.workshop {
  padding: 1.6rem 1.25rem;
  border-block-end: 1px solid rgba(166, 22, 28, 0.25);
}
.workshop + .workshop { border-inline-start: 1px solid rgba(166, 22, 28, 0.18); }
.workshop h3 { color: var(--crimson-deep); font-size: 1.35rem; margin-block-end: 0.35rem; text-align: center; }
.workshop__desc p { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.7; text-align: justify; }
.workshop__desc p:last-child { margin-block-end: 0; }
@media (max-width: 760px) {
  .workshop + .workshop { border-inline-start: 0; }
}

/* --- آجندا -------------------------------------------------------------- */

.agenda__days { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.day__head { margin-block-end: 1.5rem; padding-block-end: 0.75rem; border-block-end: 2px solid var(--gold); }
.day__name { font-family: var(--display); font-size: 1.5rem; color: var(--crimson); }
.day__date { display: block; font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; }

.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid rgba(166, 22, 28, 0.25); }
.timeline li { position: relative; padding-inline-start: 1.25rem; padding-block-end: 1.5rem; }
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: -4.5px; inset-block-start: 0.65rem;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}
.timeline li:last-child { padding-block-end: 0; }
.timeline time {
  font-family: var(--display); font-size: 1.15rem; color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.timeline strong { display: block; font-weight: 700; font-size: 1rem; line-height: 1.6; }
.timeline p { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }

/* --- تیم برگزاری -------------------------------------------------------- */

/* تیم برگزاری: یک ردیف افقی قابل اسکرول. با تیمی در این ابعاد، شبکهٔ چندردیفی
   نیمی از صفحه را می‌گرفت؛ ریل افقی ارتفاع را ثابت نگه می‌دارد. */
.team-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 1.5rem;
}
.team-filter {
  font-family: var(--body); font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 0.85rem; border: 1.5px solid rgba(166, 22, 28, 0.22);
  background: transparent; color: var(--ink-soft); border-radius: 99px;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.team-filter:hover { border-color: var(--crimson); color: var(--crimson); }
.team-filter.is-active { background: var(--crimson); color: var(--paper); border-color: var(--crimson); }

.team-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-block-end: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.team-rail::-webkit-scrollbar { height: 7px; }
.team-rail::-webkit-scrollbar-track { background: rgba(166, 22, 28, 0.1); border-radius: 99px; }
.team-rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }
.team-rail:focus-visible { outline: 3px solid var(--crimson); outline-offset: 6px; }

.member {
  flex: 0 0 108px;
  text-align: center;
  scroll-snap-align: start;
}
/* پرترهٔ کوچک در قاب طاق‌مانند، هم‌آوا با طاق و پردهٔ پوستر */
.member__portrait {
  width: 76px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 46% 46% 6px 6px / 55% 55% 6px 6px;
  border: 1.5px solid var(--gold);
  background: var(--paper-deep);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.6rem; color: var(--crimson);
  margin: 0 auto 0.6rem;
}
.member__name { display: block; font-weight: 700; font-size: 0.85rem; line-height: 1.45; }
.member__role { display: block; font-size: 0.75rem; color: var(--ink-soft); line-height: 1.5; }
.member__links { display: flex; justify-content: center; gap: 0.5rem; margin-block-start: 0.35rem; }
.member__links a { color: var(--ink-soft); display: inline-flex; }
.member__links a:hover { color: var(--crimson); }
.member__links svg { width: 14px; height: 14px; }

.team-hint { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.js .team-hint { display: none; }
.js .team-hint:not([hidden]) { display: block; }

/* --- اطلاعیه‌ها --------------------------------------------------------- */

.news { list-style: none; margin: 0; padding: 0; max-width: 74ch; }
.news > li { padding-block: 1.6rem; border-block-end: 1px solid rgba(166, 22, 28, 0.2); }
.news > li:first-child { padding-block-start: 0; }
.news__date {
  font-size: 0.82rem; font-weight: 700; color: var(--crimson);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.news__date::before { content: ''; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.news h3 { margin: 0.4rem 0 0.4rem; font-size: 1.3rem; color: var(--crimson-deep); }
.news p { margin: 0; color: var(--ink); }
.news__empty { color: var(--ink-soft); }

/* --- پرسش‌های پرتکرار ---------------------------------------------------- */

.faq { max-width: 74ch; border-block-start: 1px solid rgba(166, 22, 28, 0.2); }
.faq details { border-block-end: 1px solid rgba(166, 22, 28, 0.2); }
.faq summary {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
  padding-block: 1.25rem; font-weight: 700; font-size: 1.05rem;
  list-style: none; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-inline-start: auto; font-family: var(--display);
  font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform 0.2s ease;
}
.faq details[open] summary { color: var(--crimson-deep); }
.faq details[open] summary::after { content: '−'; color: var(--crimson); }
.faq summary:hover { color: var(--crimson); }
.faq__answer { margin: 0 0 1.4rem; color: var(--ink-soft); max-width: 66ch; }

/* --- مکان --------------------------------------------------------------- */

.venue { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
.venue__map { border: 3px solid var(--crimson-deep); aspect-ratio: 4 / 3; }
.venue__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.venue__address { font-size: 1.05rem; font-weight: 500; margin: 0 0 1.5rem; }
.directions { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.directions li { padding-block: 0.9rem; border-block-end: 1px solid rgba(166, 22, 28, 0.18); }
.directions strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--crimson); }
.directions p { margin: 0.15rem 0 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.75; }
@media (max-width: 820px) { .venue { grid-template-columns: 1fr; } }

/* --- حامیان ------------------------------------------------------------- */

.sponsors__intro { max-width: 56ch; color: var(--ink-soft); margin: 0 0 2.5rem; }
.sponsors {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
/* کارت خنثی با خط طلایی نازک، تا لوگوهای رنگارنگ با هم ناهماهنگ به نظر نرسند.
   نام حامی همیشه زیر لوگو می‌آید — لوگوی تنها ناتمام به نظر می‌رسد. */
.sponsor > a, .sponsor__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.85rem;
  min-width: 170px; max-width: 220px; min-height: 116px; padding: 1.35rem 1.25rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(224, 163, 30, 0.55);
  border-radius: 4px;
  text-decoration: none;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.sponsor > a:hover { box-shadow: inset 0 0 0 1.5px var(--crimson); transform: translateY(-2px); }
.sponsor__logo { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
.sponsor__name {
  font-weight: 700; font-size: 0.88rem; color: var(--ink);
  text-align: center; line-height: 1.55; text-wrap: balance;
}
/* حامی بدون لوگو: نام تنها، کمی بزرگ‌تر تا کارت خالی به نظر نرسد */
.sponsor__logo + .sponsor__name { font-weight: 500; color: var(--ink-soft); }
.sponsor > a > .sponsor__name:only-child,
.sponsor__inner > .sponsor__name:only-child {
  font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--crimson-deep);
}

/* --- فراخوان ثبت‌نام ----------------------------------------------------- */

.register { background: var(--navy); color: var(--paper); text-align: center; }
.register__frame {
  border: 2px solid var(--gold); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1.5rem;
  position: relative;
}
.register__frame::before, .register__frame::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--gold); background: var(--navy); transform: rotate(45deg);
}
.register__frame::before { inset-block-start: -10px; inset-inline-start: -10px; }
.register__frame::after { inset-block-end: -10px; inset-inline-end: -10px; }
.register h2 { color: var(--gold); margin-block-end: 0.75rem; }
.register p { max-width: 52ch; margin: 0 auto 2rem; color: #E4DCC8; }
.register__note { font-size: 0.9rem; margin-block-start: 1.25rem !important; margin-block-end: 0 !important; color: var(--sky); }

/* --- فوتر --------------------------------------------------------------- */

.footer { background: var(--navy); color: #CFC6B2; padding-block: 3rem 2rem; border-block-start: 1px solid rgba(224, 163, 30, 0.3); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: start; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-size: 1.7rem; color: var(--gold); }
.footer__brand + p { margin: 0.25rem 0 0; font-size: 0.92rem; max-width: 34ch; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer__socials a { color: var(--paper); text-decoration: none; font-size: 0.94rem; }
.footer__socials a:hover { color: var(--gold); }
.footer__contact a { color: var(--gold); display: inline-block; unicode-bidi: isolate; }
.footer__bottom {
  margin-block-start: 2.5rem; padding-block-start: 1.5rem;
  border-block-start: 1px solid rgba(224, 163, 30, 0.22);
  font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
}

/* --- ظاهر موبایل -------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__poster { order: -1; max-width: min(340px, 100%); margin-inline: auto; }
  .agenda__days { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sponsors { gap: 0.75rem; }
  .sponsor > a, .sponsor__inner { min-width: 132px; min-height: 100px; padding: 1rem; gap: 0.65rem; }
  .sponsor__logo { max-height: 36px; }
  :root { --shell: min(1180px, 100% - 1.75rem); }
  .countdown__unit { padding-inline: 0.55rem; }
  .team-rail { gap: 1.1rem; }
  .member { flex-basis: 92px; }
  .btn { display: block; }
}

/* --- ظهور تدریجی هنگام اسکرول ------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero__enter { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }
  .js .hero__enter:nth-child(2) { animation-delay: 0.08s; }
  .js .hero__enter:nth-child(3) { animation-delay: 0.16s; }
  .js .hero__enter:nth-child(4) { animation-delay: 0.24s; }
  .js .hero__enter:nth-child(5) { animation-delay: 0.32s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media print {
  .nav, .register, .hero__poster { display: none; }
  body { background: #fff; }
}
