/* ==========================================================================
   Eventodo design system, applied to the site.
   One stylesheet for fr / en / ar. Layout uses logical properties, so the
   Arabic pages (dir="rtl") mirror without a second set of rules.
   Reference: design-system.html
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------ */
:root {
  /* Ballroom by day */
  --ev-paper: #faf5f8;
  --ev-card: #fefcfd;
  --ev-raised: #f2eaee;
  --ev-line: rgba(38, 25, 34, 0.12);
  --ev-line-strong: rgba(38, 25, 34, 0.3);
  --ev-text: #261922;
  --ev-text-2: #584b54;
  --ev-muted: #73686f;

  /* Ballroom by night */
  --ev-night: #170d14;
  --ev-night-2: #21151d;
  --ev-night-3: #2e2029;
  --ev-night-line: rgba(244, 238, 241, 0.14);
  --ev-night-line-strong: rgba(244, 238, 241, 0.34);
  --ev-on-night: #f4eef1;
  --ev-on-night-2: #c5bac0;
  --ev-on-night-muted: #a0949a;

  /* Magenta: what happens next. Teal: what Eventodo has done. */
  --ev-magenta: #de51cf;
  --ev-magenta-hover: #e671d9;
  --ev-magenta-ink: #9c2892;
  --ev-magenta-tint: #f9dff4;
  --ev-teal: #008e97;
  --ev-teal-ink: #006870;
  --ev-teal-on-night: #40b1b7;

  /* Type */
  --ev-font-display: "Bodoni Moda", "Amiri", serif;
  --ev-font-display-ar: "Amiri", "Bodoni Moda", serif;
  --ev-font-ui: "Noto Sans", "Noto Sans Arabic", sans-serif;

  /* Motion */
  --ev-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ev-fast: 160ms;

  /* Semantic roles: components use these, so any block can flip to night */
  --fg: var(--ev-text);
  --fg-2: var(--ev-text-2);
  --fg-3: var(--ev-muted);
  --bg: var(--ev-paper);
  --surface: var(--ev-card);
  --raised: var(--ev-raised);
  --hair: var(--ev-line);
  --hair-strong: var(--ev-line-strong);
  --next: var(--ev-magenta-ink);
  --done: var(--ev-teal-ink);
  --focus: var(--ev-text);
}

.on-night {
  --fg: var(--ev-on-night);
  --fg-2: var(--ev-on-night-2);
  --fg-3: var(--ev-on-night-muted);
  --bg: var(--ev-night);
  --surface: var(--ev-night-2);
  --raised: var(--ev-night-3);
  --hair: var(--ev-night-line);
  --hair-strong: var(--ev-night-line-strong);
  --next: var(--ev-magenta);
  --done: var(--ev-teal-on-night);
  --focus: var(--ev-on-night);
  background: var(--bg);
  color: var(--fg-2);
}

/* ---------- Base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/24px var(--ev-font-ui);
  font-variant-numeric: lining-nums;
}
html[lang="ar"] body { line-height: 1.75; }
/* Letter-spacing breaks Arabic letter joining */
html[lang="ar"] * { letter-spacing: 0 !important; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { color: var(--fg-2); }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--ev-magenta-tint); color: var(--ev-text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100;
  background: var(--ev-text); color: var(--ev-paper); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }

/* ---------- Page loader: the full Eventodo logo ------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: var(--ev-night);
  transition: opacity 250ms var(--ev-ease), visibility 0s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 450ms var(--ev-ease), visibility 0s linear 450ms; }
.no-js .loader { display: none; }
/* The logo is drawn here, so the loader needs no markup of its own; any children in the HTML are hidden. */
.loader > * { display: none; }
.loader::before {
  content: ""; display: block; width: min(320px, 70vw); aspect-ratio: 500 / 195;
  background: url("../img/logo/white-logo.png") center / contain no-repeat;
  opacity: 0.4; animation: ev-load 1.6s ease-in-out infinite;
}
@keyframes ev-load { 0%, 100% { opacity: 0.4; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Type -------------------------------------------------------- */
.display {
  font-family: var(--ev-font-display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
}
.display--md { font-size: clamp(36px, 4.4vw, 56px); }
html[lang="ar"] .display { font-family: var(--ev-font-display-ar); font-weight: 700; line-height: 1.35; }

.title { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); max-width: 24ch; text-wrap: balance; }
html[lang="ar"] .title { line-height: 1.5; }
.sub { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--fg); }
.lead { font-size: 18px; line-height: 28px; color: var(--fg-2); max-width: 60ch; }
html[lang="ar"] .lead { line-height: 1.8; }
.small { font-size: 14px; line-height: 20px; color: var(--fg-2); }
.meta { font-size: 12px; line-height: 16px; color: var(--fg-3); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.eyebrow { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-3); margin-bottom: 8px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.countdown > div { padding: 16px 8px; text-align: center; box-shadow: inset 0 0 0 1px var(--hair); }
.countdown b { display: block; font-size: 40px; line-height: 48px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums lining-nums; }
.countdown > div > span { display: block; font-size: 14px; line-height: 20px; color: var(--fg-2); }
.countdown > p { grid-column: 1 / -1; font-size: 24px; line-height: 32px; font-weight: 500; color: var(--fg); }

.next { color: var(--next); }
.done { color: var(--done); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Phone and email links get an icon, wherever they appear (footer, contact blocks, home page). Links that
   already carry their own <svg>, like the ones in the top bar, are left alone. The icon takes the accent
   colour: magenta on dark blocks, the deeper magenta on light ones. */
a[href^="tel:"] { --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.5 9 3.1l1.6 4-1.9 1.4a11 11 0 0 0 5.8 5.8l1.4-1.9 4 1.6-.4 2.4a2.4 2.4 0 0 1-2.4 2A15.8 15.8 0 0 1 4.6 5.9a2.4 2.4 0 0 1 2-2.4z'/%3E%3C/svg%3E"); }
a[href^="mailto:"] { --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
:is(a[href^="tel:"], a[href^="mailto:"]):not(:has(> svg))::before,
[dir="rtl"] :is(a.ltr[href^="tel:"], a.ltr[href^="mailto:"]):not(:has(> svg))::after {
  content: ""; display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em;
  background-color: var(--next);
  -webkit-mask: var(--contact-icon) center / contain no-repeat; mask: var(--contact-icon) center / contain no-repeat;
}
:is(a[href^="tel:"], a[href^="mailto:"]):not(:has(> svg))::before { margin-inline-end: 0.5em; }
/* A number or address forced left-to-right inside an Arabic page: the icon goes after it, which is the
   right-hand (reading-start) side. */
[dir="rtl"] :is(a.ltr[href^="tel:"], a.ltr[href^="mailto:"]):not(:has(> svg))::before { content: none; }
[dir="rtl"] :is(a.ltr[href^="tel:"], a.ltr[href^="mailto:"]):not(:has(> svg))::after { margin-inline-start: 0.5em; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* ---------- Header ------------------------------------------------------ */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--hair-strong); }
.site-header__row { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand { display: block; flex: none; }
.brand img { width: 132px; }
.site-header__panel { display: flex; align-items: center; flex: 1; gap: 32px; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; font-size: 15px; line-height: 20px; font-weight: 500; }
.nav a {
  padding: 8px 0; text-decoration: none; color: var(--fg-2);
  border-bottom: 2px solid transparent;
  transition: color var(--ev-fast) var(--ev-ease);
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }
.nav__group { position: relative; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; background: none; border: 0;
  border-bottom: 2px solid transparent; font: inherit; color: var(--fg-2); cursor: pointer;
  transition: color var(--ev-fast) var(--ev-ease);
}
.nav__trigger::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.nav__trigger:hover, .nav__group.is-open .nav__trigger { color: var(--fg); }
.nav__group[data-current] .nav__trigger { color: var(--fg); border-bottom-color: var(--fg); }
.nav__menu {
  display: none; position: absolute; inset-inline-start: -12px; top: 100%; z-index: 30; min-width: 240px;
  padding: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair);
}
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu, .nav__group.is-open .nav__menu { display: block; }
.nav__menu a { display: block; padding: 10px 12px; border-bottom: 0; white-space: nowrap; }
.nav__menu a:hover { background: var(--raised); }
.nav__menu a[aria-current="page"] { background: var(--raised); }
.site-header__cta { flex: none; height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 44px; height: 44px; padding: 0; place-items: center;
  background: none; border: 0; color: var(--fg); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 0;
  transition: transform var(--ev-fast) var(--ev-ease), background-color var(--ev-fast) var(--ev-ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Top bar: phone, email, social (from the original header) */
.topbar { background: var(--ev-night); color: var(--ev-on-night-2); font-size: 14px; line-height: 20px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 40px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 0 24px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: inherit; text-decoration: none; padding: 8px 0; transition: color var(--ev-fast) var(--ev-ease); }
.topbar__icon { flex: none; color: var(--ev-magenta); }
.topbar a:hover { color: var(--ev-on-night); }
.social { display: flex; gap: 2px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--fg-2); }
.social a:hover { color: var(--fg); }

/* Header laid over the home photograph */
.site-header--photo { position: absolute; inset-inline: 0; top: 0; background: transparent; }

/* Event hero (Nour Expo): the photo under a deep night wash, the countdown as the page's one big moment */
.eventhero { position: relative; overflow: hidden; padding-block: 96px 80px; }
.eventhero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eventhero { --w1: 0.94; --w2: 0.84; --w3: 0.7; --v1: 0.92; --v2: 0.4; --wash-dir: 90deg; --photo-pos: 50% 50%; }
html[dir="rtl"] .eventhero { --wash-dir: 270deg; }
/* Bright photos (SAI): strong wash only behind the text and the clock, lighter where the picture carries the page */
.eventhero--bright { --w1: 0.92; --w2: 0.62; --w3: 0.18; --v1: 0.94; --v2: 0.72; --photo-pos: 50% 79%; }
.eventhero__photo { object-position: var(--photo-pos); }
/* SIHOD: the harvest photo is mirrored so the pickers' hands sit on the lit side, away from the headline.
   In RTL the wash is already mirrored, so the photo is left as shot. */
.eventhero--sihod { --photo-pos: 50% 45%; --w1: 0.9; --w2: 0.5; --w3: 0.06; --v1: 0.9; --v2: 0.55; }
.eventhero--sihod .eventhero__photo { transform: scaleX(-1); }
html[dir="rtl"] .eventhero--sihod .eventhero__photo { transform: none; }
/* Contact: the retro phone on red, the most saturated photo on the site. The wash stays on the text side so the
   red and indigo carry the page. The phone sits on the right of the photo. In Arabic the photo is left as shot
   (flipping it would mirror the keypad digits), so the copy stays on the left, over the wash. */
.eventhero--contact {
  --w1: 0.9; --w2: 0.5; --w3: 0.04; --v1: 0.3; --v2: 0.04; --photo-pos: 50% 38%;
  display: flex; align-items: center; min-height: clamp(440px, 42vw, 620px); padding-block: 96px;
}
html[dir="rtl"] .eventhero--contact { --wash-dir: 90deg; }
.eventhero--contact .eventhero__inner { width: 100%; }
.eventhero__copy { max-width: 620px; }
html[dir="rtl"] .eventhero--contact .eventhero__copy { max-width: 500px; margin-left: 0; margin-right: auto; }
.eventhero__copy > * + * { margin-top: 24px; }
.eventhero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(var(--wash-dir), rgba(23, 13, 20, var(--w1)) 0%, rgba(23, 13, 20, var(--w2)) 50%, rgba(23, 13, 20, var(--w3)) 100%),
              linear-gradient(0deg, rgba(23, 13, 20, var(--v1)) 0%, rgba(23, 13, 20, var(--v2)) 50%, rgba(23, 13, 20, 0) 80%);
}
.eventhero__inner { position: relative; z-index: 2; }
.eventhero__meta p { color: var(--fg); }
.eventhero__title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 500; letter-spacing: 0.02em; color: var(--fg); }
/* Spelled-out event name under an acronym headline (SIHOD) */
.eventhero__full { display: block; margin-top: 12px; text-wrap: balance; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.3; font-weight: 400; letter-spacing: 0; color: var(--fg); opacity: 0.92; }
.eventhero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--fg); }
.eventhero__meta p + p { display: inline-flex; align-items: center; gap: 24px; }
.eventhero__meta p + p::before { content: ""; width: 6px; height: 6px; background: var(--ev-magenta); }

/* The big countdown: four cells across the column, tall Bodoni figures (the logo's tall O) */
.countdown--hero { max-width: none; gap: 0; margin-top: 64px; border-top: 1px solid var(--hair-strong); }
.countdown--hero > div { padding: 24px 0 0; text-align: start; box-shadow: none; }
.countdown--hero > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--hair-strong); }
.countdown--hero b {
  display: flex; direction: ltr; justify-content: flex-start; font-family: var(--ev-font-display); font-weight: 600;
  font-size: clamp(72px, 9.6vw, 148px); line-height: 1; letter-spacing: 0; color: var(--fg);
}
html[dir="rtl"] .countdown--hero b { justify-content: flex-end; }
.cd-d { display: inline-block; width: 0.64em; text-align: center; }
.cd-d.is-new { animation: ev-tick 320ms var(--ev-ease) both; }
@keyframes ev-tick { from { opacity: 0; transform: translateY(-0.12em); } }
.countdown--hero > div > span { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--fg-2); }
.countdown--hero.is-done b { color: var(--fg-3); }
.countdown--hero > p { margin-top: 24px; font-size: 20px; line-height: 28px; color: var(--ev-magenta); }

/* ---------- Buttons and links ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border: 0; cursor: pointer;
  font: 500 16px/1 var(--ev-font-ui); text-decoration: none; text-align: center;
  transition: background-color var(--ev-fast) var(--ev-ease), color var(--ev-fast) var(--ev-ease), transform var(--ev-fast) var(--ev-ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--ev-magenta); color: var(--ev-night); }
.btn--primary:hover { background: var(--ev-magenta-hover); }
.btn--primary[disabled] { background: var(--raised); color: var(--fg-3); cursor: not-allowed; transform: none; }
.btn--secondary { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair); }
.btn--secondary:hover { background: var(--raised); }
.link { color: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ---------- Layout ------------------------------------------------------ */
.section { padding-block: 128px; }
.section--tight { padding-block: 96px; }
.section--flush-top { padding-top: 0; }
.band { padding-block: 128px; }
/* Last contact block on a page: a dark panel inside the column, so it never runs into the dark footer */
.closing { padding-bottom: 128px; }
.closing__panel { padding: 64px; }
.section-head { margin-bottom: 64px; }
.section-head .lead { margin-top: 16px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split--flip > :first-child { order: 2; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media--tall img { aspect-ratio: 4 / 5; }
.media--square img { aspect-ratio: 1; }
.media--wide img { aspect-ratio: 16 / 9; }
.media figcaption { font-size: 12px; line-height: 16px; color: var(--fg-3); margin-top: 8px; }

/* Soft band: a light tinted ground for a section that sits between two paper ones, instead of a night block */
.band--soft { background: var(--raised); }

/* About (SAI): a pair of overlapping photos beside the copy. Everything is logical, so Arabic mirrors itself. */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.about__media { position: relative; isolation: isolate; padding-bottom: 88px; padding-inline-end: 64px; }
.about__media::before {
  content: ""; position: absolute; z-index: -1; inset-block: -16px 72px; inset-inline: -16px 80px;
  border: 1px solid var(--ev-magenta);
}
.about__photo { margin: 0; }
.about__photo img { width: 100%; object-fit: cover; }
.about__photo--main img { aspect-ratio: 4 / 5; object-position: 50% 50%; }
.about__photo--inset { position: absolute; inset-inline-end: 0; bottom: 0; width: 50%; box-shadow: 0 0 0 10px var(--raised); }
.about__photo--inset img { aspect-ratio: 1; }
/* Photos shot wide: keep the subject on the right of the crop */
.about__photo--right img { object-position: 80% 50%; }
.about__text .title { max-width: 20ch; }
.about__text .lead { max-width: 52ch; }
.about__text .lead:first-of-type { color: var(--fg); }
.about__note {
  max-width: 52ch; padding-inline-start: 20px; border-inline-start: 3px solid var(--ev-magenta);
  font-size: 18px; line-height: 28px; font-weight: 500; color: var(--fg);
}
html[lang="ar"] .about__note { line-height: 1.8; }

/* ---------- Home hero --------------------------------------------------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: min(760px, 100svh); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1000ms var(--ev-ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1); }
/* The zoom is an animation, so it also runs on the first slide at page load. is-leaving keeps it running while the slide fades out. */
.hero__slide.is-active img, .hero__slide.is-leaving img { animation: ev-zoom 8000ms linear both; }
@keyframes ev-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(23, 13, 20, 0.72) 0, rgba(23, 13, 20, 0) 140px),
    linear-gradient(90deg, rgba(23, 13, 20, 0.94) 0, rgba(23, 13, 20, 0.86) 40%, rgba(23, 13, 20, 0.45) 68%, rgba(23, 13, 20, 0.12) 100%);
}
html[dir="rtl"] .hero::before {
  background:
    linear-gradient(180deg, rgba(23, 13, 20, 0.72) 0, rgba(23, 13, 20, 0) 140px),
    linear-gradient(270deg, rgba(23, 13, 20, 0.94) 0, rgba(23, 13, 20, 0.86) 40%, rgba(23, 13, 20, 0.45) 68%, rgba(23, 13, 20, 0.12) 100%);
}
.hero { padding-top: 136px; }
.hero > .wrap { position: relative; z-index: 2; width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__controls { position: absolute; inset-inline-end: 32px; bottom: 72px; display: flex; align-items: center; gap: 8px; }
.hero__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: rgba(23, 13, 20, 0.55); color: var(--ev-on-night); border: 0; box-shadow: inset 0 0 0 1px var(--ev-night-line);
  transition: background-color var(--ev-fast) var(--ev-ease);
}
.hero__btn:hover { background: var(--ev-night-3); }
.hero__btn svg { display: block; }
html[dir="rtl"] .hero__btn--dir svg { transform: scaleX(-1); }
.hero__count { min-width: 56px; text-align: center; font-size: 14px; line-height: 20px; color: var(--ev-on-night-2); font-variant-numeric: tabular-nums lining-nums; direction: ltr; unicode-bidi: isolate; }
.hero__copy { display: grid; padding-block: 0 72px; max-width: 760px; }
.hero__text { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1000ms var(--ev-ease), visibility 0s linear 1000ms; }
.hero__text.is-active { opacity: 1; visibility: visible; transition: opacity 1000ms var(--ev-ease), visibility 0s; }
.hero__text .lead { margin-top: 24px; max-width: 52ch; }
.hero__text .actions { margin-top: 40px; }

/* ---------- Inner page head --------------------------------------------- */
.pagehead { padding-block: 32px 128px; }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.pagehead__grid--solo { grid-template-columns: minmax(0, 9fr); }
.pagehead__text > * + * { margin-top: 24px; }
.pagehead__text .actions { margin-top: 40px; }
.pagehead__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Balanced page head: text and media share one height (directory, international) */
.headsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.headsplit__text { display: flex; flex-direction: column; justify-content: center; }
.headsplit__text > * + * { margin-top: 24px; }
.headsplit__text .actions { margin-top: 40px; }
.headsplit__media { position: relative; min-height: 300px; background: var(--raised); }
.headsplit__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brandindex { margin-top: 64px; }
.brandindex__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.brandindex__list a {
  display: block; aspect-ratio: 1; padding: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow var(--ev-fast) var(--ev-ease), transform var(--ev-fast) var(--ev-ease);
}
.brandindex__list img { width: 100%; height: 100%; object-fit: contain; }
.brandindex__list a:hover { box-shadow: inset 0 0 0 2px var(--ev-magenta); transform: translateY(-3px); }
.entry { scroll-margin-top: 24px; }

/* Audiences: the two kinds of client, side by side */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
/* photo-led cards: the photo runs to the card's edges */
.audience { display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.audience__photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.audience__body { flex: 1; padding: 32px; }
.audience h3 { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--fg); }
.audience__body > p { margin-top: 8px; max-width: 44ch; color: var(--fg-2); }
html[lang="ar"] .audience h3 { line-height: 1.6; }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-inline-start: 24px; color: var(--fg); }
.minor { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-3); }
/* PAPER-ME intro: heading, paragraph and link centred, the four sector cards in a row beneath */
.partner { display: flex; flex-direction: column; gap: 48px; margin-bottom: 64px; }
.partner > .stack-lg { display: flex; flex-direction: column; align-items: center; text-align: center; }
.partner > .stack-lg .title, .partner > .stack-lg .lead { margin-inline: auto; }
/* PAPER-ME sectors: four tiles, one line icon each (hover fills with the logo's teal) */
.sectors-wrap .minor { margin-bottom: 16px; text-align: center; }
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sector {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 168px; padding: 24px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair);
  transition: background-color var(--ev-fast) var(--ev-ease), box-shadow var(--ev-fast) var(--ev-ease);
}
.sector__icon { display: block; width: 48px; height: 48px; color: var(--done); transition: color var(--ev-fast) var(--ev-ease); }
.sector span { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--fg); transition: color var(--ev-fast) var(--ev-ease); }
html[lang="ar"] .sector span { line-height: 1.6; }
@media (hover: hover) {
  .sector:hover { background: var(--ev-teal); box-shadow: none; }
  .sector:hover span, .sector:hover .sector__icon { color: var(--ev-night); }
}
/* Reasons to take part: three statements set large, each under a short accent rule */
.why { margin-bottom: 64px; }
.why .minor { margin-bottom: 24px; }
.why__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why__list li { max-width: 28ch; font-size: 22px; line-height: 30px; font-weight: 500; color: var(--fg); text-wrap: balance; }
.why__list li::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 20px; background: var(--next); }
html[lang="ar"] .why__list li { line-height: 1.7; }
.link--out { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
html[dir="rtl"] .link--out svg { transform: scaleX(-1); }

/* Editions: an itinerary ledger. Status comes from the dates (teal = done, magenta = next) */
.editions__label { margin-bottom: 16px; }
.editions { border-top: 1px solid var(--hair); }
.edition {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); grid-template-areas: "date place status";
  gap: 32px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--hair);
}
.edition__date { grid-area: date; }
.edition__date time { display: grid; gap: 8px; }
.edition__days { font: 400 48px/1 var(--ev-font-display); color: var(--fg); font-variant-numeric: lining-nums; }
html[lang="ar"] .edition__days { font-family: var(--ev-font-display-ar); font-weight: 700; line-height: 1.1; }
.edition__month { font-size: 14px; line-height: 20px; color: var(--fg-3); }
.edition__place { grid-area: place; display: flex; align-items: center; gap: 16px; }
.edition__flag { flex: none; width: 36px; height: 36px; }
.edition__where { display: grid; gap: 4px; justify-items: start; }
.edition__route { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; color: var(--fg-3); }
.edition__place .link { font-size: 20px; line-height: 28px; }
.edition__status { grid-area: status; justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-2); }
.edition__status::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.edition__status:empty { display: none; }
.edition[data-state="past"] .edition__status { color: var(--done); }
.edition[data-state="next"] .edition__status, .edition[data-state="live"] .edition__status { color: var(--next); }

/* Route map (international page): Eventodo in Tunis, arcs to the partner cities. Geography does not mirror in RTL. */
.routemap { overflow: hidden; background: var(--ev-night); direction: ltr; }
.routemap__stage { position: absolute; inset-inline: 0; top: 50%; aspect-ratio: 250 / 190; transform: translateY(-50%); }
.routemap__dots { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 52% 48%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 72% at 52% 48%, #000 55%, transparent 100%); }
.routemap__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.routemap__arc { fill: none; stroke: var(--ev-magenta); stroke-width: 0.9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: ev-draw 1.3s var(--ev-ease) 0.9s both; }
.routemap__arc--late { animation-delay: 1.25s; }
.routemap__ring { fill: none; stroke: var(--ev-teal-on-night); stroke-width: 0.6; opacity: 0.7; }
.routemap__home { fill: var(--ev-teal-on-night); }
.routemap__stop { fill: var(--ev-magenta); stroke: var(--ev-night); stroke-width: 0.8; transform-box: fill-box; transform-origin: center; animation: ev-pop 360ms var(--ev-ease) 1.9s both; }
.routemap__stop--late { animation-delay: 2.3s; }
@keyframes ev-draw { from { stroke-dashoffset: 1; } }
@keyframes ev-pop { from { opacity: 0; transform: scale(0); } }
.routemap__label { position: absolute; display: grid; padding: 2px 6px; background: var(--ev-night); box-shadow: 0 0 8px 6px var(--ev-night); white-space: nowrap; font-size: 14px; line-height: 18px; }
.routemap__city { color: var(--ev-on-night); font-weight: 500; }
.routemap__note { color: var(--ev-on-night-2); font-size: 12px; line-height: 16px; }
html[lang="ar"] .routemap__label { line-height: 22px; }
.routemap__label--tunis { right: 69.60%; top: 31.05%; margin-right: 14px; margin-top: -19px; text-align: right; }
.routemap__label--cairo { right: 40.00%; top: 44.74%; margin-right: 8px; margin-top: 8px; text-align: right; }
.routemap__label--jeddah { left: 75.60%; top: 62.11%; margin-left: 12px; margin-top: -19px; text-align: left; }
.pagehead__media--wide img { aspect-ratio: 4 / 3; }
.edition-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.edition-links a { color: var(--fg-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.edition-links a:hover { color: var(--fg); }
.edition-links a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

.facts { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.facts dt { font-size: 14px; line-height: 20px; color: var(--fg-3); }
.facts dd { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--fg); }

/* ---------- Lists ------------------------------------------------------- */
.points { display: grid; gap: 12px; }
.points li { position: relative; padding-inline-start: 24px; color: var(--fg-2); }
/* List marker, everywhere: a short rule in the accent colour, centred on the first line (like an en dash) */
.points li::before, .ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.7em; top: calc(0.5lh - 1px);
  width: 12px; height: 2px; background: var(--next);
}
.points strong { color: var(--fg); font-weight: 500; }

.rows li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 32px; padding-block: 24px; border-top: 1px solid var(--hair); align-items: baseline;
}
.rows li:last-child { border-bottom: 1px solid var(--hair); }
.rows h3 { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--fg); }
.rows .proof { transition: color var(--ev-fast) var(--ev-ease); }
/* Services: the whole row floods magenta on hover, as the original cards did (night text keeps 5.6:1 contrast). */
.rows--hover li { grid-template-columns: 32px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); align-items: start; margin-inline: -24px; padding-inline: 24px; transition: background-color var(--ev-fast) var(--ev-ease); }
.row__icon { display: block; width: 32px; height: 32px; margin-top: -2px; color: var(--ev-magenta); transition: color var(--ev-fast) var(--ev-ease); }
.rows--hover li h3, .rows--hover li p { transition: color var(--ev-fast) var(--ev-ease); }
@media (hover: hover) {
  .rows--hover li:hover { background: var(--ev-magenta); }
  .rows--hover li:hover h3, .rows--hover li:hover p, .rows--hover li:hover .proof, .rows--hover li:hover .row__icon { color: var(--ev-night); }
}
.rows .proof { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--done); }

/* Pillars (SAI): eight themes as cards, one line icon each. Hover mirrors the services rows. */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillars--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { padding: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color var(--ev-fast) var(--ev-ease), box-shadow var(--ev-fast) var(--ev-ease); }
.pillar__icon { display: block; width: 32px; height: 32px; margin-bottom: 32px; color: var(--ev-magenta); transition: color var(--ev-fast) var(--ev-ease); }
.pillar h3 { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--fg); transition: color var(--ev-fast) var(--ev-ease); }
.pillar p { margin-top: 8px; font-size: 14px; line-height: 20px; transition: color var(--ev-fast) var(--ev-ease); }
html[lang="ar"] .pillar h3 { line-height: 1.6; }
html[lang="ar"] .pillar p { line-height: 1.8; }
@media (hover: hover) {
  .pillar:hover { background: var(--ev-magenta); box-shadow: none; }
  .pillar:hover h3, .pillar:hover p, .pillar:hover .pillar__icon { color: var(--ev-night); }
}
/* Reasons: a numbered ledger. The numerals count themselves, so adding or removing a row renumbers the rest. */
.reasons { counter-reset: reason; border-top: 1px solid var(--hair); }
.reason {
  counter-increment: reason; display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr); gap: 0 32px;
  align-items: baseline; padding-block: 32px; border-bottom: 1px solid var(--hair);
}
.reason::before {
  content: counter(reason, decimal-leading-zero); font: 400 48px/1 var(--ev-font-display); direction: ltr; unicode-bidi: isolate;
  font-variant-numeric: lining-nums; color: var(--next); transition: color var(--ev-fast) var(--ev-ease);
}
.reason h3 { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--fg); text-wrap: balance; }
.reason p { font-size: 16px; line-height: 24px; max-width: 48ch; }
html[lang="ar"] .reason h3 { line-height: 1.6; }
html[lang="ar"] .reason p { line-height: 1.8; }
@media (hover: hover) { .reason:hover::before { color: var(--ev-magenta); } }
.cols { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.cols > div { padding: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.cols--3 { --cols: 3; }
.cols--2 { --cols: 2; }
.cols h3 { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--fg); }
.cols p { font-size: 14px; line-height: 20px; margin-top: 4px; }
html[lang="ar"] .cols p { line-height: 1.7; }

.record { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.record > div { padding: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.record b { display: block; font-size: clamp(36px, 4vw, 48px); line-height: 56px; font-weight: 500; color: var(--done); letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.record span { display: block; font-size: 14px; line-height: 20px; color: var(--fg-2); margin-top: 8px; }

/* Three photo cards in a row (SIHOD: the two sectors and the ecosystem around them). --pos picks the crop of each photo. */
.audiences--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.audiences--three .audience__body { padding: 28px; }
.audiences--three .audience h3 { font-size: 22px; line-height: 30px; }
.audience h3 + .ticks { margin-top: 16px; }
.audience__photo img { object-position: var(--pos, 50% 50%); }

/* Programme: one row per day. The date is set large in the logo's Bodoni, the sessions as a timed list. */
.programme { border-top: 1px solid var(--hair); }
.day { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--hair); scroll-margin-top: 24px; }
.day__date { display: grid; align-content: start; gap: 8px; }
.day__num { font: 400 72px/1 var(--ev-font-display); color: var(--fg); font-variant-numeric: lining-nums; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .day__num { font-family: var(--ev-font-display-ar); font-weight: 700; line-height: 1.1; }
.day__month { font-size: 14px; line-height: 20px; color: var(--fg-3); }
.day__who { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-2); }
.day__who::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--next); }
.day h3 { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--fg); text-wrap: balance; }
html[lang="ar"] .day h3 { line-height: 1.6; }
.sessions { display: grid; gap: 14px; margin-top: 24px; }
.sessions li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: baseline; color: var(--fg-2); }
html[lang="ar"] .sessions li { line-height: 1.8; }
.sessions__time { font-size: 14px; line-height: 24px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums lining-nums; direction: ltr; unicode-bidi: isolate; text-align: left; }
html[dir="rtl"] .sessions__time { text-align: right; }
.zones { margin-top: 64px; }
.zones .minor { margin-bottom: 24px; }
.points--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; }
.fineprint { margin-top: 32px; font-size: 14px; line-height: 20px; color: var(--fg-3); max-width: 72ch; }
html[lang="ar"] .fineprint { line-height: 1.8; }

/* ---------- Showcase: stacked cards on one side, matching photo on the other -- */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
.showcase__tabs { display: grid; gap: 12px; align-content: start; }
.showcase__tab {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 20px; width: 100%; padding: 24px;
  text-align: start; cursor: pointer; border: 0; background: var(--surface); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--hair); font: 500 20px/28px var(--ev-font-ui);
  transition: background-color var(--ev-fast) var(--ev-ease), color var(--ev-fast) var(--ev-ease);
}
.showcase__tab .row__icon { margin-top: 0; transition: color var(--ev-fast) var(--ev-ease); }
html[lang="ar"] .showcase__tab { line-height: 1.6; }
.showcase__tab:hover { background: var(--raised); }
.showcase__tab.is-active, .showcase__tab.is-active:hover { background: var(--ev-magenta); color: var(--ev-night); box-shadow: none; }
.showcase__tab.is-active .row__icon { color: var(--ev-night); }
.showcase__panels { position: relative; min-height: 360px; background: var(--raised); }
.showcase__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 400ms var(--ev-ease), visibility 0s linear 400ms; }
.showcase__panel.is-active { opacity: 1; visibility: visible; transition: opacity 400ms var(--ev-ease), visibility 0s; }
.showcase__panel img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Details (address, hours, contact) --------------------------- */
.details { display: grid; gap: 24px; align-content: start; }
.details dt { font-size: 14px; line-height: 20px; color: var(--fg-3); }
.details dd { font-size: 16px; line-height: 24px; color: var(--fg); margin-top: 2px; }
.details dd.done, .facts dd.done { color: var(--done); }
.details a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
/* Contact page: the social accounts, icon + name, underlined like the email and phone links */
.socials { display: grid; gap: 12px; justify-items: start; }
.socials a { display: inline-flex; align-items: center; gap: 12px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.socials svg { flex: none; width: 20px; height: 20px; color: var(--fg-2); transition: color var(--ev-fast) var(--ev-ease); }
.socials a:hover { text-decoration-thickness: 2px; }
.socials a:hover svg { color: var(--fg); }
.contact-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: stretch; }

/* ---------- Packages ---------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 24px; background: var(--surface); padding: 32px; box-shadow: inset 0 0 0 1px var(--hair); }
.tier h3 { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--fg); }
.tier__price { display: flex; align-items: baseline; gap: 8px; }
.tier__price b {
  font-family: var(--ev-font-display); font-weight: 500; font-size: 56px; line-height: 56px;
  letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: lining-nums tabular-nums;
}
html[lang="ar"] .tier__price b { font-family: var(--ev-font-ui); font-weight: 500; }
.tier__price span { font-size: 14px; color: var(--fg-3); }
.tier__note { font-size: 14px; line-height: 20px; color: var(--fg-3); margin-top: -12px; }
.tier .points { flex: 1; align-content: start; font-size: 15px; line-height: 22px; }
.tier .points li.no { color: var(--fg-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.tier .points li.no::before { opacity: 0.25; }
.tier .btn { width: 100%; }

/* ---------- Gallery ----------------------------------------------------- */
/* Justified rows: every photo keeps its shape (rounded by the CMS to a standard one) and each row
   stretches to fill the column. Items start at the row height and grow in proportion to their
   width, so all photos in a row end up the same height. About three photos a row on a desktop,
   two on a phone. --row is mirrored in the "sizes" the CMS writes (cms_gallery_photo), so change
   both together.
   The spacer closes the last row: when that row has room for it (a photo or more of free space) it
   takes the gap and the photos keep their natural size; when the row is nearly full it wraps away
   and the row stretches to the edge like the others. */
.gallery { --row: clamp(100px, 18vw, 240px); display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex: 999 0 var(--row); }
.gallery__item { --r: 1.5; flex: var(--r) 1 calc(var(--r) * var(--row)); min-width: 0; margin: 0; }
.gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; background: var(--raised); }
.gallery__item--2x3 { --r: 0.6667; }
.gallery__item--3x4 { --r: 0.75; }
.gallery__item--1x1 { --r: 1; }
.gallery__item--4x3 { --r: 1.3333; }
.gallery__item--3x2 { --r: 1.5; }
.gallery__item--16x9 { --r: 1.7778; }
.gallery__item--2x1 { --r: 2; }

/* ---------- Exhibitor directory ----------------------------------------- */
.entry { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-block: 32px; border-top: 1px solid var(--hair); align-items: start; }
.entry:last-child { border-bottom: 1px solid var(--hair); }
.entry__id { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; }
.entry__logo { width: 72px; height: 72px; object-fit: contain; background: #fff; padding: 6px; box-shadow: inset 0 0 0 1px var(--hair); }
.entry h2, .entry h3 { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--fg); }
/* Exhibitor social links: full-width buttons; Instagram and Facebook keep their own colours (recognised before read) */
.entry__links { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 8px; }
.entry__link {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 15px; line-height: 20px; font-weight: 500; color: var(--fg); text-decoration: none;
  transition: background-color var(--ev-fast) var(--ev-ease), box-shadow var(--ev-fast) var(--ev-ease);
}
.entry__link svg { flex: none; width: 24px; height: 24px; }
.entry__link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the same up-and-out arrow as the other external links, mirrored in Arabic */
.entry__link::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-inline-start: auto; background: var(--fg-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color var(--ev-fast) var(--ev-ease);
}
html[dir="rtl"] .entry__link::after { transform: scaleX(-1); }
.entry__link:hover::after { background: var(--fg); }
.entry__link--instagram svg { color: #e4405f; }
.entry__link--facebook svg { color: #1877f2; }
.entry__link--linkedin svg { color: #0a66c2; }
.entry__link--tiktok svg { color: var(--fg); }
.entry__link--web svg { color: var(--done); }
.entry__link:hover { background: var(--raised); box-shadow: inset 0 0 0 1px var(--fg-3); }
.entry__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.entry__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Photo lightbox ----------------------------------------------
   eventodo.js wraps each photo in .entry__photos (or any [data-lightbox]) in a .zoom button and opens
   it full size in one shared <dialog class="lightbox">. */
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in; }
.zoom::after {
  content: ""; position: absolute; inset-block-end: 6px; inset-inline-end: 6px; width: 28px; height: 28px;
  background: rgba(23, 13, 20, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transition: opacity var(--ev-fast) var(--ev-ease);
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: 0.85; } }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(23, 13, 20, 0.96); color: var(--ev-on-night);
  touch-action: pan-y pinch-zoom; overscroll-behavior: contain; /* a sideways swipe is ours (previous / next), not the browser's "go back" */
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__stage { margin: 0; width: 100%; height: 100%; padding: 72px 96px; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity 200ms var(--ev-ease); }
.lightbox__img.is-ready { opacity: 1; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0;
  background: rgba(244, 238, 241, 0.08); color: var(--ev-on-night); cursor: pointer;
  transition: background var(--ev-fast) var(--ev-ease);
}
.lightbox__btn:hover { background: rgba(244, 238, 241, 0.18); }
.lightbox__btn:focus-visible { outline: 2px solid var(--ev-on-night); outline-offset: 2px; }
.lightbox__close { inset-block-start: 16px; inset-inline-end: 16px; }
.lightbox__prev, .lightbox__next { inset-block-start: 50%; margin-top: -24px; }
.lightbox__prev { inset-inline-start: 16px; }
.lightbox__next { inset-inline-end: 16px; }
[dir="rtl"] .lightbox__prev svg, [dir="rtl"] .lightbox__next svg { transform: scaleX(-1); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
.lightbox__count {
  position: absolute; inset-inline: 0; inset-block-end: 20px; margin: 0; text-align: center; pointer-events: none;
  font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; color: var(--ev-on-night-2);
}
@media (max-width: 640px) {
  .lightbox__stage { padding: 72px 12px 88px; }
  .lightbox__prev, .lightbox__next { inset-block-start: auto; inset-block-end: 16px; margin-top: 0; }
  .lightbox__count { inset-block-end: 30px; }
}
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.logos img { height: 56px; width: auto; max-width: 140px; object-fit: contain; }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; align-items: center; width: max-content; animation: ev-ticker 50s linear infinite; }
.ticker__set { display: flex; align-items: center; flex: none; gap: 64px; padding-inline-end: 64px; }
.ticker__set img { height: 64px; width: auto; max-width: 160px; object-fit: contain; flex: none; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ev-ticker { to { transform: translateX(-50%); } }
@keyframes ev-ticker-rtl { to { transform: translateX(50%); } }
html[dir="rtl"] .ticker__track { animation-name: ev-ticker-rtl; }

/* ---------- Forms ------------------------------------------------------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; height: 48px; padding: 0 16px; font: 400 16px var(--ev-font-ui);
  color: var(--fg); background: var(--raised); border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; outline: none;
  transition: border-color var(--ev-fast) var(--ev-ease), background-color var(--ev-fast) var(--ev-ease);
}
.field textarea { height: 160px; padding-block: 12px; resize: vertical; line-height: 24px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus { background: var(--surface); border-bottom: 2px solid var(--focus); box-shadow: inset 0 0 0 1px var(--hair); }
.field.has-error input, .field.has-error textarea { border-bottom: 2px solid var(--next); }
.field .err { font-size: 14px; line-height: 20px; color: var(--next); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; background: var(--raised); cursor: pointer; font-size: 16px; color: var(--fg); }
.choice input { accent-color: var(--ev-magenta-ink); width: 18px; height: 18px; margin: 0; flex: none; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--focus); background: var(--surface); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.form__send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__status { font-size: 16px; line-height: 24px; color: var(--fg); }
.form__status.is-error { color: var(--next); }
.form > .form__status { grid-column: 1 / -1; }
.form__status.is-success::before {
  content: ""; display: inline-block; width: 6px; height: 11px; border: solid var(--done); border-width: 0 2px 2px 0;
  transform: rotate(45deg); margin-inline: 4px 14px; vertical-align: 2px;
}
.form-block { background: var(--surface); padding: 40px; box-shadow: inset 0 0 0 1px var(--hair); }
.form-block > h2, .form-block > h3 { margin-bottom: 24px; }

/* ---------- Stand picker ------------------------------------------------ */
.sheet { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.sheet__head { padding: 24px 32px 0; }
.plan-wrap { overflow-x: auto; padding: 24px 32px 32px; }
.plan { display: block; width: 100%; min-width: 680px; height: auto; direction: ltr; }
.plan .stand rect, .plan .stand polygon { fill: var(--ev-card); stroke: var(--ev-text); stroke-opacity: 0.55; stroke-width: 1; transition: fill var(--ev-fast) var(--ev-ease); }
.plan .stand { cursor: pointer; outline: none; }
.plan .stand:hover rect, .plan .stand:hover polygon { fill: var(--ev-raised); }
.plan .stand:focus-visible rect, .plan .stand:focus-visible polygon { stroke-opacity: 1; stroke-width: 3; }
.plan .stand[aria-pressed="true"] rect, .plan .stand[aria-pressed="true"] polygon { fill: var(--ev-magenta); stroke: var(--ev-night); stroke-opacity: 1; }
.plan .stand text { pointer-events: none; font-family: var(--ev-font-ui); fill: var(--ev-text); }
.plan .stand .id { font-size: 14px; font-weight: 600; }
.plan .stand .m2 { font-size: 12px; fill: var(--ev-muted); }
.plan .stand[aria-pressed="true"] .m2 { fill: var(--ev-night); }
.plan .door rect { fill: var(--ev-raised); stroke: none; }
.plan .door text { font-family: var(--ev-font-ui); font-size: 12px; fill: var(--ev-text-2); }
.plan .hall { fill: none; stroke: var(--ev-text); stroke-opacity: 0.55; stroke-width: 1; }
.booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 32px; border-top: 1px solid var(--hair); }
.chosen .label { font-size: 14px; line-height: 20px; color: var(--fg-2); }
.chosen .big { font-family: var(--ev-font-display); font-weight: 500; font-size: 96px; line-height: 96px; letter-spacing: -0.03em; margin-top: 8px; color: var(--fg); }
.chosen .big.empty { font-size: 48px; line-height: 56px; color: var(--fg-3); }
.chosen .big.empty:empty::before { content: "\2014"; }
html[lang="ar"] .chosen .big { font-family: var(--ev-font-ui); font-weight: 500; letter-spacing: 0; }
.chosen .size { font-size: 18px; line-height: 28px; color: var(--fg-2); margin-top: 8px; }
.chosen .hint { font-size: 14px; line-height: 20px; color: var(--fg-3); margin-top: 16px; max-width: 36ch; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer .brand img { width: 144px; }
.site-footer p { font-size: 14px; line-height: 20px; margin-top: 16px; max-width: 32ch; }
.site-footer h2 { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg); margin-bottom: 12px; }
.site-footer li { font-size: 14px; line-height: 20px; margin-bottom: 8px; color: var(--fg-2); }
.site-footer a { text-decoration: none; transition: color var(--ev-fast) var(--ev-ease); }
.site-footer a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { margin-top: 16px; }
/* Our events: event logos on light tiles, so dark marks (SIHOD) stay legible on the night footer */
.footer-events { margin-top: 40px; }
.footer-events ul { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.site-footer .footer-events li { margin: 0; }
.footer-logo {
  display: flex; align-items: center; height: 64px; padding: 8px 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow var(--ev-fast) var(--ev-ease), transform var(--ev-fast) var(--ev-ease);
}
/* The Nour Expo badge is a circle on black corners: it is clipped to the circle and sits on the footer directly */
.footer-logo--round { width: 64px; padding: 0; background: none; border-radius: 50%; overflow: hidden; box-shadow: none; }
.footer-logo img { display: block; height: 100%; width: auto; max-width: none; }
.site-footer a.footer-logo:hover { box-shadow: inset 0 0 0 2px var(--ev-magenta); transform: translateY(-2px); text-decoration: none; }
.site-footer a.footer-logo--round:hover { box-shadow: 0 0 0 2px var(--ev-magenta); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 14px; line-height: 20px; color: var(--fg-3); }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1180px) {
  .site-header__row, .site-header__panel { gap: 20px; }
  .nav { gap: 18px; }
  .site-header__cta { padding: 0 16px; }
}

/* The header collapses to the menu button earlier than the page layout does: six links and the quote button
   no longer fit on one line below about 1140px. */
@media (max-width: 1140px) {
  .site-header__row { flex-wrap: wrap; gap: 0 16px; min-height: 64px; }
  .nav-toggle { display: inline-grid; }
  .site-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 8px 24px; }
  .site-header.is-open .site-header__panel { display: flex; }
  .nav { flex-direction: column; gap: 0; margin: 0; width: 100%; font-size: 18px; line-height: 24px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 0; }
  .nav__group { width: 100%; }
  .nav__trigger { width: 100%; padding: 12px 0; font-size: 18px; line-height: 24px; pointer-events: none; border-bottom: 0; }
  .nav__trigger::after { display: none; }
  .nav__menu { display: block; position: static; min-width: 0; padding: 0; padding-inline-start: 16px; background: none; box-shadow: none; }
  .nav__menu a { padding: 10px 0; font-size: 16px; }
  .nav__menu a:hover, .nav__menu a[aria-current="page"] { background: none; }
  .site-header__cta { width: 100%; }
  .site-header--photo.is-open { background: var(--ev-night); }
  .no-js .site-header__panel { display: flex; }
}

@media (max-width: 1000px) {
  .eventhero--contact { --w2: 0.72; --w3: 0.48; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .about__media { max-width: 560px; }
  .pagehead__grid, .split, .contact-split, .booking, .showcase { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .headsplit { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .audiences { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .audiences--three .audience__photo img { aspect-ratio: 16 / 9; }
  .points--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .headsplit__media { min-height: 0; aspect-ratio: 3 / 2; }
  .brandindex { margin-top: 48px; }
  .brandindex__list { grid-auto-columns: 88px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .brandindex__list li { scroll-snap-align: start; }
  .showcase { gap: 16px; }
  .showcase__panels { min-height: 0; aspect-ratio: 4 / 3; }
  .split--flip > :first-child { order: 0; }
  .record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .section, .band { padding-block: 88px; }
  .about__media { padding-bottom: 56px; padding-inline-end: 40px; }
  .about__media::before { inset-block: -12px 44px; inset-inline: -12px 52px; }
  .about__photo--inset { box-shadow: 0 0 0 8px var(--raised); }
  .section--tight { padding-block: 64px; }
  .section--flush-top { padding-top: 0; }
  .section-head { margin-bottom: 48px; }
  .audience__body, .audiences--three .audience__body { padding: 24px; }
  .day { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 32px; }
  .day__date { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 16px; }
  .day__num { font-size: 56px; }
  .day__who { grid-column: 1 / -1; margin-top: 0; }
  .sessions li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .zones { margin-top: 48px; }
  .points--cols { grid-template-columns: minmax(0, 1fr); }
  .why__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .why__list li { max-width: none; font-size: 20px; line-height: 28px; }
  .sector { min-height: 144px; padding: 20px; gap: 24px; }
  .reason { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding-block: 24px; align-items: start; }
  .reason::before { grid-row: 1 / span 2; font-size: 36px; }
  .reason h3 { font-size: 20px; line-height: 28px; }
  .reason p { grid-column: 2; }
  .eventhero { padding-block: 64px 56px; }
  .eventhero--contact { --w1: 0.88; --w2: 0.78; --w3: 0.62; --v1: 0.5; --v2: 0.3; min-height: 0; padding-block: 72px; }
  html[dir="rtl"] .eventhero--contact .eventhero__copy { margin-right: 0; }
  .eventhero__meta { flex-direction: column; align-items: flex-start; gap: 0; }
  .eventhero__meta p + p::before { display: none; }
  .countdown--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 0; }
  .countdown--hero > div { padding-block: 20px 24px; border-top: 1px solid var(--hair-strong); }
  .countdown--hero > div + div { padding-inline-start: 0; border-inline-start: 0; }
  .countdown--hero > div:nth-child(even) { padding-inline-start: 20px; border-inline-start: 1px solid var(--hair-strong); }
  .closing { padding-bottom: 88px; }
  .closing__panel { padding: 40px 24px; }
  .edition { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date status" "place place"; gap: 16px; align-items: start; }
  .edition__days { font-size: 40px; }
  .pagehead { padding-block: 16px 88px; }
  .title { font-size: 28px; line-height: 36px; }
  .hero { min-height: 640px; padding-top: 120px; }
  .hero::before, html[dir="rtl"] .hero::before { background: linear-gradient(180deg, rgba(23, 13, 20, 0.72) 0, rgba(23, 13, 20, 0.5) 22%, rgba(23, 13, 20, 0.9) 48%, rgba(23, 13, 20, 0.96) 100%); }
  .hero__copy { padding-bottom: 96px; }
  .hero__controls { inset-inline-end: 16px; bottom: 32px; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rows--hover li { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-inline: -16px; padding-inline: 16px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-block { padding: 24px 16px; }
  .sheet__head { padding: 16px 16px 0; }
  .plan-wrap { padding: 16px; }
  .booking { padding: 24px 16px; }
  .chosen .big { font-size: 72px; line-height: 72px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .tier { padding: 24px; }
  .showcase__tab { padding: 16px; gap: 16px; font-size: 18px; line-height: 26px; }
}
@media (max-width: 480px) {
  .cols, .record { grid-template-columns: minmax(0, 1fr); }
  .headsplit .actions .btn { width: 100%; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .record > div, .cols > div { padding: 20px; }
  .pillar__icon { margin-bottom: 24px; }
  .entry__photos { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { width: auto; flex-wrap: wrap; }
  .ticker__set { flex-wrap: wrap; gap: 24px 48px; }
  .ticker__set[aria-hidden="true"] { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  .loader { transition: opacity 250ms var(--ev-ease), visibility 0s !important; }
  .loader.is-hidden { transition: opacity 450ms var(--ev-ease), visibility 0s linear 450ms !important; }
  .loader::before { animation: ev-load 2s ease-in-out infinite !important; }
  /* The slideshow still plays; it only cross-fades, with no zoom. */
  .hero__slide { transition: opacity 1000ms var(--ev-ease) !important; }
  .hero__text { transition: opacity 1000ms var(--ev-ease), visibility 0s linear 1000ms !important; }
  .hero__text.is-active { transition: opacity 1000ms var(--ev-ease), visibility 0s !important; }
  .hero__slide img, .hero__slide.is-active img { transform: none !important; }
}
