/* hero-program.css — opening, program (what / why / how), reflection + official report, footer */

/* ================================================================ HERO */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 150px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(32px, 5vw, 96px);
  max-width: none;
}
.hero__media {        /* the portrait photograph, framed as an iwan arch */
  position: relative; grid-column: 2; grid-row: 1; justify-self: center; align-self: center;
  width: min(100%, 520px); aspect-ratio: 3 / 4; border-radius: var(--r-arch); overflow: hidden;
  box-shadow: var(--shadow-exhibit), 0 0 0 1px rgba(214,182,122,.28);
  animation: hero-media 2.2s var(--ease-out) both .2s;
}
.hero__media::after {  /* thin inner gold arch line */
  content: ""; position: absolute; inset: 10px; border-radius: var(--r-arch); border: 1px solid rgba(220,192,138,.35); pointer-events: none;
}
.hero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; animation: hero-kenburns 26s var(--ease-io) both; }
.hero__veil {          /* blurred echo of the photograph filling the screen */
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 72% 45%, rgba(184,146,79,.16), transparent 70%),
    radial-gradient(100% 80% at 20% 100%, rgba(90,25,32,.18), transparent 60%),
    linear-gradient(180deg, #0A0908 0%, #0D0B09 60%, #0A0908 100%);
}
[dir="rtl"] .hero__veil { transform: scaleX(-1); }
.hero__calligraphy {
  position: absolute; z-index: -1; inset-block-start: 50%; inset-inline-start: -2vw; transform: translateY(-50%);
  font-family: var(--f-callig); font-size: clamp(9rem, 26vw, 26rem); line-height: .9; color: var(--gold); opacity: .055;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.hero__content { grid-column: 1; grid-row: 1; display: grid; gap: clamp(18px, 2.4vw, 30px); max-width: 52rem; position: relative; z-index: 1; }
.hero__kicker { animation: rise 1.2s var(--ease-out) both .35s; }
.hero__title {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2.8rem, 5.4vw, 6.2rem); line-height: var(--lh-display); letter-spacing: -.012em; color: var(--ivory);
  text-wrap: balance; animation: rise 1.6s var(--ease-out) both .5s;
}
html:lang(ar) .hero__title { font-weight: 700; font-size: clamp(2.6rem, 5.6vw, 5.6rem); letter-spacing: 0; }
.hero__line { font-size: var(--t-lead); line-height: 1.6; color: var(--ivory-2); max-width: 36rem; animation: rise 1.4s var(--ease-out) both .75s; }
.hero__route {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-block-start: 8px; padding-block-start: 22px;
  border-block-start: 1px solid var(--line); animation: rise 1.4s var(--ease-out) both .95s;
}
.hero__route-stop { display: inline-flex; align-items: center; font: 400 .82rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-2); }
html:lang(ar) .hero__route-stop { font-family: var(--f-text); text-transform: none; letter-spacing: 0; font-size: .98rem; }
.hero__route-stop + .hero__route-stop::before { content: ""; inline-size: 5px; block-size: 5px; margin-inline: 14px; border-radius: 50%; background: var(--gold); opacity: .85; }
.hero__cue {
  position: absolute; inset-block-end: 28px; inset-inline-start: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px;
  text-decoration: none; color: var(--ivory-2); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; min-height: 44px;
  animation: rise 1.2s var(--ease-out) both 1.4s;
}
[dir="rtl"] .hero__cue { transform: translateX(50%); }
html:lang(ar) .hero__cue { letter-spacing: 0; font-size: .9rem; }
.hero__cue-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.6s var(--ease-io) infinite; transform-origin: top; }
.hero__cue:hover { color: var(--gold-hi); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes hero-media { from { opacity: 0; clip-path: inset(100% 0 0 0 round 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes hero-kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: end; padding: 0 0 118px; min-height: 100svh; }
  .hero__route { padding-block-start: 16px; }
  .hero__route-stop { font-size: .72rem; }
  .hero__media {
    grid-column: 1; grid-row: 1; position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; z-index: -1;
  }
  .hero__media::after { inset: auto 0 0; height: 78%; border: 0; border-radius: 0; background: linear-gradient(180deg, transparent, rgba(10,9,8,.72) 40%, #0A0908 92%); }
  .hero__img { object-position: 60% 30% !important; }
  .hero__content { grid-row: 1; padding-inline: var(--gutter); gap: 16px; }
  .hero__calligraphy { inset-block-start: 22%; font-size: 44vw; opacity: .08; }
  .hero__cue { inset-block-end: 18px; }
}

/* ================================================================ PROGRAM */
.program { padding-block-start: clamp(96px, 12vw, 180px); }
.program__what { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.program__intro .prose { font-size: var(--t-body); }
.program__intro .prose .lead { margin-block-end: .3em; }
.program__intro .source-note { margin-block-start: 28px; }
.program__figure { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 14px; }
.program__frame { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-arch); box-shadow: var(--shadow-exhibit); position: relative; }
.program__frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(220,192,138,.3); border-radius: var(--r-arch); pointer-events: none; }
.program__img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.4s var(--ease-out); }
.program__figure:hover .program__img { transform: scale(1.03); }

.program__why { margin-block-start: clamp(96px, 12vw, 180px); }
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); counter-reset: goal; }
.goals__item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: baseline;
  padding-block: 26px; border-block-start: 1px solid var(--line);
}
.goals__item:nth-last-child(-n+2) { border-block-end: 1px solid var(--line); }
.goals__n { font: 400 1.9rem/1 var(--f-display-en); color: var(--gold); font-style: italic; }
.goals__text { font-family: var(--f-display); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--ivory); }
html:lang(ar) .goals__text { line-height: 1.9; font-size: clamp(1.1rem, 1.4vw, 1.3rem); }

.program__how { margin-block-start: clamp(96px, 12vw, 170px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 110px); }
.program__method .subhead__title, .program__highlights .subhead__title { margin-block-end: 26px; }
.highlights { display: grid; }
.highlights li {
  position: relative; padding-block: 14px; padding-inline-start: 26px; border-block-start: 1px solid var(--line); color: var(--ivory-2); line-height: 1.6;
}
.highlights li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 1.45em; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }

@media (max-width: 900px) {
  .program__what, .program__how { grid-template-columns: 1fr; }
  .program__figure { position: relative; top: 0; order: -1; max-width: 420px; }
  .goals { grid-template-columns: 1fr; }
  .goals__item:nth-last-child(2) { border-block-end: 0; }
}

/* ================================================================ INTERLUDE (full-bleed program moment) */
.interlude { position: relative; margin-block: 0 clamp(64px, 9vw, 120px); display: grid; place-items: center; overflow: hidden; }
.interlude__frame { width: min(560px, 86vw); aspect-ratio: 3 / 4; overflow: hidden; box-shadow: var(--shadow-exhibit); }
.interlude__frame img { width: 100%; height: 100%; object-fit: cover; }
.interlude figcaption { margin-block-start: 14px; text-align: center; }

/* ================================================================ REFLECTION */
.reflection { overflow: hidden; padding-block-end: clamp(80px, 10vw, 140px); }
.reflection__calligraphy {
  position: absolute; inset-block-start: 8%; inset-inline-end: -4vw; z-index: -1;
  font-family: var(--f-callig); font-size: clamp(8rem, 24vw, 24rem); line-height: 1; color: var(--gold); opacity: .06; pointer-events: none; white-space: nowrap;
}
.reflection__body { display: grid; gap: 28px; }
.reflection__body .section-head { margin-block-end: 8px; }
.reflection__value { max-width: 52rem; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.55; }
html:lang(ar) .reflection__value { line-height: 1.95; }
.reflection__conclusion { margin-block-start: 4px; }
.reflection__body .subhead__title { margin-block-start: 36px; }

.report-card { margin-block-start: clamp(64px, 8vw, 110px); }
.report-card__inner {
  position: relative; display: grid; gap: 16px; padding: clamp(28px, 4vw, 56px); max-width: 58rem;
  background: var(--spot), linear-gradient(180deg, var(--char-2), var(--char)); border: 1px solid var(--line-2);
}
.report-card__inner::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; }
.report-card__title { display: grid; gap: 6px; }
.report-card__title-ar { font-family: var(--f-display-ar); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.45; color: var(--ivory); }
.report-card__title-en { font-family: var(--f-display-en); font-style: italic; font-size: var(--t-h3); color: var(--gold-hi); }
.report-card__subtitle { font-size: var(--t-lead); color: var(--ivory); }
.report-card__meta { font: 400 .8rem/1.5 var(--f-mono); letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
html:lang(ar) .report-card__meta { font-family: var(--f-text); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.report-card__note { color: var(--mute); font-size: var(--t-small); }
.report-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 10px; position: relative; }

/* ================================================================ FOOTER */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 64px 48px; background: #080706; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 40px; }
.site-footer__title { font-family: var(--f-display); font-size: var(--t-h3); color: var(--ivory); margin-block-end: 12px; line-height: 1.3; }
.site-footer__note { color: var(--mute); font-size: var(--t-small); max-width: 34rem; }
.site-footer__nav ul { display: grid; gap: 6px; margin-block-start: 16px; }
.site-footer__nav a { text-decoration: none; color: var(--ivory-2); display: inline-block; padding-block: 4px; }
.site-footer__nav a:hover { color: var(--gold-hi); }
.site-footer__meta { display: grid; gap: 22px; align-content: start; }
.site-footer__osm { font-size: .8rem; color: var(--mute); }
.site-footer__osm a { color: var(--ivory-2); }
.site-footer__top { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-hi); text-decoration: none; min-height: 44px; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }
