/* Icons website, version 2: one mood from top to bottom.
   One light room, one point (the business) and what is built around it. The 3D lives on the fixed canvas (js/world.js);
   everything here is the clean layer on top: big light type, small mono labels, almost nothing else.

   Sizes: everything is measured in --u, the smaller of the window's two sides, so nothing outgrows a short window.
   Two compositions: side by side (the default) and stacked (any window taller than it is wide, 4:5 or narrower).
   Rule of the house: nothing sits on anything. Words keep clear of the world, of each other and of the top bar,
   and while one scene hands over to the next its words are gone (js fades each stage out before it lets go). */

@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F4F2FB;
  --ink: #1A1A40; --ink2: #5E5C7A; --line: rgba(26, 26, 64, .14);
  --violet: #5B45D6; --lilac: #9A82FE; --lav: #C9BCFF;
  --vh: 1vh;
  --u: min(1vw, calc(var(--vh) * 1.9));
  --pad: clamp(20px, calc(var(--u) * 5.5), 88px);
  --nav: 88px;
  /* the reading direction: sideways nudges are multiplied by --dir, arrows are var(--arrow), the menu opens from the menu button */
  --dir: 1; --arrow: "→"; --menu-x: calc(100% - var(--pad) - 24px);
  --lap: 45vh;                          /* how far each scene starts inside the end of the one before: a shorter hand-over */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* on a phone the browser's bars come and go: sizes follow the small height, so type never jumps while scrolling */
@supports (height: 1svh) { :root { --vh: 1svh; } }

* { box-sizing: border-box; margin: 0; }
[dir="rtl"] { --dir: -1; --arrow: "←"; --menu-x: calc(var(--pad) + 24px); }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--paper); }
body { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 300; line-height: 1.5; color: var(--ink); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--violet); }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--lav); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }      /* a menu link glides to its scene */
.skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 12px; }

/* the room: one soft light, the same on every screen of the page */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(72vw 62vw at 90% -8%, rgba(154, 130, 254, .30), transparent 62%),
  radial-gradient(60vw 60vw at -8% 108%, rgba(201, 188, 255, .44), transparent 60%),
  var(--paper); }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .25  0 0 0 .14 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px; }
#world { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }

/* ---------- small pieces ---------- */
.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); white-space: nowrap; }
.pill { position: relative; isolation: isolate; display: inline-flex; align-items: center; height: 54px; padding: 0; padding-inline: 22px 28px; border-radius: 999px; overflow: hidden; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; flex: none; width: 8px; height: 8px; margin-inline-end: 12px; border-radius: 50%; background: var(--lilac); transition: transform .7s var(--ease); }
.pill span { position: relative; z-index: 1; transition: color .35s; }
.pill:hover::before { transform: scale(70); }
.pill:hover span { color: var(--ink); }
.pill-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(26, 26, 64, .3); height: 48px; padding-inline: 20px 24px; font-size: 14px; }
.pill-line::before { background: var(--ink); }
.pill-line:hover span { color: #fff; }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; white-space: nowrap; }
.link::after { content: var(--arrow); display: inline-block; transition: transform .35s var(--ease); }
.link:hover::after { transform: translateX(calc(6px * var(--dir))); }

h1, h2 { font-weight: 300; letter-spacing: -.04em; line-height: 1.03; }
h2 { font-size: clamp(28px, calc(var(--u) * 5.4), 96px); }
.ln { display: block; overflow: hidden; padding: .04em 0 .16em; padding-inline-end: .1em; margin: -.04em 0 -.16em; margin-inline-end: -.1em; }
.ln > span { display: block; transform: translateY(112%); transition: transform 1.05s var(--ease); }
.ln + .ln > span { transition-delay: .09s; }
.on .ln > span, .on.ln > span { transform: none; }
.lede { font-size: clamp(15px, calc(var(--u) * 1.45), 23px); color: var(--ink2); }
.lede, .big-c, .q-title, .q-kind, .words-note, .hero-sub, .stats span, .fmm span { text-wrap: balance; }
[data-at]:not(h2):not(.word):not(.close-a):not(.close-b):not(.fmm) { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .9s var(--ease); }
[data-at].on:not(h2):not(.word):not(.close-a):not(.close-b):not(.fmm) { opacity: 1; transform: none; }

/* ---------- top bar: the logo, one button, the menu ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--pad); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-logo img { height: 36px; width: auto; }
.nav-side { position: relative; display: flex; align-items: center; gap: 14px; }
/* the language switch belongs to the menu but stands at the top, in the bar's row beside the buttons, only while the menu is
   open (his word, 15/11/2026: alone at the bottom it looked lost). Out of the flow, so the bar's own pieces never move. */
.nav-lang { position: absolute; inset-inline-end: calc(100% + 24px); top: 50%; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(calc(-50% - 6px)); transition: opacity .25s, transform .4s var(--ease), visibility 0s .25s, color .2s; }
html.menu-open .nav-lang { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .4s .3s, transform .6s var(--ease) .3s, visibility 0s, color .2s; }
.nav-lang:hover { color: var(--violet); }
.menu-btn { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.menu-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.menu-btn circle { fill: none; }
.menu-btn .track { stroke: rgba(26, 26, 64, .2); stroke-width: 1; }
.menu-btn .prog { stroke: var(--violet); stroke-width: 1.6; stroke-dasharray: 141.4; stroke-dashoffset: 141.4; }
.menu-btn i { position: absolute; left: 16px; right: 16px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease); }
.menu-btn i:nth-of-type(1) { top: 20px; }
.menu-btn i:nth-of-type(2) { top: 27px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }
html.menu-open { overflow: hidden; }

.menu { position: fixed; inset: 0; z-index: 75; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--pad) 40px; background: var(--paper); visibility: hidden; clip-path: circle(0 at var(--menu-x) 44px); transition: clip-path .8s var(--ease), visibility 0s .8s; }
.menu[hidden] { display: flex; }
.menu.open { visibility: visible; clip-path: circle(150% at var(--menu-x) 44px); transition: clip-path .9s var(--ease), visibility 0s; }
.menu nav { display: flex; flex-direction: column; margin-block: auto; }
/* the small number stands at the middle of its word's capitals (on the baseline it read as dropping under the word: his eye, 15/11/2026) */
.menu nav a { display: flex; align-items: center; gap: 22px; font-size: clamp(30px, min(8.4vw, calc(var(--vh) * 10.6)), 124px); font-weight: 300; letter-spacing: -.04em; line-height: 1.1; transition: color .3s, transform .5s var(--ease); }
.menu nav a:hover { color: var(--violet); transform: translateX(calc(14px * var(--dir))); }
.menu nav small { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--violet); }

.rail { position: fixed; inset-inline-start: calc(var(--pad) * .3); bottom: 30px; z-index: 70; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); pointer-events: none; }
.rail b { font-weight: 500; color: var(--violet); }
.rail i { width: 1px; height: 26px; background: currentColor; opacity: .4; }

/* ---------- scenes ---------- */
/* each scene starts inside the end of the one before (--lap), and only its stage takes the pointer */
.scene { position: relative; pointer-events: none; }
.scene + .scene, main + .scene { margin-top: calc(var(--lap) * -1); }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; pointer-events: auto; }
.col { --gap: clamp(11px, calc(var(--u) * 1.5), 22px); position: absolute; inset-inline-start: var(--pad); top: 51%; transform: translateY(-50%); width: max(250px, min(44vw, calc(var(--u) * 43))); display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); }

/* hero */
.s-hero { height: 340vh; --a: clamp(0, calc(var(--p, 0) / .13), 1); }
/* the sentence and its one line stand together in the middle; nothing else on the first screen but "scroll" */
.hero-lock { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-53%); display: flex; flex-direction: column; align-items: center; gap: clamp(22px, calc(var(--u) * 3.9), 66px); text-align: center; pointer-events: none; }
.hero-h { font-size: clamp(38px, min(calc(7.78vw + 23px), 10.4vw, calc(var(--vh) * 18.6)), 184px); line-height: 1.02; }
.hero-h .row { display: block; overflow: hidden; padding: .04em .1em .17em; margin: -.04em 0 -.17em; opacity: calc(1 - var(--a)); }
.hero-h .r1 { transform: translateY(calc(var(--a) * -14vh)); }
.hero-h .r2 { transform: translateY(calc(var(--a) * 14vh)); }
.measuring .hero-h .row { transform: none !important; }       /* js reads where the full stop sits, with the lines at rest */
.hero-h .w { display: inline-block; transform: translateY(116%); animation: rise 1.15s var(--ease) forwards; }
.hero-h .r1 .w:nth-child(1) { animation-delay: .1s; }
.hero-h .r1 .w:nth-child(2) { animation-delay: .18s; }
.hero-h .r2 .w:nth-child(1) { animation-delay: .3s; }
.hero-h .r2 .w:nth-child(2) { animation-delay: .38s; }
@keyframes rise { to { transform: none; } }
.dot { display: inline-block; width: .3em; height: .3em; margin-inline-start: .07em; border-radius: 50%; vertical-align: baseline; }
.no-gl .dot { background: var(--ink); }
.hero-sub, .cue { opacity: calc(1 - var(--a)); animation: fade 1s ease .9s both; }
@keyframes fade { from { opacity: 0; } }
.hero-sub { font-size: clamp(15px, calc(var(--u) * 1.5), 23px); color: var(--ink2); }
.cue { position: absolute; left: 50%; bottom: 4.5%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); }

.words { position: absolute; left: 0; right: 0; bottom: 10%; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2); pointer-events: none; }
.words-row { display: flex; justify-content: center; gap: clamp(16px, calc(var(--u) * 4.4), 86px); }
.word { position: relative; font-size: clamp(22px, calc(var(--u) * 3.9), 74px); letter-spacing: -.035em; line-height: 1.1; overflow: hidden; padding: .7em 0 .14em; padding-inline-end: .06em; }
.word b { position: absolute; inset-inline-start: .04em; top: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--violet); opacity: 0; transition: opacity .5s .25s; }
.word span { display: block; transform: translateY(116%); transition: transform .95s var(--ease); }
.word.on span { transform: none; }
.word.on b { opacity: 1; }
.word:nth-child(2) span { color: var(--violet); }
.word:nth-child(3) span { color: var(--lilac); font-style: italic; }
.words-note { font-size: clamp(13px, calc(var(--u) * 1.15), 18px); color: var(--ink2); opacity: 0; transform: translateY(12px); transition: opacity .7s, transform .8s var(--ease); }
.words-note.on { opacity: 1; transform: none; }

/* 01 the solution */
.s-solution { height: 380vh; }
.s-solution h2 { font-size: clamp(26px, calc(var(--u) * 4.5), 80px); }
.disc { margin: clamp(0px, calc(var(--u) * .5), 8px) 0 0; width: 100%; }
.disc > li { padding: clamp(8px, calc(var(--u) * 1.05), 15px) 0; border-top: 1px solid var(--line); opacity: .36; transition: opacity .5s; }
.disc > li:last-child { border-bottom: 1px solid var(--line); }
.disc-t { display: flex; align-items: baseline; gap: clamp(12px, calc(var(--u) * 1.25), 18px); font-size: clamp(17px, calc(var(--u) * 2), 32px); letter-spacing: -.02em; line-height: 1.2; }
.disc-t b { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--violet); }
.disc-m { max-height: 0; opacity: 0; overflow: hidden; padding-inline-start: clamp(26px, calc(var(--u) * 2.5), 36px); transition: max-height .8s var(--ease), opacity .5s, margin .8s var(--ease); }
.disc-m p { font-size: clamp(14px, calc(var(--u) * 1.15), 17px); }
/* what each discipline holds: four short lines in two even columns, one thought per line */
.svc { margin-top: clamp(5px, calc(var(--u) * .55), 9px); display: grid; grid-template-columns: repeat(2, max-content); column-gap: clamp(22px, calc(var(--u) * 3.4), 56px); row-gap: 1px; }
.svc li { position: relative; padding-inline-start: 15px; font-size: clamp(13px, calc(var(--u) * .98), 14.5px); line-height: 1.65; color: var(--ink2); white-space: nowrap; }
.svc li::before { content: ""; position: absolute; inset-inline-start: 1px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--lilac); }
.disc.one .svc { grid-template-columns: max-content; }       /* js: the two columns would not fit this column */
.disc > li.is-active { opacity: 1; }
.disc > li.is-active .disc-m { max-height: 11em; opacity: 1; margin-top: 8px; }
.all .disc > li { opacity: 1; }
/* "Full Marketing Management" takes the place the open discipline leaves, so the column keeps its height. Plain words, nothing behind them. */
.fmm { width: 100%; max-height: 0; margin-top: calc(var(--gap) * -1); opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), margin .8s var(--ease), opacity .6s; }
.fmm.on { max-height: 8em; margin-top: 0; opacity: 1; }
.fmm p { display: flex; flex-direction: column; gap: 3px; padding-inline-start: clamp(26px, calc(var(--u) * 2.5), 36px); }
.fmm b { font-weight: 500; font-size: clamp(15px, calc(var(--u) * 1.25), 19px); letter-spacing: -.01em; }
.fmm .link { margin: clamp(8px, calc(var(--u) * .9), 14px) 0 2px; margin-inline-start: clamp(26px, calc(var(--u) * 2.5), 36px); font-size: clamp(13px, calc(var(--u) * 1.05), 15px); }
.fmm span { font-size: clamp(13px, calc(var(--u) * 1.02), 15px); color: var(--ink2); }

/* 02 the quality: a fan of work, every card whole on the screen; the cursor chooses */
.s-quality { height: 220vh; }
/* the scene's number and its sentence stand together under the top bar, like every other scene's, and the fan takes the room
   they leave (his word, 15/11/2026: riding in the bar's own row, the sentence looked stuck to the header) */
.q-top { position: absolute; left: 0; right: 0; top: calc(var(--nav) - 10px); display: flex; flex-direction: column; align-items: center; gap: clamp(6px, calc(var(--u) * .8), 12px); text-align: center; pointer-events: none; }
.q-top h2 { font-size: clamp(24px, calc(var(--u) * 4.2), 74px); white-space: nowrap; }
.q-top h2 .ln { display: inline-block; vertical-align: top; }
.q-count { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink2); }
.q-count b { font-weight: 500; color: var(--ink); }
.q-count i { width: 22px; height: 1px; background: currentColor; }
.q-kind { font-family: var(--mono); font-size: clamp(10px, calc(var(--u) * .76), 11px); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
/* js sets where the fan stands (top) and how wide a card is (--cw) from the room the heading leaves */
.fan { position: absolute; left: 50%; top: 82%; width: 0; height: 0; --cw: 200px; touch-action: pan-y; }
.card { position: absolute; left: 0; bottom: 0; width: var(--cw); aspect-ratio: 9 / 16; margin-left: calc(var(--cw) / -2); border-radius: clamp(14px, calc(var(--cw) * .1), 34px); transform-origin: 50% 260%; will-change: transform; cursor: pointer; outline: none; }
/* the picture steps aside, rises and grows a little inside its still box: the box takes the pointer a little wider and higher, so the picture's edge is never dead */
.card::after { content: ""; position: absolute; inset: -9% -7% 0; }
.card-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #0c0c22; box-shadow: 0 30px 50px -30px rgba(26, 26, 64, .5); pointer-events: none; will-change: transform; }
.card:focus-visible .card-in { outline: 2px solid var(--violet); outline-offset: 4px; }
/* the card in front carries a small "+": it opens */
.card-in::after { content: "+"; position: absolute; inset-inline-end: 7%; bottom: 4.5%; z-index: 2; width: clamp(30px, 15%, 46px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(244, 242, 251, .94); color: var(--ink); font-size: clamp(18px, calc(var(--cw) * .1), 26px); font-weight: 300; line-height: 1; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .5s var(--ease); }
.card.is-front .card-in::after { opacity: 1; transform: none; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .8s; }
.card video.playing { opacity: 1; }
.strip { position: absolute; inset: 0; overflow: hidden; }
.strip-in { display: flex; flex-direction: column; gap: 10px; animation: strip 36s linear infinite; }
.strip-in img { position: static; width: 100%; height: auto; }
@keyframes strip { to { transform: translateY(calc(-66.6667% - 6.67px)); } }

/* a closer look at one piece: the room blurs, the piece stands large, a few words and one button beside it */
.peek { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.peek::backdrop { background: rgba(244, 242, 251, .9); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); }
.peek[open] { display: flex; align-items: center; justify-content: center; animation: peek-in .55s var(--ease); }
@keyframes peek-in { from { opacity: 0; transform: scale(.965); } }
html.peek-open { overflow: hidden; }
/* --pt: the words' column, never narrower than its button; --pg: the air between the picture and the words.
   The picture is as tall as the window allows (78% of it, 780 px at most) and never wider than the room the words leave:
   on a narrow window that is still side by side it gives way, so nothing runs off the screen. */
.peek-in { --pt: max(min(36vw, 400px), 224px); --pg: clamp(24px, calc(var(--u) * 4.6), 84px); display: flex; align-items: center; justify-content: center; gap: var(--pg); padding: 0 var(--pad); max-width: 100%; }
.peek-media { position: relative; flex: none; width: min(calc(var(--vh) * 78 * .5625), 438.75px, calc(100vw - 2 * var(--pad) - var(--pg) - var(--pt))); aspect-ratio: 9 / 16; border-radius: clamp(16px, calc(var(--u) * 1.9), 32px); overflow: hidden; background: #0c0c22; box-shadow: 0 44px 80px -44px rgba(26, 26, 64, .6); }
.peek-media img, .peek-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek-media video { opacity: 0; transition: opacity .6s; }
.peek-media video.playing { opacity: 1; }
.peek-media .strip-in img { position: static; height: auto; }
.peek-text { width: var(--pt); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, calc(var(--u) * 1), 14px); }
.peek-text h3 { font-size: clamp(26px, calc(var(--u) * 3.3), 54px); font-weight: 300; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
.peek-note { margin-top: clamp(6px, calc(var(--u) * 1), 16px); font-size: clamp(14px, calc(var(--u) * 1.15), 17px); color: var(--ink2); text-wrap: balance; }
.peek-cta { margin-top: clamp(6px, calc(var(--u) * 1), 16px); display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.peek-nav { display: flex; gap: 8px; }
.peek-nav button, .peek-x { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px rgba(26, 26, 64, .28); font-size: 17px; cursor: pointer; transition: background .25s, color .25s; }
.peek-nav button:hover, .peek-x:hover { background: var(--ink); color: #fff; }
.peek-x { position: absolute; inset-inline-end: var(--pad); top: 20px; }
.peek-x i { position: absolute; left: 16px; right: 16px; top: 23px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.peek-x i + i { transform: rotate(-45deg); }

/* 03 the result */
.s-result { height: 320vh; }
.s-result .col { top: 44%; --gap: clamp(8px, calc(var(--u) * 1), 14px); }
.s-result h2 { font-size: clamp(25px, calc(var(--u) * 4.2), 74px); }
.big-n { font-size: clamp(84px, calc(var(--u) * 15.5), 280px); font-weight: 300; letter-spacing: -.06em; line-height: .9; white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: calc(var(--u) * .6); }
.big-n .plus { color: var(--lilac); margin-inline-start: .02em; }
.big-c { font-size: clamp(14px, calc(var(--u) * 1.35), 21px); color: var(--ink2); }
.stats { position: absolute; left: var(--pad); right: var(--pad); bottom: 6%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; }
.stats li { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: clamp(12px, calc(var(--u) * 1.25), 18px); border-top: 1px solid var(--line); }
.stats b { font-size: clamp(24px, calc(var(--u) * 3.8), 64px); font-weight: 300; letter-spacing: -.045em; line-height: 1; }
.stats span { font-size: clamp(11.5px, calc(var(--u) * .97), 14px); line-height: 1.4; color: var(--ink2); }

/* the offer, inside the ring: js draws the ring as wide as the words need, and shrinks the words (--fit) when the window cannot give that */
.s-offer { height: 200vh; }
.offer-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(11px, calc(var(--u) * 1.3), 20px); padding: 0 var(--pad); text-align: center; transform: scale(var(--fit, 1)); }
.offer-in h2 { font-size: clamp(24px, calc(var(--u) * 3.7), 66px); }
.offer-in .ln { padding-inline-end: 0; margin-inline-end: 0; }
.offer-in .lede { max-width: 27ch; font-size: clamp(14px, calc(var(--u) * 1.3), 20px); }

/* the close is the footer: the sentence and the point in the middle, the way on at the sides, the small print along the bottom */
.s-close { height: 190vh; }
.poster { position: absolute; inset: 0; }
.close-h { font-size: clamp(30px, min(calc(5.9vw + 21px), 10.2vw, calc(var(--vh) * 12.8)), 136px); }
.close-a, .close-b { position: absolute; left: 0; right: 0; display: block; text-align: center; }
.close-h .ln { padding-inline-end: 0; margin-inline-end: 0; }
.close-a { top: max(12.5%, calc(var(--nav) - 8px)); }
/* from the bottom up: one quiet line of small print, then the sentence (the two buttons went on 15/11/2026: the top bar carries WhatsApp) */
.close-b { bottom: calc(16px + var(--legal, 20px) + 6.5%); }
/* the two columns stand level with the point (js: --mid); a box with no height centres them without a transform */
.end-col { position: absolute; top: var(--mid, 50%); height: 0; display: flex; align-items: center; }
.end-col > div { display: flex; flex-direction: column; gap: clamp(2px, calc(var(--u) * .4), 6px); font-size: clamp(13px, calc(var(--u) * 1.1), 16px); font-weight: 400; }
.end-a { inset-inline-start: var(--pad); }
.end-b { inset-inline-end: var(--pad); }
.end-b > div { align-items: flex-end; text-align: end; }
.end-t { margin-bottom: clamp(4px, calc(var(--u) * .5), 8px); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.end-col a { transition: color .2s, transform .4s var(--ease); }
.end-a a:hover { color: var(--violet); transform: translateX(calc(5px * var(--dir))); }
.end-b a:hover { color: var(--violet); transform: translateX(calc(-5px * var(--dir))); }
.end-legal { position: absolute; left: var(--pad); right: var(--pad); bottom: 16px; min-height: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; font-size: 12.5px; font-weight: 400; line-height: 20px; color: var(--ink2); white-space: nowrap; }
.end-legal p { display: flex; gap: 22px; }
.end-legal p:last-child { margin-inline-start: auto; }       /* the phone and the email keep to the right, also when the line breaks in two (js: --legal) */
.end-legal a { transition: color .2s; }
.end-legal a:hover { color: var(--violet); }
/* a window too narrow for that one line: the ways to reach Icons on a line, the small print under it, both in the middle
   (his word, 15/11/2026: one neat line, or contacts over rights; never one at each end of two lines). js reads the height (--legal). */
@media (max-width: 720px) {
  .end-legal { flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 0; }
  .end-legal p:last-child { order: -1; margin-inline-start: 0; }
}

/* ---------- a narrow window that is still wider than tall ---------- */
@media (max-width: 900px) {
  .rail { display: none; }      /* "Scroll" stays on every version (his word, 15/11/2026): the first screen has no button now */
}
/* WhatsApp is one thing everywhere (his word, 15/11/2026: "هنثبت كله حاجة واحدة"): the button lives in the top bar on every
   size, over the open menu too, and nowhere else on the first screen or in the menu. On a narrow window it is a size smaller,
   so the bar still holds the logo, the language switch (menu open), the button and the menu. */
@media (max-width: 520px) {
  .nav-side { gap: 10px; }
  .nav .pill-line { height: 42px; padding-inline: 14px 16px; font-size: 13px; }
  .nav .pill-line::before { width: 7px; height: 7px; margin-inline-end: 9px; }
  .nav-lang { inset-inline-end: calc(100% + 16px); font-size: 14px; }
}
@media (max-width: 350px) {
  .nav-side { gap: 8px; }
  .nav .pill-line { height: 40px; padding-inline: 10px 12px; font-size: 12px; }
  .nav .pill-line::before { display: none; }      /* no room for the dot: the language switch needs it when the menu is open */
  .nav-lang { inset-inline-end: calc(100% + 12px); }
}

/* ---------- stacked: phones, and any window taller than it is wide ---------- */
@media (max-aspect-ratio: 4/5) {
  :root { --u: min(1vw, calc(var(--vh) * .56)); --nav: 76px; }
  .nav { padding: 14px var(--pad); }
  .nav-logo img { height: 30px; }
  .rail { display: none; }
  /* the world never shows through the top bar: it fades out just under it */
  #world { -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--nav) - 24px), #000 calc(var(--nav) + 10px)); mask-image: linear-gradient(to bottom, transparent calc(var(--nav) - 24px), #000 calc(var(--nav) + 10px)); }

  .hero-lock { top: 48%; transform: translateY(-50%); gap: clamp(20px, calc(var(--u) * 7.2), 44px); }      /* in the middle, a little high: nothing stands under the words but "Scroll" */
  .hero-h { font-size: min(16.4vw, calc(var(--vh) * 10.6)); line-height: 1; }
  .hero-h .w { display: block; }
  .hero-sub { font-size: clamp(15px, calc(var(--u) * 4.2), 22px); }
  .words { bottom: 7%; gap: calc(var(--u) * 3.6); }
  .words-row { flex-direction: column; align-items: center; gap: 0; }
  .word { font-size: clamp(26px, calc(var(--u) * 9.6), 64px); padding-top: .16em; }
  .word b { display: none; }
  .words-note { font-size: 14px; }

  h2 { font-size: clamp(28px, calc(var(--u) * 10.6), 76px); }
  .lede { font-size: clamp(15px, calc(var(--u) * 4.2), 20px); }
  .col { --gap: clamp(8px, calc(var(--u) * 3), 18px); left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: 4%; transform: none; }
  .s-solution h2 { font-size: clamp(26px, calc(var(--u) * 9.2), 66px); }
  .disc { margin-top: 0; }
  .disc > li { padding: clamp(7px, calc(var(--u) * 2.5), 14px) 0; }
  .disc-t { font-size: clamp(17px, calc(var(--u) * 4.9), 27px); gap: 14px; }
  .disc-m { padding-inline-start: 30px; }
  .disc-m p { font-size: clamp(14px, calc(var(--u) * 3.85), 18px); }
  .svc { margin-top: 4px; row-gap: 0; column-gap: clamp(16px, calc(var(--u) * 5), 40px); }
  .svc li { font-size: clamp(12.5px, calc(var(--u) * 3.45), 16px); line-height: 1.5; }
  .fmm p { padding-inline-start: 30px; }
  .fmm .link { margin-inline-start: 30px; font-size: 14px; }
  .fmm b { font-size: clamp(15px, calc(var(--u) * 4.2), 20px); }
  .fmm span { font-size: clamp(13px, calc(var(--u) * 3.5), 16px); }

  .q-top { left: var(--pad); right: var(--pad); top: var(--nav); gap: 6px; align-items: flex-start; text-align: start; }
  .q-top h2 { font-size: clamp(26px, calc(var(--u) * 9.2), 66px); white-space: normal; }
  .q-top h2 .ln { display: block; }

  /* the text sits on the three figures; js measures them (--sh) */
  .s-result .col { top: auto; bottom: calc(3% + var(--sh, 104px) + 3.4%); --gap: clamp(5px, calc(var(--u) * 2), 12px); }
  .s-result h2 { font-size: clamp(25px, calc(var(--u) * 8.6), 60px); }
  .big-n { font-size: calc(var(--u) * 27); margin-top: 0; }
  .big-c { font-size: clamp(14px, calc(var(--u) * 4), 19px); }
  .big-c br { display: none; }
  .stats { bottom: 3%; gap: 14px; }
  .stats li { padding-top: 12px; gap: 5px; }
  .stats b { font-size: clamp(22px, calc(var(--u) * 6.6), 40px); }
  .stats span { font-size: clamp(11px, calc(var(--u) * 2.95), 14px); line-height: 1.35; }

  .offer-in { gap: clamp(10px, calc(var(--u) * 3.4), 20px); }
  .offer-in h2 { font-size: clamp(24px, calc(var(--u) * 7.6), 54px); }
  .offer-in .lede { font-size: clamp(14px, calc(var(--u) * 3.9), 19px); max-width: 26ch; }

  /* the close: the sentence and the point fill one screen; the way on and the small print follow under it, in the flow.
     As that screen scrolls away, what passes under the top bar fades out (js: --cut). */
  .s-close { height: auto; }
  .s-close .stage { position: relative; height: auto; overflow: visible; -webkit-mask-image: linear-gradient(to bottom, transparent var(--cut, -60px), #000 calc(var(--cut, -60px) + 34px)); mask-image: linear-gradient(to bottom, transparent var(--cut, -60px), #000 calc(var(--cut, -60px) + 34px)); }
  .poster { position: relative; inset: auto; height: 100vh; height: 100svh; }
  .close-h { font-size: clamp(30px, calc(var(--u) * 10.4), 78px); }
  .close-a { top: max(13%, calc(var(--nav) + 6px)); }
  .close-b { bottom: 12%; }
  .end { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; padding: 6px var(--pad) 28px; }
  html.ask .end { padding-bottom: calc(28px + var(--ask-h)); }
  .end-col { position: static; height: auto; display: block; }
  .end-col > div { font-size: 15px; gap: 5px; }
  .end-b > div { align-items: flex-start; text-align: start; }
  .end-a a:hover, .end-b a:hover { transform: none; }
  .end-legal { grid-column: 1 / -1; position: static; height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); white-space: normal; }
  .end-legal p { flex-wrap: wrap; gap: 2px 18px; }
  .end-legal p:last-child { order: -1; margin-inline-start: 0; }       /* on a phone the ways to reach Icons come first, the small print last */

  /* the whole closer look stays inside the screen: on a very short one the film gives way and the words keep their size
     (at 320 × 568 the film stood 8 px past the top and the button 8 px past the bottom; found on 15/11/2026) */
  .peek-in { flex-direction: column; align-items: flex-start; gap: clamp(14px, calc(var(--u) * 5), 28px); max-height: calc(100% - 20px); }
  .peek-media { width: auto; height: min(calc(var(--vh) * 54), calc(86vw * 16 / 9)); align-self: center; flex: 0 1 auto; min-height: 0; }
  .peek-text { width: 100%; }
  .peek-text h3 { font-size: clamp(24px, calc(var(--u) * 7.4), 44px); }
  .peek-x { top: 14px; }
}

/* a phone held sideways: the scenes need more height than it has (words would go under the top bar). On a touch screen
   in landscape under 480 px high, one calm line asks for the phone upright. A desktop window is never covered. */
@media (orientation: landscape) and (max-height: 480px) and (pointer: coarse) {
  html::before { content: "Turn your phone upright."; position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: var(--paper); color: var(--ink); font-family: "Poppins", system-ui, sans-serif; font-size: 20px; font-weight: 300; letter-spacing: -.02em; text-align: center; }
  html[lang="ar"]::before { content: "أدِر هاتفك إلى الوضع العمودي."; font-family: "Poppins", "itf Asal Arabic", "Almarai", sans-serif; letter-spacing: 0; }
  body { overflow: hidden; }
}

/* the cookie notice (js/measure.js): the agreed words and two answers, fixed at the foot of the window, so the visitor
   has it in front of them until they answer (his choice, 15/11/2026: "خليه ثابت"; more visitors answer, and meanwhile
   it stands over whatever is at the foot of the screen). Its markup is in every page (build.py's ask(); the homepage's
   by hand). It shows only while the site measures (an id is set) and until the answer: the class "ask" on <html>, put
   there by a line in the page's head before the first paint. While it is asked, "Scroll" steps out (they share a
   place), the end of a page has room to scroll clear of it, and on the homepage's last scene it steps aside where it
   would touch the last line (lifting that line instead ran it into the closing sentence at six window sizes). */
:root { --ask-h: 78px; }
.cookie { display: none; position: fixed; z-index: 85; inset-inline: 0; bottom: max(16px, env(safe-area-inset-bottom)); margin-inline: auto; width: max-content; max-width: calc(100vw - 32px); align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; padding-block: 12px; padding-inline: 22px 14px; border-radius: 999px; background: rgba(244, 242, 251, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(26, 26, 64, .14), 0 18px 40px -22px rgba(26, 26, 64, .5); font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--ink); transition: opacity .4s, transform .5s var(--ease); }
html.ask .cookie { display: flex; animation: notice .7s var(--ease) .9s both; }
@keyframes notice { from { opacity: 0; transform: translateY(14px); } }
html.ask .cookie.out { opacity: 0; transform: translateY(14px); pointer-events: none; }
.cookie p { white-space: nowrap; }
.cookie div { display: flex; align-items: center; gap: 6px; }
.cookie button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
.cookie .yes { background: var(--ink); color: #fff; }
.cookie .yes:hover { background: var(--violet); }
.cookie .no:hover { color: var(--violet); }
html.ask .cue { visibility: hidden; }
html.ask .cookie.aside { opacity: 0; pointer-events: none; }          /* the homepage's last line has the foot of the last scene: where the notice would touch it, the notice steps aside (js/measure.js) */
@media (max-width: 520px) {
  :root { --ask-h: 116px; }
  .cookie { border-radius: 26px; padding: 14px 16px; padding-inline: 16px; }
  .cookie p { white-space: normal; text-align: center; }
}
html.menu-open .cookie, html.peek-open .cookie { visibility: hidden; }

/* from one page to the next: the old page lets go, the new one rises (browsers that can; the others just change page) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .32s ease both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--ease) .08s both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- less motion when the device asks for it ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .strip-in { animation: none !important; }
}
