/* Basqah website — visual language taken from the app (basqah-web/src/index.css):
   light ground, white cards with soft shadows, brand greens, status colours, iOS easing. */

@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-display: swap; src: url("fonts/thmanyahsans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500; font-display: swap; src: url("fonts/thmanyahsans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 700; font-display: swap; src: url("fonts/thmanyahsans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 500; font-display: swap; src: url("fonts/thmanyahserifdisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 700; font-display: swap; src: url("fonts/thmanyahserifdisplay-Bold.woff2") format("woff2"); }

:root {
  /* app tokens */
  --brand-50: #eef5ef; --brand-100: #dcebdf; --brand-200: #bcd8c3; --brand-500: #3c7c4d;
  --brand-600: #36633e; --brand-700: #2a4f31; --brand-900: #0f2e1a; --deep: #183A2B;
  --ground: #f3f4f0; --surface: #fff; --ink: #172019; --ink-2: #4b554d; --ink-3: #667067; --line: #dde1da;
  --healthy: #3c7c4d; --healthy-tint: #e3efe5; --healthy-ink: #24643a;
  --watch: #d99114; --watch-tint: #fbefd6; --watch-ink: #7f4f00;
  --urgent: #d94c45; --sand: #EFE6D2;
  --r-card: 18px; --r-sheet: 28px; --r-btn: 24px;
  --shadow-card: 0 5px 15px rgb(23 32 25 / .08);
  --shadow-float: 0 12px 32px rgb(23 32 25 / .16);
  --ease: cubic-bezier(.32, .72, 0, 1);
  /* type */
  --sans: "Thmanyah Sans", "SF Arabic", "Geeza Pro", system-ui, sans-serif;
  --serif: "Thmanyah Serif Display", "Thmanyah Sans", serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
svg text { font-family: var(--sans); }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-200); color: var(--brand-900); }

html[lang="ar"] [lang="en"], html[lang="en"] [lang="ar"] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------------- buttons (app: radius 24, bold, 15–16px) ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-btn); font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: var(--brand-900); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.btn-light:hover { background: var(--brand-50); }
.btn-glass { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgb(255 255 255 / .18); }
.btn-dark { background: var(--brand-600); color: #fff; }
.btn-dark:hover { background: var(--brand-700); }
.btn-nav { min-height: 40px; padding: 0 18px; font-size: 14px; background: #fff; color: var(--brand-900); }

/* ---------------- nav ---------------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 50; transition: background-color .35s var(--ease), box-shadow .35s; }
.nav-in { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { position: relative; display: block; height: 30px; }
.brand img { height: 30px; width: auto; transition: opacity .3s; }
.brand .logo-g { position: absolute; inset: 0; opacity: 0; }
.links { display: flex; gap: 32px; }
.links a { font-size: 15px; font-weight: 500; text-decoration: none; color: rgb(255 255 255 / .82); transition: color .2s; }
.links a:hover { color: #fff; }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { width: 40px; height: 40px; border-radius: 50%; font-weight: 700; font-size: 14px; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); transition: background-color .2s; }
.lang:hover { background: rgb(255 255 255 / .12); }
.nav.solid { background: rgb(243 244 240 / .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav.solid .logo-w { opacity: 0; } .nav.solid .logo-g { opacity: 1; }
.nav.solid .links a { color: var(--ink-2); } .nav.solid .links a:hover { color: var(--ink); }
.nav.solid .lang { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav.solid .btn-nav { background: var(--brand-600); color: #fff; }

/* ---------------- hero (the app's welcome orchard) ---------------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; overflow: hidden; background: var(--brand-900); color: #fff; }
#orchard { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(13 36 22 / .78) 0%, rgb(13 36 22 / 0) 26%),
    linear-gradient(0deg, var(--ground) 0%, rgb(243 244 240 / 0) 16%),
    linear-gradient(var(--shade-dir, 270deg), rgb(13 36 22 / .9) 0%, rgb(13 36 22 / .55) 42%, rgb(13 36 22 / 0) 72%); }
html[dir="ltr"] .hero-shade { --shade-dir: 90deg; }
.hero-in { position: relative; padding-block: 140px 160px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; color: var(--brand-200); }

.hero h1 { font-family: var(--serif); font-size: clamp(52px, 7.6vw, 104px); line-height: 1.32; margin-top: 20px; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
html[lang="en"] .hero h1 { line-height: 1.02; letter-spacing: -.015em; }
.hero-lead { max-width: 30em; margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; font-weight: 500; color: rgb(255 255 255 / .84); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.scroll-cue { position: absolute; bottom: 92px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgb(23 32 25 / .3); }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------------- section scaffolding ---------------- */
section { padding-block: clamp(96px, 11vw, 148px); }
.sec-head { max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; color: var(--brand-600); margin-bottom: 14px; }
.kicker.light { color: var(--brand-200); }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.32; color: var(--ink); }
html[lang="en"] h2 { line-height: 1.14; letter-spacing: -.015em; }
.sub { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; color: var(--ink-2); }
.sub.light { color: rgb(255 255 255 / .78); }
h3 { font-size: 20px; line-height: 1.4; }

/* ================= PROBLEM: the scan reveals what the eye can't see ================= */
.problem { padding-top: clamp(40px, 5vw, 72px); }
.problem-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
h2.big { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.5; }
html[lang="en"] h2.big { line-height: 1.08; }
.hl-red { color: var(--urgent); }
html[dir="rtl"] .xray { position: relative; }
.reveal-art { position: relative; width: 100%; max-width: 440px; margin-inline: auto; height: auto; }
@keyframes blink { 50% { opacity: .35; } }

/* ================= IDEA: palm ⇄ digital twin ================= */
.idea { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.idea::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 30%; margin-left: -450px; background: radial-gradient(closest-side, rgb(60 124 77 / .5), transparent); }
.idea .wrap { position: relative; }
h2.display { font-family: var(--serif); color: #fff; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.45; }
html[lang="en"] h2.display { line-height: 1.05; letter-spacing: -.015em; }
.twin-stage { position: relative; max-width: 760px; margin: 56px auto 0; }
.twin-art { width: 100%; height: auto; overflow: visible; }
.twin-art .flow { animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.twin-art .node { animation: node 3s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes node { 0%, 100% { fill: #183A2B; } 50% { fill: #BCD8C3; } }
.tag { position: absolute; bottom: -6px; font-size: 14px; font-weight: 700; color: var(--brand-200); transform: translateX(-50%); white-space: nowrap; }
.tag-real { left: 25%; } .tag-twin { left: 75%; }

/* ================= HOW: scroll story — the stage follows the active step ================= */
.how { background: var(--surface); }
.how-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps { list-style: none; margin-top: 40px; }
.step { display: flex; gap: 22px; min-height: clamp(240px, 44vh, 460px); padding: 28px 0; border-top: 1px solid var(--line); opacity: .32; transition: opacity .5s var(--ease); }
.step:last-child { min-height: clamp(240px, 44vh, 460px); }
.steps { padding-bottom: 18vh; }
.step.active { opacity: 1; }
.step-n { flex: none; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--brand-500); width: 48px; }
.step h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.35; }
.step p { margin-top: 8px; font-size: 18px; color: var(--ink-2); }
.how-stage { position: sticky; top: 104px; }
.stage { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: #12321f; box-shadow: var(--shadow-float); isolation: isolate; }
.st-field { position: absolute; inset: -6%; background: #143823 url("assets/crown.svg"); background-size: 72px 72px; transition: transform 1.2s var(--ease), filter .8s; }
.st-field::after { content: ""; position: absolute; inset: 0; background: url("assets/crown.svg") 36px 36px / 72px 72px; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(13 36 22 / .55), transparent 30%, transparent 70%, rgb(13 36 22 / .6)); }
/* step 1: scan */
.st-scan { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.st-line { position: absolute; top: 0; bottom: 0; width: 120px; inset-inline-start: -120px; border-inline-end: 2px solid #EEF5EF; background: linear-gradient(90deg, rgb(188 216 195 / 0), rgb(188 216 195 / .32)); animation: stSweep 3.6s var(--ease) infinite; }
html[dir="rtl"] .st-line { background: linear-gradient(270deg, rgb(188 216 195 / 0), rgb(188 216 195 / .32)); }
@keyframes stSweep { 0% { inset-inline-start: -120px; } 85%, 100% { inset-inline-start: 100%; } }
.st-drone { position: absolute; top: 46%; width: 54px; height: 54px; margin-top: -27px; inset-inline-start: -27px; animation: stFly 3.6s var(--ease) infinite; }
@keyframes stFly { 0% { inset-inline-start: calc(-27px + 0px); top: 46%; } 50% { top: 40%; } 85%, 100% { inset-inline-start: calc(100% + 93px); top: 46%; } }
.st-drone::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 16% 16%, rgb(238 245 239 / .55) 0 8px, transparent 9px), radial-gradient(circle at 84% 16%, rgb(238 245 239 / .55) 0 8px, transparent 9px),
  radial-gradient(circle at 16% 84%, rgb(238 245 239 / .55) 0 8px, transparent 9px), radial-gradient(circle at 84% 84%, rgb(238 245 239 / .55) 0 8px, transparent 9px); }
.st-drone::after { content: ""; position: absolute; inset: 8px; background: linear-gradient(45deg, transparent 46%, #163a21 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #163a21 46% 54%, transparent 54%); }
.st-drone i { position: absolute; inset: 18px; z-index: 1; border-radius: 6px; background: #36633e; box-shadow: 0 0 0 2px #fff, 0 10px 18px rgb(0 0 0 / .4); }
/* step 2: focus on one palm */
.st-focus { position: absolute; left: 50%; top: 48%; width: 0; height: 0; opacity: 0; transition: opacity .5s; }
.st-lens { position: absolute; width: 150px; height: 150px; margin: -75px; border-radius: 50%; border: 3px solid #EEF5EF; background: #143823 url("assets/crown.svg") center / 128px 128px no-repeat; box-shadow: 0 0 0 9999px rgb(10 26 17 / .55), 0 20px 40px rgb(0 0 0 / .45); transform: scale(.6); transition: transform .9s var(--ease); }
.st-ring { position: absolute; width: 150px; height: 150px; margin: -75px; border-radius: 50%; border: 2.5px solid var(--watch); opacity: 0; }
.stage[data-step="2"] .st-ring { animation: stRing 2.4s ease-out infinite; } .stage[data-step="2"] .st-ring.two { animation-delay: 1.2s; }
@keyframes stRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
/* step 3: the phone gets the alert */
.st-phone { position: absolute; inset: 0; z-index: 2; transform: translateY(100%); transition: transform 1s var(--ease); }
.st-screen { position: relative; height: 100%; overflow: hidden; background: linear-gradient(180deg, rgb(15 46 26 / .25), rgb(15 46 26 / .88)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.st-time { display: block; margin-top: 14%; text-align: center; font-family: -apple-system, "SF Pro Display", "SF Pro", "Helvetica Neue", system-ui, sans-serif; font-size: clamp(52px, 6vw, 84px); font-weight: 600; letter-spacing: -.01em; line-height: 1; color: rgb(255 255 255 / .95); }
.st-notif { position: absolute; inset-inline: 7%; top: 36%; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 18px; background: rgb(255 255 255 / .95); box-shadow: 0 12px 28px rgb(0 0 0 / .28); opacity: 0; transform: translateY(-18px) scale(.95); transition: opacity .6s var(--ease) .55s, transform .8s var(--ease) .55s; }
.app-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #dde1da; }
.app-ic img { width: 22px; height: 22px; }
.n-body { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; }
.n-body b { font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.n-body small { font-size: 12px; color: var(--ink-3); justify-self: end; }
.n-text { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
/* chrome */
.st-chip { position: absolute; top: 20px; inset-inline-start: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 13.5px; font-weight: 700; }
.st-chip i { width: 8px; height: 8px; border-radius: 50%; background: #7DDC8F; animation: blink 1.4s infinite; }
.st-chip .c2, .st-chip .c3 { display: none; }
.st-dots { position: absolute; bottom: 20px; inset-inline-start: 20px; z-index: 3; display: flex; gap: 6px; }
.st-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); transition: background-color .4s, width .4s var(--ease); }
/* state */
.stage[data-step="1"] .st-scan { opacity: 1; }
.stage[data-step="2"] .st-focus, .stage[data-step="3"] .st-focus { opacity: 1; }
.stage[data-step="2"] .st-lens { transform: scale(1); }
.stage[data-step="2"] .st-field { transform: scale(1.08); }
.stage[data-step="3"] .st-field { transform: scale(1.12); filter: brightness(.6); }
.stage[data-step="3"] .st-focus { opacity: 0; }
.stage[data-step="3"] .st-phone { transform: none; }
.stage[data-step="3"] .st-notif { opacity: 1; transform: none; }
.stage[data-step="2"] .st-chip .c1, .stage[data-step="3"] .st-chip .c1 { display: none; }
.stage[data-step="2"] .st-chip .c2 { display: inline; }
.stage[data-step="3"] .st-chip .c3 { display: inline; }
.stage[data-step="2"] .st-chip i { background: var(--watch); } .stage[data-step="3"] .st-chip i { background: var(--urgent); }
.stage[data-step="1"] .st-dots i:nth-child(1), .stage[data-step="2"] .st-dots i:nth-child(-n+2), .stage[data-step="3"] .st-dots i { background: #fff; }

/* ================= WHO: colour-blocked audience cards ================= */
.who { background: var(--ground); }
.audience { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.aud { position: relative; display: flex; flex-direction: column; border-radius: 32px; padding: 32px 28px 30px; min-height: 520px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .4s; }
.aud:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.aud-art { position: relative; height: 230px; margin: 28px -28px -30px; overflow: hidden; margin-top: auto; }
.aud-art .ground { position: absolute; inset-inline: 0; bottom: 0; height: 22px; }
/* farmers: three palms that sway */
.farm-art { background: linear-gradient(180deg, rgb(255 255 255 / 0), rgb(255 255 255 / .35)); }
.farm-art .ground { background: #E2D3B0; }
.farm-art .sun { position: absolute; top: 22px; inset-inline-end: 34px; width: 46px; height: 46px; border-radius: 50%; background: #F2C46B; box-shadow: 0 0 0 12px rgb(242 196 107 / .25); }
.farm-art img { position: absolute; bottom: 12px; height: auto; transform-origin: 50% 100%; transition: transform 1.2s var(--ease); }
.farm-art .p1 { width: 112px; inset-inline-start: 4%; } .farm-art .p2 { width: 140px; inset-inline-start: 33%; z-index: 1; } .farm-art .p3 { width: 100px; inset-inline-start: 66%; }
.aud-farm:hover .p1 { transform: rotate(-2.5deg); } .aud-farm:hover .p2 { transform: rotate(1.8deg); } .aud-farm:hover .p3 { transform: rotate(-1.8deg); }
/* investors: growth bars, a palm on the tallest */
.inv-art { direction: ltr; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 0 24px 22px; background: linear-gradient(180deg, rgb(31 74 51 / 0), #1f4a33); }
.inv-art .ground { background: #12301F; }
.inv-art i { position: relative; z-index: 1; width: 38px; height: var(--h); border-radius: 10px 10px 4px 4px; background: #2C5A43; transform-origin: bottom; transition: transform .9s var(--ease); }
.inv-art i:nth-child(2) { background: #2F6142; } .inv-art i:nth-child(3) { background: #3c7c4d; } .inv-art i.top { background: var(--brand-200); }
.inv-art i.top img { position: absolute; bottom: 100%; left: 50%; width: 66px; max-width: none; margin-left: -33px; margin-bottom: -4px; transform-origin: 50% 100%; transition: transform .9s var(--ease); }
.aud-inv:hover .inv-art i { transform: scaleY(1.12); } .aud-inv:hover .inv-art i.top img { transform: scaleY(.893) scale(1.08); }
/* partners: nodes orbit the palm */
.org-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #d4e6d8, rgb(188 216 195 / 0) 70%); }
.org-art .core { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; background: #183A2B; display: grid; place-items: center; box-shadow: 0 12px 30px rgb(15 46 26 / .3); }
.org-art .core img { width: 80px; height: 80px; }
.org-art .orbit { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 1.5px dashed rgb(15 46 26 / .35); animation: orbit 18s linear infinite; }
.org-art .orbit i { position: absolute; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #36633e; }
.org-art .orbit i:nth-child(1) { left: 50%; top: 0; } .org-art .orbit i:nth-child(2) { left: 100%; top: 50%; } .org-art .orbit i:nth-child(3) { left: 50%; top: 100%; } .org-art .orbit i:nth-child(4) { left: 0; top: 50%; }
@keyframes orbit { to { transform: rotate(360deg); } }
.aud-org:hover .orbit { animation-duration: 6s; }
.aud h3 { font-family: var(--serif); font-size: 30px; line-height: 1.5; }
.aud p { margin-top: 8px; font-size: 17px; line-height: 1.7; }
.aud .aud-cta + .aud-art { margin-top: auto; }
.aud { padding-bottom: 30px; }
.aud-cta { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 700; font-size: 16px; text-decoration: none; }
.aud-cta i { position: relative; width: 34px; height: 34px; border-radius: 50%; transition: transform .4s var(--ease); }
.aud-cta i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg) translate(-1px, 1px); }
html[dir="rtl"] .aud-cta i::after { transform: rotate(-45deg) translate(1px, 1px); }
.aud-cta:hover i { transform: translateX(4px); } html[dir="rtl"] .aud-cta:hover i { transform: translateX(-4px); }
.aud-farm { background: var(--sand); color: var(--ink); }
.aud-farm p { color: var(--ink-2); } .aud-farm .aud-cta { color: var(--brand-700); } .aud-farm .aud-cta i { background: #fff; }
.aud-inv { background: var(--deep); color: #fff; }
.aud-inv p { color: rgb(255 255 255 / .78); } .aud-inv .aud-cta { color: #fff; } .aud-inv .aud-cta i { background: var(--watch); color: #23170A; }
.aud-org { background: var(--brand-200); color: var(--brand-900); }
.aud-org p { color: #2a4f31; } .aud-org .aud-cta { color: var(--brand-900); } .aud-org .aud-cta i { background: #fff; }

/* ---------------- team: Basqah "scans" each founder into a twin; tap to flip for contacts ---------------- */
.members { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.member { position: relative; }
.flip { position: relative; display: grid; transition: transform .26s cubic-bezier(.45, 0, .55, 1); will-change: transform; }
.member.squash .flip { transform: scaleX(0); }
.face { grid-area: 1 / 1; border-radius: var(--r-sheet); background: #fff; box-shadow: var(--shadow-card); }
.member .back { visibility: hidden; }
.member.open .back { visibility: visible; }
.member.open .front { visibility: hidden; }
.front { position: relative; display: block; width: 100%; padding: 12px 12px 22px; text-align: start; transition: box-shadow .3s; }
.front:hover { box-shadow: var(--shadow-float); }
.back { position: relative; display: flex; flex-direction: column; padding: 24px 18px 18px; background: var(--deep); color: #fff; overflow: hidden; cursor: pointer; }
.back::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; left: -5%; bottom: -11%; background: url("assets/app-mark-white.svg") center / contain no-repeat; opacity: .1; }   /* bottom-left in both languages, the b in its normal direction */
.ph { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--ground); }
.ph .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .twin { filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: normal; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; background: #2f6b3d; mix-blend-mode: color; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.ph .grid { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgb(188 216 195 / .5) 1px, transparent 1px), linear-gradient(90deg, rgb(188 216 195 / .5) 1px, transparent 1px); background-size: 18px 18px; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.ph .scan { position: absolute; inset-inline: 0; top: 0; height: 2px; z-index: 2; background: #EEF5EF; box-shadow: 0 0 16px 4px rgb(188 216 195 / .7); opacity: 0; transition: top 1.1s var(--ease), opacity .3s; }
.front:hover .ph .twin, .front:hover .ph::after, .front:hover .ph .grid, .member.scanned .ph .twin, .member.scanned .ph::after, .member.scanned .ph .grid { clip-path: inset(0); }
.front:hover .ph .scan, .member.scanned .ph .scan { top: 100%; opacity: 1; }
.m-id { display: block; padding: 16px 10px 0; }
.m-id b { display: block; font-size: 19px; line-height: 1.35; }
.m-id small { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--brand-600); line-height: 1.5; }
.turn { position: absolute; top: 22px; inset-inline-end: 22px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 4px 12px rgb(0 0 0 / .18); transition: background-color .3s, transform .5s var(--ease); }
.turn::before { content: ""; position: absolute; inset: 9px; border: 2px solid var(--ink); border-radius: 50%; border-top-color: transparent; }
.turn::after { content: ""; position: absolute; top: 8px; inset-inline-end: 9px; width: 6px; height: 6px; border-top: 2px solid var(--ink); border-inline-end: 2px solid var(--ink); transform: rotate(20deg); }
.front:hover .turn { background: var(--brand-50); transform: rotate(-30deg); }
.b-name { position: relative; font-size: 20px; line-height: 1.35; }
.b-role { position: relative; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--brand-200); }
.b-links { position: relative; display: grid; gap: 8px; margin-top: auto; }
.b-links a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; border-radius: 14px; background: rgb(255 255 255 / .08); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 500; transition: background-color .2s; overflow: hidden; }
.b-links a:hover { background: rgb(255 255 255 / .16); }
.b-links bdi { direction: ltr; unicode-bidi: isolate; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic { flex: none; width: 30px; height: 30px; border-radius: 10px; background: #fff center / 16px no-repeat; }
.ic-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336633e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
.ic-tel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336633e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.ic-in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2336633e'%3E%3Cpath d='M6.5 8.5H3.6V20h2.9zM5 3.8a1.7 1.7 0 1 0 0 3.4 1.7 1.7 0 0 0 0-3.4M20.4 13.4c0-3-1.6-4.9-4.2-4.9-1.4 0-2.4.8-2.8 1.5V8.5h-2.8V20h2.9v-5.9c0-1.5.6-2.6 2-2.6s1.9 1 1.9 2.6V20h3z'/%3E%3C/svg%3E"); }
.b-close { position: relative; margin-top: 10px; align-self: center; font-size: 13.5px; font-weight: 700; color: var(--brand-200); padding: 6px 12px; border-radius: 10px; }
.b-close:hover { background: rgb(255 255 255 / .08); }

/* ---------------- contact ---------------- */
.contact { padding-top: 0; }
.contact-card { position: relative; overflow: hidden; text-align: center; background: var(--brand-900); color: #fff; border-radius: 36px; padding: clamp(56px, 7vw, 96px) 24px; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 120%, rgb(60 124 77 / .55), transparent 60%); }
.c-mark { position: absolute; width: 260px; opacity: .07; left: 5%; bottom: -40px; }   /* bottom-left in both languages */
.contact-card h2 { position: relative; color: #fff; font-family: var(--serif); font-size: clamp(32px, 4.2vw, 56px); line-height: 1.55; }
html[lang="en"] .contact-card h2 { line-height: 1.55; letter-spacing: -.01em; }   /* same line spacing as Arabic */
.c-line a, .c-line bdi { color: inherit; text-decoration: none; }
.c-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.c-line { position: relative; margin-top: 28px; font-size: 15px; color: rgb(255 255 255 / .66); }
.c-line bdi { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.c-line .dot { margin-inline: 12px; }

/* ---------------- footer ---------------- */
.foot { padding-block: 40px 48px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.foot-logo { height: 28px; width: auto; }
.motto { font-family: var(--serif); font-size: 18px; color: var(--brand-600); }
.copy { margin-inline-start: auto; font-size: 14px; color: var(--ink-3); }

/* ---------------- reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
      .rail-fill { width: 100%; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .f1, .f2 { left: auto; inset-inline-end: -8px; }
  .members { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .problem-in { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .how-in { grid-template-columns: 1fr; }
  .how-stage { top: 76px; z-index: 2; max-width: 460px; width: 100%; margin-inline: auto; order: -1; }
  .how-copy .sec-head { margin-bottom: 8px; }
  .stage { aspect-ratio: 16 / 11; }
  .step { min-height: clamp(220px, 46vh, 420px); }
  .aud { min-height: 0; }
    .links { display: none; }
  .hero-in { padding-block: 120px 150px; }
}
@media (max-width: 600px) {
    .tag { font-size: 12px; }
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .btn-nav { display: none; }
  .hero-shade { background:
    linear-gradient(180deg, rgb(13 36 22 / .8) 0%, rgb(13 36 22 / .35) 40%, rgb(13 36 22 / .65) 75%, var(--ground) 100%); }
  .hero-cta .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .members { grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-id b { font-size: 16px; } .m-id small { font-size: 12.5px; } .turn { top: 18px; inset-inline-end: 18px; width: 30px; height: 30px; } .turn svg { width: 14px; height: 14px; }
  .back { padding: 16px 12px 12px; } .b-links a { font-size: 12px; min-height: 40px; } .b-links .ic { width: 26px; height: 26px; }
    .contact-card { border-radius: 28px; }
  .c-actions .btn { flex: 1 1 100%; }
  .copy { margin-inline-start: 0; width: 100%; }
}

/* team flip: only the visible face takes part, so nothing from the front bleeds through the back */
.back:focus-visible { outline: 2px solid var(--brand-200); outline-offset: -4px; }
.back::after { content: ""; position: absolute; top: 18px; inset-inline-end: 18px; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12a8 8 0 0 1 13.7-5.6L20 8.6M20 4v4.6h-4.6M20 12a8 8 0 0 1-13.7 5.6L4 15.4M4 20v-4.6h4.6' fill='none' stroke='%23BCD8C3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.b-name { padding-inline-end: 40px; }
.turn { display: grid; place-items: center; color: var(--ink); }
.turn::before, .turn::after { content: none; }
.turn svg { width: 16px; height: 16px; }

/* who: entrance animations */
.js .aud-farm:not(.in) .farm-art img { transform: translateY(70%) scaleY(.5); opacity: 0; }
.farm-art img { transition: transform 1.2s var(--ease), opacity .6s; }
.farm-art .p2 { transition-delay: .15s; } .farm-art .p3 { transition-delay: .3s; }
.js .aud-farm:not(.in) .sun { transform: translateY(30px); opacity: 0; }
.farm-art .sun { transition: transform 1.4s var(--ease) .4s, opacity .8s .4s; }
.js .aud-inv:not(.in) .inv-art i { transform: scaleY(0); }
.inv-art i:nth-child(1) { transition-delay: .1s; } .inv-art i:nth-child(2) { transition-delay: .22s; } .inv-art i:nth-child(3) { transition-delay: .34s; } .inv-art i.top { transition-delay: .46s; }
.js .aud-inv:not(.in) .inv-art i.top img { transform: scale(.3); opacity: 0; }
.inv-art i.top img { transition: transform .8s var(--ease) 1s, opacity .5s 1s; }
.aud-inv.in:hover .inv-art i.top img { transition-delay: 0s; }
.js .aud-org:not(.in) .core { transform: scale(.4); opacity: 0; }
.org-art .core { transition: transform 1s var(--ease) .1s, opacity .6s .1s; }
.js .aud-org:not(.in) .orbit { opacity: 0; transform: scale(.6) rotate(-90deg); }
.org-art .orbit { transition: opacity .8s .4s; }

/* phones & tablets */
@media (max-width: 880px) {
  .how-copy { display: contents; }
  .how-copy .sec-head { order: 0; }
  .how-stage { position: relative; top: 0; order: 1; }
  .steps { order: 2; }
  .how-in { gap: 0; }
  .how-stage { margin-top: 28px; }
  .stage { aspect-ratio: 4 / 3.4; }
  .steps { margin-top: 20px; padding-bottom: 0; }
  .step, .step:last-child { min-height: 0; padding: 18px 0; cursor: pointer; }
  .step-n { font-size: 26px; width: 38px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 16px; }
}
@media (max-width: 600px) {
  .members { gap: 12px; }
  .back { padding: 14px 12px 12px; }
  .back::after { top: 10px; inset-inline-end: 10px; width: 26px; height: 26px; }
  .b-name { font-size: 16px; padding-inline-end: 30px; }
  .b-role { font-size: 12px; }
  .b-links { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .b-links a { justify-content: center; padding: 0; min-height: 44px; }
  .b-links a bdi, .b-links a > span:not(.ic) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .b-links .ic { width: 28px; height: 28px; }
}

/* phones */
@media (max-width: 600px) {
  .stage { aspect-ratio: 4 / 4.4; }
  .st-time { margin-top: 64px; font-size: 54px; }
  .st-notif { inset-inline: 16px; top: 140px; padding: 12px 14px; border-radius: 20px; }
  .n-body b, .n-text { font-size: 14.5px; }
  .contact-card h2 { font-size: 30px; }
  html[lang="en"] .contact-card h2 { font-size: 28px; }
  html[lang="en"] .contact-card h2 br { display: none; }
  .c-line { display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .c-line .dot { display: none; }
}

/* touch screens: a finger plays the same animations as the mouse */
.aud.hot { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.aud.hot .aud-art { transform: scale(1.04); }
.aud-farm.hot .p1 { transform: rotate(-2.5deg); } .aud-farm.hot .p2 { transform: rotate(1.8deg); } .aud-farm.hot .p3 { transform: rotate(-1.8deg); }
.aud-inv.hot .inv-art i { transform: scaleY(1.12); } .aud-inv.hot .inv-art i.top img { transform: scaleY(.893) scale(1.08); transition-delay: 0s; }
.aud-org.hot .orbit { animation-duration: 4s; }
.member.touched .ph .twin, .member.touched .ph::after, .member.touched .ph .grid { clip-path: inset(0); }
.member.touched .ph .scan { top: 100%; opacity: 1; }

/* footer on phones: centred and stacked */
@media (max-width: 600px) {
  .foot-in { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding-top: 28px; }
  .foot-logo { height: 26px; }
  .motto { font-size: 17px; }
  .copy { margin: 4px 0 0; width: auto; }
  .foot { padding-block: 32px calc(48px + env(safe-area-inset-bottom)); }
  .contact { padding-bottom: 56px; }
}

/* bilingual logo lockup: basqah | باسِقة  (Arabic in Serif Display Medium at ~0.6× the wordmark height) */
.lk { display: inline-flex; align-items: center; gap: 10px; direction: ltr; text-decoration: none; }
.lk-mark { position: relative; display: block; height: 30px; }
.lk-mark img { height: 30px; width: auto; }
.lk-rule { width: 1.5px; height: 23px; background: currentColor; opacity: .5; color: var(--brand-200); transition: color .3s; }
.lk-ar { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1; transform: translateY(2px); color: #fff; transition: color .3s; }
.nav.solid .lk-ar, .nav.solid .lk-rule { color: var(--brand-600); }
.brand.lk { height: auto; }
.lk-foot .lk-rule, .lk-foot .lk-ar { color: var(--brand-600); }
.lk-foot .lk-ar { font-size: 17px; }
