/* ایران آزاد
   Palette from Iranian architecture: the lapis and cobalt of Isfahan's tiles,
   turquoise (firouzeh), Persepolis gold and limestone, a night-blue ground.
   Ornament: girih (the eight-point khatam star), Persepolis rosettes and
   stepped battlements, the pointed Persian arch, the Azadi tower and the Lion
   and Sun. All of it self-hosted; motion is CSS, and all of it stops for
   people who ask their system for less motion. */
@font-face { font-family: "Vazirmatn"; src: url("/s/vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("/s/lalezar.woff2") format("woff2"); font-display: swap; }

:root {
  --night: #070b1a; --night2: #0c1330; --lapis: #13235a; --cobalt: #1f3a93;
  --turq: #34b9b3; --gold: #d9ae4f; --gold2: #f3d98f; --stone: #cdbb98;
  --text: #efe9dc; --muted: #a9a496; --line: rgba(217,174,79,.18);
  --radius: 16px; --ease: cubic-bezier(.2,.8,.2,1);
  --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  /* the pointed Persian arch, as a clip (much cheaper to draw than an SVG mask) */
  --archp: polygon(0% 100%, 0% 43.3%, 1.4% 34.5%, 5.4% 26.6%, 11.5% 19.5%, 19.4% 13.4%, 28.7% 8.1%, 39% 3.6%, 50% 0%, 61% 3.6%, 71.3% 8.1%, 80.6% 13.4%, 88.5% 19.5%, 94.6% 26.6%, 98.6% 34.5%, 100% 43.3%, 100% 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.95 "Vazirmatn", Tahoma, sans-serif;
  background: var(--night) url("/s/girih.svg") repeat; background-size: 120px 120px; }
/* the tile pattern fades into the night toward the page's middle */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(31,58,147,.35), transparent 60%),
              linear-gradient(180deg, rgba(7,11,26,.55), rgba(7,11,26,.92) 40%, rgba(7,11,26,.96)); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; inset-inline-start: 12px; top: 12px; width: auto; height: auto; clip: auto;
  background: var(--gold); color: #000; padding: 6px 12px; border-radius: 8px; z-index: 50; }

/* the flag's three colours as a hairline at the very top */
body::before { content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, #239f40 0 33.3%, #f4f1e8 33.3% 66.6%, #da0000 66.6%); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; padding: 10px max(20px, calc((100% - 1140px) / 2));
  background: rgba(7,11,26,.94);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: var(--display); font-size: 25px; color: var(--gold2); letter-spacing: 0; }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; }
.top nav a { position: relative; text-decoration: none; color: var(--muted); padding: 6px 12px; font-size: 15px; transition: color .25s; }
.top nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transition: transform .35s var(--ease); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav a:hover::after, .top nav a[aria-current]::after { transform: scaleX(1); }

main { max-width: 1140px; margin: 0 auto; padding: 0 20px 40px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; text-align: center;
  padding: 40px 0 120px; margin: 0 -20px; overflow: hidden; isolation: isolate; }
.sun { position: absolute; z-index: -2; width: min(820px, 140vw); aspect-ratio: 1; top: 50%; left: 50%;
  translate: -50% -58%; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(217,174,79,.12) 0 2deg, transparent 2deg 10deg);
  /* the rays dissolve into the night with no visible edge */
  -webkit-mask: radial-gradient(circle, #000 4%, rgba(0,0,0,.35) 26%, transparent 60%);
  mask: radial-gradient(circle, #000 4%, rgba(0,0,0,.35) 26%, transparent 60%);
  animation: turn 160s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }
.azadi { position: absolute; z-index: -1; bottom: 34px; left: 50%; translate: -50% 0; width: min(560px, 110vw); height: auto; opacity: .55; }
.azadi path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.6s var(--ease) .5s forwards; }
.azadi path:nth-child(2) { animation-delay: 1s; }
.azadi path:nth-child(3) { animation-delay: 1.6s; }
.azadi path:nth-child(4) { animation-delay: 1.9s; }
.azadi .thin { stroke-width: .8; stroke-opacity: .55; animation-delay: 2.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hin { max-width: 760px; padding: 0 20px; }
.emblem { margin: 0 auto 6px; width: clamp(120px, 20vw, 170px); height: auto;
  filter: drop-shadow(0 0 22px rgba(217,174,79,.35));
  animation: rise 1.2s var(--ease) both, float 7s ease-in-out 1.2s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 14vw, 150px); line-height: 1.1; }
.title span { display: inline-block; padding: 0 .08em;
  background: linear-gradient(100deg, #b98a2f 0%, var(--gold2) 22%, #fff5d6 30%, var(--gold) 42%, #b98a2f 60%, var(--gold2) 80%, #b98a2f 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.1s var(--ease) .25s both, shimmer 6s linear 1.4s 1; }
@keyframes shimmer { to { background-position: -250% 0; } }
.tag { font-family: var(--display); font-size: clamp(22px, 3.6vw, 32px); color: var(--stone); margin: 6px 0 12px;
  animation: rise 1s var(--ease) .55s both; }
.lede { color: var(--muted); max-width: 680px; margin-inline: auto; animation: rise 1s var(--ease) .75s both; }
.stat { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 22px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(12,19,48,.7);
  animation: rise 1s var(--ease) .95s both; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--gold2); }
.stat > span:last-child { color: var(--muted); }
.candle { width: 10px; height: 16px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 72%, #fff6d0, var(--gold) 50%, #b5563a 95%);
  box-shadow: 0 0 14px 3px rgba(243,217,143,.45); transform-origin: 50% 90%; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 25% { transform: scale(.94, 1.05) rotate(-2deg); } 55% { transform: scale(1.04, .96) rotate(1.5deg); } 80% { transform: scale(.97, 1.03); } }
/* Persepolis rosettes, drifting like a carved frieze */
.frieze { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; opacity: .8; overflow: hidden; border-block: 1px solid var(--line); }
.frieze::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -680px;
  background: url("/s/rosette.svg") repeat-x center / 34px 34px; animation: drift 60s linear infinite; will-change: transform; }
@keyframes drift { to { transform: translateX(-680px); } }

/* ---------------------------------------------------------------- sections */
.sec { padding: 42px 0 24px; }
.narrow { max-width: 760px; margin-inline: auto; }
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.orn i { height: 1px; width: 90px; }
/* in RTL the first line is on the right: gold at its inner (left) end */
.orn i:first-child { background: linear-gradient(to left, transparent, var(--gold)); }
.orn i:last-child { background: linear-gradient(to right, transparent, var(--gold)); }
.orn b { width: 26px; height: 26px; background: url("/s/rosette.svg") center / 40px 40px; border-radius: 50%; filter: drop-shadow(0 0 8px rgba(217,174,79,.5)) brightness(1.35); }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sechead a { color: var(--turq); text-decoration: none; font-size: 15px; }
.sechead a:hover { color: var(--gold2); }
h1, h2, h3 { line-height: 1.5; margin: 0 0 12px; }
h2 { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--gold2); }
.ptitle { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 64px); color: var(--gold2); margin-top: 26px; }
.lede, .sub { color: var(--muted); }
.empty { color: var(--muted); padding: 18px 0; }

/* scroll reveal -- site.js adds .in when an element comes into view */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.js .rv.in { opacity: 1; translate: none; }
/* only the entrance is staggered; the tilt and hover stay immediate */
.vgrid .rv:nth-child(3n+2) { transition-delay: .08s, .08s, 0s, 0s, 0s; }
.vgrid .rv:nth-child(3n+3) { transition-delay: .16s, .16s, 0s, 0s, 0s; }

/* ---------------------------------------------------------------- victims */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, 100%), 1fr)); gap: 18px; margin-top: 18px; }
.vcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; text-decoration: none;
  padding: 14px 12px 16px; border-radius: var(--radius); background: rgba(12,19,48,.72); border: 1px solid var(--line);
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s; }
.vcard:hover, .vcard:focus-visible { border-color: var(--gold); transform: translateY(-4px);
  box-shadow: 0 14px 34px -18px rgba(217,174,79,.5); }
/* the photo sits in a pointed Persian arch, like a portrait in an iwan */
.arch { position: relative; display: block; width: 100%; aspect-ratio: 5 / 6; margin-bottom: 10px; padding: 3px;
  background: linear-gradient(160deg, var(--gold), #7c5a1c 45%, var(--turq));
  clip-path: var(--archp); }
.arch img, .arch .ph { width: 100%; height: 100%; object-fit: cover;
  clip-path: var(--archp);
  filter: grayscale(.4) sepia(.15); transition: filter .5s; }
.vcard:hover .arch img { filter: none; }
.ph { display: grid; place-items: center; background: linear-gradient(180deg, var(--lapis), var(--night2));
  color: var(--gold2); font-family: var(--display); font-size: 58px; }
.vn { font-weight: 700; font-size: 17px; }
.vm, .vd { font-size: 13px; color: var(--muted); }
.search input { width: 100%; max-width: 440px; margin-top: 14px; padding: 11px 18px; font: inherit; color: var(--text);
  background: rgba(12,19,48,.8); border: 1px solid var(--line); border-radius: 999px; transition: border-color .25s, box-shadow .25s; }
.search input:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 4px rgba(52,185,179,.15); }

.victim .back { color: var(--turq); text-decoration: none; font-size: 14px; }
.vhead { display: flex; gap: 30px; align-items: flex-end; flex-wrap: wrap; margin: 20px 0 24px; }
.vhead .arch { width: 240px; margin: 0; }
.vhead h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 56px); color: var(--gold2); }
.ph.big { font-size: 90px; }
.facts { display: grid; gap: 6px; margin: 0; }
.facts div { display: flex; gap: 12px; }
.facts dt { color: var(--muted); min-width: 120px; }
.facts dd { margin: 0; }

/* ---------------------------------------------------------------- news */
.nlist { display: grid; gap: 12px; margin-top: 14px; }
.nitem { padding: 16px 20px; border-radius: 12px; background: rgba(12,19,48,.6); border: 1px solid transparent;
  border-inline-start: 3px solid var(--turq); transition: border-color .3s, background .3s; }
.nitem:hover { border-color: var(--line); border-inline-start-color: var(--gold); background: rgba(19,35,90,.55); }
.nitem h3 { font-size: 18px; margin-bottom: 6px; }
.nitem h3 a { text-decoration: none; }
.nitem h3 a:hover { color: var(--gold2); }
.nitem p { margin: 0 0 6px; color: #d4cfc3; }
.meta { font-size: 13px; color: var(--muted) !important; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.meta b { color: var(--stone); }
.fund { font-size: 12px; padding: 1px 9px; border-radius: 999px; border: 1px solid rgba(52,185,179,.4); color: var(--turq); }

/* ---------------------------------------------------------------- influencers / notes */
.note { background: rgba(12,19,48,.75); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius); padding: 14px 20px; color: #d4cfc3; font-size: 15px; }
.note p { margin: 4px 0; }
.ilist { display: grid; gap: 14px; margin-top: 20px; }
.icard { background: rgba(12,19,48,.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.icard h2 { font-size: 26px; margin-bottom: 4px; }
.icard .meta a { color: var(--turq); }
.mlabel { color: var(--muted); font-size: 14px; margin: 10px 0 2px; }
.links { margin: 0; padding-inline-start: 20px; }
.links a { color: var(--turq); }
.prose p { margin: 0 0 12px; }
.prose ul { padding-inline-start: 22px; }
.prose h2 { margin-top: 26px; }
.srcs { list-style: none; padding: 0; }
.srcs li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.srcs a { color: var(--turq); font-size: 14px; }

/* the band between two Persepolis columns */
.band { display: grid; grid-template-columns: 60px 1fr 60px; gap: 20px; align-items: stretch; margin-top: 30px;
  padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(19,35,90,.85), rgba(12,19,48,.9)); }
.pillar { background: url("/s/pillar.svg") center / contain no-repeat; min-height: 200px; }
.bandin { align-self: center; text-align: center; }
.bandin p { color: var(--muted); }
.btn { display: inline-block; margin-top: 6px; padding: 10px 26px; border-radius: 999px; text-decoration: none; font-weight: 700;
  color: #1a1204; background: linear-gradient(100deg, var(--gold), var(--gold2), var(--gold)); background-size: 200% 100%;
  transition: background-position .6s var(--ease), transform .3s var(--ease), box-shadow .3s; }
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(243,217,143,.7); }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 50px; background: var(--night2); }
.merlons { height: 34px; background: url("/s/merlon.svg") repeat-x left bottom / 44px 34px; margin-top: -33px; }
.footin { max-width: 1140px; margin: 0 auto; padding: 26px 20px 40px; color: var(--muted); font-size: 14px; text-align: center; }
.footin p { margin: 4px 0; }
.fbrand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.fbrand span { font-family: var(--display); font-size: 28px; color: var(--gold2); }

/* ================================================================ motion
   Everything below animates only when site.js has added .js (it does not for
   people who asked for reduced motion). */

/* scroll progress, a gold thread along the top edge */
.prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: right; transform: scaleX(0);
  background: linear-gradient(270deg, var(--gold2), var(--gold), var(--turq)); box-shadow: 0 0 10px rgba(243,217,143,.6); }

/* the opening curtain: the emblem glows, then the night lifts */
.curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--lapis), var(--night) 70%); transition: transform .9s cubic-bezier(.7,0,.2,1); }
.curtain img { width: 150px; height: auto; filter: drop-shadow(0 0 30px rgba(217,174,79,.6)); animation: cin 1.1s var(--ease) both; }
.curtain.up { transform: translateY(-101%); }
@keyframes cin { from { opacity: 0; transform: scale(.7) rotate(-8deg); } 60% { opacity: 1; } to { transform: none; } }
body.curtained { overflow: hidden; }
body.curtained .hin > * { animation-play-state: paused; }

/* header tightens once the page moves */
.top { transition: padding .35s var(--ease), background .35s; }
body.scrolled .top { padding-block: 6px; background: rgba(7,11,26,.9); }

/* hero parallax, driven by --sy (pixels scrolled) */
.js .hero .hin { translate: 0 calc(var(--sy, 0) * -0.28px); opacity: calc(1 - var(--sy, 0) / 650); }
.js .hero .azadi { scale: calc(1 + var(--sy, 0) * .0007); }
.js .hero .sun { scale: calc(1 + var(--sy, 0) * .0009); }
.js .hero .frieze { translate: 0 calc(var(--sy, 0) * .12px); }
.cue { display: block; width: 26px; height: 42px; margin: 26px auto 0; border: 1.5px solid var(--line); border-radius: 14px; position: relative; }
.cue i { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* headings arrive word by word */
.js .split.rv { opacity: 1; translate: none; }
.split .w { display: inline-block; opacity: 0; transform: translateY(55%) rotate(3deg); filter: blur(4px);
  transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s; }
.split.in .w { opacity: 1; transform: none; filter: none; }

/* ornament lines draw outward */
.js .orn i { transform: scaleX(0); transition: transform 1.1s var(--ease); }
/* each line grows outward from the rosette */
.js .orn i:first-child { transform-origin: left; }
.js .orn i:last-child { transform-origin: right; }
.js .orn.in i { transform: scaleX(1); }
.js .orn b { transform: scale(0) rotate(-90deg); transition: transform .9s var(--ease) .2s; }
.js .orn.in b { transform: none; }

/* the wall of names: three rows drifting, the middle one the other way */
.wall { position: relative; margin: 0 -20px; padding: 26px 0; overflow: hidden; display: grid; gap: 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wrow { overflow: hidden; }
.wtrack { display: flex; width: max-content; gap: 34px; animation: names 45s linear infinite; }
.wrow.rev .wtrack { animation-direction: reverse; animation-duration: 55s; }
.wrow:nth-child(3) .wtrack { animation-duration: 40s; }
.wall:hover .wtrack { animation-play-state: paused; }
.wtrack span { font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); color: rgba(243,217,143,.34); white-space: nowrap; transition: color .3s; }
.wrow:nth-child(2) span { color: rgba(205,187,152,.26); }
.wtrack span::after { content: "\2726"; font-size: .45em; margin-inline-start: 34px; color: rgba(52,185,179,.45); vertical-align: middle; }
.wtrack span:hover { color: var(--gold2); }
@keyframes names { to { transform: translateX(50%); } }

/* the toll: one great number among candles */
.toll { position: relative; margin: 0 -20px; padding: 100px 20px 90px; text-align: center; overflow: hidden; isolation: isolate; }
.toll::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(31,58,147,.5), transparent 72%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.tnum { margin: 0; font-family: var(--display); font-size: clamp(90px, 20vw, 220px); line-height: 1;
  background: linear-gradient(180deg, #fff3cc, var(--gold) 55%, #8a6420); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(217,174,79,.25)); }
.toll h2 { font-size: clamp(34px, 5vw, 52px); margin: 6px 0; }
.tlab { color: var(--stone); font-size: 18px; margin: 0 0 22px; }
.candles, .candles::before, .candles::after { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.candles { background:
    radial-gradient(2px 3px at 8% 70%, #ffe7a3, transparent), radial-gradient(2px 3px at 16% 84%, #ffd98a, transparent),
    radial-gradient(2px 3px at 27% 76%, #ffe7a3, transparent), radial-gradient(2px 3px at 38% 88%, #ffd98a, transparent),
    radial-gradient(2px 3px at 62% 86%, #ffe7a3, transparent), radial-gradient(2px 3px at 73% 74%, #ffd98a, transparent),
    radial-gradient(2px 3px at 84% 90%, #ffe7a3, transparent), radial-gradient(2px 3px at 93% 72%, #ffd98a, transparent); }
.candles::before { content: ""; background:
    radial-gradient(2px 3px at 5% 88%, #ffe7a3, transparent), radial-gradient(2px 3px at 21% 66%, #ffd98a, transparent),
    radial-gradient(2px 3px at 33% 92%, #ffe7a3, transparent), radial-gradient(2px 3px at 45% 70%, #ffd98a, transparent),
    radial-gradient(2px 3px at 55% 94%, #ffe7a3, transparent), radial-gradient(2px 3px at 67% 68%, #ffd98a, transparent),
    radial-gradient(2px 3px at 79% 84%, #ffe7a3, transparent), radial-gradient(2px 3px at 96% 80%, #ffd98a, transparent);
  animation: twinkle 3.2s ease-in-out infinite; }
.candles::after { content: ""; background:
    radial-gradient(3px 4px at 12% 80%, #fff1bf, transparent), radial-gradient(3px 4px at 30% 72%, #fff1bf, transparent),
    radial-gradient(3px 4px at 50% 82%, #fff1bf, transparent), radial-gradient(3px 4px at 70% 78%, #fff1bf, transparent),
    radial-gradient(3px 4px at 88% 76%, #fff1bf, transparent);
  filter: blur(.5px); animation: twinkle 4.4s ease-in-out 1.3s infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* cards tilt toward the pointer; buttons lean toward it */
.vcard, .icard { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.vcard:hover, .vcard:focus-visible { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.btn { transform: translate(var(--mx, 0), var(--my, 0)); }
.btn:hover { transform: translate(var(--mx, 0), calc(var(--my, 0px) - 2px)); }

/* thousands of cards: the browser skips drawing the ones far off-screen */
.more { height: 1px; }
.shown { display: inline-block; margin-inline-start: 12px; color: var(--turq); font-size: 14px; }

/* ================================================================ memorial
   No photo: the Lion and Sun stands in the arch instead. */
.noph { display: grid; place-items: center; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 42%, rgba(217,174,79,.18), transparent 60%), linear-gradient(180deg, var(--lapis), var(--night2));
  clip-path: var(--archp); }
.noph img { width: 62%; height: auto; opacity: .8; filter: drop-shadow(0 0 12px rgba(217,174,79,.35)); }
.vcard .noph img { clip-path: none; object-fit: contain; }

/* one person's page */
.memorial { position: relative; padding: 26px 0 30px; }
.mglow { position: absolute; inset: -40px -20px auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 70% 30%, rgba(217,174,79,.14), transparent 60%), radial-gradient(ellipse at 20% 10%, rgba(52,185,179,.10), transparent 55%); }
.memorial .back { color: var(--turq); text-decoration: none; font-size: 14px; }
.mhead { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 40px; align-items: center; margin-top: 18px; }
.mphoto { position: relative; }
.arch.big { width: 100%; margin: 0; padding: 4px; box-shadow: 0 30px 80px -30px rgba(217,174,79,.45); }
.arch.big img { filter: grayscale(.2) sepia(.1); }
.candle.big { position: absolute; bottom: -10px; left: 50%; margin-left: -9px; width: 18px; height: 28px; }
.badge { display: inline-block; margin: 0 0 6px; padding: 2px 14px; border-radius: 999px; font-size: 14px;
  color: var(--gold2); border: 1px solid rgba(217,174,79,.45); background: rgba(217,174,79,.08); letter-spacing: .02em; }
.minfo h1 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 7vw, 72px); line-height: 1.2;
  background: linear-gradient(180deg, #fff3cc, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 12px; background: rgba(12,19,48,.8); border: 1px solid var(--line); }
.chips li span { color: var(--muted); font-size: 12px; margin-inline-end: 8px; }
.msrc { color: var(--muted); font-size: 14px; }
.msrc a { color: var(--turq); }
.share { margin: 8px 0 4px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.epitaph { margin-top: 18px; font-family: var(--display); font-size: 26px; color: rgba(205,187,152,.7); }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.pn a { display: grid; text-decoration: none; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12,19,48,.6);
  max-width: 48%; transition: border-color .3s, background .3s; }
.pn a:hover { border-color: var(--gold); background: rgba(19,35,90,.6); }
.pn small { color: var(--muted); font-size: 12px; }
.pn .nx { text-align: left; }

/* the mosaic of faces on the home page */
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 16px; }
.face { position: relative; display: block; aspect-ratio: 5 / 6; text-decoration: none;
  clip-path: var(--archp); }
.face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); transition: filter .6s, transform .8s var(--ease); }
.face span { position: absolute; inset: auto 0 0; padding: 22px 6px 6px; font-size: 11px; text-align: center; line-height: 1.5;
  background: linear-gradient(transparent, rgba(7,11,26,.92)); opacity: 0; transition: opacity .4s; }
.face:hover img, .face:focus-visible img { filter: none; transform: scale(1.06); }
.face:hover span, .face:focus-visible span { opacity: 1; }
.js .faces .face:nth-child(4n+2) { transition-delay: .06s, .06s, 0s, 0s, 0s; }
.js .faces .face:nth-child(4n+3) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
.js .faces .face:nth-child(4n+4) { transition-delay: .18s, .18s, 0s, 0s, 0s; }

/* search row on the list page */
.finder { position: sticky; top: 62px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0; background: linear-gradient(180deg, rgba(7,11,26,.95) 70%, transparent); }
.finder .search input { margin-top: 0; }

/* ================================================================ access
   Touch targets of at least 44px, and a clear ring for keyboard focus. */
.top nav a, .sechead a, .memorial .back, .victim .back { min-height: 44px; display: inline-flex; align-items: center; }
.cue { padding: 0; box-sizing: content-box; outline-offset: 8px; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 6px; }
.vcard:focus-visible, .face:focus-visible { outline-offset: 4px; }

/* ================================================================ v3
   Patterns adapted from 21st.dev components (rebuilt here in plain CSS/JS:
   no framework, nothing loaded from elsewhere). */

/* gold dust over the hero (site.js draws it; it rests when out of view) */
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* spotlight: a soft light follows the pointer across a card */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), rgba(243,217,143,.16), transparent 65%);
  transition: opacity .35s; }
.spot:hover::before { opacity: 1; }

/* expanding portraits */
.hx { display: flex; gap: 8px; height: clamp(320px, 52vw, 460px); margin-top: 18px; }
.hxp { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line);
  text-decoration: none; transition: flex-grow .55s var(--ease), border-color .3s; }
.hxp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.75); transition: filter .6s, transform 1s var(--ease); }
.hxp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,11,26,.92)); }
.hxl { position: absolute; z-index: 1; bottom: 16px; left: 50%; translate: -50% 0; writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--display); font-size: 20px; color: var(--stone); transition: opacity .3s; }
.hxi { position: absolute; z-index: 1; inset: auto 18px 16px; display: grid; gap: 2px; opacity: 0; translate: 0 10px; transition: opacity .4s .1s, translate .5s var(--ease) .1s; }
.hxi b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 34px); color: var(--gold2); }
.hxi small { color: var(--stone); font-size: 13px; }
/* the open one: under the pointer, in focus, or the first while nothing is hovered */
.hxp:hover, .hxp:focus-visible, .hx:not(:hover):not(:focus-within) .hxp.on { flex-grow: 5; border-color: rgba(217,174,79,.5); }
.hxp:hover img, .hxp:focus-visible img, .hx:not(:hover):not(:focus-within) .hxp.on img { filter: none; transform: scale(1.04); }
.hxp:hover .hxl, .hxp:focus-visible .hxl, .hx:not(:hover):not(:focus-within) .hxp.on .hxl { opacity: 0; }
.hxp:hover .hxi, .hxp:focus-visible .hxi, .hx:not(:hover):not(:focus-within) .hxp.on .hxi { opacity: 1; translate: none; }

/* the bloodiest days: bars grow when the chart comes into view */
.chart { display: grid; gap: 6px; margin-top: 16px; }
.crow { display: grid; grid-template-columns: 9.5em 1fr 4em; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px;
  text-decoration: none; transition: background .25s; }
.crow:hover { background: rgba(19,35,90,.6); }
.cd { color: var(--stone); font-size: 14px; white-space: nowrap; }
.cbar { width: 100%; height: 14px; overflow: visible; }
.cbar rect { fill: var(--gold); transform-box: fill-box; transform-origin: right; }
.crow:nth-child(odd) .cbar rect { fill: #c99a3e; }
.crow b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--gold2); text-align: left; }
.js .chart .cbar rect { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .chart.in .cbar rect { transform: none; }
.js .chart.in .crow:nth-child(2) rect { transition-delay: .06s; } .js .chart.in .crow:nth-child(3) rect { transition-delay: .12s; }
.js .chart.in .crow:nth-child(4) rect { transition-delay: .18s; } .js .chart.in .crow:nth-child(5) rect { transition-delay: .24s; }
.js .chart.in .crow:nth-child(6) rect { transition-delay: .3s; } .js .chart.in .crow:nth-child(7) rect { transition-delay: .36s; }
.js .chart.in .crow:nth-child(8) rect { transition-delay: .42s; } .js .chart.in .crow:nth-child(9) rect { transition-delay: .48s; }
.js .chart.in .crow:nth-child(10) rect { transition-delay: .54s; }

/* the day-by-day timeline: pinned dates, a rail and a beam that fills */
.tl { position: relative; padding: 10px 0 60px; padding-inline-start: 46px; }
.tlrail { position: absolute; top: 0; bottom: 0; inset-inline-start: 18px; width: 2px; overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(217,174,79,.22) 6%, rgba(217,174,79,.22) 94%, transparent); }
.tlbeam { position: absolute; inset: 0 0 auto; height: 0; border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--turq) 20%, var(--gold2)); box-shadow: 0 0 12px rgba(243,217,143,.7); }
.tday { display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: 28px; padding: 36px 0; }
.tdate { position: sticky; top: 90px; align-self: start; }
.tdot { position: absolute; inset-inline-start: -36px; top: 14px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(7,11,26,.9); }
.tdate h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0; color: var(--gold2); }
.tdate p { margin: 0; color: var(--muted); }
.tdate b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--stone); }
.tfaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tface { position: relative; display: block; aspect-ratio: 5 / 6; text-decoration: none;
  clip-path: var(--archp); }
.tface > img, .tface .noph { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); transition: filter .5s; }
.tface .noph { clip-path: none; }
.tface > span:last-child { position: absolute; inset: auto 0 0; padding: 18px 4px 5px; font-size: 11px; text-align: center; line-height: 1.5;
  background: linear-gradient(transparent, rgba(7,11,26,.95)); }
.tface:hover > img { filter: none; }
.tmore { display: inline-block; margin-top: 12px; color: var(--turq); text-decoration: none; min-height: 44px; line-height: 44px; }

/* two numbers under the hero: the estimate, and the names we hold */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; animation: rise 1s var(--ease) .95s both; }
.stats .stat { margin-top: 0; animation: none; }
.stat.sm b { font-size: 26px; color: var(--stone); }
.tsrc { max-width: 720px; margin: 0 auto 22px; color: var(--muted); font-size: 13px; }
.tsrc a { color: var(--turq); }

/* ================================================================ calendar of crimes */
.today { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(217,174,79,.45);
  background: linear-gradient(135deg, rgba(19,35,90,.9), rgba(12,19,48,.92)); box-shadow: 0 20px 60px -30px rgba(217,174,79,.5); }
.tlabel { margin: 0 0 8px; color: var(--gold2); font-family: var(--display); font-size: 22px; }
.today .cday { display: block; padding: 0; border: 0; }
.today .cdate { display: none; }
.mnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.mnav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--stone); min-height: 44px; display: inline-flex; align-items: center; }
.mnav a:hover { border-color: var(--gold); color: var(--gold2); }
.cmonth { padding-top: 26px; }
.mtitle { font-size: clamp(34px, 5vw, 48px); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.cday { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(217,174,79,.08); }
.cdate b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold2); }
.cvict { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--turq); text-decoration: none; }
.cevents { display: grid; gap: 14px; }
.cev h3 { margin: 0 0 4px; font-size: 18px; }
.cev p { margin: 0 0 4px; color: #d4cfc3; }
.cmeta { display: flex; gap: 8px; align-items: center; }
.cyear { font-family: var(--display); color: var(--stone); font-size: 18px; }
.ccat { font-size: 12px; padding: 1px 9px; border-radius: 999px; border: 1px solid rgba(181,86,58,.6); color: #e3a28e; }
.csrc a { color: var(--turq); font-size: 13px; }
.cnone { color: var(--muted); margin: 0; }
.cday.is-today { background: rgba(217,174,79,.06); border-radius: 12px; padding-inline: 12px; }
/* ================================================================ contact form */
.cform { display: grid; gap: 14px; margin-top: 20px; }
.cform label { display: grid; gap: 6px; color: var(--stone); font-size: 14px; }
.cform select, .cform textarea { font: inherit; color: var(--text); background: rgba(12,19,48,.85); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; min-height: 44px; }
.cform textarea { resize: vertical; line-height: 1.9; }
.cform select:focus, .cform textarea:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 4px rgba(52,185,179,.15); }
.cform .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
/* the field only bots fill in: kept off screen, out of the tab order */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cdone { text-align: center; padding-block: 60px; }

/* safety guide */
.safety h3 { font-size: 18px; color: var(--stone); margin: 18px 0 6px; }
.safety li { margin-bottom: 6px; }
.safety b { color: var(--gold2); font-weight: 700; }
.safety .note b { color: inherit; }

@media (max-width: 640px) {
  .cday { grid-template-columns: 1fr; gap: 8px; }
}

/* animations stop while their section is off screen (site.js adds .off) */
.off, .off *, .off::before, .off::after, .off *::before, .off *::after { animation-play-state: paused !important; }

@media (max-width: 640px) {
  .hx { flex-direction: column; height: 560px; }
  .hxl { writing-mode: horizontal-tb; bottom: 50%; translate: -50% 50%; font-size: 16px; }
  .crow { grid-template-columns: 7.5em 1fr 3em; gap: 8px; padding: 6px 4px; }
  .cd { font-size: 12px; }
  .tl { padding-inline-start: 30px; }
  .tlrail { inset-inline-start: 8px; }
  .tdot { inset-inline-start: -28px; }
  .tday { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .tdate { top: 0; padding: 8px 0; background: linear-gradient(180deg, rgba(7,11,26,.96) 75%, transparent); z-index: 2; }
  .tfaces { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}

@media (max-width: 640px) {
  .mhead { grid-template-columns: 1fr; gap: 26px; }
  .mphoto { max-width: 280px; margin: 0 auto; width: 100%; }
  .minfo { text-align: center; }
  .chips { justify-content: center; }
  .faces { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .finder { top: 0; }
  /* the menu fits on one row beside the brand */
  .top { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .brand { flex-shrink: 0; }
  .top nav { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 18px); mask: linear-gradient(90deg, transparent, #000 18px); }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; padding: 4px 7px; font-size: 13px; }
  .brand img { width: 30px; height: auto; }
  .brand span { font-size: 19px; white-space: nowrap; }
}

@media (max-width: 640px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vhead .arch { width: 100%; max-width: 280px; margin-inline: auto; }
  .band { grid-template-columns: 1fr; }
  .pillar { display: none; }
  .brand span { font-size: 21px; }
  .top nav a { padding: 4px 8px; font-size: 14px; }
  .hero { min-height: 86vh; }
  .azadi { opacity: .32; }
  .top { position: static; }
  .wall { padding: 18px 0; }
  .toll { padding: 60px 16px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .dust { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .azadi path { stroke-dashoffset: 0; }
  .js .rv { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}
