@import url('../fonts/fonts.css');

/* ───────── tokens ───────── */
@property --paper { syntax: '<color>'; inherits: true; initial-value: #f1e3cc; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #1d0e45; }
@property --ink-soft { syntax: '<color>'; inherits: true; initial-value: #53436b; }

:root {
  --violet: #8336f4;
  --violet-deep: #3f1a86;
  --violet-ink: #2a1160;
  --navy: #001736;
  --ivory: #f6eddc;
  --brass: #c9a05a;
  --brass-hi: #f3dba1;
  --brass-lo: #7d5a24;
  --paper: #f1e3cc;
  --ink: #1d0e45;
  --ink-soft: #53436b;
  --hair: color-mix(in srgb, var(--ink) 16%, transparent);
  --pill: var(--violet-deep);
  --pill-ink: #fbf5ea;
  --pill2: #fbf3e4;
  --pill2-ink: #1d0e45;
  --font-ar: 'CF Latin Letters', 'Noto Naskh Arabic', 'Geeza Pro', serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --font: var(--font-ar);
  --gut: clamp(22px, 5.2vw, 88px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --theme-t: 1100ms;
  color-scheme: light;
}
html[data-theme='night'] {
  --paper: #001736;
  --ink: #f7f0e4;
  --ink-soft: #b9b8d2;
  --pill: #f8efdf;
  --pill-ink: #1d0e45;
  --pill2: #4a1fa3;
  --pill2-ink: #fbf5ea;
  color-scheme: dark;
}
html[lang='en'] { --font: var(--font-en); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.95;
  font-variant-numeric: lining-nums;
  transition: --paper var(--theme-t) var(--ease-io), --ink var(--theme-t) var(--ease-io), --ink-soft var(--theme-t) var(--ease-io);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[lang='en'] body { line-height: 1.65; font-size: 17px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--font-en); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 6px; }

/* ───────── header ───────── */
.top {
  position: fixed; inset-inline: 0; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px var(--gut);
  transition: transform .5s var(--ease), background-color .4s;
}
.top.is-hidden { transform: translateY(-110%); }
.top.is-solid { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.brand { display: block; width: clamp(150px, 15vw, 196px); color: var(--ink); flex: none; }
.brand svg { display: block; width: 100%; height: auto; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: 17px; }
.nav a { position: relative; padding: 6px 2px; color: var(--ink); opacity: .82; transition: opacity .3s; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--violet); transform: scaleX(0); transform-origin: inline-start; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current='true'] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current='true']::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 10px; flex: none; }
.tool { height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--ink); transition: background-color .3s; }
.tool:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
html[lang='en'] .tool.lang { font-family: var(--font-ar); font-size: 17px; }
.orb { width: 22px; height: 22px; position: relative; display: block; }
.orb i { position: absolute; inset: 0; border-radius: 50%; background: var(--ink); transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.orb b { position: absolute; inset: -3px; border-radius: 50%; background: var(--paper); transform: translate(34%, -34%) scale(.92); transition: transform .9s var(--ease), --paper var(--theme-t) var(--ease-io); }
html[data-theme='day'] .orb i { transform: scale(.56); box-shadow: 0 -11px 0 -8px var(--ink), 0 11px 0 -8px var(--ink), 11px 0 0 -8px var(--ink), -11px 0 0 -8px var(--ink), 8px 8px 0 -8px var(--ink), -8px 8px 0 -8px var(--ink), 8px -8px 0 -8px var(--ink), -8px -8px 0 -8px var(--ink); }
html[data-theme='day'] .orb b { transform: translate(120%, -120%) scale(.2); }
.menu-btn { display: none; }

/* ───────── pills ───────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 8px 34px; border-radius: 999px;
  background: var(--pill); color: var(--pill-ink);
  font-size: 18px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--violet-ink) 70%, transparent);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color var(--theme-t), color var(--theme-t);
}
.pill::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--violet) 70%, transparent) 50%, transparent 80%); transform: translateX(120%); transition: transform .9s var(--ease); }
html[dir='ltr'] .pill::before { transform: translateX(-120%); }
.pill:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -18px color-mix(in srgb, var(--violet-ink) 80%, transparent); }
.pill:hover::before { transform: translateX(-120%); }
html[dir='ltr'] .pill:hover::before { transform: translateX(120%); }
.pill:active { transform: translateY(0) scale(.985); }
.pill--2 { background: var(--pill2); color: var(--pill2-ink); box-shadow: 0 12px 28px -18px rgba(40, 20, 80, .55), inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.pill--sm { min-height: 44px; padding: 4px 22px; font-size: 16px; }
.pill[disabled] { opacity: .5; pointer-events: none; }
.more { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ink); font-size: 17px; }
.more::before { content: ''; width: 34px; height: 2px; border-radius: 2px; background: var(--violet); transition: width .5s var(--ease); }
.more:hover::before { width: 58px; }

/* ───────── scenes ───────── */
.scene { position: relative; min-height: 100svh; background: var(--scene-bg, var(--paper)); transition: background-color var(--theme-t) var(--ease-io); }
.scene__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center;
  opacity: 0; transition: opacity var(--theme-t) var(--ease-io), transform 1.6s var(--ease);
  will-change: opacity, transform;
}
html[dir='ltr'] .scene__media { transform: scaleX(-1); }
html[data-theme='day'] .scene__media img.day, html[data-theme='night'] .scene__media img.night { opacity: 1; }
.scene__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--scene-bg, var(--paper)) 0, transparent 12%, transparent 86%, var(--scene-next, var(--scene-bg, var(--paper))) 100%); transition: --paper var(--theme-t); }
.scene__body { position: relative; z-index: 3; min-height: 100svh; display: grid; align-content: center; padding: 120px var(--gut) 170px; }
.col { width: min(46vw, 640px); margin-inline-start: 0; margin-inline-end: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 45%, var(--brass-lo)); box-shadow: 0 2px 5px rgba(60, 35, 5, .4); }
.h1, .h2 { font-weight: 700; line-height: 1.42; letter-spacing: 0; text-wrap: balance; color: var(--ink); }
.h1 { font-size: clamp(38px, 5vw, 78px); }
.h2 { font-size: clamp(34px, 4.3vw, 66px); }
html[lang='en'] .h1, html[lang='en'] .h2 { line-height: 1.12; letter-spacing: -.022em; font-weight: 700; }
html[lang='en'] .h1 { font-size: clamp(36px, 4.5vw, 70px); }
html[lang='en'] .h2 { font-size: clamp(32px, 3.9vw, 58px); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.acts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }

/* reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.in .rv, .rv.in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-block: .12em; margin-block: -.12em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.25s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 80ms); }
.in .line > span { transform: none; }

/* ───────── hero + network ───────── */
.hero .scene__body { align-content: center; }
.net { position: absolute; z-index: 4; inset-block: 33% 25%; inset-inline-end: 4%; width: 42%; touch-action: pan-y; }
html[dir='rtl'] .net { inset-inline-end: auto; left: 4%; }
html[dir='ltr'] .net { left: auto; right: 4%; }
.net canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.net__node { position: absolute; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; cursor: grab; touch-action: none; }
.net__node span { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 16px; line-height: 1.5; color: var(--ink); padding: 0 6px; transition: color .4s, transform .5s var(--ease); pointer-events: none; }
.net__node.low span { top: auto; bottom: -36px; }
.net__node[aria-pressed='true'] span { color: var(--violet); transform: translateX(-50%) scale(1.08); }
html[data-theme='night'] .net__node[aria-pressed='true'] span { color: #cdb0ff; }
.net__say { margin-top: 30px; padding-inline-start: 18px; border-inline-start: 2px solid var(--violet); font-size: 17px; line-height: 1.85; color: var(--ink); min-height: 3.7em; max-width: 31em; text-wrap: pretty; }
.scrollcue { display: none; position: absolute; z-index: 4; bottom: 26px; inset-inline-start: var(--gut); display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.scrollcue i { width: 2px; height: 44px; border-radius: 2px; background: linear-gradient(var(--violet), transparent); transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ───────── about ───────── */
.pair { margin-top: 38px; display: grid; gap: 26px; }
.pair h3 { font-size: 15px; font-weight: 600; color: var(--violet); margin-bottom: 4px; }
html[data-theme='night'] .pair h3 { color: #c2a2ff; }
.pair p { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.85; color: var(--ink); text-wrap: pretty; }
html[lang='en'] .pair p { line-height: 1.5; }
.values { position: relative; z-index: 3; padding: 0 var(--gut) 200px; margin-top: -6svh; width: calc(min(46vw, 640px) + var(--gut) * 2); }
.values__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(18px, 3vw, 46px); }
.val { position: relative; font-size: clamp(26px, 2.5vw, 40px); font-weight: 700; line-height: 1.5; color: color-mix(in srgb, var(--ink) 50%, transparent); transition: color .6s var(--ease); text-align: start; }
html[lang='en'] .val { line-height: 1.2; letter-spacing: -.02em; }
.val.on, .val:hover, .val:focus-visible { color: var(--ink); }
.val::after { content: ''; position: absolute; inset-inline: 0; bottom: .12em; height: 3px; border-radius: 3px; background: var(--violet); transform: scaleX(0); transform-origin: inline-start; transition: transform .7s var(--ease); }
.val.on::after { transform: scaleX(1); }
.values__say { margin-top: 18px; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-soft); min-height: 2.2em; max-width: 36em; }

/* ───────── journey ───────── */
.journey { height: 520svh; }
.journey .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.journey .scene__media { position: absolute; }
.journey__head { position: absolute; z-index: 3; top: 104px; inset-inline-start: var(--gut); width: min(44vw, 600px); }
.journey__count { margin-top: 10px; font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--ink-soft); direction: ltr; display: inline-block; }
.journey__count b { color: var(--violet); font-size: 28px; font-weight: 700; }
html[data-theme='night'] .journey__count b { color: #c2a2ff; }
.stage { position: absolute; z-index: 3; top: 43%; inset-inline-start: var(--gut); width: min(44vw, 560px); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.stage.on { opacity: 1; pointer-events: auto; }
.stage h3 { font-size: clamp(30px, 3.5vw, 54px); font-weight: 700; line-height: 1.45; transform: translateX(var(--sx, 0)); transition: transform 1.1s var(--ease); }
html[lang='en'] .stage h3 { line-height: 1.15; letter-spacing: -.02em; }
.stage p { margin-top: 12px; font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-soft); transform: translateX(var(--px, 0)); transition: transform 1.3s var(--ease); max-width: 30em; }
.stage:not(.on) { --sx: 70px; --px: -50px; }
html[dir='ltr'] .stage:not(.on) { --sx: -70px; --px: 50px; }
.ribbon { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bead { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff3cf 0, var(--brass-hi) 14%, var(--brass) 46%, var(--brass-lo) 82%, #4a3210 100%); box-shadow: 0 6px 12px -3px rgba(40, 20, 0, .55), 0 0 0 0 rgba(131, 54, 244, .0); transform: scale(.62); opacity: .85; transition: transform .7s var(--ease), opacity .6s, box-shadow .7s; }
.bead.on { transform: scale(1); opacity: 1; }
.bead.now { transform: scale(1.5); box-shadow: 0 8px 16px -3px rgba(40, 20, 0, .6), 0 0 0 9px rgba(131, 54, 244, .2), 0 0 34px 6px rgba(131, 54, 244, .45); }
.journey__dots { position: absolute; z-index: 4; bottom: 30px; inset-inline-start: var(--gut); display: flex; gap: 6px; }
.journey__dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.journey__dots button::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 26%, transparent); transition: background-color .4s, width .5s var(--ease); }
.journey__dots button[aria-current='step']::before { background: var(--violet); width: 40px; }

/* ───────── ecosystem ───────── */
.eco { position: relative; }
.eco .scene__body { align-content: center; }
.eco__idx { display: none; font-family: var(--font-en); font-weight: 700; font-size: clamp(80px, 11vw, 190px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--violet) 55%, transparent); position: absolute; z-index: 2; bottom: 4svh; inset-inline-start: var(--gut); opacity: .5; direction: ltr; }
.incl { margin: 26px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 34px; font-size: 17px; color: var(--ink); }
.incl li { break-inside: avoid; padding: 5px 0; padding-inline-start: 22px; position: relative; line-height: 1.75; }
html[lang='en'] .incl li { line-height: 1.45; padding-block: 7px; }
.incl li::before { content: ''; position: absolute; inset-inline-start: 0; top: .95em; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 45%, var(--brass-lo)); }
html[lang='en'] .incl li::before { top: .9em; }
.note { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

/* ───────── audiences ───────── */
.who > * { position: relative; z-index: 3; }
.foot > * { position: relative; z-index: 3; }
.who { padding: 16svh var(--gut) 14svh; background: var(--paper); transition: background-color var(--theme-t) var(--ease-io); }
.who__list { margin: 44px 0 0; padding: 0; list-style: none; }
.who__item { border: 0; }
.who__btn { width: 100%; display: flex; align-items: baseline; gap: 22px; text-align: start; padding: 10px 0; font-size: clamp(28px, 4.6vw, 72px); font-weight: 700; line-height: 1.5; color: color-mix(in srgb, var(--ink) 48%, transparent); transition: color .5s var(--ease), padding .6s var(--ease); }
html[lang='en'] .who__btn { line-height: 1.2; letter-spacing: -.02em; padding-block: 14px; }
.who__btn small { font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--ink-soft); min-width: 2.2em; direction: ltr; }
.who__btn:hover, .who__item.open .who__btn { color: var(--ink); padding-inline-start: 18px; }
.who__say { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.who__say > div { overflow: hidden; }
.who__say p { padding: 0 0 20px; padding-inline-start: calc(2.2em + 40px); font-size: clamp(17px, 1.5vw, 22px); color: var(--ink-soft); max-width: 40em; }
.who__item.open .who__say { grid-template-rows: 1fr; }
.who__item.open .who__btn small { color: var(--violet); }

/* ───────── cta + footer ───────── */
.cta .col { width: min(50vw, 700px); }
.foot { padding: 54px var(--gut) 38px; background: var(--paper); display: grid; gap: 26px; transition: background-color var(--theme-t) var(--ease-io); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 16px; }
.foot__nav a { opacity: .8; padding: 8px 0; } .foot__nav a:hover { opacity: 1; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--ink-soft); }
.foot .brand { width: 200px; }

/* ───────── silk canvas + curtain ───────── */
#silk { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.above-silk { position: relative; z-index: 3; }
.veil { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: var(--violet-ink); opacity: 0; transition: opacity .45s var(--ease-io); }
.veil.on { opacity: 1; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .5s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(34px); } }

/* ───────── register ───────── */
.reg { min-height: 100svh; }
.reg .scene__body { align-content: start; padding-top: 118px; }
.reg .col { width: min(50vw, 700px); }
.thread { position: relative; display: flex; align-items: center; gap: 0; height: 44px; width: min(100%, 420px); margin-bottom: 8px; }
.thread::before { content: ''; position: absolute; inset-inline: 10px; top: 50%; height: 2px; margin-top: -1px; background: color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 2px; }
.thread::after { content: ''; position: absolute; inset-inline-start: 10px; top: 50%; height: 3px; margin-top: -1.5px; width: calc((100% - 20px) * var(--p, 0)); background: linear-gradient(90deg, #a56bff, var(--violet)); border-radius: 3px; transition: width .9s var(--ease); }
.thread button { position: relative; z-index: 1; flex: 1; height: 44px; display: grid; justify-items: start; align-items: center; }
.thread button:last-child { flex: 0 0 20px; }
.thread button i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff3cf 0, var(--brass-hi) 14%, var(--brass) 46%, var(--brass-lo) 82%, #4a3210 100%); box-shadow: 0 4px 8px -2px rgba(40, 20, 0, .5); transform: scale(.62); transition: transform .6s var(--ease), box-shadow .6s; }
.thread button.done i { transform: scale(.82); }
.thread button[aria-current='step'] i { transform: scale(1.12); box-shadow: 0 4px 8px -2px rgba(40, 20, 0, .5), 0 0 0 6px rgba(131, 54, 244, .22); }
.stepno { font-size: 15px; color: var(--ink-soft); }
.step { display: none; }
.step.on { display: block; animation: stepin .8s var(--ease) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(26px); } }
.step .h2 { font-size: clamp(32px, 3.6vw, 56px); }
.step .lead { margin-top: 10px; }

.kinds { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 6px; }
.kind { position: relative; display: grid; justify-items: center; text-align: center; padding: 4px 4px 10px; border-radius: 22px; cursor: pointer; }
.kind input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.kind .obj { width: 100%; max-width: 128px; aspect-ratio: 1; background-size: 400% 200%; background-repeat: no-repeat; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); transition: transform .7s var(--ease), filter .5s; }
.kind:hover .obj { transform: translateY(-6px) rotate(-3deg); }
.kind b { font-weight: 600; font-size: 16px; line-height: 1.6; color: var(--ink); padding: 2px 12px; border-radius: 999px; transition: background-color .4s, color .4s; }
html[lang='en'] .kind b { font-size: 14px; line-height: 1.3; padding-block: 5px; }
.kind input:checked ~ .obj { transform: translateY(-8px) scale(1.08); }
.kind input:checked ~ b { background: var(--pill); color: var(--pill-ink); }
.kind input:focus-visible ~ b { outline: 2px solid var(--violet); outline-offset: 3px; }
.kind .loop { position: absolute; top: 4px; left: 50%; width: min(100%, 132px); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; }
.kind .loop ellipse { fill: none; stroke: var(--violet); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); opacity: .85; }
.kind input:checked ~ .loop ellipse { stroke-dashoffset: 0; }

.fields { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.f { position: relative; display: grid; padding-top: 6px; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f label, .f legend { font-size: 15px; color: var(--ink-soft); line-height: 1.7; padding: 0; }
.f label em, .f legend em { font-style: normal; color: var(--ink-soft); opacity: .75; font-size: 13px; margin-inline-start: 6px; }
.f input, .f select, .f textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 18px; line-height: 1.6; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 0; padding: 6px 2px 9px; outline: 0; transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.f textarea { resize: vertical; min-height: 92px; line-height: 1.8; }
.f select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: left 8px top 54%, left 14px top 54%; padding-inline-end: 26px; }
html[dir='ltr'] .f select { background-position: right 14px top 54%, right 8px top 54%; }
.f select option { color: #1d0e45; background: #fbf5ea; }
.f input:focus, .f select:focus, .f textarea:focus { border-bottom-color: var(--violet); box-shadow: 0 2px 0 0 var(--violet); }
.f input::placeholder, .f textarea::placeholder { color: color-mix(in srgb, var(--ink) 34%, transparent); }
.f input[dir='ltr'] { text-align: end; }
html[dir='ltr'] .f input[dir='ltr'] { text-align: start; }
.f .err { font-size: 14px; line-height: 1.6; color: #b3261e; min-height: 0; }
html[data-theme='night'] .f .err { color: #ffb4a9; }
.f.bad input, .f.bad select, .f.bad textarea { border-bottom-color: #b3261e; }
.phone { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 14px; direction: rtl; }
html[dir='ltr'] .phone { direction: ltr; grid-template-columns: 132px minmax(0, 1fr); }
html[dir='ltr'] .phone select { order: -1; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; border: 0; padding: 0; }
fieldset.f { border: 0; margin: 0; padding: 6px 0 0; min-inline-size: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 18px; border-radius: 999px; font-size: 16px; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); transition: background-color .35s, color .35s, transform .4s var(--ease); }
.seg label:hover span { transform: translateY(-2px); }
.seg input:checked + span { background: var(--pill); color: var(--pill-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
.sheet { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 20px 18px; margin-top: 8px; background: #fbf3e2; color: #2a1160; border-radius: 4px 14px 6px 12px / 12px 5px 14px 4px; box-shadow: 0 18px 30px -20px rgba(30, 10, 60, .7), inset 0 0 40px rgba(190, 150, 90, .18); cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s; }
.sheet:hover, .sheet.drag { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 26px 36px -22px rgba(30, 10, 60, .8), inset 0 0 40px rgba(131, 54, 244, .14); }
.sheet input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sheet b { font-size: 17px; font-weight: 600; }
.sheet small { font-size: 14px; color: #5a4a6b; line-height: 1.6; }
.sheet:focus-within { outline: 2px solid var(--violet); outline-offset: 4px; }
.files { margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; display: grid; gap: 4px; }
.files li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: plaintext; min-width: 0; }
.files li button { flex: none; min-width: 44px; min-height: 36px; color: var(--violet); font-size: 14px; }
html[data-theme='night'] .files li button { color: #c2a2ff; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 16px; line-height: 1.8; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 3px 0 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); transition: all .35s var(--ease); cursor: pointer; }
.consent input:checked { border-color: transparent; background: radial-gradient(circle at 34% 28%, #fff3cf 0, var(--brass-hi) 14%, var(--brass) 46%, var(--brass-lo) 82%); box-shadow: 0 0 0 5px rgba(131, 54, 244, .22); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.review { margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 22px; font-size: 16px; }
.review dt { color: var(--ink-soft); } .review dd { margin: 0; overflow-wrap: anywhere; }
.formerr { margin-top: 12px; color: #b3261e; font-size: 15px; min-height: 1.6em; }
html[data-theme='night'] .formerr { color: #ffb4a9; }
.done { display: none; }
.done.on { display: block; animation: stepin 1s var(--ease) both; }
.ref { margin-top: 22px; display: grid; gap: 0; }
.ref small { font-size: 15px; color: var(--ink-soft); }
.ref output { font-family: var(--font-en); font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: .04em; direction: ltr; text-align: end; color: var(--ink); line-height: 1.4; }
html[dir='ltr'] .ref output { text-align: start; }
.gate { margin-top: 22px; }
.gate p { font-size: 16px; color: var(--ink-soft); max-width: 32em; margin-bottom: 14px; }
.seal { position: absolute; z-index: 2; width: min(34vw, 460px); aspect-ratio: 1; left: 9%; top: 50%; transform: translateY(-46%) rotate(-8deg) scale(.6); opacity: 0; transition: transform 1.4s var(--ease), opacity .8s; -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 74%); mask-image: radial-gradient(closest-side, #000 52%, transparent 74%); pointer-events: none; }
html[dir='ltr'] .seal { left: auto; right: 9%; }
.seal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--theme-t); }
html[data-theme='day'] .seal img.day, html[data-theme='night'] .seal img.night { opacity: 1; }
.is-done .seal { opacity: 1; transform: translateY(-46%) rotate(0) scale(1); }
.reg .scene__media img { transition: opacity 1s var(--ease-io), transform 1.6s var(--ease); }
.reg .scene__media img:not(.show) { opacity: 0 !important; }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .nav { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .top { padding: 12px 18px; }
  .brand { width: 138px; }
  .top .pill { display: none; }
  .scene__media img { object-position: center bottom; }
  .scene__media { top: auto; height: 62svh; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
  .hero .scene__media { height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero .scene__media img { object-position: center bottom; }
  .scene__body { align-content: start; padding: 96px 22px 60svh; }
  .hero .scene__body { padding-bottom: 46svh; }
  .col, .cta .col, .reg .col { width: 100%; }
  .h1 { font-size: clamp(33px, 9.4vw, 46px); }
  .h2 { font-size: clamp(30px, 8.4vw, 42px); }
  .pill { min-height: 52px; padding-inline: 26px; font-size: 17px; }
  .acts .pill { flex: 1 1 auto; }
  .hero { display: flex; flex-direction: column; padding-bottom: 50svh; }
  .hero .scene__body { order: 1; min-height: 0; padding: 92px 22px 0; }
  .hero .scene__media { height: 62svh; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
  .net { order: 2; position: relative; inset: auto !important; width: auto; height: 300px; margin: 44px 14px 0; }
  .net__node { width: 48px; height: 48px; }
  .net__node span { font-size: 14px; top: -28px; }
  .net__node.low span { bottom: -30px; top: auto; }
  .net__say { margin-top: 22px; font-size: 15.5px; min-height: 5.4em; }
  .scrollcue { display: none; }
  .values { margin-top: 0; padding: 0 22px 60svh; width: auto; }
  .about .scene__body { padding-bottom: 34px; min-height: 0; }
  .about .scene__media { height: 58svh; }
  .journey__head { top: 86px; inset-inline: 22px; width: auto; }
  .journey__head .h2 { font-size: clamp(26px, 7.4vw, 36px); }
  .stage { top: 306px; inset-inline: 22px; width: auto; }
  .journey__count { margin-top: 4px; }
  .stage p { font-size: 16px; }
  .stage h3 { font-size: clamp(25px, 7vw, 34px); }
  .journey__dots { inset-inline-start: 14px; bottom: 14px; }
  .incl { columns: 1; }
  .eco__idx { display: none; }
  .eco .scene__body { padding-bottom: 44svh; }
  .eco .scene__media { height: 46svh; }
  .who { padding: 84px 22px; }
  .who__btn { gap: 12px; font-size: clamp(25px, 7.4vw, 36px); }
  .who__say p { padding-inline-start: 0; }
  .who__btn:hover, .who__item.open .who__btn { padding-inline-start: 8px; }
  .foot { padding: 44px 22px 30px; }
  .reg .scene__media { height: 40svh; opacity: .9; }
  .reg .scene__body { padding: 88px 22px 44svh; }
  .kinds { grid-template-columns: repeat(2, 1fr); gap: 2px 8px; }
  .kind .obj { max-width: 112px; }
  .fields { grid-template-columns: 1fr; }
  .seal { width: 58vw; left: 50% !important; right: auto !important; top: auto; bottom: 3svh; transform: translate(-50%, 0) rotate(-8deg) scale(.6); }
  .is-done .seal { transform: translate(-50%, 0) rotate(0) scale(1); }
  .review { grid-template-columns: 1fr; gap: 0; } .review dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .rv, .line > span { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.f, .seg label, .kind, .consent { scroll-margin-top: 130px; }

.phone select { background-position: right 14px top 54%, right 8px top 54% !important; padding-inline: 2px 26px; padding-left: 2px; padding-right: 26px; }


/* ════════ fix round 1 (independent review, 24/11) ════════ */
[hidden] { display: none !important; }
html { scroll-padding-top: 110px; }

/* photographs stay whole: the frame is pinned to the viewport while its scene scrolls, so a subject is never cut mid-body */
.scene { background: transparent; }
.scene > .scene__media { position: sticky; top: 0; inset: auto; height: 100svh; margin-bottom: -100svh; }
.scene > .scene__media::after { background: linear-gradient(to bottom, var(--paper) 0, transparent 14%, transparent 84%, var(--paper) 100%); }
.scene + .scene::before, .eco .scene::before, .who::before, .scene.cta::before, .scene.about::before, .scene.journey::before { content: ''; position: absolute; inset-inline: 0; top: -30svh; height: 30svh; background: linear-gradient(to bottom, transparent, var(--paper)); z-index: 1; pointer-events: none; transition: --paper var(--theme-t) var(--ease-io); }
.scene__media img { will-change: opacity; }

/* headings: no overlapping line boxes */
.line { padding-block: .1em; margin-block: 0; }
.h1, .h2 { line-height: 1.3; }
html[lang='en'] .h1, html[lang='en'] .h2 { line-height: 1.02; }
.h1 > .line + .line, .h2 > .line + .line { margin-top: -.02em; }

/* day / night switch reads as sun and crescent */
.orb { width: 24px; height: 24px; display: grid; place-items: center; }
.orb i, .orb b { display: none; }
.orb svg { width: 24px; height: 24px; overflow: visible; }
.orb .sun, .orb .moon { transition: opacity .6s var(--ease), transform .9s var(--ease); transform-origin: 12px 12px; }
html[data-theme='day'] .orb .moon { opacity: 0; transform: rotate(-70deg) scale(.5); }
html[data-theme='night'] .orb .sun { opacity: 0; transform: rotate(70deg) scale(.5); }

/* touch targets */
.brand { min-height: 44px; display: flex; align-items: center; }
.foot__nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 8px 6px; }
.thread button, .thread button:last-child { flex: 1 1 0; min-width: 44px; }
.thread { width: min(100%, 440px); }
.thread::before { inset-inline: 10px calc(25% - 10px); }
.thread::after { width: calc(75% * var(--p, 0)); }

/* journey: one stage leaves, then the next arrives, inside the column */
.stage { transition: opacity .2s var(--ease-io); }
.stage.on { transition: opacity .45s var(--ease) .24s; }
.stage h3, .stage p { transition: transform .7s var(--ease) .24s; }
.stage:not(.on) { --sx: 22px; --px: -14px; }
.stage:not(.on) h3, .stage:not(.on) p { transition: transform .2s var(--ease-io); }
html[dir='ltr'] .stage:not(.on) { --sx: -22px; --px: 14px; }
.stage { overflow: clip; overflow-clip-margin: 8px; }

/* interest objects: selection is a silk thread drawn under the object, nothing shows before it is chosen */
.kind .loop { top: auto; bottom: 34px; height: 18px; aspect-ratio: auto; width: min(78%, 104px); }
.kind .loop path { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .8s var(--ease), opacity .2s; }
.kind input:checked ~ .loop path { stroke-dashoffset: 0; opacity: .9; }
html[lang='en'] .kind .loop { bottom: 46px; }

/* registration: the form sits on an ivory veil, the photograph stays behind and beside it */
.reg .col, .m__wrap { position: relative; }
.reg .col::before, .m__wrap::before { content: ''; position: absolute; inset: -46px -54px; z-index: -1; border-radius: 60px; background: color-mix(in srgb, var(--paper) 90%, transparent); filter: blur(26px); pointer-events: none; transition: --paper var(--theme-t) var(--ease-io); }
.reg .col { width: min(44vw, 620px); }
.reg .scene__media img { object-position: left center; }
.formerr:empty { min-height: 0; margin: 0; }

/* who: the seven parties on one silk thread */
.who { position: relative; padding: 0; background: transparent; min-height: 100svh; }
.who > .scene__media { z-index: 0; }
.who__in { position: relative; z-index: 3; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 0 4vw; padding: 120px var(--gut) 170px; }
.who__body { grid-column: 2; }
html[dir='ltr'] .who__body { grid-column: 1; grid-row: 1; }
.who__net { position: relative; grid-column: 1; grid-row: 1; height: min(62svh, 560px); }
html[dir='ltr'] .who__net { grid-column: 2; }
.who__net canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.who__list { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.who__list button { min-height: 46px; padding: 4px 18px; border-radius: 999px; font-size: 17px; line-height: 1.6; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); transition: background-color .35s, color .35s, transform .4s var(--ease); }
html[lang='en'] .who__list button { font-size: 15.5px; }
.who__list button:hover { transform: translateY(-2px); }
.who__list button[aria-pressed='true'] { background: var(--pill); color: var(--pill-ink); }
.who__now { margin-top: 26px; min-height: 7.2em; }
.who__now h3 { font-size: clamp(26px, 2.9vw, 44px); font-weight: 700; line-height: 1.45; }
html[lang='en'] .who__now h3 { line-height: 1.15; letter-spacing: -.02em; }
.who__now p { margin-top: 8px; font-size: clamp(17px, 1.45vw, 21px); color: var(--ink-soft); max-width: 30em; }
.who__now.swap { animation: stepin .5s var(--ease) both; }

@media (max-width: 860px) {
  /* phone: a tall portrait photograph closes each scene; the hero opens on its photograph */
  .scene > .scene__media { position: absolute; top: auto; bottom: 0; inset-inline: 0; height: min(150vw, 74svh); margin: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%); }
  .scene > .scene__media::after { background: linear-gradient(to bottom, transparent 80%, var(--paper) 100%); }
  .scene__body { padding: 96px 22px min(150vw, 74svh); }
  .scene + .scene::before, .eco .scene::before, .who::before, .scene.cta::before, .scene.about::before, .scene.journey::before { display: none; }
  .hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero .scene__body { order: 1; }
  .hero .net { order: 2; }
  .hero > .scene__media { top: 0; bottom: auto; height: 100svh; -webkit-mask-image: none; mask-image: none; }
  .hero > .scene__media::after { background: linear-gradient(to bottom, transparent 82%, var(--paper) 100%); }
  .hero .scene__body { min-height: 100svh; padding: 92px 22px 46svh; align-content: start; }
  .hero .lead { font-size: 16px; line-height: 1.85; }
  .net { position: relative; inset: auto !important; width: auto; height: 320px; margin: 10px 14px 70px; }
  .about .scene__body { padding-bottom: 30px; min-height: 0; }
  .values { padding: 0 22px min(150vw, 74svh); margin-top: 0; width: auto; }
  .eco .scene__body, .cta .scene__body { padding-bottom: min(150vw, 74svh); }
  .journey .scene__media { position: absolute; inset: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
  .stage:not(.on) { --sx: 0px; --px: 0px; }
  .stage { top: 300px; }
  .who__in { grid-template-columns: 1fr; padding: 90px 22px min(150vw, 74svh); min-height: 0; }
  .who__body, html[dir='ltr'] .who__body { grid-column: 1; grid-row: 1; }
  .who__net, html[dir='ltr'] .who__net { grid-column: 1; grid-row: 2; height: 300px; margin-top: 14px; }
  .who__list button { font-size: 15.5px; padding-inline: 14px; }
  .reg > .scene__media { position: sticky; top: 0; bottom: auto; height: 100svh; margin-bottom: -100svh; -webkit-mask-image: none; mask-image: none; opacity: 1; }
  .reg .scene__media img { object-position: center bottom; }
  .reg .scene__body { padding: 88px 22px 46svh; }
  .reg .col { width: 100%; }
  .reg .col::before, .m__wrap::before { inset: -26px -18px; filter: blur(18px); background: color-mix(in srgb, var(--paper) 93%, transparent); }
  .top .more { font-size: 14px; gap: 0; padding-inline: 4px; white-space: nowrap; } .top .more::before { display: none; }
  .top { gap: 8px; } .tools { gap: 2px; } .brand { width: 128px; }
}
@media (max-width: 360px) { .brand { width: 112px; } .tool { min-width: 40px; padding: 0 6px; } }

/* who: reading column on the text side, the thread hangs on the wall above the photograph's subject */
.who__body { grid-column: 1; grid-row: 1; }
/* the grid follows the reading direction and the photograph is mirrored with it, so the words are in the FIRST column in both languages (English used to move to the second column, onto the mirrored photograph's subject) */
.who__net { grid-column: 2; grid-row: 1; align-self: start; height: min(46svh, 420px); margin-top: 2svh; }
/* the veil belongs to phones, where the form crosses the photograph; on wide screens the wall itself is the calm side */
@media (min-width: 861px) { .reg .col::before, .m__wrap::before { inset: -40px -60px; background: color-mix(in srgb, var(--paper) 78%, transparent); filter: blur(34px); } }
.net > .net__say { position: absolute; top: 100%; inset-inline: 8px; margin-top: 30px; padding: 0; border: 0; text-align: center; max-width: none; font-size: 15.5px; min-height: 0; }
@media (max-width: 860px) {
  .who__body, html[dir='ltr'] .who__body { grid-column: 1; grid-row: 1; }
  .who__net, html[dir='ltr'] .who__net { grid-column: 1; grid-row: 2; height: 280px; margin-top: 18px; }
  .hero .scene__body { padding-bottom: 40svh; }
  .net { margin-bottom: 120px; }
}

/* headings that are not wrapped in .line keep a full Arabic line box */
.step .h2, .done .h2 { line-height: 1.5; margin-top: 6px; }
html[lang='en'] .step .h2, html[lang='en'] .done .h2 { line-height: 1.2; }
.top.is-solid { background: color-mix(in srgb, var(--paper) 93%, transparent); }

/* the selection thread sits right under the object, never across its label */
.kind .loop { top: 112px; bottom: auto; }
html[lang='en'] .kind .loop { top: 112px; bottom: auto; }
@media (max-width: 860px) { .kind .loop, html[lang='en'] .kind .loop { top: 98px; } }

/* ════════ fix round 2 ════════ */
/* phones: every scene OPENS on its photograph (a block, subject whole), then the words sit on paper below it. No words over a photograph. */
@media (max-width: 860px) {
  .scene { overflow-x: clip; }
  .scene > .scene__media { position: relative; inset: auto; width: 100%; height: min(112vw, 58svh); margin: 0; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); }
  .scene > .scene__media::after { background: linear-gradient(to bottom, var(--paper) 0, transparent 14%); }
  .scene > .scene__media img, .reg .scene__media img { object-position: center 88%; }
  .scene__body { min-height: 0; padding: 4px 22px 72px; grid-template-columns: minmax(0, 1fr); }
  .scene__body > *, .col, .who__in > *, .done, .step { min-width: 0; max-width: 100%; }
  .pill { white-space: normal; text-align: center; max-width: 100%; }
  .hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero > .scene__media { order: 0; top: auto; height: min(118vw, 60svh); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); }
  .hero > .scene__media::after { background: none; }
  .hero .scene__body { order: 1; min-height: 0; padding: 0 22px 8px; }
  .hero .net { order: 2; margin: 26px 14px 130px; }
  .about .scene__body { padding-bottom: 26px; }
  .values { padding: 0 22px 72px; }
  .eco .scene__body, .cta .scene__body { padding-bottom: 72px; }
  .who__in { padding: 4px 22px 72px; }
  /* journey: title and stage words on paper in the upper part; photograph, silk ribbon and beads in the lower part (--jtop is measured from the words) */
  .journey .scene__media { position: absolute; inset: var(--jtop, 56%) 0 0 0; width: auto; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
  .journey .scene__media::after { background: none; }
  .journey .ribbon, .journey #beads { position: absolute; inset: var(--jtop, 56%) 0 0 0; width: 100%; height: auto; }
  .journey .ribbon { height: calc(100% - var(--jtop, 56%)); }
  .journey__head { top: 74px; }
  .stage { top: var(--jstage, 250px); }
  .stage p { line-height: 1.7; }
  /* registration: the step photograph is a header block; the form is on paper (no photograph behind fields) */
  .reg > .scene__media { position: relative; top: auto; height: min(78vw, 36svh); margin: 0; opacity: 1; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 66%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 66%, transparent 100%); }
  .reg .scene__body { padding: 0 22px 90px; }
  .reg .col::before, .m__wrap::before { display: none; }
  body[data-page='register'] .top, body[data-page='members'] .top { background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (max-width: 860px) and (max-height: 640px) {
  .journey__head .eyebrow { display: none; }
  .journey__head { top: 66px; }
  .journey__head .h2 { font-size: 23px; }
  .stage h3 { font-size: 22px; }
  .stage p { font-size: 15px; margin-top: 6px; }
}

/* small targets and details (round 2) */
.val { min-height: 44px; }
.files li button { min-height: 44px; }
@media (max-width: 360px) { .tool { min-width: 44px; padding: 0 4px; } .brand { width: 104px; } .top { gap: 4px; padding-inline: 12px; } }
.f label em, .f legend em { display: inline-block; }
.f input[dir='ltr'], .f input[type='email'], .f input[type='tel'], .f input[type='url'], .f input[inputmode='numeric'], .f input[inputmode='decimal'], .f input[inputmode='url'] { font-family: var(--font-en); }
@media (max-width: 860px) { .reg.is-done > .scene__media { display: none; } .reg.is-done .scene__body { padding-top: 96px; padding-bottom: calc(58vw + 9svh); } }

.tool.is-on .orb, .tool:active .orb { transform: scale(.84) rotate(-24deg); } .tool .orb { transition: transform .3s var(--ease); }
/* desktop registration: the form column ends before the photographed subject begins (fields and the country arrow stay on the wall) */
@media (min-width: 861px) { .reg .col { width: min(40vw, 560px); } }
.reg .h2[tabindex='-1']:focus, .done .h2:focus { outline: 0; }

/* ════════ fix round 3 ════════ */
/* skip link shows itself when it has focus */
.sr:focus, .sr:focus-visible { position: fixed; z-index: 200; inset-block-start: 10px; inset-inline-start: 10px; width: auto; height: auto; clip-path: none; overflow: visible; padding: 12px 20px; border-radius: 999px; background: var(--violet-deep); color: #fbf5ea; font-weight: 700; outline: 2px solid #fbf5ea; outline-offset: 2px; }
@media (max-width: 860px) {
  /* phone header on form pages: a solid colour in every engine (no translucent mix, no backdrop filter) */
  body[data-page='register'] .top, body[data-page='members'] .top { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* no dead bands between scenes */
  .scene__body { padding-bottom: 40px; }
  .about .scene__body { padding-bottom: 18px; }
  .values { padding-bottom: 40px; }
  .eco .scene__body, .cta .scene__body { padding-bottom: 44px; }
  .who__in { padding-bottom: 44px; }
  .hero .net { margin-bottom: 100px; }
  .scene > .scene__media::after { background: linear-gradient(to bottom, var(--paper) 0, transparent 8%); }
  /* hero: a taller frame and a closer subject */
  .hero > .scene__media { height: min(132vw, 66svh); }
  .hero > .scene__media img { object-position: center 100%; transform: scale(1.22); transform-origin: 50% 100%; }
  /* the three lines of the ecosystem are read along one silk thread: each point is a brass bead that lights as it passes the middle of the screen */
  .incl { position: relative; margin-top: 20px; columns: auto; column-count: auto; display: block; }
  .incl::before { content: ''; position: absolute; inset-block: 14px; inset-inline-start: 11px; width: 3px; border-radius: 3px; background: linear-gradient(to bottom, transparent, #b98cff 7%, var(--violet) 50%, #b98cff 93%, transparent); box-shadow: 0 0 14px rgba(131, 54, 244, .5); }
  .incl li, html[lang='en'] .incl li { display: flex; align-items: center; min-height: 54px; padding: 8px 0; padding-inline-start: 46px; font-size: 18px; font-weight: 600; line-height: 1.5; transition: color .5s var(--ease); }
  .incl li::before, html[lang='en'] .incl li::before { inset-inline-start: 3px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; background: radial-gradient(circle at 34% 28%, #fff3cf 0, var(--brass-hi) 14%, var(--brass) 46%, var(--brass-lo) 82%, #4a3210 100%); box-shadow: 0 5px 9px -3px rgba(40, 20, 0, .55); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
  .incl.beadline li { color: color-mix(in srgb, var(--ink) 48%, transparent); }
  .incl.beadline li.lit { color: var(--ink); }
  .incl.beadline li.lit::before { transform: scale(1.38); box-shadow: 0 6px 12px -3px rgba(40, 20, 0, .6), 0 0 0 7px rgba(131, 54, 244, .2), 0 0 24px 5px rgba(131, 54, 244, .45); }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .incl.beadline li { color: var(--ink); } }
@media (max-width: 860px) {
  /* scene photographs on phones: the subject is brought closer so the frame is not mostly empty wall or night sky */
  .about > .scene__media img, .eco .scene > .scene__media img, .who > .scene__media img, .cta > .scene__media img { transform: scale(1.18); transform-origin: 50% 82%; }
}
/* veils behind reading columns: a feathered sheet made with masks instead of a large blur filter (the filter re-rasterised a screen-sized layer on every silk frame) */
.reg .col::before, .m__wrap::before { filter: none; border-radius: 0; inset: -70px -90px; background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 110px, #000 calc(100% - 110px), transparent 100%), linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 110px, #000 calc(100% - 110px), transparent 100%), linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%); mask-composite: intersect; }
@media (min-width: 861px) { .reg .col::before, .m__wrap::before { filter: none; inset: -70px -90px; background: color-mix(in srgb, var(--paper) 80%, transparent); } }

/* ════════ fix round 4 (confined to the reviewers' items) ════════ */
/* a hidden header shows itself while something inside it has focus */
.top.is-hidden:focus-within { transform: none; }
/* Latin words and digits inside Arabic lines use the house Latin face */
.review dd, .gate .pill, .gate p { font-family: var(--font-en), var(--font-ar); }
/* text typed in the other script reads in its own direction; the resize grip is not part of the design */
.f input:not([dir]), .f textarea:not([dir]) { unicode-bidi: plaintext; }
.f textarea { resize: none; }
@media (max-width: 860px) {
  /* thread list: the unlit points stay readable (4.5:1 and above); the lit one is marked by weight of ink and the bead, not by dimming the rest */
  .incl.beadline li { color: color-mix(in srgb, var(--ink) 72%, transparent); }
}
/* ── journey: the heading, the counter and the stage words are ONE column in normal flow ──
   (the stage used to be absolutely placed at a fixed top, independent of the heading's height: in a short laptop window the stage title was drawn over the heading and the counter over the stage text) */
.journey .pin { display: grid; grid-template-columns: minmax(0, min(44vw, 600px)); justify-content: start; align-content: start; row-gap: clamp(8px, 2.2vh, 24px); padding: clamp(96px, 13.5vh, 112px) var(--gut) 60px; } /* never less than the fixed header (87px): the eyebrow line used to start under it at heights 561–710 */
.journey__head { position: static; inset: auto; width: auto; grid-column: 1; grid-row: 1; z-index: 3; }
.stage { position: static; inset: auto; top: auto; width: auto; grid-column: 1; grid-row: 2; z-index: 3; align-self: start; }
.journey__count { display: block; margin-top: clamp(2px, 1vh, 10px); }
/* type follows the window's height as well as its width, so the column fits a short window instead of overlapping */
.journey__head .h2 { font-size: clamp(24px, min(4.2vw, 7.6vh), 64px); }
.journey__head .eyebrow { margin-bottom: clamp(4px, 1.6vh, 18px); }
.stage h3 { font-size: clamp(21px, min(3.5vw, 5.8vh), 54px); }
.stage p { font-size: clamp(15px, min(1.35vw, 2.7vh), 21px); margin-top: clamp(4px, 1.2vh, 12px); }
.journey__dots { bottom: clamp(6px, 2.4vh, 30px); }
@media (max-height: 560px) { .journey__head .eyebrow { display: none; } }
@media (max-width: 860px) {
  .journey .pin { grid-template-columns: minmax(0, 1fr); padding: 74px 22px 0; row-gap: 8px; }
  .journey__head .h2 { font-size: clamp(23px, min(7.4vw, 5.2vh), 36px); }
  .stage h3 { font-size: clamp(21px, min(7vw, 4.6vh), 34px); }
  .stage p { font-size: clamp(15px, 2.4vh, 16px); }
}
/* a window too short to hold the column pinned (under 430px): the section is not pinned, and the five stages are simply read one after another */
@media (max-height: 430px) {
  .journey { height: auto; }
  .journey .pin { position: relative; height: auto; min-height: 100svh; overflow: visible; padding-bottom: 40px; }
  .stage, .stage:not(.on) { grid-row: auto; opacity: 1; pointer-events: auto; --sx: 0px; --px: 0px; }
  .journey__count, .journey__dots, .journey .ribbon, .journey #beads { display: none; }
  /* unpinned, the stages run down over the rock of the photograph: each one sits on its own sheet of paper so every line stays legible */
  .stage { margin-inline: -14px; padding: 10px 14px 12px; border-radius: 16px; background: color-mix(in srgb, var(--paper) 88%, transparent); }
}
/* who: the heading's line box keeps clear of the first row of parties at every width (it touched by 5px at 1680×1050) */
.who__body .h2 { margin-bottom: .32em; }
/* Round 4: the stage description stays on the sky of the photograph (its long first line used to end on the rock at laptop widths). */
@media (min-width: 861px) { .stage p { max-width: min(31vw, 460px); text-shadow: 0 0 3px var(--paper), 0 0 10px var(--paper), 0 0 18px var(--paper); } } /* the paper-coloured halo keeps the lines legible where they run over the hazy far rock */

/* ───────── round 5 (visual review r5): no words on a busy part of a photograph, in either language or theme ───────── */
:root { --violet-text: #6420c8; } html[data-theme='night'] { --violet-text: #cdb0ff; }
/* violet as a TEXT colour was 3.7–3.9:1 on paper; the deeper violet reads at over 6:1 */
.net__node[aria-pressed='true'] span, .pair h3, .files li button, .who__item.open .who__btn small { color: var(--violet-text); }
/* the stage description is full ink: it crosses the hazy far rock of the photograph */
.stage p { color: var(--ink); }
/* the membership list is one column until the window is wide enough for two to stay off the open book */
@media (min-width: 861px) and (max-width: 1239px) { .incl { columns: 1; } }
/* short laptop windows: the photograph's subject (the dallah) rises into the lower part of the network, so the network keeps to the wall above it */
@media (min-width: 861px) and (max-height: 800px) { .net { inset-block: 120px auto; height: min(40svh, 320px); width: 36%; } }
/* the chosen node's name is ink and bold: violet on its own violet glow read at 4:1 */
.net__node[aria-pressed='true'] span { color: var(--ink); font-weight: 700; }
/* violet links and fold handles were 3.95:1 on paper */
body .link, body .fold summary { color: var(--violet-text); }
/* registration, laptop widths: four choice cards did not fit the reading column and the fourth sat on the photograph; three fit */
@media (min-width: 861px) and (max-width: 1239px) { .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the stage counter follows the column: in Arabic it starts at the right, under the heading (it was drawn at the far left of the column) */
html[dir='rtl'] .journey__count { text-align: right; }

/* the seated names of the hero network (wide screens): placed by home.js from the real boxes, as an offset from the bead's centre */
.net--seated .net__node span, .net--seated .net__node.low span { top: calc(50% + var(--ly, 0px)); left: calc(50% + var(--lx, 0px)); bottom: auto; transform: translate(-50%, -50%); }
.net--seated .net__node[aria-pressed='true'] span { transform: translate(-50%, -50%) scale(1.06); }

/* round 7, smaller findings */
.f label em, .f legend em { opacity: 1; }                                  /* «اختياري» was ink-soft at 75%: 3.6:1 */
.review dd { overflow-wrap: break-word; }                                   /* an address breaks after @ or a dot (register.js), never inside «example.c/om» */
/* short laptop windows: the first screen holds the whole opening, buttons included (they were cut at 1000×500) */
@media (min-width: 861px) and (max-height: 640px) {
  .hero .scene__body { padding-block: 92px 44px; align-content: start; }
  .hero .h1 { font-size: clamp(30px, min(5vw, 9.2vh), 78px); } html[lang='en'] .hero .h1 { font-size: clamp(26px, min(4.2vw, 7vh), 70px); } html[lang='en'] .hero .lead { font-size: 15.5px; line-height: 1.5; }
  .hero .col > p { margin-top: 10px; } .hero .acts { margin-top: 14px; flex-wrap: nowrap; gap: 10px; } .hero .acts .pill { min-height: 44px; padding: 4px 20px; font-size: 15.5px; white-space: nowrap; }
}

/* ───────── round 8: the photographs are art-directed; nothing is laid over them ─────────
   The clean space for the words comes from the photograph's own empty wall or sky, as in the owner's references. Where a column and a subject met,
   the PHOTOGRAPH is re-framed for that window shape and language: which part of it shows (object-position), or how wide its own box is (--sc),
   so the whole subject stays in the frame and ends before the column begins. A narrower photograph ends on its plain wall, far from the subject; that one end dissolves over --fade so no edge is drawn. No sheet, veil or fog lies on any subject. */
@media (min-width: 861px) {
  /* --sc narrows the photograph's own box from its reading-side end only (its height stays the window's): the picture keeps its top, its bottom and its whole subject,
     and simply ends earlier on the plain wall. Only that one end dissolves. */
  .scene__media img { inset-inline: 0 auto; right: auto; left: 0; width: calc(var(--sc, 1) * 100%); }
  .scene__media { --cut: calc((1 - var(--sc, 1)) * 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0, transparent var(--cut), #000 calc(var(--cut) + var(--fade, 0%))); mask-image: linear-gradient(to left, transparent 0, transparent var(--cut), #000 calc(var(--cut) + var(--fade, 0%))); }
  /* registration: the column is narrower than on the home page and reaches the book's far page; the photograph's box is 84% of the frame. The old veil is gone. */
  .reg .col::before { display: none; }
  .reg > .scene__media { --sc: .84; --fade: 14%; }
}
/* short laptop windows: the photograph is much taller than the window, so its top is shown: the sky of the wadi fills the reading side and the far rock sits below the words */
@media (min-width: 861px) and (max-height: 800px) {
  .journey .scene__media img { object-position: left top; transform-origin: left top; }
  html[lang='en'] .scene__media[data-img='eco-stage'] img { object-position: left top; }
}
/* English between 861 and 1439px: its lines start at the column's outer edge and run toward the open book, so the photograph's box is 80% of the frame */
@media (min-width: 861px) and (max-width: 1439px) {
  html[lang='en'] .scene__media[data-img='eco-folio'] { --sc: .8; --fade: 14%; }
}
/* the closing scene: its column is the widest on the page (50vw) and its heading ran into the palm's shadow on the wall on wide screens (0.10–0.115 at every width measured, 1440×900 included); the column is 46vw like the others
   and the photograph's box is 76% of the frame, so door, palm and shadow all sit before the words begin */
@media (min-width: 861px) {
  .cta .col { width: min(46vw, 700px); }
  .cta > .scene__media { --sc: .76; --fade: 16%; }
}

/* ───────── round 9: privacy, terms and contact are linked from every page ───────── */
.foot__legal { display: flex; flex-wrap: wrap; gap: 2px 26px; font-size: 15px; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); transition: color .3s; }
.foot__legal a:hover, .foot__legal a:focus-visible { color: var(--ink); }
.foot--slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 26px; padding-block: 22px 26px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--hair); position: relative; z-index: 3; }
.legalline { position: relative; z-index: 3; margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--hair); }
.consent a { color: var(--violet-text, var(--violet-deep)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ───────── round 10: the first photograph on a slow first visit ─────────
   a 24px copy of the hero (under 300 bytes, inside this sheet) fills its place until the photograph itself has arrived */
.hero .scene__media { background: url(data:image/webp;base64,UklGRlYAAABXRUJQVlA4IEoAAACwAwCdASoYABAAPu1iqU2ppaOjMAgBMB2JYwCsACPzpfz67QtAAAD+ZGfOMjYTPE5jR2gEgxCBpHMS0w4ucoDPxZO8U+9Tp8AAAA==) left center / cover no-repeat; }
html[data-theme='night'] .hero .scene__media { background-image: url(data:image/webp;base64,UklGRkwAAABXRUJQVlA4IEAAAACwAwCdASoYABAAPu1iqU2ppaQiMAgBMB2JYwCdMoADTqvEfVDfgAD+8LqLEsM8k9wLmge5FoEZPWPf1PEjzQAA); }
@media (max-width: 860px) {
  .hero .scene__media { background-image: url(data:image/webp;base64,UklGRsoAAABXRUJQVlA4IL4AAABwBQCdASoYACQAPu1sp0+ppiMiKrgN+TAdiWUAwoAisWvs2VRd81fR6kjg8As3ZRTeZ01AAMrXEkKQ/cXgKypeP8kY2WD9jI7lDpaHhPAUBRKtIhB7XhqXdwtyqJ/4fEh/JM2VG1/BQHrgKExujc7owDnmffHiUnMqRKOzY3VkVaZT2rVcNrBYDZyA44ZwVsGX7I/JcINkOHdG2Mn4/nOkQy4GxURfrK0op0ZJvirRXJe+kh8OdZaH+ivGB8gA); background-position: center bottom; }
  html[data-theme='night'] .hero .scene__media { background-image: url(data:image/webp;base64,UklGRoQAAABXRUJQVlA4IHgAAADQBACdASoYACQAPtlco02oJSMiOrZoAQAbCWUAvOBdKIOLWQ7OFs4+r235TP7gAAD+8ql6tJpJuRGGtjY/ZHsTdnOej1QbZVVK+w4kvaTvjctFJREZ4OMvszVIbf5MsrxNF1jC/6AgIEBxSLwws52mQ9lYg62yAAA=); }
}
