:root {
  color-scheme: light;
  --green: #1F4741;
  --green-deep: #173a35;
  --gold: #B07F2E;
  --gold-text: #77551C;
  --paper: #F7F2E4;
  --paper-light: #fcf9f0;
  --ink: #242a25;
  --muted: #65675e;
  --line: #d9ceb2;
  --serif: "Lora", Georgia, serif;
  --sans: "Cairo", "Inter", sans-serif;
  --display: "Bricolage Grotesque", "Cairo", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --content: 1160px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--paper-light);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--paper-light);
  color: var(--green-deep);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(247, 242, 228, .97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2.5rem, var(--content));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--green);
  font: 700 .88rem/1.15 var(--display);
  letter-spacing: .06em;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; padding-top: .25rem; font: 500 .58rem var(--mono); letter-spacing: .12em; }
.nav-toggle { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2.1vw, 2rem);
}

.site-nav a {
  color: var(--green);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}

.site-nav a:hover { color: var(--gold-text); }
.site-nav .nav-contact { border-bottom: 1px solid var(--gold); padding: .35rem 0; }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4.5rem;
  color: var(--paper);
  background: var(--green);
  text-align: center;
}

.hero::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(218, 180, 111, .55);
  content: "";
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: url("assets/motif-islamique-tile.png") center / 340px;
  opacity: .055;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
}

.invocation {
  margin: 0 0 .4rem;
  color: #e4c27e;
  font: 500 1.15rem/1.7 "Noto Kufi Arabic", "Amiri", serif;
}

.hero-logo {
  width: 74px;
  height: 74px;
  margin: .2rem auto .5rem;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
}

.organization {
  margin: 0;
  color: #e4c27e;
  font: 500 1rem/1.6 "Noto Kufi Arabic", "Amiri", serif;
}

.edition {
  margin: .25rem 0 1.2rem;
  color: #e7deca;
  font-size: .82rem;
  letter-spacing: .035em;
}

.edition span { color: #d5a74e; padding: 0 .3em; }
.eyebrow { margin: 0; color: var(--gold-text); font: 500 .72rem/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.hero-label { color: #e0b866; }

.hero h1 {
  max-width: 850px;
  margin: .75rem auto 1rem;
  color: #fffdf6;
  font: 600 clamp(2.45rem, 6.1vw, 5rem)/1.08 var(--serif);
  letter-spacing: -.045em;
}

.hero h1 em { color: #e4c27e; font-weight: 500; }
.hero-summary { max-width: 660px; margin: 0 auto; color: #e4dfd1; font: italic 500 clamp(1rem, 1.8vw, 1.22rem)/1.65 var(--serif); }

.event-dates {
  display: inline-grid;
  grid-template-columns: repeat(3, auto) auto;
  align-items: center;
  gap: 0;
  margin: 2rem auto 1.4rem;
  text-align: left;
}

.event-dates > div {
  min-width: 79px;
  padding: .1rem 1rem;
  border-right: 1px solid rgba(228, 194, 126, .42);
  text-align: center;
}

.event-dates > div:first-child { border-left: 1px solid rgba(228, 194, 126, .42); }
.event-dates > div > span { display: block; color: #d8cdb5; font: 400 .62rem var(--mono); letter-spacing: .12em; }
.event-dates strong { display: block; color: #e4c27e; font: 600 2.6rem/1.12 var(--display); }
.event-dates > p { margin: 0; padding-left: 1.3rem; color: var(--paper); font: 500 1.02rem/1.5 var(--serif); }
.event-dates > p b { color: #e4c27e; font-weight: 500; }
.event-dates > p span { color: #d8cdb5; font: 400 .7rem var(--mono); letter-spacing: .04em; }

.countdown-wrap { min-height: 94px; }
.countdown-title { margin: 0 0 .45rem; color: #dfd6c3; font: 400 .66rem var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.countdown { display: flex; justify-content: center; gap: .55rem; }
.count-unit { display: grid; min-width: 76px; padding: .45rem .6rem .4rem; border: 1px solid rgba(228, 194, 126, .5); background: rgba(255,255,255,.035); }
.count-value { color: #fff; font: 500 1.55rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.count-label { color: #d8cdb5; font: 400 .6rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.countdown-fallback { margin: .5rem 0 0; color: #ded6c4; font-size: .78rem; }
.js .countdown-fallback { display: none; }

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: .8rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.15rem; text-decoration: none; font-size: .87rem; font-weight: 700; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button-gold { color: #182b25; background: #d4ae68; border: 1px solid #d4ae68; }
.button-gold:hover { background: #e4c27e; border-color: #e4c27e; }
.button-outline { color: #f7f2e4; border: 1px solid rgba(228, 194, 126, .7); }
.button-outline:hover { color: var(--green); background: #f7f2e4; }
.scroll-cue { position: absolute; z-index: 1; bottom: 1.35rem; left: 50%; display: flex; align-items: center; gap: .55rem; transform: translateX(-50%); color: #ded6c4; text-decoration: none; font: 400 .65rem var(--mono); letter-spacing: .08em; }
.scroll-cue span { color: #e4c27e; font-size: 1.05rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 1.5rem; }
.section-inner { width: min(100%, var(--content)); margin: auto; }
.intro { padding-bottom: 4.5rem; }
.intro > .section-inner:first-child { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.section-heading h2 { margin: .55rem 0 0; color: var(--green); font: 500 clamp(2rem, 4vw, 3.45rem)/1.12 var(--serif); letter-spacing: -.035em; }
.intro-copy { max-width: 700px; }
.intro-copy p { margin: 0 0 1.1rem; color: var(--muted); }
.intro-copy .lead { color: var(--ink); font: 500 clamp(1.05rem, 1.6vw, 1.25rem)/1.7 var(--serif); }

.city-image { width: min(100%, 1440px); margin: 4rem auto; }
.city-image img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 52%; }
.city-image figcaption, .landmark figcaption { margin-top: .55rem; color: var(--muted); font: 400 .72rem/1.5 var(--mono); text-align: right; }

.central-question { position: relative; max-width: 940px; margin: 0 auto 3.2rem; padding: 2rem clamp(1.5rem, 5vw, 4.2rem); color: #fffaf0; background: var(--green); border-top: 1px solid var(--gold); }
.central-question::after { position: absolute; top: 1.25rem; right: 1.4rem; width: 54px; height: 54px; background: url("assets/ornement-islamique-small.png") center/contain no-repeat; opacity: .11; content: ""; }
.central-question .eyebrow { color: #e5c27b; }
.central-question p { max-width: 780px; margin: .8rem 0 0; font: italic 500 clamp(1.2rem, 2.3vw, 1.8rem)/1.5 var(--serif); }

.themes-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.theme-card { padding: 1.55rem 1.3rem 1.7rem; border-right: 1px solid var(--line); }
.theme-card:first-child { padding-left: 0; }
.theme-card:last-child { padding-right: 0; border-right: 0; }
.theme-number { color: var(--gold-text); font: 500 .72rem var(--mono); }
.theme-card h3 { margin: .8rem 0 .55rem; color: var(--green); font: 600 1.05rem/1.35 var(--display); }
.theme-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }

.program { background: #eee8d7; }
.program .section-inner { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 7vw, 7rem); }
.section-intro { max-width: 330px; margin-top: 1.1rem; color: var(--muted); font-size: .9rem; }
.program-content { min-width: 0; }
.day-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #bdb298; }
.day-tab { display: flex; align-items: center; justify-content: space-between; gap: .35rem; padding: .9rem .7rem; color: #5f665e; background: transparent; border: 0; border-bottom: 3px solid transparent; text-align: left; cursor: pointer; }
.day-tab:hover { color: var(--green); }
.day-tab[aria-selected="true"] { color: var(--green); border-bottom-color: var(--gold); }
.tab-day { font: 600 .85rem var(--display); }
.tab-date { color: var(--gold-text); font: 600 1.45rem/1 var(--display); }
.tab-date small { font: 400 .58rem var(--mono); text-transform: uppercase; }
.day-panel { min-height: 284px; padding: 2rem 0 1rem; }
.day-panel[hidden] { display: none; }
.program-place .eyebrow { font-size: .65rem; }
.program-place h3 { margin: .3rem 0 0; color: var(--green); font: 600 clamp(1.35rem, 2.4vw, 1.8rem)/1.25 var(--serif); }
.program-place p { margin: .15rem 0 1.35rem; color: var(--muted); font-size: .83rem; }
.program-hours { display: flex; align-items: center; gap: .85rem; color: var(--green); font: 500 .9rem var(--mono); }
.program-hours i { width: clamp(2rem, 8vw, 7rem); height: 1px; background: var(--gold); }
.program-description { max-width: 570px; margin: 1rem 0 0; color: #555b53; font-size: .92rem; }
.program-note { margin: 0; padding-top: .8rem; border-top: 1px solid #d0c7ae; color: var(--muted); font: 400 .66rem/1.5 var(--mono); }
.program-note span { padding: 0 .35rem; color: var(--gold-text); }

.axes { background: var(--paper-light); }
.axes .section-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.axes-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1.25rem; }
.panel-card { border: 1px solid var(--line); }
.panel-card > header { padding: 1.4rem 1.6rem 1.3rem; color: var(--paper); background: var(--green); border-bottom: 2px solid var(--gold); }
.panel-card > header .eyebrow { color: #e5c27b; font-size: .64rem; }
.panel-card > header h3 { margin: .6rem 0 0; color: #fffdf6; font: 500 1.18rem/1.4 var(--serif); }
.panel-card ol { margin: 0; padding: 0 1.6rem; list-style: none; counter-reset: axis; }
.panel-card li { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--line); counter-increment: axis; }
.panel-card li:last-child { border-bottom: 0; }
.panel-card li::before { content: counter(axis, decimal-leading-zero); color: var(--gold-text); font: 500 .7rem var(--mono); padding-top: .15rem; }
.panel-card h4 { margin: 0 0 .2rem; color: var(--green); font: 600 .98rem/1.45 var(--display); }
.panel-card li p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }

.homages { color: var(--paper); background: var(--green); }
.homages .section-heading h2 { color: #fffdf6; }
.homages .eyebrow { color: #e4c27e; }
.homage-list { margin-top: 2.5rem; border-top: 1px solid rgba(228, 194, 126, .42); }
.homage-list article { display: grid; grid-template-columns: 3rem 1fr 1fr; align-items: baseline; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid rgba(228, 194, 126, .32); }
.homage-list article > span { color: #e4c27e; font: 500 .74rem var(--mono); }
.homage-list h3 { margin: 0; color: #fffdf6; font: 500 clamp(1.05rem, 2vw, 1.3rem)/1.4 var(--serif); }
.homage-list p { margin: 0; color: #d6d6c8; font-size: .88rem; }
.homage-time { margin: 1.2rem 0 0 4rem; color: #e4c27e; font: 400 .7rem var(--mono); letter-spacing: .05em; }

.practical { background: #eee8d7; }
.practical .section-heading { margin-bottom: 2.3rem; }
.practical-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #cfc4a7; border-left: 1px solid #cfc4a7; }
.practical-card { min-height: 165px; padding: 1.5rem 1.65rem; border-right: 1px solid #cfc4a7; border-bottom: 1px solid #cfc4a7; }
.practical-card p { margin: .65rem 0 0; color: #424a43; font-size: .96rem; }
.practical-card p + p { margin-top: .45rem; color: var(--muted); font-size: .86rem; }
.contact-card { display: flex; align-items: flex-start; flex-direction: column; }
.contact-card .eyebrow { margin-bottom: .35rem; }
.contact-card a { color: var(--green); font-size: .91rem; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-card a:hover { color: var(--gold-text); }
.contact-card .email-link { margin: .1rem 0 .25rem; font-weight: 700; }
.landmark { margin: 3.5rem 0 0; }
.landmark img { width: 100%; max-height: 330px; object-fit: cover; }

.site-footer { padding: 3.5rem 1.5rem 2rem; color: #e4dece; background: var(--green-deep); text-align: center; }
.footer-inner { width: min(100%, 580px); margin: auto; }
.footer-inner > img { width: 48px; height: 48px; margin: 0 auto .7rem; object-fit: contain; padding: 3px; background: white; border-radius: 50%; }
.footer-name { margin: 0; color: #e4c27e; font: 500 1rem "Noto Kufi Arabic", "Amiri", serif; }
.footer-inner > p { margin: .35rem 0; font-size: .86rem; }
.footer-inner > p span { padding: 0 .25rem; color: #e4c27e; }
.footer-inner .footer-event { margin: 1rem 0; color: #c9c6b8; font: 400 .81rem/1.8 var(--mono); }
.footer-inner > a { color: #e4c27e; font-size: .88rem; }
.footer-inner .copyright { margin-top: 1.8rem; color: #abb5aa; font: 400 .63rem var(--mono); }

@media (max-width: 760px) {
  .header-inner { width: min(100% - 2rem, var(--content)); min-height: 66px; }
  .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: .65rem 0; }
  html:not(.js) .site-nav { width: 100%; justify-content: space-between; gap: .55rem; overflow-x: auto; padding: .25rem 0; }
  html:not(.js) .site-nav a { flex: 0 0 auto; font-size: .75rem; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 0 .5rem .7rem; color: var(--green); background: transparent; border: 0; cursor: pointer; }
  .toggle-label { font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 1px; background: var(--green); }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .site-nav { gap: .9rem; }
  .js .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .45rem 1rem .85rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(30, 50, 40, .1); }
  .js .site-nav[data-open="false"] { display: none; }
  .js .site-nav a { padding: .6rem .5rem; border-bottom: 1px solid rgba(217, 206, 178, .7); }
  .js .site-nav .nav-contact { border-bottom: 0; }
  .hero { min-height: 700px; padding: 4.2rem 1.2rem 4.7rem; }
  .hero::after { inset: 9px; }
  .hero-logo { width: 65px; height: 65px; }
  .edition { max-width: 330px; margin: .2rem auto 1.1rem; font-size: .75rem; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 4rem); }
  .hero-summary { max-width: 540px; font-size: 1rem; }
  .event-dates { margin: 1.6rem auto 1.2rem; }
  .event-dates > div { min-width: 64px; padding: .1rem .75rem; }
  .event-dates strong { font-size: 2.1rem; }
  .event-dates > p { padding-left: .9rem; font-size: .9rem; }
  .event-dates > p span { font-size: .59rem; }
  .section { padding: 4.5rem 1.25rem; }
  .intro > .section-inner:first-child, .program .section-inner, .axes .section-inner { grid-template-columns: 1fr; gap: 1.7rem; }
  .intro > .section-inner:first-child { gap: 1.2rem; }
  .city-image { margin: 2.7rem auto; }
  .city-image img { max-height: 300px; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-card { padding: 1.3rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
  .theme-card:first-child { padding-left: 0; }
  .theme-card:nth-child(2) { border-right: 0; padding-right: 0; }
  .theme-card:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .theme-card:last-child { padding-right: 0; border-bottom: 0; }
  .program { padding-top: 4.5rem; padding-bottom: 4rem; }
  .day-panel { min-height: 0; padding-top: 1.5rem; }
  .axes-content { grid-template-columns: 1fr; gap: 1rem; }
  .homage-list article { grid-template-columns: 2rem 1fr; gap: .2rem .7rem; }
  .homage-list article p { grid-column: 2; }
  .homage-time { margin-left: 2.7rem; }
  .practical-grid { grid-template-columns: 1fr; }
  .practical-card { min-height: auto; padding: 1.2rem 1.25rem; }
  .landmark { margin-top: 2.6rem; }
}

@media (max-width: 420px) {
  .brand { gap: .5rem; font-size: .78rem; }
  .brand img { width: 36px; height: 36px; }
  .event-dates > div { min-width: 57px; padding: .1rem .55rem; }
  .event-dates > p { padding-left: .65rem; font-size: .81rem; }
  .event-dates > p span { font-size: .53rem; }
  .count-unit { min-width: 68px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 300px); margin-right: auto; margin-left: auto; }
  .panel-card > header { padding: 1.2rem; }
  .panel-card ol { padding: 0 1.2rem; }
  .day-tab { padding: .8rem .35rem; }
  .tab-day { font-size: .73rem; }
  .tab-date { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Editorial refresh: warm paper, quiet borders, cinematic imagery, and restrained motion. */
:root {
  --green: #1f4741;
  --green-deep: #173a35;
  --gold: #b07f2e;
  --gold-text: #77551c;
  --paper: #f2f0eb;
  --paper-light: #faf9f6;
  --ink: #292827;
  --muted: #66635f;
  --line: #e3e0da;
  --content: 1200px;
}

html { scroll-padding-top: 5rem; }
body { color: var(--ink); background: var(--paper); }

.site-header {
  transition: transform .28s ease, background-color .28s ease, border-color .28s ease;
  background: rgba(242, 240, 235, .76);
  border-color: transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(242, 240, 235, .94); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { min-height: 72px; }
.brand { color: var(--ink); font-weight: 600; letter-spacing: .025em; }
.site-nav { gap: clamp(.85rem, 2vw, 1.8rem); }
.site-nav a { color: var(--ink); font-size: .9rem; font-weight: 500; transition: color .18s ease; }
.site-nav a:hover { color: var(--gold-text); }
.site-nav .nav-contact {
  padding: .56rem .95rem;
  color: #fff;
  background: var(--green-deep);
  border: 1px solid var(--green-deep);
  border-radius: 8px;
  transition: transform .2s ease, background-color .2s ease;
}
.site-nav .nav-contact:hover { color: #fff; background: #24574f; transform: translateY(-2px); }

.hero {
  min-height: min(860px, calc(100svh - 72px));
  padding: clamp(2rem, 3vh, 2.5rem) 1.5rem 1.5rem;
  background: var(--green);
  isolation: isolate;
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 35, 34, .82) 0%, rgba(12, 35, 34, .58) 48%, rgba(12, 35, 34, .18) 100%),
    linear-gradient(0deg, rgba(12, 35, 34, .48), transparent 44%),
    url("assets/mosquee-hassan-ii-web.jpg") center 48% / cover;
  content: "";
  transform: scale(1.015);
}
.hero::after { inset: 16px; border-color: rgba(255, 255, 255, .26); }
.hero-pattern { opacity: .035; mix-blend-mode: soft-light; }
.hero-inner {
  width: min(100%, 1200px);
  text-align: left;
  animation: hero-arrive .8s cubic-bezier(.2, .7, .2, 1) both;
}
.invocation { color: #ead9b7; font-size: 1rem; }
.hero-logo { margin: .35rem 0 .45rem; border: 0; background: rgba(255,255,255,.92); }
.organization { color: #f0d7a2; }
.edition { margin-bottom: 1rem; color: rgba(255,255,255,.82); }
.hero-label { color: #efd18d; }
.hero h1 {
  max-width: 860px;
  margin: .5rem 0 .75rem;
  font-size: clamp(2.8rem, 6.2vw, 5.3rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 em { color: #f0d7a2; }
.hero-summary { max-width: 590px; margin: 0; color: rgba(255,255,255,.86); }
.event-dates { margin: 1.2rem 0 .8rem; }
.event-dates > div { min-width: 72px; }
.event-dates strong { color: #f0d7a2; font-weight: 500; }
.event-dates > p { color: #fff; }
.event-dates > p b { color: #f0d7a2; }
.hero-actions { justify-content: flex-start; margin-top: .9rem; }
.button {
  min-height: 48px;
  padding: .7rem 1.2rem;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 500;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button { transform: translate(var(--mag-x, 0), var(--mag-y, 0)); }
.button:hover { transform: translate(var(--mag-x, 0), calc(var(--mag-y, 0) - 2px)); }
.button-gold { color: #fff; background: var(--green-deep); border-color: var(--green-deep); }
.button-gold:hover { color: #fff; background: #24574f; border-color: #24574f; }
.button-outline { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.09); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scroll-cue { left: auto; right: 2rem; transform: none; }

.section { padding: clamp(4.5rem, 8vw, 7rem) 1.5rem; }
.section-heading h2 { color: var(--ink); font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.eyebrow { letter-spacing: .12em; }
.intro { padding-bottom: 4.5rem; }
.city-image { width: min(100%, 1200px); margin: 3.5rem auto; overflow: hidden; border-radius: 14px; }
.city-image img { max-height: 520px; object-position: center 47%; }
.central-question { max-width: 1000px; padding: clamp(1.7rem, 4vw, 3rem); border: 1px solid rgba(255,255,255,.16); border-top: 2px solid #d5b06b; border-radius: 16px; }
.central-question::after { opacity: .08; }
.central-question p { font-weight: 500; letter-spacing: -.015em; }

.themes-grid { border-color: var(--line); }
.theme-card { border-color: var(--line); }
.theme-card h3, .program-place h3, .panel-card h4 { color: var(--ink); font-weight: 500; }
.program { background: #e9e7e1; }
.program .section-inner { align-items: start; }
.day-tabs { border-color: #cecbc4; }
.day-tab { border-radius: 8px 8px 0 0; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.day-tab[aria-selected="true"] { background: rgba(255,255,255,.42); }
.day-panel { min-height: 260px; }
.axes { background: var(--paper-light); }
.panel-card { overflow: hidden; background: #fff; border-color: var(--line); border-radius: 14px; }
.panel-card > header { background: var(--green); border-bottom-width: 1px; }
.panel-card ol { padding-right: 1.8rem; }
.panel-card li { border-color: #efede8; }
.homages { background: var(--green); }
.homage-list { border-color: rgba(255,255,255,.25); }
.homage-list article { border-color: rgba(255,255,255,.2); }
.practical { background: #e9e7e1; }
.practical-grid { border-color: var(--line); }
.practical-card { border-color: var(--line); }
.practical-card .eyebrow { color: var(--gold-text); }
.contact-card a { color: var(--green); }
.contact-card a:hover { color: var(--green-deep); }
.landmark { overflow: hidden; border-radius: 14px; }
.site-footer { background: var(--green-deep); }
.footer-inner > a { color: #e4c27e; }

html.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
html.reveal-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 66px; }
  .js .site-nav { background: rgba(242, 240, 235, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .js .site-nav .nav-contact { align-self: flex-start; margin-top: .35rem; padding: .55rem .85rem; }
  .hero { min-height: min(850px, calc(100svh - 66px)); padding: 2.6rem 1.2rem 4rem; }
  .hero-logo { width: 58px; height: 58px; margin: .2rem auto .3rem; }
  .edition { margin-bottom: .75rem; }
  .hero h1 { margin: .45rem 0 .65rem; }
  .event-dates { margin: 1.1rem 0 .8rem; }
  .hero-actions { margin-top: .65rem; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(12, 35, 34, .78), rgba(12, 35, 34, .48)),
      linear-gradient(0deg, rgba(12, 35, 34, .44), transparent 50%),
      url("assets/mosquee-hassan-ii-web.jpg") 58% center / cover;
  }
  .hero-inner { text-align: center; }
  .hero-logo { margin-right: auto; margin-left: auto; }
  .hero-summary { margin-right: auto; margin-left: auto; }
  .hero-actions { justify-content: center; }
  .scroll-cue { right: 50%; left: auto; transform: translateX(50%); white-space: nowrap; }
  .city-image { border-radius: 10px; }
  .panel-card { border-radius: 12px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
  html.reveal-enabled .reveal { opacity: 1; transform: none; transition: none; }
  .site-header { transition: none; }
  .button:hover { transform: none; }
}

.documents-download { margin-top: 3.25rem; }
.documents-download h3 {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font: 500 clamp(1.5rem, 2.5vw, 2rem)/1.2 var(--serif);
  letter-spacing: -.025em;
}
.documents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.document-download {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .48);
  border: 1px solid #cfc4a7;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.document-download:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .8);
  border-color: var(--green);
}
.document-download:focus-visible { outline-offset: 4px; }
.document-type { color: var(--muted); font: 500 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.document-download strong { margin-top: .75rem; font: 500 1.3rem/1.3 var(--serif); }
.document-action { display: flex; width: 100%; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; color: var(--green-deep); font-size: .88rem; font-weight: 600; }
.document-action span { color: var(--gold-text); font-size: 1.2rem; line-height: 1; }

@media (max-width: 760px) {
  .documents-download { margin-top: 2.5rem; }
  .documents-grid { grid-template-columns: 1fr; gap: .75rem; }
  .document-download { min-height: 150px; padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .document-download { transition: none; }
  .document-download:hover { transform: none; }
}

.homages {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #20433d;
}
.homages::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/motif-islamique-tile.png") repeat;
  opacity: .035;
  content: "";
  pointer-events: none;
}
.homages .section-inner { position: relative; }
.homage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  border: 0;
}
.homage-list article {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  padding: 1.7rem 1.3rem 1.5rem;
  border: 1px solid rgba(228, 194, 126, .52);
  border-radius: 46% 46% 12px 12px / 30% 30% 12px 12px;
  background: #294d46;
  text-align: center;
}
.homage-list article > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  color: #f0d7a2;
  border: 1px solid rgba(228, 194, 126, .7);
  border-radius: 50%;
  font: 500 .7rem var(--mono);
}
.homage-list h3 {
  max-width: 24ch;
  margin: .25rem 0 0;
  color: #fffdf6;
  font: 500 clamp(1.1rem, 1.65vw, 1.35rem)/1.4 var(--serif);
}
.homage-list p { max-width: 32ch; margin: 0; color: #e4dece; font-size: .9rem; }
.homage-time { margin: 1.5rem 0 0; color: #f0d7a2; text-align: center; }

@media (max-width: 950px) {
  .homage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homage-list article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .homage-list { grid-template-columns: 1fr; gap: .85rem; }
  .homage-list article,
  .homage-list article:last-child { min-height: 210px; grid-column: auto; padding: 1.4rem 1.2rem; }
}

  .language-switcher {
    display: flex;
    flex: 0 0 auto;
    gap: .15rem;
    padding: .2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .language-switcher[hidden] { display: none; }
  .language-switcher button {
    min-width: 44px;
    min-height: 44px;
    padding: .35rem .5rem;
    border: 0;
    border-radius: 5px;
    color: var(--green-deep);
    background: transparent;
    font: 600 .8rem/1.5 var(--sans);
    cursor: pointer;
  }
  .language-switcher button:hover { background: #e3e0da; }
  .language-switcher button[aria-pressed="true"] { color: #fff; background: var(--green-deep); }
  .documents-language { margin: -.5rem 0 1.2rem; color: var(--muted); font-size: .9rem; }
  .contact-card a, .program-hours span { direction: ltr; unicode-bidi: isolate; }
  .day-tab, .event-dates, .hero-inner { text-align: start; }
  .theme-card { border-right: 0; border-inline-end: 1px solid var(--line); }
  .theme-card:first-child { padding-left: 1.3rem; padding-inline-start: 0; }
  .theme-card:last-child { padding-right: 1.3rem; padding-inline-end: 0; border-inline-end: 0; }
  .event-dates > p { padding-left: 0; padding-inline-start: 1.3rem; }
  .event-dates > div { border-right: 0; border-inline-end: 1px solid rgba(228, 194, 126, .42); }
  .event-dates > div:first-child { border-left: 0; border-inline-start: 1px solid rgba(228, 194, 126, .42); }

  html[lang="ar"] {
    --serif: "Amiri", "Cairo", serif;
    --display: "Cairo", sans-serif;
    --mono: "Cairo", sans-serif;
  }
  html[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
  html[lang="ar"] .section-heading h2 { line-height: 1.45; letter-spacing: 0; }
  html[lang="ar"] .eyebrow,
  html[lang="ar"] .brand,
  html[lang="ar"] .brand small,
  html[lang="ar"] .count-label,
  html[lang="ar"] .countdown-title { letter-spacing: 0; }
  html[lang="ar"] .hero-summary, html[lang="ar"] .central-question p { font-style: normal; }
  html[dir="rtl"] .scroll-cue { right: auto; left: 2rem; }
  html[dir="rtl"] .central-question::after { right: auto; left: 1.4rem; }
  html[dir="rtl"] .hero::before {
    background:
      linear-gradient(270deg, rgba(12, 35, 34, .82) 0%, rgba(12, 35, 34, .58) 48%, rgba(12, 35, 34, .18) 100%),
      linear-gradient(0deg, rgba(12, 35, 34, .48), transparent 44%),
      url("assets/mosquee-hassan-ii-web.jpg") center 48% / cover;
  }
  @media (min-width: 761px) and (max-width: 1100px) {
    .header-inner { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .6rem; }
    .site-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  }
  @media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; gap: .25rem 1rem; padding-block: .5rem; }
    .language-switcher { width: 100%; justify-content: center; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
    .hero-inner { text-align: center; }
    .event-dates > p { padding-inline-start: .9rem; }
    .theme-card:first-child { padding-left: 1rem; padding-inline-start: 0; }
    .theme-card:nth-child(2) { border-inline-end: 0; padding-inline-end: 0; }
    .theme-card:nth-child(3) { padding-left: 1rem; padding-inline-start: 0; }
    .theme-card:last-child { padding-right: 1rem; padding-inline-end: 0; }
    html[dir="rtl"] .scroll-cue { right: 50%; left: auto; }
  }
  @media (max-width: 420px) {
    .event-dates > p { padding-inline-start: .65rem; }
  }
