/* Pasargad Sweden. Protest-poster documentary design: full-bleed photographs, condensed
   display type, lion-and-sun gold on near-black, paper for reading. Mobile first, logical
   properties throughout so the Persian (RTL) pages mirror without extra rules. */

@font-face { font-family: 'Big Shoulders Display'; src: url(/assets/fonts/BigShouldersDisplay.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(/assets/fonts/SchibstedGrotesk.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/assets/fonts/InstrumentSerif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/assets/fonts/InstrumentSerif-Italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lalezar'; src: url(/assets/fonts/Lalezar-latin.woff2) format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lalezar'; src: url(/assets/fonts/Lalezar-arabic.woff2) format('woff2'); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
/* metric-matched fallback so the condensed display face swaps in without a big jump */
@font-face { font-family: 'Display Fallback'; src: local('Arial Narrow'), local('ArialNarrow'), local('Helvetica Neue Condensed Bold'), local('Arial'); size-adjust: 78%; ascent-override: 112%; descent-override: 28%; }
@font-face { font-family: 'Vazir'; src: url(/assets/fonts/Vazir-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazir'; src: url(/assets/fonts/Vazir-Medium.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Vazir'; src: url(/assets/fonts/Vazir-Bold.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #0c0b09;
  --ink-2: #15130f;
  --ink-3: #201d17;
  --paper: #f2ede3;
  --paper-2: #e8e1d3;
  --paper-3: #cfc5b1;
  --white: #fffdf8;
  --sun: #f2a900;
  --sun-2: #ffc23d;
  --sun-dark: #8a5a00;
  --green: #239b56;
  --red: #da291c;
  --muted: #6b6457;
  --muted-light: #b3ab9c;
  --line-light: rgba(242, 237, 227, .16);
  --line-dark: rgba(12, 11, 9, .14);
  --field-line: #8f877a;

  --f-display: 'Big Shoulders Display', 'Display Fallback', 'Arial Narrow', sans-serif;
  --f-text: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-fa-num: 'Lalezar', 'Vazir', sans-serif;

  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --max: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* header: tall with a large logo and wordmark at the top of the page (-top values);
     on scroll the bar, logo and wordmark shrink together into the compact fixed header */
  --hdr: 76px;
  --hdr-top: 104px;
  --logo: 54px;
  --logo-top: 76px;
  --word: 1.6rem;
  --word-top: 2.1rem;
  /* height of the ticker, so the hero and ticker share the first screen */
  --tick: calc(clamp(1.4rem, 3.6vw, 2.5rem) + 3.2rem);
}
@media (min-width: 900px) { :root { --hdr-top: 136px; --logo: 60px; --logo-top: 104px; --word: 1.7rem; --word-top: 2.7rem; } }
@media (max-width: 420px) { :root { --logo-top: 66px; --word-top: 1.8rem; } }
@media (max-width: 400px) { :root { --logo-top: 52px; --logo: 46px; --word-top: 1.45rem; --word: 1.35rem; } }
@media (min-width: 1140px) and (max-width: 1320px) { :root { --logo-top: 80px; --word-top: 2.1rem; } }
:root:lang(fa) {
  --f-display: 'Lalezar', 'Vazir', Tahoma, sans-serif;
  --f-text: 'Vazir', Tahoma, sans-serif;
  --f-serif: 'Vazir', Tahoma, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 1.0625rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
:lang(fa) body, body:lang(fa) { font-size: 1.0625rem; line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h3 { font: 700 1.25rem/1.25 var(--f-text); }
:lang(fa) h3 { font-weight: 700; line-height: 1.6; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200; background: var(--sun); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
bdi { unicode-bidi: isolate; }
.nw { white-space: nowrap; }

/* film grain over everything, very light */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- type ---------- */
.mega {
  font: 900 clamp(3.1rem, 14vw, 10.5rem)/.86 var(--f-display);
  text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance;
}
.mega--page { font-size: clamp(3rem, 13vw, 9rem); }
.mega--md { font-size: clamp(2.8rem, 11vw, 7.5rem); }
:lang(fa) .mega { font-weight: 400; text-transform: none; line-height: 1.22; letter-spacing: 0; font-size: clamp(2.5rem, 10.5vw, 7rem); }
:lang(fa) .mega--md { font-size: clamp(2.3rem, 8.5vw, 5.4rem); }
.h-xl { font: 900 clamp(2.4rem, 8vw, 5.2rem)/.92 var(--f-display); text-transform: uppercase; text-wrap: balance; }
:lang(fa) .h-xl { font-weight: 400; text-transform: none; line-height: 1.3; font-size: clamp(2rem, 6.5vw, 3.8rem); }
.h-lg { font: 800 clamp(2rem, 5vw, 3.2rem)/.95 var(--f-display); text-transform: uppercase; }
/* a word wider than its column (long Swedish compounds) breaks instead of running into its neighbour */
.mega, .h-xl, .h-lg, .ev h3, .ch-body h2, .what-list h3, .way h3, .value h3 { overflow-wrap: break-word; }
:lang(fa) .h-lg { font-weight: 400; text-transform: none; line-height: 1.35; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 .78rem/1.3 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--sun);
}
:lang(fa) .kicker { letter-spacing: 0; font-size: .92rem; font-weight: 600; }
.kicker--dark { color: var(--sun-dark); }
@media (max-width: 479px) { .kicker { letter-spacing: .1em; } }
.lead { font-size: clamp(1.08rem, 2.1vw, 1.3rem); line-height: 1.55; color: rgba(242, 237, 227, .86); max-width: 38em; }
:lang(fa) .lead { line-height: 1.95; }
.lead-dark { font-size: clamp(1.08rem, 2vw, 1.25rem); color: #3a352c; max-width: 34em; }
.serif-line { font: italic 400 clamp(1.5rem, 3.2vw, 2.2rem)/1.15 var(--f-serif); color: var(--sun-dark); }
:lang(fa) .serif-line { font-style: normal; font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.7; }
.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); }
.small { font-size: .9rem; }

.link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-block-end: 2px;
  transition: background-size .35s var(--ease), color .2s;
}
[dir=rtl] .link { background-position: 100% 100%; }
.link:hover { background-size: 0 1.5px; color: var(--sun-dark); }
.link--light:hover, .section--ink .link:hover, .ftr .link:hover { color: var(--sun); }
/* standalone links get a full touch target */
.sec-head .link, .reel-ig .link, .ev-act .link { min-height: 44px; }
.arr { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease); }
[dir=rtl] .arr { transform: scaleX(-1); }
a:hover > .arr, button:hover > .arr { transform: translateX(4px); }
[dir=rtl] a:hover > .arr, [dir=rtl] button:hover > .arr { transform: scaleX(-1) translateX(4px); }

/* brand icons (real logos) */
.bi { width: 1.3em; height: 1.3em; flex: none; }
.bi--instagram { fill: #ff0069; }
.bi--whatsapp { fill: #25d366; }
.bi--mono { fill: currentColor; }
.bi--swish-mark { width: 1.45em; height: 1.45em; }
.bi--swish { height: 2.1rem; width: auto; }
.bi--bankid { height: 1.6rem; width: auto; }

/* ---------- buttons: square corners, condensed uppercase ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block-start: 1.75rem; }
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.4rem; border-radius: 3px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 800 1.12rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .035em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
:lang(fa) .btn { font: 600 1rem/1.25 var(--f-text); text-transform: none; letter-spacing: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[aria-disabled=true] { opacity: .45; pointer-events: none; }
.btn svg:not(.arr):not(.bi) { width: 1.15em; height: 1.15em; }
.btn--sun { --bg: var(--sun); --fg: var(--ink); }
.btn--sun:hover { --bg: var(--sun-2); box-shadow: 0 10px 30px -10px rgba(242, 169, 0, .7); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--ink:hover { --bg: #2a251d; }
.btn--glass { --bg: rgba(255, 255, 255, .1); --fg: var(--paper); --bd: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .2); }
.btn--line-light { --bg: transparent; --fg: var(--paper); --bd: rgba(242, 237, 227, .4); }
.btn--line-light:hover { --bd: var(--paper); --bg: rgba(242, 237, 227, .08); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: rgba(12, 11, 9, .3); }
.btn--line:hover { --bd: var(--ink); }
.btn--swish { --bg: var(--white); --fg: #111; --bd: rgba(12, 11, 9, .12); }
.btn--swish:hover { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55); }
.btn--wa { --bg: #25d366; --fg: #062b17; }
.btn--wa .bi { fill: currentColor; }
.btn--wa:hover { --bg: #3ee07a; }
.btn--sm { min-height: 44px; padding: .55rem 1.05rem; font-size: 1rem; }
.btn--lg { min-height: 58px; padding: 1rem 1.7rem; font-size: 1.25rem; }
.btn--block { width: 100%; }
/* phones: stacked actions share one width */
@media (max-width: 559px) { .actions > .btn { flex: 1 1 100%; } }
.round {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(242, 237, 227, .35); background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s;
}
.round svg { width: 20px; height: 20px; }
[dir=rtl] .round svg { transform: scaleX(-1); }
.round:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.round[disabled] { opacity: .3; pointer-events: none; }
.copy-mini { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; cursor: pointer; font-size: .85rem; font-weight: 600; }
.copy-mini:hover { background: var(--paper); color: var(--ink); }

/* ---------- header ---------- */
.hdr { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; padding-top: env(safe-area-inset-top); transition: border-color .35s; border-block-end: 1px solid transparent; }
/* scrim behind the transparent header so its text keeps contrast over photos */
.hdr::before { content: ''; position: absolute; inset: 0 0 -3rem; z-index: -1; background: linear-gradient(to bottom, rgba(12, 11, 9, .85), rgba(12, 11, 9, .55) 60%, rgba(12, 11, 9, 0)); transition: opacity .35s; pointer-events: none; }
/* The solid, blurred bar lives on its own permanent layer and only fades. Toggling backdrop-filter
   on .hdr itself made the browser rebuild the header's layer, which showed as a one-frame flash. */
.hdr::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(12, 11, 9, .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); opacity: 0; transition: opacity .35s; pointer-events: none; }
.hdr.is-solid::after { opacity: 1; }
body.menu-open .hdr::after { opacity: 0; }
.hdr.is-solid { border-color: var(--line-light); }
.hdr.is-solid::before, body.menu-open .hdr::before { opacity: 0; }
.hdr-in { display: flex; align-items: center; gap: 1rem; height: var(--hdr-top); max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); transition: height .45s var(--ease); }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; margin-inline-end: auto; min-width: 0; position: relative; z-index: 2; transition: gap .45s var(--ease); }
.emblem { overflow: visible; }
.emblem--hdr { flex: none; width: var(--logo-top); height: var(--logo-top); background: var(--paper); border-radius: 50%; padding: 6%; box-shadow: 0 0 0 2px var(--sun), 0 0 22px rgba(242, 169, 0, .35); transition: width .45s var(--ease), height .45s var(--ease), box-shadow .45s; }
.brand-word { display: grid; line-height: 1; min-width: 0; }
.brand-word > span { font: 900 var(--word-top)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; transition: font-size .45s var(--ease); }
:lang(fa) .brand-word > span { font-weight: 400; font-size: calc(var(--word-top) * 1.05); line-height: 1.1; }
.brand-word small { font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: #cfc7b8; margin-block-start: .28rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: font-size .45s var(--ease); }
:lang(fa) .brand-word small { letter-spacing: 0; font-size: .86rem; }
@media (min-width: 900px) { .brand-word small { font-size: .92rem; } :lang(fa) .brand-word small { font-size: .95rem; } }
.hdr.is-solid .hdr-in, body.menu-open .hdr-in { height: var(--hdr); }
.hdr.is-solid .brand, body.menu-open .brand { gap: .7rem; }
.hdr.is-solid .emblem--hdr, body.menu-open .emblem--hdr { width: var(--logo); height: var(--logo); }
.hdr.is-solid .brand-word > span, body.menu-open .brand-word > span { font-size: var(--word); }
:lang(fa) .hdr.is-solid .brand-word > span, :lang(fa) body.menu-open .brand-word > span { font-size: calc(var(--word) * 1.05); }
.hdr.is-solid .brand-word small, body.menu-open .brand-word small { font-size: .66rem; }
:lang(fa) .hdr.is-solid .brand-word small, :lang(fa) body.menu-open .brand-word small { font-size: .7rem; }
.hdr-act { display: flex; align-items: center; gap: .6rem; position: relative; z-index: 2; }
.lang-mini { display: none; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(242, 237, 227, .3); }
.lang-mini a { display: grid; place-items: center; min-width: 38px; height: 34px; padding-inline: .5rem; border-radius: 999px; font: 700 .8rem/1 var(--f-text); text-decoration: none; color: #cfc7b8; transition: color .2s, background-color .2s; }
.lang-mini a[lang=fa] { font-family: 'Vazir', Tahoma, sans-serif; font-weight: 700; font-size: 1rem; }
.lang-mini a:hover { color: var(--paper); }
.lang-mini a[aria-current] { background: var(--paper); color: var(--ink); }
.burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(242, 237, 227, .35); background: transparent; cursor: pointer; }
.burger-lines { position: relative; width: 18px; height: 10px; }
.burger-lines i { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), inset-block-start .35s var(--ease); }
.burger-lines i:first-child { inset-block-start: 0; }
.burger-lines i:last-child { inset-block-start: 8px; }
.burger[aria-expanded=true] .burger-lines i:first-child { inset-block-start: 4px; transform: rotate(45deg); }
.burger[aria-expanded=true] .burger-lines i:last-child { inset-block-start: 4px; transform: rotate(-45deg); }

/* mobile menu: full screen */
.nav {
  position: fixed; inset: 0; z-index: 1; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; visibility: hidden; clip-path: circle(0 at calc(100% - 40px) 34px);
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
[dir=rtl] .nav { clip-path: circle(0 at 40px 34px); }
.nav.open { visibility: visible; clip-path: circle(150vmax at calc(100% - 40px) 34px); transition: clip-path .7s var(--ease), visibility 0s; }
[dir=rtl] .nav.open { clip-path: circle(150vmax at 40px 34px); }
.nav-list a { display: block; padding-block: .3rem; font: 900 clamp(2.4rem, 11vw, 3.6rem)/1.02 var(--f-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; color: rgba(242, 237, 227, .92); }
:lang(fa) .nav-list a { font-weight: 400; text-transform: none; line-height: 1.45; font-size: clamp(2rem, 9vw, 2.8rem); }
.nav-list a[aria-current=page] { color: var(--sun); }
.nav-list a:hover { color: var(--sun); }
.nav.open .nav-list li { animation: navIn .6s var(--ease) both; animation-delay: calc(.12s + var(--i) * 45ms); }
@keyframes navIn { from { opacity: 0; transform: translateY(24px); } }
.nav-extra { display: grid; gap: 1.4rem; margin-block-start: 2.5rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line-light); }
.nav-langs, .nav-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.nav-langs a, .nav-social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-light); text-decoration: none; font-weight: 600; }
.nav-langs a[aria-current] { background: var(--paper); color: var(--ink); }
body.menu-open { overflow: hidden; }
body.menu-open .hdr { border-color: transparent; }

@media (max-width: 420px) {
  .hdr-in { gap: .6rem; }
  .brand-word small { display: none; }
}
@media (max-width: 400px) {
  .brand { gap: .55rem; }
  .hdr-act { gap: .45rem; }
  .hdr-donate { padding-inline: .75rem; }
}
@media (max-width: 359px) { .brand-word { display: none; } }
@media (min-width: 560px) { .lang-mini { display: flex; } }
@media (min-width: 1140px) {
  .burger, .nav-extra { display: none; }
  .nav, [dir=rtl] .nav { position: static; visibility: visible; clip-path: none; background: none; padding: 0; overflow: visible; display: block; transition: none; }
  .nav-list { display: flex; gap: .15rem; }
  .nav-list a { font: 600 .95rem/1 var(--f-text); text-transform: none; padding: .7rem .8rem; border-radius: 999px; transition: color .2s, background-color .2s; }
  :lang(fa) .nav-list a { font: 500 1rem/1 var(--f-text); }
  .nav-list a:hover { color: var(--paper); background: rgba(242, 237, 227, .08); }
  .nav-list a[aria-current=page] { color: var(--sun); }
}
/* desktop nav between 1140 and 1320px: tighter, so every link stays on one line */
@media (min-width: 1140px) and (max-width: 1320px) {
  .hdr-in { gap: .75rem; }
  .nav-list a { padding-inline: .55rem; }
  .brand-word small { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--tick)); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media, .phead-media, .memorial-media, .band-photo-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .phead-media img, .memorial-media img, .band-photo-media img { width: 100%; height: 100%; object-fit: cover; }
.kb { animation: kb 18s ease-out both; transform-origin: 60% 40%; }
@keyframes kb { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.hero-shade, .phead-shade, .memorial-shade, .band-photo-shade { position: absolute; inset: 0; z-index: -1; }
.hero-shade { background:
  linear-gradient(to top, rgba(12, 11, 9, .97) 0%, rgba(12, 11, 9, .82) 30%, rgba(12, 11, 9, .35) 62%, rgba(12, 11, 9, .55) 100%); }
.hero-in { padding-block: calc(var(--hdr-top) + 1rem) clamp(2.2rem, 5vh, 4rem); }
.chip-live {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  background: rgba(12, 11, 9, .55); border: 1px solid var(--line-light); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 700 .76rem/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; margin-block-end: 1.4rem;
}
:lang(fa) .chip-live { letter-spacing: 0; font-size: .88rem; }
.hero-in > .chip-live { justify-self: start; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(218, 41, 28, .7); animation: pulse 1.8s infinite; flex: none; }
.chip-live .pulse { animation: none; background: var(--sun); box-shadow: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(218, 41, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(218, 41, 28, 0); } }
.hero .mega { max-width: 14ch; }
:lang(fa) .hero .mega { max-width: 16ch; }
@media (min-width: 900px) { :root:not(:lang(fa)) .hero .mega { font-size: clamp(3.1rem, min(14vw, 16svh), 10.5rem); } }
.hero-row { display: grid; gap: 1.5rem; margin-block-start: 1.6rem; align-items: end; }
.hero-row .actions { margin: 0; }
.scroll-cue { position: absolute; inset-block-end: 1.4rem; inset-inline-end: var(--gutter); display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(242, 237, 227, .35); color: var(--paper); }
.scroll-cue svg { width: 20px; }
@media (max-width: 899px) {
  .hero .mega { font-size: clamp(2.6rem, 11.5vw, 4.6rem); }
  :lang(fa) .hero .mega { font-size: clamp(2.2rem, 9.5vw, 3.8rem); }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  :lang(fa) .hero .lead { line-height: 1.8; }
  .hero-row { margin-block-start: 1rem; gap: 1rem; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .hero .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-height: 640px) { .hero .lead { display: none; } }
@media (min-width: 900px) { .scroll-cue { display: grid; } }
@media (min-width: 1500px) { .hero-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }

/* headline words rise in one after another */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .04em .02em; margin-block: -.04em -.02em; }
:lang(fa) .w { padding-block: .18em .12em; margin-block: -.18em -.12em; }
.js .w > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * 75ms); }
@keyframes rise { to { transform: none; } }
.js .hero .chip-live, .js .hero-row, .js .phead .kicker, .js .phead .lead { animation: fadeUp .9s var(--ease) both; animation-delay: .55s; }
.js .hero-row { animation-delay: .75s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 3; background: var(--sun); color: var(--ink); overflow: hidden; width: 106vw; margin-inline: -3vw; margin-block: -1.1rem -.6rem; transform: rotate(-1.6deg); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .6); }
[dir=rtl] .ticker { transform: rotate(1.6deg); }
.ticker-track { display: flex; width: max-content; animation: tick 42s linear infinite; }
[dir=rtl] .ticker-track { animation-name: tickRtl; }
.ticker-run { display: flex; align-items: center; gap: 1.6rem; padding-block: .9rem; padding-inline-end: 1.6rem; flex: none; }
.ticker-run span { font: 900 clamp(1.3rem, 3.4vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
:lang(fa) .ticker-run span { font-family: 'Lalezar', 'Vazir', sans-serif; font-weight: 400; text-transform: none; line-height: 1.3; }
.sun-glyph { width: 1.5rem; height: 1.5rem; flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes tickRtl { to { transform: translateX(50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- next event countdown ---------- */
.next { background: var(--ink-2); padding-block: clamp(5rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.next::before { content: ''; position: absolute; inset-inline-end: -20vw; inset-block-start: -30%; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242, 169, 0, .16), transparent 62%); pointer-events: none; }
.next--flush { padding-block: clamp(3.5rem, 8vw, 6rem); }
.countdown { position: relative; display: grid; gap: 2.5rem; }
.cd-info { container-type: inline-size; }
.cd-info .h-xl { margin-block: .9rem 1.2rem; max-width: 16ch; }
/* Latin titles scale with the column so the longest word (LÖRDAGSMANIFESTATION) fits next to the clock */
:root:not(:lang(fa)) .cd-info .h-xl { font-size: clamp(1.9rem, 10.5cqi, 5.2rem); max-width: none; }
.meta { display: grid; gap: .55rem; margin-block-end: 1.6rem; color: rgba(242, 237, 227, .85); }
.meta li { display: flex; gap: .6rem; align-items: flex-start; }
.meta svg { width: 20px; height: 20px; flex: none; margin-block-start: .2em; color: var(--sun); }
.cd-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-light); }
.cd-unit { display: grid; justify-items: center; padding: 1.1rem .25rem; position: relative; }
.cd-unit + .cd-unit { border-inline-start: 1px solid var(--line-light); }
.cd-num { font: 900 clamp(3rem, 15vw, 7.5rem)/.9 var(--f-display); font-variant-numeric: tabular-nums; color: var(--paper); }
/* Persian numerals in the display face (Vazir's zero is a dot and looks broken when tabular) */
:lang(fa) .cd-num { font: 400 clamp(2.8rem, 12vw, 6.5rem)/1.15 var(--f-fa-num); }
.cd-num.tick { animation: flick .45s var(--ease); }
@keyframes flick { from { opacity: .25; transform: translateY(-10%); } }
.cd-unit:last-of-type .cd-num { color: var(--sun); }
.cd-label { font: 600 .72rem/1 var(--f-text); text-transform: uppercase; letter-spacing: .18em; color: var(--muted-light); margin-block-start: .5rem; }
:lang(fa) .cd-label { letter-spacing: 0; font-size: .85rem; }
.cd-live { display: none; grid-column: 1 / -1; text-align: center; font: 900 2rem/1 var(--f-display); text-transform: uppercase; color: var(--sun); padding-block: 1rem; }
.countdown.is-live .cd-unit { display: none; }
.countdown.is-live .cd-live { display: block; }
.cd-none { padding-block: 1rem; color: var(--muted-light); }
@media (min-width: 960px) {
  .countdown { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4rem; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper2 { background: var(--paper-2); color: var(--ink); }
.section--ink { background: var(--ink); color: var(--paper); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.section > .wrap > .h-xl:first-child { margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.more { margin-block-start: 2.5rem; }

/* reveal on scroll */
.js [data-reveal] > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].in > * { opacity: 1; transform: none; }

/* ---------- stats: two strong numbers ---------- */

/* ---------- what we do ---------- */
.what { background: var(--paper); color: var(--ink); padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.what-grid { display: grid; gap: 2.5rem; }
.what-head .h-xl { margin-block: .8rem 1rem; }
.what-lead { color: #3e392f; font-size: 1.08rem; line-height: 1.6; max-width: 32em; }
.what-list li { padding-block: 1.6rem; border-block-start: 1px solid var(--line-dark); }
.what-list li:last-child { border-block-end: 1px solid var(--line-dark); }
.what-list h3 { font: 900 clamp(1.6rem, 3.6vw, 2.2rem)/1 var(--f-display); text-transform: uppercase; margin-block-end: .5rem; }
:lang(fa) .what-list h3 { font: 400 clamp(1.6rem, 4.5vw, 2.1rem)/1.4 var(--f-display); text-transform: none; }
.what-list p { color: #3e392f; max-width: 34em; }
@media (min-width: 960px) {
  .what-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; }
  .what-head { position: sticky; inset-block-start: calc(var(--hdr) + 2rem); align-self: start; }
}

/* ---------- photo reel ---------- */
.reel-sec { background: var(--ink); padding-block: clamp(4.5rem, 10vw, 8rem); overflow: hidden; }
.reel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-block-end: 2.2rem; }
.reel-head .h-xl { margin-block-end: .9rem; }
.reel-head p { max-width: 32em; }
.reel-ig { margin-block-start: .8rem; }
.reel-nav { display: none; gap: .6rem; }
.reel {
  display: flex; gap: clamp(.75rem, 1.6vw, 1.25rem); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { outline-offset: -3px; }
.reel-item { flex: none; height: clamp(340px, 64svh, 640px); scroll-snap-align: start; border-radius: 2px; overflow: hidden; background: var(--ink-3); position: relative; }
.reel-item--land { aspect-ratio: 3 / 2; max-width: 86vw; }
.reel-item--port { aspect-ratio: 4 / 5; max-width: 74vw; }
.reel-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.06); transition: transform .8s var(--ease); }
.reel-item:hover img { transform: scale(1.03); }
@supports (animation-timeline: view()) {
  .reel-item img { animation: reelDrift linear both; animation-timeline: view(inline); }
  @keyframes reelDrift { from { transform: scale(1.14) translateX(-4%); } to { transform: scale(1.14) translateX(4%); } }
  .reel-item:hover img { transform: none; }
}
@media (max-width: 699px) { .reel-item { height: auto; } .reel-item--land { width: 86vw; } .reel-item--port { width: 70vw; } }
@media (min-width: 900px) { .reel-nav { display: flex; } }

/* ---------- memorial / photo bands ---------- */
.memorial, .band-photo { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 92svh; }
.memorial-shade { background: linear-gradient(to top, rgba(12, 11, 9, .97) 8%, rgba(12, 11, 9, .82) 55%, rgba(12, 11, 9, .45)); }
.memorial-in, .band-photo-in { padding-block: clamp(6rem, 14vw, 10rem) clamp(3.5rem, 8vw, 6rem); }
.memorial .kicker { color: var(--sun-2); }
.memorial-in .mega { margin-block: 1rem 1.3rem; max-width: 12ch; }
.memorial-text { max-width: 36em; color: rgba(242, 237, 227, .88); font-size: clamp(1.02rem, 1.8vw, 1.18rem); }
.goal { margin-block-start: 1.8rem; max-width: 30rem; }
.goal p { margin-block-start: .6rem; color: var(--muted-light); font-size: .95rem; }
.goal b { color: var(--paper); }
.goal-bar { height: 10px; border-radius: 99px; background: rgba(242, 237, 227, .18); overflow: hidden; }
.goal-bar--dark { background: rgba(12, 11, 9, .1); margin-block-start: 1rem; }
.goal-bar span { display: block; height: 100%; width: calc(var(--p) * 1%); min-width: 10px; border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--sun-2)); }
[dir=rtl] .goal-bar span { background: linear-gradient(-90deg, var(--sun), var(--sun-2)); }
.band-photo-shade { background: linear-gradient(to top, rgba(12, 11, 9, .97) 10%, rgba(12, 11, 9, .78) 55%, rgba(12, 11, 9, .45)); }
.band-photo .h-xl { margin-block-end: 2rem; max-width: 16ch; }

/* ---------- events ---------- */
.ev-list { display: grid; }
.ev { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1.2rem; padding-block: 1.8rem; border-block-start: 1px solid var(--line-dark); }
.ev:last-child { border-block-end: 1px solid var(--line-dark); }
.ev-date { display: grid; justify-items: center; align-content: start; align-self: start; min-width: 4.2rem; padding: .7rem .4rem .6rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.ev-date b { font: 900 2.4rem/.9 var(--f-display); }
:lang(fa) .ev-date b { font: 400 1.9rem/1.15 var(--f-fa-num); }
.ev-date > span { font: 700 .75rem/1 var(--f-text); text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-block-start: .35rem; }
:lang(fa) .ev-date > span { letter-spacing: 0; font-size: .82rem; }
.ev-kind { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-size: .9rem; color: var(--muted); margin-block-end: .45rem; }
.ev-every { font-weight: 700; color: var(--ink); }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font: 700 .7rem/1.3 var(--f-text); text-transform: uppercase; letter-spacing: .1em; background: var(--paper-3); color: var(--ink); }
:lang(fa) .tag { letter-spacing: 0; font-size: .78rem; }
.tag--rally { background: var(--red); color: #fff; }
.tag--memorial { background: var(--ink); color: var(--sun); }
.tag--community { background: #1a7a43; color: #fff; }
.ev h3 { font: 900 clamp(1.4rem, 6.5vw, 2.3rem)/1 var(--f-display); text-transform: uppercase; }
:lang(fa) .ev h3 { font: 400 clamp(1.45rem, 4.2vw, 1.9rem)/1.45 var(--f-display); text-transform: none; }
.ev-place { display: flex; gap: .45rem; align-items: center; margin-block: .55rem; font-weight: 600; font-size: .96rem; }
.ev-place svg { width: 18px; height: 18px; color: var(--sun-dark); flex: none; }
.map-link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; text-decoration-color: var(--sun-dark); }
.map-link:hover { text-decoration-thickness: 2px; }
.map-hint { display: inline-block; font-size: .8em; font-weight: 500; color: var(--muted); text-decoration: none; }
.map-hint::after { content: ' \2197'; }
[dir=rtl] .map-hint::after { content: ' \2196'; }
.section--ink .map-hint, .meta .map-hint { color: var(--muted-light); }
.meta .map-link { text-decoration-color: var(--sun); }
.greg { color: var(--muted); font-size: .92em; }
.section--ink .greg, .meta .greg { color: var(--muted-light); }
.ev-date small { font: 500 .66rem/1.2 var(--f-text); color: rgba(242, 237, 227, .72); margin-block-start: .3rem; text-align: center; }
.ev--past .ev-date small { color: var(--muted); }
.ev-text { color: #3e392f; max-width: 42em; }
.ev-act { grid-column: 2; margin-block-start: .8rem; }
.ev--past h3 { color: #4a443a; }
.ev--past .ev-date { background: var(--paper-3); color: var(--ink); }
.ev--past .ev-date > span { color: #6b4500; }
.ev .link .bi { width: 1.2em; height: 1.2em; }
/* event list on ink (home) */
.section--ink .ev { border-color: var(--line-light); }
.section--ink .ev-text { color: rgba(242, 237, 227, .74); }
.section--ink .ev-kind { color: var(--muted-light); }
.section--ink .ev-every { color: var(--paper); }
.section--ink .ev-date { background: var(--ink-3); }
.section--ink .ev-place svg { color: var(--sun); }
.section--ink .tag { background: var(--ink-3); color: var(--paper); }
.section--ink .tag--rally { background: var(--red); color: #fff; }
.section--ink .tag--community { background: #1a7a43; color: #fff; }
.section--ink .btn--line { --fg: var(--paper); --bd: rgba(242, 237, 227, .4); }
@media (max-width: 559px) { .ev-text, .ev-act { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .ev { grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
  .ev-date { min-width: 6rem; padding-block: 1rem .9rem; }
  .ev-date b { font-size: 3.4rem; }
  .ev-act { grid-column: 3; margin: 0; align-self: center; }
}

/* ---------- involve ---------- */
.involve { background: var(--paper); color: var(--ink); padding-block: clamp(4rem, 10vw, 8rem); }
.involve-grid { display: grid; gap: 2.5rem; align-items: center; }
.involve-media { overflow: hidden; aspect-ratio: 4 / 5; max-height: 78svh; background: var(--paper-3); }
.involve-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.06); }
.involve-text .h-xl { margin-block-end: 1.2rem; max-width: 12ch; }
@media (min-width: 900px) { .involve-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 5rem; } }
@media (max-width: 899px) { .involve-media { aspect-ratio: 4 / 3; } }

/* ---------- instagram (the embed script sets inline styles, hence !important) ---------- */
.ig-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
.ig-slot { min-width: 0; }
.ig-slot .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: var(--radius) !important; }
/* keep the final height while loading */
.ig-slot blockquote, .ig-slot .instagram-media { min-height: 650px !important; }
.ig-slot blockquote { display: grid; place-items: center; border-radius: var(--radius) !important; background: var(--ink-3); border: 1px solid var(--line-light); }
.ig-slot blockquote a { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; }
.ig-slot blockquote a span { display: grid; gap: .15rem; }
.ig-slot blockquote a small { font-weight: 400; font-size: .8rem; color: var(--muted-light); text-transform: uppercase; letter-spacing: .06em; }
.ig-off .ig-slot blockquote { min-height: 0 !important; place-items: start; padding: 1.1rem 1.2rem; }
@media (min-width: 700px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- page heads ---------- */
.phead { position: relative; isolation: isolate; overflow: hidden; min-height: 78svh; display: grid; align-items: end; }
.phead--plain { min-height: 0; background: var(--ink-2); box-shadow: inset 0 -6px 0 var(--ink); }
.phead-shade { background: linear-gradient(to top, rgba(12, 11, 9, .97) 8%, rgba(12, 11, 9, .8) 55%, rgba(12, 11, 9, .55)); }
.phead-in { padding-block: calc(var(--hdr-top) + 2.5rem) clamp(3rem, 7vw, 5rem); }
.phead .kicker { color: var(--sun-2); }
.phead .mega { margin-block: .8rem 1.4rem; max-width: 16ch; }
@media (max-width: 599px) { .phead { min-height: 72svh; } }

/* tricolour rule from the lion-and-sun flag */
.ftr, .phead { --tri: linear-gradient(180deg, var(--green) 0 6px, #fff 6px 12px, var(--red) 12px); }
/* Stripes stacked as on the flag: green, white, red, each 6px tall. */
.ftr::before, .phead::after { content: ''; position: absolute; inset-inline: 0; height: 18px; background: var(--tri); }
.phead::after { inset-block-end: 0; z-index: 1; box-shadow: 0 2px 0 var(--ink); }

/* where and when a full-bleed photo was taken, and by whom */
.photo-note { position: absolute; z-index: 2; inset-block-start: calc(var(--hdr-top) + .2rem); inset-inline-end: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: grid; justify-items: end; gap: .1rem; max-width: 60vw; padding: .3rem .55rem; border-radius: 3px; background: rgba(12, 11, 9, .74); font-size: .75rem; line-height: 1.35; color: var(--paper); text-align: end; }
.photo-note span:first-child { font-weight: 700; }
.memorial .photo-note, .band-photo .photo-note { inset-block-start: 1.2rem; }

/* ---------- about ---------- */
.prose-grid { display: grid; gap: 2.5rem; align-items: start; }
.prose--big p { font: 400 clamp(1.25rem, 2.6vw, 1.7rem)/1.45 var(--f-serif); color: var(--ink); }
:lang(fa) .prose--big p { font: 400 clamp(1.1rem, 2.2vw, 1.35rem)/2 var(--f-text); }
.prose--big p + p { margin-block-start: 1.2rem; }
.framed { overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); }
.framed img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.06); }
@media (min-width: 900px) { .prose-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 5rem; } }
.goals { display: grid; gap: 0 3rem; }
.goals li { padding-block: 1.6rem; border-block-start: 1px solid var(--line-light); }
.goals li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.goals h3 { font-size: 1.3rem; margin-block-end: .4rem; }
.goals p { color: var(--muted-light); }
@media (min-width: 900px) { .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* values: ruled, numbered list */
.values-lead { font-size: 1.1rem; line-height: 1.6; color: #3e392f; max-width: 38em; margin-block: 1rem 2.4rem; }
.values { display: grid; gap: 1rem; counter-reset: val; }
.value { padding: 1.2rem 0 0; border-block-start: 3px solid var(--ink); counter-increment: val; }
.value h3 { font: 900 1.9rem/1 var(--f-display); text-transform: uppercase; margin-block-end: .6rem; }
:lang(fa) .value h3 { font: 400 1.6rem/1.45 var(--f-display); text-transform: none; }
.value h3::before { content: attr(data-n); display: block; font: italic 400 1.8rem/1 var(--f-serif); color: var(--sun-dark); margin-block-end: .6rem; }
:lang(fa) .value h3::before { font-style: normal; font-family: 'Vazir', sans-serif; font-weight: 700; font-size: 1.3rem; }
.value p { color: #3e392f; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; } }

/* ---------- transition chapters ---------- */
.chapters-wrap { display: grid; gap: 3rem; }
.chapters { position: relative; --p: 0; }
.chapters::before, .chapters::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 1.35rem; width: 2px; background: var(--line-dark); }
.chapters::after { background: var(--sun); transform-origin: top; transform: scaleY(var(--p)); }
.chapters li { position: relative; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 1.2rem; padding-block: 0 2.8rem; }
.ch-n { position: relative; z-index: 1; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-dark); font: 900 1.3rem/1 var(--f-display); transition: background-color .4s, border-color .4s, color .4s; }
:lang(fa) .ch-n { font-family: 'Vazir', sans-serif; font-weight: 700; font-size: 1.1rem; }
.chapters li.on .ch-n { background: var(--sun); border-color: var(--sun); }
.ch-body h2 { font: 900 clamp(1.9rem, 5vw, 3rem)/.95 var(--f-display); text-transform: uppercase; margin-block: .25rem .8rem; }
:lang(fa) .ch-body h2 { font: 400 clamp(1.6rem, 4.6vw, 2.3rem)/1.45 var(--f-display); text-transform: none; margin-block-start: 0; }
.ch-body p { color: #36312a; font-size: clamp(1.02rem, 1.6vw, 1.12rem); max-width: 40em; }
.sources { align-self: start; padding: 1.6rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.sources ul { display: grid; gap: .8rem; }
.sources .link { display: flex; min-height: 44px; font-size: .95rem; }
.sources .arr { margin-block-start: .3em; }
@media (min-width: 1000px) {
  .chapters-wrap { grid-template-columns: minmax(0, 1fr) 20rem; gap: 5rem; }
  .sources { position: sticky; inset-block-start: calc(var(--hdr) + 2rem); }
}
.checks { display: grid; gap: .9rem; max-width: 50rem; }
.checks li { position: relative; padding-inline-start: 2.4rem; font-size: clamp(1.02rem, 1.7vw, 1.15rem); color: rgba(242, 237, 227, .9); }
.checks li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: .3em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5' fill='none' stroke='%230c0b09' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
/* the text sits on the side away from the placard / portrait */
[dir=ltr] .page-transition .phead-in > .kicker { display: flex; width: fit-content; }
.page-transition .band-photo-in > * { margin-inline-start: auto; max-width: 38rem; }
.page-transition .band-photo-shade { background: linear-gradient(to left, rgba(12, 11, 9, .94) 0 42%, rgba(12, 11, 9, .35) 75%), linear-gradient(to top, rgba(12, 11, 9, .9), transparent 50%); }
@media (max-width: 899px) {
  .page-transition .band-photo-in > * { margin-inline-start: 0; }
  .page-transition .band-photo-shade { background: linear-gradient(to top, rgba(12, 11, 9, .97) 30%, rgba(12, 11, 9, .85) 70%, rgba(12, 11, 9, .7)); }
}
@media (min-width: 900px) { [dir=ltr] .page-transition .phead-in > * { margin-left: auto; max-width: 44rem; } }

/* ---------- get involved ---------- */
.ways { display: grid; gap: 1rem; }
.way { padding: 1.4rem 0 0; border-block-start: 2px solid currentColor; }
.way h3 { font: 900 1.8rem/1 var(--f-display); text-transform: uppercase; margin-block-end: .6rem; }
:lang(fa) .way h3 { font: 400 1.5rem/1.45 var(--f-display); text-transform: none; }
.way p { color: var(--muted-light); }
@media (min-width: 700px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ways { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .form-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 4rem; } }
.form { display: grid; gap: 1.3rem; padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: var(--radius); border: 2px solid var(--ink); background: var(--white); }
.row2 { display: grid; gap: 1.3rem; }
@media (min-width: 640px) { .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .45rem; }
.field > span, legend { font-weight: 700; font-size: .95rem; }
.req { font-weight: 400; color: var(--muted); }
.field-err { color: #a3180e; font-weight: 700; font-size: .95rem; margin-block-start: .5rem; grid-column: 1 / -1; }
input, textarea {
  width: 100%; font: 400 16px/1.4 var(--f-text); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--field-line); border-radius: 12px; padding: .85rem 1rem; min-height: 50px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:hover, textarea:hover { border-color: var(--paper-3); }
input:focus, textarea:focus { outline: 3px solid var(--sun-dark); outline-offset: 2px; border-color: var(--ink); background: var(--white); }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-block-end: .75rem; display: flex; align-items: center; gap: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input, .pick input, .amt input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-dark); cursor: pointer; font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s, border-color .2s; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span, .pick input:focus-visible + .pick-box, .amt input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.aside { display: grid; gap: .75rem; }
.aside-h { font: 700 1.25rem/1.25 var(--f-text); margin-block-end: .4rem; }
.aside-link { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--white); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.aside-link:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(12, 11, 9, .5); }
.aside-link > svg, .aside-link > .bi { width: 30px; height: 30px; flex: none; }
.aside-link span { display: grid; gap: .1rem; color: var(--muted); font-size: .92rem; }
.aside-link strong { color: var(--ink); font-size: 1rem; }
.aside-place { display: flex; gap: .5rem; align-items: center; color: var(--muted); padding-inline: .3rem; }
.aside-place svg { width: 20px; height: 20px; }

/* ---------- donate ---------- */
/* the picker starts on the first screen */
.page-donate .phead { min-height: 0; }
.page-donate .phead-in { padding-block: calc(var(--hdr-top) + 1.5rem) 2.5rem; }
.page-donate .photo-note { inset-block: auto .8rem; }
.page-donate #give { padding-block-start: 2.5rem; }
.page-donate .ftr-cta .btn--swish { display: none; }
/* phones: keep the photo credit clear of the lead */
@media (max-width: 699px) { .page-donate .phead-in { padding-block-end: 5rem; } }
.give-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .give-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 3.5rem; } .pay-panel { position: sticky; inset-block-start: calc(var(--hdr) + 1.5rem); } }
.give-form { display: grid; gap: 2.4rem; }
.give-form legend { font: 900 1.7rem/1 var(--f-display); text-transform: uppercase; margin-block-end: 1rem; }
:lang(fa) .give-form legend { font: 400 1.5rem/1.5 var(--f-display); text-transform: none; }
.step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--sun); font: 700 .95rem/1 var(--f-text); flex: none; }
.step--light { background: var(--sun); color: var(--ink); }
.pick-list { display: grid; gap: .75rem; }
.pick { position: relative; display: block; cursor: pointer; }
.pick-box { display: grid; gap: .3rem; padding: 1.2rem 1.3rem; padding-inline-end: 3.6rem; border-radius: var(--radius); background: var(--white); border: 2px solid transparent; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); position: relative; }
.pick-box::after { content: ''; position: absolute; inset-inline-end: 1.2rem; inset-block-start: 1.25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--field-line); transition: background-color .2s, border-color .2s, box-shadow .2s; }
.pick:hover .pick-box { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(12, 11, 9, .5); }
.pick input:checked + .pick-box { border-color: var(--ink); }
.pick input:checked + .pick-box::after { border-color: var(--ink); background: var(--sun); box-shadow: inset 0 0 0 4px var(--white); }
.pick-box strong { font-size: 1.12rem; }
.pick-goal { color: var(--sun-dark); font-weight: 700; }
.pick-desc { color: var(--muted); font-size: .93rem; line-height: 1.5; }
:lang(fa) .pick-desc { line-height: 1.85; }
.amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.amt span { display: grid; place-items: center; min-height: 64px; border-radius: var(--radius); background: var(--white); border: 2px solid transparent; font: 900 1.7rem/1 var(--f-display); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
:lang(fa) .amt span { font: 400 1.2rem/1.15 var(--f-fa-num); }
.amt span:hover { border-color: var(--ink); }
.amt input:checked + span { background: var(--ink); color: var(--sun); }
.amt--input { position: relative; grid-column: 1 / -1; }
.amt--input input { min-height: 64px; background: var(--white); font-size: 1.15rem; font-weight: 600; text-align: center; border-radius: var(--radius); }
.amt--input::after { content: 'kr'; position: absolute; inset-inline-end: 1.2rem; inset-block-start: 50%; translate: 0 -50%; font-weight: 700; color: var(--muted); pointer-events: none; }
:lang(fa) .amt--input::after { content: 'کرون'; }
@media (min-width: 640px) { .amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pay-panel { padding: clamp(1.5rem, 4vw, 2.2rem); border-radius: var(--radius); background: var(--ink); color: var(--paper); display: grid; gap: 1.1rem; }
.pay-top { display: flex; align-items: center; justify-content: space-between; }
.pay-top .bi--swish { background: var(--white); padding: .55rem .9rem; border-radius: 12px; height: 3rem; }
.pay-step { display: flex; align-items: center; gap: .6rem; font: 900 1.6rem/1 var(--f-display); text-transform: uppercase; }
:lang(fa) .pay-step { font: 400 1.4rem/1.4 var(--f-display); text-transform: none; }
.pay-amount { font: 900 clamp(3.2rem, 12vw, 4.8rem)/.9 var(--f-display); color: var(--sun); font-variant-numeric: tabular-nums; }
:lang(fa) .pay-amount { font: 400 clamp(2.8rem, 10vw, 4.2rem)/1.15 var(--f-fa-num); }
.pay-msg { color: var(--muted-light); }
.pay-msg bdi { color: var(--paper); font-weight: 600; }
.qr-wrap { display: none; grid-template-columns: 132px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem; border-radius: var(--radius); background: var(--ink-3); }
.qr { background: #fff; border-radius: 10px; padding: 8px; }
.qr svg { width: 100%; height: auto; }
.qr-wrap p { color: var(--muted-light); }
@media (min-width: 980px) { .qr-wrap { display: grid; } }
.pay-note { display: flex; gap: .8rem; align-items: center; font-size: .9rem; color: var(--muted-light); }
.pay-note .bi--bankid { background: var(--white); border-radius: 8px; padding: .3rem .45rem; height: 2.2rem; }
.pay-number { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line-light); font-size: .95rem; color: var(--muted-light); }
.pay-number bdi { color: var(--paper); font-weight: 700; letter-spacing: .04em; }
.projects { display: grid; gap: 1rem; }
.project { display: flex; flex-direction: column; gap: .6rem; padding: 1.7rem; border-radius: var(--radius); background: var(--white); }
.project h3 { font: 900 2rem/1 var(--f-display); text-transform: uppercase; }
:lang(fa) .project h3 { font: 400 1.6rem/1.45 var(--f-display); text-transform: none; }
.project p { color: #3e392f; }
.project-actions { margin-block-start: auto; padding-block-start: 1rem; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.donate-more { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .donate-more { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 4rem; align-items: start; } }
.money .h-xl { margin-block-end: 2rem; }
.money-list { display: grid; gap: .9rem; margin-block-end: 1.6rem; }
.money-list li { padding-block-end: .9rem; border-block-end: 1px solid var(--line-light); }
.money-list h3 { font-size: 1.15rem; margin-block-end: .3rem; }
.money-list p { color: var(--muted-light); }
.pay-card { padding: 1.8rem; border-radius: var(--radius); background: var(--ink-3); display: grid; gap: .8rem; justify-items: start; }
.pay-num-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.pay-num { font: 900 2.6rem/1 var(--f-display); letter-spacing: .03em; }
:lang(fa) .pay-num { font-family: var(--f-fa-num); font-weight: 400; line-height: 1.15; }

/* ---------- media ---------- */
.press { display: grid; gap: 2.5rem; align-items: center; }
.press .h-xl { margin-block-end: 1rem; }
.press .lead-dark { margin-block-end: 1.5rem; }
.press-logo { justify-self: start; display: grid; gap: 1rem; justify-items: center; padding: 1.6rem; border-radius: var(--radius); background: var(--white); text-decoration: none; font-weight: 700; transition: transform .25s var(--ease); }
.press-logo:hover { transform: translateY(-3px); }
.press-logo span { display: inline-flex; gap: .4rem; align-items: center; }
.press-logo span svg { width: 18px; }
@media (min-width: 860px) { .press { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }

/* credits */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; margin-block-end: 2rem; }
.credits li { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; padding: .7rem; border-radius: var(--radius); background: var(--white); }
.credits img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.credits div { display: grid; gap: .2rem; font-size: .92rem; color: var(--muted); }
.credits strong { color: var(--ink); font-size: .98rem; overflow-wrap: anywhere; }
.credits a { color: var(--ink); }

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--ink); color: var(--paper); padding-block-start: clamp(4.5rem, 10vw, 7.5rem); overflow: hidden; border-block-start: 1px solid var(--line-light); }
.ftr::before { inset-block-start: 0; }
.ftr-top { display: grid; gap: 3rem; padding-block-end: clamp(3rem, 7vw, 5rem); }
.ftr-cta .h-xl { margin-block-start: .8rem; max-width: 13ch; }
.ftr-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1.5rem; align-content: start; }
.ftr-links a { display: inline-block; padding-block: .45rem; text-decoration: none; color: rgba(242, 237, 227, .78); font-weight: 600; }
.ftr-links a:hover { color: var(--sun); }
.ftr-contact { display: grid; gap: .7rem; align-content: start; }
.ftr-contact a, .ftr-contact p { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: rgba(242, 237, 227, .85); min-height: 40px; }
.ftr-contact a { min-height: 44px; }
.ftr-contact a:hover { color: var(--sun); }
.ftr-contact svg { width: 22px; height: 22px; flex: none; }
.ftr-contact svg:not(.bi) { color: var(--sun); }
.ftr-motto { white-space: nowrap; font-family: 'Vazir', Tahoma, sans-serif; color: var(--sun); }
.ftr-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); font-size: .88rem; color: var(--muted-light); background: var(--ink); }
.ftr-base-links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.ftr-base a { display: inline-block; padding-block: .6rem; text-decoration: none; }
.ftr-base a:hover { color: var(--paper); }
@media (min-width: 700px) and (max-width: 1139px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-cta { grid-column: 1 / -1; } }
@media (min-width: 1140px) { .ftr-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .9fr); gap: 3.5rem; } }

/* ---------- mobile Swish dock ---------- */
.dock {
  position: fixed; z-index: 90; inset-inline: 0; margin-inline: auto; inset-block-end: calc(12px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100vw - 24px); display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.3rem .75rem 1rem; border-radius: 999px; background: var(--white); color: #111; font-weight: 700; text-decoration: none;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .65), 0 0 0 1px rgba(12, 11, 9, .08);
  transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease);
}
[dir=rtl] .dock { padding: .75rem 1rem .75rem 1.3rem; }
.dock.show { transform: none; }
body.menu-open .dock { transform: translateY(calc(100% + 30px)); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- emblem motion: the ring of rays opens once behind the lion, then holds still ---------- */
.emblem .rays { transform-box: view-box; transform-origin: 600px 457px; animation: raysIn 1.6s var(--ease) both; }
.emblem .disc, .emblem .glow { transform-box: view-box; transform-origin: 600px 457px; animation: discIn 1.2s var(--ease) both; }
.emblem .glow { opacity: .3; }
/* hover / focus: no glow, only a few small sparks twinkling around the logo's edge */
.logo { position: relative; display: grid; flex: none; }
@keyframes raysIn { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
@keyframes discIn { from { transform: scale(.3); opacity: 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .w > span { transform: none; }
  .ticker-track { animation: none; }
  .reel-item img { animation: none !important; }
}

/* ---------- 404 ---------- */
.notfound .wrap { display: grid; gap: 3rem; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound-item { padding-block-start: 1.4rem; border-block-start: 2px solid var(--ink); max-width: 40rem; }
.notfound-item .h-xl { margin-block-end: .8rem; }
.notfound-item:lang(fa) { --f-display: 'Lalezar', 'Vazir', Tahoma, sans-serif; --f-text: 'Vazir', Tahoma, sans-serif; font-family: var(--f-text); }

/* Official sites of the movement: logo cards (home and transition pages). */
.official-head { max-width: 46rem; margin-block-end: clamp(1.8rem, 4vw, 2.6rem); }
.official-head .h-lg { margin-block-end: .8rem; }
.official-list { display: grid; gap: 1rem; }
@media (min-width: 860px) { .official-list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.off-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-dark); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.off-card:hover, .off-card:focus-within { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(12, 11, 9, .14); }
.off-logo { display: grid; place-items: center; height: 8.5rem; padding: 1.4rem 1.6rem; background: var(--ink); }
.off-logo img { max-width: 100%; max-height: 4.4rem; width: auto; height: auto; object-fit: contain; transition: transform .35s var(--ease); }
.off-logo--reza-pahlavi img { max-height: 3.8rem; }
.off-card:hover .off-logo img { transform: scale(1.03); }
.off-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.2rem 1.3rem 1.3rem; }
.off-body h3 { font: 800 1.35rem/1.1 var(--f-display); text-transform: uppercase; }
:lang(fa) .off-body h3 { font: 400 1.4rem/1.4 var(--f-display); text-transform: none; }
.off-main { color: inherit; text-decoration: none; }
.off-main::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.off-main:focus-visible { outline: none; }
.off-card:has(.off-main:focus-visible) { outline: 3px solid var(--sun); outline-offset: 3px; }
.off-body p { color: var(--muted); font-size: .96rem; }
.off-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-block-start: auto; padding-block-start: .5rem; }
.off-domain { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--sun-dark); }
.off-extra { position: relative; z-index: 1; font-size: .9rem; }
.official-note { margin-block-start: 1.2rem; }
