/* =========================================================
   Holcim Egypt — "Layers of Progress" immersive journey
   Milky concrete world, condensed uppercase type, blur reveals.
   ========================================================= */
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

body.journey {
  --milk: #ECE9E4;
  --milk-2: #E3DED6;
  --ink: #1B2230;
  --navy: #0A1E3F;
  --line: #C9C1B6;
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  background: var(--milk); color: var(--ink);
  overflow-x: hidden; overflow-y: auto; height: auto;
}
:root[lang="ar"] body.journey { --cond: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
body.journey.locked { overflow: hidden; height: 100%; }
.journey a { color: inherit; }

.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.spacer { pointer-events: none; }
.is-finale .gl { touch-action: none; cursor: grab; }
.is-finale .gl:active { cursor: grabbing; }
.is-stamping .gl { cursor: crosshair; }

/* ---------- preloader ---------- */
.pre {
  position: fixed; inset: 0; z-index: 100; background: var(--milk);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + .5%));
          mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + .5%));
  transition: --r 1.6s cubic-bezier(.65,0,.35,1);
}
.pre.out { --r: 150%; }
.pre__mark { width: 120px; height: 80px; fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: round; }
.pre__mark path { stroke-dasharray: 720; stroke-dashoffset: 720; animation: draw 2.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes draw { 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -720; } }
.pre__txt { margin: 0; font: 300 18px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: flex-end; gap: 4px; }
.pre__dots { display: inline-flex; gap: 3px; padding-bottom: 2px; }
.pre__dots i { width: 3px; height: 3px; border-radius: 3px; background: var(--ink); animation: dot 1.2s infinite; }
.pre__dots i:nth-child(2) { animation-delay: .2s; } .pre__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ---------- header ---------- */
.jh {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 16px clamp(16px, 4vw, 40px); color: var(--ink);
}
.jh .brand__word { letter-spacing: .16em; }
.jh__nav { margin-inline-start: auto; display: flex; gap: 22px; }
.jh__nav a, .lnk {
  font: 400 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 4px;
  transition: background-size .45s cubic-bezier(.77,0,.18,1);
}
.jh__nav a:hover, .lnk:hover { background-size: 100% 1px; }
.jh .pill { border-color: var(--line); height: 32px; font-family: var(--cond); letter-spacing: .06em; }
.jh .pill:hover { background: var(--ink); color: var(--milk); }

/* ---------- blur-in system ---------- */
.bl { opacity: 0; filter: blur(30px); transform: translateY(12px); transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s cubic-bezier(.16,1,.3,1); }
.is-ready .bl { opacity: 1; filter: none; transform: none; }
.is-ready .bl:nth-child(2) { transition-delay: .2s; } .is-ready .bl:nth-child(3) { transition-delay: .4s; } .is-ready .bl:nth-child(4) { transition-delay: .6s; }
.is-begun .hero .bl { opacity: 0; filter: blur(40px); transition-duration: 1s; transition-delay: 0s; pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; text-align: center;
  padding: 84px 16px 9vh;
}
.hero__event { margin: 0; font: 400 13px/1.4 var(--cond); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.hero__title {
  margin: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  font: 300 clamp(64px, 19vw, 230px)/.82 var(--cond); text-transform: uppercase; letter-spacing: -.01em; color: var(--ink);
  padding-block: 2vh 1vh;
}
.hero__title span:last-child { font-size: .42em; letter-spacing: .14em; color: #5d6270; }
:root[lang="ar"] .hero__title { font-weight: 300; line-height: 1.05; font-size: clamp(56px, 16vw, 190px); }
:root[lang="ar"] .hero__title span:last-child { letter-spacing: 0; font-size: .38em; }
.hero__tag { margin: 0 0 22px; font: 300 clamp(18px, 4.6vw, 26px)/1.25 var(--cond); text-transform: uppercase; letter-spacing: .04em; max-width: 26ch; }
:root[lang="ar"] .hero__tag, :root[lang="ar"] .jt__line { text-transform: none; letter-spacing: 0; }

.jbtn {
  position: relative; pointer-events: auto; min-width: 190px; height: 46px; padding: 0 26px;
  display: inline-grid; place-items: center; color: #EBE6DF; background: var(--navy);
  font: 400 15px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.jbtn::before {
  content: ""; position: absolute; inset: -6px; border: 1px solid var(--navy); opacity: .35;
  transform: scale(.96, .82); transition: transform .45s cubic-bezier(.77,0,.18,1), opacity .45s, box-shadow .45s;
}
.jbtn:hover::before, .jbtn:focus-visible::before { transform: none; opacity: 1; box-shadow: 0 0 24px rgba(148,193,46,.45); }
.jbtn--accent { background: var(--navy); }
.jbtn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.jbtn span { position: relative; }

/* ---------- scroll hint ---------- */
.jhint {
  position: fixed; z-index: 10; bottom: 28px; left: 50%; transform: translateX(-50%); margin: 0;
  font: 400 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  display: grid; justify-items: center; gap: 10px; opacity: 0; filter: blur(20px); transition: opacity 1s, filter 1s; pointer-events: none;
}
.jhint i { width: 1px; height: 36px; background: linear-gradient(var(--ink), transparent); animation: hintline 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hintline { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.show-hint .jhint { opacity: .8; filter: none; }
.show-hint.is-moving .jhint { opacity: 0; filter: blur(20px); }

/* ---------- scene texts ---------- */
.jtexts { position: fixed; z-index: 12; inset: 0; pointer-events: none; }
.jt {
  position: absolute; top: clamp(74px, 13vh, 130px); inset-inline: 0; margin: auto; width: min(760px, calc(100% - 32px));
  text-align: center; display: grid; justify-items: center; gap: 12px;
}
.jt__eye {
  margin: 0; font: 400 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center;
  opacity: 0; transition: opacity .6s;
}
.jt__eye b { font-weight: 500; color: color-mix(in srgb, var(--acc) 55%, var(--navy)); }
.jt__eye::before, .jt__eye::after { content: ""; width: 34px; height: 1px; background: var(--line); }
.jt.on .jt__eye { opacity: .9; }
.jt__line { margin: 0; font: 300 clamp(22px, 5.6vw, 40px)/1.16 var(--cond); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
:root[lang="ar"] .jt__line { font-size: clamp(21px, 5vw, 36px); line-height: 1.55; }
.jt__line .w { display: inline-block; opacity: 0; will-change: opacity, filter, transform; }
.jt__line .hl { color: color-mix(in srgb, var(--acc, #94C12E) 55%, var(--navy)); font-weight: 400; }
.jt--final .jt__line .hl { color: #4E6B1D; }
.jt__cta {
  margin-top: 6px; font: 400 14px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--acc) 60%, var(--navy));
  background: rgba(236,233,228,.6); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s, background .3s;
}
.jt.on .jt__cta { opacity: 1; transform: none; pointer-events: auto; }
.jt__cta:hover { background: var(--acc); }

/* ---------- scene dots ---------- */
.jdots {
  position: fixed; z-index: 14; inset-inline-end: clamp(12px, 3vw, 32px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 12px; opacity: 0; transition: opacity .8s; pointer-events: none;
}
.is-begun .jdots { opacity: 1; pointer-events: auto; }
.is-finale .jdots { opacity: 0; pointer-events: none; }
.jd { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; justify-content: flex-start; }
.jd i { width: 7px; height: 7px; border-radius: 7px; border: 1px solid var(--ink); opacity: .45; transition: all .4s; flex: none; }
.jd.past i { background: var(--ink); }
.jd.on i { background: var(--acc); border-color: var(--acc); opacity: 1; transform: scale(1.5); }
.jd span { font: 400 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.jd:hover span, .jd.on span { opacity: .8; }
@media (max-width: 760px) { .jd span { display: none; } }

/* ---------- customizer ---------- */
.cz { position: fixed; inset: 0; z-index: 16; pointer-events: none; }
.cz > * { opacity: 0; filter: blur(24px); transition: opacity 1.2s, filter 1.2s; }
.cz.in > * { opacity: 1; filter: none; }
.cz.in > :nth-child(2) { transition-delay: .2s; } .cz.in > :nth-child(3) { transition-delay: .35s; }
.cz.in > :nth-child(4) { transition-delay: .5s; } .cz.in > :nth-child(5) { transition-delay: .65s; }
.cz__title {
  position: absolute; top: 76px; inset-inline: 0; margin: 0; text-align: center;
  font: 300 clamp(20px, 4.6vw, 30px)/1.1 var(--cond); text-transform: uppercase; letter-spacing: .06em;
}
.cz__title::after { content: ""; display: block; width: min(420px, 70%); height: 1px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.cz__drag { position: absolute; bottom: calc(5vh + 70px); inset-inline: 0; margin: 0; text-align: center; font: 400 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; opacity: .7; transition: opacity .8s; }
.has-dragged .cz__drag { opacity: 0 !important; }
.cz__tabs, .cz__panes, .cz .jbtn, .cz .toast { pointer-events: auto; }
.cz__tabs { position: absolute; display: grid; gap: 10px; }
.tab {
  min-width: 112px; height: 34px; padding: 0 14px; background: rgba(255,255,255,.55); border: 1px solid var(--line);
  font: 400 14px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); transition: background .3s, border-color .3s;
}
.tab.on { background: #F6EBD6; border-color: #C9A867; }
.cz__panes { position: absolute; }
.pane { display: none; }
.pane.on { display: grid; animation: paneIn .5s both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.pane[data-pane="material"] { grid-template-columns: repeat(2, 64px); gap: 10px; }
.sw { display: grid; gap: 4px; justify-items: center; }
.sw i {
  width: 58px; height: 58px; border: 1px solid var(--line); transition: border-color .3s, transform .3s;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%), var(--c);
}
.sw span { font: 400 11px/1.1 var(--cond); letter-spacing: .04em; text-transform: uppercase; opacity: .75; text-align: center; }
.sw.on i { border: 2px solid #C9A867; transform: scale(1.04); }
.pane[data-pane="tint"] { align-items: center; justify-items: center; gap: 12px; }
.hue {
  -webkit-appearance: none; appearance: none; width: 220px; height: 14px; border: 1px solid var(--line); outline: none;
  background: linear-gradient(90deg, #ddd 0 3%, hsl(0,65%,55%) 3%, hsl(60,65%,55%), hsl(120,65%,55%), hsl(180,65%,55%), hsl(240,65%,55%), hsl(300,65%,55%), hsl(360,65%,55%));
}
.hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 26px; background: #fff; border: 1px solid var(--ink); cursor: grab; }
.hue::-moz-range-thumb { width: 18px; height: 26px; background: #fff; border: 1px solid var(--ink); border-radius: 0; }
.hue__lbl { min-width: 74px; min-height: 22px; padding: 2px 8px; font: 400 12px/18px var(--cond); text-transform: uppercase; letter-spacing: .08em; text-align: center; border: 1px solid var(--line); }
.stamps { display: grid; grid-template-columns: repeat(3, 50px); gap: 8px; }
.st { width: 50px; height: 50px; display: grid; place-items: center; background: rgba(255,255,255,.55); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.st svg { width: 28px; height: 28px; fill: var(--navy); stroke: var(--navy); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.st[data-stamp="spark"] svg { fill: none; }
.st.on { border: 2px solid #C9A867; background: #F6EBD6; }
.cz__note { margin: 6px 0 0; font: 400 12px/1.3 var(--cond); letter-spacing: .06em; text-transform: uppercase; opacity: .7; max-width: 170px; }
.cz__mini { display: flex; gap: 12px; }
.cz__mini button { font: 400 12px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.name { width: 230px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: rgba(255,255,255,.7); font: 400 18px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); outline: none; }
:root[lang="ar"] .name { text-transform: none; font-family: "IBM Plex Sans Arabic", sans-serif; }
.name:focus { border-color: #C9A867; }
.cz .jbtn { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5vh; }
.toast { position: absolute; left: 50%; transform: translateX(-50%); top: 128px; margin: 0; padding: 8px 14px; background: var(--navy); color: #fff; font: 400 13px/1.3 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.toast[hidden] { display: none; }
.is-sharing .cz { opacity: 0; transition: opacity .5s; }
.is-sharing .cz * { pointer-events: none !important; }

/* desktop: tabs on the start side, options on the end side */
@media (min-width: 761px) {
  .cz__tabs { inset-inline-start: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-50%); }
  .cz__panes { inset-inline-end: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-50%); }
}
/* mobile: a compact bottom dock */
@media (max-width: 760px) {
  .cz__title { top: 64px; }
  .cz__drag { bottom: calc(5vh + 238px); }
  .cz__tabs { left: 12px; right: 12px; bottom: calc(5vh + 194px); grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .tab { min-width: 0; height: 32px; padding: 0 4px; font-size: 13px; }
  .cz__panes { left: 12px; right: 12px; bottom: calc(5vh + 60px); height: 124px; display: grid; align-items: center; justify-items: center; background: rgba(255,255,255,.45); border: 1px solid var(--line); backdrop-filter: blur(8px); }
  .pane[data-pane="material"] { grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; padding: 0 8px; }
  .sw i { width: 44px; height: 44px; }
  .sw span { font-size: 10px; }
  .pane[data-pane="stamp"] { grid-template-columns: auto auto; align-items: center; gap: 4px 14px; }
  .stamps { grid-template-columns: repeat(3, 42px); gap: 6px; }
  .st { width: 42px; height: 42px; }
  .cz__note { max-width: 130px; }
  .cz__mini { grid-column: 2; }
  .toast { top: 108px; width: max-content; max-width: 90vw; }
}

/* ---------- share ---------- */
.share {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px;
  background: rgba(236,233,228,.35); backdrop-filter: blur(14px); opacity: 0; transition: opacity .6s;
}
.share.in { opacity: 1; }
.share[hidden] { display: none; }
.share__card {
  width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; text-align: center;
  background: rgba(248,246,243,.92); border: 1px solid var(--line); padding: 26px 22px 22px;
  display: grid; gap: 14px; justify-items: center; transform: translateY(20px) scale(.98); transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.share.in .share__card { transform: none; }
.share__eye { margin: 0; font: 400 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #8A6420; }
.share__title { margin: 0; font: 300 clamp(28px, 7vw, 40px)/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.share__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); background: var(--milk-2); }
.share__lede { margin: 0; font-size: 14px; line-height: 1.5; color: #5d6270; }
.share__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.share__row .jbtn { min-width: 160px; }
.share__row--sub { gap: 22px; }
.share__social { display: flex; gap: 18px; }
.share__social a { font: 400 14px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

.jproto { position: fixed; z-index: 5; bottom: 8px; inset-inline-start: 12px; margin: 0; font: 400 10px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; opacity: .45; pointer-events: none; }
.is-finale .jproto { display: none; }
.nogl { min-height: 100vh; display: grid; place-content: center; gap: 18px; justify-items: center; text-align: center; padding: 24px; }

@media (prefers-reduced-motion: reduce) {
  .bl, .cz > *, .jhint { filter: none !important; }
}

.is-finale .jt--final { opacity: 0; transition: opacity .6s; }

/* =========================================================
   In-place brochure screen (opens over the 3D scene)
   ========================================================= */
body.bp-open { overflow: hidden; }
.bp-open .jtexts, .bp-open .jdots, .bp-open .jhint, .bp-open .jproto { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s; }
.bp { position: fixed; inset: 0; z-index: 60; --ink-acc: color-mix(in srgb, var(--acc, #94C12E) 55%, #0A1E3F); }
.bp__veil {
  position: absolute; inset: 0; background: rgba(236,233,228,.38); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px);
  clip-path: circle(0px at var(--ox) var(--oy)); transition: clip-path .9s cubic-bezier(.77,0,.18,1);
}
.bp.in .bp__veil { clip-path: circle(150vmax at var(--ox) var(--oy)); }
.bp.out .bp__veil { clip-path: circle(0px at var(--ox) var(--oy)); transition-duration: .6s; }
.bp__sheet {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #F8F6F3; color: var(--ink); --acc: #94C12E;
  opacity: 0; transform: translateY(40px) scale(.97); transform-origin: 50% 100%;
  transition: opacity .6s ease .25s, transform .8s cubic-bezier(.16,1,.3,1) .2s;
  scrollbar-width: thin;
}
.bp.in .bp__sheet { opacity: 1; transform: none; }
.bp.out .bp__sheet { opacity: 0; transform: translateY(30px) scale(.98); transition-delay: 0s; transition-duration: .4s; }
@media (min-width: 900px) {
  .bp__sheet { inset: 16px; inset-inline-start: auto; width: min(780px, 62vw); border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(10,30,63,.45), 0 0 0 1px rgba(10,30,63,.06); }
}

/* sticky header: title, actions, reading progress, chapter chips */
.bp__bar { position: sticky; top: 0; z-index: 3; background: rgba(248,246,243,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(10,30,63,.07); }
.bp__row { display: flex; align-items: center; gap: 10px; padding: 12px clamp(16px, 4vw, 28px) 10px; }
.bp__num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--acc) 25%, transparent); color: var(--ink-acc); font: 600 13px/1 "Inter", sans-serif; }
.bp__title { margin: 0; flex: 1; min-width: 0; font: 500 17px/1.1 var(--cond); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[lang="ar"] .bp__title { text-transform: none; letter-spacing: 0; font-weight: 600; }
.bi { width: 20px; height: 20px; flex: none; }
.bp__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 99px; border: 1px solid rgba(10,30,63,.14); background: #fff; transition: background .25s, transform .25s; }
.bp__icon:hover { background: var(--milk-2); }
.bp__close { background: var(--navy); color: #fff; border-color: var(--navy); }
.bp__close:hover { background: #142c57; transform: rotate(90deg); }
.bp__dl { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--acc); color: var(--navy); text-decoration: none; font: 600 13px/1 "Inter", sans-serif; }
.bp__dl:hover { filter: brightness(.95); }
@media (max-width: 520px) { .bp__dl span { display: none; } .bp__dl { width: 38px; padding: 0; justify-content: center; } }
.bp__prog { display: block; height: 2px; background: rgba(10,30,63,.08); }
.bp__prog b { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .bp__prog b { transform-origin: 100% 50%; }
.bp__chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px clamp(16px, 4vw, 28px); scrollbar-width: none; }
.bp__chips::-webkit-scrollbar { display: none; }
.bpc { flex: none; height: 30px; padding: 0 13px; border-radius: 99px; border: 1px solid rgba(10,30,63,.14); font: 500 12.5px/1 "Inter", "IBM Plex Sans Arabic", sans-serif; color: var(--ink); background: transparent; transition: background .25s, color .25s, border-color .25s; }
.bpc.on, .bpc:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.bpc--take { border-color: var(--acc); }

/* hero with parallax photo */
.bp__hero { position: relative; height: clamp(280px, 52vh, 460px); overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.bp__heroimg { position: absolute; inset: -12% 0 0; background-size: cover; background-position: center; transform: scale(1.08); will-change: transform; }
.bp__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,16,34,.88), rgba(6,16,34,.25) 55%, rgba(6,16,34,.05)); }
.bp__herotxt { position: relative; z-index: 1; padding: 0 clamp(18px, 4.5vw, 34px) 26px; max-width: 640px; }
.bp__herotxt .bpe { color: var(--acc); }
.bp__h { margin: 4px 0 10px; font: 300 clamp(38px, 8vw, 64px)/.95 var(--cond); text-transform: uppercase; letter-spacing: -.005em; }
:root[lang="ar"] .bp__h { text-transform: none; font-weight: 600; line-height: 1.2; font-size: clamp(32px, 7vw, 52px); }
.bp__h em { color: var(--acc); font-style: normal; }
.bp__lede { margin: 0; font: 400 15.5px/1.6 "Inter", "IBM Plex Sans Arabic", sans-serif; opacity: .9; max-width: 48ch; }

/* body sections */
.bp__body { padding-bottom: 40px; }
.bps { padding: clamp(30px, 6vw, 52px) clamp(18px, 4.5vw, 34px) 8px; }
.bpe { margin: 0 0 10px; font: 500 12px/1 "Inter", "IBM Plex Sans Arabic", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-acc); }
:root[lang="ar"] .bpe { letter-spacing: 0; font-size: 13px; }
.bph { margin: 0 0 20px; font: 400 clamp(28px, 5.6vw, 40px)/1.02 var(--cond); text-transform: uppercase; text-wrap: balance; }
:root[lang="ar"] .bph { text-transform: none; font-weight: 600; line-height: 1.3; }
.bph em, .bpstate em { color: var(--ink-acc); font-style: normal; }
.bpstate { margin: 0; font: 300 clamp(26px, 5.4vw, 40px)/1.14 var(--cond); text-transform: uppercase; }
:root[lang="ar"] .bpstate { text-transform: none; font-weight: 400; line-height: 1.6; }
.bpstate span { display: inline; }
.bpsign { margin: 18px 0 0; color: #5d6270; line-height: 1.6; max-width: 56ch; }
.bpstats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.bpnum { margin: 0; font: 300 clamp(44px, 9vw, 64px)/1 var(--cond); direction: ltr; display: flex; align-items: baseline; gap: 2px; }
[dir="rtl"] .bpnum { justify-content: flex-end; }
.bpnum small { font-size: .45em; color: var(--ink-acc); font-weight: 500; }
.bpbar { display: block; height: 3px; margin: 10px 0; background: rgba(10,30,63,.08); }
.bpbar b { display: block; height: 100%; width: var(--w); background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.16,1,.3,1) .2s; }
[dir="rtl"] .bpbar b { transform-origin: 100% 50%; margin-inline-start: 0; margin-left: auto; }
.bpstat.is-in .bpbar b { transform: none; }
.bplabel { margin: 0; font-size: 13.5px; line-height: 1.45; color: #4a5468; }
.bpfoot { margin: 18px 0 0; font-size: 11.5px; color: #7b8190; }
.bpcards { display: grid; gap: 10px; }
.bpcard { background: #fff; border-radius: 16px; box-shadow: 0 1px 0 rgba(10,30,63,.05), 0 14px 30px -22px rgba(10,30,63,.4); overflow: hidden; }
.bpcard__head { width: 100%; display: grid; grid-template-columns: 84px 1fr 32px; gap: 14px; align-items: center; padding: 10px; text-align: start; }
.bpcard__head img { width: 84px; height: 72px; object-fit: cover; border-radius: 11px; }
.bpcard__txt { display: grid; gap: 3px; min-width: 0; }
.bpcard__txt small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-acc); font-weight: 600; }
.bpcard__txt b { font-size: 16px; line-height: 1.2; }
.bpcard__txt span { font-size: 13px; color: #5d6270; line-height: 1.4; }
.bpcard__plus { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; background: var(--milk); transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s; }
.bpcard.open .bpcard__plus { transform: rotate(45deg); background: var(--acc); }
.bpcard__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.16,1,.3,1); }
.bpcard.open .bpcard__body { grid-template-rows: 1fr; }
.bpcard__body > div { overflow: hidden; padding: 0 18px; }
.bpcard.open .bpcard__body > div { padding-bottom: 18px; }
.bpcard__body p { margin: 4px 0 12px; line-height: 1.65; font-size: 14.5px; }
.bpticks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.bpticks li { position: relative; padding-inline-start: 26px; font-size: 14px; line-height: 1.45; }
.bpticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .25em; width: 16px; height: 16px; border-radius: 99px; background: var(--acc); }
.bpfig { margin: 0; display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--milk); font-size: 13px; }
.bpfig b { font: 400 28px/1 var(--cond); color: var(--ink-acc); direction: ltr; }
.bptrack { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * clamp(18px, 4.5vw, 34px)); padding: 2px clamp(18px, 4.5vw, 34px) 6px; scroll-padding-inline: clamp(18px, 4.5vw, 34px); scrollbar-width: none; }
.bptrack::-webkit-scrollbar { display: none; }
.bpstory { flex: 0 0 78%; max-width: 360px; scroll-snap-align: start; background: var(--navy); color: #fff; border-radius: 18px; overflow: hidden; }
.bpstory img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bpstory div { padding: 14px 16px 18px; display: grid; gap: 6px; }
.bpstory small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); font-weight: 600; }
.bpstory b { font-size: 17px; line-height: 1.25; }
.bpstory p { margin: 0; font-size: 13.5px; line-height: 1.55; opacity: .8; }
.bpswipe { margin: 8px 0 0; font-size: 12px; color: #7b8190; }

/* take it with you: QR + download + next chapter */
.bps--take { padding-bottom: 24px; }
.bptake { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px -24px rgba(10,30,63,.45); }
.bptake__qr { width: 132px; height: 132px; padding: 10px; background: #fff; border: 1px solid rgba(10,30,63,.1); border-radius: 14px; }
.bptake__qr svg { width: 100%; height: 100%; display: block; }
.bptake__txt { display: grid; gap: 8px; min-width: 0; }
.bptake__txt p { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 500; }
.bptake__txt code { font-size: 11.5px; color: #7b8190; word-break: break-all; direction: ltr; text-align: start; }
.bptake__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bpbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(10,30,63,.16); background: #fff; color: var(--ink); text-decoration: none; font: 600 13px/1 "Inter", "IBM Plex Sans Arabic", sans-serif; }
.bpbtn--accent { background: var(--acc); border-color: var(--acc); color: var(--navy); }
.bpbtn--ghost { background: transparent; }
@media (max-width: 520px) { .bptake { grid-template-columns: 1fr; justify-items: center; text-align: center; } .bptake__btns { justify-content: center; } .bptake__txt code { text-align: center; } }
.bpnext {
  margin-top: 18px; width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; text-align: start;
  padding: 20px 22px; border-radius: 18px; background: var(--navy); color: #fff; transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.bpnext small { grid-column: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nacc); font-weight: 600; }
.bpnext b { grid-column: 1; font: 400 24px/1.1 var(--cond); text-transform: uppercase; }
:root[lang="ar"] .bpnext b { text-transform: none; font-weight: 600; font-size: 20px; }
.bpnext .bi { grid-column: 2; grid-row: 1 / 3; width: 28px; height: 28px; color: var(--nacc); transition: transform .35s; }
[dir="rtl"] .bpnext .bi { transform: scaleX(-1); }
.bpnext:hover { transform: translateY(-2px); }
.bpnext:hover .bi { transform: translateX(4px); }
[dir="rtl"] .bpnext:hover .bi { transform: scaleX(-1) translateX(4px); }

.bp__qrpop { position: fixed; z-index: 5; top: 72px; inset-inline-end: 24px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px -20px rgba(10,30,63,.5); display: grid; gap: 8px; justify-items: center; width: 190px; text-align: center; }
.bp__qrpop[hidden] { display: none; }
.bp__qrpop p { margin: 0; font-size: 12px; color: #5d6270; }
@media (min-width: 900px) { .bp__qrpop { position: sticky; float: right; margin: 8px 16px -200px 0; top: 120px; } [dir="rtl"] .bp__qrpop { float: left; margin: 8px 0 -200px 16px; } }

/* reveals inside the sheet */
.bpr { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--d, 0) * 80ms); }
.bpr.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bp__veil, .bp__sheet, .bpr, .bpbar b, .bpcard__body { transition: none !important; }
  .bpr { opacity: 1; transform: none; }
}
