/* Umniah case study — its own template: Umniah's charcoal + lime, its segment wheel, one pinned scene per product.
   Everything is visible without JavaScript; the script only adds motion and interaction. */
.um {
  --u-lime: #d9e138; --u-lime-2: #e9ef7a; --u-char: #3e474d; --u-char-2: #2c3338; --u-ink: #0a0d11; --u-grey: #acacac;
  --u-paper: #f3f4ef; --u-f: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, sans-serif;
  background: var(--u-char-2); color: #fff;
}
.um main { font-family: var(--u-f); }
.um main em { font-family: inherit; }
.u-crumb { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.u-crumb a { color: #fff; border-bottom: 1px solid currentColor; }
.u-crumb span { margin: 0 6px; }
.u-n { display: inline-block; margin-top: 26px; padding: 6px 10px; border-radius: 6px; background: var(--u-lime); color: var(--u-ink); font: 600 12px/1 var(--f-mono); letter-spacing: .1em; }
.u-eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--u-lime); }
.uch--light .u-eyebrow, .uch--lime .u-eyebrow, .usys .u-eyebrow { color: var(--u-char); }
.u-h2 { margin-top: 12px; font: 800 clamp(38px, 4.6vw, 72px)/1 var(--u-f); letter-spacing: -.02em; }
.u-h2 em, .u-h3 em { font-style: normal; color: var(--u-lime); }
.uch--light .u-h2 em, .uch--light .u-h3 em, .usys .u-h2 em { color: var(--u-char); box-shadow: inset 0 -.32em 0 var(--u-lime); }
.uch--lime .u-h2 em, .uch--lime .u-h3 em { color: var(--u-ink); box-shadow: inset 0 -.12em 0 var(--u-ink); }
.u-h3 { margin-top: 10px; font: 800 clamp(28px, 3vw, 44px)/1.05 var(--u-f); letter-spacing: -.01em; }
.u-lede { margin-top: 16px; max-width: 640px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.uch--light .u-lede, .usys .u-lede { color: #3d464c; }
.uch--lime .u-lede { color: #262c1a; }
.u-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--u-lime); color: var(--u-ink); font: 700 16px/1 var(--u-f); transition: transform .3s var(--ease), background .3s; }
.u-btn:hover { transform: translateY(-2px); background: var(--u-lime-2); }
.u-btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.u-btn--line:hover { background: rgba(255, 255, 255, .08); }

/* ---------- hero: pinned; the three products fan out around the wheel ---------- */
.uh { position: relative; background: radial-gradient(120% 90% at 78% 30%, #4a545a 0, var(--u-char) 38%, var(--u-char-2) 100%); }
.uh.is-pinned { height: 300vh; }
.uh__pin { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; min-height: 100svh; padding: 110px var(--gut) 60px; max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; overflow: hidden; }
.uh.is-pinned .uh__pin { position: sticky; top: 0; height: 100svh; }
.uh__title { margin-top: 18px; font: 800 clamp(46px, 5.4vw, 88px)/.96 var(--u-f); letter-spacing: -.03em; }
.uh__title span { color: var(--u-lime); }
.uh__lede { margin-top: 22px; max-width: 520px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .84); }
.uh__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.uh__stage { position: relative; height: min(70svh, 620px); }
.uwheel { position: absolute; left: 50%; top: 50%; width: min(34vw, 380px); aspect-ratio: 1; translate: -50% -50%; }
.uwheel svg { width: 100%; height: 100%; rotate: -90deg; }
.uwheel__track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 14; }
.uwheel__arc { fill: none; stroke: var(--u-lime); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.uwheel__core { position: absolute; inset: 22%; display: grid; place-items: center; border-radius: 50%; background: var(--u-lime); color: var(--u-char); font: 800 clamp(22px, 2.4vw, 36px)/1 var(--u-f); letter-spacing: -.02em; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.udev { position: absolute; margin: 0; }
.udev figcaption { margin-top: 12px; font: 600 15px/1.2 var(--u-f); color: rgba(255, 255, 255, .9); }
.udev figcaption b { margin-right: 6px; padding: 3px 7px; border-radius: 5px; background: var(--u-lime); color: var(--u-ink); font: 600 11px/1 var(--f-mono); }
.ubar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #e9ecee; border-radius: 10px 10px 0 0; }
.ubar i { width: 7px; height: 7px; border-radius: 50%; background: #c3c8cc; }
.ubar b { flex: 1; text-align: center; font: 500 11px/1 var(--f-mono); color: #5b656b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.udev__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-radius: 0 0 10px 10px; }
.udev__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.udev--web, .udev--portal { width: 58%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); border-radius: 10px; }
.udev--web { left: 0; top: 7%; }
.udev--web figcaption, .udev--portal figcaption { position: absolute; bottom: 100%; margin: 0 0 10px; }
.udev--portal figcaption { right: 0; }
.udev--portal { right: 0; top: 34%; }
.udev--app { left: 30%; bottom: -2%; width: 21%; }
.uphone { display: block; aspect-ratio: 343 / 585; padding: 7% 5%; border-radius: 26px; background: #f7f7f5; box-shadow: 0 0 0 2px #c9b48a, 0 40px 80px -24px rgba(0, 0, 0, .65); }
.uphone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 4px; }

/* ---------- facts ---------- */
.ufacts { background: var(--u-lime); color: var(--u-ink); }
.ufacts__in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; padding: 34px 0; }
.ufacts dt { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #474d1a; }
.ufacts dd { margin-top: 6px; font: 600 16px/1.35 var(--u-f); }

/* ---------- chapter rail ---------- */
.urail { position: fixed; left: 50%; bottom: 18px; z-index: 30; display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(20, 24, 27, .82); backdrop-filter: blur(8px); translate: -50% 20px; opacity: 0; pointer-events: none; transition: opacity .4s, translate .4s var(--ease); }
.urail.is-on { translate: -50% 0; }
.urail.is-on { opacity: 1; pointer-events: auto; }
.urail a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .7); font: 500 11px/1 var(--f-mono); letter-spacing: .08em; backdrop-filter: blur(6px); transition: color .3s, background .3s; }
.urail a span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.urail a:hover span, .urail a.is-on span { max-width: 90px; }
.urail a.is-on { background: var(--u-lime); color: var(--u-ink); }

/* ---------- chapters ---------- */
.uch { position: relative; padding: 130px 0 120px; }
.uch--light { background: var(--u-paper); color: var(--u-ink); }
.uch--dark { background: var(--u-char-2); }
.uch--lime { background: var(--u-lime); color: var(--u-ink); }
.uch__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 40px; align-items: start; margin-bottom: 60px; }
.uch__n { font: 800 clamp(80px, 11vw, 170px)/.8 var(--u-f); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .5; }
.uch--dark .uch__n { -webkit-text-stroke-color: var(--u-lime); opacity: .9; }

/* 01 · the usable browser */
.usite > * { min-width: 0; }
.usite { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.usite__list { list-style: none; display: grid; gap: 4px; position: sticky; top: 100px; }
.usite__list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; color: #3d464c; font: 600 16px/1.2 var(--u-f); text-align: left; cursor: pointer; transition: background .25s, color .25s; }
.usite__list button small { font: 500 10px/1 var(--f-mono); letter-spacing: .1em; color: #6b747a; }
.usite__list button:hover { background: #e6e8e1; }
.usite__list button[aria-current="true"] { background: var(--u-char); color: #fff; }
.usite__list button[aria-current="true"] small { color: var(--u-lime); }
.usite__list .grp { margin: 14px 0 4px 14px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6b747a; }
.ubrowser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -40px rgba(20, 30, 20, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.ubar--big { height: 40px; padding: 0 14px; gap: 7px; border-radius: 0; }
.ubar--big i { width: 11px; height: 11px; }
.ubar--big b { font-size: 12.5px; }
.ubar--big a { font: 600 13px/1 var(--u-f); color: var(--u-char); padding: 7px 12px; border-radius: 999px; background: var(--u-lime); }
.ubrowser__view { max-height: min(72svh, 640px); overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.ubrowser__page { position: relative; }
.ubrowser__page img { display: block; width: 100%; height: auto; transition: opacity .35s; }
.ubrowser__page.is-swap img { opacity: 0; }
.uhot { position: absolute; inset: 0; pointer-events: none; }
.uhot button { position: absolute; pointer-events: auto; border: 0; padding: 0; border-radius: 8px; background: transparent; cursor: pointer; outline: 2px solid transparent; transition: outline-color .25s, background .25s; }
.uhot button::after { content: ""; position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--u-lime); box-shadow: 0 0 0 0 rgba(217, 225, 56, .7); animation: upulse 1.8s 4; }
.uhot button:hover, .uhot button:focus-visible { outline-color: var(--u-lime); background: rgba(217, 225, 56, .18); }
@keyframes upulse { 0% { box-shadow: 0 0 0 0 rgba(217, 225, 56, .75); } 80%, 100% { box-shadow: 0 0 0 12px rgba(217, 225, 56, 0); } }
.usite__cap { margin-top: 16px; max-width: 760px; font-size: 17px; line-height: 1.55; color: #3d464c; min-height: 3.1em; }

/* 01 · design boards, sideways on scroll */
.uboards { margin-top: 110px; }
.uboards.is-pinned { height: 300vh; }
.uboards__pin { overflow: hidden; }
.uboards.is-pinned .uboards__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.uboards__track { display: flex; gap: 28px; padding: 40px var(--gut) 10px; width: max-content; }
.uboards:not(.is-pinned) .uboards__track { width: auto; overflow-x: auto; }
.uboard { flex: none; width: min(60vw, 760px); padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; }
.uboard img { display: block; width: 100%; aspect-ratio: 1800 / 1040; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(20, 30, 20, .45), 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .5s var(--ease); }
.uboard:hover img { transform: translateY(-4px); }
.uboard span { display: block; margin-top: 14px; font-size: 16px; color: #3d464c; }
.uboard b { display: block; font-size: 20px; color: var(--u-ink); }

/* 02 · dashboard tour */
.utour.is-pinned { height: 330vh; }
.utour__pin { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 44px; align-items: center; padding: 0 var(--gut); max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; }
.utour.is-pinned .utour__pin { position: sticky; top: 0; height: 100svh; padding-top: 70px; }
.utour__shot { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.utour__shot img { display: block; width: 100%; }
.utour__spot { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 8px; outline: 3px solid var(--u-lime); box-shadow: 0 0 0 9999px rgba(10, 13, 17, .62); opacity: 0; pointer-events: none; }
.utour__list { list-style: none; display: grid; gap: 2px; counter-reset: t; }
.utour__list li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); opacity: .5; transition: opacity .35s; }
.utour__list li::before { content: "0" counter(t); grid-row: 1 / 3; font: 500 11px/1.9 var(--f-mono); color: var(--u-lime); }
.utour__list b { font: 700 18px/1.3 var(--u-f); }
.utour__list span { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .78); max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.utour__list li.is-on { opacity: 1; }
.utour__list li.is-on span { max-height: 80px; }
.utour:not(.is-pinned) .utour__list li { opacity: 1; }
.utour:not(.is-pinned) .utour__list span { max-height: none; }
.uportal { margin-top: 90px; }
.uportal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 20px; }
.ucard { padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }
.ucard .ubar { border-radius: 12px 12px 0 0; }
.ucard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 12px 12px; background: #fff; }
.ucard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.ucard:hover .ucard__img img { transform: scale(1.03); }
.ucard__t { display: block; margin-top: 14px; font: 700 20px/1.2 var(--u-f); }
.ucard__d { display: block; margin-top: 6px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .78); }

/* 03 · the app: the phone stays, the screens change */
.uapp.is-pinned { height: 340vh; }
.uapp__pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; padding: 0 var(--gut); max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; }
.uapp.is-pinned .uapp__pin { position: sticky; top: 0; height: 100svh; padding-top: 70px; }
.uapp__phone { justify-self: center; width: min(330px, calc((100svh - 190px) * .57)); padding: 3.4%; border-radius: 46px; background: #f8f8f6; box-shadow: 0 0 0 3px #c9b48a, 0 0 0 10px #f8f8f6, 0 60px 110px -40px rgba(30, 34, 10, .6); }
.uapp__screen { position: relative; aspect-ratio: 343 / 585; overflow: hidden; border-radius: 36px; background: #1c2023; }
.uapp__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.uapp:not(.is-pinned) .uapp__pin { display: none; }
.uapp.is-pinned ~ .uapp__list { display: none; }   /* the static list is only a fallback for when the scroll scene is off */
.uapp__screen img:not(:first-child) { opacity: 0; }
.uapp__list p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: #262c1a; }
.uapp__count { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; color: #474d1a; }
.uapp__title { margin-top: 12px; font: 800 clamp(34px, 3.6vw, 56px)/1 var(--u-f); letter-spacing: -.02em; }
.uapp__desc { margin-top: 16px; max-width: 460px; font-size: 19px; line-height: 1.55; color: #262c1a; min-height: 6.2em; }
.uapp__bar { margin-top: 26px; max-width: 460px; height: 4px; border-radius: 4px; background: rgba(10, 13, 17, .15); overflow: hidden; }
.uapp__bar i { display: block; width: 10%; height: 100%; background: var(--u-ink); border-radius: 4px; }
.uapp__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; padding: 0 var(--gut); }
.uapp__list figure { margin: 0; }
.uapp__list img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }
.uapp__list figcaption { margin-top: 8px; font-weight: 700; }

/* 03 · wireframe → final */
.ucompare { margin-top: 110px; }
.ucompare__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.ucmp { margin: 0; }
.ucmp__box { position: relative; aspect-ratio: 343 / 585; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 24px 50px -24px rgba(30, 34, 10, .55); }
.ucmp__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ucmp__box .ucmp__final { clip-path: inset(0 0 0 var(--x, 50%)); }
.ucmp__line { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; translate: -1px 0; background: var(--u-ink); pointer-events: none; }
.ucmp__line::after { content: "⇆"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--u-ink); color: var(--u-lime); font-size: 16px; }
.ucmp__box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ucmp figcaption { margin-top: 10px; font: 700 16px/1.2 var(--u-f); }

/* 04 · system */
.usys { background: #fff; color: var(--u-ink); }
.usys__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.uswatches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.usw { display: grid; align-content: end; gap: 4px; min-height: 190px; padding: 20px; border-radius: 16px; background: var(--c); color: var(--t); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.usw b { font: 700 20px/1.2 var(--u-f); }
.usw span, .usw code { font: 500 12px/1.3 var(--f-mono); opacity: .85; }
.utype { padding: 26px 28px; border-radius: 16px; background: var(--u-paper); }
.utype__label { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #5b656b; }
.utype__h1 { margin-top: 18px; font: 400 clamp(30px, 3vw, 44px)/1.05 var(--u-f); }
.utype__h2 { margin-top: 10px; font: 700 clamp(26px, 2.6vw, 38px)/1.05 var(--u-f); }
.utype__h3 { margin-top: 10px; font: 600 26px/1.1 var(--u-f); }
.utype__h4 { margin-top: 10px; font: 600 18px/1.2 var(--u-f); }
.utype__body { margin-top: 12px; font-size: 15px; line-height: 1.55; color: #3d464c; }
.ucomp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 50px; }
.ucomp__card { padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }
.ucomp__card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .5s var(--ease); }
.ucomp__card:hover img { transform: translateY(-4px); }
.ucomp__card span { display: block; margin-top: 10px; font-size: 15px; color: #3d464c; }
.ucomp__card b { display: block; font-size: 18px; color: var(--u-ink); }

/* full-size view */
.ulb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(8, 10, 12, .82); }
.ulb[hidden] { display: none; }
.ulb__panel { position: relative; width: min(1240px, 100%); max-height: calc(100svh - 48px); display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; color: var(--u-ink, #0a0d11); }
.ulb__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ulb__scroll img { display: block; width: 100%; }
.ulb__cap { padding: 14px 60px 16px 20px; font: 600 16px/1.4 var(--u-f); border-top: 1px solid #e6e8e1; }
.ulb__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--u-ink, #0a0d11); color: var(--u-lime, #d9e138); font-size: 16px; cursor: pointer; }

/* ---------- phones & tablets ---------- */
@media (max-width: 900px) {
  .uh__pin { grid-template-columns: 1fr; padding-top: 92px; gap: 24px; }
  .uh__stage { height: 360px; }
  .uwheel { width: 230px; }
  .udev figcaption { font-size: 12px; }
  .udev--web, .udev--portal { width: 66%; }
  .udev--app { width: 26%; left: 34%; }
  .ufacts__in { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .urail a span { display: none; }
  .uch { padding: 90px 0 80px; }
  .uch__head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 36px; }
  .uch__n { font-size: 70px; }
  .usite { grid-template-columns: 1fr; gap: 14px; }
  .usite__list { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .usite__list li { flex: none; }
  .usite__list .grp { display: none; }
  .usite__list button { white-space: nowrap; padding: 9px 12px; font-size: 14px; }
  .usite__list button small { display: none; }
  .ubrowser__view { max-height: 62svh; }
  .uboard { width: 82vw; }
  .uboards.is-pinned { height: 260vh; }
  .utour__pin { grid-template-columns: 1fr; gap: 16px; }
  .utour.is-pinned .utour__pin { padding-top: 76px; align-content: start; }
  .utour__list li { display: none; border: 0; }
  .utour__list li.is-on { display: grid; }
  .utour:not(.is-pinned) .utour__list li { display: grid; }
  .uportal__grid { grid-template-columns: 1fr; }
  .uapp__pin { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .uapp.is-pinned .uapp__pin { padding-top: 96px; align-content: start; }
  .uapp__phone { width: min(240px, calc((100svh - 350px) * .57)); border-radius: 34px; }
  .uapp__screen { border-radius: 26px; }
  .uapp__desc, .uapp__bar { margin-inline: auto; }
  .uapp__desc { font-size: 16px; min-height: 0; }
  .ucompare__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usys__grid { grid-template-columns: 1fr; }
  .ucomp { grid-template-columns: 1fr 1fr; }
  .ulb { padding: 0; }
  .ulb__panel { max-height: 100svh; height: 100svh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .uhot button::after { animation: none; }
}

/* footer on the dark page */
.um .foot { color: rgba(255, 255, 255, .74); border-top-color: rgba(255, 255, 255, .14); }
.um .foot b { color: #fff; }
.um .foot .brand__lambda { color: var(--u-lime); }
.um .nav .brand__lambda { color: var(--u-lime); }
.um .foot small { color: var(--u-lime); }

/* 01 · the preview is pinned; page scroll moves the selected page inside the frame, then the section lets go */
.usite-wrap.is-pinned { height: 260vh; }
.usite-wrap.is-pinned .usite { position: sticky; top: 92px; }
.usite-wrap.is-pinned .usite__list { position: static; }
.usite-wrap.is-pinned .ubrowser__view { height: min(calc(100svh - 300px), 640px); max-height: none; overflow: hidden; }
.usite-wrap.is-pinned .ubrowser__page img { transition: opacity .35s; }
.ubrowser__view { position: relative; }
.ubrowser__thumb { position: absolute; right: 4px; top: 0; width: 5px; border-radius: 4px; background: rgba(62, 71, 77, .55); pointer-events: none; }
.ubrowser__hint { display: none; margin-top: 12px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #5b656b; }
.usite-wrap.is-pinned .ubrowser__hint { display: inline-block; }
@media (max-width: 900px) {
  .usite-wrap.is-pinned { height: 220vh; }
  .usite-wrap.is-pinned .usite { top: 76px; }
  .usite-wrap.is-pinned .ubrowser__view { height: min(calc(100svh - 330px), 520px); }
  .usite-wrap.is-pinned .usite__cap { font-size: 14px; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== round 2 ===== */
.uh__credit { margin-top: 14px; max-width: 520px; font: 500 12px/1.6 var(--f-mono); letter-spacing: .04em; color: rgba(255, 255, 255, .66); }

/* numbers strip */
.ufacts__in { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; }
.ustat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 34px 22px; border-left: 1px solid rgba(10, 13, 17, .16); }
.ustat:first-child { border-left: 0; padding-left: 0; }
.ustat b { font: 800 clamp(48px, 5vw, 76px)/.9 var(--u-f); letter-spacing: -.04em; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.ustat span { font-size: 14px; line-height: 1.35; color: #3a3f16; }
.ustat strong { display: block; font: 700 17px/1.2 var(--u-f); color: var(--u-ink); }

/* Designed → Built */
.uboards__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.uboards__meter { display: grid; gap: 10px; min-width: 200px; padding-bottom: 6px; }
.uboards__count { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; color: #3d464c; }
.uboards__bar { display: block; height: 4px; border-radius: 4px; background: rgba(62, 71, 77, .16); overflow: hidden; }
.uboards__bar i { display: block; width: 20%; height: 100%; border-radius: 4px; background: var(--u-char); }
.uboards__track { gap: 6vw; padding: 34px var(--gut) 10px; }
.upair { flex: none; width: min(84vw, 1180px); }
.upair__frames { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.upair__f { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(20, 30, 20, .5), 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .5s var(--ease); }
.upair__f:hover { transform: translateY(-4px); }
.upair__f .ubar { border-radius: 0; }
.upair__f--d .ubar { background: var(--u-char); }
.upair__f--d .ubar b { color: var(--u-lime); }
.upair__f--d .ubar i { background: rgba(255, 255, 255, .3); }
.upair__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.upair__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.upair__cap { margin-top: 16px; font-size: 16px; color: #3d464c; }
.upair__cap b { margin-right: 6px; font-size: 20px; color: var(--u-ink); }
.uboards:not(.is-pinned) .upair { width: min(86vw, 1000px); }

/* portal journey */
.ujourney { margin-top: 110px; }
.ujourney.is-pinned { height: 280vh; }
.ujourney.is-pinned .ujourney__pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-top: 60px; }
.ujourney__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); grid-template-rows: auto 1fr; gap: 26px 44px; align-items: start; }
.ujourney__head { grid-column: 1 / -1; }
.ujourney__view { position: relative; display: grid; gap: 4px; background: #e9ecee; }
.ujourney__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ujourney__zoom { object-fit: cover; }
.ujourney.is-pinned .ujourney__view { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ujourney.is-pinned .ujourney__img { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .5s, transform .9s var(--ease); }
.ujourney.is-pinned .ujourney__img.is-on { opacity: 1; }
.ujourney.is-pinned .ujourney__zoom { transform-origin: 66% 34%; transform: scale(1); }
.ujourney.is-pinned .ujourney__zoom.is-on { transform: scale(2.4); }
.ujourney__steps { list-style: none; display: grid; gap: 6px; align-self: center; }
.ujourney__steps button { width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 2px 10px; padding: 14px 16px; border: 0; border-radius: 12px; background: transparent; color: #fff; text-align: left; cursor: pointer; transition: background .3s; }
.ujourney__steps b { grid-row: 1 / 3; font: 500 12px/1.9 var(--f-mono); color: var(--u-lime); }
.ujourney__t { font: 700 20px/1.25 var(--u-f); }
.ujourney__d { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .76); }
.ujourney__steps li.is-on button { background: rgba(217, 225, 56, .12); box-shadow: inset 3px 0 0 var(--u-lime); }
.ujourney.is-pinned .ujourney__steps li:not(.is-on) .ujourney__d { display: none; }

@media (max-width: 900px) {
  .ufacts__in { grid-template-columns: 1fr 1fr; }
  .ustat { padding: 20px 0; border-left: 0; border-top: 1px solid rgba(10, 13, 17, .14); }
  .ustat:first-child { grid-column: 1 / -1; border-top: 0; }
  .ustat b { font-size: 44px; }
  .uboards__head { flex-direction: column; align-items: start; gap: 12px; }
  .uboards__meter { min-width: 160px; }
  .upair { width: 84vw; }
  .upair__frames { grid-template-columns: 1fr; gap: 12px; }
  .ujourney.is-pinned .ujourney__pin { padding-top: 76px; align-items: start; }
  .ujourney__in { grid-template-columns: 1fr; gap: 14px; }
  .ujourney__steps { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .ujourney__steps button { grid-template-columns: 1fr; padding: 10px 8px; text-align: center; }
  .ujourney__steps b { grid-row: auto; }
  .ujourney__t { font-size: 13px; }
  .ujourney__d { display: none; }
  .ujourney__steps li.is-on button { box-shadow: inset 0 -3px 0 var(--u-lime); }
  .ujourney__note { display: block; }
}
.uboards.is-pinned .uboards__track { padding-left: calc((100vw - min(84vw, 1180px)) / 2); padding-right: calc((100vw - min(84vw, 1180px)) / 2); }
@media (max-width: 900px) { .uboards.is-pinned .uboards__track { padding-left: 8vw; padding-right: 8vw; } }

/* ===== round 3: Step inside ===== */
.uimm-head { margin-top: 110px; margin-bottom: 30px; }
.uimm { position: relative; }
.uimm.is-pinned { height: 350vh; }
.uimm__pin { overflow: hidden; }
.uimm.is-pinned .uimm__pin { position: sticky; top: 0; height: 100svh; }
.uimm__stage { display: grid; gap: 40px; padding: 0 var(--gut); }
.uimm__slide { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.uimm__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; }
.uimm__line, .uimm.is-pinned .uimm__cap small { display: none; }
.uimm__cap { grid-column: 1 / -1; font-size: 16px; color: #3d464c; }
.uimm__cap b { margin: 0 8px; font-size: 20px; color: var(--u-ink); }
.uimm__n { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; }
.uimm.is-pinned .uimm__stage { position: absolute; inset: 0; display: block; padding: 0; overflow: hidden; background: var(--u-ink); transform-origin: 50% 40%; }
.uimm.is-pinned .uimm__slide { position: absolute; inset: 0; display: block; --w: 0%; }
.uimm.is-pinned .uimm__slide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.uimm.is-pinned .uimm__b { clip-path: inset(0 calc(100% - var(--w)) 0 0); }
.uimm.is-pinned .uimm__line { display: block; position: absolute; top: 0; bottom: 0; left: var(--w); width: 3px; translate: -1.5px 0; background: var(--u-lime); box-shadow: 0 0 0 1px rgba(10, 13, 17, .25); }
.uimm__tag { position: absolute; top: 50%; translate: 0 -50%; padding: 8px 12px; border-radius: 999px; font: 600 12px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.uimm__tag--b { right: 12px; background: var(--u-lime); color: var(--u-ink); }
.uimm__tag--d { left: 12px; background: var(--u-ink); color: var(--u-lime); }
.uimm.is-pinned .uimm__cap { position: absolute; left: var(--gut); bottom: 34px; z-index: 2; display: grid; gap: 4px; max-width: 420px; padding: 18px 22px; border-radius: 16px; background: rgba(20, 24, 27, .86); color: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); }
.uimm.is-pinned .uimm__cap b { margin: 0; font: 800 26px/1.1 var(--u-f); color: #fff; }
.uimm.is-pinned .uimm__n { color: var(--u-lime); }
.uimm.is-pinned .uimm__cap small { display: block; font: 500 11px/1.3 var(--f-mono); color: rgba(255, 255, 255, .6); }

/* ===== round 3: Be the customer ===== */
.ucust { position: relative; }
.ucust.is-pinned { height: 340vh; }
.ucust.is-pinned .ucust__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: 1fr auto; align-items: center; gap: 16px; padding: 84px var(--gut) 20px; }
.ucust__screen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 var(--gut); }
.ucust__layer img { display: block; width: 100%; aspect-ratio: 864 / 604; object-fit: cover; object-position: top; border-radius: 10px; }
.ucust__field, .ucur { display: none; }
.ucust.is-pinned .ucust__screen { container-type: inline-size; position: relative; display: block; justify-self: center; width: min(100%, calc((100svh - 250px) * 1.43)); aspect-ratio: 864 / 604; padding: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); }
.ucust.is-pinned .ucust__layer { position: absolute; inset: 0; }
.ucust.is-pinned .ucust__layer img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.ucust.is-pinned .ucust__layer--login { z-index: 2; }
.ucust.is-pinned .ucust__layer--dash { z-index: 1; transform-origin: 66.3% 33.5%; }
.ucust.is-pinned .ucust__layer--mahfazti { z-index: 3; opacity: 0; visibility: hidden; }
.ucust.is-pinned .ucust__field { display: flex; align-items: center; position: absolute; left: 21.4%; width: 32.6%; height: 2.7%; padding-left: .6%; background: #fff; color: #2c3338; font: 600 1.15cqw/1 var(--f-mono); letter-spacing: .06em; }
.ucust__field--user { top: 36.5%; }
.ucust__field--pass { top: 39.8%; }
.ucust.is-pinned .ucur { display: block; position: absolute; z-index: 5; left: 96%; top: 94%; width: 2.6cqw; min-width: 18px; translate: -18% -10%; pointer-events: none; }
.ucur svg { width: 100%; fill: #0a0d11; stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.ucur__ripple { position: absolute; left: 18%; top: 10%; width: 3.4cqw; height: 3.4cqw; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--u-lime); opacity: 0; }
.ucust__steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding: 0 var(--gut); }
.ucust.is-pinned .ucust__steps { margin-top: 0; padding: 0; width: min(100%, 1100px); justify-self: center; }
.ucust__steps li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; color: #fff; transition: background .35s, opacity .35s; }
.ucust__steps b { grid-row: 1 / 4; font: 500 12px/1.9 var(--f-mono); color: var(--u-lime); }
.ucust__t { font: 700 18px/1.25 var(--u-f); }
.ucust__d { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .76); }
.ucust__steps small { font: 500 10.5px/1.3 var(--f-mono); color: rgba(255, 255, 255, .5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucust.is-pinned .ucust__steps li { opacity: .45; }
.ucust.is-pinned .ucust__steps li.is-on { opacity: 1; background: rgba(217, 225, 56, .12); box-shadow: inset 0 3px 0 var(--u-lime); }
.ucust.is-pinned .ucust__steps li:not(.is-on) .ucust__d, .ucust.is-pinned .ucust__steps li:not(.is-on) small { display: none; }

@media (max-width: 900px) {
  .uimm.is-pinned { height: 300vh; }
  .uimm__slide { grid-template-columns: 1fr; }
  .uimm.is-pinned .uimm__cap { left: 16px; right: 16px; bottom: 20px; max-width: none; padding: 14px 16px; }
  .uimm.is-pinned .uimm__cap b { font-size: 20px; }
  .uimm__tag { font-size: 10px; padding: 6px 9px; }
  .ucust__screen { grid-template-columns: 1fr; }
  .ucust.is-pinned .ucust__pin { padding: 84px 16px 16px; align-items: start; }
  .ucust.is-pinned .ucust__screen { width: 100%; }
  .ucust__steps { grid-template-columns: 1fr 1fr; }
  .ucust.is-pinned .ucust__steps { grid-template-columns: 1fr; }
  .ucust.is-pinned .ucust__steps li:not(.is-on) { display: none; }
}
@media (max-width: 900px) {
  .uimm.is-pinned .uimm__slide img { object-fit: contain; object-position: center 42%; }
  .ucust.is-pinned .ucust__pin { grid-template-rows: auto auto; align-content: center; align-items: center; }
}

/* ===== round 4: journey on real 2× captures (1440 × 900 view) ===== */
.ucust__layer img { aspect-ratio: 1440 / 900; }
.ucust.is-pinned .ucust__screen { aspect-ratio: 1440 / 900; width: min(100%, calc((100svh - 250px) * 1.6)); }
.ucust.is-pinned .ucust__layer--home { z-index: 3; }
.ucust.is-pinned .ucust__layer--login { z-index: 2; opacity: 1; visibility: visible; }
.ucust.is-pinned .ucust__layer--mahfazti { z-index: 4; overflow: hidden; }
.ucust.is-pinned .ucust__layer--mahfazti img { height: auto; aspect-ratio: auto; }
.ucust.is-pinned .ucust__field { left: 21.11%; width: 35.72%; height: 3.22%; padding-left: .8%; font-size: 1.05cqw; }
.ucust__field--user { top: 41.89%; }
.ucust__field--pass { top: 45.56%; }
.ucust.is-pinned .ucust__field--mob { left: 62.46%; top: 32.47%; width: 24.97%; height: 3.44%; }

/* ===== round 6: continuous tour + skip ===== */
.usite-wrap.is-pinned { height: calc(100svh + var(--n, 12) * 48vh); }
.usite__nav { display: grid; align-content: start; gap: 18px; }
.usite__aside { display: grid; gap: 10px; padding: 16px 14px 0; border-top: 1px solid #dfe2da; }
.usite__count { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #5b656b; }
.usite__skip { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--u-char); color: #fff; font: 700 15px/1.2 var(--u-f); transition: background .25s, color .25s, transform .25s var(--ease); }
.usite__skip span { color: var(--u-lime); font-size: 18px; transition: transform .25s var(--ease); }
.usite__skip:hover, .usite__skip:focus-visible { background: var(--u-lime); color: var(--u-ink); }
.usite__skip:hover span, .usite__skip:focus-visible span { color: var(--u-ink); transform: translateY(3px); }
.usite-wrap.is-pinned .ubrowser__page img { transition: opacity .4s, transform .5s var(--ease); }
.usite-wrap.is-pinned .ubrowser__page.is-swap img { opacity: 0; transform: translateY(24px) scale(.985); }
@media (max-width: 900px) {
  .usite-wrap.is-pinned { height: calc(100svh + var(--n, 12) * 40vh); }
  .usite__nav { gap: 8px; }
  .usite__aside { display: flex; justify-content: space-between; align-items: center; padding: 0; border: 0; }
  .usite__skip { padding: 8px 12px; font-size: 13px; }
}
