:root {
  --green: #005931;
  --green-2: #0A6B3B;
  --yellow: #FAE90C;
  --cream: #FFF8D6;
  --white: #ffffff;
  --nav-h: 64px;
  --head: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
html[lang="ar"] {
  --head: 'Cairo', system-ui, sans-serif;
  --body: 'Cairo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--green);
  background: var(--white);
  overflow-x: clip;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
.logo, .hero-mark, .obj, .foot-mark { direction: ltr; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 800; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.tone-cream :focus-visible, .why :focus-visible, .about :focus-visible, .team :focus-visible { outline-color: var(--green); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--green); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  font-family: var(--body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-block-end: 0.75rem; display: flex; align-items: center; gap: 10px;
}
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 0.95rem; }
.kicker::before { content: ''; inline-size: 26px; block-size: 3px; background: currentColor; border-radius: 2px; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); max-inline-size: 18ch; }
html[lang="ar"] h2 { max-inline-size: 22ch; }
section { padding-block: clamp(56px, 8vw, 96px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 50px; padding-inline: 22px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-y { background: var(--yellow); color: var(--green); }
.btn-y:hover { background: var(--white); }
.btn-o { border-color: currentColor; color: var(--white); }
.btn-o:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-g { background: var(--green); color: var(--yellow); margin-block-start: 28px; }
.btn-og { border-color: var(--green); color: var(--green); }
.btn-og:hover { background: var(--green); color: var(--yellow); }
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.about-ctas .btn { margin: 0; }
.btn-g:hover { background: var(--green-2); }
.btn-sm { min-block-size: 40px; padding-inline: 14px; font-size: .92rem; }
.pico { inline-size: 20px; block-size: 20px; flex: none; }
.arrow { inline-size: 18px; block-size: 18px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--green); color: var(--white);
  border-block-end: 1px solid rgba(250, 233, 12, .22);
}
.nav-in {
  max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter);
  block-size: var(--nav-h); display: flex; align-items: center; gap: 20px;
}
.brand { display: block; flex: none; }
.logo { block-size: 38px; inline-size: auto; aspect-ratio: 1710 / 506; }
.links { display: flex; gap: 26px; margin-inline-start: auto; }
.links a { text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: 6px; border-block-end: 2px solid transparent; }
.links a:hover { border-color: var(--yellow); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang {
  text-decoration: none; font-weight: 600; font-size: .95rem; min-block-size: 40px; min-inline-size: 44px;
  display: inline-flex; align-items: center; justify-content: center; padding-inline: 10px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
}
.lang[lang="ar"] { font-family: 'Cairo', system-ui, sans-serif; font-size: 1rem; }
.lang:hover { border-color: var(--yellow); color: var(--yellow); }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav-in { gap: 10px; }
  .logo { block-size: 32px; }
  .nav-tools { margin-inline-start: auto; gap: 8px; }
  .call { padding-inline: 0; inline-size: 40px; }
  .call-num { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center;
    inline-size: 40px; block-size: 40px; border-radius: 999px; background: transparent; color: var(--white);
    border: 1.5px solid rgba(255,255,255,.45); cursor: pointer; padding: 0;
  }
  .menu-btn span { inline-size: 16px; block-size: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .links {
    position: absolute; inset-inline: 0; top: var(--nav-h); flex-direction: column; gap: 0;
    background: var(--green); padding: 8px var(--gutter) 20px; border-block-end: 1px solid rgba(250,233,12,.22);
    display: none;
  }
  .links.open { display: flex; }
  .links a { padding-block: 14px; border-block-end: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; }
}

/* Chapters (hero = 00, filters = 01-04): one huge word, one object in front, a small label */
.chapter {
  position: relative; overflow: hidden; isolation: isolate;
  min-block-size: 100vh; min-block-size: 100svh; padding-block: 40px 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  --word: var(--yellow); --ink: var(--white); --blob: rgba(10, 107, 59, .6); --knock: var(--green);
  background: var(--green); color: var(--ink);
}
.tone-cream { background: var(--cream); --word: var(--green); --ink: var(--green); --blob: rgba(250, 233, 12, .13); --knock: var(--cream); }
.hero { min-block-size: calc(100svh - var(--nav-h)); }
.blob {
  position: absolute; z-index: -1; background: var(--blob); pointer-events: none;
  border-radius: 46% 54% 61% 39% / 44% 38% 62% 56%;
}
.b1 { inline-size: 62vmin; block-size: 54vmin; inset-block-start: -10vmin; inset-inline-end: -14vmin; }
.b2 { inline-size: 40vmin; block-size: 44vmin; inset-block-end: -12vmin; inset-inline-start: -10vmin; border-radius: 58% 42% 37% 63% / 52% 61% 39% 48%; }
.knock { fill: var(--knock); stroke: var(--knock); stroke-width: 26; stroke-linejoin: round; }
.knock-fill { fill: var(--knock); }
.ch-stage { position: relative; display: grid; place-items: center; }
.ch-object { position: relative; z-index: 2; grid-area: 1 / 1; will-change: transform; }
.obj, .hero-mark { inline-size: min(76vw, 360px); block-size: auto; overflow: visible; }
.obj-fuel, .obj-air { inline-size: min(86vw, 420px); }
.ch-word {
  position: relative; z-index: 3; margin: -0.42em 0 0; text-align: center; white-space: nowrap;
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif; color: var(--word);
  font-size: var(--fs, min(40vw, 22rem)); line-height: .82; letter-spacing: -0.02em; will-change: transform;
}
.ch-word span, .ch-object > svg { display: inline-block; will-change: transform; }
.mv-rot { transform-box: fill-box; transform-origin: center; }
.mv-in { transform: translateY(40px); }
.mv-out { transform: translateY(395px); }
html[lang="ar"] .ch-word { font-family: 'Cairo', sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1; margin-block-start: -0.3em; }
.hero .ch-word { --fs: min(21vw, 18rem); }
html[lang="ar"] .hero .ch-word { --fs: min(34vw, 20rem); }
.ch-cabin .ch-word { --fs: min(25vw, 18rem); }
.ch-fuel .ch-word { --fs: min(31vw, 20rem); }
html[lang="ar"] .ch-word { --fs: min(34vw, 20rem); }
html[lang="ar"] .ch-cabin .ch-word { --fs: min(22vw, 14rem); }
.ch-label { position: relative; z-index: 3; padding-inline: var(--gutter); max-inline-size: 420px; }
.num {
  display: inline-grid; place-items: center; min-inline-size: 38px; block-size: 26px; padding-inline: 8px; border-radius: 999px;
  border: 1.5px solid currentColor; font-weight: 600; font-size: .78rem; letter-spacing: .08em; margin-block-end: 12px;
}
.ch-label h1, .ch-label h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); max-inline-size: none; margin-block-end: 8px; }
.ch-label > p, .more p { font-size: 1rem; max-inline-size: 34ch; }
.hero h1 span { color: var(--yellow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 20px; }
.more { margin-block-start: 10px; }
.more p { opacity: .9; }
.more-btn { margin-block-start: 18px; background: var(--word); color: var(--ink); cursor: pointer; }
.tone-green .more-btn { color: var(--green); }
.tone-cream .more-btn { color: var(--yellow); }
.more-btn:hover { filter: brightness(1.08); }
.flow { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 1; pointer-events: none; }
.hero .ch-object { z-index: 2; }

#halo { transform-box: fill-box; transform-origin: center; animation: breathe 4.8s ease-in-out infinite; }
#ring { transform-box: fill-box; transform-origin: center; animation: breathe-ring 4.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.97); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes breathe-ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (min-width: 900px) {
  .chapter { display: grid; grid-template-columns: 1fr; align-items: center; padding-block: 64px; }
  .ch-stage { grid-area: 1 / 1; display: grid; place-items: center; }
  .ch-stage { grid-template-rows: auto auto; }
  .ch-object { grid-area: 1 / 1; }
  .ch-word { grid-area: 2 / 1; margin: -0.1em 0 0; padding-block-start: 0; }
  .ch-label { grid-area: 1 / 1; align-self: start; justify-self: start; margin-inline-start: max(var(--gutter), calc((100vw - 1200px) / 2)); padding-inline: 0; max-inline-size: 330px; margin-block-start: 4vh; }
  .hero .ch-label { max-inline-size: 380px; margin-block-start: 2vh; }
  .hero .ch-word { padding-block-start: 0; margin-block-start: -0.08em; }
  .hero .ch-object { transform: none; }
  .obj, .hero-mark { inline-size: min(30vw, 400px); }
  .hero .hero-mark { inline-size: min(27vw, 390px); }
  .obj-fuel, .obj-air { inline-size: min(36vw, 480px); }
  .ch-word { --fs: min(26vw, 20rem); }
  .ch-cabin .ch-word { --fs: min(21vw, 19rem); }
  .ch-fuel .ch-word { --fs: min(25vw, 21rem); }
  .hero .ch-word { --fs: min(17vw, 17rem); }
  .ch-oil .ch-object, .ch-cabin .ch-object { transform: translateX(14%); }
  html[lang="ar"] .ch-word { --fs: min(26vw, 20rem); }
  html[lang="ar"] .ch-cabin .ch-word { --fs: min(17vw, 16rem); }
}

.note-band { margin: 0; padding-block: 28px; background: var(--white); font-weight: 600; text-align: center; }

/* Why */
.why { background: var(--cream); color: var(--green); }
.points { display: grid; gap: 36px; margin-block-start: 48px; }
.points .rule {
  display: block; inline-size: 64px; block-size: 14px; margin-block-end: 18px;
  background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 9px);
}
.points h3 { font-size: 1.35rem; margin-block-end: 8px; }
.points p { max-inline-size: 34ch; }
@media (min-width: 820px) { .points { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* About */
.about { background: var(--white); }
.about-in { display: grid; gap: 24px; }
.about-text { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.6; max-inline-size: 46ch; }
html[lang="ar"] .about-text { line-height: 1.85; }
@media (min-width: 900px) { .about-in { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; } }

/* Team */
.team { background: var(--cream); }
.people { display: grid; gap: 14px; grid-template-columns: 1fr; margin-block-start: 40px; }
.people li { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--white); }
.ini {
  flex: none; inline-size: 58px; block-size: 58px; border-radius: 50%; background: var(--yellow); color: var(--green);
  display: grid; place-items: center; font-family: 'Archivo Black', 'Montserrat', sans-serif; font-size: 1.15rem;
  box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 5px var(--green);
}
.people h3 { font-size: 1.15rem; }
.people p { font-size: .95rem; opacity: .85; }
.people .latin { font-family: 'Montserrat', system-ui, sans-serif; font-size: .82rem; opacity: .7; line-height: 1.3; }
@media (min-width: 620px) { .people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) {
  .people { grid-template-columns: repeat(4, 1fr); }
  .people li { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* Contact */
.contact { background: var(--green-2); color: var(--white); }
.contact .kicker { color: var(--yellow); }
.contact h2 { color: var(--white); }
.contact-in { display: grid; gap: 40px; }
.details { margin: 32px 0 0; display: grid; gap: 18px; }
.details dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); font-weight: 600; }
html[lang="ar"] .details dt { letter-spacing: 0; font-size: .95rem; }
.details dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; }
.details a { text-decoration: none; border-block-end: 2px solid var(--yellow); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.map { border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(250,233,12,.5); min-block-size: 300px; background: var(--green); }
.map iframe { display: block; inline-size: 100%; block-size: 100%; min-block-size: 300px; border: 0; }
@media (min-width: 900px) { .contact-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; } .map iframe { min-block-size: 420px; } }

/* Footer */
.foot { background: var(--green); color: rgba(255,255,255,.85); padding-block: 36px; font-size: .9rem; border-block-start: 1px solid rgba(250,233,12,.22); }
.foot-in { display: grid; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; }
.foot-mark { inline-size: 36px; block-size: 36px; }
.foot a { color: var(--yellow); }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } }

/* Scroll reveals */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Arabic page loads only Cairo: keep Latin bits and initials on Cairo there */
html[lang="ar"] .people .latin { font-family: 'Cairo', system-ui, sans-serif; }
html[lang="ar"] .ini { font-family: 'Cairo', system-ui, sans-serif; font-weight: 800; }
