/* ==========================================================================
   کارون — نسخه‌ی فارسی (RTL)
   Brand guideline: palette #0e3179 · #4e72b8 · #e2e7ea · #a7a9ac · #636466 · #231f20 · #ffffff
   Typeface: Dubai (Light / Regular / Medium / Bold)
   ========================================================================== */

@font-face { font-family: "Dubai"; src: url("../fonts/dubai-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("../fonts/dubai-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("../fonts/dubai-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("../fonts/dubai-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* brand */
  --navy: #0e3179;
  --blue: #4e72b8;
  --mist: #e2e7ea;
  --gray: #a7a9ac;
  --graphite: #636466;
  --black: #231f20;
  --white: #ffffff;

  /* derived (opacity of brand colours only) */
  --on-navy: rgba(226, 231, 234, 0.78);
  --on-navy-dim: rgba(226, 231, 234, 0.55);
  --line: rgba(226, 231, 234, 0.14);
  --line-2: rgba(226, 231, 234, 0.3);
  --line-dark: rgba(14, 49, 121, 0.12);
  --shade: rgba(35, 31, 32, 0.55);

  --font: "Dubai", Tahoma, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--navy); color: var(--mist);
  font-family: var(--font); font-size: 17.5px; line-height: 1.9; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; /* clip: no scroll box, so sticky scenes stay sticky */
}
/* the body's clip is handed on to the window, and a phone may still widen its page for something that drifts past
   the edge (a floating card's shadow, on English pages where the edge is the scrollable side): clip the content
   itself too (clip, not hidden: no scroll box, so pinned and sticky scenes are untouched) */
main, body > footer { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
/* what only a script focuses (main or a section after the skip link, tabindex −1) is not ringed */
[tabindex="-1"]:focus-visible { outline: none; }
::selection { background: var(--blue); color: var(--white); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 900; background: var(--mist); color: var(--navy); padding: 10px 18px; border-radius: 99px; font-weight: 500; }
.skip-link:focus { top: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--blue); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--light { color: var(--mist); }
.on-dark .eyebrow::before, .eyebrow--light::before { background: var(--blue); }
/* the double chevron points forward: turned round on English pages */
[dir="ltr"] .eyebrow::before { transform: scaleX(-1); }

/* ---------- Film grain: a still texture over the page (wide screens only: on a phone it would be drawn again
   over everything that scrolls) ---------- */
.grain { position: fixed; inset: 0; z-index: 700; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .grain { display: none; } }

/* ---------- Curtain: intro + page transitions ---------- */
.curtain { position: fixed; inset: 0; z-index: 800; pointer-events: none; display: none; }
.js .curtain { display: block; }
.curtain__panel { position: absolute; inset: 0; background: var(--navy); transform: translateY(0); transition: transform 0.9s var(--ease-io); }
.curtain__panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--shade) 100%); }
.curtain__logo { position: absolute; left: 50%; top: 50%; width: min(340px, 62vw); transform: translate(-50%, -50%); clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease-io), transform 0.9s var(--ease-io); z-index: 1; }
.curtain__bar { position: absolute; left: 50%; top: calc(50% + min(60px, 11vw)); width: min(340px, 62vw); height: 2px; transform: translateX(-50%); background: var(--line); overflow: hidden; z-index: 1; transition: opacity 0.3s; }
.curtain__bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: right; transform: scaleX(0); transition: transform 1.4s var(--ease-io); }
/* left to right (English): the logo is uncovered and the bar fills from the left, where its lines start */
[dir="ltr"] .curtain__logo { clip-path: inset(0 100% 0 0); }
[dir="ltr"] .curtain__bar i { transform-origin: left; }
.curtain.is-intro .curtain__logo { clip-path: inset(0 0 0 0); }
.curtain.is-intro .curtain__bar i { transform: scaleX(1); }
.curtain.is-open .curtain__panel { transform: translateY(-101%); }
.curtain.is-open .curtain__logo { transform: translate(-50%, -160%); clip-path: inset(0 0 100% 0); }
.curtain.is-open .curtain__bar { opacity: 0; }
.curtain.is-leaving { pointer-events: auto; }
.curtain.is-leaving .curtain__panel { transform: translateY(0); transition: transform 0.6s var(--ease-io); }
.curtain.is-entering .curtain__panel { transform: translateY(101%); transition: none; }
.curtain.is-quick .curtain__logo, .curtain.is-quick .curtain__bar { display: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 600; height: var(--header-h); transition: transform 0.5s var(--ease), color 0.4s; color: var(--mist); }
.site-header .bar { height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.site-header.is-light { color: var(--navy); }
.brand { display: grid; flex-shrink: 0; padding: 6px 0; }
/* the two logos are stacked and cross-fade with the header's colour (no swap, no flash) */
.brand img { grid-area: 1 / 1; height: 40px; width: auto; transition: opacity 0.4s; }
.brand .on-light { opacity: 0; }
.site-header.is-light .brand .on-dark-logo { opacity: 0; }
.site-header.is-light .brand .on-light { opacity: 1; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; padding: 4px 0; border-bottom: 1px solid var(--line); transition: border-color 0.4s; }
.site-header.is-light .nav { border-color: var(--line-dark); }
.nav a { position: relative; padding: 6px 16px 8px; font-size: 16px; font-weight: 500; opacity: 0.82; transition: opacity 0.25s; }
.nav a:hover { opacity: 1; }
/* the page you are on: a short bevelled bar on the hairline */
.nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -5px; height: 3px; border-radius: 1.5px; background: var(--blue); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.nav a[aria-current="page"] { opacity: 1; color: var(--white); }
.site-header.is-light .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { transform: none; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang { font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line-2); opacity: 0.85; transition: opacity 0.25s, background 0.25s; }
/* on English pages the switch reads «فا»: Persian letters, in the Persian face and never spaced apart */
.lang:lang(fa) { font-family: "Dubai", Tahoma, sans-serif; letter-spacing: 0; }
.site-header.is-light .lang { border-color: rgba(14, 49, 121, 0.25); }
.lang:hover { opacity: 1; }
.burger { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: border-color 0.3s; }
.site-header.is-light .burger { border-color: rgba(14, 49, 121, 0.25); }
.burger span { position: absolute; right: 15px; left: 15px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease), width 0.3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; inset-inline-end: 21px; }
.burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: scaleX(0); }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-open .site-header { color: var(--mist) !important; }
.menu-open .site-header .brand .on-dark-logo { display: block !important; }
.menu-open .site-header .brand .on-light { display: none !important; }
/* the site menu itself: assets/css/fa-menu.css */

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 99px; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color 0.45s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.btn svg { flex: none; width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(-5px); }
/* the arrow points forward: left in Persian; turned round on English pages, and nudged the other way */
[dir="ltr"] .btn svg { transform: scaleX(-1); }
[dir="ltr"] .btn:hover svg { transform: translateX(5px) scaleX(-1); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform 0.55s var(--ease); }
.btn:hover::before { transform: none; }
.btn--light { background: var(--mist); color: var(--navy); }
.btn--light::before { background: var(--white); }
.btn--light:hover { box-shadow: 0 18px 40px -18px rgba(226, 231, 234, 0.6); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--mist); }
.btn--ghost::before { background: var(--mist); }
.btn--ghost:hover { color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy::before { background: var(--blue); }
.btn--outline { border: 1px solid rgba(14, 49, 121, 0.3); color: var(--navy); }
.btn--outline::before { background: var(--navy); }
.btn--outline:hover { color: var(--white); }
.more { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 17px; }
.more .circ { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); transition: transform 0.45s var(--ease), background 0.3s; }
.more .circ svg { width: 18px; height: 18px; }
.more:hover .circ { transform: translateX(-6px); background: var(--mist); color: var(--navy); }
.more span.t { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat; transition: background-size 0.45s var(--ease); }
.more:hover span.t { background-size: 100% 1.5px; }
[dir="ltr"] .more .circ svg { transform: scaleX(-1); }
[dir="ltr"] .more:hover .circ { transform: translateX(6px); }
[dir="ltr"] .more span.t { background-position: 0 100%; }

/* ---------- Shared scenes ---------- */
.dark { background: radial-gradient(ellipse at 50% 40%, transparent 35%, var(--shade) 100%), var(--navy); color: var(--mist); position: relative; }
.light { background: var(--mist); color: var(--navy); position: relative; }
.white { background: var(--white); color: var(--navy); position: relative; }
.light p, .white p { color: var(--graphite); }
.section { --sp: clamp(90px, 11vw, 150px); padding: var(--sp) var(--gutter); }
.head { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(44px, 6vw, 72px); position: relative; z-index: 1; }
.head h2 { font-size: clamp(32px, 4vw, 58px); line-height: 1.3; }
.head h1 { font-size: clamp(40px, 5.2vw, 82px); line-height: 1.3; color: var(--white); }
.paths > *:not(.field):not(.seam) { position: relative; z-index: 1; }
.head p { font-size: 19px; max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }

.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ==========================================================================
   HOME — the Karun cycle (pinned)
   ========================================================================== */
.cycle { position: relative; }
.cycle__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(1100px 760px at 30% 52%, rgba(78, 114, 184, 0.35) 0%, transparent 70%), var(--navy); }
.cycle__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cycle__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(14, 49, 121, 0.5) 0%, rgba(14, 49, 121, 0.14) 36%, transparent 54%); }
/* darker towards the text: its side is the left on English pages */
[dir="ltr"] .cycle__shade { background: linear-gradient(90deg, rgba(14, 49, 121, 0.5) 0%, rgba(14, 49, 121, 0.14) 36%, transparent 54%); }

.ring-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ring-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ring-links line { stroke: rgba(226, 231, 234, 0.28); stroke-width: 1; transition: stroke 0.6s; }
.ring-links line.is-active { stroke: #ffffff; }
.ring-links line.is-next { stroke: rgba(226, 231, 234, 0.92); }
.ring-label { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; justify-items: center; text-align: center; padding: 5px 14px 7px; border-radius: 3px; transform: translate(-50%, -50%); background: rgba(14, 49, 121, 0.3); border: 1px solid rgba(226, 231, 234, 0.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color 0.6s, border-color 0.6s; will-change: transform, opacity; }
.ring-label b { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--mist); transition: color 0.6s; }
.ring-label small { font-size: 12px; line-height: 1.4; color: var(--on-navy-dim); transition: color 0.6s; }
.ring-label:hover { border-color: var(--line-2); }
/* the business that comes next (through the last quarter of the wait, set by the scene): its name brightens, its
   label's edge and its leader line light, and the scene lifts its label out of the depth's dimming */
.ring-label.is-next { background-color: rgba(14, 49, 121, 0.55); border-color: var(--line-2); }
.ring-label.is-next b { color: var(--white); }
.ring-label.is-next small { color: var(--mist); }
.ring-label.is-active { background-color: rgba(14, 49, 121, 0.6); border-color: transparent; padding: 7px 18px 9px;
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
.ring-label.is-active b { color: var(--white); font-size: 21px; }
.ring-label.is-active small { color: var(--mist); }

.panels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.panel { position: absolute; inset-inline-start: var(--gutter); top: 50%; transform: translateY(-46%); width: min(640px, 47vw); visibility: hidden; }
.panel.is-active { visibility: visible; pointer-events: auto; }
.panel.is-leaving { visibility: visible; }
.rv { display: block; overflow: hidden; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.rv > * { display: block; transform: translateY(115%); opacity: 0; transition: transform 1s var(--ease), opacity 0.6s; }
.panel.is-active .rv > * { transform: none; opacity: 1; }
.panel.is-active .rv:nth-child(2) > * { transition-delay: 0.07s; }
.panel.is-active .rv:nth-child(3) > * { transition-delay: 0.14s; }
.panel.is-active .rv:nth-child(4) > * { transition-delay: 0.21s; }
.panel.is-active .rv:nth-child(5) > * { transition-delay: 0.28s; }
.panel.is-active .rv:nth-child(6) > * { transition-delay: 0.35s; }
/* A business unfolds in beats, so the scene is still arriving through the first quarter of its wait (the loader ring
   shows the rest): its name and subtitle at once, the insight after 0.9 s, the long text after 2.4 s, the link after
   3.2 s. Karun's own panel keeps the quick stagger above. Where the layout leaves the long text out (a phone, a short
   screen) the link follows the insight. */
.panel--line { --beat-insight: 0.9s; --beat-desc: 2.4s; --beat-more: 3.2s; }
@media (max-width: 900px), (max-height: 760px) { .panel--line { --beat-more: 2s; } }
.panel--line.is-active .rv:nth-child(4) > * { transition-delay: var(--beat-insight); }
.panel--line.is-active .rv:nth-child(5) > * { transition-delay: var(--beat-desc); }
.panel--line.is-active .rv:nth-child(6) > * { transition-delay: var(--beat-more); }
@media (prefers-reduced-motion: reduce) { .panel.is-active .rv:nth-child(n) > * { transition-delay: 0s; } }
.panel.is-leaving .rv > * { transform: translateY(-115%); opacity: 0; transition-duration: 0.5s; transition-delay: 0s; }
.no-js .panel { position: relative; visibility: visible; transform: none; width: auto; inset-inline-start: auto; padding: 40px var(--gutter); }
.no-js .rv > * { transform: none; opacity: 1; }

.pill { display: inline-flex !important; width: fit-content; align-items: center; gap: 10px; padding: 8px 20px; border-radius: 99px; background: rgba(78, 114, 184, 0.28); border: 1px solid rgba(78, 114, 184, 0.6); font-size: 16px; font-weight: 700; color: var(--white); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 4px rgba(226, 231, 234, 0.18); animation: blink 2.4s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 9px rgba(226, 231, 234, 0); } }
.pill--lead { font-size: clamp(18px, 1.6vw, 24px); padding: 10px 26px; gap: 14px; }
.panel h1 { font-size: clamp(46px, 6.2vw, 100px); line-height: 1.2; margin: 24px 0 22px; color: var(--white); }
.panel h1 .rv:nth-child(2) > * { color: var(--blue); }
.panel .lede { font-size: clamp(16px, 1.22vw, 18.5px); line-height: 2; color: var(--on-navy); max-width: 620px; }
.panel .lede b { color: var(--white); font-weight: 700; }
.actions { display: flex !important; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.panel--line .tag { display: inline-flex !important; width: fit-content; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--mist); padding: 4px 16px; border-radius: 99px; border: 1px solid var(--line-2); }
.panel--line .name { font-size: clamp(64px, 8.6vw, 140px); font-weight: 700; line-height: 1.15; color: var(--white); margin: 10px 0 0; }
.panel--line .sub { font-size: clamp(19px, 1.7vw, 25px); font-weight: 500; color: var(--blue); filter: brightness(1.35); margin-top: 2px; }
.panel--line .insight { display: flex !important; gap: 14px; margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; line-height: 1.8; color: var(--white); }
.panel--line .insight::before { content: ""; flex-shrink: 0; width: 12px; height: 12px; margin-top: 0.7em; background: var(--blue); transform: rotate(45deg); }
.panel--line .desc { margin-top: 14px; font-size: 16px; line-height: 2; color: var(--on-navy); max-width: 600px; }
.panel--line .more { margin-top: 24px; color: var(--white); }
.rv > .more { display: inline-flex; }

.cycle__hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* ==========================================================================
   Two paths
   ========================================================================== */
.paths { overflow: hidden; }
.paths .head { margin-inline: auto; text-align: center; justify-items: center; }
.paths__fork { position: relative; width: 100%; height: 110px; margin: -30px 0 10px; }
.paths__fork svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.paths__fork path { fill: none; stroke: var(--blue); stroke-width: 1.25; }
.paths__fork circle { fill: var(--blue); }
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1240px; margin: 0 auto; }
.path { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 380px; padding: clamp(30px, 3.6vw, 52px); border-radius: 30px; overflow: hidden; isolation: isolate; transition: border-color 0.3s; }
.light .path, .white .path { background: var(--white); border: 1px solid var(--line-dark); box-shadow: 0 40px 80px -60px rgba(14, 49, 121, 0.5); }
.light .path:hover, .white .path:hover { border-color: rgba(78, 114, 184, 0.5); }
.dark .path { background: rgba(226, 231, 234, 0.04); border: 1px solid var(--line); }
.dark .path:hover { border-color: var(--line-2); }
.path__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--navy); color: var(--mist); }
.dark .path__icon { background: var(--blue); color: var(--white); }
.path__icon svg { width: 32px; height: 32px; }
.path h3 { font-size: clamp(24px, 2.3vw, 34px); color: inherit; }
.light .path h3, .white .path h3 { color: var(--navy); }
.path p { font-size: 17px; line-height: 2; }
.light .path p, .white .path p { color: #3d4147; }
.light .path p b, .white .path p b { font-weight: 700; color: var(--navy); }
.dark .path p { color: var(--on-navy); }
.dark .path p b { font-weight: 700; color: var(--white); }
.path .more { margin-top: auto; }
.light .path .more, .white .path .more { color: var(--navy); }
.path__num { position: absolute; inset-inline-end: 30px; top: 14px; font-size: 150px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(14, 49, 121, 0.1); pointer-events: none; }
.dark .path__num { -webkit-text-stroke-color: rgba(226, 231, 234, 0.12); }

/* ==========================================================================
   The businesses' emblems (small drawings that move a little): the products page, the menu
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
.viz { width: 76px; height: 76px; flex-shrink: 0; border-radius: 22px; background: var(--navy); display: grid; place-items: center; color: var(--mist); }
.viz svg { width: 48px; height: 48px; overflow: visible; }
.viz .spin { transform-origin: 24px 24px; animation: spin 9s linear infinite; }
.viz .spin-r { transform-origin: 24px 24px; animation: spin 14s linear infinite reverse; }
.viz .led { animation: led 1.6s steps(2) infinite; }
.viz .led:nth-of-type(2n) { animation-delay: 0.4s; }
.viz .led:nth-of-type(3n) { animation-delay: 0.9s; }
@keyframes led { 50% { opacity: 0.2; } }
.viz .wave { stroke-dasharray: 60; animation: wave 2.6s linear infinite; }
@keyframes wave { to { stroke-dashoffset: -120; } }
.viz .orbit { transform-origin: 24px 24px; animation: spin 7s linear infinite; }

/* ==========================================================================
   Page heroes (inner pages)
   ========================================================================== */
.phero { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; padding: calc(var(--header-h) + 70px) var(--gutter) clamp(56px, 7vw, 96px); }
.phero > *:not(.field):not(.seam) { position: relative; z-index: 1; }
.phero .field { z-index: 0; }
.crumbs { display: flex; gap: 10px; font-size: 14.5px; color: var(--on-navy-dim); margin-bottom: 26px; }
.crumbs a:hover { color: var(--white); }
.phero h1 { font-size: clamp(34px, 4.6vw, 74px); line-height: 1.25; color: var(--white); max-width: 1100px; margin: 18px 0 0; }
.phero .lede { margin-top: 24px; font-size: clamp(17px, 1.4vw, 21px); line-height: 2; color: var(--on-navy); max-width: 860px; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.split-line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.is-in .split-line:nth-child(2) > span { transition-delay: 0.08s; }
.is-in .split-line:nth-child(3) > span { transition-delay: 0.16s; }

/* Words lighting up on scroll */
.words { font-size: clamp(24px, 2.9vw, 44px); font-weight: 500; line-height: 1.75; max-width: 1180px; }
.words span { transition: color 0.4s; }

/* ==========================================================================
   CAPABILITIES — the combination builder (the four pillars: fa-capabilities.css)
   ========================================================================== */

.combo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; max-width: 1280px; margin: 0 auto; }
.combo h2 { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.35; color: var(--white); }
.combo__picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.pick { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line-2); text-align: start; transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease); }
.pick:hover { border-color: var(--mist); }
.pick i { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; transition: background 0.3s, border-color 0.3s; }
.pick i svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.4s var(--ease); color: var(--navy); }
.pick b { display: block; font-size: 19px; }
.pick span { display: block; font-size: 13.5px; color: var(--on-navy-dim); line-height: 1.5; }
.pick[aria-pressed="true"] { background: rgba(78, 114, 184, 0.3); border-color: var(--blue); }
.pick[aria-pressed="true"] i { background: var(--mist); border-color: var(--mist); }
.pick[aria-pressed="true"] i svg { opacity: 1; transform: none; }
.combo__out { margin-top: 26px; min-height: 60px; font-size: 17px; color: var(--on-navy); }
.combo__out b { color: var(--white); }
.combo .actions { margin-top: 18px; }
.combo__viz { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.combo__viz svg { width: 100%; height: 100%; overflow: visible; }
.combo__viz .ring { fill: none; stroke: var(--line-2); stroke-dasharray: 2 8; }
.combo__viz .spoke { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 0.8s var(--ease); }
.combo__viz .spoke.on { stroke-dashoffset: 0; }
.combo__viz .chord { stroke: var(--mist); stroke-width: 1; opacity: 0; transition: opacity 0.6s; stroke-dasharray: 3 6; }
.combo__viz .chord.on { opacity: 0.6; }
.combo__viz .node { fill: var(--navy); stroke: var(--line-2); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s; }
.combo__viz .node.on { fill: var(--blue); stroke: var(--mist); }
.combo__viz text { font-family: var(--font); fill: var(--mist); font-size: 19px; font-weight: 700; text-anchor: middle; }
.combo__viz text.k { font-size: 13px; font-weight: 400; fill: var(--on-navy-dim); }
.combo__viz .core { fill: var(--mist); }
.combo__viz .core-t { fill: var(--navy); font-size: 22px; }
.combo__viz .halo { fill: none; stroke: var(--blue); opacity: 0; transform-origin: 260px 260px; }
.combo__viz.has-pick .halo { animation: halo 2.2s var(--ease) infinite; }
@keyframes halo { 0% { opacity: 0.8; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.5); } }

/* ==========================================================================
   ABOUT — closing the gap + principles
   ========================================================================== */
.gap { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 20px) var(--gutter) 60px; }
.gap__inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; }
.gap__lead { margin-top: 16px; font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; color: var(--on-navy); }
.gap__stage { position: relative; height: clamp(140px, 20vw, 240px); margin: 26px 0 10px; }
.gap__word { position: absolute; top: 50%; font-size: clamp(42px, 7vw, 116px); font-weight: 700; line-height: 1; white-space: nowrap; will-change: transform; }
.gap__word--want { left: 50%; color: var(--white); transform: translate(calc(-50% + 32vw), -50%); }
.gap__word--can { left: 50%; color: var(--on-navy); transform: translate(calc(-50% - 32vw), -50%); }
/* the word read first stands on the side the line starts from (the script then moves them; fa.js, ABOUT) */
[dir="ltr"] .gap__word--want { transform: translate(calc(-50% - 32vw), -50%); }
[dir="ltr"] .gap__word--can { transform: translate(calc(-50% + 32vw), -50%); }
/* the gap itself: a hairline between the two words (its width and place are set by the script) */
.gap__bridge { position: absolute; top: 50%; left: 50%; height: 1px; width: 0; transform: translate(-50%, -50%); background: linear-gradient(90deg, rgba(226, 231, 234, 0.16), rgba(226, 231, 234, 0.42) 50%, rgba(226, 231, 234, 0.16)); }
.gap__bridge::before, .gap__bridge::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--white); transform: translateY(-50%); }
.gap__bridge::before { inset-inline-start: -4.5px; }
.gap__bridge::after { inset-inline-end: -4.5px; background: var(--on-navy); }
.gap__goal { font-size: clamp(22px, 2.6vw, 40px); font-weight: 700; line-height: 1.7; color: var(--white); max-width: 1000px; margin: 10px auto 0; opacity: var(--go, 0); transform: translateY(calc((1 - var(--go, 0)) * 30px)); }
/* the line under the goal (the charge, fa.js): it fills while the goal is read, and faster as the page is pushed on;
   full, the page goes on by itself. It comes in with the goal; its bright end glows while it fills. */

/* the page holding still while a scene asks it to (fa.js stillFor; here, while the goal is read): on a touch
   screen the page's own scrolling stops too, a fling where it is */
@media (hover: none), (pointer: coarse) { html.is-still { overflow: hidden; } }
.gap__goal em { font-style: normal; color: var(--blue); filter: brightness(1.35); }

.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); max-width: 1280px; margin: 0 auto; align-items: start; }
.story__aside { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 26px; }
.story__aside h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.3; color: var(--navy); }
.story__year { display: flex; align-items: baseline; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.story__year b { font-size: 64px; line-height: 1; color: var(--navy); }
.story__year span { color: var(--graphite); }
.story__body { display: grid; gap: 30px; font-size: 18.5px; line-height: 2.1; }
.story__body .quote { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.7; font-weight: 700; color: var(--navy) !important; padding-inline-start: 26px; border-inline-start: 4px solid var(--blue); }

.principles { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(40px, 6vw, 110px); max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.principles__aside { position: sticky; top: calc(var(--header-h) + 50px); align-self: start; display: grid; gap: 22px; }
.principles__aside h2 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.3; color: var(--white); }
.principles__aside .count { font-size: 15px; color: var(--on-navy-dim); }
.principles__aside .count b { font-size: 56px; color: var(--white); display: inline-block; min-width: 1.2ch; line-height: 1; }
.plist li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); opacity: 0.32; transition: opacity 0.6s var(--ease); }
.plist li:last-child { border-bottom: 1px solid var(--line); }
.plist li.is-focus { opacity: 1; }
.plist .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(226, 231, 234, 0.08); color: var(--mist); transition: background 0.5s, color 0.5s; }
.plist li.is-focus .ico { background: var(--blue); color: var(--white); }
.plist .ico svg { width: 30px; height: 30px; }
.plist h3 { font-size: clamp(22px, 2vw, 30px); color: var(--white); line-height: 1.4; }
.plist p { margin-top: 8px; font-size: 17px; line-height: 2; color: var(--on-navy); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { position: relative; min-height: 100vh; display: grid; align-items: center; padding: calc(var(--header-h) + 50px) var(--gutter) 70px; overflow: hidden; }
.contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; max-width: 1340px; margin: 0 auto; width: 100%; }
/* the line that opens the page speaks, it does not shout: medium weight, a column of about 36 characters, and a size that
   follows the height of the screen as well as its width */
.contact h1 { font-size: clamp(22px, min(2.1vw, 3.6vh), 32px); line-height: 1.75; font-weight: 500; max-width: 36ch; color: var(--white); }
.crows { display: grid; }
.crow { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.crow:last-child { border-bottom: 1px solid var(--line); }
.crow .ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(226, 231, 234, 0.08); color: var(--mist); transition: background 0.4s; }
.crow:hover .ico { background: var(--blue); color: var(--white); }
.crow .ico svg { width: 24px; height: 24px; }
.crow small { display: block; font-size: 13.5px; color: var(--on-navy-dim); }
.crow a.v, .crow span.v { font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; color: var(--white); }
.crow a.v:hover { color: var(--mist); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.copy { font-size: 13.5px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--mist); transition: background 0.3s, color 0.3s; }
.copy:hover { background: var(--mist); color: var(--navy); }
.copy.is-done { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ==========================================================================
   BUSINESS PAGES: the first screen (the rest: assets/css/fa-lines.css)
   ========================================================================== */
.lhero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: center; padding: calc(var(--header-h) + 30px) var(--gutter) 70px; }
.lhero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lhero__inner { position: relative; z-index: 1; width: min(660px, 52vw); }
.lhero .key { display: inline-flex; padding: 4px 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; }
.lhero h1 { font-size: clamp(76px, 11vw, 180px); line-height: 1.1; color: var(--white); margin: 10px 0 0; }
.lhero .sub { font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; color: var(--blue); filter: brightness(1.35); }
.lhero .actions { margin-top: 30px; }

.siblings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.sibling { position: relative; display: grid; gap: 6px; padding: 30px 28px; border-radius: 24px; border: 1px solid var(--line); transition: background 0.4s, border-color 0.4s; }
.sibling:hover { background: rgba(226, 231, 234, 0.06); border-color: var(--line-2); }
.sibling .k { font-size: 14px; color: var(--on-navy-dim); }
.sibling b { font-size: 38px; color: var(--white); line-height: 1.3; }
.sibling span.s { font-size: 15.5px; color: var(--on-navy); }
.sibling svg { position: absolute; inset-inline-end: 26px; top: 28px; width: 24px; height: 24px; color: var(--on-navy-dim); transition: transform 0.45s var(--ease), color 0.3s; }
.sibling:hover svg { transform: translate(-5px, -5px); color: var(--white); }
/* the arrow up and forward: up and to the right on English pages */
[dir="ltr"] .sibling svg { transform: scaleX(-1); }
[dir="ltr"] .sibling:hover svg { transform: translate(5px, -5px) scaleX(-1); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: radial-gradient(900px 500px at 85% 0%, rgba(78, 114, 184, 0.3), transparent 60%), var(--navy); color: var(--mist); overflow: hidden; }
.footer__cta { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; padding: clamp(70px, 9vw, 120px) var(--gutter) clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.footer__cta h2 { font-size: clamp(30px, 3.8vw, 58px); line-height: 1.45; color: var(--white); max-width: 900px; }
.footer__cols { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px var(--gutter) 50px; }
.footer__brand img { width: 210px; height: auto; margin-bottom: 22px; }
.footer__brand p { color: var(--on-navy); max-width: 340px; font-size: 16px; }
.footer h4 { font-size: 15px; font-weight: 500; color: var(--gray); margin-bottom: 16px; }
.footer li { margin-bottom: 8px; font-size: 16px; }
.footer li a { opacity: 0.85; transition: opacity 0.2s; }
.footer li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 22px var(--gutter); border-top: 1px solid var(--line); font-size: 14.5px; color: var(--on-navy-dim); }
.footer__bottom a:hover { color: var(--white); }
/* «next page»: a button at a page's end (the menu's order is the site map), outlined: the inverse of the filled
   call to talk beside it, so the two read as a pair and the call stays first. Its outline and words are a step
   brighter than other outlined buttons, to hold their own on the navy band. A flick made past the page's end
   (html.is-page-end, set by the scroller for 0.9 s) nudges it a few pixels the way it points. */
.hubfoot__next.btn, .footer .footer__next.btn { height: 44px; padding: 0 22px; gap: 10px; font-size: 15px; color: var(--white); border-color: rgba(226, 231, 234, 0.55); }
.hubfoot__next.btn:hover, .footer .footer__next.btn:hover { color: var(--navy); border-color: var(--mist); }
@keyframes nudge { 0%, 100% { transform: none; } 35% { transform: translateX(-6px); } }
html.is-page-end .hubfoot__next, html.is-page-end .footer .footer__next { animation: nudge 0.9s var(--ease); }
/* on English pages it nudges to the right (its arrow turns round with every button's) */
@keyframes nudge-ltr { 0%, 100% { transform: none; } 35% { transform: translateX(6px); } }
html[dir="ltr"].is-page-end .hubfoot__next, html[dir="ltr"].is-page-end .footer .footer__next { animation-name: nudge-ltr; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 760; transform: translate(-50%, 140%); padding: 12px 22px; border-radius: 99px; background: var(--mist); color: var(--navy); font-weight: 500; box-shadow: 0 20px 40px -20px rgba(35, 31, 32, 0.6); transition: transform 0.5s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  /* A phone scrolls freely and the header stays on every screen, so what scrolls under it would run through the
     logo and the buttons: a frosted band of the colour beneath keeps them clear (none under the open menu) */
  .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: rgba(14, 49, 121, 0.8); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: background-color 0.4s, border-color 0.4s; }
  .site-header.is-light::before { background: rgba(226, 231, 234, 0.86); border-color: var(--line-dark); }
  .menu-open .site-header::before { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand img { height: 34px; }
  .panel { width: auto; inset-inline-end: var(--gutter); top: auto; bottom: 96px; transform: none; }
  .panel h1 { margin: 16px 0 14px; }
  .panel .lede { font-size: 15px; line-height: 1.9; }
  .panel--line .name { font-size: 60px; }
  .panel--line .desc { display: none; }
  .panel--line .insight { margin-top: 12px; font-size: 16px; }
  .panel--line .more { margin-top: 16px; }
  .cycle__shade { background: linear-gradient(180deg, transparent 0%, transparent 32%, rgba(14, 49, 121, 0.85) 58%, var(--navy) 100%); }
  .ring-label { padding: 3px 10px 4px; }
  .ring-label b { font-size: 14px; }
  .ring-label small { display: none; }
  .ring-label.is-active { padding: 4px 12px 5px; }
  .ring-label.is-active b { font-size: 17px; }
  .paths__grid, .combo, .story, .principles, .contact__inner{ grid-template-columns: 1fr; }
  .paths__fork { display: none; }  .story__aside, .principles__aside { position: static; }
  .lhero__inner { width: auto; margin-top: 34vh; }
  .lhero { align-items: end; }  .siblings { grid-template-columns: 1fr; }  .crow { grid-template-columns: 46px 1fr; }
  .crow .copy { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .combo__picks { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }  .lang { padding: 8px 10px; }
  .path { min-height: 0; }
  .gap__word { font-size: 40px; }
}
@media (max-height: 760px) and (min-width: 900.02px) {
  .panel--line .desc { display: none; }
  .panel .lede { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
}

/* Mobile hero: keep the mark visible above the copy */
@media (max-width: 900px) {
  .panel { bottom: 84px; }
  .panel--hero h1 { font-size: 38px; margin: 12px 0 10px; }
  .panel .lede { font-size: 14px; line-height: 1.85; }
  .panel .rv > .actions { flex-wrap: nowrap; gap: 8px; margin-top: 18px; }
  .panel .rv > .actions .btn { flex: 1 1 0; min-width: 0; height: 48px; padding: 0 12px; font-size: 14px; justify-content: center; gap: 8px; }
  .panel .rv > .actions .btn svg { width: 15px; height: 15px; }
  .pill { font-size: 13px; padding: 6px 14px; }
  .pill--lead { font-size: 16px; padding: 8px 18px; }
}

/* ==========================================================================
   Justified text — every paragraph and text block, neat edges.
   (The last line of each block stays aligned to the start, as is standard.)
   ========================================================================== */
p, .lede, .desc, .insight, .words, .contact h1, .footer__cta h2,
.crow span.v, .pcard p, .path p, .plist p, .story__body p, .sibling span.s {
  text-align: justify;
  text-justify: inter-word;
}
/* Justified text never also balances its lines: balanced lines are shorter than the column, and justifying
   them stretches the spaces between words to several times their width. A justified heading breaks as a
   paragraph does (full lines, no lone last word); a sentence set apart (about's goal, the story's quote) is
   balanced and not justified: centred, or from the start. */
.contact h1, .footer__cta h2 { text-wrap: pretty; }
.gap__goal, .gap__lead { text-align: center; }
.story__body .quote { text-align: start; text-wrap: balance; }
/* The same goes for the short lines balanced below (the footer's tagline, a business's subtitle): justified, a
   first line of three words was stretched across the column (24 spaces wide between them in English). */
.footer__brand p, .sub { text-align: start; }
/* Where a column is too narrow for even spaces, lines are set from the start: the capability cards side by side
   (about 200px; justified, their spaces opened to four to eleven times their width) and the lead beside them;
   on phones the cards of every kind, and English text throughout (without hyphenation at hand, a phone's column
   leaves an English line too few spaces to share its slack). Persian body text stays justified. */
.pcard p, .track__intro p { text-align: start; }
@media (max-width: 900px) {
  .path p, .footer__cta h2 { text-align: start; }
  :is(p, .lede, .desc, .insight, .words, .contact h1, .crow span.v, .plist p, .story__body p, .sibling span.s):lang(en) { text-align: start; }
}
/* English is set in the same face (Dubai's Latin), at the same sizes, so every screen holds as it does in
   Persian. Its justified paragraphs may break a long word at a line's end, so the spaces stay even on narrow
   screens (paragraphs only: never headings, names, chips or the address); headings sit a hair tighter. */
:is(p, .lede, .desc, .insight, .words, .sibling span.s):lang(en):not(.sub) { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
:is(h1, h2, h3, h4, .panel .name, .mlink__title, .gap__word):lang(en) { letter-spacing: -0.01em; }
/* Where lines break (both languages): a paragraph never ends on a lone word, and headings, names, chips and
   labels split into even lines instead of leaving one word on the last (browsers without text-wrap simply
   break as before) */
p, li, .lede, .desc, .insight, .words, .crow span.v, .sibling span.s { text-wrap: pretty; }
h1, h2, h3, h4, .pill, .eyebrow, .sub, .key, .tag, .plist__head, .path h3, .pcard h3,
.ring-label b, .ring-label small, .footer__brand p, .gap__goal, .gap__lead { text-wrap: balance; }
.contact h1, .footer__cta h2 { text-wrap: pretty; } /* (justified: see above) */
/* centred blocks keep a centred last line */
.head--center p, .paths .head p, .gap__goal, .gap__lead { text-align-last: center; }

/* One text column: the bullet hangs outside it, and the paragraph that follows
   shares exactly the same edges, so every line starts and ends on one vertical. */
.panel--line .insight{
  display: block !important; position: relative; padding-inline-start: 26px;
}
.panel--line .insight::before{
  position: absolute; inset-inline-start: 0; top: 0;
}
.panel--line .desc{ max-width: none; padding-inline-start: 26px; }
.panel--line .rv > .more, .lhero .actions { margin-inline-start: 26px; }

/* ==========================================================================
   One section = one screen. Every stop of the step scroller shows exactly one
   whole section: short ones grow to fill the screen, tall ones are sized to fit.
   ========================================================================== */
.section--first { padding-top: calc(var(--header-h) + 70px); }

/* Capabilities hero: the headline and its paragraph share one screen */
.phero { min-height: 100vh; min-height: 100svh; align-items: center; }
.phero h1 { font-size: clamp(32px, min(4.6vw, 7.4vh), 74px); }
.phero .words { margin-top: clamp(18px, 4.2vh, 46px); font-size: clamp(18px, min(1.8vw, 3.1vh), 30px); line-height: 1.95; max-width: 1140px; }

/* (the principles on one screen that turns by itself: assets/css/fa-about.css) */

/* Contact: a slim footer shares the one screen with the contact details */
.footer--compact .footer__bottom { align-items: center; gap: 12px 28px; padding: 18px var(--gutter); }
.footer--compact .footer__bottom img { width: 110px; height: auto; }
.footer__inline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-inline-end: auto; }
/* the link to the next page leads this row now: on laptop widths it keeps to one line by letting its logo, the
   part it needs least (the header carries the brand), step aside */
@media (min-width: 900.02px) and (max-width: 1320px) {
  .footer--compact .footer__bottom { gap: 12px 22px; }
  .footer--compact .footer__bottom img { display: none; }
}
.footer .footer__inline li { margin: 0; font-size: 14.5px; }

@media (min-width: 900.02px) {
  main > section, main > .scene > section, .footer:not(.footer--compact) { min-height: 100vh; min-height: 100svh; }
  main > .section, main > .scene > .section { display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--header-h) + clamp(10px, 2.4vh, 36px)); padding-bottom: clamp(22px, 5vh, 64px); }
  .contact { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); padding-bottom: 40px; }
  .footer--compact .footer__bottom { height: 68px; padding-block: 0; flex-wrap: nowrap; }

  /* headings follow the height of the screen as well as its width */
  .head { margin-bottom: clamp(12px, 3.4vh, 64px); }
  .head h2 { font-size: clamp(28px, min(4vw, 6vh), 58px); }
  .head h1 { font-size: clamp(34px, min(5.2vw, 7.4vh), 82px); }
  .head p { font-size: clamp(15px, 2.1vh, 19px); }

  /* two paths */
  .paths__fork { height: clamp(36px, 8.5vh, 110px); margin: -1vh 0 1vh; }
  .path { min-height: 0; padding: clamp(22px, 3.8vh, 52px) clamp(26px, 3.2vw, 52px); gap: clamp(8px, 1.6vh, 18px); }
  .path__icon { width: clamp(46px, 6.6vh, 64px); height: clamp(46px, 6.6vh, 64px); border-radius: 16px; }
  .path h3 { font-size: clamp(22px, min(2.3vw, 3.7vh), 34px); }
  .path p { font-size: clamp(14.5px, 2vh, 17px); line-height: 1.9; }
  .path__num { font-size: clamp(90px, 15vh, 150px); }

  /* services: the four businesses around Karun */

  /* capabilities: combination builder */
  .combo h2 { font-size: clamp(26px, min(3.8vw, 5.4vh), 56px); }
  .combo__picks { margin-top: clamp(14px, 3vh, 34px); }
  .pick { padding: clamp(9px, 1.5vh, 16px) 18px; }
  .combo__out { margin-top: clamp(10px, 2.2vh, 26px); min-height: 3.6em; }
  .combo .actions { margin-top: clamp(8px, 1.6vh, 18px); }
  .combo__viz { max-width: min(520px, 64vh); }

  /* about: the story */
  .story { align-items: center; }
  .story__aside { position: static; }
  .story__aside h2 { font-size: clamp(28px, min(4vw, 5.8vh), 60px); }
  .story__year b { font-size: clamp(40px, 7vh, 64px); }
  .story__body { font-size: clamp(14.5px, 2vh, 18.5px); line-height: 1.95; gap: clamp(10px, 2.2vh, 30px); }
  .story__body .quote { font-size: clamp(19px, min(2.4vw, 3.4vh), 34px); }
  .principles__aside h2 { font-size: clamp(30px, min(4.2vw, 6vh), 64px); }

  /* business pages: the picture band fills the screen */

  /* the closing footer is a screen of its own */
  .footer:not(.footer--compact) { display: flex; flex-direction: column; }
  .footer__cta { flex: 1 1 auto; align-items: center; align-content: center; padding-top: calc(var(--header-h) + 3vh); padding-bottom: clamp(30px, 6vh, 80px); }
  .footer__cols { padding: clamp(26px, 5vh, 60px) var(--gutter) clamp(20px, 4vh, 50px); }
  .footer li { margin-bottom: clamp(3px, 0.7vh, 8px); }
}

@media (min-width: 900.02px) {
  /* business heroes and contact also fit short screens */
  .lhero { padding: calc(var(--header-h) + 2vh) var(--gutter) clamp(24px, 5vh, 70px); }
  .lhero h1 { font-size: clamp(64px, min(11vw, 16vh), 180px); }
  .lhero .sub { font-size: clamp(18px, min(1.9vw, 3vh), 28px); }  .lhero .actions { margin-top: clamp(16px, 3vh, 30px); }
  .contact { padding-top: calc(var(--header-h) + 3vh); }
  .contact h1 { font-size: clamp(22px, min(2.1vw, 3.6vh), 32px); }
  /* the rows of contact details give up room as the screen gets shorter than 800px (they are the tallest part of
     the page), so the page stays one screen with its compact footer under it down to 1280x720; from 800px up
     they are what they were, and the change is gradual, so a window dragged across 800px does not jump */
  .crow { padding: max(6px, calc(clamp(12px, 2.3vh, 22px) - 0.1 * max(0px, 800px - 100vh))) 0; }
}
@media (min-width: 900.02px) and (max-height: 760px) {
  main > .section, main > .scene > .section { padding-bottom: 16px; }
  .path p { line-height: 1.8; }
  .footer__cta { padding-top: calc(var(--header-h) + 1vh); padding-bottom: 24px; }
}
/* ==========================================================================
   Interaction layer — step rail, menu pill, ripples, grab
   ========================================================================== */

/* menu bar: the pill that follows the pointer */
.nav { position: relative; }
.nav a { z-index: 1; }
.nav__pill { position: absolute; left: 0; top: auto; bottom: -1px; height: 1px; z-index: 0; background: rgba(226, 231, 234, 0.75); opacity: 0; pointer-events: none; transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s; }
.nav__pill.is-on { opacity: 1; }
.site-header.is-light .nav__pill { background: rgba(14, 49, 121, 0.6); }

/* press ripple */
.copy{ position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: 0.22; transform: scale(0); pointer-events: none; animation: ripple 0.7s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* step rail: one tick per stop, the current one long; hover names it */
.rail { position: fixed; inset-inline-end: 14px; top: 50%; z-index: 580; display: flex; flex-direction: column; align-items: flex-start; transform: translateY(-50%); color: var(--mist); transition: color 0.4s, opacity 0.4s; }
.rail[hidden] { display: none; }
.zone-light .rail { color: var(--navy); }
.menu-open .rail { opacity: 0; pointer-events: none; }
.rail__tick { position: relative; display: block; width: 34px; height: 12px; }
.rail__tick.is-new { margin-top: 10px; }
.rail__tick::before { content: ""; position: absolute; inset-inline-end: 4px; top: 50%; width: 10px; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; opacity: 0.35; transition: width 0.45s var(--ease), opacity 0.3s; }
.rail__tick:hover::before { width: 16px; opacity: 0.8; }
.rail__tick.is-on::before { width: 26px; opacity: 1; }
.rail__tick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.rail__tick span { position: absolute; inset-inline-end: 40px; top: 50%; padding: 4px 12px; border-radius: 99px; background: var(--navy); color: var(--mist); font-size: 13px; font-weight: 500; line-height: 1.6; white-space: nowrap; box-shadow: 0 12px 26px -14px rgba(4, 14, 40, 0.8); opacity: 0; pointer-events: none; transform: translate(-8px, -50%); transition: opacity 0.25s, transform 0.35s var(--ease); }
.zone-light .rail__tick span { background: var(--white); color: var(--navy); box-shadow: 0 12px 26px -14px rgba(14, 49, 121, 0.45); }
/* (a hidden name waits a little towards the rail's edge of the screen; before the rule that shows it) */
[dir="ltr"] .rail__tick span { transform: translate(8px, -50%); }
.rail__tick:hover span, .rail__tick:focus-visible span, .rail__tick.is-say span { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 900px) { .rail { display: none; } }

/* home: the ring can be grabbed */
.cycle__canvas { touch-action: pan-y; cursor: grab; }
.cycle.is-grabbing, .cycle.is-grabbing .cycle__canvas { cursor: grabbing; user-select: none; }

/* business pages: the service cards are clickable */

/* contact: topic chips; the email row lights up when a topic is set */
.crow.is-ready .ico { background: var(--blue); color: var(--white); animation: ready 1.1s var(--ease); }
@keyframes ready { from { box-shadow: 0 0 0 0 rgba(78, 114, 184, 0.75); } to { box-shadow: 0 0 0 18px rgba(78, 114, 184, 0); } }

/* ==========================================================================
   Responsive refinements — phones (upright and sideways), tablets, the 901–1100 band
   ========================================================================== */
/* the closing footer stays one screen on small laptops and tablets held sideways: four columns in a row */
@media (min-width: 900.02px) and (max-width: 1100px) {
  .footer__cols { grid-template-columns: 1.15fr 1fr 1fr 1.25fr; gap: 26px; }
  .footer__brand { grid-column: auto; }
  .footer__brand img { width: 160px; }
}

@media (max-width: 900px) {
  /* touch: bigger hit areas without changing how things look */
  .ring-label::after { content: ""; position: absolute; inset: -9px -8px; }
  /* (not the button to the next page: a button keeps its own layout, its arrow beside its words) */
  .footer__bottom a:not(.btn) { display: inline-block; padding: 9px 0; }

  /* tablets held upright: the home text at a size that suits the wider screen */
  .panel .lede { max-width: 620px; }
}
@media (min-width: 600px) and (max-width: 900px) and (orientation: portrait) {
  .panel--hero h1 { font-size: 52px; }
  .panel .lede { font-size: 16px; }
  .panel--line .name { font-size: 76px; }
  .panel--line .insight { font-size: 18px; }
  .pill--lead { font-size: 18px; }
}

@media (max-width: 560px) {
  /* services: slimmer cards, so the justified text gets the width */
  /* capabilities hero: fewer, fuller lines */
  .phero h1 { font-size: clamp(24px, 7.4vw, 32px); }
  /* about: «می‌خواهیم» and «می‌توانیم» side by side fit the narrowest phones */
  .gap__word { font-size: clamp(24px, 8.2vw, 40px); }
  /* the footer call: more words per justified line */
  .footer__cta h2 { font-size: 24px; line-height: 1.65; }
}

/* short upright phones (iPhone SE and smaller): a more compact home text leaves the ring its room */
@media (max-width: 900px) and (max-height: 760px) and (orientation: portrait) {
  .panel { bottom: 74px; }
  .pill--lead { font-size: 13.5px; padding: 6px 14px; }
  .panel--hero h1 { font-size: 32px; margin: 10px 0 8px; }
  .panel .lede { font-size: 13.5px; line-height: 1.8; }
  .panel .rv > .actions { margin-top: 14px; }
  .panel .rv > .actions .btn { height: 44px; }
  .panel--line .name { font-size: 48px; }
  .panel--line .insight { font-size: 14.5px; }
}
/* the smallest phones: the category tag gives its line to the ring (the subtitle says the same) */
@media (max-width: 900px) and (max-height: 700px) and (orientation: portrait) {
  .panel--line > .rv:first-child { display: none; }
  .panel--line .name { margin-top: 0; }
}

/* phones held sideways: the desktop arrangement (ring beside the text), compact */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  :root { --header-h: 58px; }
  .brand img { height: 28px; }
  .panel { inset-inline-end: auto; inset-inline-start: var(--gutter); top: 50%; bottom: auto; width: 54vw; transform: translateY(-46%); }
  .pill { font-size: 12px; padding: 4px 12px; }
  .pill--lead { font-size: 12.5px; padding: 5px 12px; }
  .panel--hero h1 { font-size: 26px; margin: 8px 0 6px; }
  .panel h1 .rv { display: inline-block; margin-inline-end: 0.28em; }
  .panel .lede { font-size: 12.5px; line-height: 1.75; }
  .panel .rv > .actions { margin-top: 10px; }
  .panel .rv > .actions .btn { height: 38px; font-size: 13px; }
  .panel--line .name { font-size: 40px; margin-top: 4px; }
  .panel--line .sub { font-size: 14px; }
  .panel--line .insight { margin-top: 8px; font-size: 13px; line-height: 1.7; }
  .panel--line .more { margin-top: 10px; }
  .cycle__shade { background: linear-gradient(270deg, rgba(14, 49, 121, 0.75) 0%, rgba(14, 49, 121, 0.3) 46%, transparent 62%); }
  [dir="ltr"] .cycle__shade { background: linear-gradient(90deg, rgba(14, 49, 121, 0.75) 0%, rgba(14, 49, 121, 0.3) 46%, transparent 62%); }
  .lhero { align-items: center; padding-top: calc(var(--header-h) + 16px); }
  .lhero__inner { width: 56vw; margin-top: 0; }
  .lhero h1 { font-size: 48px; }
}

/* the narrowest phones (360px class): the tagline stays on one line, the two hero buttons fit their text */
@media (max-width: 380px) {
  .pill--lead { font-size: 12.5px; padding: 6px 12px; }
  .pill--lead::before { display: none; }
  .panel .rv > .actions .btn { padding: 0 8px; font-size: 13px; }
  .panel .rv > .actions .btn svg { display: none; }
}

/* business pages: the stacked service cards hold their whole text on every phone */

/* phones held sideways: heading beside the cards, the cards as tall as the screen allows */

/* ==========================================================================
   Pinned scenes — native sticky, in screen units
   The wrapper is one screen tall plus --steps × --step screens of scroll (set by the script); the scene
   inside sticks to the top while it passes. Nothing is a measured pixel size, so every scene follows the
   window live while it is being resized.
   ========================================================================== */
.scene { position: relative; height: calc(100vh * (1 + var(--steps, 0) * var(--step, 0.6))); height: calc(100svh * (1 + var(--steps, 0) * var(--step, 0.6))); }
.scene > .scene__stage { position: sticky; top: 0; }

/* ==========================================================================
   Self-advancing scenes (home cycle, capability pillars, services orbit, principles): frameless controls,
   ‹ and › to step and a dot per item. The current dot is larger, inside a circular loading bar that fills
   until the next item comes (the script sets --p, 0..1); pressing it pauses or resumes.
   ========================================================================== */
.cnav { display: inline-flex; align-items: center; gap: 2px; pointer-events: auto; color: var(--mist); }
.cnav__btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: inherit; opacity: 0.66; transition: opacity 0.3s, background 0.3s, transform 0.3s var(--ease); }
.cnav__btn:hover { opacity: 1; background: rgba(226, 231, 234, 0.1); }
.cnav__btn:active { transform: scale(0.88); }
.cnav__btn svg { width: 20px; height: 20px; display: block; }
.cnav__prev svg { transform: rotate(180deg); }
/* prev on the right pointing right in Persian; on English pages prev is on the left and points left */
[dir="ltr"] .cnav__prev svg { transform: none; }
[dir="ltr"] .cnav__next svg { transform: rotate(180deg); }
.cnav__btn:focus-visible { opacity: 1; outline: 2px solid var(--blue); outline-offset: 1px; }
.cnav__segs { display: flex; align-items: center; padding: 0 2px; }
.seg { position: relative; width: 22px; height: 36px; display: grid; place-items: center; transition: width 0.5s var(--ease); }
.seg i { width: 2px; height: 9px; border-radius: 1px; background: currentColor; opacity: 0.4; transition: opacity 0.3s, transform 0.45s var(--ease); }
.seg:hover i { opacity: 0.85; transform: scaleY(1.35); }
.seg__ring { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; overflow: visible; opacity: 0; transform: rotate(-90deg) scale(0.35); transition: opacity 0.35s, transform 0.55s var(--ease); pointer-events: none; }
.seg__ring circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.seg__track { opacity: 0.2; }
/* the loading bar: the circle drawn as far as the wait has gone (r = 13, so its length is 81.7) */
.seg__fill { stroke-linecap: round; stroke-dasharray: 81.7px; stroke-dashoffset: calc(81.7px * (1 - var(--p, 0))); transition: opacity 0.3s; }
.seg.is-on { width: 40px; }
.seg.is-on i { opacity: 1; transform: scaleY(1.45); }
.seg.is-on .seg__ring { opacity: 1; transform: rotate(-90deg) scale(1); }
.seg:focus-visible { outline: none; }
.seg:focus-visible .seg__track { opacity: 0.7; }
.seg:not(.is-on):focus-visible .seg__ring { opacity: 1; transform: rotate(-90deg) scale(0.75); }
/* on hold (pointing at a control or a link, dragging, the controls have the keyboard): the loading bar rests, dimmed */
.cnav.is-waiting .seg.is-on .seg__fill { opacity: 0.45; }
/* paused: the current dot turns into a small pause sign */
.cnav.is-paused .seg.is-on .seg__fill { opacity: 0.3; }
.cnav.is-paused .seg.is-on i { width: 7px; height: 8px; border-radius: 1px; transform: none; background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%); }
/* a dot names its item when pointed at (the current one offers to pause or resume) */
.seg::after, .cnav__btn[data-name]::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 6px); padding: 4px 12px; border-radius: 99px; background: var(--navy); color: var(--mist); font-size: 13px; font-weight: 500; line-height: 1.6; white-space: nowrap; box-shadow: 0 12px 26px -14px rgba(4, 14, 40, 0.8); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.seg:not([data-name])::after { display: none; }
.seg:hover::after, .seg:focus-visible::after, .cnav__btn:hover::after, .cnav__btn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.cnav__btn { position: relative; }
.cnav--light { color: var(--navy); }
.cnav--light .cnav__btn:hover { background: rgba(14, 49, 121, 0.07); }
.cnav--light .seg.is-on .seg__fill { stroke: var(--blue); }
.cnav--light .seg::after, .cnav--light .cnav__btn::after { background: var(--white); color: var(--navy); box-shadow: 0 12px 26px -14px rgba(14, 49, 121, 0.45); }
/* the home cycle: its controls sit just under the ring (the scene sets --ring-x and --ring-y every frame) */
.cycle__hud .cnav { position: absolute; left: var(--ring-x, 27%); top: min(calc(var(--ring-y, calc(100% - 84px)) + 10px), calc(100% - 48px)); transform: translateX(-50%); }
/* (--ring-x is the ring's centre in px from the left, written by the scene: the side stays physical; only the
   guess before the scene's first frame follows the ring to the right on English pages) */
[dir="ltr"] .cycle__hud .cnav { left: var(--ring-x, 73%); }
/* the ring sits lower and wider for Karun than for a business: the controls glide after it (and trail it softly through a live
   resize); only once the page is showing, so on load they are simply in place */
.cycle__hud.is-live .cnav { transition: top 0.9s var(--ease), left 0.9s var(--ease); }
@media (min-width: 900.02px) {
  /* the text sits in the middle of the room under the header */
  .panel { top: calc(var(--header-h) + (100% - var(--header-h) - 36px) / 2); transform: translateY(-50%); }
}
@media (min-width: 900.02px) and (max-height: 700px) {
  .pill--lead { font-size: 16px; padding: 7px 20px; }
  .panel h1 { font-size: clamp(40px, 9.5vh, 64px); margin: 14px 0 12px; }
  .panel .lede { font-size: 14.5px; line-height: 1.85; }
  .panel .rv > .actions { margin-top: 18px; }
  .panel--line .name { font-size: clamp(56px, 13vh, 96px); }
  .panel--line .insight { margin-top: 12px; }
  .panel--line .more { margin-top: 14px; }
}
/* English: the lead badge keeps to one line, as the Persian one does. Its words run longer, so where the column
   is narrow (about 47% of the window, at most 640px) it takes a size that still fits; phones keep the balanced two
   lines both languages have there. */
@media (min-width: 900.02px) {
  [dir="ltr"] .pill--lead { white-space: nowrap; font-size: min(22.5px, calc(1.85vw - 3px)); }
}
@media (min-width: 900.02px) and (max-height: 700px) {
  [dir="ltr"] .pill--lead { font-size: min(16px, calc(1.85vw - 3px)); }
}
@media (max-width: 900px) {
  .seg { width: 20px; }
  .seg.is-on { width: 36px; }
  /* phones: under everything, in the middle */
  .cycle__hud .cnav, [dir="ltr"] .cycle__hud .cnav { left: 50%; top: auto; bottom: 14px; }
}

/* ==========================================================================
   The footer: its call to action on one line (sized by the script to the width it has), a quick glint of
   light crossing the words now and then, and soft dust drifting behind (canvas.dust, as in the home scene).
   ========================================================================== */
.footer .dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer__cta h2 { color: var(--mist); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer__cta h2 { background-image: linear-gradient(100deg, var(--mist) 40%, #b7cbf4 45.5%, #ffffff 50%, #b7cbf4 54.5%, var(--mist) 60%); background-size: 320% 100%; background-position: 0 0;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: glint 9s infinite 2s; }
  /* English: the light crosses left to right, its slant mirrored */
  [dir="ltr"] .footer__cta h2 { background-image: linear-gradient(80deg, var(--mist) 40%, #b7cbf4 45.5%, #ffffff 50%, #b7cbf4 54.5%, var(--mist) 60%); background-position: 100% 0; animation-name: glint-ltr; }
}
/* most of the time the light waits off to one side; then it crosses the words the way they read (right to left in Persian), in about a second */
@keyframes glint { 0%, 86% { background-position: 0 0; animation-timing-function: cubic-bezier(0.45, 0.05, 0.3, 1); } 100% { background-position: 100% 0; } }
@keyframes glint-ltr { 0%, 86% { background-position: 100% 0; animation-timing-function: cubic-bezier(0.45, 0.05, 0.3, 1); } 100% { background-position: 0 0; } }
@media (min-width: 900.02px) {
  .footer__cta { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: clamp(20px, 4.5vh, 44px); }
  .footer__cta h2.is-one-line { max-width: none; white-space: nowrap; line-height: 1.4; text-align: start; text-align-last: auto; }
  .footer__cta h2.is-wrapping { white-space: normal; }
}

/* where two sections of different colours meet: bands that melt the edge while it crosses the screen (set by the script) */
/* the colour sweep between two sections (fa.js, Soft seams): each band is as tall as half a screen and is scaled
   from the edge it stands on, to the edge's distance from the screen's border, so it is nothing at rest and the
   whole screen is one gradient half-way across */
.seam { position: absolute; left: 0; right: 0; height: 50vh; height: 50svh; z-index: 5; pointer-events: none; visibility: hidden; transform: scaleY(0); will-change: transform; }
.seam--top { top: 0; transform-origin: 50% 0; }
.seam--bottom { bottom: 0; transform-origin: 50% 100%; }

/* phones: the link to the next page takes the row to itself, so its arrow stays beside its words */
@media (max-width: 560px) {
  .footer .footer__next.btn { width: 100%; justify-content: center; white-space: normal; height: auto; min-height: 46px; padding: 8px 18px; line-height: 1.5; text-align: center; }
}
