/* Trigger & Task — one page, one accent. Orange is used only for dots: the "trigger". */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --ink: #191919;
  --ink-2: #4d4d4d;
  --ink-3: #6e6e6e;
  --ink-soft: #8a8a8a;
  --line: #e7e7e5;
  --line-2: #d9d9d6;
  --orange: #f96921;
  --orange-glow: rgba(249, 105, 33, .2);
  --dark: #121212;
  --dark-2: #a9a9a9;
  --dark-line: rgba(255, 255, 255, .14);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --arabic: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --travel: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:lang(ar) { font-family: var(--arabic); }
::selection { background: rgba(249, 105, 33, .22); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: #fff; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 99px; text-decoration: none; font-weight: 500; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 99px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); }
.btn:active { transform: none; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease); flex: none; }
.btn:hover .arrow, .mail:hover .arrow { transform: translateX(3px); }
.link { font-weight: 500; text-decoration: none; padding: 12px 2px 10px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; color: var(--ink); border-radius: 6px; padding: 4px 0; }
.brand .logo { width: 120px; height: 40px; display: block; }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: 99px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 7px 16px 7px 14px;
  border: 1px solid var(--line); border-radius: 99px; }
.kdot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow); }
.hero h1 { font-size: clamp(2.85rem, 8.6vw, 6.4rem); line-height: .98; letter-spacing: -.048em; font-weight: 500; margin-top: 28px; }
.hero h1 .l1, .hero h1 .l2 { display: block; }
.hero h1 .l2 { color: var(--ink-soft); }
.period { display: inline-block; width: .165em; height: .165em; border-radius: 50%; background: var(--orange); margin-left: .035em; }
.lede { max-width: 640px; margin: 28px auto 0; font-size: clamp(1.06rem, 1.7vw, 1.24rem); line-height: 1.55; color: var(--ink-2); }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: center; align-items: center; }

/* ---------- the flow: one trigger, four tasks ---------- */
.flow-card { margin-top: clamp(56px, 8vw, 96px); background: var(--bg-soft); border-radius: clamp(22px, 3vw, 32px);
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3.4vw, 48px) clamp(24px, 3vw, 36px); text-align: left; }
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.node { position: relative; }
.pin { position: relative; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--ink); color: #fff;
  transition: background .35s, border-color .35s; }
.check { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check path { stroke-dasharray: 16; stroke-dashoffset: 0; transition: stroke-dashoffset .45s .12s var(--ease); }
.trigger .pin { background: var(--orange); border-color: var(--orange); }
.trigger .pin::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--orange); opacity: 0; }
.seg { position: absolute; z-index: 1; left: 15px; top: 14px; width: calc(100% + 16px); height: 2px; background: var(--line-2); }
.seg i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--ink); transition: width var(--travel) cubic-bezier(.55, .05, .3, 1), height var(--travel) cubic-bezier(.55, .05, .3, 1); }
.seg i::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 5px var(--orange-glow); opacity: 0; transition: opacity .2s; }
.txt { margin-top: 20px; }
.time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.time b { font-weight: 500; color: var(--ink); margin-right: 4px; transition: color .35s; }
.trigger .time b { color: var(--ink); }
.what { margin-top: 8px; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; transition: color .35s; }
.detail { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--ink-3); transition: color .35s; }
.flow-card figcaption { margin-top: clamp(28px, 3.6vw, 44px); padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flow-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -4px -10px -4px 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.flow-toggle:hover { background: #e9e9e7; color: var(--ink); }
.flow-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.flow-toggle .i-play, .flow-toggle[aria-pressed="true"] .i-pause { display: none; }
.flow-toggle[aria-pressed="true"] .i-play { display: block; }

/* the animated states exist only when motion is allowed; without it the flow shows finished */
.motion .flow .node:not(.done) .pin { background: #fff; border-color: var(--line-2); }
.motion .flow .trigger:not(.done) .pin { background: #fff; border-color: var(--orange); }
.motion .flow .node:not(.done) .check path { stroke-dashoffset: 16; }
.motion .flow .node:not(.done) .what, .motion .flow .node:not(.done) .time b { color: var(--ink-3); }
.motion .flow .node:not(.go) .seg i { width: 0; }
.motion .flow .node.go:not(.passed) .seg i::after { opacity: 1; }
.motion .flow .node.done .pin { animation: pop .5s var(--ease); }
.motion .flow .trigger.done .pin::after { animation: ring 2.2s var(--ease) infinite; }
.motion .flow.paused .trigger.done .pin::after { animation: none; }
.motion .flow.rewind .seg i { transition-duration: .6s; }
@keyframes pop { 0% { transform: scale(.82); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.1); opacity: 0; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(88px, 12vw, 168px); }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 6.5vw, 88px); }
.sec-head.wide { max-width: 980px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
h2 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.042em; font-weight: 500; }
h2.statement { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.038em; }
h2 .soft { color: var(--ink-soft); }

/* what we do */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 4.4vw, 64px); }
.col { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
.col-label { display: flex; gap: 14px; font-size: 14px; font-weight: 500; }
.col-label span { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 400; }
.col h3 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.15; letter-spacing: -.028em; font-weight: 500; margin: clamp(40px, 5vw, 64px) 0 0; }
.col > p { margin-top: 14px; }
.col > p { color: var(--ink-2); }
.col ul { list-style: none; padding: 0; margin-top: 30px; border-top: 1px solid var(--line); align-self: start; }
.col li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.col li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* how we work: a dark panel */
.dark { background: var(--dark); color: #fff; margin-inline: clamp(8px, 1.4vw, 20px); border-radius: clamp(24px, 3.6vw, 44px); }
.dark .eyebrow { color: var(--dark-2); }
.sec-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; }
.dark .lead { color: var(--dark-2); font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.55; max-width: 460px; justify-self: end; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.steps li { position: relative; padding-top: 26px; border-top: 1px solid var(--dark-line); }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: #fff; transform-origin: left;
  transition: transform 1.1s var(--ease) .15s; }
.motion .steps li:not(.in)::before { transform: scaleX(0); }
.step-n { font-size: 14px; color: var(--orange); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -.03em; margin: clamp(36px, 5vw, 72px) 0 12px; }
.steps p:last-child { color: var(--dark-2); font-size: 16px; }

/* our rules */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rule { background: var(--bg-soft); border-radius: 22px; padding: 28px 26px 32px; transition: transform .35s var(--ease), background .35s; }
.rule:hover { transform: translateY(-3px); background: #f0f0ee; }
.rule svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.rule svg .dots { stroke-width: 2.4; }
.rule h3 { font-size: 1.14rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin: 48px 0 8px; }
.rule p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* contact */
.contact { text-align: center; padding-top: clamp(40px, 6vw, 80px); }
.contact h2 { max-width: 900px; margin-inline: auto; font-size: clamp(2.3rem, 6vw, 4.6rem); }
.contact .lede { margin-top: 24px; }
.mail-row { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mail { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-size: clamp(1.3rem, 3.6vw, 2.4rem);
  font-weight: 500; letter-spacing: -.03em; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.mail-go { display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--ink); color: #fff; flex: none;
  transition: background .25s; }
.mail-go .arrow { width: .5em; height: .5em; stroke-width: 1.8; }
.mail:hover .mail-go { background: var(--orange); }
.copy { font: 500 14px var(--font); color: var(--ink-2); background: none; border: 1px solid var(--line-2); border-radius: 99px;
  padding: 12px 20px; cursor: pointer; transition: border-color .2s, color .2s; }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.ok { border-color: var(--ink); color: var(--ink); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 44px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 20px; }
.foot-brand .logo { width: 96px; height: 32px; color: var(--ink); flex: none; }
.foot-brand p { font-size: 14px; color: var(--ink-3); max-width: 260px; line-height: 1.45; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 12px 0; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }

/* ---------- motion: entrance and reveal ---------- */
.motion .rise { animation: rise 1s var(--ease) both; }
.motion .r1 { animation-delay: .06s; }
.motion .r2 { animation-delay: .16s; }
.motion .r3 { animation-delay: .26s; }
.motion .r4 { animation-delay: .4s; }
.motion .period { animation: dot .7s var(--ease) .7s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .d1 { transition-delay: .08s; }
.motion .d2 { transition-delay: .16s; }
.motion .d3 { transition-delay: .24s; }
.motion .rule[data-reveal].in { transition: opacity .9s var(--ease), transform .35s var(--ease), background .35s; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
}
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; row-gap: 0; }
  .col + .col { margin-top: 64px; }
  .col h3 { margin-top: 28px; }
  .sec-head.split { grid-template-columns: 1fr; }
  .dark .lead { justify-self: start; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; height: 68px; }
  .brand .logo { width: 105px; height: 35px; }
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .node { display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; }
  .txt { margin-top: 4px; }
  .seg { left: 14px; top: 15px; width: 2px; height: calc(100% + 24px); }
  .seg i { right: 0; bottom: auto; width: auto; height: 100%; }
  .motion .flow .node:not(.go) .seg i { width: auto; height: 0; }
  .seg i::after { right: auto; left: 50%; top: auto; bottom: -5px; margin: 0 0 0 -5px; }
  .what { margin-top: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .rules, .steps { grid-template-columns: 1fr; }
  .steps { gap: 44px; }
  .rule h3 { margin-top: 32px; }
  .hero-cta { flex-direction: column; gap: 18px; }
  .foot-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 340px) {
  .mail-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
