/* =========================================================
   Syrian National Day · Hama 2026 — events landing page
   Tokens follow the official visual identity guide.
   ========================================================= */

@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/ReadexPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* primary */
  --beige: #F7F6F2;
  --red: #C74848;
  --green: #165C48;
  --ink: #24282A;
  /* green scale */
  --g-950: #114133; --g-900: #134A3A; --g-800: #175442; --g-700: #185D49; --g-500: #2F6D5B; --g-400: #467D6D; --g-300: #5D8E80;
  /* red scale */
  --r-900: #9A3333; --r-800: #B13B3B; --r-700: #C64342; --r-500: #DC4949; --r-300: #E36D6D; --r-200: #E77F80;
  /* ink scale */
  --k-950: #191B1D; --k-900: #1D2022; --k-850: #202426; --k-700: #3A3E3F; --k-600: #505455; --k-500: #66696A;
  /* sand scale */
  --s-500: #AFADAA; --s-400: #C6C5C2; --s-300: #E3DFDB; --s-100: #F9F7F3; --s-50: #FAF9F6; --s-0: #FCFCFB;
  /* gradients (from the guide) */
  --grad-beige: linear-gradient(120deg, #E3DFDB, #F7F6F2);
  --grad-dark: linear-gradient(120deg, #191B1D, #3A3E3F);
  --grad-red: linear-gradient(120deg, #9A3333, #DC4949);
  --grad-green: linear-gradient(120deg, #134A3A, #185D49);

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 0 rgba(36, 40, 42, .04), 0 12px 32px -18px rgba(36, 40, 42, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 120px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Readex Pro", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--beige);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--r-500); outline-offset: 3px; border-radius: 6px; }
.noscript { position: fixed; bottom: 0; inset-inline: 0; background: var(--red); color: #fff; text-align: center; padding: 12px; z-index: 100; }

/* ---------- shared bits ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--k-500);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.kicker--light { color: rgba(247, 246, 242, .7); }
.kicker--light::before { background: var(--r-500); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(247, 246, 242, .78); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--r-500); box-shadow: 0 0 0 4px rgba(220, 73, 73, .2); }

.btn {
  --bg: var(--beige); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding-inline: 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(-4px); }
.btn--red { --bg: var(--red); --fg: #fff; box-shadow: 0 14px 30px -14px rgba(199, 72, 72, .9); }
.btn--red:hover { --bg: var(--r-500); }
.btn--ghost { --bg: rgba(247, 246, 242, .06); --fg: var(--beige); border-color: rgba(247, 246, 242, .28); backdrop-filter: blur(8px); }
.btn--ghost:hover { --bg: rgba(247, 246, 242, .14); }
.btn--ghost-dark { --bg: transparent; --fg: var(--green); border-color: var(--s-400); }
.btn--sm { height: 42px; padding-inline: 18px; font-size: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--r-500); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--r-500); opacity: 0; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* progress bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--r-500); transform-origin: right; transform: scaleX(0); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.site-header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; position: relative; }
.brand__logo { height: 40px; width: auto; transition: opacity .3s; }
.brand__logo--dark { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.brand__meta { display: flex; flex-direction: column; line-height: 1.3; padding-inline-start: 14px; border-inline-start: 1px solid rgba(247, 246, 242, .25); color: var(--beige); transition: color .3s, border-color .3s; }
.brand__meta b { font-weight: 600; font-size: 14px; }
.brand__meta small { font-size: 12px; opacity: .7; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { color: rgba(247, 246, 242, .82); text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .25s, color .25s; }
.nav a:hover { background: rgba(247, 246, 242, .1); color: #fff; }
.site-header.is-solid { background: rgba(247, 246, 242, .86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(36, 40, 42, .08); }
.site-header.is-solid .brand__logo--light { opacity: 0; }
.site-header.is-solid .brand__logo--dark { opacity: 1; }
.site-header.is-solid .brand__meta { color: var(--ink); border-color: var(--s-300); }
.site-header.is-solid .nav a { color: var(--k-700); }
.site-header.is-solid .nav a:hover { background: var(--s-300); color: var(--ink); }
.site-header.is-hidden { transform: translateY(-100%); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--grad-green); color: var(--beige);
  overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
}
.hero::after { /* soft vignette to seat the text */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 70% at 85% 50%, rgba(17, 65, 51, .55), transparent 70%),
    linear-gradient(to top, rgba(17, 65, 51, .6), transparent 30%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* photo slideshow: slow crossfade + gentle drift (Ken Burns) */
.hero__photos { position: absolute; inset: 0; overflow: hidden; background: var(--grad-green); }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12) translate(0, 0);
  transition: opacity 2.4s var(--ease);
  filter: saturate(.85) contrast(1.04);
}
.hero__photo.is-active { opacity: 1; animation: kenburns 11s linear forwards; }
.hero__photo.is-leaving { opacity: 0; animation: kenburns 11s linear forwards; }
@keyframes kenburns {
  from { transform: scale(1.12) translate(0, 0); }
  to { transform: scale(1.02) translate(var(--kx, 0), var(--ky, 0)); }
}
/* identity-green grade over the photos: deep on the text side (right in RTL), lighter behind the flag */
.hero__photos::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(17, 65, 51, .92) 0%, rgba(17, 65, 51, .78) 34%, rgba(20, 79, 62, .42) 68%, rgba(20, 79, 62, .5) 100%),
    linear-gradient(to bottom, rgba(17, 65, 51, .55), transparent 28%, transparent 70%, rgba(17, 65, 51, .7));
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero__in { position: relative; z-index: 2; padding-block: calc(var(--header-h) + 40px) 90px; }
.hero__in, .hero__content { pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__content { width: min(100%, 520px); }
.hero__title { margin: 18px 0 8px; }
.hero__title img { width: min(100%, 440px); height: auto; margin-inline-start: -14px; }
.hero__lead { font-size: 18px; font-weight: 300; color: rgba(247, 246, 242, .86); max-width: 470px; }
.hero__lead b { font-weight: 600; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.countdown { margin-top: 30px; }
.countdown__label { font-size: 13px; color: rgba(247, 246, 242, .6); margin-bottom: 10px; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; }
.countdown__grid div {
  border: 1px solid rgba(247, 246, 242, .16); border-radius: var(--radius-sm);
  background: rgba(17, 65, 51, .35); backdrop-filter: blur(6px);
  padding: 12px 6px 8px; text-align: center;
}
.countdown__grid b { display: block; font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__grid span { font-size: 12px; color: rgba(247, 246, 242, .62); }
.countdown.is-done .countdown__grid { display: none; }
.countdown.is-done .countdown__label { font-size: 22px; color: #fff; font-weight: 500; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(247, 246, 242, .45); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--beige); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }


/* =========================================================
   TICKER
   ========================================================= */
.ticker { background: var(--k-950); color: var(--beige); overflow: hidden; padding-block: 18px; border-block: 1px solid rgba(247, 246, 242, .06); }
.ticker__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font-size: 22px; font-weight: 300; white-space: nowrap; }
.ticker span:nth-of-type(4n+1) { font-weight: 600; }
.ticker i { width: 10px; height: 10px; background: var(--r-500); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(50%); } }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto { position: relative; overflow: hidden; background: var(--grad-beige); padding-block: 140px; }
.manifesto__pattern { position: absolute; width: 720px; inset-inline-end: -220px; top: -120px; opacity: .08; pointer-events: none; }
.manifesto__in { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.manifesto__art img { width: 100%; max-width: 520px; height: auto; opacity: .92; }
.manifesto__text h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.25; font-weight: 600; color: var(--green); margin-bottom: 26px; }
.manifesto__text h2 span { display: block; font-size: .5em; font-weight: 500; color: var(--k-600); margin-top: 10px; }
.manifesto__text > p:not(.kicker) { font-size: 18px; color: var(--k-700); margin-bottom: 14px; max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.stats div { background: var(--s-0); border: 1px solid var(--s-300); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column-reverse; }
.stats dd { font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.stats dt { font-size: 13px; color: var(--k-500); margin-top: 6px; }

/* =========================================================
   JOURNEY (pinned horizontal scroll)
   ========================================================= */
.journey { position: relative; background: var(--k-950); color: var(--beige); }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.journey__head { margin-bottom: 34px; }
.journey__head .kicker { color: rgba(247, 246, 242, .6); }
.journey__head h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; line-height: 1.2; }
.journey__hint { color: rgba(247, 246, 242, .55); font-size: 15px; margin-top: 8px; }
.journey__viewport { overflow: visible; }
.journey__track { display: flex; gap: 22px; padding-inline: max(24px, calc((100vw - var(--wrap)) / 2)); width: max-content; will-change: transform; }
.station {
  --bg: var(--grad-dark);
  position: relative; width: clamp(280px, 30vw, 380px); height: clamp(360px, 52vh, 470px);
  border-radius: 24px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--beige);
  display: flex; flex-direction: column; padding: 26px;
  text-decoration: none;
  border: 1px solid rgba(247, 246, 242, .08);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.station:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.station[data-theme="light"] { --bg: var(--grad-beige); color: var(--ink); }
.station[data-theme="dark"] { --bg: linear-gradient(150deg, #2b2f31, #191B1D); }
.station[data-theme="red"] { --bg: var(--grad-red); }
.station[data-theme="green"] { --bg: var(--grad-green); }
.station__pattern { position: absolute; width: 120%; inset-inline-start: -45%; bottom: -35%; opacity: .08; z-index: -1; transition: transform 1.2s var(--ease); }
.station[data-theme="light"] .station__pattern { filter: invert(1); opacity: .06; }
.station:hover .station__pattern { transform: rotate(22deg) scale(1.05); }
.station__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .75; }
.station__num { font-variant-numeric: tabular-nums; letter-spacing: .08em; direction: ltr; }
.station__day { margin-top: auto; font-size: clamp(76px, 9vw, 120px); font-weight: 600; line-height: .9; letter-spacing: -.02em; direction: ltr; text-align: right; }
.station__day--range { font-size: clamp(56px, 6vw, 84px); white-space: nowrap; }
.station__day small { font-size: .28em; font-weight: 400; letter-spacing: 0; margin-inline-start: 6px; opacity: .7; }
.station__logo { height: 64px; width: auto; margin-block: 18px 10px; align-self: flex-start; }
.station__name { font-size: 26px; font-weight: 600; line-height: 1.3; margin-block: 18px 10px; }
.station__foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-top: 1px solid currentColor; border-color: rgba(127, 127, 127, .3); padding-top: 14px; }
.station__count b { font-weight: 600; font-size: 18px; }
.station__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 246, 242, .12); transition: background-color .3s, transform .4s var(--ease); }
.station[data-theme="light"] .station__go { background: var(--ink); color: var(--beige); }
.station:hover .station__go { transform: translateX(-4px); background: var(--red); color: #fff; }
.journey__rail { width: min(100% - 48px, var(--wrap)); margin: 34px auto 0; height: 2px; background: rgba(247, 246, 242, .12); border-radius: 2px; overflow: hidden; }
.journey__rail span { display: block; height: 100%; width: 100%; background: var(--r-500); transform-origin: right; transform: scaleX(0); }

/* =========================================================
   SPOTLIGHT — 8 Dec hour by hour
   ========================================================= */
.spotlight { position: relative; overflow: hidden; background: var(--grad-dark); color: var(--beige); padding-block: 140px; }
.spotlight__pattern { position: absolute; width: 900px; inset-inline-start: -300px; top: 10%; opacity: .05; pointer-events: none; }
.spotlight__in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; }
.spotlight__sticky { position: sticky; top: calc(var(--header-h) + 60px); }
.spotlight__logo { width: min(100%, 360px); height: auto; margin-bottom: 22px; }
.spotlight__lead { color: rgba(247, 246, 242, .7); font-size: 17px; max-width: 420px; }
.clock { display: flex; align-items: baseline; gap: 14px; margin-top: 46px; direction: ltr; justify-content: flex-end; }
.clock__time { font-size: clamp(88px, 11vw, 168px); font-weight: 600; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, rgba(247, 246, 242, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock__period { font-size: 22px; color: var(--r-300); direction: rtl; }
.clock__title { font-size: 18px; font-weight: 500; margin-top: 10px; min-height: 2em; color: rgba(247, 246, 242, .85); transition: opacity .3s; }
.timeline { position: relative; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 7px; width: 2px; background: rgba(247, 246, 242, .1); }
.timeline::after { content: ""; position: absolute; top: 10px; inset-inline-start: 7px; width: 2px; height: var(--tl, 0%); background: var(--r-500); transition: height .5s var(--ease); }
.tl-item { position: relative; padding: 26px 26px 26px; margin-bottom: 18px; border-radius: var(--radius); background: rgba(247, 246, 242, .03); border: 1px solid rgba(247, 246, 242, .07); transition: background-color .5s, border-color .5s, transform .6s var(--ease); }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -33px; top: 34px; width: 14px; height: 14px; border-radius: 50%; background: var(--k-700); border: 3px solid var(--k-950); transition: background-color .4s, box-shadow .4s; z-index: 1; }
.tl-item.is-active { background: rgba(247, 246, 242, .07); border-color: rgba(247, 246, 242, .18); }
.tl-item.is-active::before { background: var(--r-500); box-shadow: 0 0 0 6px rgba(220, 73, 73, .2); }
.tl-item__time { font-size: 14px; color: var(--r-300); font-weight: 500; }
.tl-item h3 { font-size: 21px; font-weight: 600; line-height: 1.45; margin-top: 6px; }
.tl-item p { font-size: 14px; color: rgba(247, 246, 242, .6); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tl-item p span { display: inline-flex; align-items: center; gap: 6px; }
.tl-item--featured { background: var(--grad-green); border-color: transparent; }
.tl-item--featured.is-active { background: var(--grad-green); border-color: rgba(247, 246, 242, .3); }
.tl-item__badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; margin-inline-start: 8px; vertical-align: 2px; }

/* =========================================================
   PROGRAM
   ========================================================= */
.program { background: var(--beige); padding-top: 130px; padding-bottom: 60px; }
.program__head { margin-bottom: 34px; }
.program__head h2 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 600; color: var(--green); line-height: 1.15; }
.program__sub { color: var(--k-600); max-width: 640px; margin-top: 12px; }

.toolbar { position: sticky; top: var(--header-h); z-index: 30; padding-block: 6px 0; transition: background-color .4s, box-shadow .4s, top .5s var(--ease); }
.toolbar.is-stuck { background: rgba(247, 246, 242, .92); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 rgba(36, 40, 42, .08), 0 18px 30px -28px rgba(36, 40, 42, .5); }
.site-header.is-hidden ~ main .toolbar { top: 0; }
.toolbar__in { display: flex; flex-direction: column; }

/* day ruler — a timeline that fills while you read each day */
.ruler { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow-x: auto; scrollbar-width: none; }
.ruler::-webkit-scrollbar { display: none; }
.ruler__seg {
  --p: 0;
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px 0 14px; padding-inline-end: 14px;
  text-decoration: none; color: var(--k-500);
  border-top: 1px solid var(--s-400);
  transition: color .3s, padding .4s var(--ease);
}
.ruler__seg[hidden] { display: none; }
.ruler__seg::before { /* tick at the start of each day */
  content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 1px; height: 10px; background: var(--k-500);
}
.ruler__seg::after { /* reading progress for that day */
  content: ""; position: absolute; top: -2px; inset-inline-start: 0; height: 3px;
  width: calc(var(--p) * 100%); background: var(--g-500); border-radius: 0 0 2px 2px;
}
.ruler__seg.is-active::after { background: var(--r-500); }
.ruler__num {
  font-size: 34px; font-weight: 300; line-height: 1; letter-spacing: -.03em; direction: ltr;
  font-variant-numeric: tabular-nums; color: var(--s-500); transition: color .3s, font-size .4s var(--ease); white-space: nowrap;
}
.ruler__name { display: flex; flex-direction: column; font-size: 14px; font-weight: 500; line-height: 1.35; white-space: nowrap; }
.ruler__name small { font-size: 11.5px; font-weight: 400; color: var(--s-500); }
.ruler__seg:hover { color: var(--ink); }
.ruler__seg:hover .ruler__num { color: var(--k-600); }
.ruler__seg.is-done .ruler__num { color: var(--g-400); }
.ruler__seg.is-active { color: var(--ink); }
.ruler__seg.is-active .ruler__num { color: var(--red); font-weight: 500; }
.toolbar.is-stuck .ruler__seg { padding-block: 10px 8px; }
.toolbar.is-stuck .ruler__num { font-size: 24px; }

/* categories — typographic tabs with an underline in the category colour */
.toolbar__row { display: flex; align-items: center; gap: 32px; border-top: 1px solid var(--s-300); }
.chips { flex: 1; display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); padding-inline-end: 40px; }
.chips::-webkit-scrollbar { display: none; }
.chips__sep { flex: none; width: 1px; height: 18px; background: var(--s-400); }
.chip {
  --c: var(--ink);
  flex: none; position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 0 13px; background: none; border: 0; cursor: pointer;
  font-size: 14.5px; color: var(--k-500); transition: color .25s;
}
.chip::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--c);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.chip svg { width: 16px; height: 16px; color: var(--c); opacity: .55; transition: opacity .25s; }
.chip b { align-self: flex-start; margin-top: -4px; font-size: 10.5px; font-weight: 500; color: var(--s-500); font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--ink); }
.chip:hover::after { transform: scaleX(.3); }
.chip[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.chip[aria-pressed="true"]::after { transform: scaleX(1); }
.chip[aria-pressed="true"] svg { opacity: 1; }
.chip[data-cat="all"] { --c: var(--ink); }
.chip--today { --c: var(--red); color: var(--red); }
.chip--today:hover, .chip--today[aria-pressed="true"] { color: var(--r-800); }
.chip--today .live-dot { width: 7px; height: 7px; }

.search {
  flex: 0 0 230px; display: flex; align-items: center; gap: 10px; height: 38px;
  border-bottom: 1px solid var(--s-400); color: var(--k-500); transition: border-color .3s, color .3s;
}
.search:focus-within { border-color: var(--green); color: var(--green); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14.5px; }
.search input::placeholder { color: var(--s-500); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.results { font-size: 14px; color: var(--k-500); margin-block: 12px 0; min-height: 1.75em; }

/* ---------- chapters ---------- */
.chapter { position: relative; margin-top: 70px; }
[data-chapters] > .chapter:not([hidden]) ~ .chapter { margin-top: 70px; }
[data-chapters] > .chapter:first-child { margin-top: 24px; }
.chapter[hidden] { display: none; }
.chapter__band {
  --bg: var(--grad-beige); --fg: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  border-radius: 28px; padding: 64px 56px 150px;
  width: min(100% - 32px, calc(var(--wrap) + 120px)); margin-inline: auto;
}
.chapter[data-theme="dark"] .chapter__band { --bg: linear-gradient(130deg, #191B1D, #3A3E3F); --fg: var(--beige); }
.chapter[data-theme="red"] .chapter__band { --bg: var(--grad-red); --fg: #fff; }
.chapter[data-theme="green"] .chapter__band { --bg: var(--grad-green); --fg: var(--beige); }
.chapter[data-theme="light"] .chapter__band { border: 1px solid var(--s-300); }
.chapter__numeral {
  position: absolute; z-index: -1; inset-inline-end: -1%; top: 50%;
  font-size: clamp(220px, 34vw, 480px); font-weight: 700; line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .14; direction: ltr; white-space: nowrap;
  transform: translateY(-50%);
}
.chapter__pattern { position: absolute; z-index: -1; width: 520px; inset-inline-end: 22%; bottom: -260px; opacity: .08; }
.chapter[data-theme="light"] .chapter__pattern { filter: invert(1); opacity: .07; }
.chapter__head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 48px; align-items: end; max-width: 980px; }
.chapter__date { font-size: 14px; opacity: .78; grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.chapter__date b { font-weight: 600; }
.chapter__date i { width: 26px; height: 1px; background: currentColor; opacity: .5; }
.chapter__logo { height: clamp(76px, 9vw, 116px); width: auto; }
.chapter__title { font-size: clamp(36px, 5vw, 64px); font-weight: 600; line-height: 1.1; }
.chapter__desc { font-size: 18px; font-weight: 300; line-height: 1.8; max-width: 560px; opacity: .9; padding-bottom: 6px; }
.chapter__count { position: absolute; inset-inline-end: 56px; top: 56px; text-align: center; font-size: 13px; opacity: .8; }
.chapter__count b { display: block; font-size: 44px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

.grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: -100px;
}
.grid--dense { grid-auto-flow: row dense; }
.grid--sub { margin-top: 0; }
.subhead { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--green); margin-top: 22px; }
.subhead:first-child { margin-top: 0; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--s-300); }
.subhead span { font-weight: 400; color: var(--k-500); font-size: 13px; }
.grid .subhead:first-child { background: var(--s-0); padding: 10px 18px; border-radius: 999px; width: max-content; box-shadow: var(--shadow); }
.grid .subhead:first-child::after { display: none; }

/* ---------- event card ---------- */
.card {
  --c: var(--green);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--s-0); border: 1px solid var(--s-300); border-radius: var(--radius);
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 230px;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .4s;
}
.card::before { /* identity pattern that appears on hover */
  content: ""; position: absolute; z-index: -1; width: 180px; height: 210px; inset-inline-start: -60px; bottom: -80px;
  background: url("../img/pattern/outline-green.svg") center/contain no-repeat; opacity: 0;
  transition: opacity .5s, transform 1s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(36, 40, 42, .04), 0 26px 50px -26px rgba(36, 40, 42, .45); border-color: var(--s-400); }
.card:hover::before { opacity: .12; transform: rotate(22deg); }
.card[hidden] { display: none; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); padding: 4px 11px 4px 12px; border-radius: 999px; }
.tag svg { width: 15px; height: 15px; }
.card__num { font-size: 12px; color: var(--s-500); font-variant-numeric: tabular-nums; direction: ltr; letter-spacing: .06em; }
.card__title { font-size: 18.5px; font-weight: 600; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.card__org { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--k-500); }
.card__org .i { margin-top: 3px; color: var(--s-500); }
.card__note { font-size: 14px; line-height: 1.7; color: var(--k-600); }
.card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 6px; }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--k-700); background: var(--s-100); border: 1px solid var(--s-300); padding: 4px 10px; border-radius: 999px; line-height: 1.5; }
.meta .i { width: 15px; height: 15px; color: var(--g-500); }
.meta--time { color: var(--green); font-weight: 500; }
.target { display: flex; align-items: baseline; gap: 8px; color: var(--green); }
.target b { font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.target span { font-size: 13px; color: var(--k-500); }
.ics { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--s-300); background: transparent; color: var(--k-600); display: grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.ics:hover { background: var(--green); border-color: var(--green); color: #fff; }
.ics .i { width: 17px; height: 17px; }
.card.is-today { border-color: color-mix(in srgb, var(--red) 45%, var(--s-300)); }
.today-flag { font-size: 11.5px; font-weight: 500; color: #fff; background: var(--red); padding: 2px 9px; border-radius: 999px; }

/* featured card */
.card--featured { grid-column: span 2; background: var(--grad-green); border-color: transparent; color: var(--beige); min-height: 260px; padding: 28px; }
.card--featured::before { background-image: url("../img/pattern/outline-beige.svg"); width: 340px; height: 400px; inset-inline-start: -90px; bottom: -150px; opacity: .1; }
.card--featured:hover::before { opacity: .16; }
.card--featured .card__title { color: #fff; font-size: 26px; }
.card--featured .card__org, .card--featured .card__num { color: rgba(247, 246, 242, .7); }
.card--featured .card__org .i { color: rgba(247, 246, 242, .5); }
.card--featured .tag { color: #fff; background: var(--red); }
.card--featured .meta { background: rgba(247, 246, 242, .1); border-color: rgba(247, 246, 242, .2); color: #fff; }
.card--featured .meta .i { color: var(--r-200); }
.card--featured .ics { border-color: rgba(247, 246, 242, .3); color: #fff; }
.card--featured .ics:hover { background: var(--beige); color: var(--green); }

/* category colours (identity shades only) */
[data-cat="sport"]  { --c: #2F6D5B; }
[data-cat="mosque"] { --c: #134A3A; }
[data-cat="talk"]   { --c: #3A3E3F; }
[data-cat="arts"]   { --c: #B13B3B; }
[data-cat="care"]   { --c: #C74848; }
[data-cat="march"]  { --c: #185D49; }
[data-cat="edu"]    { --c: #505455; }

.empty { text-align: center; padding: 80px 0 40px; color: var(--k-500); display: grid; justify-items: center; gap: 16px; }
.empty img { opacity: .4; }
.empty[hidden] { display: none; }

/* =========================================================
   FLAG NOTE
   ========================================================= */

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; background: var(--k-950); color: var(--beige); padding-top: 100px; }
.footer__pattern { position: absolute; width: 760px; inset-inline-start: -240px; bottom: -380px; opacity: .05; pointer-events: none; }
.footer__in { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 60px; align-items: center; padding-bottom: 70px; }
.footer__logo { width: 100%; max-width: 330px; height: auto; }
.footer__slogan img { width: 100%; max-width: 300px; height: auto; opacity: .9; }
.totop { display: inline-flex; gap: 8px; align-items: center; color: var(--beige); text-decoration: none; font-size: 15px; }
.totop:hover { color: var(--r-300); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto__in, .spotlight__in { gap: 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__meta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .header-cta { margin-inline-start: auto; }
  .brand__logo { height: 40px; }

  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(to top, rgba(17, 65, 51, .96) 30%, rgba(17, 65, 51, .5) 55%, transparent 75%); }
  .hero__in { padding-top: 46vh; padding-bottom: 80px; }
  .hero__title img { width: min(80%, 340px); }
  .scroll-cue { display: none; }

  .manifesto { padding-block: 90px; }
  .manifesto__in { grid-template-columns: 1fr; }
  .manifesto__art { order: 2; }
  .manifesto__art img { max-width: 340px; margin-inline: auto; }

  /* journey becomes a native swipe row */
  .journey { height: auto !important; }
  .journey__sticky { position: relative; height: auto; padding-block: 90px 70px; }
  .journey__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .journey__viewport::-webkit-scrollbar { display: none; }
  .journey__track { transform: none !important; padding-inline: 24px; }
  .station { scroll-snap-align: center; width: 78vw; height: 400px; }
  .journey__rail { display: none; }
  .journey__hint { display: none; }

  .spotlight { padding-block: 90px; }
  .spotlight__in { grid-template-columns: 1fr; }
  .spotlight__sticky { position: relative; top: 0; }
  .clock, .clock__title { display: none; }

  .chapter__band { padding: 44px 26px 130px; border-radius: 22px; }
  .chapter__head { grid-template-columns: 1fr; }
  .chapter__count { position: static; text-align: start; display: flex; gap: 8px; align-items: baseline; }
  .chapter__count b { font-size: 26px; display: inline; }
  .ruler { grid-auto-columns: max-content; gap: 0; }
  .ruler__seg { padding-inline-end: 22px; }
  .ruler__num { font-size: 24px; }
  .ruler__name small { display: none; }
  .toolbar__row { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .search { flex: none; margin-top: 4px; }
  .chips { gap: 22px; }

}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .grid { grid-template-columns: 1fr; margin-top: -90px; }
  .card--featured { grid-column: auto; }
  .card--featured .card__title { font-size: 22px; }
  .countdown__grid b { font-size: 24px; }
  .stats dd { font-size: 32px; }
  .brand__meta { display: none; }
  .footer__in { grid-template-columns: 1fr; gap: 40px; }
  .chapter__band { width: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
