/* =========================================================
   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; }
