/* =========================================================
   Hadiqah AI — stylesheet
   Palette: forest #10221B · cream #F5F0E6 · maroon #8A1538
            red #D33A63 · mint #8FD3A8
   ========================================================= */

:root {
  --forest: #10221B;
  --forest-2: #163129;
  --ink: #0A1611;
  --cream: #F5F0E6;
  --cream-2: #EDE6D8;
  --maroon: #8A1538;
  --maroon-2: #6E0F2C;
  --red: #D33A63;
  --mint: #8FD3A8;
  --mint-2: #5FB184;
  --led: #FF7AB6;

  --bg: var(--forest);
  --fg: var(--cream);
  --muted: rgba(245, 240, 230, 0.62);
  --line: rgba(245, 240, 230, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", serif;

  --gutter: clamp(20px, 5vw, 96px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
button { font: inherit; background: none; border: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.2rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-display em { font-style: italic; font-weight: 300; color: var(--mint); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.2rem;
}
[data-theme="light"] .eyebrow, .tech .eyebrow { color: #256B3E; } /* AA on cream */
.lede { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; max-width: 36em; color: var(--muted); margin-top: 1.5rem; }
.src { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); opacity: .8; margin-top: 1rem; }
.section-head { max-width: 900px; margin-bottom: clamp(3rem, 6vw, 5rem); }

/* Wordmark */
.wm { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 48; letter-spacing: -0.015em; }
.wm .ai { color: var(--red); font-style: italic; }
.wm-ai { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.1em; font-size: 0.72em; vertical-align: 0.12em; margin-left: 0.1em; }
.wm-lg { font-size: 2rem; }

/* Split-text masks */
.split .line, .split .word { display: inline-block; }
.split-mask { overflow: hidden; vertical-align: bottom; }

/* ---------- Theme per scene (nav colours) ---------- */
[data-theme="dark"] { --bg: var(--forest); --fg: var(--cream); --muted: rgba(245, 240, 230, 0.62); --line: rgba(245, 240, 230, 0.14); }
[data-theme="light"] { --bg: var(--cream); --fg: var(--forest); --muted: rgba(16, 34, 27, 0.68); --line: rgba(16, 34, 27, 0.14); }
[data-theme="maroon"] { --bg: var(--maroon); --fg: var(--cream); --muted: rgba(245, 240, 230, 0.72); --line: rgba(245, 240, 230, 0.2); }
.scene { position: relative; background: var(--bg); color: var(--fg); }
html[data-theme="light"] .nav { --fg: var(--forest); --bg: var(--cream); }
html[data-theme="maroon"] .nav { --fg: var(--cream); --bg: var(--maroon); }
html[data-theme="light"] .scene-nav a { background: rgba(16, 34, 27, 0.28); }
html[data-theme="light"] .scene-nav a::after { color: var(--forest); }
html[data-theme="light"] .progress span { background: var(--red); }
html[data-theme="light"] .cursor-dot { background: var(--forest); }
html[data-theme="light"] .cursor-ring { border-color: rgba(16, 34, 27, 0.5); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--forest); color: var(--cream);
  display: grid; place-items: center;
}
.loader-inner { display: grid; justify-items: center; gap: 1.2rem; }
.sprout-stem { stroke-dasharray: 80; stroke-dashoffset: 80; }
.sprout-leaf { transform-origin: 60px 78px; transform: scale(0); }
.sprout-leaf-r { transform-origin: 60px 64px; }
.sprout-seed { transform-origin: 60px 132px; }
.loader-word { font-size: 1.6rem; }
.loader-bar { width: 160px; height: 1px; background: rgba(245, 240, 230, 0.15); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; }

/* ---------- Chrome: progress, cursor, grain, vignette ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 900; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; }

.cursor { position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none; mix-blend-mode: normal; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--cream); }
.cursor-ring { position: absolute; width: 38px; height: 38px; margin: -19px; border-radius: 50%; border: 1px solid rgba(245, 240, 230, 0.55); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
.cursor-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--forest); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-hover .cursor-ring { width: 76px; height: 76px; margin: -38px; background: var(--mint); border-color: var(--mint); }
.cursor.is-hover .cursor-dot { opacity: 0; }
.cursor.is-hover .cursor-label { opacity: 1; }
.cursor.is-down .cursor-ring { transform: scale(.85); }

.grain { position: fixed; inset: -50%; z-index: 920; pointer-events: none; opacity: 0.075; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-5%,-2%)} 80%{transform:translate(4%,4%)} 100%{transform:translate(0,0)} }
.vignette { position: fixed; inset: 0; z-index: 910; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(5, 12, 9, 0.45) 100%); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: var(--nav-h); padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  color: var(--fg);
  transition: color .5s, transform .5s var(--ease);
}
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 60%, transparent 100%); pointer-events: none; transition: background .5s; }
html[data-theme="dark"] .nav, html[data-theme="maroon"] .nav { text-shadow: 0 0 3px rgba(10, 22, 17, .9), 0 1px 2px rgba(10, 22, 17, .75), 0 2px 12px rgba(10, 22, 17, .45); }
.nav.is-hidden { transform: translateY(-110%); }
.nav > * { position: relative; }
.nav-brand { font-size: 1.35rem; display: flex; align-items: baseline; gap: .2em; min-height: 44px; padding-block: .35rem; align-self: center; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .85rem; font-weight: 400; letter-spacing: .02em; }
.nav-links a { position: relative; padding: .4rem 0; opacity: .78; transition: opacity .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; top: 50%; transition: transform .4s var(--ease); }
.nav-toggle span:first-child { transform: translateY(-5px); }
.nav-toggle span:last-child { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 790; background: var(--forest); color: var(--cream); display: grid; align-content: center; gap: 1.2rem; padding: var(--gutter); font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; transform: translateY(-100%); transition: transform .6s var(--ease); overflow: hidden auto; visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
.mobile-menu.is-open { visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
@media (max-height: 520px) { .mobile-menu { font-size: 1.35rem; gap: .35rem 2rem; grid-template-columns: 1fr 1fr; align-content: start; padding-top: calc(var(--nav-h) + .5rem); } .mobile-menu a { padding: .3rem 0; } }
.mobile-menu.is-open { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.7em; border-radius: 999px; font-weight: 500; font-size: .9rem; letter-spacing: .02em; border: 1px solid transparent; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); will-change: transform; }
.btn-primary { background: var(--mint); color: var(--forest); }
.btn-primary:hover { background: var(--cream); }
.btn-ghost { border-color: var(--line); color: var(--fg); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-nav { padding: .7em 1.4em; font-size: .82rem; border-color: var(--fg); color: var(--fg); }
.btn-nav:hover { background: var(--fg); color: var(--bg); }

/* Scene indicator */
.scene-nav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 800; display: grid; gap: 14px; }
.scene-nav a { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(245, 240, 230, 0.3); position: relative; transition: transform .4s var(--ease), background .4s; }
.scene-nav a::after { content: attr(data-label); position: absolute; right: 18px; top: 50%; transform: translate(6px, -50%); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .3s var(--ease); color: var(--cream); }
.scene-nav a:hover::after, .scene-nav li.is-active a::after { opacity: .9; transform: translate(0, -50%); }
.scene-nav li.is-active a { background: var(--red); transform: scale(1.8); }

/* Glass */
.glass { background: rgba(245, 240, 230, 0.05); border: 1px solid rgba(245, 240, 230, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 20px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(245,240,230,.08); }

/* Reveal helpers */
.reveal { opacity: 0; transform: translateY(26px); }
.no-motion .reveal, .no-motion .split-mask .word { opacity: 1 !important; transform: none !important; }

/* =========================================================
   1 · HERO
   ========================================================= */
.hero { height: auto; }
.hero-pin { position: relative; height: 100vh; height: 100svh; height: 100dvh; overflow: hidden; background: #0a1611; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.85) contrast(1.05); }
.no-webgl .hero-poster, .no-motion .hero-poster { opacity: 1; }
.no-webgl .hero-poster::after { content: ""; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 22, 17, 0.72) 0%, rgba(10, 22, 17, 0.28) 32%, transparent 58%); pointer-events: none; }
.no-motion .hero-shade { background: linear-gradient(to top, rgba(10,22,17,.95), rgba(16,34,27,.55) 60%, rgba(16,34,27,.3)); }
.hero-content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(6vh, 10vh, 120px); max-width: 980px; z-index: 2; }
/* soft, localised shadow behind the text block only; the animation stays fully visible elsewhere */
.hero-content::before { content: ""; position: absolute; z-index: -1; left: -18%; right: -26%; top: -34%; bottom: -26%; pointer-events: none;
  background: radial-gradient(ellipse 80% 84% at 26% 50%, rgba(10, 22, 17, .88) 0%, rgba(10, 22, 17, .68) 36%, rgba(10, 22, 17, .34) 64%, transparent 84%); filter: blur(16px); }
.hero-eyebrow { color: #D2F4DE; font-weight: 600; text-shadow: 0 0 3px rgba(10, 22, 17, .95), 0 1px 2px rgba(10, 22, 17, .8), 0 2px 18px rgba(10, 22, 17, .6); }
.hero-wordmark { text-shadow: 0 0 3px rgba(10, 22, 17, .9), 0 1px 2px rgba(10, 22, 17, .75), 0 2px 28px rgba(10, 22, 17, .55); }
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-wordmark { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: .6rem; line-height: 1; text-shadow: 0 2px 28px rgba(10, 22, 17, .55); }
.hero-headline, .hero-sub { text-shadow: 0 1px 2px rgba(10, 22, 17, .55), 0 2px 24px rgba(10, 22, 17, .5); }
.hero-headline { font-family: var(--font-display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(2.6rem, 7.4vw, 7.6rem); line-height: .98; letter-spacing: -0.03em; text-wrap: balance; }
.hero-headline em { font-style: italic; color: var(--mint); }
.hero-sub { margin-top: 1.6rem; max-width: 32em; font-size: clamp(1.08rem, 1.4vw, 1.32rem); font-weight: 500; line-height: 1.5; color: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(6vh, 12vh, 140px); max-width: 620px; z-index: 2; opacity: 0; transform: translateY(30px); font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-family: var(--font-display); font-weight: 300; line-height: 1.35; }
.hero-caption .eyebrow { margin-bottom: .8rem; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 34px; z-index: 2; display: flex; align-items: center; gap: 14px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue-line { width: 48px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform: translateX(-100%); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { transform: translateX(100%); } }

/* =========================================================
   2 · THE NAME
   ========================================================= */
.name { height: auto; }
.name-pin { height: 100vh; height: 100svh; display: grid; place-items: center; align-content: center; gap: 2.2rem; overflow: hidden; }
.name-stage { position: relative; width: min(1100px, 92vw); height: clamp(180px, 34vw, 380px); display: grid; place-items: center; }
.name-arabic { position: absolute; font-family: var(--font-arabic); font-size: clamp(6rem, 22vw, 22rem); line-height: 1; color: var(--cream); font-weight: 400; }
.name-latin { position: absolute; font-family: var(--font-display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(4.4rem, 17vw, 17rem); line-height: 1; letter-spacing: -0.03em; display: flex; }
.name-latin .nl { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(20px); }
.name-latin .nl-a, .name-latin .nl-i { position: relative; }
.name-ai { position: absolute; left: 0; top: 0; font-family: var(--font-body); font-weight: 600; font-size: clamp(2rem, 7vw, 6.6rem); letter-spacing: .12em; color: var(--red); display: flex; gap: .05em; pointer-events: none; }
.name-ai span { position: absolute; opacity: 0; text-shadow: 0 0 30px rgba(211, 58, 99, 0.7), 0 0 80px rgba(211, 58, 99, 0.4); }
.name-line { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 2.2vw, 2rem); color: var(--muted); opacity: 0; transform: translateY(16px); text-align: center; padding-inline: var(--gutter); }
.name-line .name-term { color: var(--cream); }
.name-line .name-pos { font-style: italic; font-size: .7em; }
.name-line em { color: var(--mint); }

/* =========================================================
   3 · CHALLENGE (globe)
   ========================================================= */
.challenge { height: auto; }
.challenge-pin { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: center; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.challenge-grid { position: relative; z-index: 2; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: 18vh 12vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.challenge-head { grid-column: 1; max-width: 620px; }
.challenge-head .h-display { font-size: clamp(2rem, 4.2vw, 4rem); }
.stats { grid-column: 2; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.stat { padding: 1.4rem 1.4rem 1.2rem; display: grid; gap: .4rem; align-content: start; }
.stat-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 3.6vw, 3.6rem); line-height: 1; color: var(--mint); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .9rem; line-height: 1.4; color: var(--fg); }
.stat-src { font-size: .68rem; letter-spacing: .06em; color: var(--muted); margin-top: .3rem; }
.challenge-note { grid-column: 1 / -1; max-width: 760px; margin-top: 1rem; font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--muted); }
.challenge-note strong { color: var(--red); font-weight: 500; }

/* =========================================================
   4 · THE IDEA (stacking tiers)
   ========================================================= */
.idea { height: auto; }
.idea-pin { height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1rem, 4vw, 5rem); padding-inline: var(--gutter); overflow: hidden; background: radial-gradient(ellipse at 70% 55%, rgba(143, 211, 168, 0.08), transparent 55%), var(--forest); }
.idea-pin { position: relative; }
.idea-copy, .idea-stage { position: relative; z-index: 1; }
.idea-frames { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1s ease; filter: saturate(.9) brightness(.7); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 62% 55%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 70% 80% at 62% 55%, #000 25%, transparent 78%); }
.idea-pin.has-frames .idea-frames { opacity: .6; }
.no-motion .idea-frames { display: none; }
.idea-copy { max-width: 520px; }
.idea-count { margin-top: 2.4rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--mint); }
.idea-count small { font-size: .3em; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-left: .4em; font-family: var(--font-body); }
.idea-stage { position: relative; height: min(78vh, 760px); perspective: 1400px; display: grid; place-items: center; }
.rack { position: relative; width: min(440px, 70vw); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(16px, 2.4vh, 28px); transform-style: preserve-3d; transform: rotateY(-14deg) rotateX(6deg); }
.tier { position: relative; height: clamp(64px, 10vh, 100px); opacity: 0; transform: translateY(70px) scale(.9); }
.tier .shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border-radius: 4px; background: linear-gradient(to bottom, #2a4a3d, #10221B); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
.tier .shelf::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 30px; background: linear-gradient(to bottom, rgba(16,34,27,.9), transparent); transform: skewX(-30deg); opacity: .5; }
.tier .led { position: absolute; left: 6%; right: 6%; top: 0; height: 4px; border-radius: 4px; background: var(--led); box-shadow: 0 0 18px 4px rgba(255, 122, 182, 0.55), 0 30px 60px 10px rgba(255, 122, 182, 0.18); opacity: 0; }
.tier .plants { position: absolute; left: 4%; right: 4%; bottom: 12px; height: calc(100% - 16px); display: flex; justify-content: space-between; align-items: flex-end; padding-inline: 4%; }
.plant { width: 11%; height: 100%; transform-origin: bottom center; transform: scaleY(0); }
.plant svg { width: 100%; height: 100%; overflow: visible; }
.rack-base { height: 18px; border-radius: 6px; background: linear-gradient(to bottom, #203b31, #0b1a14); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); }
.idea-tags { position: absolute; inset: 0; pointer-events: none; }
.idea-tags .tag { position: absolute; left: var(--lx, 50%); top: var(--ly, 50%); transform: translate(-50%, -50%) translateY(20px); opacity: 0; padding: .6rem 1rem; font-size: .8rem; font-weight: 500; letter-spacing: .04em; border-radius: 999px; white-space: nowrap; color: var(--cream); }

/* =========================================================
   5 · TECHNOLOGY (horizontal)
   ========================================================= */
.tech { color: var(--forest); background: var(--cream); }
.tech-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.tech-head { padding: calc(var(--nav-h) + 2vh) var(--gutter) 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: .5rem 3rem; align-items: end; }
.tech-head .eyebrow { grid-column: 1 / -1; }
.tech-head .h-display { font-size: clamp(2.2rem, 4.6vw, 4.6rem); }
.tech-head .lede { margin-top: 0; max-width: 32em; padding-bottom: .4rem; }
.tech-track { display: flex; gap: clamp(1rem, 3vw, 3rem); padding: 4vh var(--gutter) 2vh; will-change: transform; }
.tech-panel { flex: 0 0 auto; width: clamp(300px, 36vw, 560px); display: grid; grid-template-rows: auto 1fr; gap: 1.4rem; }
.tech-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--cream-2); border: 1px solid rgba(16, 34, 27, 0.08); }
.tech-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.tech-visual img::after { content: ""; }
.tech-visual > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tech-visual .over { background: linear-gradient(to top, rgba(16, 34, 27, .55), rgba(16, 34, 27, .05)); }
.tech-visual[data-anim="vision"] img, .tech-visual[data-anim="robot"] img { mix-blend-mode: normal; }
.tech-visual[data-anim="robot"]::before, .tech-visual[data-anim="vision"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(138, 21, 56, .35), rgba(16, 34, 27, .35)); mix-blend-mode: multiply; z-index: 1; }
.tech-visual .over { z-index: 2; }
.tech-text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.2rem); letter-spacing: -0.01em; margin: .3rem 0 .6rem; }
.tech-text p { color: var(--muted); max-width: 30em; }
.tech-no { font-size: .72rem; letter-spacing: .26em; color: var(--red); font-weight: 600; }
.tech-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 4vh; height: 1px; background: rgba(16, 34, 27, 0.12); }
.tech-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
/* icon anims */
.mesh-pulse circle { transform-origin: 160px 160px; opacity: 0; animation: pulse 3s ease-out infinite; }
.mesh-pulse circle:nth-child(2) { animation-delay: 1s; } .mesh-pulse circle:nth-child(3) { animation-delay: 2s; }
@keyframes pulse { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.vis-scan { animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(140px); } }
.vis-box { animation: box 5s ease-in-out infinite alternate; transform-origin: 160px 160px; }
@keyframes box { 0% { transform: scale(1) } 50% { transform: scale(.85) translate(-10px, 12px) } 100% { transform: scale(1.05) translate(8px, -6px) } }
.arm { transform-origin: 60px 260px; animation: arm 4s ease-in-out infinite alternate; }
@keyframes arm { to { transform: rotate(-14deg); } }
.tray { animation: tray 4s ease-in-out infinite alternate; }
@keyframes tray { to { transform: translate(-24px, -22px); } }
.nano-dots circle { animation: nano 6s linear infinite; }
.nano-dots circle:nth-child(1){ animation-delay: 0s } .nano-dots circle:nth-child(2){ animation-delay: -.8s } .nano-dots circle:nth-child(3){ animation-delay: -1.6s } .nano-dots circle:nth-child(4){ animation-delay: -2.4s } .nano-dots circle:nth-child(5){ animation-delay: -3.2s } .nano-dots circle:nth-child(6){ animation-delay: -4s } .nano-dots circle:nth-child(7){ animation-delay: -4.8s } .nano-dots circle:nth-child(8){ animation-delay: -5.6s }
@keyframes nano { 0% { transform: translate(160px, 270px); opacity: 0 } 10% { opacity: 1 } 50% { transform: translate(126px, 160px) } 90% { opacity: 1 } 100% { transform: translate(160px, 60px); opacity: 0 } }
.nano-film { animation: dash 8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.twin-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 4s var(--ease) infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.twin-dot { animation: blink 1.6s ease-in-out infinite alternate; }
@keyframes blink { to { r: 11; opacity: .5; } }
.loop-arc { stroke-dasharray: 628; stroke-dashoffset: 628; animation: loopdraw 5s linear infinite; }
@keyframes loopdraw { 0% { stroke-dashoffset: 628 } 60% { stroke-dashoffset: 0 } 100% { stroke-dashoffset: -628 } }
.loop-drops circle { offset-path: circle(100px at 160px 160px); animation: orbit 5s linear infinite; }
.loop-drops circle:nth-child(2) { animation-delay: -1.66s } .loop-drops circle:nth-child(3) { animation-delay: -3.33s }
@keyframes orbit { to { offset-distance: 100%; } }
.sun-rays { transform-origin: 160px 160px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   6 · SYSTEM ARCHITECTURE
   ========================================================= */
.system { padding-block: clamp(5rem, 12vh, 10rem); }
.sys-wrap { position: relative; }
.sys-svg { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.sys-h { font-size: 12px; letter-spacing: 3px; fill: var(--mint); font-weight: 600; }
.sys-node rect { fill: rgba(245, 240, 230, 0.04); stroke: rgba(245, 240, 230, 0.22); stroke-width: 1; }
.sys-node text { fill: var(--cream); font-size: 13px; }
.sys-node .sys-sm { fill: rgba(245, 240, 230, 0.65); font-size: 12px; }
.sys-big rect { fill: rgba(143, 211, 168, 0.06); stroke: rgba(143, 211, 168, 0.5); }
.sys-big > text:first-of-type { font-family: var(--font-display); font-size: 20px; }
.sys-act rect { stroke: rgba(211, 58, 99, 0.6); }
.sys-cores rect { fill: var(--mint); animation: cores 1.4s ease-in-out infinite alternate; }
.sys-cores rect:nth-child(2) { animation-delay: .2s } .sys-cores rect:nth-child(3) { animation-delay: .4s } .sys-cores rect:nth-child(4) { animation-delay: .6s }
@keyframes cores { to { opacity: .25 } }
.sys-legend { font-size: 12px; fill: var(--muted); letter-spacing: 1px; }
.sys-ai-label { opacity: .9; }
.sys-node { opacity: 0; }

/* =========================================================
   7 · LOOP
   ========================================================= */
.loop { height: auto; }
.loop-pin { height: 100vh; height: 100svh; display: grid; place-items: center; align-content: center; gap: 2.5rem; overflow: hidden; }
.loop-ring-wrap { position: relative; width: min(70vh, 600px, 90vw); aspect-ratio: 1; }
.loop-svg { width: 100%; height: 100%; display: block; font-family: var(--font-body); }
.loop-node circle { fill: var(--forest); stroke: rgba(143, 211, 168, 0.5); stroke-width: 1.5; }
.loop-node text { fill: var(--cream); font-size: 13px; font-weight: 500; }
.loop-node .loop-n { font-size: 9px; letter-spacing: 2px; fill: var(--mint); }
.loop-node.is-on circle { fill: var(--red); stroke: var(--red); }
.loop-node.is-on text, .loop-node.is-on .loop-n { fill: var(--cream); }
.loop-progress { stroke-dasharray: 1445; stroke-dashoffset: 1445; }
.loop-center { position: absolute; inset: 18%; display: grid; place-items: center; text-align: center; }
.loop-center .eyebrow { position: absolute; top: 12%; margin: 0; }
.loop-step { position: absolute; inset: 0; display: grid; place-content: center; gap: .6rem; opacity: 0; padding-inline: 8%; }
.loop-step h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.loop-step p { color: var(--muted); font-size: clamp(.9rem, 1.1vw, 1.05rem); max-width: 22em; margin-inline: auto; }
.loop-quote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 1.8vw, 1.6rem); color: var(--mint); text-align: center; max-width: 34em; padding-inline: var(--gutter); }

/* =========================================================
   8 · ADVANTAGE
   ========================================================= */
.advantage { padding-block: clamp(5rem, 12vh, 10rem); }
.adv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 24px; overflow: hidden; height: clamp(260px, 44vh, 480px); }
.adv-side { position: relative; overflow: hidden; }
.adv-side img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.adv-side .adv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); opacity: 0; transition: opacity .6s ease; }
.adv-side .adv-video.is-playing { opacity: 1; }
.no-motion .adv-video { display: none; }
.adv-field::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,34,27,.75), rgba(138,21,56,.25)); mix-blend-mode: multiply; }
.adv-field img, .adv-field video { filter: saturate(.3) sepia(.4) contrast(1.05); }
.adv-hadiqah::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,34,27,.7), rgba(143,211,168,.1)); }
.adv-hadiqah img, .adv-hadiqah video { filter: saturate(1.05); }
.adv-caption { position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 2; color: var(--cream); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.adv-caption .wm { text-transform: none; letter-spacing: 0; font-size: 1.2rem; }
.adv-rows { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.adv-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); align-items: baseline; opacity: 0; transform: translateY(14px); }
.adv-k { font-weight: 500; }
.adv-a { color: var(--muted); }
.adv-b { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 300; color: var(--maroon); }
.adv-b b { font-weight: 500; color: var(--red); font-variant-numeric: tabular-nums; }

/* =========================================================
   9 · GROWING (hydroponics)
   ========================================================= */
.growing { height: auto; }
.grow-pin { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(1rem, 4vw, 5rem); padding: 10vh var(--gutter); overflow: hidden; }
.grow-visual { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 8 / 5; background: #0b1a14; border: 1px solid var(--line); }
.grow-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.7) contrast(1.1); mix-blend-mode: luminosity; transform: scale(1.1); }
.grow-video { opacity: 0; transition: opacity .8s ease; mix-blend-mode: normal; filter: saturate(.85) contrast(1.05); }
.grow-video.is-playing { opacity: .7; }
.no-motion .grow-video { display: none; }
.grow-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(16,34,27,.2), rgba(16,34,27,.9)); z-index: 1; }
.grow-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.grow-led { filter: drop-shadow(0 0 14px rgba(255, 122, 182, .9)); }
.chips { display: grid; gap: .6rem; margin-top: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; width: fit-content; color: var(--muted); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.chip-on { color: var(--cream); border-color: rgba(143, 211, 168, 0.5); }
.chip-on .chip-dot { background: var(--mint); box-shadow: 0 0 12px var(--mint); }

/* =========================================================
   10 · AQUALOOP + crops
   ========================================================= */
.aqua { position: relative; padding-block: clamp(5rem, 12vh, 10rem); overflow: hidden; }
.aqua-bg { position: absolute; inset: 0; z-index: 0; }
.aqua-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: saturate(.4); mix-blend-mode: screen; }
.aqua-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.5); mix-blend-mode: screen; transition: opacity 1.2s ease; }
.aqua-bg video.is-playing { opacity: .26; }
.no-motion .aqua-bg video { display: none; }
.aqua-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, transparent, var(--forest) 70%); }
.aqua-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.aqua-steps { display: grid; gap: 1rem; margin-top: 2rem; }
.aqua-steps li { padding: 1rem 0 1rem 1.2rem; border-left: 1px solid var(--line); color: var(--muted); opacity: 0; transform: translateX(-10px); }
.aqua-steps li b { display: block; color: var(--cream); font-weight: 500; margin-bottom: .2rem; }
.aqua-steps li.is-on { border-color: var(--mint); }
.aqua-diagram svg { width: 100%; height: auto; font-family: var(--font-body); }
.aqua-node circle { fill: var(--forest); stroke: rgba(143, 211, 168, 0.5); stroke-width: 1.5; }
.aqua-node .aqua-no { fill: var(--mint); font-family: var(--font-display); font-size: 24px; }
.aqua-node .aqua-t { fill: var(--cream); font-size: 9px; letter-spacing: 2px; font-weight: 500; }
.aqua-center { fill: var(--cream); font-size: 14px; letter-spacing: 4px; font-weight: 500; }
.aqua-center-sm { fill: var(--muted); font-size: 11px; letter-spacing: 2px; }
.aqua-ring { stroke-dasharray: 1320; stroke-dashoffset: 1320; }
.aqua-node circle { transition: stroke .5s, fill .5s; }
.aqua-node.is-on circle { stroke: var(--mint); fill: #163129; }
.aqua-node.is-on .aqua-t { fill: var(--cream); }
.aqua-flow { fill: var(--mint); opacity: .9; }
.crops { position: relative; z-index: 1; margin-top: clamp(4rem, 10vh, 8rem); }
.crop-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.crop-list li { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; opacity: 0; transform: translateY(20px); }
.crop-list img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .8s var(--ease); }
.crop-list li:hover img { transform: scale(1.06); }
.crop-list li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,34,27,.9), rgba(16,34,27,.1) 55%); }
.crop-list span { position: absolute; left: .9rem; right: .9rem; bottom: .9rem; z-index: 1; font-size: .8rem; font-weight: 500; line-height: 1.3; }

/* =========================================================
   11 · IMPACT
   ========================================================= */
.impact { padding-block: clamp(5rem, 12vh, 10rem); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pillar { padding: 2rem 1.6rem 2.2rem; border-radius: 22px; background: rgba(16, 34, 27, 0.04); border: 1px solid rgba(16, 34, 27, 0.08); opacity: 0; transform: translateY(30px); transition: background .5s, transform .5s var(--ease); min-height: 280px; display: grid; align-content: space-between; }
.pillar:hover { background: var(--forest); color: var(--cream); }
.pillar-no { font-size: .72rem; letter-spacing: .26em; color: var(--red); font-weight: 600; }
.pillar h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 2rem); margin: 2.4rem 0 .6rem; }
.pillar p { color: inherit; opacity: .75; }

/* =========================================================
   12 · AMBITION
   ========================================================= */
.ambition { height: auto; }
.ambition-pin { height: 100vh; height: 100svh; display: grid; place-items: center; align-content: center; gap: 3rem; overflow: hidden; padding-inline: var(--gutter); text-align: center; background: radial-gradient(ellipse at 50% 60%, #a31b45 0%, var(--maroon) 45%, var(--maroon-2) 100%); }
.ambition-title { font-family: var(--font-display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(3rem, 10.5vw, 11rem); line-height: .96; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
.ambition-title .word { display: inline-block; opacity: 0; transform: translateY(40%) scale(.9); transform-origin: bottom center; }
.ambition-proof { max-width: 54ch; font-size: clamp(1rem, 1.4vw, 1.3rem); color: var(--muted); display: grid; gap: 1rem; opacity: 0; transform: translateY(20px); }
.ambition-proof b { color: var(--cream); font-weight: 500; }

/* =========================================================
   13 · QATAR
   ========================================================= */
.qatar { height: auto; }
.qatar-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: end; }
.qatar-bg { position: absolute; inset: -10% 0; }
.qatar-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.1) brightness(.75); }
.qatar-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.1) brightness(.75); opacity: 0; transition: opacity 1s ease; }
.qatar-bg video.is-playing { opacity: 1; }
.no-motion .qatar-bg video { display: none; }
.qatar-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, #2a1030 0%, rgba(138, 21, 56, .65) 28%, rgba(211, 90, 99, .35) 50%, rgba(16, 34, 27, .6) 80%, var(--forest) 100%); mix-blend-mode: multiply; }
.qatar-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--forest) 0%, rgba(16,34,27,.5) 30%, transparent 60%), radial-gradient(ellipse at 50% 30%, rgba(255, 150, 120, .25), transparent 55%); }
.qatar-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.qarc { opacity: .8; }
.qatar-dots circle { opacity: 0; }
.pin { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; }
.pin-glow { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin-label { fill: var(--cream); font-family: var(--font-body); font-size: 12px; letter-spacing: 4px; opacity: 0; }
.qatar-copy { position: relative; z-index: 3; padding: 0 var(--gutter) 10vh; max-width: 820px; }
.qatar-copy .h-display { font-size: clamp(2rem, 4.6vw, 4.6rem); }

/* =========================================================
   14 · ROADMAP
   ========================================================= */
.roadmap { height: auto; }
.road-pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6vh; }
.road-head { padding-inline: var(--gutter); }
.road-track { position: relative; padding-inline: var(--gutter); will-change: transform; }
.road-line { position: absolute; left: var(--gutter); top: 10px; width: 170vw; height: 60px; overflow: visible; }
.phases { display: flex; gap: 6vw; width: max-content; }
.phase { position: relative; width: clamp(260px, 32vw, 420px); padding-top: 60px; opacity: .35; transition: opacity .5s; }
.phase.is-on { opacity: 1; }
.phase-dot { position: absolute; left: 0; top: 29px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--mint); background: var(--forest); transform: translateY(-50%) scale(.6); }
.phase.is-on .phase-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 8px rgba(211,58,99,.18); transform: translateY(-50%) scale(1); }
.phase-no { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--mint); font-weight: 600; }
.phase h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3vw, 3rem); margin: .6rem 0 .8rem; }
.phase p { color: var(--muted); max-width: 28em; }

/* =========================================================
   15 · WORK WITH US
   ========================================================= */
.partner { padding-block: clamp(5rem, 12vh, 10rem); }
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; perspective: 1200px; }
.offer { opacity: 0; transform: translateY(30px); transform-style: preserve-3d; }
.offer a { display: grid; align-content: space-between; min-height: 360px; padding: 1.8rem 1.6rem; border-radius: 24px; background: var(--forest); color: var(--cream); position: relative; overflow: hidden; transition: box-shadow .5s; will-change: transform; }
.offer a::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 211, 168, .22), transparent 40%); opacity: 0; transition: opacity .5s; }
.offer a:hover::before { opacity: 1; }
.offer a:hover { box-shadow: 0 40px 80px -30px rgba(16, 34, 27, .6); }
.offer-no { font-size: .72rem; letter-spacing: .26em; color: var(--mint); font-weight: 600; }
.offer h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 3rem 0 .7rem; }
.offer p { color: rgba(245, 240, 230, .7); font-size: .95rem; }
.offer-link { margin-top: 1.6rem; font-size: .8rem; color: var(--red); font-weight: 500; letter-spacing: .02em; }

/* =========================================================
   16 · CONTACT
   ========================================================= */
.contact { padding-block: clamp(6rem, 16vh, 12rem) clamp(5rem, 12vh, 9rem); }
.contact-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 9vw, 9.5rem); line-height: .95; letter-spacing: -0.03em; margin-bottom: clamp(3rem, 6vw, 5rem); }
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 1px solid var(--line); }
.contact-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.contact-list a:hover { padding-left: .6rem; }
.contact-list span { color: var(--muted); font-size: .9rem; }
.contact-list b { font-weight: 400; font-family: var(--font-display); font-size: clamp(1rem, 1.5vw, 1.35rem); white-space: nowrap; }
.contact-list a:hover b { color: var(--mint); }
.marhaba { display: inline-block; margin-top: 3rem; padding: .4em .2em; margin-inline: -.2em; font-family: var(--font-arabic); font-size: clamp(2.4rem, 5vw, 4.4rem); color: var(--red); line-height: 1; }
.marhaba:hover { color: var(--mint); }

/* =========================================================
   17 · FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--cream); padding-block: 3rem 2.2rem; font-size: .82rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em 1rem; font-size: 1.35rem; }
.footer-tag { color: var(--muted); font-family: var(--font-display); font-size: .95rem; font-weight: 300; }
.footer-legal { color: var(--muted); line-height: 1.6; }
.footer-legal a { display: inline-block; padding: .9em 0; margin: -.9em 0; min-height: 44px; box-sizing: border-box; line-height: 1.6; }
.footer-legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(245,240,230,.25); text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--mint); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .btn-nav { display: none; }
  .scene-nav { display: none; }
  .challenge-grid { grid-template-columns: 1fr; padding-block: 16vh 10vh; }
  .stats { grid-column: 1; }
  .idea-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: calc(var(--nav-h) + 2vh); }
  .idea-stage { height: auto; min-height: 40vh; display: grid; grid-template-rows: auto auto; place-items: center; gap: 1.2rem; }
  .rack { width: min(360px, 78vw); gap: 10px; }
  .tier { height: clamp(40px, 6vh, 64px); }
  .idea-copy .lede { font-size: 1rem; }
  .idea-count { margin-top: 1rem; font-size: 2.6rem; }
  .idea-tags { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 520px; }
  .idea-tags .tag { position: static; transform: translateY(16px); }
  .tech-head { grid-template-columns: 1fr; }
  .tech-head .h-display { grid-row: auto; }
  .grow-pin { grid-template-columns: 1fr; }
  .aqua-grid { grid-template-columns: 1fr; }
  .crop-list { grid-template-columns: repeat(3, 1fr); }
  .pillars, .offers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .hero-content { bottom: 14vh; }
  .hero-caption { bottom: 18vh; }
  .scroll-cue span:last-child { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat-num { font-size: 2.4rem; }
  .idea-tags .tag { font-size: .7rem; padding: .5rem .8rem; }
  .tech-pin { height: auto; padding-bottom: 4rem; }
  .tech-track { flex-direction: column; padding-top: 2rem; }
  .tech-panel { width: 100%; }
  .tech-progress { display: none; }
  .adv-split { height: 240px; }
  .adv-row { grid-template-columns: 1fr; gap: .2rem; }
  .adv-a::before { content: "Open field · "; color: var(--muted); font-size: .8rem; }
  .adv-b::before { content: "Hadiqah · "; font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 400; }
  .grow-pin { padding-top: 14vh; }
  .crop-list { grid-template-columns: repeat(2, 1fr); }
  .pillars, .offers { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .pillar h3 { margin-top: 1.2rem; }
  .offer a { min-height: 0; }
  .offer h3 { margin-top: 1.6rem; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list a { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .ambition-title { font-size: clamp(2.6rem, 14vw, 5rem); }
  .roadmap { height: auto; }
  .road-pin { height: auto; padding-block: 6rem 4rem; }
  .road-line { display: none; }
  .phases { flex-direction: column; width: auto; gap: 2.4rem; padding-left: 36px; border-left: 1px solid var(--line); }
  .phase { width: auto; padding-top: 0; opacity: 1; }
  .phase-dot { left: -47px; top: 10px; transform: scale(1); }
  .name-stage { height: 30vw; }
  .loop-center { inset: 22%; }
  .loop-center .eyebrow { display: none; } /* the dial title already names the loop; avoids colliding with the step title */
  .loop-step p { font-size: .8rem; }
  .qatar-map { height: 56%; top: 4%; } /* keep the map and its pin above the copy on phones */
  .sys-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .sys-svg { min-width: 760px; }
  .sys-wrap::after { content: "Swipe to explore the diagram"; display: block; margin-top: .6rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .qatar-copy .h-display { font-size: 2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue-line::after, .mesh-pulse circle, .vis-scan, .vis-box, .arm, .tray, .nano-dots circle, .nano-film, .twin-line, .twin-dot, .loop-arc, .loop-drops circle, .sun-rays, .sys-cores rect { animation: none !important; }
  .twin-line { stroke-dashoffset: 0; }
  .loop-arc { stroke-dashoffset: 200; }
}
.no-motion .hero-canvas { display: none; }
.no-motion .name-latin .nl, .no-motion .name-line, .no-motion .tier, .no-motion .plant, .no-motion .tier .led, .no-motion .idea-tags .tag,
.no-motion .sys-node, .no-motion .loop-step[data-step="0"], .no-motion .adv-row, .no-motion .aqua-steps li, .no-motion .crop-list li,
.no-motion .pillar, .no-motion .ambition-title .word, .no-motion .ambition-proof, .no-motion .pin, .no-motion .pin-glow, .no-motion .pin-label,
.no-motion .qatar-dots circle, .no-motion .offer, .no-motion .hero-caption { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-motion .name-arabic { position: static; font-size: clamp(4rem, 12vw, 10rem); }
.no-motion .name-latin { position: static; font-size: clamp(3rem, 10vw, 8rem); }
.no-motion .name-stage { height: auto; gap: 1rem; grid-auto-flow: row; }
.no-motion .name-ai { display: none; }
.no-motion .hero-caption { display: none; }
.no-motion .phase { opacity: 1; }
.no-motion .loop-progress, .no-motion .aqua-ring { stroke-dashoffset: 0; }
.no-motion .aqua-node circle { stroke: var(--mint); }
.no-motion .tier .plants .plant { transform: scaleY(1); }
.no-motion .tech-track { flex-wrap: wrap; }
.no-motion .tech-pin { height: auto; padding-bottom: 4rem; }
.no-motion .hero, .no-motion .name, .no-motion .idea, .no-motion .loop, .no-motion .ambition, .no-motion .qatar, .no-motion .roadmap, .no-motion .growing { height: auto; }
.no-motion .hero-pin, .no-motion .name-pin, .no-motion .idea-pin, .no-motion .loop-pin, .no-motion .ambition-pin, .no-motion .qatar-pin, .no-motion .road-pin { height: auto; min-height: 100vh; min-height: 100svh; padding-block: 12vh; }
.no-motion .name-arabic, .no-motion .name-latin { position: relative; }
