/* MBTCO v18 · Version C · Two-line group */
@font-face { font-family: "Plex"; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C; }

:root {
  --navy: #1B3A5C;
  --navy-2: #12304F;
  --navy-deep: #0C2238;
  --ink: #0F1E2E;
  --muted: #3E4A58;
  --line: #DCE1E7;
  --paper: #F3F5F8;
  --white: #FFFFFF;
  --gold: #B8975A;
  --gold-ink: #7A5E2C;     /* gold for text on white: 5.6:1 */
  --gold-soft: #EFE6D4;
  --bg: var(--white);
  --accent: var(--navy);
  --font: "Plex", "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --display-weight: 500;
  --display-tracking: -0.015em;
  --t-h2: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --r: 20px;
  --r-s: 12px;
  --hdr: 72px;
  --gut: clamp(16px, 4vw, 48px);
  --gutter: 24px;
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
html[lang="ar"] { --font: "Plex Arabic", "Plex", system-ui, sans-serif; --display-tracking: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
:is(.hero, .platform, .ftr, .tile--navy) :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--navy); }
.hero :focus-visible { box-shadow: 0 0 0 6px rgba(8,22,38,.9); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
[dir="ltr"] { unicode-bidi: isolate; }

.skip { position: fixed; inset-inline-start: 16px; top: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; transform: translateY(-160%); transition: transform .2s; text-decoration: none; }
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 500 1rem/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s, box-shadow .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-deep); box-shadow: 0 8px 22px -10px rgba(12, 34, 56, .55); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gold-soft); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #CDAE74; }
.btn--wide { width: 100%; }
.i-arrow { flex: none; transition: transform .2s var(--ease); }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
.btn:hover .i-arrow, .link:hover .i-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .i-arrow, [dir="rtl"] .link:hover .i-arrow { transform: scaleX(-1) translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 8px) / 0 1.5px; transition: background-size .25s var(--ease); }
[dir="rtl"] .link { background-position: 100% calc(100% - 8px); }
.link:hover { background-size: calc(100% - 26px) 1.5px; }

/* ---------------------------------------------------------------- header */
.hdr { position: fixed; inset: 0 0 auto 0; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 24px; }
.hdr__brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.hdr__brand img { height: 28px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.hdr__links { display: flex; gap: 4px; }
.hdr__links a, .hdr__lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink); border-radius: 999px; transition: background-color .15s, color .15s; }
.hdr__links a:hover, .hdr__lang:hover { background: var(--paper); color: var(--navy); }
.hdr__lang { color: var(--navy); font-family: "Plex Arabic", var(--font); }
html[lang="ar"] .hdr__lang { font-family: "Plex", sans-serif; }
.hdr__cta { margin-inline-start: 8px; min-height: 44px; padding: 10px 20px; }
.hdr__menu { display: none; margin-inline-start: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }
.hdr__menu svg:last-child { display: none; }
.hdr__menu[aria-expanded="true"] svg:first-child { display: none; }
.hdr__menu[aria-expanded="true"] svg:last-child { display: block; }

@media (max-width: 980px) {
  .hdr__menu { display: inline-flex; }
  .hdr__nav { position: fixed; inset: var(--hdr) 0 auto 0; height: calc(100dvh - var(--hdr)); flex-direction: column; align-items: stretch; gap: 8px; padding: 24px var(--gut) 32px; background: #fff; margin: 0; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; overflow-y: auto; }
  .hdr.is-open .hdr__nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .hdr__links { flex-direction: column; gap: 0; }
  .hdr__links a { font-size: 1.5rem; min-height: 60px; padding: 0 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hdr__lang { font-size: 1.15rem; min-height: 56px; padding: 0 4px; }
  .hdr__cta { margin: 12px 0 0; min-height: 52px; }
  body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- hero: two panels */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1000px; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero__head { position: absolute; inset: 0 0 auto 0; z-index: 3; padding-top: calc(var(--hdr) + clamp(28px, 5vh, 56px)); pointer-events: none; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1rem; color: #F2E7CF; }
.hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero__h1 { margin-top: 14px; max-width: 16ch; font-weight: 600; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; text-shadow: 0 2px 24px rgba(5, 15, 28, .35); }
html[lang="ar"] .hero__h1 { letter-spacing: 0; line-height: 1.3; max-width: 18ch; }
.hero__panels { display: flex; height: 100%; position: relative; z-index: 1; }
.panel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.panel--energy .panel__video { object-position: 70% 50%; }
.panel__video.is-on { opacity: 1; }
.panel__media::after { z-index: 2; }
.hero__pause { position: absolute; z-index: 4; inset-inline-end: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(8,22,38,.55); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .15s; }
.hero__pause[hidden] { display: none; }
.hero__pause:hover { background: rgba(8,22,38,.85); }
.hero__pause:active { transform: scale(.94); }
.hero__pause svg:last-child, .hero__pause[aria-pressed="true"] svg:first-child { display: none; }
.hero__pause[aria-pressed="true"] svg:last-child { display: block; }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .7s var(--ease); isolation: isolate; }
.panel + .panel { border-inline-start: 2px solid var(--gold); }
@media (hover: hover) and (min-width: 761px) {
  .hero__panels:hover .panel, .hero__panels:focus-within .panel { flex-grow: 1; }
  .hero__panels .panel:hover, .hero__panels .panel:focus-within { flex-grow: 1.45; }
}
.panel__media { position: absolute; inset: 0; z-index: -1; }
.panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 38, .8) 0%, rgba(8, 22, 38, .45) 30%, rgba(8, 22, 38, .08) 46%, rgba(8, 22, 38, .1) 52%, rgba(8, 22, 38, .82) 100%); }
.panel__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel--energy .panel__img { object-position: 80% 50%; }
.panel:hover .panel__img { transform: scale(1.03); }
.panel__body { position: absolute; inset: auto 0 0 0; padding: 0 clamp(20px, 3.4vw, 48px) clamp(28px, 5vh, 52px); display: grid; gap: 12px; justify-items: start; }
.panel__title { font-weight: 600; font-size: clamp(1.6rem, 1rem + 1.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; }
.panel__sub { max-width: 34ch; color: rgba(255, 255, 255, .9); font-size: 1.0625rem; }
.panel .btn { margin-top: 6px; }
@media (min-width: 761px) { .panel--trade .panel__body { padding-inline-start: max(var(--gut), calc((100vw - var(--max)) / 2)); } }
@media (max-width: 760px) {
  .hero { height: 100svh; max-height: none; min-height: 640px; display: flex; flex-direction: column; }
  .hero__head { position: relative; padding-block: calc(var(--hdr) + 20px) 18px; background: var(--navy-deep); }
  .hero__h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 2.6rem); margin-top: 10px; }
  .hero__panels { flex-direction: column; flex: 1 1 0; min-height: 0; }
  .panel { flex: 1 1 0; min-height: 0; }
  .panel .btn { margin-top: 2px; min-height: 46px; }
  .panel + .panel { border-inline-start: 0; border-top: 2px solid var(--gold); }
  .panel__media::after { background: linear-gradient(180deg, rgba(8, 22, 38, .05) 20%, rgba(8, 22, 38, .85) 100%); }
  .panel__body { padding: 0 var(--gut) 22px; gap: 8px; }
  .panel__sub { font-size: 1rem; }
}

/* entrance: once, on load */
@media (prefers-reduced-motion: no-preference) {
html.m-enter:not(.m-enter-done) .hero[data-enter] .hero__eyebrow,
html.m-enter:not(.m-enter-done) .hero[data-enter] .hero__h1,
html.m-enter:not(.m-enter-done) .hero[data-enter] .panel__body { opacity: 0; transform: translateY(16px); }
.hero[data-enter] .hero__eyebrow, .hero[data-enter] .hero__h1, .hero[data-enter] .panel__body { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero[data-enter] .hero__h1 { transition-delay: .08s; }
.hero[data-enter] .panel--trade .panel__body { transition-delay: .22s; }
.hero[data-enter] .panel--energy .panel__body { transition-delay: .32s; }
html.m-enter:not(.m-enter-done) .hero[data-enter] .panel__img { transform: scale(1.06); }
.hero[data-enter] .panel__img { transition: transform 1.4s var(--ease); }
}

/* ---------------------------------------------------------------- intro: statement + logo wall */
.intro { padding-block: clamp(64px, 9vw, 120px); }
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 7vh, 80px) var(--gutter); align-items: center; }
.intro__statement { grid-column: 1 / 10; }
.intro__logos { grid-column: 1 / -1; min-width: 0; }
.statement { font-weight: 500; font-size: clamp(1.5rem, 0.9rem + 2.2vw, 3rem); line-height: 1.22; letter-spacing: -0.012em; max-width: 30ch; text-wrap: pretty; }
html[lang="ar"] .statement { line-height: 1.55; letter-spacing: 0; }
.intro [data-moment="word-highlight"] .statement { font-size: clamp(1.5rem, 0.9rem + 2.2vw, 3rem); }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.marquee__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.label { font-size: .95rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 20px; height: 2px; background: var(--gold); }
.marquee__pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .15s; flex: none; }
.marquee__pause:hover { background: var(--paper); }
.marquee__pause:active { transform: scale(.94); }
.marquee__pause svg:last-child, .marquee__pause[aria-pressed="true"] svg:first-child { display: none; }
.marquee__pause[aria-pressed="true"] svg:last-child { display: block; }
.marquee { display: grid; gap: 12px; border-block: 1px solid var(--line); padding-block: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: mq 56s linear infinite; }
.marquee__row--rev .marquee__track { animation-duration: 64s; animation-direction: reverse; }
html[dir="rtl"] .marquee__track { animation-direction: reverse; }
html[dir="rtl"] .marquee__row--rev .marquee__track { animation-direction: normal; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track, .intro__logos:focus-within .marquee__track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__list { display: flex; margin: 0; padding: 0; list-style: none; }
.logo { flex: none; display: flex; align-items: center; justify-content: center; height: 76px; padding-inline: clamp(24px, 3vw, 44px); }
.logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.logo:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.logo--hassani img { height: 54px; max-width: 230px; opacity: .7; }
.logo--mark { gap: 10px; }
.logo--mark img { height: 36px; }
.logo--mark span { font: 600 .85rem/1.15 "Plex", sans-serif; color: #6B7684; white-space: nowrap; transition: color .3s; }
.logo--mark:hover span { color: var(--navy); }
@media (max-width: 900px) { .intro__statement { grid-column: 1 / -1; } }
@media (max-width: 480px) { .logo { height: 64px; } .logo img { height: 32px; max-width: 140px; } .intro__actions .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; width: auto; }
  .marquee__dup, .marquee__list [aria-hidden="true"], .marquee__row--rev, .marquee__pause { display: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__row { overflow-x: auto; scrollbar-width: thin; }
}

/* ---------------------------------------------------------------- headings */
.sec-h { font-weight: 600; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
html[lang="ar"] .sec-h { letter-spacing: 0; line-height: 1.35; }

/* ---------------------------------------------------------------- bento */
.bento-sec { padding-block: 0 clamp(64px, 9vw, 120px); }
.bento { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(220px, 31vh)); gap: var(--gutter); grid-template-areas: "a a b c" "a a d e"; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; margin: 0; isolation: isolate; }
.tile--a { grid-area: a; } .tile--b { grid-area: b; } .tile--c { grid-area: c; } .tile--d { grid-area: d; } .tile--e { grid-area: e; } .tile--f { grid-area: f; }
.tile--photo { padding: 0; background: var(--paper); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .9s var(--ease); }
.tile--photo:hover .tile__img { transform: scale(1.03); }
.tile__over { position: absolute; inset: auto 0 0 0; padding: 28px; color: #fff; display: grid; gap: 4px; background: linear-gradient(180deg, transparent, rgba(8, 22, 38, .78)); padding-top: 80px; }
.tile__num { font-weight: 600; font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: inline-block; }
.tile--a .tile__num { font-size: clamp(3.5rem, 2rem + 5vw, 7rem); }
.tile__num--word { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); letter-spacing: -0.02em; }
.tile:not(.tile--photo) { container-type: inline-size; }
.tile:not(.tile--photo) .tile__num { white-space: nowrap; font-size: clamp(1.9rem, 25cqi, 4rem); }
.tile:not(.tile--photo) .tile__num--word { font-size: clamp(1.6rem, 17cqi, 3rem); }
html[lang="ar"] .tile__num { letter-spacing: 0; }
.tile__label { font-size: 1rem; line-height: 1.4; max-width: 24ch; }
.tile--navy { background: var(--navy); color: #fff; }
.tile--navy .tile__label { color: rgba(255, 255, 255, .86); }
.tile--paper { background: var(--paper); color: var(--ink); }
.tile--paper .tile__num { color: var(--navy); }
.tile--gold { background: var(--gold); color: var(--ink); }
.tile--soft { background: var(--gold-soft); color: var(--ink); }
.tile--soft .tile__num { color: var(--navy); }
.note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: minmax(180px, auto); grid-template-areas: "a a" "a a" "b c" "d e"; }
}
@media (max-width: 480px) {
  .bento { gap: 12px; grid-auto-rows: minmax(150px, auto); grid-template-areas: "a a" "a a" "b b" "c d" "e e"; }
  .tile { padding: 18px; }
  .tile--b, .tile--c, .tile--d, .tile--e { min-height: 150px; }
}

/* reveal: staggered, only with script and motion */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal]:not(.is-in) { transform: translateY(36px); }
  html.js [data-reveal] { transition: transform .8s var(--ease), box-shadow .25s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  html.js [data-reveal].is-in:hover { transition-delay: 0s; }
}

/* ---------------------------------------------------------------- divisions */
.div { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.div--energy { background: var(--paper); border-top: 0; }
.div__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px var(--gutter); align-items: end; margin-bottom: 40px; }
.div__head .sec-h, .div__head .div__lead { grid-column: 1 / 9; }
.div__head .link { grid-column: 9 / 13; grid-row: 2; justify-self: end; }
.div__lead { font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.cards { display: grid; gap: var(--gutter); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); scroll-margin-top: calc(var(--hdr) + 16px); }
.div--energy .card { border-color: transparent; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(15, 30, 46, .35); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--art { display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.solar-art { width: 46%; height: auto; transition: transform .8s var(--ease); }
.card:hover .solar-art { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; display: grid; gap: 6px; }
.card__title { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.card__text { color: var(--muted); font-size: 1rem; }
@media (max-width: 1100px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } .div__head .sec-h, .div__head .div__lead, .div__head .link { grid-column: 1 / -1; grid-row: auto; justify-self: start; } }
@media (max-width: 700px) { .cards--3, .cards--4 { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 116px 1fr; align-items: stretch; border-radius: 16px; }
  .card__media { aspect-ratio: auto; height: 100%; min-height: 116px; }
  .card__body { padding: 14px 16px; align-content: center; }
  .card__title { font-size: 1.075rem; }
  .card__text { font-size: .95rem; line-height: 1.45; }
  .solar-art { width: 70%; } .div__head { margin-bottom: 28px; } }
@media (min-width: 701px) and (max-width: 1100px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } .cards--3 .card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; } .cards--3 .card:last-child .card__body { align-content: center; } }

/* ---------------------------------------------------------------- platform band */
.platform { background: var(--navy); color: #fff; }
.platform__in { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gutter); align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.platform__h { font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance; }
html[lang="ar"] .platform__h { letter-spacing: 0; line-height: 1.4; }
.platform__text p { margin-top: 16px; color: rgba(255, 255, 255, .86); max-width: 52ch; }
.platform__text { grid-column: 1 / 7; }
.platform__media { grid-column: 8 / 13; }
.platform__text::before { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-bottom: 24px; }
.platform__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.platform__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.platform__media:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .platform__text, .platform__media { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- quote */
.quote { padding-block: clamp(64px, 9vw, 120px); }
.quote__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--gutter); align-items: start; }
.quote__intro { grid-column: 1 / 6; }
.form { grid-column: 7 / 13; }
.quote__line { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.contact { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 16px); }
.contact > div { display: grid; grid-template-columns: minmax(130px, .9fr) 1.4fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact dt { color: var(--muted); font-size: .95rem; }
.contact dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact dd a { text-decoration: none; color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 9px) / 0 1.5px; transition: background-size .25s var(--ease); }
.contact dd a:hover { background-size: 100% 1.5px; }
.contact .wa { width: 44px; justify-content: center; color: #128C4A; border-radius: 50%; }
.contact .wa:hover { background: #E8F5EE; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; background: var(--paper); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.f { grid-column: 1 / -1; display: grid; gap: 6px; }
.f--half { grid-column: span 1; }
.f label { font-weight: 500; font-size: .95rem; }
.f input, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #B9C2CD; border-radius: var(--r-s); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:hover, .f textarea:hover { border-color: var(--navy); }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(184, 151, 90, .45); }
.f [aria-invalid="true"] { border-color: #B42318; }
.f__err { min-height: 1.4em; font-size: .9rem; color: #B42318; }
.f--submit { margin-top: 8px; }
.form__ok { min-height: 1.4em; color: #146C43; font-weight: 500; }
@media (max-width: 900px) { .quote__intro, .form { grid-column: 1 / -1; } }
@media (max-width: 520px) { .f--half { grid-column: 1 / -1; } .contact > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------------------------------------------------------------- footer */
.ftr { background: var(--navy-deep); color: rgba(255, 255, 255, .86); padding-block: clamp(56px, 7vw, 88px) 28px; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr__brand img { height: 32px; width: auto; }
.ftr__brand p { margin: 16px 0 24px; color: #fff; font-size: 1.1rem; }
.ftr__h { font-size: .95rem; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.ftr__col a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .86); text-decoration: none; transition: color .15s; }
.ftr__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ftr__addr { padding-top: 10px; }
.ftr__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.ftr__credits { flex-basis: 100%; order: 3; font-size: .8rem; color: rgba(255,255,255,.72); }
.ftr__credits a { min-height: 0 !important; padding: 0 !important; display: inline !important; color: rgba(255,255,255,.86) !important; }
.ftr__base a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; padding-inline: 8px; }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr__top { grid-template-columns: 1fr; } }

/* WhatsApp floating button */
html.js .fab.is-off { opacity: 0; visibility: hidden; transform: translateY(12px); }
.fab { transition: opacity .25s, visibility .25s, transform .2s var(--ease); }
.fab { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #128C4A; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab:active { transform: scale(.96); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; padding: 24px; }
.nf h1 { font-size: 2rem; }
.nf p { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .panel, .panel:hover { flex-grow: 1 !important; }
}

/* one section a screen on desktop */
@media (min-width: 1024px) and (min-height: 680px) {
  .intro, .bento-sec, .div, .quote { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .bento-sec { padding-block: calc(var(--hdr) + 24px) 48px; }
  .quote { padding-block: calc(var(--hdr) + 24px) 40px; }
}
