/* The Family at the Heart of Social Transformations — palette sampled from the A5 brochure */
:root {
  /* Brand palette — "Brand proposal: مؤتمر الأسرة" */
  --teal-900: #0A3838;
  --teal-800: #0F4C4C;   /* deep teal — trust & stability */
  --teal-500: #5A8F8A;   /* soft teal — balance & adaptability */
  --sage-500: #5A8F8A;
  --sage-300: #A8B799;   /* muted green — growth */
  --sage-200: #DCE2D2;
  --beige:    #E2C9AB;   /* warm beige — family warmth */
  --cream:    #F8F7F3;   /* white — clarity */
  --white:    #ffffff;
  --ink:      #173434;
  --muted:    #55706C;
  --danger:   #b3412f;

  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .9);
  --radius: 20px;
  --shadow: 0 18px 44px -22px rgba(10, 56, 56, .38);
  --shadow-sm: 0 6px 18px -10px rgba(10, 56, 56, .35);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Brand typeface: Cairo (Black / SemiBold); Tajawal ExtraBold for the Arabic title */
  --font-body: "Cairo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Cairo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ar: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-ar-title: "Tajawal", "Cairo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body,
html[lang="ar"] .section-title,
html[lang="ar"] .hero__title,
html[lang="ar"] .session__title,
html[lang="ar"] .btn { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: var(--teal-500); }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
main, .footer { position: relative; z-index: 1; }

/* ---------- one continuous, animated background: the brand's layered patterns ---------- */
.page-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #FBFAF6 0%, var(--cream) 45%, #F5EEE2 100%);
}
.page-bg > * { position: absolute; pointer-events: none; }

/* One brand wave pattern along the bottom, gently swaying */
.wave {
  left: -15%; right: -15%;
  background: url("../img/bg/waves-a.png") center bottom / 100% 100% no-repeat;
  transform-origin: 50% 100%; will-change: transform;
}
.wave--l1 { bottom: -6vh; height: 32vh; min-height: 200px; opacity: 1;
  animation: waveA 18s ease-in-out infinite alternate; }
@keyframes waveA   { from { transform: translateX(-3%) scaleY(.95); }  to { transform: translateX(3%) scaleY(1.05); } }

/* Aurora: large soft brand-colour glows drifting very slowly.
   Gradients fade to transparent on their own (no live blur), and only transforms animate — cheap on phones. */
.aurora { inset: 0; overflow: hidden; }
.aurora__glow {
  position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  will-change: transform; mix-blend-mode: multiply;
}
.g1 { left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(90,143,138,.34) 0%, rgba(90,143,138,.14) 35%, transparent 68%);
      animation: aur1 40s ease-in-out infinite alternate; }
.g2 { right: -20vmax; top: -8vmax; background: radial-gradient(circle, rgba(168,183,153,.45) 0%, rgba(168,183,153,.18) 38%, transparent 70%);
      animation: aur2 46s ease-in-out infinite alternate; }
.g3 { left: 18vw; bottom: -30vmax; background: radial-gradient(circle, rgba(226,201,171,.55) 0%, rgba(226,201,171,.22) 40%, transparent 70%);
      animation: aur3 42s ease-in-out infinite alternate; }
.g4 { right: 8vw; bottom: -18vmax; width: 46vmax; height: 46vmax; background: radial-gradient(circle, rgba(15,76,76,.18) 0%, rgba(15,76,76,.06) 40%, transparent 70%);
      animation: aur4 50s ease-in-out infinite alternate; }
.g5 { left: 30vw; top: 10vh; width: 38vmax; height: 38vmax; background: radial-gradient(circle, rgba(242,231,215,.9) 0%, rgba(242,231,215,.35) 40%, transparent 70%);
      mix-blend-mode: normal; animation: aur5 36s ease-in-out infinite alternate; }
@keyframes aur1 { 50% { transform: translate(8vw, 7vh) scale(1.08); } 100% { transform: translate(3vw, 14vh) scale(.96); } }
@keyframes aur2 { 50% { transform: translate(-10vw, 8vh) scale(.95); } 100% { transform: translate(-4vw, 15vh) scale(1.06); } }
@keyframes aur3 { 50% { transform: translate(10vw, -7vh) scale(1.08); } 100% { transform: translate(-6vw, -4vh) scale(.98); } }
@keyframes aur4 { 50% { transform: translate(-12vw, -8vh) scale(1.1); } 100% { transform: translate(-5vw, -14vh) scale(1); } }
@keyframes aur5 { 50% { transform: translate(-7vw, 10vh) scale(1.12); opacity: .7; } 100% { transform: translate(8vw, 4vh) scale(.95); opacity: .85; } }
/* Dot motif from the brand pack: drifts very slowly, no spinning */
.motif { background-repeat: no-repeat; background-size: contain; will-change: transform; }
.motif--halftone { width: 250px; height: 250px; top: 9vh; right: -55px; background-image: url("../img/bg/dots-halftone.png"); opacity: .55;
  animation: float 26s ease-in-out infinite; }
/* Arabic mirrors the English layout: line art on the right, dots on the left */
html[dir="rtl"] .motif--halftone { right: auto; left: -55px; }
@media (max-width: 760px) {
  .motif--halftone { width: 150px; height: 150px; top: 64px; right: -60px; opacity: .45; }
  html[dir="rtl"] .motif--halftone { right: auto; left: -60px; }
  .wave--l1 { height: 24vh; }
}
@keyframes float { 50% { transform: translateY(-14px); } }

/* Text that sits directly on the background gets a soft cream halo for legibility */
.divider, .section-head, .register__intro, .footer__inner p { text-shadow: 0 0 18px rgba(248,247,243,.95), 0 0 4px rgba(248,247,243,.9); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: translate .3s var(--ease-out), background .2s, color .2s, box-shadow .2s;
}
.btn:focus-visible { outline: 3px solid var(--sage-300); outline-offset: 2px; }
.btn--primary { background: var(--teal-800); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--ghost { border-color: var(--teal-800); color: var(--teal-800); background: rgba(255,255,255,.5); }
.btn--block { width: 100%; padding-block: 1rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn::after {   /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  translate: -120% 0; transition: translate .7s var(--ease-out);
}
.btn--ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(90,143,138,.18) 50%, transparent 70%); }
.btn:active { scale: .97; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header: sits at the top of the page and scrolls away with it ---------- */
:root { --header-h: 72px; }
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); }
.site-header__inner {
  display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; height: 100%;
  width: min(1240px, 100% - 48px); margin-inline: auto;
}
.site-nav__list { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 .95rem;
  color: var(--teal-800); font-weight: 600; font-size: .92rem; text-decoration: none; border-radius: 999px;
  transition: color .25s, background-color .25s;
}
.site-nav__link::after {   /* understated underline on hover */
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 7px; height: 1.5px; border-radius: 2px;
  background: var(--beige); transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.site-nav__cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 1.15rem; margin-inline-start: .4rem;
  border-radius: 999px; background: var(--teal-800); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none;
  box-shadow: 0 8px 18px -12px rgba(10,56,56,.8); transition: background-color .25s, translate .3s var(--ease-out);
}
@media (hover: hover) {
  .site-nav__link:hover { color: var(--teal-500); }
  .site-nav__link:hover::after { transform: scaleX(1); }
  .site-nav__cta:hover { background: #1d6b69; translate: 0 -1px; }
}
html[lang="ar"] .site-nav__link, html[lang="ar"] .site-nav__cta { font-family: var(--font-ar); font-size: 1rem; }

.lang { display: inline-flex; direction: ltr; }   /* EN | AR never swap places */
.lang__btn {
  display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .8rem 0 .6rem;
  border: 1px solid rgba(15,76,76,.22); border-radius: 999px; background: rgba(255,255,255,.55); color: var(--teal-800);
  font: 700 .8rem/1 var(--font-body); letter-spacing: .04em; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
/* only the other language is offered: on the English page you see "AR", on the Arabic page "EN" */
.lang__btn.is-active { display: none; }
@media (hover: hover) { .lang__btn:hover { background: #fff; border-color: var(--teal-500); } }
.flag { width: 20px; height: 13px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

/* mobile menu button: two lines that become a cross */
.site-header__toggle {
  display: none; position: relative; width: 42px; height: 42px; border: 1px solid rgba(15,76,76,.22); border-radius: 50%;
  background: rgba(255,255,255,.6); color: var(--teal-800); cursor: pointer;
}
.site-header__toggle i, .site-header__toggle i::before {
  position: absolute; left: 12px; right: 12px; height: 1.8px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.site-header__toggle i { top: 17px; }
.site-header__toggle i::before { content: ""; left: 0; right: 0; top: 6px; }
.site-header__toggle[aria-expanded="true"] i { top: 20px; transform: rotate(45deg); }
.site-header__toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .site-header__inner { width: calc(100% - 32px); gap: .6rem; }
  .site-header__toggle { display: block; }
  .lang__btn { height: 42px; }
  .site-nav {
    position: absolute; top: calc(100% + 6px); inset-inline: 12px; padding: .6rem;
    background: rgba(250,248,243,.97); border: 1px solid rgba(15,76,76,.1); border-radius: 18px;
    box-shadow: 0 24px 50px -24px rgba(10,56,56,.55);
    opacity: 0; translate: 0 -8px; visibility: hidden; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out), visibility 0s .3s;
  }
  .site-header.menu-open { background-color: rgba(250,248,243,.97); }
  .site-header.menu-open .site-nav { opacity: 1; translate: 0 0; visibility: visible; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav__link { display: flex; height: 50px; padding: 0 1rem; font-size: 1rem; }
  .site-nav__link::after { left: 1rem; right: auto; width: 24px; bottom: 12px; }
  html[dir="rtl"] .site-nav__link::after { left: auto; right: 1rem; }
  .site-nav__cta { display: flex; justify-content: center; height: 50px; margin: .35rem 0 0; font-size: 1rem; }
}

/* ---------- shared ---------- */
section { padding: 4.5rem 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .75rem;
  color: var(--sage-500); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 700;
  font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.2; color: var(--teal-800);
}
html[lang="ar"] .section-title { font-weight: 800; line-height: 1.35; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center .section-lead { margin-inline: auto; }

.divider { display: flex; align-items: center; gap: .75rem; width: min(340px, 80%); margin: 1.25rem auto; color: var(--sage-500); }
.divider span { flex: 1; height: 1px; background: currentColor; opacity: .6; }
.divider i { font-style: normal; font-size: 1.1rem; }

/* Translucent "glass" surface used by every block, so the single background flows through */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- hero (centered) ---------- */
.hero { padding: calc(var(--header-h) + 3.25rem) 0 2rem; }
.hero__inner { display: flex; justify-content: center; min-height: min(70vh, 620px); align-items: center; }
.hero__content { width: min(1000px, 100%); text-align: center; }

/* The UAE family photograph (uae-family.webp: sharp, its left/right/top edges already faded).
   It never sits behind text, so it can be shown nearly at full strength; the feet fade into the waves.
   Phones & tablets: its own space, centred below the buttons. */
.hero__photo {
  position: relative; z-index: 0; display: block; width: min(560px, 100%); aspect-ratio: 1400 / 1059; margin: 1.5rem auto 0;
  background: url("../img/bg/uae-family.webp") center bottom / contain no-repeat;
  opacity: .45; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 92%);
}
/* Desktop: anchored to the content, in the corner below the details panel and beside the buttons, running off the
   right edge — no face ever sits behind the panel or a button. Same place in Arabic as in English. */
@media (min-width: 861px) {
  .hero__content { position: relative; }
  .hero__photo {
    --photo-w: min(500px, 34vw);
    position: absolute; margin: 0; top: calc(100% - 146px); width: var(--photo-w);
    /* the whole family inside the screen: its right edge meets the window edge, but never further left than the buttons */
    left: max(70%, calc(100% + (100vw - 100%) / 2 - var(--photo-w) * .97));
  }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .hero__photo { --photo-w: 30vw; }   /* small laptops: a little smaller, so the whole family fits beside the buttons */
}
.hero::before {   /* warm ivory veil behind the text block: content always reads first */
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: radial-gradient(60% 52% at 50% 40%, rgba(250,248,243,.78), rgba(250,248,243,.35) 60%, rgba(250,248,243,0) 85%);
}

.hero__logos { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-bottom: 2.4rem; direction: ltr; }
.hero__logos { --logo-h: 52px; }
.hero__logos img { height: var(--logo-h); width: auto; }
/* the TRENDS Group file carries a 6px transparent margin (912×274 around 900×262 artwork): scale it up to match */
.hero__logos img:first-child, .footer__logos img:first-child { height: calc(var(--logo-h) * 274 / 262); margin-block: calc(var(--logo-h) * -6 / 262); }
.hero__logos-sep { width: 1px; height: 42px; background: linear-gradient(180deg, transparent, var(--sage-300) 20% 80%, transparent); }

.hero__kicker {
  margin: 0 0 .9rem; color: var(--sage-500); font-weight: 700;
  font-size: clamp(.8rem, 1.4vw, .95rem); letter-spacing: .16em; text-transform: uppercase;
}
html[lang="ar"] .hero__kicker { letter-spacing: 0; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero__title { margin: 0; font-family: var(--font-display); }
.hero__title-1, .hero__title-2 { display: block; margin-inline: auto; text-wrap: balance; }
.hero__title-1 {
  max-width: 26ch; color: var(--teal-800); font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3.75rem); line-height: 1.08; letter-spacing: -.018em;
}
.hero__title-2 {
  max-width: 26ch; margin-top: .1em; color: var(--teal-500); font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.75rem); line-height: 1.08; letter-spacing: -.018em;
}
html[lang="ar"] .hero__title-1, html[lang="ar"] .hero__title-2 { font-family: var(--font-ar-title); font-weight: 800; letter-spacing: 0; }
html[lang="ar"] .hero__title-1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.2; }
html[lang="ar"] .hero__title-2 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.2; margin-top: .05em; }
.hero .divider { width: min(220px, 60%); margin: 1.6rem auto 0; }

/* Title hover: light sweeps across line 1, line 2 deepens with a beige underline, the ✦ below turns */
.hero__title { cursor: default; transition: transform .6s var(--ease-out); }
.hero__title-1, .hero__title-2 { position: relative; width: fit-content; }
.hero__title-1 {
  background: linear-gradient(110deg, var(--teal-800) 0 38%, #7fb3a8 47%, #E2C9AB 50%, #7fb3a8 53%, var(--teal-800) 62% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.4s cubic-bezier(.45, 0, .2, 1);
}
html[dir="rtl"] .hero__title-1 { background-position: 0 0; }
.hero__title-2 { transition: color .45s; }
.hero__title-2::after {
  content: ""; position: absolute; left: 50%; bottom: -.12em; height: 2px; width: 0; translate: -50% 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--beige), #C9A86A, var(--beige), transparent);
  transition: width .7s var(--ease-out);
}
.hero .divider i { display: inline-block; transition: transform .8s var(--ease-out), color .4s; }
.hero .divider span { transition: opacity .4s; }
/* TRENDS logos hover: lift with a soft glow; the separator grows */
.hero__logos img { transition: transform .45s var(--ease-out), filter .45s; }
.hero__logos-sep { transition: height .45s var(--ease-out), background .45s; }
@media (hover: hover) {
  .hero__title:hover { transform: translateY(-3px); }
  .hero__title:hover .hero__title-1 { background-position: 0 0; }
  html[dir="rtl"] .hero__title:hover .hero__title-1 { background-position: 100% 0; }
  .hero__title:hover .hero__title-2 { color: var(--teal-800); }
  .hero__title:hover .hero__title-2::after { width: 70%; }
  .hero__title:hover + .divider i { transform: rotate(180deg) scale(1.35); color: #C9A86A; }
  .hero__title:hover + .divider span { opacity: 1; }
  .hero__logos img:hover { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 10px 14px rgba(15,76,76,.22)); }
  .hero__logos:hover .hero__logos-sep { height: 56px; background: var(--beige); }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.event-band, .hero__cta { position: relative; z-index: 1; }   /* always above the family photo when they meet */

/* Hero call-to-action buttons */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem; height: 58px; border-radius: 999px;
  font: 800 1rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s;
}
html[lang="ar"] .cta { font-family: var(--font-ar); font-size: 1.08rem; }
.cta:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cta--primary {
  padding: 0 .45rem 0 1.9rem; color: #fff;
  background: linear-gradient(135deg, #1d6b69, var(--teal-800) 55%, var(--teal-900));
  box-shadow: inset 0 0 0 1px rgba(226,201,171,.55), inset 0 0 0 4px var(--teal-800), inset 0 0 0 5px rgba(226,201,171,.35),
              0 16px 30px -14px rgba(10,56,56,.8);
}
html[dir="rtl"] .cta--primary { padding: 0 1.9rem 0 .45rem; }
.cta--primary::after {   /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  translate: -110% 0; transition: translate .8s var(--ease-out);
}
.cta__badge {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, #f3dfc4, var(--beige)); color: var(--teal-900);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); transition: transform .45s var(--ease-out), background .3s;
}
html[dir="rtl"] .cta__badge svg { scale: -1 1; }

.cta--glass {
  padding: 0 1.8rem 0 1.4rem; color: var(--teal-800);
  background: rgba(255,255,255,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(15,76,76,.35), inset 0 0 0 4px rgba(255,255,255,.5), inset 0 0 0 5px rgba(226,201,171,.7),
              0 12px 24px -16px rgba(10,56,56,.55);
}
html[dir="rtl"] .cta--glass { padding: 0 1.4rem 0 1.8rem; }
.cta__icon { display: grid; place-items: center; color: var(--teal-500); transition: transform .45s var(--ease-out), color .3s; }
.cta--glass .cta__label {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px;
  transition: background-size .4s var(--ease-out);
}
html[dir="rtl"] .cta--glass .cta__label { background-position: 100% 100%; }

@media (hover: hover) {
  .cta:hover { translate: 0 -3px; }
  .cta--primary:hover { box-shadow: inset 0 0 0 1px rgba(226,201,171,.8), inset 0 0 0 4px var(--teal-800), inset 0 0 0 5px rgba(226,201,171,.6), 0 22px 36px -14px rgba(10,56,56,.85); }
  .cta--primary:hover::after { translate: 110% 0; }
  .cta--primary:hover .cta__badge { transform: translateX(5px) rotate(-8deg); background: #fff; }
  html[dir="rtl"] .cta--primary:hover .cta__badge { transform: translateX(-5px) rotate(8deg); }
  .cta--glass:hover { background-color: rgba(255,255,255,.8); }
  .cta--glass:hover .cta__icon { transform: rotate(-10deg) scale(1.12); color: var(--teal-800); }
  .cta--glass:hover .cta__label { background-size: 100% 1.5px; }
}
.cta:active { scale: .98; }


/* Date / time / location: compact see-through "invitation band" */
.event-band {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center;
  margin: .9rem auto 2.1rem; padding: 1.1rem 1rem; max-width: 820px; border-radius: 18px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(255,255,255,.7), rgba(255,255,255,0) 70%),
    rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -28px rgba(10,56,56,.55);
}
.event-band::before, .event-band::after {   /* beige corner brackets */
  content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--beige); pointer-events: none;
}
.event-band::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.event-band::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.event-band__item {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon main" "icon sub";
  column-gap: .8rem; align-items: center; justify-content: center; text-align: start;
  padding: .2rem .9rem; transition: translate .45s var(--ease-out);
}
.event-band__icon {
  grid-area: icon; position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; background: linear-gradient(145deg, var(--teal-500), var(--teal-800));
  box-shadow: 0 8px 16px -8px rgba(10,56,56,.7); transition: transform .45s var(--ease-out);
}
.event-band__icon::after {   /* dashed beige ring, slowly turning */
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.3px dashed var(--beige);
  animation: ringTurn 40s linear infinite;
}
@keyframes ringTurn { to { rotate: 360deg; } }
.event-band__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.event-band__label { grid-area: label; color: #2D6763; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; line-height: 1.3; }
html[lang="ar"] .event-band__label { letter-spacing: 0; font-size: .86rem; }
.event-band__main { grid-area: main; color: var(--teal-800); font-size: 1rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
html[lang="ar"] .event-band__main { font-size: 1.08rem; }
.event-band__sub { grid-area: sub; color: var(--muted); font-size: .85rem; line-height: 1.4; white-space: nowrap; }
.event-band__link {
  position: relative; color: #8a6a43; font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out);
}
html[dir="rtl"] .event-band__link { background-position: 100% 100%; }
.event-band__link::before { content: ""; position: absolute; inset: -12px -10px; }   /* invisible 44px+ tap area, no layout change */
.event-band__link:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: 3px; }
.event-band__div { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-band__div::before, .event-band__div::after { content: ""; flex: 1; width: 1px; background: linear-gradient(180deg, transparent, var(--beige)); }
.event-band__div::after { background: linear-gradient(180deg, var(--beige), transparent); }
.event-band__div i { font-style: normal; color: #b79068; font-size: .62rem; padding: .3rem 0; }
@media (hover: hover) {
  .event-band__item:hover { translate: 0 -3px; }
  .event-band__item:hover .event-band__icon { transform: rotate(-10deg) scale(1.08); }
  .event-band__link:hover { background-size: 100% 1px; }
}
/* Phones: three neat rows (icon beside text), not a tall stack */
@media (max-width: 760px) {
  .event-band { grid-template-columns: 1fr; max-width: 420px; padding: .5rem .9rem; margin: 1.5rem auto 1.75rem; border-radius: 16px; }
  .event-band__item { justify-content: start; padding: .75rem .25rem; }
  .event-band__div { flex-direction: row; align-self: auto; }
  .event-band__div::before, .event-band__div::after { width: auto; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(226,201,171,.9)); }
  .event-band__div::after { background: linear-gradient(90deg, rgba(226,201,171,.9), transparent); }
  .event-band__div i { padding: 0 .5rem; }
  .event-band__main, .event-band__sub { white-space: normal; }
}


/* ---------- agenda: transparent, modern-classic session cards ---------- */
.sessions { display: grid; gap: 0; }
/* See-through panels: the animated background stays visible behind every session */
.session.glass {
  display: grid; grid-template-columns: 112px 1fr; overflow: hidden;
  background: rgba(255, 255, 255, .34); backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 40px -30px rgba(10,56,56,.45);
  border-radius: 6px;                                      /* classic, crisp corners */
}
.session__num {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding-top: 2rem;
  border-inline-end: 1px solid rgba(15,76,76,.18);
  color: var(--teal-800); font: 900 2.6rem/1 var(--font-display); letter-spacing: -.02em;
  transition: color .4s;
}
.session__num::after { content: ""; width: 26px; height: 2px; background: var(--beige); transition: width .45s var(--ease-out); }
.session__time {   /* programme time above the session number */
  order: -1; margin-bottom: .2rem; padding: .3rem .55rem; border-radius: 999px;
  background: rgba(90,143,138,.12); color: var(--teal-800);
  font: 700 .74rem/1 var(--font-body); letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* Registration, breaks and closing: compact rows on the same timeline */
.agenda-slot {
  display: grid; grid-template-columns: 112px 1fr; align-items: center; min-height: 64px;
  border: 1px dashed rgba(15,76,76,.22); border-radius: 6px; background: rgba(255,255,255,.22);
}
.agenda-slot__time {
  align-self: stretch; display: grid; place-items: center; border-inline-end: 1px dashed rgba(15,76,76,.18);
  color: var(--teal-800); font: 700 .8rem/1.2 var(--font-body); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.agenda-slot__body { display: flex; align-items: center; gap: .75rem; padding: .9rem 2.25rem; }
.agenda-slot__icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  color: #8a6a43; background: rgba(226,201,171,.35);
}
.agenda-slot__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.agenda-slot__label { color: var(--teal-800); font-weight: 700; font-size: 1.05rem; }
html[lang="ar"] .agenda-slot__label { font-size: 1.12rem; }
@media (max-width: 760px) {
  .agenda-slot { grid-template-columns: 1fr; }
  .agenda-slot__time { display: block; padding: .8rem 1.25rem 0; border: 0; text-align: left; }
  html[dir="rtl"] .agenda-slot__time { text-align: right; }
  .agenda-slot__body { padding: .5rem 1.25rem .9rem; }
  .session__time { order: 1; margin: 0 0 0 .25rem; }
  html[dir="rtl"] .session__time { margin: 0 .25rem 0 0; }
}
.session__body { padding: 2rem 2.25rem 2.25rem; }
.session__kind {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .6rem;
  color: var(--teal-500); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.session__kind::before { content: ""; width: 22px; height: 1px; background: currentColor; }
html[lang="ar"] .session__kind { letter-spacing: 0; font-size: .9rem; }
.session__title { margin: 0; font: 800 clamp(1.35rem, 2.4vw, 1.8rem)/1.25 var(--font-display); color: var(--teal-800); transition: color .3s; }
html[lang="ar"] .session__title { line-height: 1.5; }
.session__subtitle { margin: .35rem 0 0; color: var(--teal-500); font-weight: 600; }
.session__desc { margin: 1rem 0 0; color: var(--ink); opacity: .85; max-width: 82ch; }

/* Speakers first, moderator last — each group under its own heading */
.people-group { margin-top: 1.75rem; }
.people-group + .people-group { margin-top: 2rem; }
.people-group__title {
  display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem;
  color: var(--teal-800); font-size: .78rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
}
html[lang="ar"] .people-group__title { letter-spacing: 0; font-size: 1rem; }
.people-group__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(90,143,138,.18); flex-shrink: 0; }
.people-group__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(15,76,76,.25), transparent); }
html[dir="rtl"] .people-group__title::after { background: linear-gradient(270deg, rgba(15,76,76,.25), transparent); }
.people-group--hosts .people-group__title { color: #8a6a43; }
.people-group--hosts .people-group__title::before { background: var(--beige); box-shadow: 0 0 0 4px rgba(226,201,171,.35); }

/* Speaker cards: transparent with hairline frame */
.people {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, 180px); grid-auto-rows: 1fr; gap: 1rem;   /* fixed narrow, equal-height tiles */
}
.person {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.4rem .8rem 1.3rem; border-radius: 6px; min-height: 236px;   /* taller, upright cards */
  background: rgba(255, 255, 255, .32);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.person::after {   /* beige accent rule that grows on hover */
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 2px; translate: -50% 0;
  background: var(--beige); transition: width .45s var(--ease-out);
}
.person__photo {
  width: 92px; height: 92px; flex-shrink: 0; border-radius: 50%; overflow: hidden; margin-bottom: .85rem;
  background: linear-gradient(160deg, var(--sage-200), var(--sage-300));
  border: 3px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(15,76,76,.25);
}
.person--moderator .person__photo, .person--mc .person__photo { box-shadow: 0 0 0 1.5px var(--beige); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.person__photo img.person__photo-image--show-more { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; }
.person__photo img.person__photo-image--cover { object-fit: cover; object-position: center 15%; }
.person__photo img.person__photo-image--zoom-in { transform: scale(1.1); }
.person__photo img.person__photo-image--fine-tune { transform: translate(2px, 2px) scale(.98); }
.person__photo img.person__photo-image--shift-down { transform: translateY(6px) scale(1.05); }
.person__photo svg { width: 100%; height: 100%; fill: var(--white); opacity: .9; }
.person__initials { display: grid; place-items: center; height: 100%; color: var(--teal-800); font: 800 1.6rem/1 var(--font-display); }
.person__role { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-500); }
html[lang="ar"] .person__role { letter-spacing: 0; font-size: .8rem; }
.person--moderator .person__role, .person--mc .person__role { color: #9a7a52; }   /* deeper beige for contrast */
.person__name { margin-top: .25rem; color: var(--teal-800); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.person__title { margin-top: .35rem; color: var(--ink); opacity: .78; font-size: .76rem; line-height: 1.5; }
html[lang="ar"] .person__name { font-size: 1.02rem; }
html[lang="ar"] .person__title { font-size: .86rem; }

/* ---------- partners ---------- */
.partner-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.partner { display: grid; place-items: center; height: 140px; padding: 1.4rem 2rem; background: rgba(255,255,255,.55); border-radius: 16px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.partner img { max-height: 84px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(.35); opacity: .9; }
.partner .partner__logo--UAEU-Logo { width: 100%; height: 84px; max-height: none; object-fit: cover; object-position: center; }
.partner .partner__logo--ayc { max-height: 92px; }
.partner .partner__logo--fca_logo { transform: scale(1.25); }

/* ---------- registration ---------- */
.register { padding-bottom: 6rem; }
.register__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.register__intro { position: sticky; top: 80px; }
.register__facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .9rem; }
.register__facts li { display: flex; gap: .8rem; align-items: center; font-weight: 600; color: var(--teal-800); }
.register__facts svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--sage-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.reg-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem;
  padding: 2.25rem; background: rgba(255,255,255,.5); border-radius: 20px;
  border: 1px solid rgba(255,255,255,.85); border-top: 3px solid var(--teal-800);
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -32px rgba(10,56,56,.5);
}
.reg-card__title { grid-column: 1 / -1; margin: 0 0 .25rem; font: 700 1.4rem/1.2 var(--font-display); color: var(--teal-800); }
html[lang="ar"] .reg-card__title { font-family: var(--font-ar); font-weight: 800; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--teal-800); }
.field em { color: var(--danger); font-style: normal; }
.field input, .field select {
  width: 100%; padding: .8rem .95rem; border-radius: 12px; border: 1.5px solid var(--sage-200);
  background: rgba(255,255,255,.65); color: var(--ink); font: 500 .95rem var(--font-body);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
html[lang="ar"] .field input:not([dir="ltr"]), html[lang="ar"] .field select { font-family: var(--font-ar); font-size: 1rem; }
html[lang="ar"] .field input[dir="ltr"] { text-align: right; }
.field input:hover, .field select:hover { border-color: var(--sage-300); }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal-500); background: var(--white); box-shadow: 0 0 0 4px rgba(90,143,138,.15); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); background: #fdf3f1; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--teal-800); flex-shrink: 0; }
.check.is-invalid { color: var(--danger); }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: .9rem; font-weight: 600; }
.form-msg.is-error { color: var(--danger); }
.reg-card .btn--block { grid-column: 1 / -1; }
/* Honeypot: hidden without an off-screen offset (a -9999px offset becomes scrollable overflow in RTL) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.reg-success {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; background: transparent; border-radius: 24px;
}
/* after registering: the whole card turns see-through and only the thank-you message remains */
.reg-card.is-done { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.85); border-top: 3px solid var(--teal-800); }
.reg-card.is-done > :not(.reg-success) { visibility: hidden; }
.reg-card.is-done .reg-success p { color: var(--teal-800); }
.reg-success[hidden] { display: none; }
.reg-success__icon {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--teal-800); color: var(--white); font-size: 2.2rem; animation: pop .5s cubic-bezier(.2,1.6,.4,1);
}
.reg-success h3 { margin: 0 0 .5rem; color: var(--teal-800); font-size: 1.6rem; }
.reg-success p { margin: 0; color: var(--muted); max-width: 40ch; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- footer: brand wave band ---------- */
.footer {
  position: relative; z-index: 1; color: var(--teal-800); text-align: center; font-size: .9rem; overflow: hidden;
  background: none;   /* no band, no line: the footer sits on the same background as the page */
}
.footer__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 2.5rem 0 calc(26vh + 1rem); }   /* room for the wave: the page ends on it */
.footer__logos { display: flex; align-items: center; gap: 1.75rem; margin-bottom: .9rem; direction: ltr; }
.footer__logos { --logo-h: 46px; }
.footer__logo { height: var(--logo-h); width: auto; transition: transform .4s var(--ease-out); }
.footer__sep { width: 1px; height: 38px; background: linear-gradient(180deg, transparent, rgba(15,76,76,.35), transparent); }
.footer p { margin: 0; }
.footer__copy { font-size: .78rem; opacity: .7; letter-spacing: .04em; }

/* ---------- hover animations ----------
   Lifts use the `translate` property (not `transform`) so they never fight the scroll-reveal transform. */
.glass, .person, .reg-card, .person::after {
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s,
              background-color .45s var(--ease-out), backdrop-filter .45s, -webkit-backdrop-filter .45s;
}
.glass::before {   /* cursor-following spotlight (position set by main.js) */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(90,143,138,.12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.person__photo, .person__photo img, .partner img,
.register__facts svg, .person__name {
  transition: transform .45s var(--ease-out), background .35s, color .3s, box-shadow .35s, filter .35s, opacity .35s;
}

@media (hover: hover) {
  /* cards turn see-through on hover so the flowing background shows through */
  .glass:hover {
    translate: 0 -6px;
    background-color: rgba(255,255,255,.28);
    backdrop-filter: blur(8px) saturate(1.3); -webkit-backdrop-filter: blur(8px) saturate(1.3);
    border-color: rgba(255,255,255,.95);
    box-shadow: 0 26px 50px -24px rgba(10,56,56,.5), 0 0 0 1px rgba(90,143,138,.18), inset 0 1px 0 rgba(255,255,255,.9);
  }
  .glass:hover::before { opacity: 1; }
  .session.glass:hover { translate: 0 -3px; background-color: rgba(255,255,255,.26); backdrop-filter: none; -webkit-backdrop-filter: none; }   /* stays see-through */
  .partner.glass:hover { background-color: rgba(255,255,255,.75); }
  .reg-card:hover {
    background-color: rgba(255,255,255,.62);
    box-shadow: 0 1px 0 #fff inset, 0 30px 60px -30px rgba(10,56,56,.55);
  }

  .btn:hover { translate: 0 -2px; }
  .btn:hover::after { translate: 120% 0; }
  .btn--primary:hover { background: var(--teal-500); box-shadow: 0 12px 24px -12px rgba(15,76,76,.7); }
  .btn--ghost:hover { background: var(--teal-800); color: var(--white); }




  .session:hover .session__num { color: var(--teal-500); } .session:hover .session__num::after { width: 52px; }
  .session:hover .session__title { color: var(--teal-500); }

  .person:hover { translate: 0 -5px; background-color: rgba(255,255,255,.24); border-color: #fff; box-shadow: 0 16px 30px -18px rgba(10,56,56,.5), 0 1px 0 #fff inset; } .person:hover::after { width: 60%; }
  .person:hover .person__photo { box-shadow: 0 0 0 2px var(--beige), 0 10px 20px -8px rgba(90,143,138,.55); transform: scale(1.04); }
  .person:hover .person__photo img { transform: scale(1.1); }
  .person:hover .person__name { color: var(--teal-500); }

  .partner:hover img { filter: none; opacity: 1; transform: scale(1.07); }
  .register__facts li:hover svg { transform: translateY(-3px) scale(1.15); stroke: var(--teal-500); }
  .footer__logo:hover { transform: translateY(-3px); opacity: 1; }
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-soft), filter 1s var(--ease-soft), translate .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s, background-color .45s var(--ease-out), backdrop-filter .45s; }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .register__grid { grid-template-columns: 1fr; }
  .register__intro { position: static; }
}
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--header-h) + 2.25rem); }
  .hero__inner { min-height: 0; }
  .hero__title-1 { font-size: 2.6rem; }
  .hero__title-2 { font-size: 2.6rem; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .session { grid-template-columns: 1fr; }
  .session__num { justify-content: flex-start; padding: .9rem 1.5rem; font-size: 1.5rem; }
  .session__body { padding: 1.5rem; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  section { padding: 3rem 0; }
  .hero__cta { flex-direction: column; align-items: stretch; width: min(340px, 100%); margin-inline: auto; }
  .cta { height: 54px; }
  .reg-card { grid-template-columns: 1fr; padding: 1.5rem; }
  .people { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .person__photo { width: 74px; height: 74px; }
  .partner { height: 120px; padding: 1rem; }
  .partner img { max-height: 64px; }
  .footer__logos { flex-direction: column; gap: 1rem; }
}

/* ---------- phone-friendly refinements (kept last so they win) ---------- */
@media (max-width: 760px) {
  section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  .section-title { font-size: 1.75rem; }

  /* hero: both logos on one row, as large as the width allows */
  .hero { padding-top: calc(var(--header-h) + 1.75rem); }
  .hero__logos { flex-wrap: nowrap; gap: .85rem; margin-bottom: 1.75rem; }
  .hero__logos { --logo-h: clamp(28px, 8.6vw, 40px); }
  .hero__logos img { min-width: 0; }
  .hero__logos-sep { height: 30px; }
  .hero__title-1 { font-size: clamp(1.85rem, 8.4vw, 2.6rem); max-width: 14ch; }
  .hero__title-2 { font-size: clamp(1.85rem, 8.4vw, 2.6rem); }
  html[lang="ar"] .hero__title-1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  html[lang="ar"] .hero__title-2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero .divider { margin-top: 1.25rem; }

  /* sessions: number on top, content full width */
  .session.glass { grid-template-columns: 1fr; }
  .session__num { flex-direction: row; justify-content: flex-start; gap: .75rem; padding: 1.1rem 1.25rem 0; border-inline-end: 0; font-size: 2rem; }
  .session__num::after { width: 34px; }
  .session__body { padding: .6rem 1.25rem 1.5rem; }
  .session__desc { font-size: .95rem; }

  /* speaker tiles become readable rows: photo beside name & title */
  .people { grid-template-columns: 1fr; gap: .6rem; }
  .person {
    display: grid; grid-template-columns: 62px 1fr; grid-template-areas: "photo role" "photo name" "photo title";
    column-gap: .9rem; align-items: center; justify-items: start; text-align: start; padding: .75rem .9rem;
  }
  .person__photo { grid-area: photo; width: 62px; height: 62px; margin: 0; align-self: center; }
  .person__role { grid-area: role; }
  .person__name { grid-area: name; margin-top: 0; }
  .person__title { grid-area: title; margin-top: .15rem; }
  .person::after { left: 0; translate: 0 0; }
  html[dir="rtl"] .person::after { left: auto; right: 0; }

  /* footer logos on one row, like the hero */
  .footer__logos { flex-direction: row; gap: .8rem; }
  .footer__logos { --logo-h: 30px; }
  .footer__sep { height: 26px; }
  .footer p { font-size: .82rem; padding-inline: .5rem; }
}

/* ---------- finishing touches ---------- */
::selection { background: rgba(90,143,138,.28); color: var(--teal-900); }
html { scrollbar-width: thin; scrollbar-color: rgba(15,76,76,.45) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,76,76,.35); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(15,76,76,.55); }
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 3px; }
@media (max-width: 760px) { .footer__inner { padding-bottom: calc(20vh + 1rem); } }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; grid-auto-rows: auto; } .person { min-height: 0; } }

/* ======================================================================
   Motion layer — staged hero entrance, layered depth, connected-network
   motif, blur-rise reveals, staggered cards and a programme timeline.
   ====================================================================== */
:root { --ease-soft: cubic-bezier(.16, 1, .3, 1); }

/* reading-progress bar */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress i {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-800), var(--teal-500) 55%, #C9A86A);
}
html[dir="rtl"] .scroll-progress i { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--teal-800), var(--teal-500) 55%, #C9A86A); }


/* ---- hero: staged entrance ---- */
/* Quick, quiet and staggered: everything is in place within ~1.2s; opacity + transform only (no layout shift) */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes photoIn { from { opacity: 0; transform: translateY(18px); } }   /* ends at the photo's own opacity */
.js .hero__photo { animation: photoIn 1.4s var(--ease-soft) .45s backwards; }
.js .hero__logos { animation: riseIn .7s var(--ease-soft) 0s backwards; }
.js .hero__kicker { animation: riseIn .7s var(--ease-soft) .05s backwards; }
.js .hero__title-1 { animation: riseIn .8s var(--ease-soft) .1s backwards; }
.js .hero__title-2 { animation: riseIn .8s var(--ease-soft) .2s backwards; }
.js .hero .divider span { animation: lineGrow .9s var(--ease-soft) .3s backwards; }
.js .hero .divider span:first-child { transform-origin: 100% 50%; }
.js .hero .divider span:last-child { transform-origin: 0 50%; }
.js .hero .event-band { animation: riseIn .8s var(--ease-soft) .3s backwards; }
.js .hero .event-band__item { animation: riseIn .7s var(--ease-soft) backwards; }
.js .hero .event-band__item:nth-child(1) { animation-delay: .38s; }
.js .hero .event-band__item:nth-child(3) { animation-delay: .46s; }
.js .hero .event-band__item:nth-child(5) { animation-delay: .54s; }
.js .hero__cta { animation: riseIn .8s var(--ease-soft) .4s backwards; }
.js .site-header { animation: headerIn .7s var(--ease-soft) backwards; }
@keyframes ctaSheen { 0%, 78% { translate: -110% 0; } 100% { translate: 110% 0; } }
.js .cta--primary:not(:hover)::after { animation: ctaSheen 7s ease-in-out 3s infinite; }
@keyframes headerIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* layered depth: main.js moves these with the pointer and scroll (via `translate`) */
.aurora, .motif--halftone, .wave--l1 { will-change: translate; }

/* ---- section headings: lines rise in one after another, accent lines draw ---- */
.js .section-head.reveal { opacity: 1; transform: none; filter: none; }
.js .section-head > * { opacity: 0; transform: translateY(20px); filter: blur(6px);
  transition: opacity .9s var(--ease-soft), transform 1s var(--ease-soft), filter .9s var(--ease-soft); }
.js .section-head.is-visible > * { opacity: 1; transform: none; filter: none; }
.js .section-head.is-visible > :nth-child(2) { transition-delay: .12s; }
.js .section-head.is-visible > :nth-child(3) { transition-delay: .24s; }
.js .section-head .eyebrow::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-soft) .35s; }
html[dir="rtl"] .js .section-head .eyebrow::before, .js[dir="rtl"] .section-head .eyebrow::before { transform-origin: 100% 50%; }
.js .section-head.is-visible .eyebrow::before { transform: scaleX(1); }
.js .section-head .divider span { transform: scaleX(0); transition: transform 1.1s var(--ease-soft) .4s; }
.js .section-head .divider span:first-child { transform-origin: 100% 50%; }
.js .section-head .divider span:last-child { transform-origin: 0 50%; }
.js .section-head.is-visible .divider span { transform: scaleX(1); }

/* ---- staggered cards (index set by main.js as --i) ---- */
.js .partner.reveal {
  --d: calc(var(--i, 0) * 90ms);
  transition: opacity 1s var(--ease-soft) var(--d), transform 1.1s var(--ease-soft) var(--d), filter 1s var(--ease-soft) var(--d),
              translate .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .45s var(--ease-out), border-color .3s;
}
.js .session .person {
  --d: calc(var(--i, 0) * 75ms + .25s);
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease-soft) var(--d), transform .9s var(--ease-soft) var(--d),
              translate .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s, background-color .45s var(--ease-out);
}
.js .session.is-visible .person { opacity: 1; transform: none; }
.person__photo img { transition: transform .6s var(--ease-soft); }

/* ---- programme timeline: a thread that draws between consecutive sessions ---- */
.session-link { position: relative; height: 46px; }
.session-link::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 56px; width: 2px; margin-inline-start: -1px; border-radius: 2px;
  background: linear-gradient(180deg, var(--teal-500), #C9A86A);
  transform: scaleY(0); transform-origin: 50% 0; transition: transform 1s var(--ease-soft);
}
.session-link::after {   /* small node where the thread meets the next session */
  content: ""; position: absolute; bottom: -1px; inset-inline-start: 56px; width: 9px; height: 9px; margin-inline-start: -4.5px; border-radius: 50%;
  background: #F8F7F3; box-shadow: 0 0 0 2px #C9A86A; opacity: 0; transform: scale(.4);
  transition: opacity .5s ease .7s, transform .6s var(--ease-soft) .7s;
}
.session-link.is-visible::before { transform: scaleY(1); }
.session-link.is-visible::after { opacity: 1; transform: none; }
.session__num { transition: color .4s; }

/* ---- calls to action and form ---- */
.reg-card { transition: translate .45s var(--ease-out), box-shadow .5s var(--ease-soft), background-color .45s var(--ease-out), border-color .4s; }
.reg-card:focus-within { background-color: rgba(255,255,255,.66); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(90,143,138,.28), 0 34px 70px -34px rgba(10,56,56,.6); }
.field input, .field select { transition: border-color .25s, box-shadow .35s var(--ease-soft), background .25s, translate .3s var(--ease-soft); }
.field input:focus, .field select:focus { translate: 0 -1px; }

@media (max-width: 760px) {
  .session-link { height: 34px; }
  .session-link::before, .session-link::after { inset-inline-start: 2.55rem; }
  .js .reveal { filter: none !important; }     /* lighter work on phones */
  .js .section-head > * { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .section-head > *, .js .session .person { opacity: 1; transform: none; filter: none; transition: none; }
  .js .section-head .eyebrow::before, .js .section-head .divider span, .session-link::before { transform: none; transition: none; }
  .session-link::after { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
}

/* ---------- Flowing family artwork — first screen only; ribbons flow, light travels, family breathes ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }
.family-flow {
  position: absolute; z-index: 0; left: 0; top: 0; height: 100%; width: auto; aspect-ratio: 520 / 900;
  pointer-events: none; overflow: visible; opacity: .34;   /* subtle background accent */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent);
  transition: opacity .6s var(--ease-soft);
}
.family-flow .rb, .family-flow .fg { stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .6s var(--ease-soft), opacity .6s, filter .6s; }
.family-flow .rb--gold { stroke: url(#ffGold); stroke-width: 1.5; }
.family-flow .rb--sage { stroke: url(#ffSage); stroke-width: 1.3; }
.family-flow .rb--teal { stroke: url(#ffTeal); stroke-width: 1; opacity: .7; }
.family-flow .rb--fine, .family-flow .rb--fine2 { stroke: url(#ffGold); stroke-width: .9; opacity: .6; }
.family-flow .fg { stroke-width: 1.6; }
.family-flow .fg--teal { stroke: url(#ffTeal); }
.family-flow .fg--gold { stroke: url(#ffGold); }
.family-flow .fg--sage { stroke: url(#ffSage); }
.family-flow .ff-light {
  stroke: #F2E1BE; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: .55;
  animation: ffTravel 10s linear infinite;
}
@keyframes ffTravel { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.family-flow .ff-family { transform-box: fill-box; transform-origin: 50% 90%; animation: ffBreathe 9s ease-in-out infinite; }
@keyframes ffBreathe { 50% { transform: translateY(-6px) scale(1.012); } }
@media (prefers-reduced-motion: reduce) { .family-flow .ff-light { display: none; } .family-flow .ff-family { animation: none; } }
@media (max-width: 1100px) { .family-flow { opacity: .3; } }
@media (max-width: 760px)  { .family-flow { display: none; } }

/* lines carrying on from the artwork, below the buttons, across to the far side */
.hero { padding-bottom: 9rem; }   /* room for the lines under the buttons */
.hero-lines {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: 1.25rem; width: 100%; height: 7rem; pointer-events: none; overflow: visible;   /* the band below the buttons */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, rgba(0,0,0,.35)); mask-image: linear-gradient(90deg, #000 0, #000 88%, rgba(0,0,0,.35));
}
.hero-lines .hl { stroke-linecap: round; }
.hero-lines .hl--gold { stroke: #C9A86A; stroke-width: 1.3; opacity: .45; }
.hero-lines .hl--sage { stroke: #8FAA94; stroke-width: 1.1; opacity: .4; }
.hero-lines .hl--teal { stroke: #2D6763; stroke-width: .8; opacity: .28; }
.hero-lines .hl-light {
  stroke: #F2E1BE; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: .5;
  filter: drop-shadow(0 0 3px rgba(226,201,171,.6)); animation: ffTravel 11s linear infinite;
}
@media (max-width: 760px) { .hero-lines { height: 5rem; bottom: .75rem; opacity: .6; } .hero { padding-bottom: 6.5rem; } }
/* Desktop: room below the buttons for the family in the corner. Phones & tablets: the photo is in the flow, little extra needed. */
@media (min-width: 861px) { .hero { padding-bottom: 16rem; } }
@media (max-width: 860px) { .hero { padding-bottom: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .hero-lines .hl-light { display: none; } }

/* Phones: a compact details panel, and the family photo given its own space below the buttons
   (instead of hiding behind the panel) */
@media (max-width: 760px) {
  .event-band { padding: .2rem .85rem; margin: .9rem auto 1.4rem; }
  .event-band__item { padding: .5rem .1rem; column-gap: .75rem; }
  .event-band__icon { width: 36px; height: 36px; }
  .event-band__icon::after { inset: -4px; }
  .event-band__icon svg { width: 18px; height: 18px; }
  .event-band__main { font-size: .98rem; line-height: 1.25; }
  .event-band__sub { line-height: 1.3; }
  .event-band__div i { padding: 0 .4rem; font-size: .5rem; }

  .hero__photo { margin-top: -.75rem; }
}
