/* ==========================================================
   اليوم الوطني السوري — prototype v3 (restraint pass)
   One ground, one ink, one accent. Five type sizes. One move per section.
   ========================================================== */

/* the site's colours are its own: a phone or browser in dark mode must not recolour them (Chrome on Android,
   Samsung Internet and in-app browsers darken pages that do not say so; 25 Nov 2026) */
:root { color-scheme: only light; }
/* Samsung Internet's dark mode ignores color-scheme and recolours any page whose stylesheet has no dark media query
   of its own (owner's Samsung phone, 27 Nov 2026: odd colours, broken). This block is that query: it keeps the very
   same colours, so the site looks as designed in dark mode, and tells the browser the site already handles dark. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: only light; --ground: #F7F6F2; --ink: #24282A; }
}

@font-face { font-family: "Readex"; src: url("../assets/fonts/ReadexPro-Regular.woff2") format("woff2"), url("../assets/fonts/ReadexPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex"; src: url("../assets/fonts/ReadexPro-Medium.woff2") format("woff2"), url("../assets/fonts/ReadexPro-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Readex"; src: url("../assets/fonts/ReadexPro-SemiBold.woff2") format("woff2"), url("../assets/fonts/ReadexPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Readex"; src: url("../assets/fonts/ReadexPro-Bold.woff2") format("woff2"), url("../assets/fonts/ReadexPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* identity colours */
  --ground: #F7F6F2;
  --ground-2: #EDEAE4;
  --ink: #24282A;
  --ink-2: #44484A;
  --green: #165C48;
  --red: #C74848;   /* the brand red (owner, 19 Nov 2026) */
  --green-d: #134A3A;
  --cream: #F7F6F2;

  /* live theme (switched per chapter by JS) */
  --bg: var(--ground);
  --fg: var(--ink);
  --fg-2: var(--ink-2);

  /* five sizes */
  --fs-display: clamp(3.25rem, 8.6vw, 9.25rem);
  --fs-statement: clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-lead: clamp(1.125rem, 1.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --m: clamp(20px, 4.4vw, 64px);       /* the one pair of outer margins */
  --gap: clamp(112px, 15vw, 220px);    /* between sections */

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: "Readex", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* gold stars of the identity: drawn once in JS, placed in depth (size, blur and speed follow the depth) */
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; left: 0; top: 0; z-index: 1; aspect-ratio: 1; will-change: transform, filter; }
.star.is-near { z-index: 3; }
.star img, .wstar img, .star canvas, .wstar canvas { display: block; width: 100%; height: 100%; }
.star canvas, .wstar canvas { position: absolute; inset: 0; }
.star, .wstar { position: relative; }
.star { position: absolute; }
html.stars3d .star img, html.stars3d .wstar img { visibility: hidden; }
/* a slow float of its own, on top of the scroll travel */
.star canvas { animation: bob var(--bd, 7s) ease-in-out var(--bdl, 0s) infinite alternate; }
@keyframes bob { from { transform: translate3d(0, -3.5%, 0); } to { transform: translate3d(0, 3.5%, 0); } }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--green); color: var(--cream); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.display { font-size: var(--fs-display); font-weight: 600; line-height: 1.1; }
/* the client's drawn lettering (source: "typo for website/"). Every piece keeps the scale it was drawn at:
   --w is its width in artwork units (set inline), --u is the size of one unit where it is used. */
.lt { display: block; width: calc(var(--w) * var(--u)); height: auto; margin-inline: auto; fill: currentColor; overflow: visible; }
.display:has(.lt) { --u: min(.085vw, .068svh); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.statement { font-size: var(--fs-statement); font-weight: 500; line-height: 1.5; }
.lead { font-size: var(--fs-lead); line-height: 1.65; }
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.btn {
  font: inherit; font-size: var(--fs-body); font-weight: 500;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--green); color: var(--cream);
  transition: background-color .18s ease, transform .14s var(--ease-out);
}
.btn:hover { background: var(--green-d); }
.btn:active { transform: scale(.97); }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--ground-2); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--m); color: var(--fg); pointer-events: none;
  transition: color .3s ease;
}
.nav > * { pointer-events: auto; }
/* the small-size logo: 44px tall here (the guide's minimum is 20px); it takes the ink of the page */
.nav__logo { --u: .099px; flex: none; }   /* shown from the first screen, so the page is signed before the shot ends */
.nav { transition: color .3s ease, transform .5s cubic-bezier(.2, .7, .2, 1), background-color .3s ease; }
/* the site's sections, the home page first (on the right); «البث المباشر» left out (owner, 25 Nov 2026) */
.nav__sections { display: flex; flex: 1; gap: clamp(10px, 1.1vw, 20px); margin-inline-start: 8px; font-size: var(--fs-small); white-space: nowrap; }
.nav__sections a { color: var(--fg-2); padding-block: 6px; transition: color .18s ease; }
.nav__sections a:hover, .nav__sections a[aria-current] { color: var(--fg); }
.nav__sections a[aria-current] { font-weight: 600; }
/* «دليل الاحتفال» opens onto its two parts (owner, 25 Nov 2026): under the link while the pointer is on it or the
   keyboard is in it, on the page's own colours; a short bridge under the link keeps it open on the way down */
.nav__sub { position: relative; display: flex; align-items: center; }
.nav__sub > a::after { content: ""; display: inline-block; width: .34em; height: .34em; margin-inline-start: .5em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.22em) rotate(45deg); opacity: .55; }
.nav__sub::after { content: ""; position: absolute; top: 100%; inset-inline: -12px; height: 14px; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); inset-inline-start: -16px; z-index: 1;
  display: grid; padding: 8px 0; min-width: max-content;
  background: var(--bg); border: 1px solid rgba(128, 128, 128, .22); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav__sections .nav__drop a { padding: 8px 16px; }
.nav__sub:hover .nav__drop, .nav__sub:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__tools { display: flex; align-items: center; gap: 14px; }
.nav__btn { width: 44px; height: 44px; margin: -10px; display: grid; place-items: center; color: inherit; background: none; border: 0; cursor: pointer; }
.nav__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nav__lang { font-size: var(--fs-small); font-weight: 600; letter-spacing: .04em; padding: 6px 2px; }
.nav__menu { display: none; }
/* while the story is scrolled down the bar steps aside; it comes back on the way up, on the page's own colour */
html.nav-away:not(.menu-open) .nav:not(:focus-within) { transform: translateY(-110%); }
html.past-hero .nav { background: var(--bg); }
/* over the opening shot the links sit on a short shade at the top edge */
.hero__photo::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 132px; background: linear-gradient(to bottom, rgba(6, 10, 18, .6), rgba(6, 10, 18, 0)); }

/* the menu: every section, the search and the language */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: clamp(18px, 3.2vh, 34px); padding: clamp(76px, 10vh, 108px) var(--m) 40px;
  background: #0B0C0E; color: #F7F6F2; scrollbar-width: thin; scrollbar-color: rgba(247, 246, 242, .28) transparent;
}
.menu[hidden] { display: none; }
.menu__close { position: absolute; top: 24px; inset-inline-end: var(--m); margin: 0; }
.menu__search input {
  width: 100%; max-width: 34rem; padding: 14px 0; font: inherit; font-size: var(--fs-statement); color: inherit;
  background: none; border: 0; border-bottom: 1px solid rgba(247, 246, 242, .34); border-radius: 0;
}
.menu__search input::placeholder { color: rgba(247, 246, 242, .5); }
.menu__search input:focus-visible { outline: none; border-bottom-color: #E2CA93; }
.menu__note { margin-top: 12px; font-size: var(--fs-body); color: #E2CA93; }
.menu__links { display: grid; gap: clamp(2px, .9vh, 10px); justify-items: start; }
.menu__links a { font-size: clamp(1.5rem, 4.4vh, 2.5rem); font-weight: 500; line-height: 1.35; color: rgba(247, 246, 242, .78); transition: color .18s ease; }
.menu__links a:hover, .menu__links a[aria-current] { color: #F7F6F2; }
/* «دليل الاحتفال»'s two parts, always shown under it, smaller, on a thin line */
.menu__sub { display: grid; gap: 2px; justify-items: start; margin: -2px 0 4px; padding-inline-start: .9em; border-inline-start: 1px solid rgba(247, 246, 242, .2); }
.menu__links .menu__sub a { font-size: clamp(1.0625rem, 2.6vh, 1.375rem); font-weight: 400; line-height: 1.5; color: rgba(247, 246, 242, .62); }
.menu__links .menu__sub a:hover { color: #F7F6F2; }
.menu__lang { justify-self: start; font-size: var(--fs-lead); font-weight: 600; color: #E2CA93; }
html.menu-open { overflow: hidden; }

.nav__sound {
  width: 44px; height: 44px; margin: -10px; display: grid; place-items: center;
  color: var(--fg); background: none; border: 0; cursor: pointer; transition: color .18s ease, opacity .18s ease;
}
.nav__sound[hidden] { display: none; }
.nav__sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav__sound .spk { fill: currentColor; stroke: none; }
.nav__sound .mute { display: none; }
.nav__sound[aria-pressed="false"] .wv { display: none; }
.nav__sound[aria-pressed="false"] .mute { display: inline; }
.nav__sound[aria-pressed="false"] { opacity: .7; }
/* sound wanted but the browser waits for the first tap or key: the waves breathe */
html.sound-armed .nav__sound[aria-pressed="true"] .wv { animation: wv 1.6s ease-in-out infinite; }
html.sound-armed .nav__sound .wv2 { animation-delay: .25s !important; }
@keyframes wv { 50% { opacity: .25; } }

/* ============ HERO ============ */
.hero__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero__flag { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* cover: the square at night -> its evening light -> the picture lifts away like a print, onto the key visual */
/* ---- the night sky (fixed, behind everything) and the three travelling stars (fixed, in front) ---- */
.nightsky { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; }
.gstars { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.gstar { position: absolute; left: 0; top: 0; aspect-ratio: 1; opacity: 0; will-change: transform, filter, opacity; }
.gstar img, .gstar canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
html.stars3d .gstar img { visibility: hidden; }
.gstar canvas { animation: bob var(--bd, 7s) ease-in-out var(--bdl, 0s) infinite alternate; }
/* on the night chapters the accents turn to matte gold, and hairlines to light */
:root { --hair: rgba(36, 40, 42, .12); }
[data-theme="night"] { --accent: #E2CA93; --hl: #E2CA93; --mark: rgba(226, 202, 147, .2); --hair: rgba(247, 246, 242, .16); }
/* the camera: the photograph with its own sky continued above it; tilting up means moving this down */
.hero__photo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__cam { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform, filter; }
/* the sky goes towards black (brand): a soft dark over the top of the shot */
.hero__cam::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(11, 12, 14, .6) 0%, rgba(11, 12, 14, .25) 22%, rgba(11, 12, 14, 0) 45%); /* taste-skill-ignore: darkens the video's sky towards the brand black */
  opacity: var(--m, 1); }   /* and lets go as the shot ends, so its edge never shows as a band once the camera tilts up (20 Nov 2026) */
.hero__cam img, .hero__seq { /* the still it opens on, and the strip of frames drawn over it */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
  /* --m goes 1 -> 0 as the shot reaches open sky: only then does its top edge melt into the sky above */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, var(--m, 1)) 0, #000 6%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, var(--m, 1)) 0, #000 6%);
}
/* the sky above the picture: starts in the picture's own top colour and climbs into the light (colours set from the photo) */
.hero__skyext { position: absolute; left: 0; right: 0; top: -240vh; bottom: 94%; background: linear-gradient(to top, #6E7090 0%, #F7F6F2 50%); }
.hero__tint { position: absolute; inset: 0; background: #0B1626; mix-blend-mode: multiply; }
.hero__shade { /* keeps the logo legible over the crowd */
  position: absolute; inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 52% 46% at 50% 40%, rgba(8, 14, 24, .74), rgba(8, 14, 24, .3) 55%, rgba(8, 14, 24, 0)); /* taste-skill-ignore: legibility scrim on photo */
}
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.dawn__night { position: absolute; inset: 0; pointer-events: none; }
.dawn__sky { position: absolute; inset: 0; width: 100%; height: 100%; animation: twinkle 4.6s ease-in-out infinite alternate; }
.dawn__sky--b { animation-duration: 6.2s; animation-direction: alternate-reverse; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.dawn__stars { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.dawn__star { position: absolute; left: 0; top: 0; aspect-ratio: 1; will-change: transform, filter, opacity; }
.dawn__star img, .dawn__star canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
html.stars3d .dawn__star img { visibility: hidden; }
.hero__title { display: grid; }
.hero__title img { grid-area: 1 / 1; }
.hero__title .logo-b { opacity: 0; }
/* the official key visual: the logo centred in front of the pole, the line beneath it */
.hero__copy {
  position: absolute; z-index: 2; left: 50%; top: 12vh; top: 12svh; transform: translateX(-50%);
  width: min(38vw, 590px); display: grid; justify-items: center; text-align: center;   /* larger (owner, 19 Nov 2026) */
  width: min(38vw, 590px, 62vh);   /* on short wide screens it keeps to the height, so the pair stays in the sky (23 Nov 2026) */
}
.hero__title { width: 100%; }
.hero__title img { aspect-ratio: 383.13 / 270.9; }
.hero__rule {
  display: block; width: 130%; height: 14px; margin: 14px 0 18px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(36, 40, 42, var(--rule, .16)), rgba(36, 40, 42, 0)); /* taste-skill-ignore: the soft shadow line of the key visual */
}
.hero__pattern { position: absolute; top: 50%; width: min(40vw, 560px); opacity: 0; pointer-events: none; transform: translateY(-50%); }
.hero__pattern--a { left: max(-18vw, -260px); }
.hero__pattern--b { right: max(-18vw, -260px); }
.hero__title img { width: 100%; height: auto; display: block; }
/* stage 2 of the home page (owner's note): the logo, and under it «استعدناها.. ونبنيها معًا» on one line,
   in proportion to the logo (about the width of its box), written in from the right */
.hero__title { transform-origin: 50% 35%; will-change: transform, opacity, filter; }
.hero__slogan {
  --u: calc(min(38vw, 590px, 62vh) / 2400); display: flex; justify-content: center; align-items: center;
  gap: calc(70 * var(--u)); margin-top: calc(30 * var(--u)); width: max-content; visibility: hidden;
  /* client's note (23 Nov 2026): the slogan higher in the sky, clear of the square and its lights. The logo's box keeps
     the identity's clear space under its lettering (19.4% of its width); the slogan now sits in that space, close under
     the logo, instead of below it */
  margin-top: -13.6%;
}
.hero__slogan > span[aria-hidden] { display: block; will-change: opacity, filter; }
.hero__sa { color: #F7F6F2; }
.hero__sb { color: #E2CA93; }

/* ============ TEXT: centred prose, three quiet kinds of emphasis ============ */
.prose { max-width: 46rem; margin-inline: auto; text-align: center; }
.prose p { font-size: clamp(1.1875rem, 1.75vw, 1.625rem); line-height: 1.95; color: var(--fg); }
.prose p + p { margin-top: 1.15em; }
.prose .statement { font-size: clamp(2.125rem, 4.4vw, 4rem); line-height: 1.3; font-weight: 500; margin-bottom: .45em; }
.prose .prose__note { margin-top: 2.4em; font-size: var(--fs-lead); color: var(--fg-2); }
b { font-weight: 600; }
em { font-style: normal; font-weight: 600; color: var(--accent, var(--green)); }
mark { /* a matte-gold band under the words, drawn in as they are read (right to left) */
  color: inherit; padding-inline: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 58%, var(--mark, rgba(191, 160, 104, .32)) 58%, var(--mark, rgba(191, 160, 104, .32)) 90%, transparent 90%) right / 0% 100% no-repeat;
  transition: background-size 1.5s var(--ease-expo);
}
mark.is-on { background-size: 100% 100%; }
.date { font-size: var(--fs-lead); color: var(--fg-2); margin-top: .5em; }
.intro { padding: 0 var(--m) var(--gap); }
/* the opening sentence: three lines, each arriving on its own beat */
.tri__stage { height: 100vh; height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; }
/* the three words are the client's drawn lettering, kept at one common scale (--u = one unit of the artwork) */
.tri__stage { --u: min(.1vw, .058svh); }
.tri__line { width: calc(var(--w) * var(--u)); will-change: transform, opacity, filter; }
.tri__line svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
.tri__line svg, .finale__slogan .lt, .hero__slogan .lt {
  /* written in from the right, the way the word is read: a soft edge that travels with --p (0 → 1) */
  -webkit-mask-image: linear-gradient(to left, #000 calc(var(--p, 1) * 150% - 50%), transparent calc(var(--p, 1) * 150%));
  mask-image: linear-gradient(to left, #000 calc(var(--p, 1) * 150% - 50%), transparent calc(var(--p, 1) * 150%));
}
/* stacked on one centre line, one under the other, with clear air between them: no word touches the next one's marks */
.tri__line--2 { margin-top: calc(26 * var(--u)); }
.tri__line--3 { margin-top: calc(26 * var(--u)); }
.tri__line--g { color: var(--hl, var(--green)); }
.intro .prose { margin-top: 2vh; }

/* ============ THE FOUR DAYS ============ */
.days { padding: 0 0 var(--gap); }
/* the four days (client's notes, 23 Nov 2026): four strips the full width of the screen, one under the other, each in
   its day's colour from the client's «ألوان الأيام الأربعة». In each, from the right: the number with the date under it,
   the drawn name, and the day's text at the left. Each strip's ink is set for contrast on its colour (AA or better) */
.strips { margin: clamp(40px, 7vw, 96px) 0 0; padding: 0; list-style: none; }
.strip { --sb: #242829; --sf: #F7F6F2; --sf2: rgba(247, 246, 242, .78); position: relative; isolation: isolate; color: var(--sf); }
.strip--wafa   { --sb: #C74848; --sf: #FFFFFF; --sf2: #FFFFFF; }   /* plain white: cream, or white with any see-through, falls under 4.5:1 on this red */
.strip--dhikra { --sb: #242829; --sf: #F7F6F2; --sf2: rgba(247, 246, 242, .78); }
.strip--nasr   { --sb: #175C48; --sf: #F7F6F2; --sf2: rgba(247, 246, 242, .86); }
.strip--watani { --sb: #E6E7E8; --sf: #24282A; --sf2: rgba(36, 40, 42, .84); }
/* the colour comes in from the right as the strip scrolls in, the way the line is read (main.js sets --w, 100 -> 0) */
.strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sb); clip-path: inset(0 0 0 calc(var(--w, 0) * 1%)); }
.strip__in {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: clamp(28px, 4.4vw, 72px);
  max-width: 1600px; min-height: clamp(200px, 30vh, 300px); margin-inline: auto; padding: clamp(36px, 6vh, 60px) var(--m);
}
.strip__day { display: grid; justify-items: start; gap: 8px; }
.strip__num { font-size: clamp(4rem, 7.4vw, 7.5rem); font-weight: 600; line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.strip__when { font-size: clamp(.9375rem, 1.05vw, 1.0625rem); font-weight: 500; color: var(--sf2); white-space: nowrap; }
.strip__name { --u: clamp(.2px, .021vw, .32px); }
.strip__name .lt { margin: 0; }
.strip--watani .strip__name { --u: clamp(.15px, .0165vw, .25px); }
.strip__cap { justify-self: end; max-width: 30em; font-size: clamp(1rem, 1.15vw, 1.1875rem); font-weight: 400; line-height: 1.9; color: var(--sf2); text-wrap: pretty; }
/* lettering not drawn yet: set in type at the same place until the drawing arrives (tools/lt_build.py swaps it in) */
.lt-wait { display: block; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.strip__name .lt-wait { font-size: clamp(2.5rem, 4.4vw, 4.5rem); }


/* ============ HOME: the four days, a screen each (owner's note: more care than a line per day) ============
   each day in the colour of its chapter in «عن المناسبة»; the name in the drawn lettering, the date, the caption and the way to its chapter */
.days { padding: 0; }
/* each day holds the screen for a short while (owner's note): a taller section, its content held in place */
.day { position: relative; height: 145vh; overflow: clip; }
.day__a { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; justify-items: center; gap: clamp(14px, 2.4vh, 26px); max-width: 52rem; margin-inline: auto; padding-inline: var(--m); text-align: center; }
.day__when { font-size: var(--fs-lead); font-weight: 500; color: var(--fg-2); }
.day__name { --u: clamp(.32px, .05vw, .72px); }
.day__name .lt { margin-inline: auto; }
.day--watani .day__name { --u: clamp(.24px, .034vw, .5px); }
.day__cap { max-width: 34em; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.9; text-wrap: pretty; }
.day__go { display: inline-flex; align-items: center; gap: 14px; margin-top: 4px; font-size: var(--fs-lead); font-weight: 600; color: var(--accent, var(--green)); }
.day__a:hover .arrow, .day__a:focus-visible .arrow { transform: translateX(-10px); }
.day--wafa .day__when { color: #C74848; }
.day--dhikra .day__name { color: var(--green); }
.day--nasr { --accent: #E2CA93; }
.day--watani .day__when { color: var(--red); }

/* ============ HOME: the way into «قصة التحرير» ============ */
/* one line, read as a sentence: «قصة التحرير» تبدأ من هنا ← ; the three stars gather over it */
/* the end of the home page: a section headed «قصة التحرير», then the story's first scene at a smaller size */
.storylink { padding: 0; }
.storylink__a { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 0; padding: 12vh var(--m); text-align: center; }
.storylink__h { margin-bottom: clamp(18px, 3.5vh, 40px); --u: clamp(.3px, .05vw, .7px); }
.storylink__h .lt-wait { font-size: clamp(2.5rem, 5.4vw, 5rem); }
.storylink .st-forty__n { font-size: clamp(10rem, 30vw, 26rem); opacity: 1; }
.storylink .st-forty__t { opacity: 1; font-size: clamp(1.5rem, 3vw, 2.75rem); }
.storylink__go { margin-top: clamp(22px, 4vh, 44px); }
.storylink__go, .onward__go { display: inline-flex; align-items: center; gap: 16px; font-size: var(--fs-statement); font-weight: 500; color: var(--hl, var(--green)); }
.arrow { width: 56px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.storylink__a:hover .arrow, .storylink__a:focus-visible .arrow, .onward__a:hover .arrow, .onward__a:focus-visible .arrow { transform: translateX(-10px); }

/* ============ STORY (placeholder until the client's content) and its way on into «عن المناسبة» ============ */
.sopen { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 30px; padding: 18vh var(--m) 10vh; text-align: center; }
.sopen__name .lt-wait { font-size: clamp(3.5rem, 10vw, 10rem); }
.sopen__note { max-width: 26em; font-size: var(--fs-lead); line-height: 1.9; color: var(--fg-2); text-wrap: balance; }
/* the end of the story: in the style of the end of the home page, a section headed «عن المناسبة» with its first scene */
.onward { padding: 0; }
.onward .storylink__h { font-size: clamp(2.5rem, 5.4vw, 5rem); font-weight: 600; line-height: 1.15; }   /* the same size as «قصة التحرير» at the end of the home page */
.onward__word { --u: clamp(.5px, .075vw, 1.1px); color: #E9E6E0; }
.onward__word .lt { margin-inline: auto; }
.onward__line { margin-top: .4em; font-size: clamp(1.5rem, 3vw, 2.75rem); font-weight: 500; color: #E9E6E0; }

/* ============ the two pages read as one: one rail at the side (owner's notes, 18 Nov 2026) ============
   on the right, where Arabic begins; each stop is a short horizontal line, light so it does not pull the eye; the
   stop you are at is longer and named; the page you are on is open, the other folded to its name; under the pointer
   all the stops are named */
.path {
  position: fixed; z-index: 40; inset-inline-start: calc(var(--m) * .55); top: 50%; transform: translateY(-50%);
  display: grid; gap: 16px; font-size: .75rem; line-height: 1.2; color: var(--fg);
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
html.path-on .path { opacity: 1; pointer-events: auto; }
.path ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.path__grp { display: grid; gap: 10px; }
.path__stop, .path__page { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 12px; }
.path__dot { order: -1; flex: none; width: 14px; height: 1px; background: currentColor; opacity: .12; transition: width .4s ease, opacity .4s ease; }
.path__t { opacity: 0; color: var(--fg-2); white-space: nowrap; transition: opacity .3s ease, color .3s ease; }
/* the page names: quiet text, no line of their own */
.path__page .path__dot { display: none; }
.path__page .path__t { opacity: .3; }
.path__grp.is-here .path__page .path__t { opacity: .45; }
.path__grp:not(.is-here) .path__stops { display: none; }
/* the stops: read ones a little stronger, the one you are at longer and named */
.path__stop.is-past .path__dot { opacity: .22; }
.path__stop.is-active .path__dot { width: 30px; opacity: .45; }
.path__stop.is-active .path__t { opacity: .5; color: var(--fg); }
.path:hover .path__stop .path__t, .path:focus-within .path__stop .path__t { opacity: .5; }
.path__stop:hover .path__t { opacity: 1; color: var(--fg); }
.path__stop:hover .path__dot { opacity: .8; }
.path__line { display: none; }
/* on a phone: a thin line along the top that fills, and each stop named for a moment as you reach it */
.pathm { display: none; }
@media (max-width: 899px) {
  .path { display: none; }
  .pathm { display: block; position: fixed; z-index: 46; inset: 0 0 auto 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
  html.path-on .pathm { opacity: 1; }
  .pathm__bar { position: absolute; inset: 0; background: var(--fg); opacity: .25; transform: scaleX(0); transform-origin: right; }
  .pathm__t {
    position: absolute; top: 12px; inset-inline-start: var(--m); padding: 6px 12px; font-size: .8125rem; font-weight: 600;
    color: var(--bg); background: var(--fg); opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease;
  }
  .pathm.is-telling .pathm__t { opacity: 1; transform: none; }
}

/* ============ a hint to scroll, when a page opens ============ */
.cue {
  position: fixed; z-index: 45; left: 50%; bottom: clamp(20px, 4.5vh, 40px); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px; font-size: 1.0625rem; font-weight: 600; letter-spacing: .01em; color: var(--fg);
  text-shadow: 0 1px 16px color-mix(in srgb, var(--bg) 85%, transparent); opacity: 0; pointer-events: none; transition: opacity .8s ease;
}
html.cue-on .cue { opacity: 1; }
html.cue-gone .cue { opacity: 0; transition-duration: .3s; }
/* clearer (owner's note, 19 Nov 2026): a longer, thicker line with an arrow at its foot */
.cue__line { position: relative; width: 2px; height: 64px; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--fg) 25%, transparent); }
.cue__line::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(-100%); animation: cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite; }
.cue::after { content: ""; width: 10px; height: 10px; margin-top: -16px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
/* on the page that has its guide at the foot, the hint keeps clear of it */
@media (max-width: 899px) { body[data-page="story"] .cue, body[data-page="about"] .cue { bottom: clamp(64px, 10vh, 96px); } }

/* ============ moving between the pages: one page dissolves into the next ============ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .7s; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }

/* ============ 01 WAFA ============ */
.wafa { position: relative; overflow: clip; }
/* the title is held for half a screen of scroll, no longer: the text that follows speaks of these photographs */
.wafa__open { height: 150vh; }
.wafa .vow__lead { position: relative; z-index: 2; padding-top: 0; padding-bottom: 8vh; }
.wafa__cols { position: absolute; inset: 0; pointer-events: none; }
.wafa__cols--back { z-index: 1; }
.wafa__cols--front { z-index: 3; }
.wimg { position: absolute; overflow: hidden; will-change: transform; opacity: .5; }
.wimg.is-front { opacity: .74; }
.wimg.is-dim { opacity: .24; }   /* on a phone the pictures pass under the text, fainter */
.wimg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
/* the title blends with the pictures that pass beneath it (difference):
   on the cream ground it reads as the ink, over a photograph its letters take the inverse tones.
   #D3CEC8 is chosen so that |#F7F6F2 − #D3CEC8| = #24282A, the identity ink. */
.wafa__hold {
  position: sticky; top: 0; z-index: 2; height: 100vh; height: 100svh;
  display: grid; place-items: center; padding-inline: var(--m);
  mix-blend-mode: difference; color: #D3CEC8;
}
.wafa__copy { text-align: center; }
.wafa__copy .lead { max-width: 30em; margin: 28px auto 0; }
/* inside the difference blend this reads as the brand red #C74848 on the night ground (#0B0C0E + #C74848 = #D25456) */
.wafa__date { color: #D25456; font-weight: 500; }

/* ============ VOW (one sentence among the stars) ============ */
.vow { position: relative; }
.vow__lead { padding: var(--gap) var(--m) 0; --accent: #E8787A; }
/* the dedication: four lines set like an inscription, each read on its own */
.dedic { display: grid; justify-items: center; gap: 10vh; margin: 0; padding: 14vh 0 12vh; list-style: none; text-align: center; }
.dedic li { font-size: clamp(2.125rem, 5.6vw, 5.25rem); font-weight: 500; line-height: 1.2; }
.vow__pin { position: relative; height: 230vh; }
.vow__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; padding-inline: var(--m); }
.vow__quote { position: relative; z-index: 2; text-align: center; }
.vow__quote p { max-width: 15em; font-size: clamp(1.75rem, 3.5vw, 3.375rem); font-weight: 400; line-height: 1.5; text-wrap: balance; }

/* ============ 02 DHIKRA (a walk forward through memory) ============ */
.dhikra__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; perspective: 900px; perspective-origin: 50% 50%; }
.dhikra__world { position: absolute; inset: 0; transform-style: preserve-3d; }
.dmem, .dval { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; opacity: 0; backface-visibility: hidden; }
.dmem { overflow: hidden; background: var(--ground-2); }
.dmem img { width: 100%; height: 100%; object-fit: cover; }
.dval { --u: max(.07vw, .42px); color: var(--ink); }
.dhikra__head { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding-inline: var(--m); gap: 14px; }
.dhikra__head .display { color: var(--green); }
.dhikra__text { max-width: 32em; margin-top: 18px; font-size: clamp(1.1875rem, 1.75vw, 1.625rem); line-height: 1.95; }
.dhikra__after { padding: var(--gap) var(--m); }

/* ============ 03 NASR (green chapter) ============ */
.nasr__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
/* the brand gradient lies over the flowing green and fades in with it, so the chapter still arrives gradually */
.nasr__light {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(93, 142, 128, .32), rgba(22, 92, 72, 0) 70%),
    linear-gradient(180deg, rgba(22, 92, 72, 0) 0%, rgba(19, 74, 58, .55) 70%, rgba(17, 65, 51, .8) 100%); /* taste-skill-ignore: brand gradient (identity guide) */
}

.nasr__reel { position: absolute; inset: 0; }
.clip { position: absolute; overflow: hidden; opacity: 0; mix-blend-mode: luminosity; will-change: opacity, transform; }
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; }
.nasr__copy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding-inline: var(--m); gap: 14px; }
.nasr { --accent: #E2CA93; --mark: rgba(247, 246, 242, .17); }
.nasr__lines { display: grid; margin-top: 22px; }
.nasr__lines p { grid-area: 1 / 1; max-width: 30em; font-size: clamp(1.125rem, 1.7vw, 1.5625rem); line-height: 1.95; }
.nasr__lines p + p { opacity: 0; }

/* ============ 04 WATANI (finale) ============ */
.watani__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-content: center; justify-items: center; text-align: center; padding: 16vh var(--m) 0; }
.watani__stage .date { margin-top: 1.5em; }
/* the owner's drawn «اليوم الوطني السوري» (wider than the logo's lettering it replaced) */
.display.watani__title:has(.lt) { --u: min(.05vw, .1svh); }   /* beats .display:has(.lt) */
.watani__after { padding: var(--gap) var(--m) 0; }
.bigline { margin-inline: auto; padding: 26vh var(--m) 22vh; max-width: 17em; box-sizing: content-box;
  font-size: clamp(2.125rem, 5.2vw, 5rem); font-weight: 500; line-height: 1.32; text-align: center; text-wrap: balance; color: var(--green); }
.watani__state { padding: 0 var(--m); }
.gate4__stage { height: 100vh; height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding-inline: var(--m); }
.gate4__lead { font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 500; color: var(--fg-2); }
.gate4__words { display: grid; margin: .08em 0 .12em; }
.gate4__words span { grid-area: 1 / 1; font-size: clamp(4.5rem, 15vw, 15rem); font-weight: 700; line-height: 1.2; color: var(--green); white-space: nowrap; will-change: transform, opacity, filter; }
.gate4__words span + span { opacity: 0; }
.gate4__end { font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 500; color: var(--fg-2); opacity: 0; }
.finale { padding: var(--gap) var(--m) calc(var(--gap) * 1.1); text-align: center; }
/* the two counters close the page's content */
.counts { padding: 0 var(--m) calc(var(--gap) * 1.5); text-align: center; }
.count { max-width: 20em; margin-inline: auto; font-size: clamp(1.5rem, 3.4vw, 3.25rem); font-weight: 400; line-height: 2; text-wrap: balance; }
/* a number that counts up to its value: each digit is a column that rolls, soft at its top and bottom edge */
.roll {
  display: inline-flex; direction: ltr; unicode-bidi: isolate; vertical-align: -.1em; margin: 0 .02em 0 .1em;
  font-size: 2.2em; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--green);
}
.roll__d { display: block; height: 1.12em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
.nb { white-space: nowrap; }
.roll__d > span { display: block; will-change: transform; }
.roll__d i { display: block; height: 1.12em; font-style: normal; }
.finale__lead { max-width: 36em; margin-inline: auto; font-size: var(--fs-lead); line-height: 2; color: var(--fg-2); }
/* the closing line, in the lettering: two lines on one centre axis, like the opening words */
.finale__slogan { --u: min(.085vw, .068svh); position: relative; margin-top: calc(var(--gap) * .45); display: grid; justify-items: center; gap: calc(26 * var(--u)); }
.finale__slogan > span[aria-hidden] { will-change: transform, opacity, filter; }
.finale__b { color: var(--green); }

/* ============ FOOTER ============ */
.foot {
  position: relative; color: var(--cream); padding: var(--gap) var(--m) 36px; display: grid; gap: 72px;
  background: radial-gradient(80% 55% at 50% 112%, rgba(31, 107, 85, .85), rgba(24, 93, 73, 0) 72%); /* taste-skill-ignore: brand gradient (identity guide) */
}
.foot__logo { width: min(64vw, 520px); }
.foot__cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px clamp(24px, 4vw, 64px); }
.foot__h { margin-bottom: 14px; font-size: var(--fs-small); font-weight: 600; color: rgba(247, 246, 242, .6); }
.foot__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-body); }
.foot__list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.foot__list a, .foot__legal a { color: rgba(247, 246, 242, .86); transition: color .18s ease; }
.foot__list a:hover, .foot__legal a:hover { color: var(--cream); }
.foot__todo { max-width: 16em; font-size: var(--fs-small); line-height: 1.7; color: rgba(247, 246, 242, .6); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 40px; padding-top: 22px; border-top: 1px solid rgba(247, 246, 242, .16); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); }
.foot__note { font-size: var(--fs-small); color: rgba(247, 246, 242, .72); }

/* ============ PHONE ============ */
@media (max-width: 899px) {
  .nav { padding-block: 14px; }
  .nav__logo { --u: .086px; }

  .hero__copy { top: 15vh; top: 15svh; width: 74vw; }
  .hero__slogan { --u: calc(76vw / 2300); }
  .hide-m { display: none; }

  .wafa__open { height: 140vh; }
  .vow__pin { height: 200vh; }
  .prose p { line-height: 1.9; }
  .hero__copy { width: 76vw; }
  .sopen__name { --u: .09vw; }
  .count { line-height: 2.1; }
  .display.watani__title:has(.lt) { --u: .056vw; }
  .roll { font-size: 2em; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__col--wide { grid-column: 1 / -1; }
  .dedic { gap: 8vh; }
  .foot { gap: 48px; }

}

@media (prefers-reduced-motion: reduce) {
  .dawn__sky { animation: none; }
  .cue__line::after { animation: none; transform: none; }
  .star canvas { animation: none; }
  .dhikra__head, .dhikra__end { opacity: 1; }
  .dhikra__end { position: static; }
}

/* ============ the bar on narrower screens: the sections move into the menu (eight links fit down to 1100px) ============ */
@media (max-width: 1339px) {
  .nav__sections { font-size: .8125rem; }
}
@media (max-width: 1099px) {
  .nav__sections { display: none; }
  .nav__menu { display: grid; }
  .nav__tools { gap: 16px; }
}

/* ==========================================================
   «قصة التحرير» — rebuilt in the language of «عن المناسبة» (owner approved, 17 Nov 2026):
   depth and focus, the picture inside the letter, one distinct move per beat. No picture fills the screen.
   The tones are baked into the pictures (grey, red, dark green); the celebrations are the first colour.
   ========================================================== */
.st { position: relative; }
.st-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; padding-inline: var(--m); }
.st-hold { position: relative; z-index: 2; height: 210vh; }
.st-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding-inline: var(--m); }
.st-line { position: relative; z-index: 2; font-size: clamp(2.25rem, 5.6vw, 5.5rem); font-weight: 500; line-height: 1.3; text-align: center; text-wrap: balance; }
.st-stage .st-line, .st-cry__copy { color: #F5F1EA; }
.st img { filter: grayscale(1) contrast(1.06); }

/* 1. forty years: the era seen through the numerals, which then go dark */
.st-forty { align-content: center; gap: 0; text-align: center; }
.st-forty__n {
  --dk: 0;
  font-size: clamp(15rem, 46vw, 44rem); font-weight: 700; line-height: .82; letter-spacing: -.04em;
  padding: .04em .1em; direction: ltr;   /* room for the glyphs' overhang: the picture is painted only inside the box */
  color: transparent; -webkit-text-stroke: 1px rgba(233, 230, 224, .16);
  background-image: linear-gradient(rgba(14, 15, 16, var(--dk)), rgba(14, 15, 16, var(--dk))), var(--pic, none);
  background-size: cover; background-position: 50% var(--py, 30%);
  -webkit-background-clip: text; background-clip: text;
}
.st-forty__t { margin-top: .35em; font-size: clamp(1.75rem, 4.2vw, 4rem); font-weight: 500; color: #E9E6E0; }
/* the opening is on screen at once (owner: no empty first screen); a CSS entrance, so the scroll never takes it away */
.st-forty__n, .st-forty__t { opacity: 0; }
.st-forty.is-in .st-forty__n { animation: st-in 1.8s var(--ease-expo) .15s both; }
.st-forty.is-in .st-forty__t { animation: st-in 1.4s var(--ease-expo) .7s both; }
@keyframes st-in { from { opacity: 0; filter: blur(22px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }

/* 2. ruled by fear: words alone, each heavier than the one before */
.st-fear__l { text-align: center; font-size: clamp(2.2rem, 6.72vw, 6.8rem); line-height: 1.12; color: #E9E6E0; }
.st-fear__l span { display: inline-block; will-change: opacity, filter, transform; }
.st-fear__l span:nth-child(1) { font-weight: 300; }
.st-fear__l span:nth-child(2) { font-weight: 400; }
.st-fear__l span:nth-child(4) { font-weight: 600; }
.st-fear__l span:nth-child(5) { font-weight: 700; color: #C74848; }

/* 3. the wave, as a tide: pictures at many depths rise from below; the near ones faster and sharp */
.st-wave .st-stage::after { content: ""; position: absolute; inset: 0; z-index: 11; pointer-events: none; background: radial-gradient(ellipse 38% 26% at 50% 50%, rgba(8, 8, 9, .8), rgba(8, 8, 9, 0) 78%); /* taste-skill-ignore: legibility scrim on photos */ }
.st-wave__t { z-index: 12; }

/* 4. «الحرية» in the client's lettering, alone */
.st-cry__copy { position: relative; z-index: 12; display: grid; justify-items: center; gap: clamp(8px, 1.6vh, 18px); text-align: center; }
.st-cry__a, .st-cry__b { font-size: clamp(1.5rem, 3.2vw, 3rem); font-weight: 500; }
.st-cry__word { --u: clamp(.6px, .13vw, 1.9px); }
.st-cry__word .lt { fill: #F5F1EA; }

/* depth: pictures hang at several distances like objects before a lens; the focus travels between them */
.st-depth { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dp { position: absolute; left: 0; top: 0; overflow: hidden; will-change: transform, filter, opacity; background: rgba(127, 127, 127, .1); }
.dp img { filter: grayscale(1) contrast(1.05); }
.st-depth--red .dp img { filter: none; }   /* the red is in the picture itself */
/* under the pointer a blurred picture comes out of the blur and forward (owner's note) */
.st-depth .dp, .wk { pointer-events: auto; }
.dp.is-seen, .wk.is-seen { filter: none !important; opacity: 1 !important; z-index: 30 !important; transition: filter .35s ease, opacity .35s ease; }

/* 5. the faces of the revolution */
.st-people__words > .st-cry__copy, .st-people__words > .st-people__w { grid-area: 1 / 1; }
.st-people__w { position: relative; z-index: 12; display: grid; text-align: center; }
.st-people__w span { grid-area: 1 / 1; font-size: clamp(3.75rem, 13vw, 13rem); font-weight: 700; line-height: 1.2; white-space: nowrap; color: #F3EDE3; text-shadow: 0 0 60px rgba(8, 8, 9, .9); will-change: transform, opacity, filter; }
.st-people__w span + span { opacity: 0; }

/* 6. the red years: one line at a time over memories out of focus */
.st-red__lines { position: relative; z-index: 3; display: grid; }
.st-red__lines .st-line { grid-area: 1 / 1; text-shadow: 0 0 50px rgba(40, 8, 10, .85); }
.st-red__lines .st-line + .st-line { opacity: 0; }

/* 8. the free rose */
.st-rise { padding: 18vh var(--m) 20vh; }
.st-rise__t { max-width: 16em; margin-inline: auto; }

/* 9. the battle: pictures rushing towards us */
.st-rush { position: absolute; inset: 0; z-index: 1; perspective: 900px; perspective-origin: 50% 50%; transform-style: preserve-3d; pointer-events: none; }
.rp { position: absolute; left: 50%; top: 50%; overflow: hidden; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
.rp img { filter: none; }
.st-battle__t { position: relative; z-index: 2; text-shadow: 0 0 50px rgba(8, 28, 22, .9); }
.st-battle__name { display: block; margin-top: .3em; color: #E2CA93; --u: clamp(.4px, .05vw, .72px); }
.st-battle__name .lt { margin-inline: auto; filter: drop-shadow(0 0 30px rgba(8, 28, 22, .9)); }
@media (max-width: 899px) { .st-battle__name { --u: .075vw; } }

/* 10. fourteen years */
.st-years .st-stage { align-content: center; justify-items: center; gap: 4px; text-align: center; }
.st-years__a, .st-years__b { font-size: clamp(1.5rem, 3.4vw, 3.25rem); font-weight: 500; }
.st-years__y .roll { margin: 0; font-size: clamp(6rem, 21vw, 20rem); line-height: 1.12; color: #E2CA93; }
.st-years__b { color: var(--fg); }

/* 11. on the cream ground «استعدناها» holds the middle; the celebrations, in colour, come towards us in depth (as in «الذكرى») */
.st-squares__head { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; text-align: center; }
.st-squares__word { --u: clamp(.4px, .07vw, 1px); }
.st-squares__w { display: block; will-change: transform, opacity, filter; }
/* a cream halo keeps the word whole when a picture passes behind it */
.st-squares__w .lt { filter: drop-shadow(0 0 2px var(--bg)) drop-shadow(0 0 14px var(--bg)) drop-shadow(0 0 28px var(--bg)); }
.st-cry__word .lt, .st-squares__w .lt {
  -webkit-mask-image: linear-gradient(to left, #000 calc(var(--p, 1) * 150% - 50%), transparent calc(var(--p, 1) * 150%));
  mask-image: linear-gradient(to left, #000 calc(var(--p, 1) * 150% - 50%), transparent calc(var(--p, 1) * 150%));
}
.st-squares__again { font-size: clamp(1.375rem, 2.8vw, 2.75rem); font-weight: 500; color: var(--green); }
.st-walk { position: absolute; inset: 0; z-index: 1; perspective: 900px; perspective-origin: 50% 50%; transform-style: preserve-3d; pointer-events: none; }
.wk { position: absolute; left: 50%; top: 50%; overflow: hidden; opacity: 0; background: var(--ground-2); will-change: transform, opacity, filter; backface-visibility: hidden; }
.st-walk .wk img { filter: none; }

@media (max-width: 899px) {
  .st-hold { height: 190vh; }
  .st-cry__word { --u: .26vw; }
  .st-squares__word { --u: .095vw; }
  .st-fear__l { font-size: 10.4vw; }
  .st-forty__n { font-size: 58vw; }
}

/* the pictures breathe with the pointer (owner's note): each moves a little against it, by its depth (--k) */
.dp, .wk, .rp, .dmem { translate: calc(var(--mx, 0) * var(--k, .8) * -18px) calc(var(--my, 0) * var(--k, .8) * -12px); }
/* frames that GSAP moves (it resets their translate): the picture shifts inside its frame instead, a window onto it */
.wimg .media-fill, .clip video, .clip img { transform: translate(calc(var(--mx, 0) * var(--k, .8) * -12px), calc(var(--my, 0) * var(--k, .8) * -9px)) scale(1.08); }
.wimg { --k: .6; }
.wimg.is-front { --k: 1.3; }
.dmem { --k: .9; }
.clip { --k: 1; }
@media (max-width: 899px) {
  .st-squares__word { --u: .095vw; }
}

@media (max-width: 899px) {
  .day { height: 135vh; }
  .day__name { --u: .086vw; }
  .day--watani .day__name { --u: .056vw; }
}

@media (max-width: 899px) { .onward__word { --u: .13vw; } }

/* ============ the way to the next page: a rectangle of its own, on the page colour (owner's note, 18 Nov 2026)
   inside it the next page's first scene, blurred; over it that page's name and the way there ============ */
.storylink, .onward { padding: clamp(72px, 14vh, 160px) var(--m); }
.card-link {
  position: relative; display: grid; place-items: center; width: min(1180px, 100%); margin-inline: auto;
  aspect-ratio: 16 / 8; overflow: hidden; isolation: isolate; background: #0B0C0E; color: #F5F1EA;
}
.card-link__bg {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center;
  filter: blur(12px); opacity: .55; transform: scale(1.06); pointer-events: none;
  transition: filter .7s var(--ease-out), opacity .7s var(--ease-out), transform 1s var(--ease-out);
}
.card-link:hover .card-link__bg, .card-link:focus-visible .card-link__bg { filter: blur(7px); opacity: .7; transform: scale(1.02); }
.card-link .st-forty__n { font-size: clamp(9rem, 27vw, 24rem); opacity: 1; }
.card-link .st-forty__t { opacity: 1; font-size: clamp(1.25rem, 2.4vw, 2.25rem); }
.card-link .onward__word { --u: clamp(.4px, .065vw, .95px); }
.card-link__fg { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(16px, 2.6vh, 30px); padding: 24px; text-align: center; }
.card-link__h { --u: clamp(.3px, .05vw, .7px); font-size: clamp(2.5rem, 5.4vw, 5rem); font-weight: 600; line-height: 1.15; }
.card-link__h .lt-wait { font-size: inherit; }
.card-link__go { display: inline-flex; align-items: center; gap: 16px; font-size: var(--fs-lead); font-weight: 600; color: #E2CA93; }
.card-link:hover .arrow, .card-link:focus-visible .arrow { transform: translateX(-10px); }
@media (max-width: 899px) {
  .card-link { aspect-ratio: 4 / 5; }
  .card-link .st-forty__n { font-size: 52vw; }
  .card-link .onward__word { --u: .12vw; }
}

/* ============ back to the top (owner's request, 18 Nov 2026): the site's arrow turned upwards, in a quiet ring,
   in the lower left corner (the rail of the two pages is on the right) ============ */
.totop {
  position: fixed; z-index: 44; bottom: clamp(16px, 3.2vh, 30px); inset-inline-end: calc(var(--m) * .55);
  width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  color: var(--fg); background: transparent; border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent);
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s var(--ease-out), border-color .3s ease, background-color .3s ease;
}
html.totop-on .totop { opacity: .7; pointer-events: auto; transform: none; }
.totop:hover, .totop:focus-visible { opacity: 1; border-color: currentColor; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.totop svg { width: 10px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.totop:hover svg, .totop:focus-visible svg { transform: translateY(-3px); }
html.menu-open .totop { opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .totop { width: 42px; height: 42px; bottom: 16px; } }

/* ============ «الهوية البصرية»: a working page (owner's note, 18 Nov 2026): ordered, light and clean ============ */
@font-face { font-family: "Readex"; src: url("../assets/fonts/ReadexPro-ExtraLight.woff2") format("woff2"), url("../assets/identity/fonts/ReadexPro-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Readex"; src: url("../assets/fonts/ReadexPro-Light.woff2") format("woff2"), url("../assets/identity/fonts/ReadexPro-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
.idn { --line: color-mix(in srgb, var(--fg) 12%, transparent); --soft: color-mix(in srgb, var(--fg) 4%, transparent);
  --p-green: #165C48; --p-red: #C74848; --p-beige: #E3DFDB; --p-black: #24282A; }
.idn-wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--m); }
.idn-head { padding: calc(clamp(96px, 16vh, 150px)) 0 clamp(40px, 7vh, 72px); }
.idn-kicker { font-size: var(--fs-small); color: var(--fg-2); letter-spacing: .02em; }
.idn-title { margin-top: 10px; font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 600; line-height: 1.1; }
.idn-lead { max-width: 34em; margin-top: 18px; font-size: var(--fs-lead); line-height: 1.85; color: var(--fg-2); }
.idn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.idn-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 500; transition: border-color .2s ease, background-color .2s ease; }
.idn-btn:hover, .idn-btn:focus-visible { border-color: currentColor; }
.idn-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.idn-btn__m { font-size: .8125rem; font-weight: 400; color: var(--fg-2); }
.idn-btn--main { background: #165C48; border-color: #165C48; color: #F7F6F2; }
.idn-btn--main .idn-btn__m { color: rgba(247, 246, 242, .75); }
.idn-btn--main:hover, .idn-btn--main:focus-visible { background: #114133; border-color: #114133; }
.idn-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 6vh, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.idn-facts dt { font-size: var(--fs-small); color: var(--fg-2); }
.idn-facts dd { margin: 6px 0 0; font-size: 1rem; line-height: 1.8; }
.idn-facts dd span { display: inline-block; margin-inline-end: 10px; }

/* the page's own index: stays at the top while the page is read */
.idn-toc { position: sticky; top: 0; z-index: 30; background: var(--bg); border-block: 1px solid var(--line); }
.idn-toc__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.idn-toc__in::-webkit-scrollbar { display: none; }
.idn-toc a { flex: none; padding: 14px 10px; font-size: .9375rem; color: var(--fg-2); border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.idn-toc a:hover { color: var(--fg); }
.idn-toc a.is-on { color: var(--fg); border-bottom-color: currentColor; font-weight: 600; }

.idn-sec { padding: clamp(56px, 10vh, 104px) 0; scroll-margin-top: 50px; }
.idn-sec + .idn-sec { border-top: 1px solid var(--line); }
.idn-sec__head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vh, 40px); }
.idn-h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.2; }
.idn-n { font-size: .8125rem; font-weight: 500; color: var(--fg-2); }
.idn-sub { max-width: 40em; font-size: 1.0625rem; line-height: 1.85; color: var(--fg-2); }
.idn-h3 { font-size: 1.0625rem; font-weight: 600; }
.idn-h3--sp { margin-top: clamp(32px, 5vh, 48px); }
.idn-note { font-size: .9375rem; line-height: 1.8; color: var(--fg-2); }
.idn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* segmented choices */
.idn-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; width: fit-content; margin-top: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.idn-seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font: inherit; font-size: .9375rem; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.idn-seg button small { font-size: .75rem; opacity: .8; }
.idn-seg button[aria-checked="true"] { background: var(--fg); color: var(--bg); }
.idn-seg i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line); }

/* the logo: three cards; the stage turns dark for the white version */
.idn-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idn-logo { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.idn-logo__stage { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14%; background: #F7F6F2; transition: background-color .35s ease; }
.idn-logos[data-col="white"] .idn-logo__stage { background: #24282A; }
.idn-logo__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.idn-logo__info { display: grid; align-content: start; gap: 8px; padding: 18px 18px 20px; border-top: 1px solid var(--line); }
.idn-fmts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.idn-fmt { display: inline-grid; place-items: center; min-width: 52px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .03em; direction: ltr; transition: border-color .2s ease, background-color .2s ease; }
.idn-fmt:hover, .idn-fmt:focus-visible { border-color: currentColor; background: var(--soft); }

/* colours */
.idn-sws { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.idn-sw { display: grid; gap: 4px; padding: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: border-color .2s ease; }
.idn-sw:hover, .idn-sw:focus-visible { border-color: currentColor; }
.idn-sw__chip { height: clamp(120px, 16vw, 190px); margin-bottom: 12px; background: var(--c); border-bottom: 1px solid var(--line); }
.idn-sw__name, .idn-sw__use, .idn-sw__hex, .idn-sw__rgb { padding-inline: 16px; }
.idn-sw__name { font-weight: 600; }
.idn-sw__use { font-size: .8125rem; color: var(--fg-2); }
.idn-sw__hex { margin-top: 6px; font-size: .9375rem; font-weight: 600; text-align: left; }
.idn-sw__rgb { font-size: .8125rem; color: var(--fg-2); text-align: left; }
.idn-tints { display: grid; gap: 8px; margin-top: 14px; }
.idn-tints__row { display: grid; grid-template-columns: 5.5em repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; }
.idn-tints__name { font-size: .875rem; color: var(--fg-2); }
.idn-tint { position: relative; display: grid; align-items: end; min-height: 52px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--c); color: #fff; font: inherit; font-size: .6875rem; cursor: pointer; overflow: hidden; }
.idn-tint span { color: var(--ink, #fff); }   /* white or near black, whichever reads best on the shade (set in main.js) */
.idn-tints__row:first-child .idn-tint span { color: #24282A; text-shadow: none; }
.idn-tint:hover, .idn-tint:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.idn-grads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.idn-grad { display: flex; justify-content: space-between; align-items: end; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(90deg, var(--a), var(--b)); color: #fff; font: inherit; font-size: .6875rem; cursor: pointer; }
.idn-grad:first-child { color: #24282A; }
.idn-grad span { opacity: .9; }
.idn-grad:hover, .idn-grad:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }

/* type */
.idn-type { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.idn-type__big { display: grid; align-content: space-between; gap: 22px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 14px; }
.idn-type__sample { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.25; color: #165C48; transition: font-weight .15s ease; }
.idn-type__line { font-size: clamp(1.25rem, 2vw, 1.625rem); color: var(--fg-2); }
.idn-type__ctl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; font-size: .875rem; color: var(--fg-2); }
.idn-type__ctl input { width: 100%; accent-color: #165C48; }
.idn-w { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.idn-w li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; }
.idn-w li + li { border-top: 1px solid var(--line); }
.idn-w__s { font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idn-w__n { font-size: .8125rem; color: var(--fg-2); }

/* pattern */
.idn-pat { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.idn-pat__stage { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 6%; border: 1px solid var(--line); border-radius: 14px; background: #F7F6F2; transition: background-color .35s ease; }
.idn-pat__stage.is-dark { background: #24282A; }
.idn-pat__stage img { max-width: 100%; max-height: 100%; }
.idn-pat__ctl { display: grid; align-content: start; gap: 16px; }

/* flag */
.idn-flag { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.idn-flag__img { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.idn-flag__text { display: grid; gap: 12px; }
.idn-list { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; font-size: 1rem; line-height: 1.8; }
.idn-flagcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.idn-tint--lg { min-height: 70px; font-size: .75rem; }

/* wrong uses and applications */
.idn-wrongs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.idn-wrong { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.idn-wrong img { width: 100%; height: auto; }
.idn-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idn-use { margin: 0; display: grid; gap: 8px; }
.idn-use img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--soft); }
.idn-use--wide { grid-column: span 2; }
.idn-use--wide img { aspect-ratio: auto; height: 100%; }
.idn-use--tall { grid-row: span 2; }
.idn-use--tall img { aspect-ratio: auto; height: 100%; }
.idn-use figcaption { font-size: .875rem; color: var(--fg-2); }

/* all the files */
.idn-table-wrap { margin-top: 28px; overflow-x: auto; }
.idn-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.idn-table caption { padding-bottom: 10px; text-align: start; font-weight: 600; }
.idn-table th, .idn-table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: start; }
.idn-table thead th { font-size: .8125rem; font-weight: 500; color: var(--fg-2); border-top: 0; }
.idn-table td { width: 1%; white-space: nowrap; }
.idn-table td a { font-size: .8125rem; font-weight: 600; direction: ltr; border-bottom: 1px solid var(--line); }
.idn-table td a:hover { border-color: currentColor; }

.idn-toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .875rem; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.idn-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 899px) {
  .idn-facts, .idn-logos, .idn-type, .idn-pat, .idn-flag { grid-template-columns: minmax(0, 1fr); }
  .idn-sws, .idn-grads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idn-tints__row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .idn-tints__name { grid-column: 1 / -1; }
  .idn-tint { min-height: 44px; font-size: 0; }
  .idn-wrongs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idn-uses { grid-template-columns: minmax(0, 1fr); }
  .idn-use--wide, .idn-use--tall { grid-column: auto; grid-row: auto; }
  .idn-use--wide img, .idn-use--tall img { aspect-ratio: 3 / 2; }
  .idn-seg button small { display: none; }
}
@media (max-width: 899px) { .idn .idn-tint--lg { font-size: .75rem; } }
.idn-grad { direction: ltr; }   /* the codes stand under their end of the gradient */
.idn-wrongs { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* large enough to read the labels */
@media (max-width: 899px) { .idn-wrongs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.idn-flag { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.idn-flag__img { max-width: 420px; padding: 18px; }
@media (max-width: 899px) { .idn-flag { grid-template-columns: minmax(0, 1fr); } .idn-flag__img { max-width: none; } }
/* the examples: one even grid (a tidier page) */
.idn-use--wide, .idn-use--tall { grid-column: auto; grid-row: auto; }
.idn-use img, .idn-use--wide img, .idn-use--tall img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.idn-use--tall img { object-position: 50% 12%; }
.idn-uses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .idn-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .idn-wrongs { grid-template-columns: repeat(6, minmax(0, 1fr)); } .idn-wrong { grid-column: span 2; } .idn-wrongs { max-width: 960px; } }
.idn-logo__svg { display: block; width: 100%; height: 100%; }   /* the logo, trimmed to its drawing, fills the stage the same way in every colour */

/* the sticky bars of the working pages move down while the site's bar is shown, and up when it steps aside */
.idn-toc { top: var(--navh, 64px); transition: top .5s cubic-bezier(.2, .7, .2, 1); }
html.nav-away .idn-toc { top: 0; }

/* ============ «دليل الاحتفال» (owner's notes, 18 Nov 2026): the four days as the spine, a timeline by the hour ============ */
.gd-head { padding-bottom: clamp(24px, 4vh, 40px); }
.gd-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gd-day {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: clamp(190px, 24vw, 260px);
  padding: 22px 16px 18px; border: 1px solid transparent; border-radius: 16px; font: inherit; text-align: center; cursor: pointer;
  background: var(--d-bg); color: var(--d-fg); transition: transform .35s var(--ease-out), box-shadow .35s ease, opacity .3s ease;
}
.gd-day--wafa { --d-bg: #0B0C0E; --d-fg: #F7F6F2; --d-acc: #C74848; }
.gd-day--dhikra { --d-bg: #F7F6F2; --d-fg: #165C48; --d-acc: #24282A; border-color: var(--line); }
.gd-day--nasr { --d-bg: #165C48; --d-fg: #F7F6F2; --d-acc: #E2CA93; }
.gd-day--watani { --d-bg: #EDE8DE; --d-fg: #24282A; --d-acc: #C74848; }
.gd-day__name { display: block; width: 100%; }
.gd-day__name .lt { width: min(78%, 220px); }
.gd-day--watani .gd-day__name .lt { width: min(92%, 250px); }
.gd-day__date { font-size: .9375rem; font-weight: 600; color: var(--d-acc); }
.gd-day__n { font-size: .8125rem; opacity: .75; }
.gd-days:has(.gd-day[aria-selected="true"]) .gd-day:not([aria-selected="true"]) { opacity: .55; }
.gd-day:hover { opacity: 1 !important; transform: translateY(-3px); }
.gd-day[aria-selected="true"] { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.gd-day[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 14px; height: 14px; background: var(--d-bg); border: inherit; border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }

.gd-prog { padding-top: clamp(40px, 6vh, 64px); border-top: 0 !important; }
.gd-prog__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.gd-prog__head .idn-note { margin-top: 6px; }
.gd-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.gd-field { display: grid; gap: 4px; }
.gd-field__l { font-size: .75rem; color: var(--fg-2); }
.gd-field select { min-width: 210px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: inherit; font-size: .9375rem; }
.gd-field select:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.gd-places { margin-top: 14px; font-size: .9375rem; line-height: 1.9; color: var(--fg-2); }
.gd-places b { color: var(--fg); font-weight: 600; }

/* the timeline: the hour, a dot on the line, the event */
.gd-line { list-style: none; margin: 8px 0 0; padding: 0; }
.gd-ev { position: relative; display: grid; grid-template-columns: 7.5em 28px minmax(0, 1fr) auto; gap: 0 14px; align-items: start; padding: 22px 0; }
.gd-ev::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: calc(7.5em + 14px + 13px); width: 1px; background: var(--line); }
.gd-ev:first-child::before { top: 30px; }
.gd-ev:last-child::before { bottom: calc(100% - 30px); }
.gd-ev:only-child::before { display: none; }
.gd-ev__time { display: grid; justify-items: end; line-height: 1.1; }
.gd-ev__h { font-size: 1.625rem; font-weight: 600; color: #165C48; direction: ltr; }
.gd-ev__ap { font-size: .8125rem; color: var(--fg-2); }
.gd-ev__dot { position: relative; z-index: 1; width: 11px; height: 11px; margin: 9px auto 0; border-radius: 50%; background: var(--bg); border: 2px solid #165C48; }
.gd-ev__t { font-size: 1.1875rem; font-weight: 600; line-height: 1.5; }
.gd-ev__where { margin-top: 4px; font-size: .9375rem; }
.gd-ev__org { margin-top: 2px; font-size: .875rem; color: var(--fg-2); }
.gd-ev__note { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, #165C48 10%, transparent); color: #165C48; font-size: .8125rem; }
.gd-ev__acts { display: flex; gap: 6px; opacity: 0; transition: opacity .25s ease; }
.gd-ev:hover .gd-ev__acts, .gd-ev:focus-within .gd-ev__acts { opacity: 1; }
.gd-act { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .8125rem; cursor: pointer; white-space: nowrap; }
.gd-act:hover, .gd-act:focus-visible { border-color: currentColor; }
.gd-ev.is-now .gd-ev__dot { background: #C74848; border-color: #C74848; box-shadow: 0 0 0 5px color-mix(in srgb, #C74848 20%, transparent); }
.gd-ev__live { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: #C74848; color: #fff; font-size: .6875rem; font-weight: 600; vertical-align: middle; }
.gd-empty { padding: 36px 0 12px; font-size: 1.0625rem; color: var(--fg-2); }

/* the events of all four days: a strip of cards */
.gd-all { margin-top: clamp(36px, 6vh, 56px); }
.gd-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.gd-tile { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.gd-tile .gd-ev__t { font-size: 1.0625rem; }
.gd-tile .gd-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gd-src { margin-top: 28px; font-size: .8125rem; color: var(--fg-2); }

.gd-tips { padding-block: clamp(40px, 7vh, 72px); }
.gd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.gd-card { display: grid; align-content: start; gap: 10px; padding: 20px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
.gd-card__h { font-size: 1rem; font-weight: 600; }
.gd-card__h--do { color: #165C48; }
.gd-card__h--dont { color: #B13B3B; }   /* a darker shade of the brand red for text: 5.4:1 on the cream (accessibility pass, 25 Nov 2026) */
.gd-card .idn-list { font-size: .9375rem; }
.gd-more { margin-top: 18px; font-size: .9375rem; }
.gd-more a { border-bottom: 1px solid var(--line); }

@media (max-width: 899px) {
  .gd-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gd-day { min-height: 150px; padding: 16px 10px 14px; }
  .gd-day[aria-selected="true"]::after { display: none; }
  .gd-tools { width: 100%; }
  .gd-field { flex: 1; }
  .gd-field select { min-width: 0; width: 100%; }
  .gd-ev { grid-template-columns: 4.6em 20px minmax(0, 1fr); }
  .gd-ev::before { inset-inline-start: calc(4.6em + 14px + 9px); }
  .gd-ev__h { font-size: 1.25rem; }
  .gd-ev__acts { grid-column: 3; opacity: 1; margin-top: 10px; flex-wrap: wrap; }
  .gd-cards { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .nav, .menu, .gd-days-sec, .gd-tools, .gd-tips, .foot, .totop, .gd-ev__acts, .gd-acts, .cue, .idn-toast { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .gd-ev, .gd-tile { break-inside: avoid; }
  .gd-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; }
}
.gd-day[aria-selected="true"]::after { display: none; }
.gd-tile .gd-ev__note { justify-self: start; }



/* ============ «مراكز الاحتفال»: the client's map and every governorate's centres beside it (fixed, on its own) ============ */
.gd-centres { padding-top: clamp(24px, 4vh, 40px); }
.gd-cmap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gd-map__svg { width: 100%; height: auto; overflow: visible; }
.gd-map__g path { stroke: var(--bg); stroke-width: 4; stroke-linejoin: round; transition: fill .25s ease, opacity .25s ease; cursor: pointer; }
.gd-map__g.is-on path { fill: #165C48; }
.gd-cmap:has(.is-on) .gd-map__g:not(.is-on) path { opacity: .5; }
.gd-map__t { font-size: 44px; font-weight: 600; fill: #24282A; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(247, 246, 242, .85); stroke-width: 8px; }
.gd-map__g.is-dark .gd-map__t, .gd-map__g.is-on .gd-map__t { fill: #F7F6F2; stroke: none; }
.gd-map__g.is-out .gd-map__t, .gd-cmap:has(.is-on) .gd-map__g:not(.is-on) .gd-map__t { fill: #24282A; stroke: rgba(247, 246, 242, .85); stroke-width: 8px; }
.gd-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.gd-region { display: grid; align-content: start; gap: 4px; }
.gd-region__h { margin-bottom: 4px; padding-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--fg-2); border-bottom: 1px solid var(--line); }
.gd-centre { display: grid; gap: 2px; padding: 8px 10px; margin-inline: -10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: background-color .2s ease; }
.gd-centre b { font-size: 1.0625rem; font-weight: 600; }
.gd-centre span { font-size: .875rem; line-height: 1.75; color: var(--fg-2); }
.gd-centre.is-on { background: color-mix(in srgb, #165C48 10%, transparent); }
.gd-centre.is-on b { color: #165C48; }
.gd-days-sec { padding-top: clamp(48px, 8vh, 88px); border-top: 1px solid var(--line); }
.gd-days__head { margin-bottom: clamp(20px, 3vh, 28px); }
@media (max-width: 899px) {
  .gd-cmap, .gd-regions { grid-template-columns: minmax(0, 1fr); }
  .gd-map__t { font-size: 52px; }
}
@media print { .gd-centres { break-after: page; } }
.gd-ev__time .gd-ev__h:empty { display: none; }   /* an all-day event shows «طوال اليوم» alone */
.gd-ev__h:empty + .gd-ev__ap { font-size: .875rem; font-weight: 600; color: #165C48; padding-top: 4px; }
.gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* two cards now: do and avoid */
@media (max-width: 899px) { .gd-cards { grid-template-columns: minmax(0, 1fr); } }
/* the two parts of the guide, told apart by large numbered headings and a strong rule (owner's choice, option 3) */
.gd-h { display: flex; align-items: baseline; gap: 18px; font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 600; line-height: 1.1; }
.gd-h__n { font-size: .42em; font-weight: 500; color: #165C48; letter-spacing: .02em; }
.gd-centres { padding-block: clamp(40px, 7vh, 72px) clamp(56px, 9vh, 96px); border-top: 0 !important; }
.gd-days-sec { padding-top: clamp(56px, 9vh, 96px); border-top: 3px solid var(--fg); }
/* the rule runs the width of the content, not the screen */
.gd-days-sec { border-top: 0; padding-top: 0; }
.gd-days-sec > .idn-wrap { padding-top: clamp(56px, 9vh, 96px); background: linear-gradient(var(--fg), var(--fg)) no-repeat top / calc(100% - 2 * var(--m)) 3px; }

/* ============ the way on to the next page (owner's note, 19 Nov 2026): the next page's name and «تبدأ من هنا» with an
   arrow, in a rectangle drawn with a fine line; nothing else ============ */
.door {
  display: grid; justify-items: center; align-content: center; gap: clamp(18px, 3vh, 30px); width: min(1080px, 100%); margin-inline: auto;
  min-height: clamp(260px, 42vh, 420px); padding: clamp(36px, 6vw, 72px) 24px; border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-radius: 6px; text-align: center; transition: border-color .4s ease, background-color .4s ease;
}
.door:hover, .door:focus-visible { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.door__h { --u: clamp(.42px, .07vw, 1px); font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 600; line-height: 1.15; }
.door__h .lt-wait { font-size: inherit; }
.door__go { display: inline-flex; align-items: center; gap: 16px; font-size: var(--fs-lead); font-weight: 600; color: #E2CA93; }
[data-theme="light"] .door__go, [data-theme="paper"] .door__go { color: #165C48; }
.door:hover .arrow, .door:focus-visible .arrow { transform: translateX(-10px); }
@media (max-width: 899px) { .door { min-height: 240px; } .door__h { --u: .16vw; } }

/* ============ «قصة التحرير», notes of 19 Nov 2026 ============ */
/* the opening: the page's name in the lettering, then «40 عاماً» on one line and «من الظلام» under it, in type */
.st-forty { gap: clamp(28px, 6vh, 64px); }
.st-forty__title { --u: clamp(.3px, .042vw, .62px); color: #E2CA93; }
.st-forty__title .lt-wait { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.st-forty__in { display: grid; justify-items: center; will-change: opacity, filter; }
.st-forty .st-forty__n {
  font-size: clamp(4rem, 11vw, 10.5rem); font-weight: 700; line-height: 1.05; letter-spacing: 0; direction: rtl; padding: 0;
  color: #E9E6E0; -webkit-text-stroke: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box;
}
.st-forty .st-forty__t { margin-top: .2em; font-size: clamp(1.75rem, 4.4vw, 4.25rem); font-weight: 400; color: #9C9EA0; }
.st-forty__title { opacity: 0; }
.st-forty.is-in .st-forty__title { animation: st-in 1.4s var(--ease-expo) 0s both; }
@media (max-width: 899px) { .st-forty__title { --u: .16vw; } .st-forty .st-forty__n { font-size: 18vw; } .st-forty .st-forty__t { font-size: 8.5vw; } }
/* «شباباً ونساءً أطفالاً وشيوخاً ضد الظلم!»: one paragraph; each word clears from a faint silver as the page is scrolled */
.st-people__w { display: block; max-width: 13em; margin-inline: auto; font-size: clamp(2.75rem, 7vw, 7rem); font-weight: 700; line-height: 1.25; text-wrap: balance; }
.st-people__w span, .st-people__w span + span { display: inline; grid-area: auto; font-size: inherit; opacity: 1; white-space: nowrap; color: rgb(60, 60, 60); }   /* the faint silver as a solid grey: see-through, the joins of the letters showed as lines (20 Nov 2026) */
.st-people__w span + span::before { content: " "; white-space: normal; }
@media (max-width: 899px) { .st-people__w { font-size: 11vw; } }
.door__h--type { font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 600; }
.onward { padding: clamp(72px, 14vh, 160px) var(--m); }
.door__h { --u: clamp(.3px, .042vw, .6px); }   /* the drawn name at a measured size inside the box */
@media (max-width: 899px) { .door__h { --u: .062vw; } }
.days { padding: 0; }   /* the day strips run the full width of the screen, and the way into the story follows them directly (client's notes, 23 Nov 2026) */
/* on a phone: the number and the drawn name side by side, the date under them, then the text */
@media (max-width: 899px) {
  .strip__in { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 14px; min-height: 0; padding: 36px var(--m) 40px; }
  .strip__day { display: contents; }
  .strip__num { grid-column: 1; grid-row: 1; font-size: 16vw; }
  .strip__name { grid-column: 2; grid-row: 1; --u: .052vw; }
  .strip--watani .strip__name { --u: .036vw; }
  .strip__when { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; }
  .strip__cap { grid-column: 1 / -1; grid-row: 3; justify-self: start; max-width: none; margin-top: 4px; font-size: 1rem; line-height: 1.85; }
}

/* ============ notes of 19 Nov 2026, second round ============ */
/* «قصة التحرير»: the drawn name smaller, and a little higher above the years */
.st-forty { gap: clamp(56px, 13vh, 130px); }
.st-forty__title { --u: clamp(.22px, .03vw, .44px); }
@media (max-width: 899px) { .st-forty__title { --u: .071vw; } }   /* about 80% of the screen (it was wider than a phone, 20 Nov 2026) */
/* tighter: less room between the texts (owner, general note) */
:root { --gap: clamp(72px, 9.5vw, 140px); }
.dedic { gap: 6vh; padding: 8vh 0 7vh; }
.bigline { padding-block: 14vh 12vh; }
@media (max-width: 899px) { .dedic { gap: 5vh; } }

/* ============ «عن المناسبة», denser (19 Nov 2026): grouped texts, less scroll, smaller type ============ */
.prose p { font-size: clamp(1.0625rem, 1.38vw, 1.375rem); line-height: 1.85; }
.prose p + p { margin-top: .9em; }
.intro .prose { margin-top: 0; }
.intro { padding-bottom: clamp(48px, 7vw, 96px); }
.wafa__open { height: 110vh; }
.wafa .vow__lead { padding-bottom: 2vh; }
.vow__lead { padding-top: clamp(40px, 6vw, 80px); }
.vow__pin { height: auto; }
.vow__stage { position: relative; height: auto; padding-block: clamp(40px, 8vh, 90px) clamp(56px, 10vh, 110px); overflow: visible; }
.vow__quote p { font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.dhikra__text { font-size: clamp(1.0625rem, 1.38vw, 1.375rem); line-height: 1.85; }
.dhikra__after { padding-block: clamp(48px, 7vw, 96px); }
.nasr__copy { gap: 8px; }
.nasr__copy .display { --u: clamp(.3px, .045vw, .66px); }
.nasr__lines { gap: .55em; margin-top: 14px; }
.nasr__lines p, .nasr__lines p + p { grid-area: auto; opacity: 1; max-width: 40em; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.8; }
.watani__after { padding-top: clamp(40px, 6vw, 80px); }
.watani__state { padding-block: clamp(20px, 3vw, 40px) 0; }
.finale { padding-block: clamp(56px, 8vw, 110px); }
.finale__lead { font-size: clamp(1.0625rem, 1.38vw, 1.375rem); }
.count { font-size: clamp(1.25rem, 2.4vw, 2.25rem); line-height: 1.8; }
.counts { padding-bottom: clamp(72px, 10vw, 140px); }
@media (max-width: 899px) {
  .wafa__open { height: 105vh; }
  .vow__pin { height: auto; }
  .nasr__copy .display { --u: .07vw; }
  .nasr__lines p { font-size: .9375rem; line-height: 1.75; }
}
.wafa .vow { z-index: 2; }   /* the quote stands among the photographs, above those behind it */
/* the three values side by side in one row (19 Nov 2026): a little smaller so the row fits the screen */
.dval { --u: max(.044vw, .3px); }
@media (max-width: 899px) { .dval { --u: .1vw; } }
.dhikra__world--words { z-index: 2; }   /* the three values stay above the photographs passing by */
/* «ويتجسّد حفظ الذاكرة الثورية…»: inside the walk of «يوم الذكرى», after its photographs (19 Nov 2026) */
.dhikra__more { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding-inline: var(--m); text-align: center; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, filter, transform; }
.dhikra__more p { max-width: 40em; font-size: clamp(1.0625rem, 1.38vw, 1.375rem); line-height: 1.9; color: var(--fg); }
.dhikra__more.is-static { position: static; opacity: 1 !important; visibility: visible !important; filter: none !important; transform: none !important; padding-block: 48px; }

/* ============ the clocks (owner, 19 Nov 2026), direction B: thin frames, rolling digits, days on the left,
   seconds on the right in green ============ */
.counts { display: grid; gap: clamp(44px, 6vw, 84px); justify-items: center; }
.clock { text-align: center; }
.clock__label { font-size: clamp(1.0625rem, 1.5vw, 1.5rem); line-height: 1.6; color: var(--fg-2); margin-bottom: clamp(14px, 1.8vw, 22px); }
.clock__row { direction: ltr; display: flex; justify-content: center; gap: clamp(10px, 1.4vw, 18px); }
.clock__u { display: grid; justify-items: center; gap: 12px; }
.clock__n {
  display: flex; justify-content: center; min-width: 2.6ch; padding: .32em .38em .26em; border-radius: clamp(14px, 1.4vw, 20px);
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 300; line-height: 1;
}
.clock__u--s .clock__n { color: var(--green); border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.clock__u small { font-size: clamp(.8125rem, .95vw, .9375rem); color: var(--fg-2); }
.clock__today { display: none; font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.6; }
.clock.is-today .clock__row, .clock.is-today .clock__label { display: none; }
.clock.is-today .clock__today { display: block; }

/* a rolling digit: a strip that slides, faded at its top and bottom edge */
.rd { display: block; height: 1.1em; overflow: hidden; font-variant-numeric: tabular-nums;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.rd__s { display: block; will-change: transform; transition: transform .85s var(--ease-out); }
.rd__s--snap { transition: none; }
.rd i { display: block; height: 1.1em; line-height: 1.1; font-style: normal; text-align: center; }
/* coming in: the digits roll up from zero, the ones on the left first */
.clock.is-in .rd__s { transition-duration: 1.6s; }
.clock.is-in .clock__u:nth-child(2) .rd__s { transition-delay: .08s; }
.clock.is-in .clock__u:nth-child(3) .rd__s { transition-delay: .16s; }
.clock.is-in .clock__u:nth-child(4) .rd__s { transition-delay: .24s; }

/* the countdown floating at the foot of the screen, in the colours of the section it is over */
.ndf {
  position: fixed; z-index: 43; left: 50%; bottom: clamp(16px, 3.2vh, 30px);
  display: flex; align-items: center; gap: 18px; padding: 9px 12px 9px 22px; border-radius: 999px;
  color: var(--fg); background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  opacity: 0; pointer-events: none; transform: translate(-50%, 14px);
  transition: opacity .55s ease, transform .55s var(--ease-out), background-color .6s ease, color .6s ease, border-color .6s ease;
}
html.ndf-on .ndf { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
html.ndf-off .ndf, html.ndf-near .ndf, html.menu-open .ndf { opacity: 0; pointer-events: none; transform: translate(-50%, 14px); }
.ndf__label { font-size: .8125rem; line-height: 1.3; color: var(--fg-2); white-space: nowrap; }
.ndf__row { direction: ltr; display: flex; gap: 14px; }
.ndf__u { display: grid; justify-items: center; min-width: 2ch; }
.ndf__n { display: flex; font-size: 1.1875rem; font-weight: 400; line-height: 1; }
.ndf__u--s .ndf__n { color: color-mix(in srgb, #2E8A6C 70%, var(--fg)); }
.ndf__u small { font-size: .625rem; line-height: 1.5; color: var(--fg-2); }
.ndf__x { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fg-2); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.ndf__x:hover, .ndf__x:focus-visible { color: var(--fg); background: color-mix(in srgb, var(--fg) 10%, transparent); }
.ndf__x svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.ndf.is-today .ndf__row { display: none; }
.ndf.is-today .ndf__label { font-size: .9375rem; color: var(--fg); }
@media (max-width: 899px) {
  .clock__row { gap: 8px; }
  .clock__u { gap: 9px; }
  .clock__n { font-size: clamp(1.75rem, 8.4vw, 2.5rem); padding: .3em .3em .24em; border-radius: 13px; min-width: 2.3ch; }
  /* on a phone the label sits over the numbers, and the clock keeps clear of the button back to the top */
  .ndf { bottom: 16px; display: grid; grid-template-columns: auto auto; column-gap: 8px; row-gap: 2px; padding: 7px 8px 8px 16px; border-radius: 20px; }
  .ndf__label { grid-column: 1; font-size: .6875rem; text-align: center; }
  .ndf__row { grid-column: 1; gap: 12px; justify-content: center; }
  .ndf__x { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; }
  .ndf__n { font-size: 1.0625rem; }
}
@media print { .ndf { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ndf { transition: opacity .3s ease; } .rd__s { transition: none; } }

/* ============ «يوم الوفاء», the opening held (owner, 19 Nov 2026): the title alone in the middle, the photographs
   gathering round it one by one; the rest flow beside the text afterwards ============ */
.wafa__open { position: relative; height: 100vh; height: 100svh; }
.wafa__hold { position: relative; top: auto; height: 100%; }
.wafa__ring { position: absolute; inset: 0; z-index: 1; pointer-events: none; will-change: transform; }
.wimg--ring { opacity: .92; }
.wimg--ring img { filter: grayscale(1) contrast(1.04); }
@media (max-width: 899px) { .wafa__open { height: 100svh; } }
.wafa__wave { position: absolute; inset: 0; will-change: transform; }

/* ============ «يوم النصر», the photographs in full (owner, 19 Nov 2026): round the title in waves, then the passage ============ */
.nasr__wave { position: absolute; inset: 0; will-change: transform; }
.nimg { position: absolute; overflow: hidden; opacity: 0; will-change: opacity, transform, filter; }
.nimg img, .nimg video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ calmer (owner, 19 Nov 2026: "crowded and popular; it was far finer before") ============ */
.wimg--ring { opacity: 0; }
.nimg img { filter: grayscale(1) contrast(1.05); }   /* grey, half clear over the green: it takes the green */
.nimg .nimg__c { position: absolute; inset: 0; opacity: 0; filter: none; }
/* the floating clock: smaller, fainter, no colour, no seconds; away while a scene is held */
.ndf { gap: 14px; padding: 7px 10px 7px 18px; background: color-mix(in srgb, var(--bg) 62%, transparent); border-color: color-mix(in srgb, var(--fg) 10%, transparent); }
html.ndf-on .ndf { opacity: .82; }
html.ndf-held .ndf { opacity: 0; pointer-events: none; transform: translate(-50%, 14px); }
.ndf__row { gap: 12px; }
.ndf__n { font-size: 1rem; font-weight: 300; }
.ndf__label { font-size: .75rem; }
/* the big clocks: lighter frames */
.clock__n { border-color: color-mix(in srgb, var(--fg) 11%, transparent); font-weight: 200; }
.clock__u--s .clock__n { border-color: color-mix(in srgb, var(--green) 32%, transparent); }
@media (max-width: 899px) { .ndf__n { font-size: .9375rem; } .ndf { padding: 6px 8px 7px 14px; } }

/* ============ the door into the story, held and opened by the scroll (owner, 20 Nov 2026) ============ */
.storylink--held { height: 100vh; height: 100svh; padding: 0; display: grid; place-items: center; overflow: hidden; }
.storylink--held .door { position: relative; max-width: none; margin: 0; box-sizing: border-box; }
.door::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--glow, 0);
  background: radial-gradient(58% 52% at 50% 50%, rgba(226, 202, 147, .11), rgba(226, 202, 147, .04) 45%, rgba(226, 202, 147, 0) 72%); }
.door > * { position: relative; }
.storylink--held .door:hover, .storylink--held .door:focus-visible { background: transparent; }
.storylink--held .door__h { color: color-mix(in srgb, #E2CA93 calc(var(--gold, 0) * 100%), var(--fg)); }   /* turns gold as the door opens */

/* ============ «تبدأ من هنا» beckons once the door is open (owner, 20 Nov 2026): the arrow steps forward and back, and a
   gold line draws under the words in the same breath, then lets go; on hover it stops, with the arrow reaching forward ============ */
.door__go { position: relative; padding-bottom: 8px; }
.door__go::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 1px; background: currentColor; opacity: .75; transform: scaleX(0); transform-origin: right; }
.door.is-open .door__go::after { animation: go-line 2.8s var(--ease-io) infinite; }
.door.is-open .door__go .arrow { animation: go-arrow 2.8s var(--ease-io) infinite; }
.door.is-open:hover .door__go::after, .door.is-open:focus-visible .door__go::after { animation: none; transform: scaleX(1); }
.door.is-open:hover .door__go .arrow, .door.is-open:focus-visible .door__go .arrow { animation: none; transform: translateX(-14px); }
@keyframes go-line { 0% { transform: scaleX(0); transform-origin: right; } 42% { transform: scaleX(1); transform-origin: right; } 43% { transform: scaleX(1); transform-origin: left; } 85%, 100% { transform: scaleX(0); transform-origin: left; } }
@keyframes go-arrow { 0%, 100% { transform: translateX(0); } 42% { transform: translateX(-12px); } }

/* ============ the hint to scroll, clearer (owner, 20 Nov 2026: it was lost over the photograph): a soft dark halo
   behind it, and under the words a thin ring with a gold chevron that slides down and goes, again and again ============ */
.cue { gap: 12px; text-shadow: 0 1px 10px rgba(11, 12, 14, .9), 0 0 2px rgba(11, 12, 14, .6); }
.cue::before { content: ""; position: absolute; z-index: -1; inset: -36px -64px -28px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 12, 14, .62), rgba(11, 12, 14, .3) 55%, rgba(11, 12, 14, 0)); }
.cue::after { content: none; }
.cue__line { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: rgba(11, 12, 14, .25); border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent); }
.cue__line::after { content: ""; position: static; inset: auto; width: 9px; height: 9px; background: none;
  border-right: 1.75px solid #E2CA93; border-bottom: 1.75px solid #E2CA93; transform: translateY(-3px) rotate(45deg);
  animation: cue-chev 2s var(--ease-io) infinite; }
@keyframes cue-chev {
  0% { opacity: 0; transform: translateY(-9px) rotate(45deg); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translateY(2px) rotate(45deg); }
  100% { opacity: 0; transform: translateY(6px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cue__line::after, .door.is-open .door__go::after, .door.is-open .door__go .arrow { animation: none; }
  .cue__line::after { opacity: 1; transform: translateY(-2px) rotate(45deg); }
}
.cue { font-size: 1.125rem; }
.cue__line { width: 42px; height: 42px; }

/* ============ the hint's arrow, as the owner drew it (20 Nov 2026): two chevrons, one over the other, the lower one
   bright and the upper one grey; the light runs down through them, again and again ============ */
.cue__line { position: relative; width: 30px; height: 30px; border: 0; border-radius: 0; background: none; overflow: visible; display: block; }
.cue__line::before, .cue__line::after {
  content: ""; position: absolute; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; background: none;
  border-right: 3px solid var(--fg); border-bottom: 3px solid var(--fg); border-radius: 0 0 2px 0;
  transform: rotate(45deg); filter: drop-shadow(0 1px 6px rgba(11, 12, 14, .7));
}
.cue__line::before { top: 0; opacity: .45; animation: cue-up 1.8s ease-in-out infinite; }
.cue__line::after { top: 11px; opacity: 1; animation: cue-down 1.8s ease-in-out infinite; }
@keyframes cue-up { 0%, 100% { opacity: .35; transform: translateY(0) rotate(45deg); } 35% { opacity: 1; transform: translateY(2px) rotate(45deg); } 70% { opacity: .35; } }
@keyframes cue-down { 0%, 30%, 100% { opacity: .5; transform: translateY(0) rotate(45deg); } 65% { opacity: 1; transform: translateY(3px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .cue__line::before, .cue__line::after { animation: none; } .cue__line::before { opacity: .45; } }
.cue__line { height: 36px; width: 34px; }
.cue__line::before, .cue__line::after { width: 15px; height: 15px; margin-left: -7.5px; }
.cue__line::after { top: 13px; }

/* the arrow of «تبدأ من هنا» travels all the time, not only once the door is open (owner, 20 Nov 2026): it slides on
   towards the story and fades, comes back in from behind, and goes again, like the chevrons of the scroll hint */
.door .door__go .arrow, .door.is-open .door__go .arrow { animation: go-travel 1.9s var(--ease-io) infinite; }
@keyframes go-travel {
  0% { transform: translateX(10px); opacity: 0; }
  25% { opacity: 1; }
  60% { transform: translateX(-10px); opacity: 1; }
  100% { transform: translateX(-22px); opacity: 0; }
}
.door:hover .door__go .arrow, .door:focus-visible .door__go .arrow { animation: none; opacity: 1; transform: translateX(-14px); }
@media (prefers-reduced-motion: reduce) { .door .door__go .arrow { animation: none; opacity: 1; } }

/* ============ the arrow by «تبدأ من هنا» / «تابع من هنا» (owner, 20 Nov 2026: the long line arrow looked bad): the
   double chevron the owner drew for the scroll hint, turned to point on towards the next page; the front one bright,
   the one behind it grey, the light running forward through them ============ */
.go-chev { position: relative; display: inline-block; width: 30px; height: 20px; flex: none; }
.go-chev::before, .go-chev::after {
  content: ""; position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; border-radius: 0 0 0 2px; transform: rotate(45deg);
}
.go-chev::after { left: 3px; opacity: 1; animation: chev-front 1.8s ease-in-out infinite; }
.go-chev::before { left: 14px; opacity: .4; animation: chev-back 1.8s ease-in-out infinite; }
@keyframes chev-back { 0%, 100% { opacity: .3; transform: translateX(0) rotate(45deg); } 35% { opacity: 1; transform: translateX(-2px) rotate(45deg); } 70% { opacity: .3; } }
@keyframes chev-front { 0%, 30%, 100% { opacity: .5; transform: translateX(0) rotate(45deg); } 65% { opacity: 1; transform: translateX(-3px) rotate(45deg); } }
.door:hover .go-chev::before, .door:hover .go-chev::after, .door:focus-visible .go-chev::before, .door:focus-visible .go-chev::after { animation: none; opacity: 1; }
.door .go-chev { transition: transform .4s var(--ease-out); }
.door:hover .go-chev, .door:focus-visible .go-chev { transform: translateX(-8px); }
@media (prefers-reduced-motion: reduce) { .go-chev::before, .go-chev::after { animation: none; } .go-chev::before { opacity: .4; } }

/* the door at the end of «قصة التحرير» (light page): its inside darkens to the night «عن المناسبة» opens on */
.onward--held .door { background: rgba(11, 12, 14, var(--dark, 0)); }
.onward--held .door:hover, .onward--held .door:focus-visible { background: rgba(11, 12, 14, var(--dark, 0)); }
.onward--held .door__h { color: color-mix(in srgb, #F7F6F2 calc(var(--dark, 0) * 100%), var(--fg)); }
.onward--held .door__go { color: color-mix(in srgb, #E2CA93 calc(var(--dark, 0) * 100%), #165C48); }

/* ============ the footer, direction B (owner, 20 Nov 2026): everything on the centre line, as high as its content ============ */
.foot { display: grid; justify-items: center; gap: 0; text-align: center; padding: clamp(72px, 10vw, 128px) var(--m) 30px; min-height: 0; }
.foot__logo { width: min(58vw, 300px); height: auto; }
.foot__nav { margin-top: clamp(36px, 5vw, 56px); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin: 0; padding: 0; list-style: none; font-size: var(--fs-body); line-height: 1.6; }
.foot__row > li + li::before { content: "·"; margin-inline: .85em; color: rgba(247, 246, 242, .35); }
.foot__row a { color: rgba(247, 246, 242, .88); transition: color .18s ease; }
.foot__row a:hover, .foot__row a:focus-visible, .foot__row a[aria-current="page"] { color: var(--cream); }
.foot__row a[aria-current="page"] { text-decoration: underline; text-decoration-color: rgba(226, 202, 147, .7); text-underline-offset: .45em; text-decoration-thickness: 1px; }
.foot__days { margin-top: 14px; }
.foot__row--days { font-size: var(--fs-small); }
.foot__row--days a, .foot__month { color: rgba(247, 246, 242, .6); }
.foot__base { justify-content: center; width: min(1080px, 100%); margin-top: clamp(44px, 6vw, 72px); padding-top: 22px; }
.foot__legal { justify-content: center; }
@media (max-width: 899px) {
  .foot { padding: 64px var(--m) 26px; }
  .foot__logo { width: min(62vw, 240px); }
  .foot__row { font-size: .9375rem; gap: 8px 0; max-width: 22em; }
  .foot__row > li + li::before { margin-inline: .6em; }
  .foot__row--days { font-size: .8125rem; }
}
/* where one line would wrap (it left stray dots at the line starts), the links stand in centred columns instead */
@media (max-width: 1099px) {
  .foot__row { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; column-gap: clamp(22px, 4vw, 40px); row-gap: 10px; }
  .foot__row > li + li::before { content: none; }
  .foot__month { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .foot__row { grid-template-columns: repeat(2, max-content); column-gap: 30px; }
}
html.ndf-foot .ndf { opacity: 0; pointer-events: none; transform: translate(-50%, 14px); }

/* ============ a section not ready yet (owner, 20 Nov 2026): inside the site, its name and «قيد التحضير» ============ */
.soon__box { min-height: 72vh; min-height: 72svh; display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: clamp(120px, 18vh, 180px) var(--m) clamp(72px, 10vh, 120px); text-align: center; }
.soon__name { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 600; line-height: 1.2; color: #E2CA93; }
.soon__text { font-size: var(--fs-lead); color: var(--fg-2); letter-spacing: .01em; }
.soon__box { min-height: 100vh; min-height: 100svh; padding-block: 96px 64px; }   /* the page opens on the night; the footer follows below, as on the other pages */

/* the bar (owner, 20 Nov 2026): the logo a little larger, and some air between it and the links; nothing else */
.nav__logo { --u: .12px; }
.nav__sections { margin-inline-start: clamp(28px, 3.2vw, 56px); }
@media (max-width: 899px) { .nav__logo { --u: .1px; } }

/* ============ the guide's four days (owner, 20 Nov 2026: one card in each style was confusing): every card in the same
   plain style; only the chosen day takes its own colours, lifted ============ */
.gd-day:not([aria-selected="true"]) { --d-bg: #FCFBF8; --d-fg: #24282A; --d-acc: #44484A; border-color: var(--line); }
.gd-days:has(.gd-day[aria-selected="true"]) .gd-day:not([aria-selected="true"]) { opacity: 1; }
.gd-day:not([aria-selected="true"]) .gd-day__n { opacity: .6; }
.gd-day:not([aria-selected="true"]):hover { border-color: color-mix(in srgb, #24282A 35%, transparent); }
.gd-day { transition: transform .35s var(--ease-out), box-shadow .35s ease, background-color .35s ease, color .35s ease, border-color .35s ease; }
.gd-day--dhikra[aria-selected="true"] { --d-bg: #FFFFFF; border-color: #165C48; }   /* the white day, chosen: marked by its green line */
/* the chosen day, whichever it is, in one style too (owner, 20 Nov 2026): the site's green, cream lettering, gold date */
.gd-day[aria-selected="true"], .gd-day--dhikra[aria-selected="true"] { --d-bg: #165C48; --d-fg: #F7F6F2; --d-acc: #E2CA93; border-color: transparent; }

/* ============ the way into the story at the end of the home page (client's notes 04 and 05, 23 Nov 2026) ============
   no longer held and opened by the scroll (that made the visitor scroll a screen with nothing new). A band the width
   of the screen in the night's black, right under the four day strips, as in the client's picture: «قصة التحرير» on
   the right, «تبدأ من هنا» with the chevrons on the left, in gold. The whole band is the link */
.storylink { padding: 0; }
.storylink .door {
  grid-auto-flow: column; justify-content: center; align-items: center; column-gap: clamp(56px, 12vw, 210px);
  width: 100%; max-width: none; min-height: clamp(320px, 56vh, 560px); margin: 0; padding: clamp(40px, 7vh, 72px) var(--m);
  border: 0; border-radius: 0; background: #0B0C0E;
}
.storylink .door:hover, .storylink .door:focus-visible { background: #0B0C0E; }
.storylink .door__h { --u: clamp(.22px, .023vw, .36px); color: #F7F6F2; }
.storylink .door__go { font-size: clamp(1.125rem, 1.5vw, 1.4375rem); color: #E2CA93; }
/* on hover the gold line draws in under the words, from the right, and stays */
.storylink .door__go::after { transition: transform .5s var(--ease-out); }
.storylink .door:hover .door__go::after, .storylink .door:focus-visible .door__go::after { transform: scaleX(1); }
@media (max-width: 899px) {
  .storylink .door { grid-auto-flow: row; justify-items: center; row-gap: 24px; min-height: 50vh; min-height: 50svh; padding: 72px var(--m); }
  .storylink .door__h { --u: .05vw; }
}

/* ============ the footer in the colour of what comes right before it (client's note 06 / 15, 23 Nov 2026) ============
   it has no colour of its own any more (it was the deep green with a glow, a band that cut in on every page): each
   page gives it the theme of its last section, night after a dark ending (home, story, soon), light after a light one
   (about, guide, identity, with the green logo). Its ground and ink are fixed per theme, not taken from the flowing
   page colour, so it never shows a half-way tone while the page above is still turning (the story's door) */
.foot { --fi: #F7F6F2; background: #0B0C0E; color: var(--fi); }
.foot[data-theme="light"] { --fi: #24282A; background: #F7F6F2; }
.foot__row > li + li::before { color: color-mix(in srgb, var(--fi) 35%, transparent); }
.foot__row a, .foot__legal a { color: color-mix(in srgb, var(--fi) 88%, transparent); }
.foot__row a:hover, .foot__row a:focus-visible, .foot__row a[aria-current="page"],
.foot__legal a:hover, .foot__legal a:focus-visible { color: var(--fi); }
.foot__row a[aria-current="page"] { text-decoration-color: color-mix(in srgb, var(--hl, var(--green)) 80%, transparent); }
.foot__row--days a, .foot__month { color: color-mix(in srgb, var(--fi) 72%, transparent); }
.foot__base { border-top-color: color-mix(in srgb, var(--fi) 16%, transparent); }
/* the official channels (owner, 25 Nov 2026): one quiet row of the platforms' own marks, in the footer's ink, under
   the days; each a 44px target round an 20px mark */
.foot__social { margin-top: clamp(18px, 2.4vw, 26px); }
/* in line with the links above it: the first mark's edge on their edge (the 44px target is wider than the mark) */
.foot__social ul { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px clamp(6px, 1.4vw, 14px); margin: 0 -12px; padding: 0; list-style: none; }
.foot__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: color-mix(in srgb, var(--fi) 72%, transparent); transition: color .18s ease, background-color .18s ease; }
.foot__social a:hover, .foot__social a:focus-visible { color: var(--fi); background: color-mix(in srgb, var(--fi) 8%, transparent); }
.foot__social svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 899px) { .foot__social ul { max-width: 200px; } }   /* a phone: two rows of four */

/* ============ «قصة التحرير», client's notes of 23 Nov 2026 ============ */
/* 06: «أربعون عاماً» in words, on one line over «من الظلام»: the words are wider than the numerals were, so a little smaller */
.st-forty .st-forty__n { font-size: clamp(3.25rem, 8.4vw, 8.25rem); }
@media (max-width: 899px) { .st-forty .st-forty__n { font-size: 12.5vw; } }
/* 07: the pictures round the first two beats stay under the words */
.st-forty__title, .st-forty__in, .st-fear__l { position: relative; z-index: 12; }
/* 08: «شباباً ونساءً أطفالاً وشيوخاً ضد الظلم!» 22% smaller (client asked for 20 to 25%) */
.st-people__w { font-size: clamp(2.15rem, 5.45vw, 5.45rem); }
@media (max-width: 899px) { .st-people__w { font-size: 8.6vw; } }
/* 09: «عن المناسبة» follows the story on the same page; its name is a quiet chapter title at the top of its night,
   in the gold of the night chapters, before «ثورةٌ ثمّ ثباتٌ فنصر» */
.chapter { padding-top: clamp(170px, 30vh, 320px);   /* it arrives once the ground has turned to night */
   text-align: center; font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.3; color: #E2CA93; }

/* ============ «يوم الذكرى» in the very way of «يوم النصر» (client's notes 10 and 11, 23 Nov 2026) ============
   the title held in the middle with its date, the memories passing through focus round it one at a time (main.js,
   heldDay), then the two passages clearing line by line; its own light ground and green title. No walk, no values */
.dhikra__stage { perspective: none; background: var(--bg); }
.dhikra__reel { position: absolute; inset: 0; }
.dhikra__copy { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 8px; padding-inline: var(--m); text-align: center; }
.dhikra__copy .display { --u: clamp(.3px, .045vw, .66px); color: var(--green); }
.dhikra__lines { display: grid; gap: .55em; margin-top: 14px; }
.dhikra__lines p { max-width: 40em; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.8; }
@media (max-width: 899px) {
  .dhikra__copy .display { --u: .07vw; }
  .dhikra__lines p { font-size: .9375rem; line-height: 1.75; }
}

/* ============ «مراكز الاحتفال», client's note 13 (23 Nov 2026): the map in the middle, the centres on either side ============
   the east of the country on the right of the map, its west on the left, both lists in one column each and centred on
   the map's height. Under 1100px the map goes on top, full width, with the two lists side by side under it; on a phone
   one list after the other (the rule at 899px above) */
.gd-cmap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3.2vw, 56px); }
.gd-cmap .gd-regions { grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (max-width: 1099px) {
  .gd-cmap { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .gd-cmap .gd-map__svg { grid-column: 1 / -1; order: -1; justify-self: center; width: min(100%, 580px); margin-bottom: 8px; }
}
@media (max-width: 899px) {
  .gd-cmap { grid-template-columns: minmax(0, 1fr); }
}

/* ============ the flag's proportions (client's note 14, 23 Nov 2026) ============
   its width was set and its height kept from the file (857px), so it stretched whenever the width changed. The height
   now follows the width: the horizontal flag stays 2:1 and the vertical one 1:2, as in the flag guide */
.idn-flag__img { height: auto; }   /* the picture's own ratio, on its content: the white frame (padding) stays round it */
@media (max-width: 899px) { .idn-flag__img { max-width: 460px; justify-self: center; } }   /* on a phone it no longer runs the full height of several screens */

/* ============ the footer, logo on the right (owner, 23 Nov 2026) ============
   the logo stands at the start of the line, level with the two lines of links beside it (centred on its height); the
   legal links start under it. Where the first line no longer fits beside the logo, the links stand in columns (as
   before, now from the right); on a phone the logo goes above them, still on the right */
.foot { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr auto;
  grid-template-areas: "logo ." "logo nav" "logo days" "logo social" "logo ." "base base";   /* the channels under the days (25 Nov 2026) */
  justify-items: start; column-gap: clamp(40px, 4.4vw, 64px); text-align: start;
  padding-inline: max(var(--m), calc((100% - 1300px) / 2)); }
.foot__logo { grid-area: logo; align-self: center; width: clamp(150px, 13.5vw, 210px); }   /* larger on a desktop (owner, 23 Nov 2026) */
.foot__nav { grid-area: nav; margin-top: 0; }
.foot__days { grid-area: days; }
.foot__social { grid-area: social; }
.foot__base { grid-area: base; width: 100%; justify-content: flex-start; }
.foot__row, .foot__legal { justify-content: flex-start; }
@media (max-width: 1399px) {
  .foot__row { display: grid; grid-template-columns: repeat(4, max-content); justify-content: start; column-gap: clamp(22px, 3vw, 40px); row-gap: 10px; }
  .foot__row > li + li::before { content: none; }
  .foot__month { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .foot { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "logo" "nav" "days" "social" "base"; }
  .foot__logo { align-self: start; width: min(40vw, 160px); }
  .foot__nav { margin-top: 36px; }
  .foot__row { max-width: none; }
}
@media (max-width: 599px) {
  .foot__row { grid-template-columns: repeat(2, max-content); column-gap: 30px; }
}

/* ============ «قصة التحرير», the big lines 30% smaller (owner, 23 Nov 2026) ============
   «محكومون بالخوف…», the plain lines (الموجة العاتية، فاستشرس الطاغية… ونزح الملايين، فثار الأحرار، وانطلقت…) and
   «شباباً ونساءً…»: each size times 0.7, on every screen. Not changed: «أربعون عاماً» (its own note, 06), the drawn words
   (الحرية، معركة ردع العدوان، استعدناها) and the smaller lines between them */
.st-line { font-size: clamp(1.575rem, 3.92vw, 3.85rem); }
.st-fear__l { font-size: clamp(1.54rem, 4.704vw, 4.76rem); }
.st-people__w { font-size: clamp(1.505rem, 3.815vw, 3.815rem); }
@media (max-width: 899px) {
  .st-fear__l { font-size: 7.28vw; }
  .st-people__w { font-size: 6.02vw; }
}
/* «أربعون عاماً من الظلام» 30% smaller too (owner, 23 Nov 2026): both its lines, so «من الظلام» keeps its place under it */
.st-forty .st-forty__n { font-size: clamp(2.275rem, 5.88vw, 5.775rem); }
.st-forty .st-forty__t { font-size: clamp(1.225rem, 3.08vw, 2.975rem); }
@media (max-width: 899px) {
  .st-forty .st-forty__n { font-size: 8.75vw; }
  .st-forty .st-forty__t { font-size: 5.95vw; }
}

/* ============ «دليل الاحتفال»: a cancelled event (23 Nov 2026) ============
   still shown, so nobody goes to it: struck through, with «ملغاة» beside the title; no «أضف إلى التقويم» */
.gd-ev.is-cancelled .gd-ev__t, .gd-ev.is-cancelled .gd-ev__where { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--fg-2); }
.gd-ev.is-cancelled .gd-ev__time { opacity: .6; }
.gd-ev__off { display: inline-block; margin-inline-start: 10px; padding: 0 10px; border: 1px solid #B13B3B; border-radius: 999px; color: #B13B3B;
  font-size: .8125rem; font-weight: 500; line-height: 1.7; vertical-align: 3px; text-decoration: none; }

/* ============ «سياسة الخصوصية» و«شروط الاستخدام» و«بيان الإتاحة» (owner, 25 Nov 2026) ============
   one quiet reading column on the identity page's frame: numbered sections on hairlines, a blank still to be filled
   by the owner marked in gold, and the two other pages at the foot */
.lg .idn-head { padding-bottom: clamp(24px, 4vh, 40px); }
/* smaller type than the identity page's (owner, 25 Nov 2026: «الخط بشكل عام اصغر») */
.lg .idn-title { font-size: clamp(1.875rem, 3.2vw, 2.625rem); }
.lg .idn-lead { max-width: 40em; font-size: 1rem; line-height: 1.9; }
.lg-body { padding-bottom: clamp(64px, 12vh, 120px); }
.lg-sec { max-width: 48em; padding-block: clamp(22px, 3.6vh, 34px); border-top: 1px solid var(--line); }
.lg-sec h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); font-weight: 600; line-height: 1.45; }
.lg-sec p, .lg-sec li { font-size: .9375rem; line-height: 1.95; color: color-mix(in srgb, var(--fg) 86%, transparent); }
.lg-sec h2 + p, .lg-sec h2 + ul, .lg-sec p + p, .lg-sec p + ul { margin-top: 10px; }
.lg-sec ul { display: grid; gap: 8px; margin: 12px 0 0; padding-inline-start: 1.2em; list-style: disc; }
.lg-sec li::marker { color: var(--green); }
.lg-fill { color: #8A6A33; border-bottom: 1px dashed #B8904F; white-space: nowrap; }
.lg-more { display: flex; flex-wrap: wrap; gap: 10px 28px; max-width: 48em; padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; }
/* a WCAG criterion's number, quiet, before its name */
.lg-c { display: inline-block; min-width: 3.6em; margin-inline-end: 6px; padding: 1px 6px; border-radius: 4px; background: var(--soft); font-size: .75rem; font-weight: 500; color: var(--fg-2); text-align: center; letter-spacing: .02em; }
.lg-list { list-style: none !important; padding-inline-start: 0 !important; gap: 10px !important; }
.lg-sec li b { font-weight: 600; color: var(--fg); }
.lg-more a { color: var(--fg-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--fg) 25%, transparent); text-underline-offset: .4em; }
.lg-more a:hover, .lg-more a:focus-visible { color: var(--fg); }
@media (max-width: 899px) { .lg-sec p, .lg-sec li { font-size: .9375rem; line-height: 1.9; } }

/* «انتقل إلى المحتوى» (accessibility pass, 25 Nov 2026): out of sight until the keyboard reaches it, the first stop of
   every page; the main content it leads to takes the focus without a frame of its own */
.skip { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200; padding: 10px 18px; border-radius: 10px; background: #0B0C0E; color: #F7F6F2;
  font-size: .9375rem; font-weight: 500; transform: translateY(-180%); transition: transform .2s ease; }
.skip:focus { transform: none; outline: 2px solid #E2CA93; outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- «دليل الإعلاميين» (press.html, 26 Nov 2026): the policy pages' reading column with the ministry's text, its
   steps, and the contacts and emergency numbers as things to tap ---------- */
.pr .idn-title { font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.pr-title__s { display: block; margin-top: 12px; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); font-weight: 400; line-height: 1.5; color: var(--fg-2); }
.pr-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pr-head__go { margin-top: 26px; }
.pr-sec { scroll-margin-top: 80px; }
.pr-sec h3 { margin-top: 26px; font-size: 1rem; font-weight: 600; line-height: 1.5; scroll-margin-top: 90px; }
.pr-sec h3 + p, .pr-sec h3 + ol, .pr-sec h3 + ul, .pr-sec p + .pr-note { margin-top: 10px; }
.pr-sec p > a, .pr-sec li > a:not(.pr-tel) { color: var(--green); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent); text-underline-offset: .35em; }
.pr-sec p > a:hover, .pr-sec li > a:not(.pr-tel):hover { text-decoration-color: currentColor; }
/* the application window, and where today stands against it (main.js) */
.pr-window { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pr-window__state { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; background: var(--soft); font-size: .8125rem; font-weight: 600; line-height: 1.7; color: var(--fg-2); }
.pr-window__state[hidden] { display: none; }
.pr-window__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pr-window__state[data-state="open"] { background: color-mix(in srgb, #165C48 11%, transparent); color: #165C48; }
.pr-window__state[data-state="soon"] { background: color-mix(in srgb, #B8904F 15%, transparent); color: #6F5120; }
/* the three steps of the coverage permit */
.pr-steps { counter-reset: pr-step; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pr-steps li { counter-increment: pr-step; position: relative; min-height: 30px; padding-inline-start: 44px; }
.pr-steps li::before { content: counter(pr-step); position: absolute; inset-inline-start: 0; top: .25em; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, #165C48 10%, transparent); font-size: .875rem; font-weight: 600; line-height: 1; color: #165C48; }
/* Damascus: the drone permit on paper only */
.pr-note { padding: 14px 18px; border-inline-start: 3px solid #B8904F; border-radius: 10px; background: color-mix(in srgb, #B8904F 9%, transparent); }
/* the ministry's numbers */
.lg-sec .pr-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding: 0; list-style: none; }
.pr-contact { display: grid; align-content: start; gap: 4px; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
.lg-sec .pr-contact__who { font-weight: 600; color: var(--fg); }
.pr-contact__why { font-size: .875rem; line-height: 1.7; color: var(--fg-2); }
.pr-contact__go { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 6px; }
.pr-tel { font-size: 1.125rem; font-weight: 500; color: var(--fg); text-decoration: none; }
.pr-tel:hover, .pr-tel:focus-visible { color: #165C48; }
.pr-contact__wa { font-size: .875rem; color: #165C48; text-decoration: underline; text-decoration-color: color-mix(in srgb, #165C48 40%, transparent); text-underline-offset: .35em; }
/* the emergency numbers: one tap to call */
.lg-sec .pr-sos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.pr-sos a { display: grid; align-content: start; justify-items: center; gap: 8px; height: 100%; padding: 18px 8px 16px; border: 1px solid var(--line); border-radius: 14px; text-align: center; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.pr-sos a:hover, .pr-sos a:focus-visible { border-color: #B13B3B; background: color-mix(in srgb, #B13B3B 5%, transparent); }
.pr-sos__n { font-size: 1.75rem; font-weight: 600; line-height: 1; color: #B13B3B; }
.pr-sos__t { font-size: .8125rem; line-height: 1.5; color: var(--fg-2); }
@media (max-width: 899px) {
  .lg-sec .pr-contacts { grid-template-columns: 1fr; }
  .lg-sec .pr-sos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 359px) { .lg-sec .pr-sos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-sec h3[tabindex]:focus { outline: none; }   /* the header's «أرقام الطوارئ» moves the focus here, to read on from */

/* ---------- «الاحتفالات حول العالم» (worldwide.html, 26 Nov 2026; redrawn the same day: «صورة الحفل مهمة»): the posters
   lead. They drift around the title at their own depths; the days are chapters, the four days of the occasion in their
   own colours and drawn names; every card is its poster, and opens it large beside everything about it ---------- */
.ww { --ease-w: cubic-bezier(.16, 1, .3, 1); }
/* the opening */
/* a shorter opening (owner: «كتير كبير وضخم… اقل ارتفاعا»): about two thirds of the screen, never a full one */
.ww-hero { position: relative; display: grid; place-items: center; min-height: clamp(480px, 66vh, 660px); min-height: clamp(480px, 66svh, 660px); padding: clamp(96px, 13vh, 130px) var(--m) clamp(40px, 6vh, 72px); overflow: hidden; }
.ww-field { position: absolute; inset: 0; pointer-events: none; }
.ww-fly { position: absolute; margin: 0; opacity: 0; will-change: transform; }
.ww-fly.is-in { opacity: 1; }
.ww-fly img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 34px 60px -34px rgba(36, 40, 42, .5); }
.ww-fly--0 img { opacity: .5; filter: blur(2.5px); }
.ww-fly--1 img { opacity: .9; filter: blur(.4px); }
.ww-fly--2 { z-index: 2; }
.ww-hero__in { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(10px, 1.6vh, 16px); max-width: 40rem; text-align: center; }
.ww-hero__k { font-size: var(--fs-small); font-weight: 500; color: #165C48; }
.ww-hero__h { font-size: clamp(2rem, 3.9vw, 3.5rem); font-weight: 600; line-height: 1.15; text-wrap: balance; }
.ww-hero__lead { max-width: 30em; font-size: clamp(1rem, 1.2vw, 1.1875rem); line-height: 1.8; color: var(--fg-2); text-wrap: pretty; }
.ww-stats { display: flex; justify-content: center; gap: clamp(28px, 4vw, 60px); margin: clamp(4px, 1.4vh, 14px) 0 0; }
.ww-stats[hidden] { display: none; }
.ww-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; }
.ww-stats dd { margin: 0; font-size: clamp(2.125rem, 3.2vw, 3.125rem); font-weight: 600; line-height: .85; letter-spacing: -.02em; color: #165C48; font-variant-numeric: tabular-nums; }
.ww-stats dt { font-size: var(--fs-small); color: var(--fg-2); }
/* finding one */
.ww-body { width: min(1280px, 100%); margin-inline: auto; padding: 0 var(--m) clamp(80px, 14vh, 140px); }
.ww-find { display: grid; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); }
.ww-search label { position: relative; display: block; max-width: 30em; }
.ww-search svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--fg-2); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.ww-search input { width: 100%; min-height: 52px; padding-block: 0; padding-inline: 50px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 1rem; color: var(--fg); }
.ww-search input::placeholder { color: color-mix(in srgb, var(--fg) 55%, transparent); }
.ww-search input:focus-visible { outline: 2px solid #165C48; outline-offset: 2px; border-color: #165C48; }
.ww-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.ww-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: inherit; font-size: .9375rem; color: var(--fg); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.ww-chip:hover { border-color: currentColor; }
.ww-chip__n { font-size: .8125rem; color: var(--fg-2); }
.ww-chip[aria-pressed="true"] { border-color: #165C48; background: #165C48; color: #F7F6F2; }
.ww-chip[aria-pressed="true"] .ww-chip__n { color: rgba(247, 246, 242, .78); }
.ww-count { font-size: var(--fs-small); font-weight: 500; color: var(--fg-2); }
.ww-note { margin-top: 24px; font-size: .9375rem; color: var(--fg-2); }
.ww-note[hidden], .ww-empty[hidden], .ww-past[hidden] { display: none; }
.ww-note a, .ww-about a { color: #165C48; text-decoration: underline; text-decoration-color: color-mix(in srgb, #165C48 40%, transparent); text-underline-offset: .35em; }
.ww-empty { margin-top: 40px; padding: 28px; border-radius: 16px; background: var(--soft); font-size: .9375rem; color: var(--fg-2); }
/* the days, as chapters */
.ww-day { margin-top: clamp(64px, 10vh, 110px); }
.ww-day__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 32px; margin-bottom: clamp(24px, 3vw, 36px); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ww-day__h { display: grid; grid-template-columns: auto auto; column-gap: 16px; align-items: end; }
.ww-day__n { grid-row: 1 / 3; font-size: clamp(4.25rem, 7.4vw, 7.5rem); font-weight: 600; line-height: .8; letter-spacing: -.02em; color: #165C48; font-variant-numeric: tabular-nums; }
.ww-day__m { font-size: var(--fs-lead); font-weight: 600; line-height: 1.3; }
.ww-day__w { align-self: start; font-size: var(--fs-small); font-weight: 500; color: var(--fg-2); }
.ww-day__name { display: block; }
.ww-day__name .lt { width: clamp(150px, 15vw, 220px); margin: 0; }
.ww-day__c { margin-inline-start: auto; padding-bottom: .4em; font-size: var(--fs-small); color: var(--fg-2); }
.ww-day--wafa { --d-bg: #0B0C0E; --d-fg: #F7F6F2; --d-acc: #E05A5A; }
.ww-day--dhikra { --d-bg: #FFFFFF; --d-fg: #165C48; --d-acc: #165C48; }
.ww-day--nasr { --d-bg: #165C48; --d-fg: #F7F6F2; --d-acc: #E2CA93; }
.ww-day--watani { --d-bg: #EDE8DE; --d-fg: #24282A; --d-acc: #B13B3B; }
:is(.ww-day--wafa, .ww-day--dhikra, .ww-day--nasr, .ww-day--watani) .ww-day__head { padding: clamp(22px, 3vw, 38px); border: 0; border-radius: 20px; background: var(--d-bg); color: var(--d-fg); }
.ww-day--dhikra .ww-day__head { box-shadow: inset 0 0 0 1px var(--line); }
:is(.ww-day--wafa, .ww-day--dhikra, .ww-day--nasr, .ww-day--watani) .ww-day__n { color: var(--d-acc); }
:is(.ww-day--wafa, .ww-day--dhikra, .ww-day--nasr, .ww-day--watani) :is(.ww-day__w, .ww-day__c) { color: color-mix(in srgb, var(--d-fg) 74%, transparent); }
/* the cards: each one its poster */
.ww-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(36px, 3.4vw, 52px) clamp(20px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.ww-card { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.ww-card:focus-visible { outline: none; }
.ww-card:focus-visible .ww-pic { outline: 2px solid #165C48; outline-offset: 4px; }
.ww-pic { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 10px; overflow: hidden; border-radius: 16px; background: var(--ground-2); isolation: isolate; }
.ww-pic__back { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(24px) saturate(1.15); opacity: .8; }
.ww-pic__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease-w); }
.ww-card:hover .ww-pic__img, .ww-card:focus-visible .ww-pic__img { transform: scale(1.035); }
.ww-pic--none { display: grid; align-content: end; gap: 6px; padding: clamp(22px, 2.4vw, 30px); background: #165C48; color: #F7F6F2; }
.ww-pic__star { position: absolute; top: -14%; inset-inline-end: -26%; width: 92%; aspect-ratio: 288 / 337.47; background: url("../assets/identity/pattern/outline-beige.svg") center / contain no-repeat; opacity: .14; transition: transform 1.2s var(--ease-w); }
.ww-card:hover .ww-pic__star { transform: rotate(15deg); }
.ww-pic__city { position: relative; font-size: clamp(1.875rem, 2.8vw, 2.625rem); font-weight: 600; line-height: 1.05; overflow-wrap: anywhere; }
.ww-pic__country { position: relative; font-size: var(--fs-small); font-weight: 500; color: rgba(247, 246, 242, .78); }
.ww-item:nth-child(3n + 2) .ww-pic--none { background: #EDE8DE; color: #24282A; }
.ww-item:nth-child(3n + 2) .ww-pic--none .ww-pic__star { background-image: url("../assets/identity/pattern/outline-green.svg"); opacity: .12; }
.ww-item:nth-child(3n + 2) .ww-pic--none .ww-pic__country { color: #165C48; }
.ww-tag { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 2px 11px; border-radius: 999px; background: #F7F6F2; font-size: .75rem; font-weight: 600; line-height: 1.9; color: #6F5120; box-shadow: 0 6px 18px -8px rgba(36, 40, 42, .45); }
.ww-card__where { font-size: var(--fs-small); font-weight: 500; color: #165C48; }
.ww-card__h { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.125rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.ww-card__time { font-size: var(--fs-small); color: var(--fg-2); }
/* one move: the chapters and cards come up as they reach the screen */
.ww .is-up { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-w), transform 1.2s var(--ease-w); }
.ww .is-up.is-in { opacity: 1; transform: none; }
.ww-grid .ww-item.is-up:nth-child(3n + 2) { transition-delay: .08s; }
.ww-grid .ww-item.is-up:nth-child(3n) { transition-delay: .16s; }
/* the ones already past, folded away */
.ww-past { margin-top: clamp(64px, 10vh, 110px); }
.ww-past summary { display: inline-flex; gap: 6px; padding: 12px 0; font-size: var(--fs-lead); font-weight: 600; cursor: pointer; }
.ww-past .ww-day { margin-top: 40px; }
.ww-past .ww-pic { filter: grayscale(.6); }
.ww-about { display: grid; gap: 10px; max-width: 48em; margin-top: clamp(72px, 12vh, 120px); padding-top: 26px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.9; color: var(--fg-2); }
/* one celebration, large */
html.ww-locked { overflow: hidden; }
.ww-dlg { width: min(1120px, 94vw); height: min(88vh, 860px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 22px; background: var(--ground); color: var(--fg); overflow: hidden; }
.ww-dlg[open] { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.ww-dlg::backdrop { background: rgba(20, 24, 26, .62); backdrop-filter: blur(6px); }
.ww-dlg__pic { position: relative; background: #1B1E20; }
.ww-dlg__pic .ww-pic { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; }
.ww-dlg__pic .ww-pic__back { opacity: .55; }
.ww-dlg__pic .ww-pic__img { padding: clamp(14px, 2vw, 28px); }
.ww-dlg__pic .ww-pic--none .ww-pic__city { font-size: clamp(2.5rem, 4.4vw, 4rem); }
.ww-dlg__info { display: grid; align-content: start; gap: 14px; padding: clamp(30px, 4vw, 56px); overflow-y: auto; overscroll-behavior: contain; }
.ww-dlg__date { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); color: var(--fg-2); }
.ww-dlg__date b { font-weight: 600; color: #165C48; }
.ww-dlg__where { font-size: var(--fs-small); font-weight: 500; color: #165C48; }
.ww-dlg__h { font-size: var(--fs-statement); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ww-dlg__wait { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, #B8904F 13%, transparent); font-size: .9375rem; line-height: 1.8; color: #6F5120; }
.ww-dlg__text { font-size: var(--fs-body); line-height: 1.95; color: color-mix(in srgb, var(--fg) 86%, transparent); overflow-wrap: anywhere; }
.ww-dlg__facts { display: grid; gap: 14px; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.ww-dlg__facts dt { font-size: .8125rem; color: var(--fg-2); }
.ww-dlg__facts dd { margin: 2px 0 0; font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.ww-dlg__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ww-dlg__go a::after { content: "↗"; font-size: .875em; }
.ww-dlg__x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(247, 246, 242, .94); cursor: pointer; box-shadow: 0 8px 24px -10px rgba(20, 24, 26, .5); }
.ww-dlg__x svg { width: 20px; height: 20px; fill: none; stroke: #24282A; stroke-width: 1.8; stroke-linecap: round; }
.ww-dlg__x:focus-visible { outline: 2px solid #165C48; outline-offset: 2px; }
@media (max-width: 899px) {
  .ww-hero { min-height: 72svh; padding-top: 104px; }
  .ww-fly img { border-radius: 4px; }
  .ww-countries { flex-wrap: nowrap; margin-inline: calc(var(--m) * -1); padding: 2px var(--m) 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .ww-countries::-webkit-scrollbar { display: none; }
  .ww-chip { flex: none; }
  .ww-day__head { gap: 12px 20px; }
  .ww-day__c { width: 100%; margin-inline-start: 0; }
  .ww-dlg { width: 100vw; height: 94svh; margin: auto 0 0; border-radius: 22px 22px 0 0; overflow-y: auto; overscroll-behavior: contain; }
  .ww-dlg[open] { display: block; }
  .ww-dlg__pic { height: 62svh; }
  .ww-dlg__info { overflow: visible; padding: 26px var(--m) 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ww .is-up { opacity: 1; transform: none; transition: none; }
  .ww-pic__img, .ww-pic__star { transition: none; }
}
.ww-fly[hidden] { display: none; }

/* ---------- «المكتبة الإعلامية» (library.html, 26 Nov 2026): the official accounts' photos and videos. The opening is
   the one of «الاحتفالات حول العالم» (ww-hero, ww-fly); the newest video opens the library wide; the rest fall into
   columns at their own shapes (library.js sets each card's row span); a click opens the post on its platform ---------- */
.lb { --ease-w: cubic-bezier(.16, 1, .3, 1); }
.lb-lead { margin: clamp(8px, 2vh, 20px) 0 clamp(44px, 7vh, 72px); }
.lb-lead[hidden], .lb-srcs[hidden], .lb-more[hidden] { display: none; }
.lb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 4px; column-gap: clamp(16px, 1.8vw, 26px); align-items: start; margin: 30px 0 0; padding: 0; list-style: none; }
.lb-card { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.lb-card:focus-visible { outline: none; }
.lb-card:focus-visible .lb-pic { outline: 2px solid #165C48; outline-offset: 3px; }
.lb-pic { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--ground-2); }
.lb-pic img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease-w); }
.lb-card:hover .lb-pic img, .lb-card:focus-visible .lb-pic img { transform: scale(1.035); }
.lb-badge { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(247, 246, 242, .94); box-shadow: 0 4px 14px -6px rgba(20, 24, 26, .5); }
.lb-badge svg { width: 15px; height: 15px; fill: #24282A; }
.lb-play { position: absolute; top: 50%; left: 50%; z-index: 1; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(20, 24, 26, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); backdrop-filter: blur(6px); transition: transform .5s var(--ease-w), background-color .3s ease; }
.lb-play::after { content: ""; position: absolute; top: 50%; left: 54%; width: 17px; height: 19px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translate(-50%, -50%); }
.lb-card:hover .lb-play { background: rgba(22, 92, 72, .85); transform: scale(1.08); }
.lb-n { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 1; padding: 1px 10px; border-radius: 999px; background: rgba(20, 24, 26, .62); font-size: .8125rem; font-weight: 600; line-height: 1.8; color: #fff; }
.lb-card__meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 8px; font-size: .8125rem; color: var(--fg-2); }
.lb-card__meta span + span::before { content: "·"; margin-inline-end: 8px; }
.lb-card__h { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
/* the newest video, wide, its words over it */
.lb-card--wide { position: relative; display: block; overflow: hidden; border-radius: 22px; color: #F7F6F2; }
.lb-card--wide .lb-pic { aspect-ratio: 16 / 9; border-radius: 0; background: #1B1E20; }
.lb-card--wide .lb-pic img { width: 100%; height: 100%; object-fit: cover; }
.lb-card--wide .lb-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 14, 15, .86), rgba(12, 14, 15, .1) 62%, rgba(12, 14, 15, 0)); }
.lb-card--wide .lb-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.lb-card--wide .lb-play::after { width: 24px; height: 27px; }
.lb-card--wide .lb-badge { top: 18px; inset-inline-end: 18px; width: 38px; height: 38px; }
.lb-card--wide .lb-badge svg { width: 19px; height: 19px; }
.lb-card__txt { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; justify-items: start; gap: 10px; max-width: 54rem; padding: clamp(22px, 3.4vw, 48px); }
.lb-card--wide .lb-card__meta { margin: 0; color: rgba(247, 246, 242, .82); }
.lb-card--wide .lb-card__h { -webkit-line-clamp: 3; font-size: var(--fs-statement); line-height: 1.35; }
.lb-card__go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #F7F6F2; font-size: .9375rem; font-weight: 600; color: #24282A; }
.lb-card__go::after { content: "↗"; margin-inline-start: 6px; font-size: .875em; }
.lb-more { display: flex; margin: 30px auto 0; }
@media (max-width: 1199px) { .lb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-card--wide .lb-pic { aspect-ratio: 4 / 5; }
  .lb-card--wide .lb-card__h { font-size: 1.25rem; }
  .lb-play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .lb-play::after { width: 13px; height: 15px; }
}
@media (max-width: 359px) { .lb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lb-pic img, .lb-play { transition: none; } }
.ww-card, .lb-card { will-change: transform; }
/* the chapters that gather the days before and after the four (owner, 26 Nov 2026): words instead of one big numeral,
   and each poster dated in its corner */
.ww-day__h--words { display: grid; grid-template-columns: none; gap: 6px; }
.ww-day__t { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 600; line-height: 1.2; color: #165C48; }
.ww-day__span { font-size: var(--fs-small); font-weight: 500; color: var(--fg-2); }
.ww-when { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 1; display: grid; justify-items: center; min-width: 64px; padding: 8px 10px 7px; border-radius: 12px; background: rgba(247, 246, 242, .95); color: #24282A; line-height: 1.15; text-align: center; box-shadow: 0 8px 22px -10px rgba(20, 24, 26, .5); }
.ww-when b { font-size: 1.5rem; font-weight: 600; line-height: 1; color: #165C48; }
.ww-when span { font-size: .75rem; font-weight: 500; }
.ww-when small { font-size: .6875rem; color: var(--fg-2); }
.ww-past .ww-day--many { margin-top: 24px; }
.ww-past .ww-day--many .ww-day__head { display: none; }   /* «احتفالات مضت» already names them */
.ww-pic--none .ww-when { top: 14px; bottom: auto; }   /* no poster: the date sits above, clear of the city name */

/* the copyright line under the legal links (owner, 27 Nov 2026) */
.foot__base { flex-direction: column; align-items: center; gap: 12px; }
.foot__copy { margin: 0; font-size: .8125rem; color: color-mix(in srgb, var(--fi, #F7F6F2) 58%, transparent); text-align: center; }

/* ============ the English pages (en/, 27 Nov 2026) ============ */
/* a drawn title stays the Arabic drawing (owner, 27 Nov 2026), with its English in one quiet line under it, as wide as
   the drawing (--w × --u) and in proportion to it */
.lt-tr { display: block; width: calc(var(--w) * var(--u)); max-width: 100%; margin: .55em auto 0; text-align: center;
  font-size: clamp(.8125rem, calc(var(--w) * var(--u) * .042), 2rem); font-weight: 400; line-height: 1.3; letter-spacing: .01em;
  text-wrap: balance; opacity: .82; }
.hero__slogan:has(.lt-tr) { flex-wrap: wrap; }
.hero__slogan .lt-tr { flex-basis: 100%; width: auto; font-size: clamp(.9375rem, calc(var(--w) * var(--u) * .05), 1.75rem); }
.hero__copy:has(.lt-tr) { grid-template-columns: minmax(0, 1fr); }   /* the English line must not widen the column (it pushed the title off a phone) */
.hero__slogan:has(.lt-tr) { max-width: 100%; }
@media (max-width: 899px) { .hero__slogan .lt-tr { flex-basis: auto; width: 88vw; margin-inline: calc((100% - 88vw) / 2); } }
.gd-day__name .lt-tr { width: auto; font-size: .8125rem; margin-top: .4em; }
.strip__name .lt-tr { margin-inline: 0; width: auto; text-align: start; font-size: clamp(.875rem, 1.1vw, 1.0625rem); }
/* forward is to the right: the chevrons by «Starts Here» turn round */
[dir="ltr"] .go-chev { transform: scaleX(-1); }
[dir="ltr"] .door:hover .go-chev, [dir="ltr"] .door:focus-visible .go-chev { transform: scaleX(-1) translateX(-8px); }


/* the English pages, the drawn titles (owner, 27 Nov 2026, style «C» of deploy/en-title-options.png): the drawing at
   seven tenths of its Arabic size; under it a thin rule in the title's own colour, and the English in the regular
   weight at a clear size. One treatment for every drawn title on every page */
html[lang="en"] svg.lt:not([data-lt^="شعار"]) { width: calc(var(--w) * var(--u) * .7); }
html[lang="en"] .lt-tr { display: table; width: auto; max-width: 100%; margin: .45em auto 0; padding-top: .45em;
  border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); opacity: 1; font-weight: 400; line-height: 1.15;
  letter-spacing: 0; text-align: center; font-size: clamp(1.125rem, calc(var(--w) * var(--u) * .06), 3.25rem); }
html[lang="en"] .st-battle__name .lt-tr { font-size: clamp(1.2rem, calc(var(--w) * var(--u) * .045), 2.25rem); }
html[lang="en"] .strip__name .lt-tr { margin-inline: 0; font-size: clamp(1.125rem, 1.9vw, 2rem); }
html[lang="en"] .gd-day__name svg.lt { width: min(52%, 140px); }
html[lang="en"] .gd-day__name .lt-tr { font-size: clamp(.9375rem, 1.2vw, 1.125rem); }
html[lang="en"] .ww-day__name .lt-tr { margin-inline: 0; font-size: clamp(.9375rem, 1.2vw, 1.125rem); }
/* the opening's slogan: one quiet line under the drawn one */
html[lang="en"] .hero__slogan .lt-tr { display: block; border: 0; padding-top: 0; margin-top: .5em; font-size: clamp(.9375rem, calc(var(--w) * var(--u) * .04), 1.375rem); }
/* «ثورةٌ ثمّ ثباتٌ فنصر»: each drawn word with its English */
html[lang="en"] .tri__line svg { width: 70%; margin-inline: auto; }
/* on the English pages, a title or a line written in Arabic (from the register, the accounts or the panel) keeps its
   own direction but stands on the page's left edge, in line with the English round it */
html[lang="en"] .is-ar { text-align: left; }

/* the footer's last line (owner, 27 Nov 2026: «سياسة الخصوصية شروط الاستخدام بخط اصغر بالفوتر - اقصى اليسار / جميع الحقوق
   اقصى اليمين»): one row, the two policy links small at the far left and the rights line at the far right, on both the
   Arabic and the English pages; on a phone the two stand one under the other, centred */
.foot__base { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px 32px; }
[dir="rtl"] .foot__base { flex-direction: row-reverse; }
.foot__base .foot__legal { font-size: .75rem; gap: 6px 22px; }
.foot__base .foot__copy { font-size: .75rem; text-align: end; }
/* the back-to-top button sits at the end corner: the line keeps clear of it */
.foot__base { padding-inline-end: 72px; }
@media (max-width: 599px) {
  .foot__base, [dir="rtl"] .foot__base { flex-direction: column; align-items: center; }
  .foot__base .foot__copy { text-align: center; }
  .foot__base { padding-inline-end: 0; padding-bottom: 64px; }
}
