/* Mostanad interactive experience (builds on ../css/style.css tokens) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--white); }

/* Site header floats transparently over the dark story, then turns solid */
.site-header--overlay { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.site-header--overlay .logo-light { display: none; }
.site-header--overlay:not(.is-solid) .logo-dark { display: none; }
.site-header--overlay:not(.is-solid) .logo-light { display: block; }
.site-header--overlay.is-solid { background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(14, 27, 51, .08); }
@media (min-width: 961px) {
  .site-header--overlay:not(.is-solid) .nav__menu a, .site-header--overlay:not(.is-solid) .nav__lang { color: #DCE4F0; }
  .site-header--overlay:not(.is-solid) .nav__menu a[aria-current="page"], .site-header--overlay:not(.is-solid) .nav__menu a:hover { color: var(--white); }
}
.site-header--overlay:not(.is-solid) .nav__toggle { color: var(--white); }
.site-header--overlay + main { margin-top: 0; }

/* ---------- Act 1: the story stage ---------- */
.story { position: relative; height: 420vh; background: radial-gradient(120% 90% at 50% 40%, #16305A 0%, #0E1B33 55%, #0A1427 100%); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(90, 160, 230, .22) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent);
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--white);
  padding: 0 20px; pointer-events: none; z-index: 2;
}
.intro__kicker { font-size: clamp(1rem, 2vw, 1.3rem); color: #9FB0CC; margin: 0 0 .4em; }
.intro__title { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.2; margin: 0; text-shadow: 0 6px 40px rgba(10, 20, 39, .9); }
.intro__hint { margin-top: 2.2em; color: #9FB0CC; font-size: .95rem; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.mouse { width: 24px; height: 38px; border: 2px solid #9FB0CC; border-radius: 14px; position: relative; }
.mouse::after { content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.logo-slot { position: absolute; left: 50%; top: 56%; width: min(42vh, 62vw, 360px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 1; }
.logo-slot svg { width: 100%; height: 100%; overflow: visible; }
.logo-slot .frame { fill: none; stroke: var(--white); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.logo-slot .arcs { opacity: 0; }
.logo-slot .arcs path { stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }

.headline {
  position: absolute; top: max(90px, 11vh); inset-inline: 0; margin: 0; padding: 0 20px; z-index: 3; text-align: center;
  color: var(--white); font-size: clamp(1.7rem, 4.4vw, 3.5rem); line-height: 1.3;
}
.headline .w { display: inline-block; opacity: 0; }
.headline .accent { color: var(--orange); }

.screen {
  position: absolute; left: 50%; top: calc(50% + 80px); z-index: 2; opacity: 0;
  width: min(1000px, 92vw, calc((100svh - 330px) * 1.6176)); aspect-ratio: 1100 / 680; translate: -50% -50%;
  background: #15181E; border-radius: 18px; padding: 1.1%; box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}
.screen__inner { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 10px; }
.screen__dash { position: absolute; top: 0; right: 0; width: 1100px; height: 680px; transform-origin: top right; transform: scale(var(--s, .8)); }

.cue {
  position: absolute; bottom: 2.2vh; left: 50%; translate: -50% 0; z-index: 3; opacity: 0;
  color: var(--white); font-weight: 700; padding: 10px 22px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px);
}
.cue span { display: inline-block; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.stage__fallback { display: none; }

/* Static versions: reduced motion, no JS, or the animation libraries failed to load */
.no-js .story, .reduced .story { height: auto; }
.no-js .stage, .reduced .stage { position: relative; height: auto; min-height: 100svh; padding: 120px 20px 60px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.no-js .stage__canvas, .reduced .stage__canvas, .no-js .intro, .reduced .intro, .no-js .logo-slot, .reduced .logo-slot { display: none; }
.no-js .headline, .reduced .headline, .no-js .screen, .reduced .screen, .no-js .cue, .reduced .cue { position: relative; inset: auto; top: auto; left: auto; translate: none; opacity: 1; }
.no-js .headline .w, .reduced .headline .w { opacity: 1; }
.no-js .screen { display: none; }
.no-js .stage__fallback { display: block; max-width: min(900px, 100%); height: auto; }

/* ---------- Act 2: try it ---------- */
.try { background: var(--bg); padding-block: 100px 70px; border-radius: 36px 36px 0 0; position: relative; z-index: 1; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--dark); font: 600 .98rem var(--font); transition: .2s;
}
.tab img { width: 22px; height: 22px; transition: filter .2s; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(45, 125, 210, .3); }
.tab[aria-selected="true"] img { filter: brightness(0) invert(1); }
.try__frame { background: #15181E; padding: 10px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.try__note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ---------- Dashboard ---------- */
.dash {
  --d-line: #E3E7ED; display: grid; grid-template-columns: 76px 1fr; background: #F6F8FB; border-radius: 14px; overflow: hidden;
  font-family: var(--font); color: var(--dark); text-align: start;
}
.dash__side { background: var(--navy); color: #8FA2C2; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 22px; font-size: 0; }
.dash__side img { width: 40px; height: 40px; }
.dash__side ul { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.dash__side li { display: flex; justify-content: center; }
.dash__side li span { width: 34px; height: 8px; border-radius: 4px; background: #2A3D5E; }
.dash__side li.is-active span { background: var(--blue); }
.dash__main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash__title { font-size: 1.25rem; margin: 0; }
.dash__sub { margin: 0; color: var(--muted); font-size: .88rem; }
.dash__action {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 10px 18px; border-radius: 10px;
  background: var(--orange); color: var(--navy); font: 700 .95rem var(--font); transition: .2s; white-space: nowrap;
}
.dash__action:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(245, 166, 35, .4); }
.dash__action:active { transform: scale(.97); }
.dash__action .plus { width: 22px; height: 22px; border-radius: 50%; background: rgba(14, 27, 51, .14); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.dash__live { display: inline-flex; align-items: center; gap: 8px; color: #22A06B; font-weight: 700; font-size: .9rem; }
.dash__live i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(34, 160, 107, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 160, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0); } }

.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--white); border: 1px solid var(--d-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.kpi__label { color: var(--muted); font-size: .82rem; }
.kpi__value { font-family: 'Inter', var(--font); font-size: 1.45rem; font-weight: 700; direction: ltr; text-align: end; unicode-bidi: plaintext; }
.kpi__delta { font-family: 'Inter', var(--font); font-size: .78rem; font-weight: 600; color: #22A06B; direction: ltr; text-align: end; }
.kpi__delta.is-down { color: #E5484D; }
.kpi::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--blue); }
.kpi:nth-child(2)::after { background: var(--orange); }
.kpi:nth-child(4)::after { background: #22A06B; }
.kpi.is-bumped { animation: bump .9s ease; }
@keyframes bump { 0% { background: #FFF5E0; box-shadow: 0 0 0 3px rgba(245, 166, 35, .55); } 100% { background: var(--white); box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); } }

.dash__grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.card { padding: 14px; border-radius: 12px; }
.dash .card { background: var(--white); border: 1px solid var(--d-line); display: flex; flex-direction: column; min-height: 0; }
.dash .card:hover { transform: none; box-shadow: none; }
.dash .card h4 { font-size: .92rem; margin: 0 0 8px; }
.card--line svg { width: 100%; height: 190px; flex: 1; }
.card--bars svg { width: 100%; height: 140px; flex: 1; }
.dash .grid { stroke: var(--d-line); }
.dash .line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.dash .line2 { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 6 5; }
.dash .dot { fill: var(--white); stroke: var(--blue); stroke-width: 3; }
.dash .bar { fill: var(--blue); }
.dash .bar--alt { fill: var(--orange); }
.donut { display: flex; align-items: center; gap: 14px; flex: 1; }
.donut svg { width: 46%; max-width: 150px; flex: none; }
.donut .seg { fill: none; stroke-width: 18; }
.legend { flex: 1; display: grid; gap: 8px; font-size: .84rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-inline-start: auto; font-family: 'Inter', var(--font); }
.rows { display: grid; gap: 6px; font-size: .84rem; }
.rows li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; background: #F8FAFC; }
.rows li.is-new { animation: rowIn .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes rowIn { 0% { opacity: 0; transform: translateY(-10px); background: #FFF5E0; } 60% { background: #FFF5E0; } 100% { opacity: 1; transform: none; } }
.r-id { font-family: 'Inter', var(--font); color: var(--muted); font-size: .76rem; }
.r-party { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-amt { font-family: 'Inter', var(--font); font-weight: 700; }
.chip { font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.chip--paid { background: #E7F6EE; color: #146C43; }
.chip--open { background: var(--blue-soft); color: var(--blue-dark); }
.chip--late { background: #FDECEC; color: #B42318; }
.dash.is-swapping .dash__title, .dash.is-swapping .dash__sub, .dash.is-swapping .kpi__label, .dash.is-swapping .kpi__delta,
.dash.is-swapping h4, .dash.is-swapping .legend, .dash.is-swapping .rows, .dash.is-swapping .dash__action-label { opacity: 0; transform: translateY(-4px); }
.dash__title, .dash__sub, .kpi__label, .kpi__delta, .dash h4, .legend, .rows, .dash__action-label { transition: opacity .16s, transform .16s; }

/* The preview inside the hero screen is a fixed 1100x680 canvas scaled to fit */
.screen__dash.dash { height: 680px; }
.screen__dash .dash__grid { grid-template-rows: 1fr 1fr; }
.screen__dash .card--line svg, .screen__dash .card--bars svg { height: 0; flex: 1 1 auto; min-height: 0; }
.screen__dash .rows li:nth-child(n+4) { display: none; }

/* ---------- Shared ---------- */
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: #9FB0CC; }
.section-head--light .eyebrow { color: var(--orange); }

/* ---------- Act 2: one invoice's journey ---------- */
.journey { position: relative; height: 320vh; background: linear-gradient(180deg, #0A1427, var(--navy) 30%); color: var(--white); }
.journey__stage { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 90px 0 40px; }
.journey__stage > .container { width: 100%; }
.journey .section-head { margin-bottom: 56px; }
.journey__track { position: relative; }
.journey__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.journey__wire path { fill: none; stroke-linecap: round; }
.journey__wire .wire-bg { stroke: rgba(90, 160, 230, .18); stroke-width: 3; stroke-dasharray: 2 10; }
.journey__wire .wire { stroke: var(--orange); stroke-width: 4; filter: drop-shadow(0 0 6px rgba(245, 166, 35, .9)) drop-shadow(0 0 16px rgba(245, 166, 35, .5)); }
.journey__token {
  position: absolute; top: 0; left: 0; z-index: 1; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange); color: var(--navy); box-shadow: 0 0 0 6px rgba(245, 166, 35, .25), 0 0 30px rgba(245, 166, 35, .7); transition: opacity .2s; pointer-events: none;
}
.journey__token svg { width: 24px; height: 24px; }
.journey__nodes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.jnode {
  background: rgba(20, 40, 74, .92); border: 1px solid #22406E; border-radius: 18px; padding: 20px; min-height: 230px;
  display: flex; flex-direction: column; gap: 14px; transition: border-color .4s, box-shadow .4s, transform .4s; backdrop-filter: blur(6px);
}
.jnode__head { display: flex; align-items: center; gap: 10px; }
.jnode__head h3 { font-size: 1.1rem; margin: 0; color: var(--white); }
.jnode__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #1B355F; color: #8FA2C2; transition: .4s; flex: none; }
.jnode__icon svg { width: 22px; height: 22px; }
.jnode__step { font-family: 'Inter', var(--font); font-size: .78rem; color: #5B7FB5; margin-inline-start: auto; order: 3; }
.jnode__body { flex: 1; background: rgba(10, 20, 39, .55); border-radius: 12px; padding: 14px; font-size: .88rem; color: #9FB0CC; opacity: .45; filter: saturate(.3); transition: .5s; }
.jnode__body strong { display: block; color: var(--white); font-family: 'Inter', var(--font); font-size: 1.35rem; margin-top: 4px; }
.jnode__caption { margin: 0; color: #7D91B3; font-size: .9rem; }
.jnode.is-on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 20px 50px rgba(245, 166, 35, .18); transform: translateY(-6px); }
.jnode.is-on .jnode__icon { background: var(--orange); color: var(--navy); }
.jnode.is-on .jnode__body { opacity: 1; filter: none; }
.jnode.is-on .jnode__caption { color: #DCE4F0; }
.jn-doc, .jn-stock, .jn-report { display: flex; flex-direction: column; gap: 2px; }
.jn-tag { font-family: 'Inter', var(--font); font-size: .76rem; color: var(--orange); }
.jn-bar { display: block; height: 6px; border-radius: 3px; background: #1B355F; margin-top: 10px; overflow: hidden; }
.jn-bar b { display: block; height: 100%; width: var(--w); background: var(--blue); border-radius: 3px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.jn-ledger p { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px dashed #22406E; }
.jn-ledger b { color: var(--white); font-family: 'Inter', var(--font); }
.jn-badge { display: inline-block; font-style: normal; font-weight: 700; font-size: .78rem; color: #36C08A; background: rgba(34, 160, 107, .15); padding: 2px 10px; border-radius: 99px; transform: scale(.6); opacity: 0; transition: .4s .3s cubic-bezier(.3, 1.6, .5, 1); }
.jnode.is-on .jn-badge { transform: none; opacity: 1; }
.jn-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 10px; }
.jn-bars b { flex: 1; background: #2B4C80; border-radius: 3px 3px 0 0; transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.jn-bars b:last-child { background: var(--orange); }

/* ---------- Act 4: the city ---------- */
.city { background: radial-gradient(90% 70% at 50% 30%, #16305A, var(--navy) 70%); padding-block: 100px 90px; color: var(--white); overflow: hidden; }
.city__wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: center; }
.city__scene svg { width: 100%; height: auto; display: block; overflow: visible; }
.city .gridline { stroke: rgba(90, 160, 230, .08); stroke-width: 1; }
.bld { cursor: pointer; outline: none; transition: opacity .35s; }
.bld__body { transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), filter .45s; }
.city__wrap.has-active .bld:not(.is-active) { opacity: .5; }
.bld.is-active .bld__body, .bld:hover .bld__body { transform: translateY(-10px); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)) drop-shadow(0 0 14px rgba(245, 166, 35, .35)); }
.bld:focus-visible .bld__body { filter: drop-shadow(0 0 6px #F5A623); }
.pin__dot { fill: var(--orange); stroke: var(--navy); stroke-width: 2; }
.pin__ring { fill: none; stroke: var(--orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
.bld.is-active .pin__dot { fill: var(--white); }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.win { animation: flicker 6s ease-in-out infinite; }
.win:nth-child(3n) { animation-delay: -2s; }
.win:nth-child(5n) { animation-delay: -4s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.smoke circle { fill: #8FA2C2; opacity: .35; animation: smoke 3.5s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.smoke circle:nth-child(2) { animation-delay: -1.7s; }
@keyframes smoke { from { transform: translate(0, 0) scale(.6); opacity: .45; } to { transform: translate(10px, -30px) scale(1.5); opacity: 0; } }
.hook { animation: hook 4s ease-in-out infinite; }
.coin { animation: coin 3s ease-in-out infinite; }
@keyframes coin { 50% { transform: translateY(-7px); } }
@keyframes hook { 50% { transform: translateY(14px); } }
.ship { animation: bob 3.2s ease-in-out infinite; }
.road-truck { animation: drive 9s linear infinite; }
@keyframes drive { from { transform: translate(0, 0); } to { transform: translate(244px, 141px); } }
.drum-stripe { animation: drum 1.2s linear infinite; }
@keyframes drum { to { stroke-dashoffset: -32; } }
.water { animation: water 4s ease-in-out infinite; }
@keyframes water { 50% { fill: #22548F; } }
.city__panel { background: rgba(20, 40, 74, .7); border: 1px solid #22406E; border-radius: 20px; padding: 30px; backdrop-filter: blur(8px); transition: opacity .14s, transform .14s; }
.city__panel.is-swapping { opacity: 0; transform: translateY(8px); }
.city__hint { color: var(--orange); font-weight: 700; font-size: .85rem; }
.city__name { font-size: 1.6rem; margin: 6px 0 10px; color: var(--white); }
.city__text { color: #C9D4E5; }
.city__points li { color: #DCE4F0; }
.city__link { color: var(--orange); margin-top: 10px; }

/* ---------- Act 5: calculator ---------- */
.xp-calc { background: var(--bg); }
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.calc__inputs { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 22px; }
.calc__field label { font-weight: 600; display: block; margin-bottom: 8px; }
.calc__row { display: flex; align-items: center; gap: 16px; }
.calc__row output { min-width: 92px; text-align: center; padding: 6px 10px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; white-space: nowrap; }
.calc__row output b { font-family: 'Inter', var(--font); }
.calc input[type="range"] { flex: 1; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 4px; cursor: pointer; background: linear-gradient(to left, var(--blue) var(--fill), var(--line) var(--fill)); }
[dir="ltr"] .calc input[type="range"] { background: linear-gradient(to right, var(--blue) var(--fill), var(--line) var(--fill)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 6px solid var(--orange); box-shadow: 0 4px 12px rgba(14, 27, 51, .25); transition: transform .15s; }
.calc input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 6px solid var(--orange); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.calc__result { background: var(--navy); color: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.calc__result::after { content: ''; position: absolute; inset-inline-end: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 166, 35, .35), transparent 70%); }
.calc__big strong { display: block; font-family: 'Inter', var(--font); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; color: var(--orange); }
.calc__big--money strong { color: #5AA0E6; }
.calc__big span { color: #C9D4E5; }
.calc__fte { margin: 0; padding-top: 16px; border-top: 1px solid #22406E; color: #DCE4F0; font-weight: 600; }
.calc__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.calc__how { color: var(--muted); max-width: 640px; }
.calc__how summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.calc__how p { margin: 8px 0 0; font-size: .92rem; }

/* ---------- Before / after ---------- */
.ba { position: relative; aspect-ratio: 1100 / 680; max-width: 1000px; margin-inline: auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid #15181E; background: #15181E; touch-action: pan-y; }
.ba__layer { position: absolute; inset: 0; }
.ba__dash { position: absolute; top: 0; right: 0; width: 1100px; height: 680px; transform-origin: top right; transform: scale(var(--s, .8)); }
.ba__dash .dash__grid { grid-template-rows: 1fr 1fr; }
.ba__dash .card--line svg, .ba__dash .card--bars svg { height: 0; flex: 1 1 auto; min-height: 0; }
.ba__dash .rows li:nth-child(n+4) { display: none; }
.ba__label { position: absolute; top: 14px; z-index: 3; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .88rem; }
.ba__label--before { inset-inline-start: 14px; background: #FDECEC; color: #B42318; }
.ba__label--after { inset-inline-end: 14px; background: var(--blue); color: var(--white); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: var(--white); z-index: 4; pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .4); }
.ba__handle span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.ba__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:has(.ba__range:focus-visible) .ba__handle span { outline: 3px solid var(--white); outline-offset: 3px; }
.sheet { position: absolute; inset: 0; background: #fff; font: 12px/1.2 Calibri, 'Segoe UI', Arial, sans-serif; color: #222; overflow: hidden; }
.sheet__bar { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-bottom: 1px solid #d4d4d4; background: #f3f3f3; color: #666; }
.sheet__bar span { font-style: italic; font-weight: 700; color: #1D6F42; }
.sheet table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.sheet th { background: #efefef; color: #555; font-weight: 400; border: 1px solid #d4d4d4; padding: 3px; width: 34px; }
.sheet thead th:not(:first-child) { width: auto; }
.sheet td { border: 1px solid #e1e1e1; padding: 5px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet td.h { font-weight: 700; background: #FFF2CC; }
.sheet td.err { color: #C00000; font-weight: 700; background: #FFE5E5; }
.sheet td.txt { color: #444; text-align: start; background: #F2F2F2; }
.sheet td.yel { background: #FFFF00; }
.sheet td.dup { background: #FCE4D6; }
.sticky { position: absolute; padding: 10px 12px; background: #FFF59D; color: #5B4A00; font: 600 13px/1.3 'Comic Sans MS', 'Segoe Print', cursive; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); max-width: 150px; }
.sticky--0 { top: 18%; left: 55%; rotate: -6deg; }
.sticky--1 { top: 52%; left: 30%; rotate: 4deg; background: #FFCDD2; }
.sticky--2 { top: 70%; left: 62%; rotate: -3deg; background: #C8E6C9; }
.sticky--3 { top: 35%; left: 8%; rotate: 7deg; }
.sheet__tabs { position: absolute; bottom: 0; inset-inline: 0; display: flex; gap: 2px; background: #f3f3f3; border-top: 1px solid #d4d4d4; padding: 3px 6px; }
.sheet__tabs b { font-weight: 400; padding: 3px 12px; background: #fff; border: 1px solid #d4d4d4; color: #555; }

/* ---------- Dividers ---------- */
.divider { height: 70px; margin-block: -10px; position: relative; z-index: 1; pointer-events: none; }
.divider svg { width: 100%; height: 100%; display: block; }
.divider path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
[dir="ltr"] .divider svg { transform: scaleX(-1); }

/* ---------- Finale: the door ---------- */
.door { position: relative; height: 230vh; background: var(--navy); }
.door__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.door__arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.door__arcs path { stroke: var(--navy); stroke-width: .6; }
.door__content { position: relative; z-index: 3; text-align: center; color: var(--white); padding: 0 20px; max-width: 760px; }
.door__content h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.door__content p { color: #C9D4E5; font-size: 1.15rem; }
.door__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
main:has(.door) + .site-footer { margin-top: 0; }

/* ---------- Static fallbacks for the new acts ---------- */
.no-js .journey, .reduced .journey, .no-js .door, .reduced .door { height: auto; }
.no-js .journey__stage, .reduced .journey__stage { position: relative; }
.no-js .door__stage, .reduced .door__stage { position: relative; height: auto; padding: 120px 0; }
.no-js .door__arcs, .reduced .door__arcs { inset: auto 0 0 auto; width: 260px; height: 260px; opacity: .9; }
.no-js .journey__token, .reduced .journey__token { display: none; }
.no-js .jnode__body, .reduced .jnode__body { opacity: 1; filter: none; }
.reduced .win, .reduced .smoke circle, .reduced .hook, .reduced .coin, .reduced .ship, .reduced .road-truck, .reduced .drum-stripe, .reduced .water, .reduced .pin__ring { animation: none; }

/* ---------- 24 years across Libya ---------- */
.lmap-sec { position: relative; height: 340vh; background: radial-gradient(80% 70% at 60% 45%, #16305A, var(--navy) 70%); color: var(--white); }
.lmap-sec__stage { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 90px 0 30px; overflow: hidden; }
.lmap-sec__stage > .container { width: 100%; }
.lmap-sec .section-head { margin-bottom: 20px; }
.lmap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; }
.lmap__map { position: relative; }
.lmap__map svg { width: 100%; height: auto; max-height: calc(100svh - 300px); display: block; margin-inline: auto; overflow: visible; }
.lmap__land { fill: #13284A; stroke: #5AA0E6; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(45, 125, 210, .35)); }
.lmap__dots { pointer-events: none; }
.lmap__arcs path { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; filter: drop-shadow(0 0 4px rgba(245, 166, 35, .8)); }
.lcity { cursor: pointer; outline: none; }
.lcity__dot { fill: #3B5C8F; stroke: var(--navy); stroke-width: 1.5; transition: fill .4s, r .4s; }
.lcity__halo { opacity: 0; transition: opacity .5s; }
.lcity__ring { fill: none; stroke: var(--orange); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lcity__name { fill: #7D91B3; font: 600 11px var(--font); opacity: 0; transition: opacity .4s, fill .4s; pointer-events: none; paint-order: stroke; stroke: var(--navy); stroke-width: 3px; }
.lcity--major .lcity__name { opacity: .55; }
.lcity.is-on .lcity__dot { fill: var(--orange); }
.lcity.is-on .lcity__halo { opacity: .55; }
.lcity.is-on .lcity__ring { animation: lring 2.4s ease-out infinite; }
.lcity.is-on .lcity__name { fill: var(--white); }
.lcity.is-on.lcity--major .lcity__name { opacity: 1; }
.lcity:hover .lcity__name, .lcity:focus-visible .lcity__name { opacity: 1; fill: var(--white); }
.lcity:focus-visible .lcity__dot { stroke: var(--white); stroke-width: 2.5; }
.lcity--hq .lcity__dot { fill: var(--blue); stroke: var(--white); stroke-width: 2; }
.lcity--hq.is-on .lcity__dot { fill: var(--blue); }
@keyframes lring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.lintl__arc { fill: none; stroke: #5AA0E6; stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgba(90, 160, 230, .8)); }
.lintl__dot { fill: #5AA0E6; stroke: var(--navy); stroke-width: 2; opacity: 0; transition: opacity .4s; }
.lintl__name { fill: #7D91B3; font: 700 15px var(--font); opacity: 0; transition: opacity .4s, fill .4s; paint-order: stroke; stroke: var(--navy); stroke-width: 4px; }
.lintl.is-on .lintl__dot { opacity: 1; }
.lintl.is-on .lintl__name { opacity: 1; fill: var(--white); }
.lmap__intl { pointer-events: none; }
.lmap__tip[hidden] { display: none; }
.lmap__tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 14px)); min-width: 170px; padding: 10px 14px; border-radius: 12px;
  background: var(--white); color: var(--dark); box-shadow: var(--shadow-lg); display: grid; gap: 2px; font-size: .84rem; pointer-events: none; text-align: start;
}
.lmap__tip strong { font-size: 1rem; }
.lmap__tip em { font-style: normal; color: var(--blue); font-weight: 600; }
.lmap__panel { display: grid; gap: 20px; }
.lmap__year { font-family: 'Inter', var(--font); font-weight: 700; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, #9CC3EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lmap__milestone { margin: 0; min-height: 2.8em; font-size: 1.2rem; font-weight: 600; color: var(--orange); }
.lmap__milestone.is-in { animation: msIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes msIn { from { opacity: 0; transform: translateY(10px); } }
.lmap__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.lmap__stats div { background: rgba(20, 40, 74, .7); border: 1px solid #22406E; border-radius: 14px; padding: 14px; }
.lmap__stats dd { margin: 0; font-family: 'Inter', var(--font); font-size: 1.8rem; font-weight: 700; color: var(--white); order: -1; }
.lmap__stats div { display: flex; flex-direction: column; }
.lmap__stats dt { color: #9FB0CC; font-size: .85rem; }
.lmap__timeline { position: relative; padding-bottom: 26px; }
.lmap__range { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px; cursor: pointer; margin: 0;
  background: linear-gradient(to left, var(--orange) var(--fill, 0%), #22406E var(--fill, 0%)); }
[dir="ltr"] .lmap__range { background: linear-gradient(to right, var(--orange) var(--fill, 0%), #22406E var(--fill, 0%)); }
.lmap__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 5px solid var(--orange); box-shadow: 0 0 0 6px rgba(245, 166, 35, .2); }
.lmap__range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 5px solid var(--orange); }
.lmap__ticks span { position: absolute; top: 16px; inset-inline-start: calc(var(--at) * (100% - 22px) + 11px); translate: 50% 0; font: 600 .72rem 'Inter', var(--font); color: #7D91B3; }
[dir="ltr"] .lmap__ticks span { translate: -50% 0; }
.lmap__sample { margin: 0; font-size: .8rem; color: #7D91B3; border-inline-start: 3px solid var(--orange); padding-inline-start: 10px; }
.no-js .lmap-sec, .reduced .lmap-sec { height: auto; }
.no-js .lmap-sec__stage, .reduced .lmap-sec__stage { position: relative; }
.reduced .lcity.is-on .lcity__ring { animation: none; }
.lmap.is-abroad .lcity__name { font-size: 16px; }

/* ---------- Responsive ---------- */
/* Breakpoints only reflow the interactive dashboard; the hero preview stays a scaled 1100px canvas */
@media (max-width: 900px) {
  .try__dash.dash { grid-template-columns: 1fr; }
  .try__dash .dash__side { display: none; }
  .try__dash .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .try__dash .dash__grid { grid-template-columns: 1fr; }
  .try__dash .dash__top { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .story { height: 300vh; }
  .logo-slot { top: 58%; }
  .screen { top: 46%; width: 94vw; }
  .try { padding-block: 70px 50px; border-radius: 26px 26px 0 0; }
  .tab { padding: 8px 14px; font-size: .9rem; }
  .try__dash .kpi__value { font-size: 1.2rem; }
  .try__dash .dash__main { padding: 12px; }
  .try__dash .rows li { grid-template-columns: 1fr auto; }
  .try__dash .r-id { grid-column: 1 / -1; }
  .journey { height: auto; }
  .journey__stage { position: relative; padding: 80px 0 60px; }
  .journey__nodes { grid-template-columns: 1fr; gap: 18px; padding-inline-start: 36px; }
  .jnode { min-height: 0; }
  .city__wrap, .calc { grid-template-columns: 1fr; }
  .city { padding-block: 70px; }
  .city__scene { margin-inline: -20px; }
  .calc__inputs, .calc__result { padding: 22px; }
  .ba { border-width: 5px; border-radius: 12px; }
  .door { height: 200vh; }
  .lmap-sec { height: auto; }
  .lmap-sec__stage { position: relative; padding: 70px 0 60px; }
  .lmap { grid-template-columns: 1fr; gap: 20px; }
  .lmap__map svg { max-height: none; }
  .lmap__stats dd { font-size: 1.4rem; }
  .lmap__stats div { padding: 10px; }
}
@media (max-width: 1100px) and (min-width: 769px) {
  .journey__nodes { gap: 16px; }
  .jnode { padding: 16px; }
}

/* Long button labels (e.g. English calculator CTA) must wrap on narrow screens */
.calc__foot .btn, .door__actions .btn { white-space: normal; text-align: center; max-width: 100%; }
