/* =========================================================
   MANOOT — مَنُوط  |  site styles
   Luxury palette: Onyx #0B1411 · Emerald #155E4C · Champagne Gold #D6B370
          Ivory #F4EEE2 · Copper #B9764F  (token names --navy/--blue/--lime/--coral kept for compatibility)
   ========================================================= */

@font-face { font-family: "Kufi"; src: url("../assets/fonts/NotoKufiArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NSArabic"; src: url("../assets/fonts/NotoSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NSArabic"; src: url("../assets/fonts/NotoSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NSLatin"; src: url("../assets/fonts/NotoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NSLatin"; src: url("../assets/fonts/NotoSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0B1411;
  --navy-2: #101D19;
  --navy-3: #172A24;
  --blue: #155E4C;
  --blue-soft: #8DBBA9;
  --lime: #D6B370;
  --paper: #F4EEE2;
  --coral: #B9764F;
  --ink-dim: #5F6E66;
  --line: rgba(11,20,17, .12);
  --bg-2: #FBF8F1;
  --gold-ink: #8A6A2C;

  --f-head: "Kufi", "NSArabic", system-ui, sans-serif;
  --f-body: "NSArabic", "NSLatin", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "NSArabic", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
main { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; margin: 0; line-height: 1.35; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

.c-lime { color: var(--gold-ink); }
.c-blue { color: var(--blue); }
.c-coral { color: var(--coral); }
.c-dim { color: var(--ink-dim); }

.kicker {
  font-family: var(--f-mono);
  font-size: .85rem;
  letter-spacing: .02em;
  color: var(--ink-dim);
  margin-block-end: 1.25rem;
  text-align: right;
  unicode-bidi: isolate;
}
.kicker--dark { color: rgba(11,20,17, .65); }

/* caret */
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--lime); vertical-align: -.15em; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
.caret--dark { background: var(--blue); width: 2px; }
.caret--code { width: 8px; height: 1.15em; vertical-align: -.22em; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ LOADER ============ */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--paper); color: var(--navy); display: grid; place-items: center; overflow: hidden; }
html:not(.js) .loader { display: none; }
.loader__grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11,20,17,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(11,20,17,.06) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%); mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%); }
.loader__center { position: relative; display: grid; justify-items: center; gap: 1.6rem; }
.loader__logo { width: min(60vw, 320px); height: auto; overflow: visible; }
.loader__logo .lg-dot { color: var(--lime); }
.loader__tag { font-size: clamp(.85rem, .8rem + .2vw, 1rem); color: var(--ink-dim); }
.loader__foot { position: absolute; inset-inline: var(--pad); bottom: clamp(1.6rem, 4vh, 2.6rem); display: flex; justify-content: center; align-items: flex-end; gap: 1rem; }
.loader__count { font: 800 clamp(3.4rem, 2rem + 6vw, 7.5rem)/.85 var(--f-mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader__count small { font-size: .32em; color: var(--gold-ink); margin-left: .15em; letter-spacing: 0; }
.loader__wipe { position: absolute; inset: 0; transform: translateY(101%); }
.loader__wipe--lime { background: var(--lime); }
.loader__wipe--blue { background: var(--blue); }

/* ============ BUTTONS ============ */
.btn {
  --bg: var(--lime); --fg: var(--navy);
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1 var(--f-body);
  overflow: hidden; isolation: isolate;
  transition: box-shadow .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: translateY(0); }
.btn--lime:hover { color: var(--paper); }
.btn--lime:hover { box-shadow: 0 0 0 6px rgba(214,179,112, .18); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(11,20,17,.22); }
.btn--ghost:hover { color: var(--paper); }
.btn--navy { --bg: var(--navy); --fg: var(--paper); }
.btn--navy::before { background: var(--blue); }
.btn--sm { padding: .7rem 1.15rem; font-size: .92rem; }
.btn--xl { padding: 1.35rem 2.3rem; font-size: clamp(1.05rem, 1rem + .6vw, 1.4rem); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--arrow { transition: transform .4s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(-5px); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem var(--pad);
  transition: background .4s, padding .4s var(--ease), transform .5s var(--ease);
}


.nav__logo { position: relative; display: block; }
.nav__logo img { width: clamp(84px, 8vw, 118px); height: auto; transition: opacity .45s var(--ease); filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.nav { pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__logo .logo-light { position: absolute; inset: 0; opacity: 0; }
.nav.is-light .logo-dark { opacity: 0; }
.nav.is-light .logo-light { opacity: 1; }
.nav.is-light .nav__links a { color: rgba(11,20,17,.72); }
.nav.is-light .nav__links a:hover { color: var(--navy); }
.nav.is-light .nav__links a::after { background: var(--blue); }

.nav.is-light .btn--lime { --bg: var(--navy); --fg: var(--paper); }
.nav.is-light .btn--lime::before { background: var(--blue); }
.nav.is-light .burger { background: rgba(11,20,17,.06); box-shadow: inset 0 0 0 1px rgba(11,20,17,.12); }
.nav.is-light .burger i { background: var(--navy); }

.burger { display: none; position: relative; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: rgba(244,238,226,.08); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .4s; }
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .55s var(--ease), top .55s var(--ease), background .4s; }
.burger i:first-child { top: 19px; }
.burger i:last-child { top: 26px; right: 20px; }
.menu-open .burger i:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 22px; right: 14px; transform: rotate(-45deg); }
.menu-open .nav { background: transparent !important; box-shadow: none !important; transform: none !important; }

.menu { position: fixed; inset: 0; z-index: 65; background: var(--paper); color: var(--navy); display: flex; flex-direction: column; justify-content: space-between; padding: 7.5rem var(--pad) 2.2rem; visibility: hidden; clip-path: circle(0% at var(--cx, 12%) var(--cy, 4%)); overflow: hidden; }
.menu::before { content: ""; position: absolute; inset: auto -20% -30% auto; width: 80vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(21,94,76,.18), transparent 65%); pointer-events: none; }
.menu__links { display: grid; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.menu__links a > * { display: inline-block; }
.menu__links span { font: 700 clamp(2rem, 9vw, 3.2rem)/1.45 var(--f-head); }
.menu__links small { font: .8rem var(--f-mono); color: var(--gold-ink); }
.menu__foot { position: relative; display: grid; gap: .8rem; }
.menu__foot .btn { justify-content: center; padding-block: 1.1rem; }
.menu__foot p { font: .9rem var(--f-mono); color: var(--ink-dim); text-align: center; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .98rem; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.nav.is-scrolled .nav__links { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.nav__links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: rgba(244,238,226, .78); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; inset: auto 0 6px auto; width: 0; height: 2px; background: var(--lime); transition: width .4s var(--ease); }
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { width: 100%; }
@media (max-width: 860px) { .nav__links { display: none; } .burger { display: block; } .nav { justify-content: flex-start; gap: .6rem; padding-block: .8rem; } .nav__logo { margin-inline-end: auto; } }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  padding: 8rem var(--pad) 6rem;
  overflow: hidden;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, var(--paper) 20%, rgba(244,238,226,.78) 48%, rgba(244,238,226,0) 76%),
    linear-gradient(0deg, var(--paper) 0%, rgba(244,238,226,0) 30%); }
.hero__inner { position: relative; z-index: 2; max-width: 52rem; }
.hero__prompt { font-family: var(--f-mono); font-size: clamp(.78rem, .7rem + .3vw, .95rem); color: var(--paper); margin-block-end: 1.6rem; text-align: right; }
.hero__title { font-size: clamp(2.5rem, 1rem + 5.4vw, 6.4rem); line-height: 1.22; letter-spacing: 0; }
.hero__title .line { display: block; overflow: hidden; padding-block: .06em .14em; margin-block: -.06em -.14em; }
.hero__title .line__in { display: inline-block; }
.hl { font-style: normal; color: var(--navy); background: var(--lime); padding: 0 .18em; border-radius: .08em; display: inline-block; line-height: 1.15; }
.hero__lede { max-width: 38rem; margin-block-start: 1.8rem; color: rgba(11,20,17, .72); font-size: clamp(1.02rem, .95rem + .4vw, 1.3rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-block-start: 2.4rem; }
.hero__graphic { position: absolute; z-index: 1; inset-inline-end: calc(var(--pad) * .6); top: 50%; translate: 0 -50%; width: min(36vw, 520px); aspect-ratio: 1; }
.hero__graphic svg { width: 100%; height: 100%; overflow: visible; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; translate: -50% 0; bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; font: .72rem var(--f-mono); color: var(--ink-dim); letter-spacing: .2em; }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--lime), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 1000px) {
  .hero__graphic { width: 62vw; opacity: .22; inset-inline-end: -12vw; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) { .hero { align-content: center; } }

/* ============ MARQUEE ============ */
.marquee { direction: ltr; position: relative; padding-block: 1.4rem; background: var(--lime); color: var(--navy); overflow: hidden; transform: rotate(-1.5deg) scale(1.04); margin-block: 2rem; z-index: 3; }
.marquee__track { display: flex; gap: 2rem; width: max-content; white-space: nowrap; font: 800 clamp(1.5rem, 1rem + 2.4vw, 3rem)/1.3 var(--f-mono); will-change: transform; }
.marquee__track b { color: var(--blue); font-weight: 400; }
.marquee__track--rev { font-size: clamp(.9rem, .8rem + .5vw, 1.15rem); font-weight: 600; margin-block-start: .5rem; opacity: .75; }
.marquee__track--rev b { color: var(--coral); }

/* ============ SECTIONS shared ============ */
section { position: relative; }
.split-words .w { display: inline-block; }
h2 { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4rem); }

/* ============ RECORD ============ */
.record {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center;
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}
.record__title { max-width: 20ch; }
.record__lede { margin-block-start: 1.4rem; color: rgba(11,20,17, .72); max-width: 34rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); }
.counters { display: grid; gap: 2rem; margin-block-start: 3rem; }
.counter { border-block-start: 1px solid var(--line); padding-block-start: 1.2rem; }
.counter__num { font: 800 clamp(3rem, 1.5rem + 6vw, 7rem)/1 var(--f-mono); color: var(--blue); text-align: right; letter-spacing: -.04em; }
.counter:nth-child(2) .counter__num { color: var(--navy); }
.counter__num span:first-child { color: var(--coral); }
.counter__label { margin-block-start: .6rem; color: var(--ink-dim); }

.plan-frame { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(11,20,17,.08), 0 40px 80px -40px rgba(11,20,17,.35); overflow: hidden; }
.plan-frame__bar, .ui-window__bar, .editor__bar { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; font: .78rem var(--f-mono); color: var(--ink-dim); border-block-end: 1px solid var(--line); }
.plan-frame__bar i, .ui-window__bar i, .editor__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #CFC6B4; }
.plan-frame__bar i:nth-child(1), .ui-window__bar i:nth-child(1), .editor__bar > i:nth-child(1) { background: var(--coral); }
.plan-frame__bar i:nth-child(2), .ui-window__bar i:nth-child(2), .editor__bar > i:nth-child(2) { background: var(--lime); }
.plan-frame__bar i:nth-child(3), .ui-window__bar i:nth-child(3), .editor__bar > i:nth-child(3) { background: var(--blue-soft); }
.plan-frame__bar span, .ui-window__bar span { margin-inline-start: .6rem; }
.plan-frame__bar b { margin-left: auto; color: var(--gold-ink); font-weight: 600; white-space: nowrap; }
.plan-frame__bar span, .ui-window__bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#masterplan { width: 100%; height: auto; aspect-ratio: 1; }
#masterplan .road { fill: none; stroke: #E7DFD0; stroke-width: 10; stroke-linecap: round; }
#masterplan .road--main { stroke: #DCD1BD; stroke-width: 16; }
#masterplan .road-dash { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 6 8; opacity: .9; }
#masterplan .parcel { stroke: #fff; stroke-width: 1.5; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: .9rem 1.1rem; border-block-start: 1px solid var(--line); font-size: .82rem; color: var(--ink-dim); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .4rem; vertical-align: -1px; }
.dot--lime { background: var(--lime); } .dot--blue { background: var(--blue); } .dot--coral { background: var(--coral); } .dot--park { background: #2f7d5b; }
@media (max-width: 960px) { .record { grid-template-columns: 1fr; } }

/* ============ WORK ============ */
.work { padding-block: clamp(4rem, 8vw, 7rem) 0; }
.work__head { padding-inline: var(--pad); margin-block-end: 2.5rem; }
.work__head h2 { max-width: 20ch; }
.work__pin { overflow-x: clip; }
.work__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding-inline: var(--pad); width: max-content; will-change: transform; }
.project {
  width: min(88vw, 1180px); min-height: min(78vh, 720px);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  border-radius: 28px; position: relative; overflow: hidden;
}
.project--plans { background: var(--blue); }
.project--schools { background: var(--bg-2); color: var(--navy); box-shadow: 0 0 0 1px rgba(11,20,17,.08), 0 30px 70px -40px rgba(11,20,17,.3); }
.project__idx { font: 700 .9rem var(--f-mono); opacity: .7; }
.project h3 { font-size: clamp(1.7rem, 1rem + 2.2vw, 3rem); margin-block: .6rem 1rem; }
.project__copy p { opacity: .88; max-width: 30rem; }
.ext { font: 600 .55em var(--f-mono); color: var(--blue); background: rgba(21,94,76, .1); padding: .25em .6em; border-radius: 99px; vertical-align: middle; margin-inline-start: .4rem; transition: background .3s, color .3s; }
.ext:hover { background: var(--blue); color: var(--paper); }
.tags, .modules, .checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .35rem .85rem; border-radius: 99px; background: rgba(11,20,17, .25); font-size: .88rem; }
.tags li:first-child { background: var(--lime); color: var(--navy); font-weight: 700; }
.checks { flex-direction: column; gap: .7rem; }
.checks li { position: relative; padding-inline-start: 1.8rem; font-size: .95rem; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .05em; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--paper); font-size: .7rem; }
.modules li { padding: .4rem .8rem; border-radius: 8px; background: rgba(11,20,17, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: .86rem; }
.modules li:nth-child(3n+1) { box-shadow: inset 0 0 0 1px rgba(21,94,76,.45); }
.note { margin-block-start: .7rem; font-size: .78rem; opacity: .82; text-align: center; }

.ui-window { background: var(--navy); color: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); }
.ui-window--light { background: #fbfaf5; color: var(--navy); }
.ui-window--light .ui-window__bar { border-color: rgba(11,20,17,.08); color: #6B7A72; }

/* plots ui */
.plots-ui { display: grid; grid-template-columns: 1fr 170px; }
.plots-ui__map { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(7, 1fr); gap: 4px; padding: 1rem; aspect-ratio: 10 / 7.4; }
.plots-ui__map .p { border-radius: 3px; background: var(--lime); transition: transform .25s var(--ease), filter .25s; cursor: pointer; }
.plots-ui__map .p.res { background: var(--blue-soft); }
.plots-ui__map .p.sold { background: var(--coral); }
.plots-ui__map .p.road { background: transparent; cursor: default; }
.plots-ui__map .p.park { background: #2f7d5b; cursor: default; }
.plots-ui__map .p:not(.road):not(.park):hover, .plots-ui__map .p.is-active { transform: scale(1.18); filter: brightness(1.15); box-shadow: 0 0 0 2px var(--paper); z-index: 1; }
.plots-ui__side { border-inline-start: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; font-size: .8rem; }
.tip { display: grid; gap: .1rem; }
.tip small { color: var(--ink-dim); font-size: .72rem; }
.tip b { font-family: var(--f-mono); font-size: 1.05rem; margin-block-end: .4rem; }
.st { font-family: var(--f-body) !important; font-size: .85rem !important; padding: .15rem .55rem; border-radius: 6px; width: fit-content; }
.st--lime { background: var(--lime); color: var(--navy); } .st--blue { background: var(--blue-soft); color: var(--navy); } .st--coral { background: var(--coral); color: var(--navy); }
.mini-stats { margin-top: auto; display: grid; gap: .5rem; }
.mini-stats div { display: flex; justify-content: space-between; align-items: baseline; border-block-start: 1px solid var(--line); padding-block-start: .4rem; }
.mini-stats b { font: 800 1.15rem var(--f-mono); color: var(--lime); }
.mini-stats div:nth-child(2) b { color: var(--blue-soft); } .mini-stats div:nth-child(3) b { color: var(--coral); }


.bars span { position: absolute; bottom: -1.4rem; inset-inline: 0; text-align: center; font-size: .7rem; color: #6B7A72; }
.sched ol { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; font-size: .8rem; }
.sched li { display: flex; justify-content: space-between; padding: .4rem .55rem; border-radius: 8px; }
.sched li span { font-family: var(--f-mono); color: #6B7A72; font-size: .74rem; }
.sched li.now { background: var(--lime); }
.toast { position: absolute; inset-inline-start: 1.1rem; bottom: 1.1rem; padding: .6rem .9rem; border-radius: 10px; background: var(--navy); color: var(--paper); font-size: .78rem; box-shadow: 0 14px 30px -10px rgba(11,20,17,.5); opacity: 0; }

@media (max-width: 900px) {
  .work__track { flex-direction: column; width: auto; }
  .project { width: 100%; grid-template-columns: 1fr; min-height: 0; }
  .plots-ui { grid-template-columns: 1fr; }
  .plots-ui__side { border-inline-start: 0; border-block-start: 1px solid var(--line); flex-direction: row; justify-content: space-between; }
  .mini-stats { margin-top: 0; }
  .school-ui__row, .school-ui__kpis { grid-template-columns: 1fr; }
}

/* ============ SERVICES ============ */
.services { padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.services__head h2 { max-width: 18ch; }
.svc-progress { display: none; }
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; margin-block-start: 3rem; }
.svc {
  position: relative; padding: 1.5rem; border-radius: 22px;
  background: var(--bg-2); box-shadow: 0 0 0 1px rgba(11,20,17,.07), 0 24px 50px -36px rgba(11,20,17,.35);
  display: flex; flex-direction: column; gap: .7rem; min-height: 26rem;
  transition: background .5s var(--ease), transform .5s var(--ease);
  overflow: hidden;
}
.svc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(214,179,112,.12), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc:hover::after { opacity: 1; }
.svc:hover { background: #fff; transform: translateY(-4px); }
.svc__art { aspect-ratio: 1; margin: -.5rem -.5rem .5rem; }
.svc__art svg { width: 100%; height: 100%; overflow: visible; }
.svc h3 { font-size: 1.3rem; }
.svc p { color: rgba(11,20,17,.68); font-size: .95rem; }
.svc code { margin-top: auto; font: .78rem var(--f-mono); color: var(--blue); padding: .5rem .7rem; border-radius: 8px; background: rgba(21,94,76,.07); text-align: left; }
@media (max-width: 1280px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* ============ PROCESS ============ */
.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 7rem); padding: clamp(5rem, 10vw, 9rem) var(--pad); background: var(--bg-2); color: var(--navy); }
.process .kicker { color: #6B7A72; }
.process__head { position: sticky; top: 7rem; align-self: start; }
.process__graphic { width: min(100%, 420px); aspect-ratio: 1; margin-top: 2rem; }
.process__graphic svg { width: 100%; height: 100%; overflow: visible; }
.commits { list-style: none; margin: 0; padding: 0; position: relative; }
.commits::before { content: ""; position: absolute; inset-inline-start: 6px; top: 0; bottom: 0; width: 2px; background: rgba(11,20,17,.1); }
.commits::after { content: ""; position: absolute; inset-inline-start: 6px; top: 0; height: calc(var(--p, 0) * 100%); width: 2px; background: var(--blue); }
.commit { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: start; padding: 2.2rem 0 2.2rem; padding-inline-start: 2.6rem; border-block-end: 1px solid rgba(11,20,17,.1); }
.commit::before { content: ""; position: absolute; inset-inline-start: 0; top: 2.75rem; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(11,20,17,.25); transition: background .4s, box-shadow .4s; z-index: 1; }
.commit.is-on::before { background: var(--lime); box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 6px rgba(214,179,112,.4); }
.commit__hash { font: 600 .85rem var(--f-mono); color: var(--coral); padding-top: .55rem; }
.commit h3 { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); }
.commit p { color: #4B5952; margin-top: .3rem; }
.commit__tag { font: 600 .8rem var(--f-mono); padding: .3rem .6rem; border-radius: 6px; background: rgba(21,94,76,.1); color: var(--blue); margin-top: .5rem; white-space: nowrap; }
.commit__tag--lime { background: var(--navy); color: var(--lime); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } .process__head { position: static; } .process__graphic { width: 220px; } .commit { grid-template-columns: 1fr; gap: .3rem; } .commit__tag { justify-self: start; } }

/* ============ CODE ============ */
.code { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.code__copy p:last-child { color: rgba(11,20,17,.72); margin-top: 1.3rem; max-width: 30rem; }
.editor { --line: rgba(244,238,226,.12); --ink-dim: #9AA79F; border-radius: 16px; background: #0B1411; color: var(--paper); box-shadow: 0 50px 100px -40px rgba(11,20,17,.55); overflow: hidden; }
.editor__tabs { display: flex; gap: .25rem; margin-inline-start: 1rem; overflow-x: auto; }
.editor__tabs button { font: .78rem var(--f-mono); color: var(--ink-dim); background: transparent; border: 0; min-height: 40px; padding: .45rem .8rem; border-radius: 8px; cursor: pointer; transition: background .3s, color .3s; white-space: nowrap; }
.editor__tabs button:hover { color: var(--paper); }
.editor__tabs button.is-active { background: var(--navy-3); color: var(--lime); }
.editor__body { display: grid; grid-template-columns: auto 1fr; min-height: 25rem; font: .9rem/1.7 var(--f-mono); }
.editor__gutter { padding: 1.1rem .9rem; color: #33463E; text-align: right; user-select: none; white-space: pre; border-inline-end: 1px solid var(--line); }
.editor pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; position: relative; }
.editor pre code.hljs { background: transparent; padding: 0; font: inherit; color: #c9d1ef; white-space: pre; display: inline; }
.hljs-keyword, .hljs-built_in { color: var(--blue-soft); }
.hljs-string { color: var(--lime); }
.hljs-number, .hljs-literal { color: var(--coral); }
.hljs-comment { color: #62756B; font-style: italic; }
.hljs-title, .hljs-title.function_, .hljs-title.class_ { color: #ffd479; }
.hljs-attr, .hljs-property, .hljs-params { color: #B6CCBF; }
.hljs-type { color: #7fe3c8; }
.editor__status { display: flex; gap: 1.2rem; padding: .5rem 1rem; font: .72rem var(--f-mono); color: var(--ink-dim); background: var(--blue); color: var(--paper); }
.editor__status span:last-child { margin-left: auto; }
@media (max-width: 960px) { .code { grid-template-columns: 1fr; } .editor__body { font-size: .78rem; } }

/* ============ CTA ============ */
.cta { background: var(--paper); color: var(--navy); border-top: 6px solid var(--lime); padding: clamp(6rem, 12vw, 11rem) var(--pad); overflow: hidden; min-height: 90vh; display: grid; align-items: center; }
.cta__inner { position: relative; z-index: 2; max-width: 56rem; }
.cta__title { font-size: clamp(2.2rem, 1rem + 4.4vw, 5.6rem); line-height: 1.25; margin-block-end: 2.6rem; }
.cta__num { margin-top: 1.4rem; font: 700 1.1rem var(--f-mono); opacity: .75; }
.cta__graphic { position: absolute; inset-inline-end: -4vw; bottom: -6vw; width: min(52vw, 720px); aspect-ratio: 1; z-index: 1; }
.cta__graphic svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) { .cta__graphic { opacity: .25; width: 90vw; } }

/* ============ FOOTER / FAB ============ */
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 2.5rem var(--pad); border-block-start: 1px solid var(--line); color: var(--ink-dim); font-size: .9rem; }
.foot__meta { font-size: .85rem; }
.fab { position: fixed; z-index: 60; inset-inline-end: 1.5rem; bottom: 1.5rem; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37,211,102,.55); transform: scale(0); }
.fab svg { width: 30px; height: 30px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* =========================================================
   3D ARCHITECTURE — a villa that builds itself from the blueprint
   ========================================================= */
.arch { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.arch h2 { max-width: 14ch; }
.arch__line { display: flex; align-items: flex-start; gap: .8rem; margin-top: 1.3rem; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.7; max-width: 32rem; }
.arch__line--prob { color: rgba(11,20,17,.6); }
.arch__line--sol { padding: .9rem 1.2rem; border-radius: 18px; background: var(--blue); color: var(--paper); box-shadow: 0 0 0 2px var(--lime), 0 24px 50px -30px rgba(11,20,17,.5); }
.arch__ic { flex: none; width: 1.6em; height: 1.6em; margin-top: .05em; }
.arch__ic svg { width: 100%; height: 100%; }
.arch__ic--x { color: var(--coral); }
.arch__ic--ok { color: var(--lime); }
.arch__feats { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.arch__feats li { padding: .4rem .9rem; border-radius: 99px; font-size: .9rem; background: #fff; box-shadow: inset 0 0 0 1px rgba(21,94,76,.3); }
.arch__feats li:nth-child(2n) { background: var(--navy); color: var(--paper); box-shadow: none; }
.arch__modes { display: inline-flex; gap: .3rem; margin-top: 1.8rem; padding: .3rem; border-radius: 99px; background: rgba(11,20,17,.06); }
.arch__modes button { font: 700 .92rem var(--f-body); color: var(--navy); background: transparent; border: 0; border-radius: 99px; padding: .6rem 1.1rem; min-height: 44px; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease); }
.arch__modes button:hover { background: rgba(11,20,17,.06); }
.arch__modes button[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.arch__stage { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #EFE7D8; box-shadow: 0 0 0 1px rgba(11,20,17,.06), 0 40px 90px -50px rgba(11,20,17,.5); }
#houseGL { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#houseGL.is-drag { cursor: grabbing; }
.arch__tag { position: absolute; top: 1rem; inset-inline-end: 1.2rem; font: 600 .68rem var(--f-mono); letter-spacing: .14em; color: var(--gold-ink); pointer-events: none; }
.arch__hint { position: absolute; bottom: 1rem; inset-inline-start: 1.2rem; font-size: .8rem; padding: .3rem .75rem; border-radius: 99px; background: rgba(255,255,255,.75); color: rgba(11,20,17,.7); pointer-events: none; transition: opacity .6s var(--ease); }
.arch.is-touched .arch__hint { opacity: 0; }
@media (hover: none) { .arch__hint { display: none; } }
@media (max-width: 960px) {
  .arch { grid-template-columns: 1fr; }
  .arch__stage { aspect-ratio: 1; border-radius: 22px; }
  .arch__modes { display: flex; width: 100%; }
  .arch__modes button { flex: 1; padding-inline: .4rem; }
}

/* =========================================================
   MORE WORK — Mishkat + Roya Racing link cards, Qitah as a passing line
   ========================================================= */
.project--more { background: #fff; color: var(--navy); box-shadow: 0 0 0 1px rgba(11,20,17,.07), 0 30px 70px -40px rgba(11,20,17,.3); }
.project--more .project__copy p { opacity: .8; }
.more__also { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(11,20,17,.12); font-size: .92rem; opacity: .65 !important; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.site-card { display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(11,20,17,.08), 0 24px 50px -30px rgba(11,20,17,.45); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.site-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(11,20,17,.12), 0 36px 60px -30px rgba(11,20,17,.55); }
.site-card__shot { position: relative; aspect-ratio: 16 / 11; display: flex; flex-direction: column; overflow: hidden; }
.sc-bar { display: flex; align-items: center; gap: 5px; padding: .5rem .7rem; background: rgba(0,0,0,.18); }
.sc-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.sc-bar em { margin-inline-start: auto; font: 600 .66rem var(--f-mono); font-style: normal; opacity: .8; }
.site-card--mishkat .site-card__shot { background: #f6f1e4; color: #1b2a78; }
.site-card--mishkat .sc-bar { background: #ece4cf; }
.site-card--mishkat .sc-bar i { background: #c9b98f; }
.sc-mk { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; padding: 0 1.2rem; position: relative; }
.sc-mk b { font: 700 clamp(1.5rem, 1rem + 1.4vw, 2.2rem)/1.3 var(--f-head); }
.sc-mk small { font-size: .8rem; color: #8a6d2c; font-weight: 700; }
.sc-mk__lamp { position: absolute; inset-inline-end: 1.2rem; top: 50%; translate: 0 -50%; width: 26%; aspect-ratio: 3 / 4; border-radius: 50% 50% 14px 14px; background: linear-gradient(180deg, #f2c14e, #d79a2b); box-shadow: 0 0 40px 6px rgba(242,193,78,.45); }
.sc-mk__chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.sc-mk__chips i { font-style: normal; font-size: .62rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; background: #1b2a78; color: #f6f1e4; }
.sc-mk__chips i:nth-child(2) { background: #e9dcb8; color: #1b2a78; }
.site-card--roya .site-card__shot { background: radial-gradient(120% 90% at 50% 0%, #2a3a8c, #0f1540 70%); color: #e8f4f6; }
.sc-ry { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; text-align: center; }
.sc-ry small { font: 600 .58rem var(--f-mono); letter-spacing: .18em; color: #8fd3dc; }
.sc-ry b { font: 800 clamp(2rem, 1.2rem + 2.2vw, 3.2rem)/1 var(--f-mono); letter-spacing: .04em; color: #5fc4cf; }
.sc-ry__track { width: 62%; height: 4px; margin-top: .7rem; border-radius: 4px; background: rgba(232,244,246,.15); overflow: hidden; }
.sc-ry__track i { display: block; width: 24%; height: 100%; border-radius: 4px; background: #5fc4cf; }
.site-card__meta { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.site-card__meta h4 { font-size: 1.25rem; }
.site-card__meta p { font-size: .86rem; opacity: .75; line-height: 1.7; }
.site-card__meta bdi { white-space: nowrap; }
.site-card__link { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; font: 600 .78rem var(--f-mono); color: var(--blue); }
.site-card__link svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.site-card:hover .site-card__link svg { transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .more { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .site-card__meta { padding: .8rem .8rem .9rem; }
  .site-card__meta h4 { font-size: 1.05rem; }
  .site-card__meta p { font-size: .76rem; }
}
@media (max-width: 560px) {
  .more { grid-template-columns: 1fr; }
  .site-card { display: grid; grid-template-columns: 42% 1fr; }
  .site-card__shot { aspect-ratio: auto; min-height: 100%; }
  .sc-bar { display: none; }
  .sc-mk { padding: .8rem; }
  .sc-mk__lamp, .sc-mk__chips { display: none; }
}

/* =========================================================
   SCHOOLS mockup — follows the Rihla demo: night-road sidebar,
   cool work area, ember/teal/gold, Almarai, departure board in Handjet
   ========================================================= */
.rh {
  --r-bg: #eef1f0; --r-surface: #fff; --r-sunken: #e6eae8; --r-line: #dfe4e1; --r-ink: #13202a; --r-ink-2: #3b4954; --r-ink-3: #5f6c77;
  --r-night: #12202a; --r-night-2: #192b37; --r-night-ink: #eaf0f2; --r-night-mute: #8d9fab;
  --r-ember: #e4552b; --r-teal: #0e9aa7; --r-gold: #f0a500; --r-red: #d0372a;
  --r-board: #0f1a22; --r-board-ink: #f3efe4; --r-board-lit: #ffc145;
  display: grid; grid-template-columns: 150px 1fr; background: var(--r-bg); color: var(--r-ink);
  border-radius: 14px; overflow: hidden; font-family: "Almarai", var(--f-body); font-size: .72rem; line-height: 1.5;
  box-shadow: 0 0 0 1px rgb(19 32 42 / .08), 0 22px 44px -14px rgb(0 0 0 / .5);
}
.rh-side { background: var(--r-night); color: var(--r-night-ink); padding: .8rem .55rem; display: flex; flex-direction: column; gap: .15rem; }
.rh-school { display: flex; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.rh-school b { display: block; font-size: .62rem; line-height: 1.3; }
.rh-school small { color: var(--r-night-mute); font-size: .55rem; }
.rh-logo { width: 18px; height: 22px; flex: none; background: linear-gradient(var(--r-gold) 0 30%, var(--r-night-ink) 30% 100%); clip-path: polygon(50% 0, 100% 25%, 100% 100%, 0 100%, 0 25%); }
.rh-group { color: var(--r-night-mute); font-size: .55rem; margin: .45rem .3rem .1rem; }
.rh-side a { display: flex; align-items: center; gap: .4rem; padding: .32rem .4rem; border-radius: 7px; font-size: .62rem; color: #c9d4da; position: relative; }
.rh-side a i { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .8; }
.rh-side a em { margin-inline-start: auto; font-style: normal; background: var(--r-ember); color: #fff; font-size: .52rem; min-width: 15px; height: 15px; border-radius: 99px; display: grid; place-items: center; }
.rh-side a.on { background: var(--r-night-2); color: #fff; font-weight: 700; }
.rh-side a.on::before { content: ""; position: absolute; inset-inline-start: -.55rem; top: 20%; bottom: 20%; width: 3px; background: var(--r-ember); border-radius: 3px; }
.rh-main { padding: .7rem; display: grid; gap: .6rem; min-width: 0; }
.rh-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.rh-crumb { color: var(--r-ink-3); font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-crumb b { color: var(--r-ink); }
.rh-board { display: flex; align-items: center; gap: .5rem; background: var(--r-board); color: var(--r-board-ink); border-radius: 7px; padding: .25rem .3rem .25rem .6rem; flex: none; }
.rh-board__now { display: grid; line-height: 1.15; }
.rh-board__now small { font-size: .48rem; color: #7f8d97; }
.rh-board__now b { font-size: .68rem; }
.rh-board__clock { font: 700 1.05rem/1 "Handjet", var(--f-mono); color: var(--r-board-lit); background: #1b2933; padding: .2rem .4rem; border-radius: 4px; letter-spacing: .04em; }
.rh-hero { position: relative; border-radius: 14px; overflow: hidden; min-height: 150px; }
.rh-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.rh-greet { position: absolute; top: .55rem; inset-inline-start: .7rem; display: grid; gap: .1rem; }
.rh-greet b { font-size: .95rem; font-weight: 800; }
.rh-greet span { font-size: .55rem; background: var(--r-surface); padding: .1rem .4rem; border-radius: 5px; width: fit-content; }
.rh-tag { position: absolute; background: var(--r-surface); border-radius: 8px; padding: .25rem .45rem; display: grid; line-height: 1.25; box-shadow: 0 6px 14px -6px rgb(19 32 42 / .35); }
.rh-tag small { font-size: .5rem; color: var(--r-ink-3); }
.rh-tag b { font-size: .74rem; font-weight: 800; }
.rh-tag--1 { top: 42%; left: 47%; }
.rh-tag--1 b { color: var(--r-teal); }
.rh-tag--2 { top: 12%; left: 20%; }
.rh-tag--2 b { color: var(--r-ember); }
.rh-tag--3 { bottom: 26%; left: 3%; }
.rh-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: .6rem; }
.rh-panel { background: var(--r-surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--r-line); padding: .6rem; min-width: 0; }
.rh-panel__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.rh-panel__h b { font-size: .72rem; }
.rh-panel__h small { color: var(--r-ink-3); font-size: .56rem; }
.rh-chip { background: #fcefcc; color: #7f5400 !important; padding: .05rem .4rem; border-radius: 5px; }
.rh-donut { width: 104px; margin: 0 auto; display: block; }
.rh-donut__v { font: 800 17px "Almarai", sans-serif; fill: var(--r-ink); }
.rh-donut__l { font: 400 9px "Almarai", sans-serif; fill: var(--r-ink-3); }
.rh-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .6rem; margin-top: .3rem; font-size: .56rem; color: var(--r-ink-2); }
.rh-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-inline-end: .25rem; }
.rh-stages { display: grid; gap: .45rem; }
.rh-stage { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: .3rem; }
.rh-stage > b { font-size: .6rem; border-inline-start: 3px solid var(--c); padding-inline-start: .3rem; line-height: 1.2; }
.rh-stage > b small { display: block; color: var(--r-ink-3); font-weight: 400; font-size: .5rem; }
.rh-rings { display: flex; flex-wrap: wrap; gap: .25rem; }
.rh-ring { width: 26px; height: 26px; }
.rh-ring circle { fill: none; stroke-width: 3; }
.rh-ring text { font: 800 8px "Almarai", sans-serif; fill: var(--r-ink); }

@media (max-width: 900px) {
  .rh { grid-template-columns: 1fr; font-size: .7rem; }
  .rh-side { display: none; }
  .rh-row { grid-template-columns: 1fr; }
  .rh-crumb { display: none; }
  .rh-top { justify-content: flex-end; }
  .rh-hero { min-height: 140px; }
  .rh-hero { min-height: 175px; }
  .rh-tag--1 { top: auto; bottom: 28%; left: 46%; }
  .rh-tag--2 { top: auto; bottom: 28%; left: 4%; }
  .rh-tag--3 { display: none; }
}

/* =========================================================
   MOBILE  (≤ 900px)  — its own composition, not a squeezed desktop
   ========================================================= */
@media (max-width: 900px) {
  :root { --pad: 1.15rem; }
  body { font-size: 1rem; line-height: 1.75; }
  h2 { font-size: clamp(1.75rem, 8.2vw, 2.6rem); line-height: 1.4; }
  .kicker { font-size: .75rem; margin-block-end: .9rem; }
  .btn:active { transform: scale(.97); }

  /* hero: visual up top, words anchored at the bottom */
  .hero { min-height: 100svh; padding: 6.5rem var(--pad) 1.6rem; align-content: end; gap: 1.4rem; }
  .hero__shade { background: linear-gradient(180deg, rgba(244,238,226,.3) 0%, rgba(244,238,226,.2) 28%, rgba(244,238,226,.9) 52%, var(--paper) 78%); }
  .hero__graphic { width: 38vw; top: 5.8rem; translate: none; inset-inline-end: var(--pad); opacity: 1; }
  .hero__prompt { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: clip; margin-block-end: 1rem; }
  .hero__title { font-size: clamp(2.4rem, 11.4vw, 3.6rem); line-height: 1.28; }
  .hero__lede { font-size: 1rem; margin-block-start: 1rem; color: rgba(11,20,17,.75); }
  .hero__ctas { display: grid; grid-template-columns: 1.15fr 1fr; gap: .6rem; margin-block-start: 1.5rem; }
  .hero__ctas .btn { justify-content: center; padding: 1rem .8rem; }
  .hero__scroll { display: none; }

  .marquee { padding-block: .9rem; margin-block: 1.2rem; transform: rotate(-2deg) scale(1.06); }
  .marquee__track { font-size: 1.35rem; gap: 1.2rem; }
  .marquee__track--rev { font-size: .8rem; }

  /* record */
  .record { padding: 4.5rem var(--pad) 4rem; gap: 2.5rem; }
  .record__lede { font-size: 1rem; }
  .counters { grid-template-columns: .7fr 1.3fr; gap: 1rem; margin-block-start: 2rem; }
  .counter__num { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .counter:nth-child(2) .counter__num { font-size: clamp(1.45rem, 6.3vw, 2.2rem); line-height: 1.5; }
  .counter__label { font-size: .82rem; line-height: 1.6; }
  .plan-frame { border-radius: 16px; }
  .plan-legend { gap: .7rem 1rem; font-size: .75rem; }

  /* work: stacked sticky cards */
  .work { padding-block: 4rem 2rem; }
  .work__head { margin-block-end: 1.6rem; }
  .work__track { flex-direction: column; width: auto; gap: 1.2rem; padding-inline: var(--pad); }
  .project { position: sticky; top: 5rem; width: 100%; min-height: 0; grid-template-columns: 1fr; gap: 1.4rem; padding: 1.4rem 1.2rem 1.2rem; border-radius: 24px; transform-origin: 50% 0; will-change: transform; }
  .project::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #05070f; opacity: var(--dim, 0); pointer-events: none; }
  .project h3 { font-size: 1.6rem; margin-block: .3rem .6rem; }
  .project__copy p { font-size: .95rem; }
  .tags, .modules, .checks { margin-block-start: 1rem; }
  .tags li, .modules li { font-size: .78rem; }
  .checks li { font-size: .88rem; }
  .plots-ui { grid-template-columns: 1fr; }
  .plots-ui__map { padding: .8rem; gap: 3px; }
  .plots-ui__side { border-inline-start: 0; border-block-start: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: .8rem; }
  .tip b { font-size: .95rem; margin-block-end: .2rem; }
  .mini-stats { margin: 0; gap: .25rem; }
  .mini-stats b { font-size: 1rem; }
  .school-ui { padding: .8rem; gap: .7rem; }
  .school-ui__kpis { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .kpi { padding: .6rem; }
  .kpi small { font-size: .62rem; line-height: 1.4; min-height: 2.8em; }
  .kpi b { font-size: 1.05rem; }
  .school-ui__row { grid-template-columns: 1fr; }
  .bars { height: 110px; }
  .note { font-size: .7rem; }

  /* services: swipe carousel */
  .services { padding: 4.5rem 0; }
  .services__head { padding-inline: var(--pad); }
  .svc-grid { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) .4rem; margin-block-start: 2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 80%; min-height: 0; scroll-snap-align: center; padding: 1.3rem; }
  .svc__art { width: 72%; margin: 0 auto .4rem; }
  .svc-progress { display: block; height: 3px; margin: 1.2rem var(--pad) 0; background: var(--line); border-radius: 3px; overflow: hidden; }
  .svc-progress span { display: block; height: 100%; width: 20%; background: var(--lime); border-radius: inherit; transform: translateX(calc(var(--p, 0) * -400%)); transition: transform .3s var(--ease); }

  /* process */
  .process { padding: 4.5rem var(--pad); gap: 1.5rem; }
  .process__head { position: static; display: grid; grid-template-columns: 1fr 108px; align-items: end; column-gap: 1rem; }
  .process__head .kicker { grid-column: 1 / -1; }
  .process__graphic { width: 108px; margin: 0; grid-column: 2; grid-row: 2; }
  .commit { grid-template-columns: auto 1fr; grid-template-areas: "hash tag" "body body"; gap: .5rem; padding-block: 1.4rem; padding-inline-start: 2.2rem; }
  .commit__hash { grid-area: hash; padding-top: 0; }
  .commit > div { grid-area: body; }
  .commit__tag { grid-area: tag; justify-self: end; margin-top: 0; }
  .commit::before { top: 1.75rem; }
  .commit h3 { font-size: 1.3rem; }
  .commit p { font-size: .92rem; }

  /* code */
  .code { padding: 4.5rem var(--pad); gap: 2rem; }
  .editor { border-radius: 14px; }
  .editor__body { min-height: 19rem; font-size: .66rem; line-height: 1.75; }
  .editor__gutter { padding: .9rem .45rem; }
  .editor pre { padding: .9rem .7rem; }
  .editor__tabs { margin-inline-start: .4rem; }
  .editor__tabs button { padding: .4rem .55rem; font-size: .7rem; }
  .editor__status span:nth-child(3), .editor__status span:nth-child(4) { display: none; }

  /* cta */
  .cta { min-height: 0; padding: 5rem var(--pad) 0; display: flex; flex-direction: column; overflow: hidden; }
  .cta__title { font-size: clamp(2.2rem, 10.5vw, 3.2rem); margin-block-end: 1.8rem; }
  .cta .btn--xl { width: 100%; justify-content: center; padding-block: 1.2rem; font-size: 1.05rem; }
  .cta__num { text-align: center; }
  .cta__graphic { position: relative; inset: auto; order: 2; width: 82vw; margin: 2.6rem auto -14vw; opacity: 1; }

  .foot { flex-direction: column; text-align: center; padding: 2.2rem var(--pad) 6.5rem; gap: .6rem; }
  .fab { width: 56px; height: 56px; bottom: calc(1rem + env(safe-area-inset-bottom)); inset-inline-end: 1rem; }
  .fab svg { width: 27px; height: 27px; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero { align-content: center; padding-top: 8rem; }
  .hero__graphic { width: 24vw; top: 6.5rem; }
  .hero__title { font-size: clamp(3.4rem, 8.6vw, 4.6rem); }
  .hero__lede { max-width: 34rem; font-size: 1.1rem; }
  .hero__ctas { max-width: 30rem; }
}

@media (max-width: 380px) {
  .nav .btn--sm { padding-inline: .9rem; }
}

/* ============ REDUCED MOTION ============ */


/* =========================================================
   STORY — goals and what we do (electric-blue band)
   ========================================================= */
.story { position: relative; overflow: hidden; background: var(--blue); color: var(--paper); padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.story .kicker { color: rgba(244,238,226,.72); }
.story__head { max-width: 46rem; margin-block-end: clamp(2.5rem, 6vw, 4.5rem); }
.story__lead { margin-top: 1.2rem; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.9; color: rgba(244,238,226,.88); }
.story__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story__label { font: 600 .9rem var(--f-mono); color: var(--lime); margin-block-end: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.story__label::after { content: ""; flex: 1; height: 1px; background: rgba(244,238,226,.25); }
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.goal { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.4rem 1.5rem; border-radius: 22px; background: rgba(11,20,17,.22); box-shadow: inset 0 0 0 1px rgba(244,238,226,.14); }
.goal__n { font: 700 1.6rem/1 var(--f-head); color: var(--lime); padding-top: .2rem; }
.goal h4 { font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); }
.goal p { margin-top: .3rem; color: rgba(244,238,226,.8); }
.doing { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.doing li { padding: .55rem 1rem; border-radius: 999px; background: var(--paper); color: var(--navy); font-weight: 700; font-size: .95rem; }
.doing li:nth-child(3n+2) { background: var(--lime); }
.doing li:nth-child(3n) { background: rgba(11,20,17,.35); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244,238,226,.25); }
.story__art { width: min(100%, 340px); aspect-ratio: 1; margin-top: 2rem; margin-inline-start: auto; }
.story__art svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .goal { padding: 1.1rem 1.1rem; gap: .9rem; }
  .doing li { font-size: .85rem; }
  .story__art { width: 200px; margin-top: 1.5rem; }
}

/* =========================================================
   TEAM — founders (photo slot shows a brand placeholder until a photo is added)
   ========================================================= */
.work__note { margin-top: .9rem; color: var(--ink-dim); font-size: .95rem; }
.team { background: var(--bg-2); color: var(--navy); padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.team .kicker { color: #6B7A72; }
.team__head { margin-block-end: clamp(2.2rem, 5vw, 4rem); }
.team__head h2 { max-width: 18ch; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2.2rem); align-items: start; }
.founder:nth-child(2) { margin-top: clamp(2rem, 6vw, 5rem); }
.founder:nth-child(3) { margin-top: clamp(1rem, 3vw, 2.5rem); }
.founder__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; isolation: isolate; background-color: var(--navy);
  background-image: linear-gradient(rgba(244,238,226,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(244,238,226,.06) 1px, transparent 1px); background-size: 32px 32px; }
.founder__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--tone); transform-origin: 100% 50%; transform: scaleX(var(--bar, 1)); z-index: 3; }
.founder__mono { position: absolute; inset-inline-start: 1.4rem; bottom: 1rem; font: 700 clamp(6rem, 11vw, 10rem)/1.35 var(--f-head); color: var(--tone); }
.founder__art { position: absolute; top: 7%; inset-inline-end: 7%; width: 52%; aspect-ratio: 1; }
.founder__art svg { width: 100%; height: 100%; overflow: visible; }
.founder__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.founder__meta { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem .2rem 0; }
.founder h3 { font-size: clamp(1.4rem, 1rem + 1.3vw, 2.1rem); }
@media (hover: hover) {
  .founder__photo { transition: border-radius .5s cubic-bezier(.16,1,.3,1); }
  .founder:hover .founder__photo { border-radius: 28px 28px 28px 80px; }
}
@media (max-width: 900px) {
  .team__grid { grid-template-columns: 1fr; gap: 1rem; }
  .founder, .founder:nth-child(2), .founder:nth-child(3) { margin-top: 0; display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 1.1rem; }
  .founder__photo { border-radius: 20px; }
  .founder__mono { font-size: 4.2rem; inset-inline-start: .8rem; bottom: .5rem; }
  .founder__art { width: 58%; }
  .founder__meta { padding: 0; }
  .founder h3 { font-size: 1.35rem; }
}

/* =========================== WHY MANOOT =========================== */
.why { padding: clamp(5rem, 10vw, 9rem) var(--pad); background: var(--paper); color: var(--navy); }
.why__head { max-width: 46rem; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.why__lead { margin-top: 1.1rem; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.9; color: var(--ink-dim); }
.why__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: why; }
.why__card { position: relative; padding: 1.7rem 1.6rem 1.8rem; border-radius: 22px; background: var(--bg-2); box-shadow: 0 0 0 1px rgba(11,20,17,.07), 0 24px 50px -38px rgba(11,20,17,.35); display: flex; flex-direction: column; gap: .55rem; transition: transform .5s var(--ease), background .5s var(--ease); }
.why__card:hover { background: #fff; transform: translateY(-4px); }
.why__ic { width: 2.6rem; height: 2.6rem; color: var(--blue); margin-block-end: .5rem; }
.why__ic svg { width: 100%; height: 100%; display: block; }
.why__card h3 { font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); line-height: 1.5; }
.why__card p { color: rgba(11,20,17,.68); line-height: 1.8; }
.value { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: 30px; background: var(--blue); color: var(--paper); box-shadow: 0 40px 80px -50px rgba(11,20,17,.7); }
.value__kick { font: 600 .9rem var(--f-mono); color: var(--lime); margin-block-end: .7rem; }
.value__title { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem); line-height: 1.35; }
.value__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.value__list li { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border-radius: 16px; background: rgba(11,20,17,.22); box-shadow: inset 0 0 0 1px rgba(244,238,226,.14); font-weight: 700; line-height: 1.5; }
.value__list li::before { content: ""; flex: none; width: .65rem; height: .65rem; border-radius: 3px; background: var(--lime); }
@media (max-width: 1000px) { .why__grid { grid-template-columns: repeat(2, 1fr); } .value { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .why__grid { grid-template-columns: 1fr; } .value__list { grid-template-columns: 1fr; } .why__card { padding: 1.4rem; } }

/* services: fifth card link + CTA extras */
.svc__link { margin-top: auto; font: 700 .9rem var(--f-head); color: var(--blue); padding: .5rem .7rem; border-radius: 8px; background: rgba(21,94,76,.07); align-self: stretch; text-decoration: none; }
.svc__link:hover { background: rgba(21,94,76,.14); }
.cta__em { font-style: normal; color: var(--blue); }
.cta__sub { font-size: clamp(1.05rem, .95rem + .4vw, 1.35rem); line-height: 1.8; color: var(--ink-dim); max-width: 38rem; margin-block: -1.4rem 2.2rem; }
.cta { grid-template-columns: 1fr auto; gap: clamp(2rem, 5vw, 5rem); }
.cta__qr { position: relative; z-index: 2; margin: 0; padding: 1.4rem 1.4rem 1rem; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(11,20,17,.06), 0 40px 80px -45px rgba(11,20,17,.55); display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.cta__qr img { width: clamp(150px, 14vw, 200px); height: auto; display: block; }
.cta__qr figcaption { font: 700 .95rem var(--f-head); color: var(--blue); }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } .cta__qr { justify-self: start; } }
@media (hover: none) and (max-width: 900px) { .cta__qr { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fab { transform: none; }
  .toast { opacity: 1; }
}

/* =========================================================
   LIGHT THEME notes: the page is ivory; the emerald story band, the
   plans card and the code editor are the dark accents.
   ========================================================= */
.story .c-lime { color: var(--lime); }
.story { --ink-dim: rgba(244,238,226,.72); --line: rgba(244,238,226,.16); }
.project--plans { --line: rgba(244,238,226,.14); --ink-dim: #B6CCBF; color: var(--paper); }
.project--plans .tags li { background: rgba(11,20,17,.25); }
.project--plans .tags li:first-child { background: var(--lime); }
.ui-window { --line: rgba(244,238,226,.12); --ink-dim: #9AA79F; }
.founder__photo { --line: rgba(244,238,226,.12); }
.marquee { box-shadow: 0 20px 40px -30px rgba(11,20,17,.4); }
