/* Sohaib Emad · «دفتر صهيب» on the web (route C «اشطبها», approved 15 Nov 2026: «C, with the merge»).
   One stylesheet for every page; responsive from 320 px to 2560 px (the page frames itself on a desk beyond 2400 px)
   and polished 15 Nov 2026 («responsive in every device… add some live… without affecting performance»). The live CSP allows only this file's styles (no inline styles, no style attributes).
   Colours measured from the launch-month covers, slides, posters and guides (Website_Builder/Sohaib-Emad/…/intake):
   yellow #F6DA12 · ink #141414 · marker red #E5352B · grey #E4E6E8 · paper #F4F1EA. Red is a display colour only
   (3.4:1 on grey, 4.3:1 on ink): small red text uses --red-ink on light (≥ 4.9:1) and --red-light on ink (7:1).
   Fonts (SIL OFL, self-hosted, licences beside them): Markazi Text 700 = Arabic display (stands in for thmanyah, which
   is never served) · Abril Fatface = the big numerals and English display · Readex Pro (variable) = UI and body ·
   Noto Naskh Arabic = fallback. */

@font-face { font-family: "Markazi Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/markazi-text-700-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: "Markazi Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/markazi-text-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Abril Fatface"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/abril-fatface-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/readex-pro-arabic-wght.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/readex-pro-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/noto-naskh-arabic-arabic-wght-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ── 1 · tokens ─────────────────────────────────────────────────────────── */
/* Fluid from a 320 px phone to a 2560 px screen; the page itself stops at 2400 px and sits on a "desk" beyond that. */
:root {
  --ink: #141414; --ink-2: #1f1f1e; --yellow: #F6DA12; --tab: #EAD012; --red: #E5352B; --red-ink: #A31F18; --red-light: #FF7468;
  --paper: #F4F1EA; --grey: #E4E6E8; --desk: #CDD2D6; --muted: #55534D; --muted-dark: #B9B5AA; --rule: rgba(20, 20, 20, .2); --rule-dark: #3a3a38;
  --f-display: "Markazi Text", "Noto Naskh Arabic", Georgia, serif;
  --f-num: "Abril Fatface", "Markazi Text", Georgia, serif;
  --f-ui: "Readex Pro", "Noto Naskh Arabic", system-ui, sans-serif;
  --step--1: clamp(.9375rem, .86rem + .2vw, 1.125rem);   /* 15 → 18 px labels and notes */
  --step-0: clamp(1.0625rem, .95rem + .32vw, 1.375rem);  /* 17 → 22 body */
  --step-1: clamp(1.1875rem, 1.04rem + .5vw, 1.75rem);   /* 19 → 28 lede */
  --step-2: clamp(1.4rem, 1.15rem + 1vw, 2.75rem);       /* 22 → 44 h3 */
  --step-3: clamp(2rem, 1.35rem + 2.6vw, 5rem);          /* 32 → 80 h2 */
  --step-4: clamp(3rem, 1.55rem + 5.4vw, 9.5rem);        /* 48 → 152 h1 */
  --step-5: clamp(3.4rem, 1.4rem + 6vw, 10rem);          /* 54 → 160 the big numbers */
  --gutter: clamp(16px, 4vw, 112px); --page: 2400px;
  --dur-1: 120ms; --dur-2: 240ms; --dur-3: 480ms;
  --ease-out: cubic-bezier(.2, .7, 0, 1); --ease-inout: cubic-bezier(.7, 0, .2, 1);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 -.32'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --focus: var(--ink);
  color-scheme: light;
}
html[lang="en"] { --f-display: "Abril Fatface", Georgia, serif; }
html[lang="en"] .h1 { font-size: clamp(2.6rem, 1.3rem + 4vw, 7rem); }
html[lang="en"] .h2 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 4.2rem); }

/* ── 2 · base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--desk); }
body { margin: 0; font-family: var(--f-ui); font-size: var(--step-0); line-height: 1.7; color: var(--ink); background: var(--desk); }
html[lang="en"] body { line-height: 1.6; }
/* the page: full width up to 2400 px, then a framed sheet on the desk (never a strip stranded mid-screen) */
.page { max-width: var(--page); margin-inline: auto; background-color: var(--grey); position: relative; isolation: isolate; overflow-x: clip; min-height: 100svh; }
.page::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--noise); opacity: .16; }
@media (min-width: 2401px) { .page { box-shadow: 0 0 0 1px rgba(20, 20, 20, .08), 0 60px 140px -60px rgba(0, 0, 0, .45); } }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, fieldset, legend { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
bdi, .lat { unicode-bidi: isolate; }
.lat { direction: ltr; display: inline-block; }
.num { font-family: var(--f-num); font-weight: 400; unicode-bidi: isolate; direction: ltr; display: inline-block; line-height: 1; letter-spacing: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 50; padding: 10px 18px; background: var(--ink); color: var(--yellow); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-ink { --focus: var(--yellow); background: var(--ink); color: var(--paper); }
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.js .nojs-only { display: none; }
html:not(.js) .js-only { display: none; }

/* ── 3 · type helpers ───────────────────────────────────────────────────── */
.display { font-family: var(--f-display); font-weight: 700; line-height: 1.13; }
html[lang="en"] .display { font-weight: 400; line-height: 1.04; }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); line-height: 1.15; }
.h3 { font-size: var(--step-2); line-height: 1.3; }
.red, .on-ink .red { color: var(--red); }
.lede { font-size: var(--step-1); font-weight: 500; max-width: 32em; }
.note { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.on-ink .note { color: var(--muted-dark); }
.label { font-weight: 600; font-size: var(--step--1); line-height: 1.4; }
.label .sl { color: var(--red-ink); margin-inline: .35em; font-weight: 400; }
.label__f { white-space: nowrap; }                              /* «ملف 000» never splits from its number */
.on-ink .label .sl { color: var(--red-light); }
mark, .hl { background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 92%, transparent 92%); color: var(--ink);
  padding-inline: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h1 mark { white-space: nowrap; }
.handle { font-family: var(--f-ui); font-weight: 600; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.handle b { font-weight: inherit; color: var(--red-ink); }
.on-ink .handle b { color: var(--yellow); }
[lang="ar"] { font-family: var(--f-ui); }
.display [lang="ar"], .give__t [lang="ar"], .entry__habit [lang="ar"] { font-family: "Markazi Text", "Noto Naskh Arabic", serif; font-weight: 700; }

/* marker strike: a hand-drawn stroke over a word that stays readable (Marker Strike, MOTION #24) */
.strike, s.strike { position: relative; display: inline-block; text-decoration: none; }
.strike svg { position: absolute; inset-inline: -1%; top: 46%; width: 102%; height: .34em; overflow: visible; pointer-events: none; }
[dir="rtl"] .strike svg { transform: scaleX(-1); } /* the marker draws in reading order */
.strike path { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .strike[data-draw] path { stroke-dashoffset: 1; }
.js .strike[data-draw].on path { animation: drawin 480ms var(--ease-out) both; }
@keyframes drawin { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.strike--soft { color: var(--muted); }
.on-ink .strike--soft, .foot .myth s { color: var(--muted-dark); }

.arw { width: 1.4em; height: .7em; display: inline-block; vertical-align: middle; flex: none; }
[dir="rtl"] .arw { transform: scaleX(-1); }
.arw path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── 4 · controls ───────────────────────────────────────────────────────── */
/* hover: the button lifts and a red print block slides out behind it (transform + opacity only) */
.btn { --btn-bg: var(--ink); --btn-fg: var(--yellow); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .5em 1.3em; border: 0; cursor: pointer;
  background: transparent; color: var(--btn-fg); font-weight: 700; font-size: var(--step-1); line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform var(--dur-2) var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-bg); pointer-events: none; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--red); opacity: 0; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2); pointer-events: none; }
.btn:hover { transform: translate(2px, -2px); }
.btn:hover::after { opacity: 1; transform: translate(-7px, 7px); }
[dir="ltr"] .btn:hover { transform: translate(-2px, -2px); }
[dir="ltr"] .btn:hover::after { transform: translate(7px, 7px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn--sm { min-height: 46px; font-size: 1.05rem; padding: 0 1.1em; }
.on-ink .btn, .dm .btn { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.sheet .btn, .on-ink .sheet .btn, .give .btn { --btn-bg: var(--ink); --btn-fg: var(--yellow); }
.btn .i { width: 1.1em; height: 1.1em; }
.link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: .4em; }
.link .arw { transition: transform var(--dur-2) var(--ease-out); }
[dir="rtl"] .link:hover .arw { transform: scaleX(-1) translateX(5px); }
[dir="ltr"] .link:hover .arw { transform: translateX(5px); }
.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { display: none; }
[dir="rtl"] .i--dir { transform: scaleX(-1); }

.field { display: grid; gap: 6px; align-content: start; }
.field__l, .field > label, .who legend { font-weight: 600; font-size: var(--step--1); }
.field__opt { font-style: normal; font-weight: 400; color: var(--muted); }
.on-ink .field__opt { color: var(--muted-dark); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 10px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; color: var(--ink); }
.on-ink .field input, .on-ink .field select, .on-ink .field textarea { border-color: var(--paper); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input[type="email"] { direction: ltr; text-align: end; }
.field input::placeholder { color: #6b6860; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--red-ink); }
.on-ink .field input:hover, .on-ink .field select:hover, .on-ink .field textarea:hover { border-color: var(--yellow); }
[aria-invalid="true"] { border-color: var(--red-ink) !important; box-shadow: inset 0 0 0 1px var(--red-ink); }
.on-ink [aria-invalid="true"] { border-color: var(--red-light) !important; box-shadow: inset 0 0 0 1px var(--red-light); }
.field__e { color: var(--red-ink); font-weight: 600; font-size: var(--step--1); }
.on-ink .field__e { color: var(--red-light); }
.select { position: relative; display: block; }
.select select { appearance: none; padding-inline-end: 44px; }
.select .i { position: absolute; inset-inline-end: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; font-weight: 600; font-size: var(--step--1); }
.status[data-state="error"] { color: var(--red-ink); }
.on-ink .status[data-state="error"] { color: var(--red-light); }
.on-ink .status[data-state="ok"] { color: var(--yellow); }

/* ── 5 · header + footer ───────────────────────────────────────────────── */
.top { position: relative; z-index: 20; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 10px 26px; padding-block: 14px; flex-wrap: wrap; }
/* the sohaibuilding wordmark (approved 15 Nov 2026, Latin only): art at least 143 x 29 px, and its clear space (the b's
   bowl, 0.48 x the art height) kept by the padding and the header's gap */
.brand { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; text-decoration: none; }
.logo { display: block; height: clamp(30px, 1.2rem + 1vw, 44px); width: auto; }
.brand--foot .logo { height: clamp(30px, 1.4rem + .3vw, 36px); }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 1.8vw, 40px); align-items: center; }
.nav a { position: relative; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.nav a::after { content: ""; position: absolute; inset: 4px -12px; border: 2.5px solid var(--red); border-radius: 52% 48% 55% 45% / 58% 42% 58% 42%;
  transform: rotate(-4deg) scale(.6); opacity: 0; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2); pointer-events: none; }
.nav a[aria-current="page"]::after, .nav a:hover::after, .nav a:focus-visible::after { transform: rotate(-4deg) scale(1); opacity: 1; }
.nav .when { font-weight: 500; font-size: .875rem; color: var(--muted); }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; border: 2px solid currentColor; background: transparent; font-weight: 600; cursor: pointer; }
.top__cta { margin-inline-start: auto; }
.start-head .top__in { justify-content: space-between; }

.foot { padding-block: clamp(48px, 5vw, 96px) 34px; }
.foot .myth { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.25; margin-block-end: 54px; }
html[lang="en"] .foot .myth { font-weight: 400; line-height: 1.12; }
.foot .myth b { display: block; color: var(--yellow); font-weight: inherit; }
.foot__row { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; border-top: 1px solid var(--rule-dark); padding-top: 18px; font-size: var(--step--1); }
.foot__row a { min-height: 44px; display: inline-flex; align-items: center; }
.foot--slim { padding-block: 22px; }
.foot--slim .foot__row { border-top: 0; padding-top: 0; }

/* ── 6 · the dossier pieces ─────────────────────────────────────────────── */
.sheet { position: relative; background-color: var(--yellow); color: var(--ink); --focus: var(--ink);
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(140, 120, 0, .16) 39px 40px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 40px -18px rgba(0,0,0,.45); }
.rings { position: absolute; inset-block: 8%; inset-inline-start: -20px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.rings i { display: block; width: 46px; height: 17px; border-radius: 9px; background: linear-gradient(#f4f4f4, #9a9a9a 55%, #e3e3e3); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 2px solid var(--ink); }
.rows > div { padding: 8px 12px 10px; border-inline-start: 1px solid var(--ink); min-width: 0; }
.rows > div:first-child { border-inline-start: 0; }
.rows dt { font-size: .875rem; font-weight: 500; line-height: 1.3; }
.rows dd { font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.polaroid { background: var(--paper); padding: 10px 10px 0; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); position: relative; color: var(--ink); }
.polaroid img, .polaroid video { width: 100%; }
.polaroid figcaption { font-weight: 600; font-size: .9375rem; padding: 8px 2px 10px; line-height: 1.35; }
.tape { position: absolute; top: -12px; inset-inline-start: 50%; width: 92px; height: 26px; margin-inline-start: -46px; background: rgba(246, 218, 18, .78); transform: rotate(-4deg); pointer-events: none; z-index: 1; }

/* the guide card on the home: settles in, lifts on hover */
.give { background: var(--paper); padding: 22px 22px 18px; position: relative; display: grid; gap: 10px; color: var(--ink); --focus: var(--ink);
  transition: translate var(--dur-3) var(--ease-out); }
.give::before { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: 0 16px 34px -20px rgba(0,0,0,.5); pointer-events: none; }
.give::after { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: 0 34px 50px -26px rgba(0,0,0,.5); opacity: 0; transition: opacity var(--dur-3); pointer-events: none; }
.give:hover, .give:focus-within { translate: 0 -5px; }
.give:hover::after, .give:focus-within::after { opacity: 1; }
.give .tape { inset-inline-start: 22%; }
.give__t { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.2; }
html[lang="en"] .give__t { font-weight: 400; }
.give__meta { font-size: var(--step--1); font-weight: 500; }
.give .btn { justify-self: start; }

/* the guide gate: email + who + job or business, then the download */
.gate { display: grid; gap: 14px; }
.gate__lead { font-weight: 600; }
.who { display: grid; gap: 8px; }
.who__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.who__opts label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-weight: 600; }
.who__opts input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex: none; }
.who__opts label:has(input:checked) { background: var(--ink); color: var(--yellow); }
.who__opts label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.gate__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tick { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.tick input { width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.gate .btn { justify-self: start; }
.gate-ok { display: grid; gap: 10px; padding-top: 6px; }
.gate-ok__t { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.2; }
html[lang="en"] .gate-ok__t { font-weight: 400; }
.gate-ok .btn { justify-self: start; }
.gate-dialog { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
.gate-dialog::backdrop { background: rgba(20, 20, 20, .62); }
.gate-dialog__in { padding: 26px 28px 28px; padding-inline-start: 42px; display: grid; gap: 14px; }
.gate-dialog__x { position: absolute; inset-inline-end: 10px; top: 10px; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.gate-dialog[open] .gate-dialog__in { animation: rise 320ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* locked guides: number and title blurred, a lock mark; the visitor's ?g= guide and opened guides stay readable */
.blur { filter: blur(7px); user-select: none; }
.lockmark { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--muted-dark); }
.lockmark .i { width: 14px; height: 14px; }
.library--light .lockmark { color: var(--muted); }
.sheet .lockmark { color: var(--ink); }
.is-open .blur { filter: none; user-select: auto; }
.is-open .lockmark { display: none; }

/* ── 7 · home: hero (a grid: the portrait is the second column, cut by the page edge and the hero's floor) ───── */
.hero { position: relative; display: grid; gap: 22px clamp(24px, 3vw, 72px); padding-block: 8px clamp(32px, 3vw, 64px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: 1fr auto; min-height: min(calc(100svh - 74px), 1240px); }
.hero__copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; display: grid; gap: clamp(16px, 1.6vw, 32px); align-content: center; }
.hero__proof { grid-column: 1; grid-row: 2; position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 2.6vw, 56px); }
.hero__proof li { display: grid; }
.hero__proof .num { color: var(--red); font-size: clamp(2.3rem, 1.5rem + 2vw, 5rem); }
.hero__proof span:not(.num) { font-weight: 600; font-size: var(--step--1); }
.hero__face { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; min-height: 340px;
  margin-inline-end: calc(var(--gutter) * -1); margin-block-end: calc(clamp(32px, 3vw, 64px) * -1); }
.hero__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
[dir="ltr"] .hero__face img { object-position: right bottom; }
/* big standard-density screens: the column is wider than the photo, so the photo fills it, cut by the hero's foot. Not on
   HiDPI: the 1000 px source would be upscaled past 1.5x there, so those keep the whole photo, sharp. */
@media (min-width: 1800px) and (max-resolution: 1.5dppx) { .hero__face img, [dir="ltr"] .hero__face img { object-fit: cover; object-position: 50% 0; } }
.hero .give { grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: end; z-index: 3; width: min(100%, 30rem); margin-block-end: 16px; }
.hero .give:not(:hover):not(:focus-within) { transform: rotate(-1.2deg); }
[dir="ltr"] .hero .give:not(:hover):not(:focus-within) { transform: rotate(1.2deg); }

/* ── 8 · «من الحساب»: the ledger ────────────────────────────────────────── */
.sec { padding-block: clamp(56px, 6vw, 120px) 20px; }
.sec__head { display: grid; gap: 8px; margin-block-end: 28px; max-width: 46em; }
.ledger { border-top: 3px solid var(--ink); }
.entry { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr) minmax(0, 1.15fr); grid-template-areas: "habit fig what"; gap: 16px clamp(24px, 3vw, 64px); align-items: center; padding-block: clamp(22px, 2.2vw, 40px); border-bottom: 1px solid var(--rule); }
.entry__habit { grid-area: habit; font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.35; }
html[lang="en"] .entry__habit { font-weight: 400; line-height: 1.2; }
.entry__habit b { display: block; font-weight: inherit; }
.entry__fig { grid-area: fig; container-type: inline-size; color: var(--red); }
.entry__n { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .2em; line-height: 1; font-size: clamp(3rem, 1.4rem + 3.6vw, 6.4rem); }
@supports (font-size: 1cqi) { .entry__n { font-size: clamp(2.4rem, 20cqi, 7rem); } }
.entry__n .arw { width: .5em; height: .28em; color: var(--ink); }
.entry__what { grid-area: what; }
.entry__what p { max-width: 32em; }
.entry__what .note { margin-top: 6px; }
.js .entry:not(.on) .after { clip-path: inset(0 0 0 100%); }
[dir="ltr"].js .entry:not(.on) .after, html[dir="ltr"].js .entry:not(.on) .after { clip-path: inset(0 100% 0 0); }
.entry.on .after { transition: clip-path 420ms var(--ease-out) 380ms; clip-path: inset(0 0 0 0); }

/* ── 9 · builds (reels play on tap, one at a time; no third party) ──────── */
.builds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px clamp(16px, 2vw, 40px); align-items: start; padding-top: 14px; }
.builds .polaroid { rotate: -2deg; transition: rotate var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out); }
.builds .polaroid:nth-child(even) { rotate: 1.8deg; margin-top: 26px; }
.builds .polaroid:hover, .builds .polaroid:focus-within { rotate: 0deg; translate: 0 -6px; }
.builds .polaroid--wide { grid-column: span 2; }

/* ── 10 · the method ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 64px); border-top: 3px solid var(--ink); }
.step { padding-block: 24px 28px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.step .num { color: var(--red); font-size: clamp(2.6rem, 1.8rem + 2vw, 5rem); }
.js .step:not(.on) .num { clip-path: inset(0 0 0 100%); }
html[dir="ltr"].js .step:not(.on) .num { clip-path: inset(0 100% 0 0); }
.step.on .num { clip-path: inset(0 0 0 0); transition: clip-path 420ms var(--ease-out) calc(var(--i, 0) * 70ms); }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.25; }
html[lang="en"] .step h3 { font-weight: 400; }

/* ── 11 · the guides library (home, /ar/guides/, /ar/start/) ──────────── */
.library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 64px); border-top: 1px solid var(--rule-dark); }
.card { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; padding-block: 22px 24px; border-bottom: 1px solid var(--rule-dark); align-content: start; position: relative; }
.card .num { grid-row: span 3; color: var(--red); font-size: clamp(2.6rem, 1.8rem + 2.2vw, 5rem); min-width: 1.6em; text-align: center; transition: translate var(--dur-2) var(--ease-out); }
.card:hover .num { translate: -6px 0; }
.card__l { font-size: .9375rem; color: var(--muted-dark); font-weight: 500; }
.card h3 { font-family: "Markazi Text", "Noto Naskh Arabic", serif; font-weight: 700; font-size: var(--step-2); line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a, .card h3 a:focus-visible { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.on-ink .card h3 a { color: var(--paper); }
.library--light { border-top-color: var(--rule); }
.library--light .card { border-color: var(--rule); }
.library--light .card__l { color: var(--muted); }

/* the keyword box (Caret Match + Highlighter Sweep, MOTION #25) */
.word { display: grid; gap: 8px; }
.word label { font-weight: 600; font-size: var(--step--1); color: var(--yellow); }
.word__field { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.word input { flex: 1 1 240px; width: 100%; min-width: 0; background: transparent; border: 0; border-bottom: 5px solid var(--yellow); border-radius: 0; color: var(--paper);
  caret-color: var(--red); font-family: "Markazi Text", "Noto Naskh Arabic", serif; font-weight: 700; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 5.6rem); line-height: 1.3; padding: 0 2px 4px; }
.word input::placeholder { color: #8f8b82; }
.word input:focus-visible { border-bottom-color: var(--red); }
.word .btn { margin-bottom: 8px; }
.word__status { min-height: 1.7em; font-size: var(--step--1); color: var(--muted-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 6px 14px; text-decoration: none; position: relative; isolation: isolate; border: 1.5px solid #4a4843; font-weight: 600; }
.chips a::before { content: ""; position: absolute; inset: 0; background: var(--yellow); z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 280ms var(--ease-out); }
.chips a[aria-current="true"] { color: var(--ink); border-color: var(--yellow); }
.chips a[aria-current="true"]::before { transform: scaleX(1); }
.chips a:hover { border-color: var(--yellow); }
.chips .d { font-family: var(--f-num); font-size: .9rem; color: var(--red-light); }
.chips a[aria-current="true"] .d { color: var(--red-ink); }
.chips__next { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1.5px dashed #6d6a63; color: var(--muted-dark); font-weight: 500; }

/* ── 12 · the file page (A's binder sheet: /ar/start/ and every guide) ──── */
.file { padding-block: 0 clamp(26px, 2.4vw, 44px); padding-inline: clamp(36px, 4vw, 64px) clamp(18px, 3vw, 48px); display: grid; gap: 14px; }
.file .rows { margin-top: 24px; }
.file > .guide { display: grid; gap: 14px; }
.file__big { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.file__big .num { color: var(--red); font-size: clamp(4rem, 2.4rem + 5vw, 9rem); }
.file__big b { font-weight: 700; font-size: var(--step-1); }
.file__t { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.12; }
.file__sub { font-weight: 600; font-size: var(--step-1); }
.file .gate { border-top: 2px solid var(--ink); padding-top: 18px; margin-top: 6px; }

/* ── 13 · pages ─────────────────────────────────────────────────────────── */
.page-head { padding-block: 34px 26px; display: grid; gap: 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--step--1); font-weight: 500; }
.crumbs li + li::before { content: "/"; color: var(--red-ink); margin-inline: .5em; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.guide-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px clamp(32px, 4vw, 96px); align-items: start; padding-bottom: 40px; }
.guide-page__cover { position: sticky; top: 24px; rotate: 2.5deg; max-width: clamp(260px, 22vw, 420px); justify-self: center; animation: settle 700ms var(--ease-out) 200ms both; }
.inside { margin-top: 18px; display: grid; gap: 10px; position: relative; }
.chapters { border-top: 2px solid var(--ink); }
.chapters li { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.chapters .num { color: var(--red-ink); font-size: 1.35rem; }
.inside__lock { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-block: 26px 0; border-top: 1px solid var(--rule); margin-top: 30px; }
.start-col { max-width: clamp(320px, 100%, 1040px); }
.start-top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding-block: 10px 6px; }
.start-top__face { width: clamp(72px, 7vw, 120px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--grey); }
.start-top__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.start-top__nm { font-size: var(--step-3); line-height: 1.1; }
.start-top__role { font-weight: 500; }
.start-page .file { margin-block: 18px 40px; }
.start-word { padding-block: clamp(44px, 4vw, 84px); }
.start-word .h2 { margin-bottom: 8px; }
.start-word .word { margin-block: 22px 26px; }
.month .note { margin-bottom: 10px; }
.golinks { display: grid; border-top: 1px solid var(--rule); margin-top: 30px; }
.golinks a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.golinks small { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.sec--sprint { padding-block: clamp(56px, 5vw, 110px); }
.sprint-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px clamp(32px, 4vw, 96px); align-items: center; }
.sprint-band .h2 { margin-block: 8px 12px; }
.dm { display: grid; gap: 12px; background: var(--ink); color: var(--paper); padding: clamp(22px, 2vw, 40px); --focus: var(--yellow); }
.dm .btn { justify-self: start; }
.dm .link { color: var(--paper); }
.sprint-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(32px, 4vw, 96px); align-items: center; padding-block: 30px 60px; }
.sprint-hero__copy { display: grid; gap: 16px; }
.sprint-hero .file__big .num { font-size: clamp(6rem, 3rem + 9vw, 14rem); }
.sprint-more { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px clamp(32px, 4vw, 96px); align-items: start; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { border: 2px solid var(--ink); padding: 6px 14px; font-weight: 600; }
.contact { padding-block: clamp(64px, 6vw, 120px) clamp(56px, 5vw, 100px); }
.contact__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px clamp(32px, 5vw, 120px); align-items: start; }
.contact__head { display: grid; gap: 12px; }
.form { display: grid; gap: 16px; max-width: 980px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.lib-word { margin-top: 18px; }
.legal { max-width: 52em; padding-block: 30px 60px; display: grid; gap: 22px; }
.legal h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.3; }
html[lang="en"] .legal h2 { font-weight: 400; }
.nf { min-height: 70svh; display: grid; align-content: center; gap: 22px; padding-block: 60px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* ── 14 · width ranges ──────────────────────────────────────────────────── */
@media (max-width: 1199px) {                                     /* tablets, small laptops: the nav folds */
  .js .top .nav { display: none; flex-basis: 100%; order: 4; }
  .js .top.is-open .nav { display: block; }
  .js .top.is-open .nav ul { flex-direction: column; align-items: flex-start; padding-block: 6px 12px; border-top: 1px solid var(--rule); }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .top__cta { display: none; }
  .entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "habit fig" "what what"; }
  .builds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .builds .polaroid--wide { grid-column: 1 / -1; max-width: 640px; }
}
@media (max-width: 999px) {
  .steps, .library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-page, .sprint-hero, .sprint-more, .contact__in { grid-template-columns: minmax(0, 1fr); }
  .guide-page__cover { position: relative; top: auto; max-width: 240px; }
}
@media (max-width: 899px) {                                      /* one column: the portrait moves to the corner */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; padding-top: 0; gap: 18px; }
  .hero__copy, .hero__proof, .hero .give { grid-column: 1; grid-row: auto; }
  .hero .give { justify-self: start; width: min(100%, 34rem); margin: 0; }
  .hero .give:not(:hover):not(:focus-within), [dir="ltr"] .hero .give:not(:hover):not(:focus-within) { transform: none; }
  .hero__face { grid-column: 1; grid-row: auto; order: -1; min-height: 0; width: clamp(150px, 42vw, 340px); height: clamp(168px, 38vw, 330px);
    margin-inline-start: auto; margin-inline-end: calc(var(--gutter) * -1); margin-block-end: calc(clamp(56px, 12vw, 120px) * -1); overflow: hidden; }
  .hero__face img, [dir="ltr"] .hero__face img { object-fit: cover; object-position: 50% 6%; }
  .hero .label { max-width: 52%; }
  .sprint-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .lede { font-size: var(--step-0); }
  .lede .more { display: none; }
  .hero__proof { gap: 6px 24px; }
  .entry { grid-template-columns: minmax(0, 1fr); grid-template-areas: "habit" "fig" "what"; gap: 10px; }
  .file { padding-inline: 28px 18px; }
  .rows { grid-template-columns: 1fr 1fr; }
  .rows > div:nth-child(3) { border-inline-start: 0; }
  .rows > div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .rings { inset-inline-start: -14px; } .rings i { width: 30px; height: 12px; }
  .give .btn, .file .btn, .dm .btn, .gate .btn, .gate-ok .btn { justify-self: stretch; }
  .hero .give { justify-self: stretch; width: auto; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .gate-dialog__in { padding: 22px 18px 22px; padding-inline-start: 30px; }
}
@media (max-width: 599px) {
  .steps, .library { grid-template-columns: minmax(0, 1fr); }
  .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .builds .polaroid--wide { grid-column: 1 / -1; }
}
@media (max-height: 500px) and (orientation: landscape) {     /* phones on their side: no full-height hero, a shorter headline */
  .hero { min-height: 0; }
  .hero .h1 { font-size: clamp(2.2rem, 8vh + 1.2rem, 4rem); }
  .hero .lede .more { display: none; }
}
/* …and on a phone on its side the portrait stands beside the words (as on desktop), so the headline is in the first view */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr) clamp(150px, 30vw, 260px); }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__proof { grid-column: 1; grid-row: 2; }
  .hero .give { grid-column: 1 / -1; grid-row: 3; }
  .hero__face { grid-column: 2; grid-row: 1 / span 2; width: auto; height: auto; min-height: 240px; align-self: stretch;
    margin-inline-start: 0; margin-block-end: 0; overflow: visible; }
  .hero__face img { object-fit: contain; object-position: left bottom; }
  [dir="ltr"] .hero__face img { object-fit: contain; object-position: right bottom; }
}

/* ── 15 · motion (transform, opacity, clip-path, stroke only; every one has a still version) ──────────────────── */
/* the highlighter sweeps behind «الماكينة» after the marker crosses «إعلانات»; the headline itself is there at first paint */
.hero h1 mark { background: none; position: relative; z-index: 0; }
.hero h1 mark::before { content: ""; position: absolute; inset: 12% -.14em 8%; z-index: -1; background: var(--yellow); transform-origin: right center; animation: sweep 560ms var(--ease-out) 720ms both; }
[dir="ltr"] .hero h1 mark::before { transform-origin: left center; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* the taped guide card settles onto the portrait */
.hero .give { animation: settle 700ms var(--ease-out) 420ms both; }
@keyframes settle { from { opacity: 0; transform: translateY(22px) rotate(-4deg); } }
/* light parallax: the portrait lags a little as the hero scrolls away (scroll-driven, no JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .hero__face img { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes drift { to { transform: translateY(9%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .strike[data-draw] path { stroke-dashoffset: 0; }
  .js .entry:not(.on) .after, .js .step:not(.on) .num { clip-path: none; }
}
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
