/* Homepage only. The remaining pages keep their original hero behavior. */
.home-intro { border:0; margin:0; padding:30px 24px; width:100%; height:100%; max-width:none; max-height:none; overflow-y:auto; overscroll-behavior:contain; background:#171e1b; color:#e5e1d8; }
.home-intro[open] { display:grid; place-items:center; }
.home-intro::backdrop { background:#171e1b; }
.intro-inner { width:min(580px,100%); min-width:0; margin-block:auto; text-align:center; animation:intro-arrive .35s ease-out; }
.intro-identity { display:flex; align-items:center; justify-content:center; gap:22px; margin-bottom:40px; }
.intro-identity .brand-mark { transform:scale(1.35); }
.intro-identity .brand-name { font-size:28px; color:#e5e1d8; }
.intro-inner .eyebrow { justify-content:center; font-size:.875rem; }
.intro-inner .eyebrow::before { display:none; }
.intro-inner h2 { font-size:clamp(33px,6vw,58px); line-height:1.07; letter-spacing:-.045em; margin:28px 0; }
.intro-status { font-size:.875rem; line-height:1.6; color:#b5bdb3; margin-bottom:18px; }
.intro-inner progress { display:block; width:150px; height:2px; margin:auto; border:0; background:#ffffff20; appearance:none; }
.intro-inner progress[hidden] { display:none; }
.intro-inner progress::-webkit-progress-bar { background:#ffffff20; }
.intro-inner progress::-webkit-progress-value { background:#c5aa80; transition:width .15s; }
.intro-inner progress::-moz-progress-bar { background:#c5aa80; }
.intro-language-prompt { margin:32px 0 16px; color:#b5bdb3; font-size:.875rem; line-height:1.5; letter-spacing:.1em; text-transform:uppercase; }
.intro-languages { direction:ltr; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:420px; margin-inline:auto; }
.intro-language { min-height:54px; padding:12px 8px; border:1px solid #e5e1d838; border-radius:3px; font-size:14px; transition:background .2s,border-color .2s,color .2s; }
.intro-language[lang=ar] { font-family:Tahoma,Arial,sans-serif; font-size:17px; }
.intro-language:hover,.intro-language:focus-visible { border-color:#c5aa80; background:#c5aa8014; color:#eed8b5; }
@media (max-height: 540px) {
  .intro-identity { margin-bottom:20px; }
  .intro-inner h2 { font-size:33px; margin:20px 0; }
  .intro-language-prompt { margin-top:24px; }
}
@keyframes intro-arrive { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none} }
.home-scroll.is-active { height: 250svh; }
.home-scroll.is-active .group-hero { position: sticky; top: 0; }
.home-scroll .group-hero { height: 100svh; min-height: 640px; max-height: none; }
.home-scroll .hero-media img { animation: none; object-position: 60% center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.home-scroll.has-frame .hero-canvas { opacity: 1; }
.hero-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #ffffff18; }
.hero-progress::after { content: ''; display: block; height: 100%; background: #dfc394; transform: scaleX(var(--hero-progress, 0)); transform-origin: left; }
.home-scroll .hero-content { padding-top: clamp(165px, 23svh, 260px); }
@media (max-width: 600px) {
  .home-scroll.is-active { height: 215svh; }
  .home-scroll .hero-content { padding-top: max(155px, 20svh); }
  .home-scroll .hero-media img { object-position: 60% center; }
}
@media (max-height: 680px) and (min-width: 601px) {
  .home-scroll .group-hero { min-height: 520px; }
  .home-scroll .hero-content { padding-top: 125px; }
  .home-scroll .hero-title { font-size: 70px; margin: 18px 0; }
  .home-scroll .hero-actions { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-scroll.is-active { height: auto; }
  .home-scroll.is-active .group-hero { position: relative; }
  .hero-canvas, .hero-progress { display: none; }
}
@media(max-height:540px) {
  .home-intro { padding:16px 24px; }
  .intro-identity { margin-bottom:12px; }
  .intro-identity .brand-logo { width:180px; }
  .intro-inner h2 { font-size:28px; margin:12px 0; }
  .intro-status { margin-bottom:8px; }
  .intro-language-prompt { margin:16px 0 10px; }
  .intro-language { min-height:44px; padding:8px; }
}
/* Centered opening and editorial story dialog. */
.home-scroll .hero-content{text-align:center}
.home-scroll .hero-content>.eyebrow{justify-content:center}
.home-scroll .hero-description{margin-inline:auto;max-width:420px}
.home-scroll .hero-actions{justify-content:center;align-items:center;flex-direction:row}
.story-dialog{position:fixed;inset:0;margin:auto;width:min(820px,calc(100% - 40px));max-height:calc(100svh - 48px);padding:0;border:1px solid #bca47b55;background:#e8e3d8;color:#242d26;overscroll-behavior:contain;box-shadow:0 30px 100px #0006}
.story-dialog::backdrop{background:#101a16b8;backdrop-filter:blur(10px)}
.story-shell{padding:clamp(32px,6vw,68px);position:relative}
.story-close{position:absolute;inset-block-start:16px;inset-inline-end:16px;width:44px;height:44px;border:1px solid #29372c33;border-radius:50%;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.story-close:hover{background:#29372c0d}
.story-close:focus-visible,.hero-actions button:focus-visible{outline:2px solid #b69a67;outline-offset:5px}
.story-shell>.eyebrow{color:#6b695c;margin-bottom:22px}
.story-shell h2{font-family:var(--serif,'Instrument Serif',serif);font-size:clamp(58px,8vw,86px);line-height:1.05;font-weight:400;letter-spacing:-.04em;margin:0 0 14px}
.story-shell h2 em{color:#7e6948;font-weight:400}
.story-intro{font-size:1rem;line-height:1.7;color:#565e53;margin-bottom:32px}
.story-sections section{display:grid;grid-template-columns:32px 1fr;gap:18px;border-top:1px solid #29372c26;padding:26px 0}
.story-sections section:last-child{padding-bottom:0}
.story-number{font-size:10px;letter-spacing:.12em;color:#8b7654;padding-top:10px}
.story-sections h3{font-family:var(--serif,'Instrument Serif',serif);font-size:34px;font-weight:400;line-height:1.2;margin-bottom:12px}
.story-sections p{font-size:1rem;line-height:1.7;color:#565e53;max-width:58ch}
body.story-open{overflow:hidden}
@media(max-width:600px){.story-dialog{width:calc(100% - 24px);max-height:calc(100svh - 24px)}.story-shell{padding:52px 24px 32px}.story-sections section{grid-template-columns:24px 1fr;gap:10px}.story-sections h3{font-size:30px}.home-scroll .hero-description{max-width:310px}}
/* Keep the story scrollable without a visible scrollbar. */
.story-dialog{scrollbar-width:none;-ms-overflow-style:none}
.story-dialog::-webkit-scrollbar{display:none;width:0;height:0}

/* Portrait frames have their scene composition baked in. Match the static poster. */
.home-scroll .group-hero::after{background:linear-gradient(180deg,#1019154d,#10191588 35%,#10191577 70%,#101915aa)}
@media(max-width:600px){.home-scroll .hero-media img{object-position:50% center}}
