/* SNRGX — corporate site
   Brand: navy #10305b · yellow #ffd111 · paper #f2f2f0 (from the 2026 company profile) */

:root {
  --navy: #10305b;
  --navy-900: #091d38;
  --navy-700: #1a3f73;
  --yellow: #ffd111;
  --yellow-soft: #fff3b8;
  --paper: #f2f2f0;
  --white: #ffffff;
  --ink: #111a27;
  --muted: #5a6474;
  --line: rgba(16, 48, 91, .14);
  --line-light: rgba(255, 255, 255, .16);

  --font: "Inter Tight", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(9, 29, 56, .06), 0 12px 32px -12px rgba(9, 29, 56, .18);
}

html[lang="ar"] { --font: "Noto Kufi Arabic", "Inter Tight", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: #e8edf5; }
.section--navy .eyebrow { color: var(--yellow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; }
.h-xl { font-size: clamp(40px, 7vw, 92px); font-weight: 400; }
.h-lg { font-size: clamp(32px, 4.6vw, 60px); font-weight: 400; }
.h-md { font-size: clamp(24px, 2.6vw, 34px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #b9c4d6; }
.mark { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 0% 38%; transition: background-size 1s var(--ease) .5s; padding-inline: 2px; }
html[dir="rtl"] .mark { background-position: 100% 88%; }
.in .mark, .mark.in { background-size: 100% 38%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
html[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }
.btn:hover svg.arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover svg.arrow { transform: scaleX(-1) translateX(4px); }
.btn--yellow { background: var(--yellow); color: var(--navy-900); }
.btn--yellow:hover { background: #ffdc45; transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }

/* ---------- header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .progress span { transform-origin: 100% 50%; }

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: #fff;
  transition: background .4s, color .4s, box-shadow .4s, height .4s var(--ease);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: block; width: 92px; flex: none; transition: width .4s var(--ease); }
.header__logo img { width: 100%; height: auto; }
.header__logo .logo-dark { display: none; }
/* scrolled: frosted glass — dark glass over dark sections, light glass over light ones */
.header.is-solid, .header.is-light { backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.header.is-solid { height: 64px; background: rgba(255, 255, 255, .42); color: var(--ink); box-shadow: 0 1px 0 rgba(16, 48, 91, .08); }
.header.is-solid.on-dark { background: rgba(9, 29, 56, .32); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.header.is-light { background: rgba(255, 255, 255, .42); color: var(--ink); }
.header.is-solid .header__logo { width: 76px; }
.header.is-solid .logo-light, .header.is-light .logo-light { display: none; }
.header.is-solid .logo-dark, .header.is-light .logo-dark { display: block; }
.header.is-solid.on-dark .logo-light { display: block; }
.header.is-solid.on-dark .logo-dark { display: none; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; opacity: .86; transition: opacity .2s, background .2s; }
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.header.is-solid .nav a:hover, .header.is-light .nav a:hover { background: rgba(16, 48, 91, .07); }
.header.is-solid.on-dark .nav a:hover { background: rgba(255, 255, 255, .12); }
.nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.header__tools { display: flex; align-items: center; gap: 8px; }
.lang-btn { background: none; border: 1.5px solid currentColor; color: inherit; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; opacity: .9; }
.lang-btn:hover { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px;
    background: var(--navy-900); color: #fff; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font-size: 26px; padding: 12px 20px; opacity: .9; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--yellow); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .header .logo-light { display: block; }
  .menu-open .header .logo-dark { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(120% 90% at 85% 10%, #173f78 0%, var(--navy) 38%, var(--navy-900) 100%);
  color: #fff; overflow: hidden; padding-block: calc(var(--header-h) + 40px) 80px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 6.4vw, 92px); font-weight: 300; letter-spacing: -.035em; }
html[lang="ar"] .hero h1 { font-weight: 400; letter-spacing: 0; max-width: 16ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(4) > span { animation-delay: .36s; }
@keyframes lineUp { to { transform: none; } }
/* rotating domain word */
.rot { display: inline-grid; justify-items: start; vertical-align: baseline; font-size: calc(1em * var(--rot-scale, 1)); line-height: 1.1; }
.rot > span { grid-area: 1 / 1; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .8s var(--ease), opacity .5s; }
.rot > span.on { transform: none; opacity: 1; }
.rot > span.out { transform: translateY(-110%); opacity: 0; }
.rot .mark { color: #fff; background-size: 0% 82%; background-position: 0 70%; transition: background-size .9s var(--ease) .45s, color .3s .75s; }
html[dir="rtl"] .rot .mark { background-position: 100% 70%; }
.hero.ready .rot > span.on .mark { background-size: 100% 82%; color: var(--navy-900); }
.hero__sub { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 16px; color: #c3cee0; opacity: 0; animation: fadeIn 1s .7s forwards; }
.hero__sub b { color: #fff; font-weight: 600; }
.hero__sub .sep { width: 1px; height: 18px; background: var(--line-light); }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeIn 1s .9s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; z-index: 2; bottom: 28px; inset-inline-end: var(--gutter); display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #9fb0c8; }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--yellow), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; padding-block: calc(var(--header-h) + clamp(60px, 9vw, 120px)) clamp(56px, 8vw, 100px); }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 300; max-width: 18ch; }
.page-hero .lead { color: #b9c4d6; margin-top: 22px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: #9fb0c8; margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(48px); }
.js [data-reveal="down"] { transform: translateY(-32px); }
.js [data-reveal="left"] { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
html[dir="rtl"].js [data-reveal="left"] { transform: translateX(56px); }
html[dir="rtl"].js [data-reveal="right"] { transform: translateX(-56px); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="clip"] { opacity: 1; clip-path: inset(0 0 100% 0); }
.js [data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* scroll-lit statement */
.statement { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.25; font-weight: 400; letter-spacing: -.02em; max-width: 26ch; }
html[lang="ar"] .statement { line-height: 1.6; letter-spacing: 0; }
.statement .w { color: rgba(16, 48, 91, .18); transition: color .25s; }
.statement .w.lit { color: var(--navy); }
.statement .w.hl.lit { color: var(--navy-900); background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.stat { background: var(--white); padding: 32px 26px; box-shadow: inset -1px -1px 0 var(--line); }
.stat__num { font-size: clamp(40px, 4.4vw, 58px); font-weight: 300; letter-spacing: -.03em; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .55em; color: var(--yellow); -webkit-text-stroke: .5px var(--navy); margin-inline-start: 2px; }
.stat__label { margin-top: 12px; font-size: 15px; color: var(--muted); }
.section--navy .stats { background: var(--navy-900); border-color: var(--line-light); }
.section--navy .stat { background: var(--navy-900); box-shadow: inset -1px -1px 0 var(--line-light); }
.section--navy .stat__num { color: #fff; }
.section--navy .stat__label { color: #a9b6ca; }

/* ---------- split / vision-mission ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }
.vm__card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); position: relative; overflow: hidden; }
.vm__card::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 6px; height: 100%; background: var(--yellow); transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease) .3s; }
.vm__card.in::after { transform: none; }
.vm__card h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; margin-bottom: 18px; }
.vm__card p { color: var(--muted); font-size: 18px; margin: 0; }
.vm__card p em { font-style: normal; color: var(--navy-900); background: var(--yellow-soft); padding-inline: 3px; }

/* ---------- projects ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.project { grid-column: span 2; position: relative; display: flex; flex-direction: column; min-height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; }
.project--wide { grid-column: span 3; min-height: 520px; }
.project:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -18px rgba(9, 29, 56, .45); }
.project__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.project.in .project__media img { transform: scale(1.02); }
.project:hover .project__media img { transform: scale(1.08); }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 29, 56, .15) 0%, rgba(9, 29, 56, .35) 40%, rgba(9, 29, 56, .94) 100%); }
.project__media--pattern { background: var(--pc, var(--navy)); }
.project__media--pattern::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(160deg, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%); }
.project__media--pattern .glyph { position: absolute; inset-inline-end: -6%; top: -8%; font-size: 260px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .07); letter-spacing: -.06em; transition: transform 1.2s var(--ease); }
.project:hover .glyph { transform: translateY(10px) rotate(-3deg); }
.project__top { display: flex; justify-content: space-between; align-items: start; padding: 24px 24px 0; gap: 12px; }
.project__logo { height: 52px; width: auto; max-width: 140px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
html[lang="ar"] .chip { letter-spacing: 0; }
.chip--soon { background: var(--yellow); color: var(--navy-900); }
.project__body { margin-top: auto; padding: 24px; }
.project__since { font-size: 13px; color: var(--yellow); font-weight: 600; letter-spacing: .1em; }
.project h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; margin: 8px 0 10px; }
.project p { color: #c9d3e2; font-size: 15.5px; margin: 0 0 18px; max-width: 46ch; }
.project__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.project__go svg { width: 18px; transition: transform .3s var(--ease); }
html[dir="rtl"] .project__go svg { transform: scaleX(-1); }
.project:hover .project__go svg { transform: translateX(5px); }
html[dir="rtl"] .project:hover .project__go svg { transform: scaleX(-1) translateX(5px); }
@media (max-width: 1000px) { .project, .project--wide { grid-column: span 3; } }
@media (max-width: 680px) { .projects { grid-template-columns: 1fr; } .project, .project--wide { grid-column: auto; min-height: 400px; } }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-top: 56px; }
.timeline__rail { position: absolute; inset-block: 0; inset-inline-start: 50%; width: 2px; background: var(--line); transform: translateX(-50%); }
html[dir="rtl"] .timeline__rail { transform: translateX(50%); }
.timeline__rail span { position: absolute; inset: 0; background: var(--yellow); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; padding-block: 22px; }
.tl__dot { position: absolute; top: 34px; inset-inline-start: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); transform: translateX(-50%); transition: background .4s, transform .4s var(--ease); }
html[dir="rtl"] .tl__dot { transform: translateX(50%); }
.tl.in .tl__dot { background: var(--yellow); border-color: var(--navy); }
.tl__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.tl:nth-child(odd) .tl__card { grid-column: 1; text-align: end; }
.tl:nth-child(even) .tl__card { grid-column: 2; }
.tl__year { font-size: 14px; font-weight: 700; color: var(--navy); background: var(--yellow); display: inline-block; padding: 2px 10px; border-radius: 6px; margin-bottom: 10px; }
.tl__card h4 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.tl__card p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) {
  .timeline__rail { inset-inline-start: 7px; transform: none; }
  html[dir="rtl"] .timeline__rail { transform: none; }
  .tl { grid-template-columns: 1fr; padding-inline-start: 36px; }
  .tl__dot { inset-inline-start: 0; transform: none; }
  html[dir="rtl"] .tl__dot { transform: none; }
  .tl:nth-child(odd) .tl__card, .tl:nth-child(even) .tl__card { grid-column: 1; text-align: start; }
}

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }
.founder__photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; filter: grayscale(1); box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--line); max-width: 360px; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; font-weight: 400; letter-spacing: -.01em; }
.founder blockquote::before { content: "“"; display: block; font-size: 96px; line-height: .6; color: var(--yellow); font-family: Georgia, serif; margin-bottom: 8px; }
.founder__name { margin-top: 28px; font-weight: 700; font-size: 18px; }
.founder__name span { background: var(--yellow); padding-inline: 4px; }
.founder__role { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- partners ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding-block: 10px; }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: scrollX var(--speed, 60s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee__track { animation-name: scrollXr; }
@keyframes scrollXr { to { transform: translateX(50%); } }
.logo-tile { flex: none; width: 168px; height: 96px; display: grid; place-items: center; background: var(--white); border-radius: 14px; border: 1px solid var(--line); padding: 16px 20px; }
.logo-tile img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-grid .logo-tile { width: auto; }
.partner-list { columns: 3 240px; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.partner-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; gap: 10px; }
.partner-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--navy); }

/* ---------- CTA / contact ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 7vw, 96px); }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 300; max-width: 14ch; }
.cta p { color: #b9c4d6; max-width: 48ch; margin-top: 20px; font-size: 18px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.c-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; transition: transform .4s var(--ease), border-color .3s; }
a.c-card:hover { transform: translateY(-4px); border-color: var(--navy); }
.c-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--navy-900); display: grid; place-items: center; margin-bottom: 10px; }
.c-card .ico svg { width: 22px; height: 22px; }
.c-card small { color: var(--muted); font-size: 14px; }
.c-card strong { font-size: 18px; font-weight: 600; direction: ltr; unicode-bidi: plaintext; }

.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- project page ---------- */
.pj-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--pc, var(--navy-900)); padding-block: calc(var(--header-h) + 60px) clamp(48px, 7vw, 88px); }
.pj-hero__bg { position: absolute; inset: -10% 0 0; z-index: 0; }
.pj-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pj-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 29, 56, .35), rgba(9, 29, 56, .92)); }
.pj-hero__bg--pattern::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.2) 1.2px, transparent 1.4px); background-size: 24px 24px; mask-image: radial-gradient(80% 80% at 80% 20%, #000, transparent); -webkit-mask-image: radial-gradient(80% 80% at 80% 20%, #000, transparent); }
.pj-hero .wrap { position: relative; z-index: 1; }
.pj-hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 300; letter-spacing: -.03em; }
.pj-hero .lead { color: #d0d9e6; margin-top: 18px; }
.pj-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pj-hero__logo { height: 72px; width: auto; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 28px; }

.placeholder { border: 2px dashed rgba(16, 48, 91, .3); background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 209, 17, .08) 12px 24px); border-radius: var(--radius); padding: 28px; color: var(--muted); }
.placeholder strong { color: var(--navy); display: block; margin-bottom: 6px; }
.pj-offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; }
.offer__n { font-size: 14px; font-weight: 700; color: var(--navy); opacity: .45; }
.offer h3 { font-size: 22px; font-weight: 600; margin: 14px 0 10px; }
.offer p { color: var(--muted); margin: 0; font-size: 16px; }
.offer .since { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; background: var(--yellow); color: var(--navy-900); padding: 2px 10px; border-radius: 6px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3; grid-column: span 4; background: var(--white); }
.gallery figure:first-child { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery figure, .gallery figure:first-child { grid-column: span 12; grid-row: auto; aspect-ratio: 4 / 3; } }
.pj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pj-nav a { display: block; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.pj-nav a:hover { border-color: var(--navy); transform: translateY(-3px); }
.pj-nav a:last-child { text-align: end; }
.pj-nav small { color: var(--muted); }
.pj-nav strong { display: block; font-size: 22px; font-weight: 500; margin-top: 4px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #a9b6ca; padding-block: 72px 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h5 { margin: 0 0 16px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
html[lang="ar"] .footer h5 { letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--yellow); }
.footer__logo { width: 110px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); color: #fff; transition: background .3s, color .3s, border-color .3s; }
.footer__social a:hover { background: var(--yellow); color: var(--navy-900); border-color: var(--yellow); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .statement .w { color: var(--navy); }
}

/* =====================================================================
   Scroll-driven sections (inspired by pinned storytelling layouts)
   ===================================================================== */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* word-by-word heading reveal */
[data-split] .wi { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .wi > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
[data-split].in .wi > span { transform: none; }
html:not(.js) [data-split] .wi > span { transform: none; }

/* ---------- pinned hero ---------- */
.hero-pin { position: relative; height: 260vh; background: var(--navy-900); }
.hero-pin .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; padding-block: calc(var(--header-h) + 20px) 60px; }
.hero__a, .hero__b { will-change: opacity, transform; }
.hero__b { position: absolute; inset-inline: 0; top: 50%; translate: 0 -50%; z-index: 2; opacity: 0; pointer-events: none; }

.hero__b .eyebrow { color: var(--yellow); }
.hero__b h2 { font-size: clamp(30px, 4.2vw, 58px); font-weight: 300; max-width: 15ch; letter-spacing: -.02em; }
html[lang="ar"] .hero__b h2 { letter-spacing: 0; }
.hero__b h2 b { font-weight: 600; color: var(--yellow); }
.hero__b p { color: #b9c4d6; max-width: 40ch; margin-top: 20px; font-size: 18px; }
@media (max-width: 860px) {
  .hero__b { top: auto; bottom: 12%; translate: none; }
  .hero__b h2 { max-width: 18ch; }
}
.reduced .hero-pin { height: auto; }
.reduced .hero-pin .hero { position: relative; }
.reduced .hero__b { position: relative; opacity: 1; top: auto; translate: none; padding-bottom: 80px; background: var(--navy-900); color: #fff; }

/* ---------- project stack ---------- */
.stack { position: relative; height: calc(var(--n, 5) * 100vh + 40vh); background: var(--navy-900); color: #fff; }
.stack__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-top: calc(64px + clamp(20px, 4vh, 48px)); }
.stack__fills span { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.stack__fills span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 29, 56, .55), rgba(9, 29, 56, .25)); }
.stack__fills span:first-child { clip-path: none; }
.stack__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.stack__head .eyebrow { color: var(--yellow); }
.stack__head h2 { max-width: 14ch; }
.stack__meta { display: flex; align-items: end; gap: 40px; }
.stack__count { font-size: clamp(44px, 6vw, 84px); font-weight: 300; line-height: .9; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.stack__count b { font-weight: 300; display: inline-block; }
.stack__count b.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(40%); opacity: 0; } }
.stack__count span { font-size: .3em; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
.stack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.stack__list li { color: rgba(255, 255, 255, .5); display: flex; align-items: center; gap: 10px; transition: color .3s; }
.stack__list li::before { content: ""; width: 14px; height: 2px; background: currentColor; transition: width .4s var(--ease), background .3s; }
.stack__list li.on { color: #fff; }
.stack__list li.on::before { width: 30px; background: var(--yellow); }
.stack__list a:hover { color: var(--yellow); }
@media (max-width: 860px) { .stack__list { display: none; } .stack__head h2 { font-size: clamp(28px, 7vw, 40px); } }

.stack__cards { position: relative; z-index: 2; flex: 1; margin-top: clamp(20px, 4vh, 44px); margin-bottom: clamp(20px, 5vh, 56px); }
.scard {
  position: absolute; inset: 0 var(--gutter); display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); transform-origin: 50% 0; will-change: transform;
}
.scard__media { position: relative; overflow: hidden; background: var(--pc); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.scard:hover .scard__media img { transform: scale(1.05); }
.scard__media--pattern::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(150deg, #000 10%, transparent 80%); -webkit-mask-image: linear-gradient(150deg, #000 10%, transparent 80%); }
.scard__media--pattern .glyph { position: absolute; inset-inline-start: 8%; bottom: -12%; font-size: clamp(200px, 30vw, 420px); font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .1); letter-spacing: -.06em; }
.scard__body { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 56px); }
.scard__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .scard__top { letter-spacing: 0; }
.scard__since { color: var(--navy); background: var(--yellow); padding: 2px 10px; border-radius: 6px; white-space: nowrap; }
.scard h3 { margin-top: auto; font-size: clamp(32px, 4vw, 60px); font-weight: 400; letter-spacing: -.03em; color: var(--navy); }
html[lang="ar"] .scard h3 { letter-spacing: 0; }
.scard p { margin: 16px 0 26px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 38ch; }
.scard__soon { display: inline-block; align-self: flex-start; border: 1.5px dashed rgba(16, 48, 91, .35); border-radius: 999px; padding: 4px 14px; font-size: 14px !important; }
.scard .project__go { color: var(--navy); }
.scard:hover .project__go svg { transform: translateX(5px); }
html[dir="rtl"] .scard:hover .project__go svg { transform: scaleX(-1) translateX(5px); }
@media (max-width: 760px) {
  .scard { grid-template-columns: 1fr; grid-template-rows: 42% 1fr; }
  .scard h3 { margin-top: 10px; }
  .scard p { margin: 10px 0 16px; }
  .scard__body { padding: 22px; }
  .scard .project__go { margin-top: auto; }
}
.stack--static { height: auto; }
.stack--static .stack__sticky { position: relative; height: auto; overflow: visible; padding-bottom: 60px; }
.stack--static .stack__fills, .stack--static .stack__count { display: none; }
.stack--static .scard { position: relative; inset: auto; margin: 0 0 20px; min-height: 420px; }

/* ---------- horizontal timeline ---------- */
.htl { position: relative; background: var(--paper); }
.htl__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 64px); }
.htl__viewport { overflow: hidden; }
.htl__track { list-style: none; margin: 0; display: flex; gap: clamp(20px, 3vw, 40px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
@media (min-width: 1240px) { .htl__track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.htl__item { position: relative; width: clamp(260px, 30vw, 380px); padding-top: 36px; opacity: .35; transition: opacity .5s; }
.htl__item.on { opacity: 1; }
.htl__item::before { content: ""; position: absolute; top: 106px; inset-inline: 0 calc(-1 * clamp(20px, 3vw, 40px)); height: 1px; background: var(--line); }
.htl__year { display: block; font-size: clamp(56px, 7vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--navy); transition: color .6s; }
.htl__item.on .htl__year { color: var(--navy); }
.htl__dot { position: relative; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); margin: 18px 0 22px; transition: background .4s; }
.htl__item.on .htl__dot { background: var(--yellow); }
.htl__item h4 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.htl__item p { margin: 0; color: var(--muted); font-size: 15.5px; }
.htl__wip { font-style: normal; font-size: 12px; font-weight: 700; background: var(--yellow); color: var(--navy-900); padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.htl__bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.htl__bar span { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .htl__bar span { transform-origin: 100% 50%; }
.htl--static { height: auto !important; }
.htl--static .htl__sticky { position: relative; height: auto; padding-block: 100px; }
.htl--static .htl__viewport { overflow-x: auto; }
.htl--static .htl__item { opacity: 1; }
.htl--static .htl__year { color: var(--navy); }

/* parallax wrapper */
.para { position: relative; overflow: hidden; border-radius: var(--radius); }
.para img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; will-change: transform; }

/* About: big image band */
.band { position: relative; height: clamp(320px, 60vh, 640px); overflow: hidden; }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(9, 29, 56, .55)); }

/* =====================================================================
   Story: one sticky network canvas behind hero → about → vision → mission
   ===================================================================== */
.story { position: relative; background: var(--navy-900); color: #fff; }
.story__bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 10%, #173f78 0%, var(--navy) 38%, var(--navy-900) 100%); }
.story__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story .hero-pin { background: transparent; z-index: 1; }
.story .hero { background: transparent; }

.chapter { position: relative; z-index: 1; min-height: 88vh; display: flex; align-items: center; padding-block: 8vh; }
.chapter__text { max-width: min(620px, 52%); }
.chapter .eyebrow { color: var(--yellow); }
.chapter .statement { max-width: none; font-size: clamp(28px, 3.4vw, 50px); margin-bottom: 36px; }
.chapter .lead { color: #b9c4d6; max-width: 52ch; }
.story .statement .w { color: rgba(255, 255, 255, .16); }
.story .statement .w.lit { color: #fff; }
.story .statement .w.hl.lit { color: var(--yellow); background: none; box-shadow: none; }
@media (max-width: 860px) {
  .chapter { min-height: 92vh; align-items: flex-start; padding-block: 10vh 30vh; }
  .chapter__text { max-width: none; }
  .chapter__text { position: relative; }
  .chapter__text::before { content: ""; position: absolute; inset: -24px -16px; z-index: -1; background: radial-gradient(closest-side, rgba(9, 29, 56, .75), transparent); }
}
.reduced .story .statement .w { color: #fff; }

/* CTA on white — the network gathers into an @ */
.cta--light { background: var(--white); color: var(--navy-900); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: min(76vh, 640px); display: flex; flex-direction: column; justify-content: center; }
.cta--light canvas { opacity: 1; }
.cta--light h2, .cta--light p, .cta--light .cta__row { max-width: min(560px, 54%); }
.cta--light p { color: var(--muted); }
.cta--light .btn--ghost { color: var(--navy); }
.cta--light .btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 760px) {
  .cta--light { justify-content: flex-start; padding-bottom: calc(min(70vw, 300px) + 56px); min-height: 0; }
  .cta--light h2, .cta--light p, .cta--light .cta__row { max-width: none; }
}

/* project brand accents (e.g. Phoenix: black + gold, Size 7: red + black) */
.scard__media--pattern .glyph, .project__media--pattern .glyph { color: var(--pa, rgba(255, 255, 255, .1)); }
.scard__media--pattern[style*="--pa"] .glyph, .project__media--pattern[style*="--pa"] .glyph { opacity: .92; }
.scard__media--pattern[style*="--pa"]::before, .project__media--pattern[style*="--pa"]::before { background-image: radial-gradient(color-mix(in srgb, var(--pa) 55%, transparent) 1.2px, transparent 1.4px); }
.pj-hero__bg--pattern .glyph { position: absolute; inset-inline-end: 4%; bottom: -14%; font-size: clamp(260px, 40vw, 560px); font-weight: 700; line-height: 1; letter-spacing: -.06em; color: var(--pa, rgba(255, 255, 255, .08)); opacity: .9; }
.pj-hero[style*="--pa"] .chip:first-child { background: var(--pa); color: var(--pc); }

/* numbers band on navy, a little air below the story */
.stats-band { position: relative; z-index: 1; background: transparent; padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.stats-band .stats { background: rgba(9, 29, 56, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stats-band .stat { background: transparent; }

/* founder signature: small photo beside the name */
.founder--sig { display: block; max-width: 980px; }
.sig { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.sig__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--yellow); flex: none; }
.sig .founder__name { margin-top: 0; }
.sig .founder__role { margin-top: 2px; }

/* footer on black */
.footer { background: #0a0a0a; }

/* contact CTA: no card — sits directly on the page's light grey */
.cta--light { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding-inline: 0; overflow: visible; }

/* project logo mark on the dark card / hero (instead of the big letter) */
.scard__media--pattern .mark-img, .project__media--pattern .mark-img { position: absolute; inset: 0; margin: auto; max-height: 72%; max-width: 70%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); transition: transform 1.2s var(--ease); }
.scard:hover .mark-img, .project:hover .mark-img { transform: scale(1.04); }
.project__media--pattern .mark-img { max-height: 46%; top: -18%; }
.pj-hero__bg--pattern .mark-img { position: absolute; inset-inline-end: 6%; top: 50%; translate: 0 -50%; height: min(70%, 520px); width: auto; opacity: .9; }

/* project cards without a page yet: not clickable */
.scard--off { cursor: default; }
.scard--off:hover .scard__media img, .scard--off:hover .mark-img { transform: none; }
.footer-projects span { opacity: .75; }

/* project card logo (WRO Kuwait, TORCH Global) */
.scard__logo { margin-top: auto; height: clamp(44px, 6vw, 72px); width: auto; max-width: 70%; object-fit: contain; object-position: left center; }
html[dir="rtl"] .scard__logo { object-position: right center; }
.scard h3.has-logo { margin-top: 14px; }
@media (max-width: 760px) { .scard__logo { height: 40px; margin-top: 8px; } .scard h3.has-logo { margin-top: 8px; } }

/* keep card content inside the card on small / short screens */
@media (max-width: 760px) {
  .scard { grid-template-rows: 34% 1fr; }
  .scard__body { padding: 18px 20px; }
  .scard h3 { font-size: clamp(26px, 7vw, 34px); }
  .scard p { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .scard .project__go { margin-top: auto; padding-top: 6px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .scard__body { padding: 28px 36px; }
  .scard__logo { height: 52px; }
  .scard h3 { font-size: clamp(30px, 3.4vw, 46px); }
  .scard p { margin: 10px 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
/* small screens: text block takes what it needs, the photo shrinks to fit */
@media (max-width: 760px) {
  .scard { grid-template-rows: minmax(0, 1fr) auto; }
  .scard__media { min-height: 0; }
  .scard__body { gap: 0; }
}

/* logo + project name on one row */
.scard__title { margin-top: auto; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); min-width: 0; }
.scard__title .scard__logo { margin: 0; flex: none; height: clamp(40px, 4.4vw, 64px); width: auto; max-width: 42%; object-position: center; }
.scard__title h3 { margin: 0; min-width: 0; }
@media (max-width: 760px) {
  .scard__title { margin-top: 10px; gap: 12px; }
  .scard__title .scard__logo { height: 38px; max-width: 40%; }
}
@media (max-height: 760px) and (min-width: 761px) { .scard__title .scard__logo { height: 48px; } }

/* ===== project card: stacked on every screen size =====
   hero shot → category · year → logo + name → description → link */
.scard { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
.scard__media { min-height: 0; }
.scard__body { padding: clamp(18px, 2.4vw, 32px) clamp(20px, 3vw, 44px); }
.scard__top { align-items: center; }
.scard__title { margin-top: clamp(10px, 1.4vw, 16px); }
.scard__title h3 { font-size: clamp(26px, 3vw, 44px); }
.scard p { max-width: 70ch; margin: clamp(8px, 1vw, 14px) 0 clamp(10px, 1.4vw, 18px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scard .project__go { margin-top: 0; }
.scard__media--pattern .glyph { inset-inline-start: auto; inset-inline-end: 6%; bottom: -30%; font-size: clamp(220px, 34vw, 480px); }

/* contact details inside the contact section (single-page site) */
.cta__contact { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; max-width: min(560px, 54%); }
.cta__contact li { display: flex; align-items: center; gap: 14px; }
.cta__contact .ci { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--yellow); color: var(--navy-900); display: grid; place-items: center; }
.cta__contact .ci svg { width: 20px; height: 20px; }
.cta__contact small { display: block; font-size: 13px; color: var(--muted); }
.cta__contact a { font-weight: 600; color: var(--navy-900); font-size: 16px; }
.cta__contact a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .cta__contact { max-width: none; } }
#about, #projects, #contact { scroll-margin-top: 70px; }

/* founder: academic & work experience paragraph above the quote */
.founder__story { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 70ch; margin: 28px 0 0; line-height: 1.7; }

/* section labels promoted to <h2> for SEO — keep the label look */
h2.eyebrow { line-height: inherit; font-size: 13px; font-weight: 600; letter-spacing: .14em; margin: 0 0 18px; }
html[lang="ar"] h2.eyebrow { font-size: 14px; letter-spacing: 0; line-height: inherit; }

/* ===== project cards: photo + description side by side on wider screens =====
   (below 900px the description moves under the photo — the stacked layout above) */
@media (min-width: 900px) {
  .scard { grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr; }
  .scard__body { justify-content: center; padding: clamp(28px, 3.4vw, 56px); }
  .scard__title { margin-top: clamp(14px, 1.6vw, 22px); }
  .scard p { max-width: 46ch; -webkit-line-clamp: 5; }
  .scard__media--pattern .glyph { inset-inline-end: auto; inset-inline-start: 8%; bottom: -12%; }
}
/* more breathing room between the top bar and the projects heading (desktop) */
@media (min-width: 900px) {
  .stack__sticky { padding-top: calc(64px + clamp(40px, 7vh, 84px)); }
  .stack__cards { margin-top: clamp(28px, 4.5vh, 56px); }
}

/* ===== desktop polish (≥900px) — from the 2026-10-17 desktop review; phones unchanged ===== */
@media (min-width: 900px) {
  /* 1–2 · one heading size for every section (hero headline stays the largest) */
  .h-lg, .hero__b h2, .cta h2, .stack__head h2, .htl__head h2, .sec-head h2 { font-size: clamp(40px, 3.75vw, 54px); font-weight: 400; line-height: 1.12; }
  .cta h2 { font-weight: 300; max-width: 16ch; }
  .hero__b h2 { max-width: 17ch; }

  /* 3 · About / Vision / Mission: wider column, calmer statement size */
  .chapter__text { max-width: min(680px, 54%); }
  .chapter .statement { font-size: clamp(32px, 2.8vw, 40px); line-height: 1.28; }

  /* 5 · tighter spacing between sections; no extra empty band under the contact section */
  .section { padding-block: clamp(72px, 7vw, 100px); }
  #contact { padding-bottom: 80px; }
  .cta--light { min-height: 0; padding-block: clamp(32px, 4vw, 56px); }
  .stats-band { padding-block: 40px 90px; }

  /* 6 · founder: quote and paragraph on the same measure */
  .founder blockquote { font-size: clamp(22px, 1.95vw, 28px); max-width: 860px; }
  .founder__story { max-width: 860px; font-size: 19px; }

  /* 7 · hero details in proportion with the headline */
  .hero__sub { font-size: 18px; gap: 6px; }
  .hero__cta .btn { font-size: 16px; padding: 16px 30px; }

  /* 8 · number labels */
  .stat__label { font-size: 16px; }
}

/* ===== hero: headline = same size as the SNRG + X heading; always clear of the top bar ===== */
.hero h1 { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.1; }
.hero { align-items: safe center; padding-top: calc(var(--header-h) + clamp(32px, 7vh, 90px)); }
@media (min-width: 900px) {
  .hero h1 { font-size: clamp(40px, 3.75vw, 54px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
}
@media (min-width: 861px) {
  /* SNRG + X panel: centred in the free space under the top bar, never behind it */
  .hero__b { inset: 0; top: 0; translate: none; display: flex; align-items: safe center; padding-block: calc(var(--header-h) + clamp(32px, 7vh, 90px)) 48px; }
}

/* Arabic: "نقود التحوّل الرقمي،" sits on one line (English keeps its own line break) */
html[lang="ar"] .hero h1 .line--en-break { display: none; }

/* Partners page: logo cards with names */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 24px; }
.pcard { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.section--white .pcard { background: var(--paper); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy); }
.pcard__logo { height: 84px; width: 100%; display: grid; place-items: center; }
.pcard__logo img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; }
.pcard figcaption { font-size: 13.5px; line-height: 1.35; text-align: center; color: var(--ink); font-weight: 500; }
.pcounts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; color: #b9c4d6; font-size: 16px; }
.pcounts b { color: var(--yellow); font-size: 28px; font-weight: 600; margin-inline-end: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .pcard__logo { height: 64px; } .pcard__logo img { max-height: 58px; } }
