/* Rokketo — styles ("orbit" direction: beige, bold type, everything drawn in moving dots)
   Colours and fonts come from the Rokketo brand guidelines. No gradients, no colours outside this set. */

:root {
  --white: #ffffff;
  --ink: #141416;
  --grey: #6b6b76;
  --violet: #5b2eff;
  --orange: #ff5a1f;
  --tint: #f1ecff;   /* Violet Tint */
  --beige: #ffeee6;  /* Orange Tint */
  --wash: #ffeee6;   /* background of the tinted sections (Orange Tint; Violet Tint #f1ecff was tried and dropped) */
  --line: 1.5px solid var(--ink);
  --hair: rgba(20, 20, 22, .14);

  --font-en: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Almarai", "Sora", system-ui, "Segoe UI", sans-serif;

  --r: 24px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 10vw, 150px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-en); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html:lang(ar) body { font-family: var(--font-ar); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, b, strong { font-weight: 600; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) b, :lang(ar) strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
em, i { font-style: normal; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--white); }
.skip { position: absolute; inset-inline-start: 16px; top: -70px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.nowrap { white-space: nowrap; }

/* ---------- Type ---------- */
.h2 { font-size: clamp(34px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.h2 em { display: block; color: var(--violet); }
:lang(ar) .h2 { letter-spacing: 0; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 40ch; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--font-en); font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: -0.045em; color: var(--ink); direction: ltr; }
.logo-dot { width: .21em; height: .21em; margin-left: .07em; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------- Buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; white-space: nowrap; padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, color .2s; }
:lang(ar) .btn { font-weight: 700; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--violet); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.chip { display: inline-flex; align-items: center; font-size: 13.5px; line-height: 20px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--white); border: var(--line); }
:lang(ar) .chip { font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--wash); transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { background: var(--white); box-shadow: 0 1px 0 var(--hair); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a { font-size: 15px; font-weight: 600; text-decoration: none; position: relative; padding: 6px 0; }
:lang(ar) .nav a { font-weight: 700; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scale(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.lang:hover { background: var(--white); }
.lang:lang(ar) { font-family: var(--font-ar); font-weight: 700; }
.lang:lang(en) { font-family: var(--font-en); font-weight: 600; }
.header-actions .btn { padding: 10px 22px; font-size: 15px; background: var(--orange); color: var(--ink); }
.header-actions .btn:hover { background: var(--ink); color: var(--white); }
.menu-btn { display: none; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--white); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .header-actions .btn { display: none; }
  .nav { position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; background: var(--white); border-bottom: var(--line); padding: 8px var(--gutter) 24px; display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 28px; letter-spacing: -0.03em; padding: 10px 0; }
  :lang(ar) .nav a { letter-spacing: 0; }
  .nav a::after { display: none; }
}

/* ---------- Hero: three slides over one field of dots ---------- */
.hero { position: relative; overflow: hidden; background: var(--wash); min-height: calc(100svh - 76px); display: flex; align-items: center; touch-action: pan-y; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 80px); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(-14px); transition: opacity .35s, transform .35s, visibility 0s .35s; }
.slide.on { visibility: visible; opacity: 1; transform: none; transition: none; }
.hero .t { font-size: clamp(44px, 7.2vw, 124px); line-height: .95; letter-spacing: -0.055em; max-width: 5.6em; }
:lang(ar) .hero .t { letter-spacing: 0; line-height: 1.22; }
.hero .t .w { display: inline-block; opacity: 0; transform: translateY(.45em); }
.hero .t em.w { display: block; color: var(--violet); white-space: nowrap; }
.slide.on .w { animation: wordIn .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 180ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
.hero-sub { margin-top: 26px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; max-width: 30ch; opacity: 0; }
.slide.on .hero-sub { animation: fadeUp .9s var(--ease) .5s both; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button { position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.hero-dots button::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--ink); opacity: .28; transition: opacity .3s, background-color .3s, transform .3s var(--ease); }
.hero-dots button:hover::before { opacity: .7; }
.hero-dots .on::before { background: var(--orange); opacity: 1; transform: scale(1.25); }
.hero-dots svg { position: absolute; inset: 1px; width: 28px; height: 28px; transform: rotate(-90deg); }
.hero-dots .r { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-dots .on .r { animation: ring 7s linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.fade { opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero-inner { padding-top: min(96vw, 520px); padding-bottom: 44px; }
  .hero .t { max-width: 9.5em; }
}

/* ---------- Services: thin orange sketches drawn by your scrolling ---------- */
.build { position: relative; height: 480vh; background: var(--wash); }
.build .scene .node { fill: var(--wash); }
:lang(ar) .build .h2 em { display: inline; }   /* this Arabic title is short enough to stay on one line */
.build-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-top: 76px; }
.build-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 96px); }
.build-names { display: grid; margin-top: clamp(18px, 3vh, 34px); }
.build-item { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .6s var(--ease); }
.build-item.on { opacity: 1; transform: none; }
html:not(.js) .build-item { grid-area: auto; opacity: 1; transform: none; margin-bottom: 28px; }
.build-count { font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--grey); direction: ltr; display: flex; align-items: center; gap: 10px; }
[dir="rtl"] .build-count { justify-content: flex-end; }
.build-count b { color: var(--orange); }
.build-item h3 { margin-top: 10px; font-size: clamp(28px, 3.3vw, 50px); line-height: 1.05; letter-spacing: -0.04em; }
:lang(ar) .build-item h3 { letter-spacing: 0; line-height: 1.25; }
.build-item p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 30ch; color: var(--grey); }
.build-rail { display: flex; gap: 8px; margin-top: clamp(22px, 4vh, 40px); }
.build-rail i { width: 36px; height: 3px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.build-rail i::after { content: ""; display: block; height: 100%; width: calc(var(--f, 0) * 100%); background: var(--orange); }
.sketch { position: relative; width: 100%; max-width: 560px; aspect-ratio: 600 / 480; margin-inline: auto; color: var(--orange); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .4s; }
.scene.on { opacity: 1; }
html:not(.js) .scene { opacity: 0; }
html:not(.js) .scene:first-child { opacity: 1; }
.scene * { vector-effect: non-scaling-stroke; }
.scene .draw { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 1)); }
.scene .dash { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-dasharray: 2 6; opacity: var(--t, 1); }
.scene .tint { fill: var(--tint); stroke: none; opacity: var(--t, 1); }
.scene .node { fill: var(--white); stroke: currentColor; stroke-width: 1.15; }
.scene .pop { opacity: var(--t, 1); transform-box: fill-box; transform-origin: center; transform: scale(calc(.4 + .6 * var(--t, 1))); }
@media (max-width: 860px) {
  .build-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 4px; }
  .sketch { order: -1; max-width: min(320px, 36vh); }
  .build-item h3 { font-size: 26px; margin-top: 6px; }
  .build-item p { margin-top: 10px; font-size: 16px; }
  .build-rail { margin-top: 16px; }
}

/* ---------- Process: the steps slide along the ground line while one rocket is built on it ---------- */
.steps { --wash: #ffffff; position: relative; height: 460vh; background: var(--wash); }
.steps-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-top: 76px; display: flex; flex-direction: column; justify-content: center; }
.steps .h2 { font-size: clamp(38px, 5.4vw, 80px); min-height: calc(min(440px, 36vw) * .74 - 170px); display: flex; align-items: flex-end; margin-bottom: clamp(80px, 16vh, 150px); }
.steps .h2 span { display: block; max-width: 7.4em; }
.s-stage { position: relative; }
.s-clip { -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 60%); mask-image: linear-gradient(to right, #000 50%, transparent 60%); }
[dir="rtl"] .s-clip { -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 60%); mask-image: linear-gradient(to left, #000 50%, transparent 60%); }
.s-track { position: relative; z-index: 1; display: flex; will-change: transform; }
.s-step { position: relative; flex: none; width: max(320px, 34vw); padding-inline-end: 40px; }
.s-step h3 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -0.045em; padding-bottom: 20px; color: rgba(20, 20, 22, .22); transition: color .5s; }
:lang(ar) .s-step h3 { letter-spacing: 0; line-height: 1.3; }
.s-step.on h3 { color: var(--ink); }
.s-body { position: relative; padding-top: 26px; opacity: .35; transition: opacity .5s; }
.s-step.on .s-body { opacity: 1; }
.s-body::before { content: ""; position: absolute; inset-inline-start: 0; top: -7px; width: 1px; height: 14px; background: var(--ink); }
.s-body p { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; max-width: 30ch; color: var(--grey); }
.s-line, .s-done { position: absolute; z-index: 1; inset-inline-start: -50vw; height: 1px; }
.s-line { inset-inline-end: -50vw; background: var(--hair); }
.s-done { width: 50vw; background: var(--orange); }
.s-dot { position: absolute; z-index: 3; inset-inline-start: 0; width: 10px; height: 10px; margin: -5px 0 0; margin-inline-start: -5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 90, 31, .18); }
.s-rocket { position: absolute; z-index: 2; inset-inline-end: 0; width: min(440px, 36vw); aspect-ratio: 600 / 480; color: var(--orange); pointer-events: none; }
.s-rocket svg { width: 100%; height: 100%; overflow: visible; }
.s-rocket * { vector-effect: non-scaling-stroke; }
.s-rocket .draw { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 0)); }
.s-rocket .rough { stroke-width: .9; }
.s-rocket .dash { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 6; opacity: var(--t, 0); }
.s-rocket .node { fill: var(--wash); stroke: currentColor; stroke-width: 1.15; }
.s-rocket .pop { opacity: var(--t, 0); transform-box: fill-box; transform-origin: center; transform: scale(calc(.4 + .6 * var(--t, 0))); }
.s-rocket .mask { fill: var(--wash); stroke: none; opacity: var(--t, 0); }
.s-rocket .rk-g { transform: translateY(calc(var(--lift, 0) * -1px)); }
.s-rocket .flame { transform-box: fill-box; transform-origin: 50% 0; animation: flick .16s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scaleY(.86); } }
html:not(.js) .steps { height: auto; padding-block: var(--section); }
html:not(.js) .steps-pin { position: static; height: auto; padding-top: 0; }
html:not(.js) .steps .h2 { min-height: 0; margin-bottom: 48px; }
html:not(.js) .s-clip { -webkit-mask-image: none; mask-image: none; }
html:not(.js) .s-track { flex-wrap: wrap; row-gap: 36px; }
html:not(.js) .s-step h3 { color: var(--ink); }
html:not(.js) .s-body { opacity: 1; }
html:not(.js) .s-line, html:not(.js) .s-done, html:not(.js) .s-dot, html:not(.js) .s-rocket { display: none; }
@media (max-width: 860px) {
  .steps .h2 { min-height: 0; margin-bottom: 54vw; }
  .s-clip, [dir="rtl"] .s-clip { -webkit-mask-image: none; mask-image: none; }
  .s-step { width: 80vw; padding-top: 30px; }
  .s-step::before { content: ""; position: absolute; inset-inline-start: 0; top: -7px; width: 1px; height: 14px; background: var(--ink); }
  .s-step h3 { padding-bottom: 12px; }
  .s-body { padding-top: 0; }
  .s-body::before { display: none; }
  .s-rocket { width: 64vw; }
}

/* ---------- Included: a bill that unrolls as you scroll, stamped row by row ---------- */
.bill { background: var(--white); overflow: clip; padding-bottom: var(--section); }
.bill-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.bill-copy { position: sticky; top: 26vh; margin-top: 26vh; padding-bottom: 8vh; }
.bill-copy .h2 { font-size: clamp(44px, 6.2vw, 96px); line-height: .98; margin-bottom: clamp(20px, 3vh, 32px); }
:lang(ar) .bill-copy .h2 { line-height: 1.3; }
.bill-copy .lede { font-size: clamp(19px, 1.9vw, 27px); line-height: 1.4; color: var(--grey); max-width: 22ch; }
.printer { position: relative; width: min(430px, 100%); margin: clamp(56px, 11vh, 110px) auto 0; transform: rotate(2.4deg); transform-origin: 50% 0; }
.feed { --s: 8px; overflow: hidden;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%; }
.js .feed { height: 0; }
.roll { position: absolute; left: -9px; right: -9px; top: 0; height: 30px; margin-top: -15px; border-radius: 99px; background: #f7d9ca; opacity: 0; }
.roll::before { content: ""; position: absolute; left: 14px; right: 26px; top: 32%; height: 1px; background: rgba(20, 20, 22, .1); }
.roll::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; aspect-ratio: .52; border-radius: 50%; background: #efc4b1; }
.paper { --pad: clamp(22px, 2.6vw, 34px); position: relative; background: var(--beige); padding: 90px var(--pad) 48px; font-variant-numeric: tabular-nums; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; }
.p-logo { font-family: var(--font-en); font-size: 26px; font-weight: 600; letter-spacing: -0.045em; }
.p-logo i { display: inline-block; width: .2em; height: .2em; margin-left: .05em; border-radius: 50%; background: var(--orange); }
.p-small { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
:lang(ar) .p-small { font-size: 13.5px; font-weight: 700; letter-spacing: 0; }
.p-rule { border: 0; border-top: 1px dashed rgba(20, 20, 22, .32); margin: 22px 0 8px; }
.p-rows li { position: relative; padding: 15px 0; padding-inline-end: 112px; }
.p-rows li + li { border-top: 1px solid rgba(20, 20, 22, .09); }
.p-rows b { display: block; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.1; letter-spacing: -0.045em; }
:lang(ar) .p-rows b { letter-spacing: 0; line-height: 1.35; }
.p-rows p { margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--grey); }
.p-rows em { position: absolute; inset-inline-end: 0; top: 16px; padding: 5px 9px 4px; border: 1.5px solid var(--orange); border-radius: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); transform: rotate(var(--r, -5deg)); }
:lang(ar) .p-rows em { font-size: 13px; font-weight: 700; letter-spacing: 0; padding: 3px 10px; }
.p-rows li:nth-child(2n) em { --r: 4deg; }
.p-rows li:nth-child(3n) em { --r: -8deg; }
.js .p-rows em { opacity: 0; transform: rotate(var(--r, -5deg)) scale(2.2); }
.js .p-rows li.hit em { opacity: 1; transform: rotate(var(--r, -5deg)) scale(1); transition: transform .3s cubic-bezier(.3, 1.7, .5, 1), opacity .12s; }
.p-tear { position: relative; margin: 14px calc(-1 * var(--pad)) 0; border-top: 1.5px dashed rgba(20, 20, 22, .32); }
.p-tear::before, .p-tear::after { content: ""; position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); }
.p-tear::before { left: -13px; }
.p-tear::after { right: -13px; }
.p-total { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.p-total strong { font-family: var(--font-en); font-size: clamp(40px, 3.8vw, 54px); line-height: .9; font-weight: 600; letter-spacing: -0.06em; white-space: nowrap; display: inline-flex; align-items: baseline; }
.p-total strong small { font-family: inherit; font-size: .36em; letter-spacing: -0.02em; color: var(--grey); margin-inline: .2em; }
:lang(ar) .p-total strong small { font-family: var(--font-ar); letter-spacing: 0; }
.p-sign { width: 170px; height: auto; margin-top: 8px; overflow: visible; }
.p-sign path { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.js .p-sign path { stroke-dashoffset: 1; }
.js .printer.out .p-sign path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) .25s; }
.js .printer.out .p-sign path + path { transition-delay: 1.1s; transition-duration: .5s; }
.p-thanks { margin-top: 22px; font-size: 14px; color: var(--grey); }
@media (max-width: 860px) {
  .bill-grid { grid-template-columns: 1fr; }
  .bill-copy { position: static; margin-top: clamp(56px, 12vw, 90px); padding-bottom: 0; }
  .printer { margin-top: 30px; width: min(420px, calc(100% - 44px)); transform: rotate(1.4deg); }
  .p-rows li { padding-inline-end: 0; }
  .p-rows b { padding-inline-end: 104px; }
}

/* ---------- Rules: five switches that flip on as you arrive and refuse to stay off ---------- */
.rules { background: var(--wash); }
.rules .head { margin-bottom: clamp(50px, 10vh, 110px); }
.panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 44px); }
.sw { display: block; text-align: start; background: none; border: 0; padding: 0; cursor: pointer; }
.sw .track { position: relative; display: block; width: 104px; height: 56px; border-radius: 28px; border: 1.5px solid var(--ink); transition: background .35s; }
.sw .knob { position: absolute; inset-inline-start: 6px; top: 6px; width: 41px; height: 41px; border-radius: 50%; background: var(--ink); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), background .3s; }
.sw.on .track { background: var(--white); }
.sw.on .knob { transform: translateX(48px); background: var(--orange); }
[dir="rtl"] .sw.on .knob { transform: translateX(-48px); }
.sw.shake .track { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.sw h3 { margin-top: 26px; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -0.045em; color: rgba(20, 20, 22, .25); transition: color .4s; }
:lang(ar) .sw h3 { letter-spacing: 0; line-height: 1.35; }
.sw p { margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: var(--grey); opacity: 0; transition: opacity .5s; }
.sw.on h3, html:not(.js) .sw h3 { color: var(--ink); }
.sw.on p, html:not(.js) .sw p { opacity: 1; }
.rules-try { margin-top: clamp(40px, 7vh, 72px); color: var(--grey); }
@media (max-width: 980px) {
  .panel { grid-template-columns: 1fr; gap: 26px; }
  .sw { display: grid; grid-template-columns: 104px 1fr; column-gap: 22px; align-items: start; }
  .sw .track { grid-row: span 2; }
  .sw h3 { margin-top: 2px; }
}

/* ---------- Questions: the whole conversation open in thin speech outlines, beside an agent at his desk ---------- */
.qa .head { margin-bottom: clamp(50px, 9vh, 100px); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.says { display: grid; gap: 22px; }
.say { position: relative; max-width: 27em; padding: 14px 20px; }
.say.me { justify-self: end; font-size: clamp(14.5px, 1.15vw, 16px); font-weight: 600; letter-spacing: -0.02em; transform: rotate(.6deg); }
.say.us { justify-self: start; font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.4; letter-spacing: -0.03em; font-weight: 600; transform: rotate(-.5deg); }
.say.me + .say.us { margin-bottom: 14px; }
.say svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.say path { fill: none; stroke: var(--orange); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.say.me path { stroke: var(--ink); stroke-width: .8; }
.say.us path { transition-delay: .35s; }
.say.go path, html:not(.js) .say path { stroke-dashoffset: 0; }
.desk { position: sticky; top: 12vh; order: -1; }
.agent { display: block; width: 100%; max-width: 560px; height: auto; margin-inline-end: auto; overflow: visible; transform: scaleX(-1); }
.agent .ln { fill: var(--white); stroke: var(--orange); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) calc(var(--i, 0) * .11s); }
.agent .ln.o { fill: none; }
.agent.go .ln { stroke-dashoffset: 0; }
.agent .ink { stroke: var(--ink); stroke-width: 1.1; }
.agent .a-head { transform-origin: 305px 215px; }
.agent.go .a-head { animation: qnod 6s ease-in-out 2.4s infinite; }
@keyframes qnod { 0%, 12%, 58%, 100% { transform: none; } 22%, 48% { transform: rotate(1.5deg); } }
.agent.go .a-hand { animation: qtap .28s ease-in-out 2.4s infinite alternate; }
@keyframes qtap { to { transform: translateY(2.5px); } }
.agent .wr { fill: none; stroke: var(--orange); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.agent.go .wr { animation: qwrite 6s linear 2.4s infinite; }
.agent.go .wr.b { animation-name: qwrite2; } .agent.go .wr.c { animation-name: qwrite3; }
@keyframes qwrite { 0%, 18% { stroke-dashoffset: 1; opacity: 1; } 32%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes qwrite2 { 0%, 32% { stroke-dashoffset: 1; opacity: 1; } 46%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes qwrite3 { 0%, 46% { stroke-dashoffset: 1; opacity: 1; } 56%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .agent * { animation: none !important; } .agent .wr { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } .desk { position: static; order: 1; margin-top: 30px; } .agent { max-width: 340px; margin: 0 auto; } }
:lang(ar) .say { letter-spacing: 0; line-height: 1.7; }
[dir="rtl"] .say svg { transform: scaleX(-1); }
[dir="rtl"] .agent { transform: none; }
html:not(.js) .agent .ln, html:not(.js) .agent .wr { stroke-dashoffset: 0; }

/* ---------- Footer: the way to reach us, and a wordmark whose orange dot hops along the letters ---------- */
.site-footer { background: var(--white); overflow: hidden; padding-top: var(--section); }
.f-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 110px); align-items: end; }
.f-ways { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.f-ways a { font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; border-bottom: 1.5px solid var(--orange); transition: color .25s; }
.f-ways a:hover, .f-nav a:hover, .f-end a:hover { color: var(--violet); }
.f-nav { display: grid; gap: 6px; justify-items: start; justify-self: end; font-size: 17px; font-weight: 600; }
:lang(ar) .f-nav, :lang(ar) .f-ways a { font-weight: 700; letter-spacing: 0; }
.f-nav a, .f-end a { text-decoration: none; transition: color .25s; }
.f-lang { margin-top: 12px; color: var(--grey); }
.f-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 3vw, 32px); }
.f-social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--hair); border-radius: 50%; transition: border-color .25s, color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.f-social a:hover { border-color: var(--orange); color: var(--violet); transform: translateY(-3px); }
.f-social svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.to-top { margin-inline-start: auto; }   /* stays at the far end of its row, also when the row wraps on a phone */
.f-mark { display: flex; justify-content: center; align-items: baseline; direction: ltr; margin-top: clamp(10px, 2vw, 30px); padding-top: .42em; font-family: var(--font-en); font-weight: 600; font-size: clamp(64px, 21.5vw, 400px); line-height: .92; letter-spacing: -0.045em; user-select: none; -webkit-user-select: none; cursor: pointer; }
.f-l { display: inline-block; transform-origin: 50% 82%; }
.f-l.hit { animation: squash .5s var(--ease); }
@keyframes squash { 25% { transform: scale(1.05, .9); } 60% { transform: scale(.98, 1.04); } }
.f-dot { flex: none; width: .2em; height: .2em; margin-left: .06em; border-radius: 50%; background: var(--orange); will-change: transform; }
.f-base { width: 0; height: 0; }
.f-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px 30px; border-top: 1px solid var(--hair); font-size: 13.5px; line-height: 20px; color: var(--grey); }
@media (max-width: 860px) { .f-top { grid-template-columns: 1fr; } .f-nav { justify-self: start; grid-template-columns: 1fr 1fr; gap: 6px 28px; } }

/* ---------- Entrances: titles rise word by word and their full stop drops in; rules and messages pop into place ---------- */
.h2.split .hw, .h2.split .hdot { display: inline-block; vertical-align: top; padding: .12em .04em .18em; margin: -.12em -.04em -.18em; }
.h2.split .hw { overflow: hidden; }
.h2.split .hw > span { display: inline-block; transform: translateY(120%) rotate(8deg); transform-origin: 0 100%; transition: transform .95s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(var(--i) * 85ms); }
[dir="rtl"] .h2.split .hw > span { transform: translateY(120%) rotate(-8deg); transform-origin: 100% 100%; }
.h2.split.in .hw > span { transform: none; }
.h2.split .hdot { opacity: 0; transform-origin: 50% 82%; }
.h2.split.in .hdot { animation: dotDrop 1s cubic-bezier(.35, 0, .65, 1) both; animation-delay: calc(var(--i) * 85ms + 480ms); }
@keyframes dotDrop {
  0% { opacity: 0; transform: translateY(-1.7em); }
  8% { opacity: 1; }
  42% { transform: translateY(0) scale(1.35, .62); }
  60% { transform: translateY(-.46em) scale(.94, 1.08); }
  77% { transform: translateY(0) scale(1.16, .82); }
  89% { transform: translateY(-.13em); }
  100% { opacity: 1; transform: none; }
}
.js .panel .sw { transition: opacity .6s, transform .9s cubic-bezier(.3, 1.45, .5, 1); transition-delay: calc(var(--n, 0) * 90ms); }
.js .panel:not(.in) .sw { opacity: 0; transform: translateY(64px) rotate(-3deg); }
.js .say { opacity: 0; scale: .84; translate: 0 28px; transform-origin: 0 100%; transition: opacity .45s, scale .75s cubic-bezier(.3, 1.55, .5, 1), translate .75s var(--ease); }
.js .say.me, [dir="rtl"] .js .say.us { transform-origin: 100% 100%; }
[dir="rtl"] .js .say.me { transform-origin: 0 100%; }
.js .say.go { opacity: 1; scale: 1; translate: 0 0; }
.js .say.us.go { transition-delay: .3s; }

.qa { background: var(--white); }
.build-grid, .steps-pin > .wrap, .bill-grid, .rules > .wrap, .qa > .wrap, .about > .wrap, .street-row > *, .fuel > .wrap, .hero-inner, .hero canvas { transform-origin: 50% 20%; will-change: scale, translate, opacity; }

/* ---------- Who we are: the name as a dictionary entry; its three verbs switch on and off in turn with their circles ---------- */
.about { background: var(--white); }
.ab-entry { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 90px); align-items: center; }
.ab-word { font-family: var(--font-en); font-size: clamp(64px, 11vw, 176px); line-height: .95; letter-spacing: -0.06em; font-weight: 600; white-space: nowrap; }
[dir="rtl"] .ab-word { text-align: right; }
.ab-word span { display: inline-block; }
.js .ab-word span { opacity: 0; translate: 0 .5em; transition: opacity .4s, translate .8s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--k) * 70ms + 200ms); }
.js .about.here .ab-word span { opacity: 1; translate: 0 0; }
.ab-word i { display: inline-block; width: .17em; height: .17em; margin-left: .05em; border-radius: 50%; background: var(--orange); animation: abhop .6s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
@keyframes abhop { to { transform: translateY(-.4em); } }
.ab-say { margin: 14px 0 clamp(20px, 4vh, 38px); font-size: clamp(16px, 1.5vw, 20px); color: var(--grey); }
.ab-say em { margin-inline-start: .9em; color: var(--violet); font-weight: 600; }
.ab-mean { padding-top: 18px; border-top: 1px solid var(--hair); }
.ab-mean p { font-size: clamp(19px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.03em; font-weight: 600; min-height: 1.3em; }
:lang(ar) .ab-mean p { letter-spacing: 0; font-weight: 700; line-height: 1.6; }
.ab-mean p.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 3px; vertical-align: -.12em; background: var(--orange); animation: abblink 1s steps(1) infinite; }
@keyframes abblink { 50% { opacity: 0; } }
.ab-verbs { display: flex; flex-wrap: wrap; gap: 0 .32em; margin: 6px 0 8px; font-size: clamp(34px, 5.4vw, 86px); line-height: 1.08; letter-spacing: -0.055em; font-weight: 600; }
:lang(ar) .ab-verbs { letter-spacing: 0; font-weight: 700; line-height: 1.45; }
.ab-verb { position: relative; color: var(--white); -webkit-text-stroke: 1.3px var(--ink); paint-order: stroke fill; cursor: default; transition: opacity .5s, translate .9s cubic-bezier(.3, 1.5, .5, 1), -webkit-text-stroke-color .5s; }
.ab-verb:nth-child(odd) { --c: var(--violet); } .ab-verb:nth-child(even) { --c: var(--orange); }
.js .ab-verb { opacity: 0; translate: -30px 0; }
[dir="rtl"] .js .ab-verb { translate: 30px 0; }
.js .ab-verb.show { opacity: 1; translate: 0 0; }
.ab-verb::after { content: attr(data-t); position: absolute; inset: 0; color: var(--c); -webkit-text-stroke: 0; clip-path: inset(-20% 106% -20% -6%); transition: clip-path .9s var(--ease); }
[dir="rtl"] .ab-verb::after { clip-path: inset(-20% -6% -20% 106%); }
.ab-verb.on::after { clip-path: inset(-20% -6% -20% -6%); }
.ab-verb.on { -webkit-text-stroke-color: var(--c); }
.ab-venn { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.ab-venn i { position: absolute; left: 50%; top: 50%; width: 54%; aspect-ratio: 1; margin: -27% 0 0 -27%; border-radius: 50%; border: 1.2px solid rgba(20, 20, 22, .45); background: rgba(255, 255, 255, .5); translate: var(--x) var(--y); transition: translate 1.5s cubic-bezier(.3, 1.5, .5, 1), opacity .6s, background-color .5s, border-color .5s; animation: abbreathe 5s ease-in-out infinite; animation-delay: var(--d); }
.ab-venn i:nth-of-type(1) { --fx: 0%; --fy: -120%; --x: 0%; --y: -29%; --d: 0s; --c: var(--violet); }
.ab-venn i:nth-of-type(2) { --fx: -120%; --fy: 90%; --x: -26%; --y: 16%; --d: -1.6s; --c: var(--orange); }
.ab-venn i:nth-of-type(3) { --fx: 120%; --fy: 90%; --x: 26%; --y: 16%; --d: -3.2s; --c: var(--violet); }
.js .ab-venn i:not(.show) { opacity: 0; translate: var(--fx) var(--fy); }
.ab-venn i.on { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: var(--c); }
@keyframes abbreathe { 50% { scale: 1.04; } }
.ab-venn b { position: absolute; left: 50%; top: 50%; font-size: clamp(14px, 1.3vw, 18px); white-space: nowrap; translate: var(--x) var(--y); transition: opacity .6s .6s, color .4s; }
.js .ab-venn b:not(.show) { opacity: 0; }
.ab-venn b:nth-of-type(1) { --x: -50%; --y: -13.6em; --c: var(--violet); } .ab-venn b:nth-of-type(2) { --x: calc(-50% - 8.6em); --y: 4.6em; --c: var(--orange); } .ab-venn b:nth-of-type(3) { --x: calc(-50% + 8.6em); --y: 4.6em; --c: var(--violet); }
.ab-venn b.on { color: var(--c); }
.ab-one { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: var(--orange); border: 2.5px solid var(--ink); }
.js .ab-one:not(.land) { translate: 0 -60vh; opacity: 0; }
.ab-one.land { transition: translate .9s cubic-bezier(.5, 0, .6, 1.6), opacity .2s; animation: abping 2s 1s infinite; }
@keyframes abping { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .45); } 100% { box-shadow: 0 0 0 26px rgba(255, 90, 31, 0); } }
@media (max-width: 860px) { .ab-entry { grid-template-columns: 1fr; } .ab-venn { width: min(76vw, 340px); } }

/* ---------- Who we launch for: a high street of shop signs hanging from one rail ---------- */
.street-row { background: var(--wash); overflow: hidden; }
.st-street { direction: ltr; overflow: hidden; padding-bottom: 30px; }
.st-rail { display: flex; align-items: flex-start; width: max-content; border-top: 1.5px solid var(--ink); animation: stdrift 110s linear infinite; }
.st-street:hover .st-rail { animation-play-state: paused; }
@keyframes stdrift { to { transform: translateX(-50%); } }
.st-sign { display: grid; justify-items: center; padding-inline: clamp(14px, 1.8vw, 30px); transform-origin: 50% 0; animation: stswing var(--t) ease-in-out infinite alternate; animation-delay: var(--dl); cursor: default; }
.st-sign::before { content: ""; width: 1px; height: var(--h); background: var(--ink); transition: height 1s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--n) * 60ms + 200ms); }
.st-sign b { position: relative; padding: 14px 22px; border: 1.2px solid var(--ink); border-radius: 14px; background: var(--white); font-size: clamp(18px, 2vw, 30px); letter-spacing: -0.04em; white-space: nowrap; transition: opacity .4s calc(var(--n) * 60ms + 500ms), color .3s, border-color .3s; }
:lang(ar) .st-sign b { letter-spacing: 0; }
.st-sign b::before { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--white); border: 1.2px solid var(--orange); }
.js .street-row:not(.here) .st-sign::before { height: 0; }
.js .street-row:not(.here) .st-sign b { opacity: 0; }
.st-sign.on b { color: var(--violet); border-color: var(--violet); }
.st-sign.on, .st-sign:hover { animation-duration: .7s; }
@keyframes stswing { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(var(--a)); } }
.st-cap { min-height: 1.5em; margin-top: clamp(10px, 2vh, 24px); font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.03em; color: var(--grey); }
:lang(ar) .st-cap { letter-spacing: 0; }
.st-cap b { color: var(--ink); }
.st-cap.swap { animation: stcap .5s var(--ease); }
@keyframes stcap { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Contact: three questions counted down; the number fills with fuel as you type ---------- */
.fuel { background: var(--wash); overflow: hidden; }
.ct-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 90px); align-items: center; min-height: 60vh; }
.ct-tank { position: relative; justify-self: center; font-family: var(--font-en); font-size: clamp(240px, 40vw, 600px); line-height: .8; height: .8em; font-weight: 600; }
.ct-tank span { display: block; white-space: nowrap; }
.ct-line { color: var(--wash); -webkit-text-stroke: 2.4px var(--ink); paint-order: stroke fill; }
.ct-base { display: inline-block; width: 0; height: 0; }
.ct-full { position: absolute; inset: 0 -.08em; padding-inline: .08em; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='3000'%3E%3Cpath d='M0 14Q40 0 80 14T160 14V3000H0Z' fill='%235b2eff'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 160px 3000px; background-position-y: var(--y, 2000px); transition: background-position-y .7s var(--ease); animation: ctwave 2.4s linear infinite; }
@keyframes ctwave { to { background-position-x: 160px; } }
.ct-buoy { position: absolute; right: -9%; top: var(--y, 100%); width: 22px; height: 22px; margin-top: -4px; border-radius: 50%; background: var(--orange); border: 2.5px solid var(--ink); transition: top .7s var(--ease); animation: ctbob 1.2s ease-in-out infinite alternate; }
@keyframes ctbob { to { transform: translateY(-9px); } }
.ct-tank.ready { animation: ctready .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes ctready { 40% { scale: 1.05; } }
/* the new number slides in; the filled copy keeps its wave running while it does */
.ct-tank.swap .ct-line { animation: ctswap .7s var(--ease); }
.ct-tank.swap .ct-full { animation: ctswap .7s var(--ease), ctwave 2.4s linear infinite; }
@keyframes ctswap { from { transform: translateY(40%); opacity: 0; } }
.ct-tank.gone { translate: 0 -130vh; transition: translate 1.5s cubic-bezier(.6, 0, .9, .35); }
.js .ct-tank { transition: translate 1.2s cubic-bezier(.3, 1.4, .5, 1) .15s, opacity .6s .15s; }
.js .fuel:not(.here) .ct-tank { translate: 0 50%; opacity: 0; }
.ct-q { display: grid; }
.ct-q > div { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(30px); transition: opacity .35s, transform .5s var(--ease), visibility 0s .35s; }
.ct-q > div.on { visibility: visible; opacity: 1; transform: none; transition: opacity .5s .3s, transform .7s var(--ease) .3s; }
html:not(.js) .ct-q > div { grid-area: auto; visibility: visible; opacity: 1; transform: none; margin-bottom: 30px; }
.ct-q label, .ct-done { display: block; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; margin-bottom: clamp(18px, 3vh, 34px); }
:lang(ar) .ct-q label, :lang(ar) .ct-done { letter-spacing: 0; font-weight: 700; line-height: 1.35; }
.ct-q input { width: 100%; padding: 6px 0 14px; background: none; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; outline: 0; font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; caret-color: var(--orange); transition: border-color .25s; }
[dir="rtl"] .ct-q input[dir="ltr"] { text-align: right; }
.ct-q input:focus { border-color: var(--orange); }
.ct-q ::placeholder { color: rgba(20, 20, 22, .25); font-weight: 400; }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.ct-hint { font-size: 14px; color: var(--grey); }
.ct-sub { font-size: clamp(20px, 2vw, 28px); color: var(--grey); }
.ct-no { animation: ctno .4s; }
@keyframes ctno { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.ct-hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) { .ct-form { grid-template-columns: 1fr; } .ct-tank { font-size: 56vw; } }

/* ---------- Row entrances: every row arrives in its own way (.here is set the first time it comes up the screen) ---------- */
/* services: the name and text sweep in from the side while the first sketch starts drawing itself */
.js .build .build-names, .js .build .build-rail { transition: opacity .7s, translate 1.1s cubic-bezier(.2, 1.25, .3, 1); transition-delay: .35s; }
.js .build .build-rail { transition-delay: .55s; }
.js .build:not(.here) .build-names, .js .build:not(.here) .build-rail { opacity: 0; translate: -140px 0; }
[dir="rtl"] .js .build:not(.here) .build-names, [dir="rtl"] .js .build:not(.here) .build-rail { translate: 140px 0; }
.js .build .sketch { transition: scale 1.3s cubic-bezier(.2, 1.3, .3, 1), rotate 1.3s var(--ease), opacity .6s; }
.js .build:not(.here) .sketch { scale: .55; rotate: -14deg; opacity: 0; }
/* steps: the ground line shoots across, then the step names roll in along it */
.js .steps .s-line { transform-origin: 0 50%; transition: transform 1.2s var(--ease) .2s; }
[dir="rtl"] .js .steps .s-line { transform-origin: 100% 50%; }
.js .steps:not(.here) .s-line { transform: scaleX(0); }
.js .steps .s-clip { transition: translate 1.3s cubic-bezier(.2, 1.15, .3, 1) .45s, opacity .7s .45s; }
.js .steps:not(.here) .s-clip { translate: 60vw 0; opacity: 0; }
[dir="rtl"] .js .steps:not(.here) .s-clip { translate: -60vw 0; }
.js .steps .s-rocket { transition: scale 1.1s cubic-bezier(.2, 1.4, .3, 1) .6s, opacity .5s .6s; transform-origin: 50% 80%; }
.js .steps:not(.here) .s-rocket { scale: .5; opacity: 0; }
/* included: the bill drops from above and swings to rest */
.js .bill .printer { transition: translate 1.1s cubic-bezier(.25, 1.5, .4, 1) .2s, rotate 1.4s cubic-bezier(.25, 1.8, .4, 1) .2s, opacity .4s .2s; }
.js .bill:not(.here) .printer { translate: 0 -160px; rotate: -16deg; opacity: 0; }
.js .bill .lede { transition: opacity .8s .7s, translate .9s var(--ease) .7s; }
.js .bill:not(.here) .lede { opacity: 0; translate: 0 30px; }
/* questions: the agent slides in to his desk while the messages pop up */
.js .qa .desk { transition: translate 1.3s cubic-bezier(.2, 1.15, .3, 1) .15s, opacity .7s .15s; }
.js .qa:not(.here) .desk { translate: -120px 0; opacity: 0; }
[dir="rtl"] .js .qa:not(.here) .desk { translate: 120px 0; }
/* footer: the wordmark's letters jump up one after another */
.js .site-footer .f-l { transition: translate .9s cubic-bezier(.25, 1.7, .4, 1), opacity .3s; transition-delay: calc(var(--k) * 80ms + 150ms); }
.js .site-footer:not(.here) .f-l { translate: 0 70%; opacity: 0; }
.js .site-footer .f-dot { transition: scale .5s cubic-bezier(.3, 2, .5, 1) .95s; }
.js .site-footer:not(.here) .f-dot { scale: 0; }
.js .site-footer .f-ways a, .js .site-footer .f-nav a { transition: translate .8s cubic-bezier(.25, 1.5, .4, 1), opacity .5s, color .25s; }
.js .site-footer:not(.here) .f-ways a, .js .site-footer:not(.here) .f-nav a { translate: 0 34px; opacity: 0; }
.f-l:nth-child(1) { --k: 0; } .f-l:nth-child(2) { --k: 1; } .f-l:nth-child(3) { --k: 2; } .f-l:nth-child(4) { --k: 3; } .f-l:nth-child(5) { --k: 4; } .f-l:nth-child(6) { --k: 5; } .f-l:nth-child(7) { --k: 6; }
.f-nav a:nth-child(2) { transition-delay: .06s; } .f-nav a:nth-child(3) { transition-delay: .12s; } .f-nav a:nth-child(4) { transition-delay: .18s; } .f-nav a:nth-child(5) { transition-delay: .24s; } .f-nav a:nth-child(6) { transition-delay: .3s; }
.f-ways a + a { transition-delay: .1s; }

/* ---------- Back to top: a small line rocket on its pad ---------- */
.to-top { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
:lang(ar) .to-top { font-weight: 700; }
.to-top .pad { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--hair); border-radius: 50%; background: var(--white); transition: border-color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.to-top:hover .pad { border-color: var(--orange); transform: translateY(-3px); }
.rk { width: 22px; height: auto; overflow: visible; }
.rk * { fill: var(--white); stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rk .flame { fill: none; opacity: 0; transform-origin: 20px 44px; }
.to-top:hover .rk { animation: rkshake .09s infinite alternate; }
.to-top:hover .rk .flame, .rk-fly .flame { opacity: 1; animation: rkflame .12s infinite alternate; }
.to-top.gone .pad .rk { visibility: hidden; }
.rk-fly { position: fixed; z-index: 90; pointer-events: none; }
@keyframes rkshake { to { transform: translate(1px, -1px); } }
@keyframes rkflame { to { transform: scaleY(.6); } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide.on .w, .slide.on .hero-sub, .fade, .js .reveal { opacity: 1; transform: none; }
  .js .say { opacity: 1; scale: 1; translate: 0 0; }
  .js .panel .sw { opacity: 1; transform: none; }
}

