/* New Global Horizon Co. — dark brand theme (one stylesheet for Arabic RTL and English LTR) */

@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-arabic-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #06061a;
  --bg-2: #0b0b26;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef0ff;
  --muted: #a4a7cc;
  --teal: #5cd0e0;
  --blue: #6a7cf0;
  --purple: #a46be0;
  --pink: #e0609f;
  --peach: #f2b088;
  --grad: linear-gradient(100deg, #5cd0e0 0%, #6a7cf0 30%, #a46be0 58%, #e0609f 82%, #f2b088 100%);
  --radius: 18px;
  --container: 1200px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(106, 124, 240, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(224, 96, 159, .07), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(164, 107, 224, .45); color: #fff; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -.02em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: #fff; color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }

/* Content still waiting for the company's real data — highlighted for review */
.todo { background: rgba(255, 200, 80, .12); color: #ffd98a; border: 1px dashed rgba(255, 200, 80, .55); border-radius: 6px; padding: 0 .4em; }

/* Page transition veil: fades out on arrival, fades in before leaving */
.page-veil { position: fixed; inset: 0; z-index: 400; pointer-events: none; background: var(--bg); animation: veil-out .7s var(--ease) forwards; }
body.leaving .page-veil { animation: veil-in .3s ease forwards; }
@keyframes veil-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .55em 1.5em;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; color: #fff; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .25s ease, border-color .25s ease, background-position .5s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .i-arrow { transition: translate .25s var(--ease); }
.btn:hover .i-arrow { translate: 3px 0; }
[dir="rtl"] .btn:hover .i-arrow { translate: -3px 0; }
.btn-primary { background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 30px -8px rgba(164, 107, 224, .7); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 40px -10px rgba(224, 96, 159, .8); }
.btn-glass { background: rgba(255, 255, 255, .06); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn-lg { min-height: 56px; padding: .6em 1.9em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions.center { justify-content: center; }

/* ---------- Header ---------- */
.header { position: fixed; inset-inline: 0; top: 0; z-index: 100; transition: border-color .3s ease; border-bottom: 1px solid transparent; }
/* The blur lives on a pseudo-element: a backdrop-filter on .header itself would trap the fixed mobile menu inside it */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 6, 26, .78); backdrop-filter: saturate(1.5) blur(16px); opacity: 0; transition: opacity .3s ease; }
.header.scrolled, body.menu-open .header { border-color: var(--line); }
.header.scrolled::before, body.menu-open .header::before { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.05rem; }
.brand-sub { font-size: .78rem; color: var(--muted); font-weight: 600; }
.nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a { position: relative; display: block; padding: 8px 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; }
.nav-list a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: grid; place-items: center; min-width: 44px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: .92rem; transition: background-color .2s, border-color .2s; }
.lang-switch:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.header .btn-cta { min-height: 42px; padding: .4em 1.25em; font-size: .95rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home: scroll story with the 3D building ---------- */
.story { position: relative; }
.js .story { height: 460vh; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-fallback { position: absolute; inset: 0; background: url("../img/poly.svg") center / cover no-repeat; opacity: .45; }
.has-3d .story-fallback { display: none; }
.story-scrim { position: absolute; inset: 0; pointer-events: none; }
[dir="rtl"] .story-scrim { background: linear-gradient(to left, rgba(6, 6, 26, .88) 0%, rgba(6, 6, 26, .45) 38%, transparent 62%), linear-gradient(to top, var(--bg) 0%, transparent 22%); }
[dir="ltr"] .story-scrim { background: linear-gradient(to right, rgba(6, 6, 26, .88) 0%, rgba(6, 6, 26, .45) 38%, transparent 62%), linear-gradient(to top, var(--bg) 0%, transparent 22%); }
.story-chapters { position: relative; height: 100%; }
.chapter {
  position: absolute; inset-inline-start: 0; top: 50%; width: min(100%, 600px);
  transform: translateY(-40%); opacity: 0; filter: blur(8px); visibility: hidden;
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s ease, visibility 0s .7s;
}
.chapter.is-active { opacity: 1; transform: translateY(-50%); filter: none; visibility: visible; transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s ease, visibility 0s; }
.chapter h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 900; line-height: 1.12; margin-bottom: .35em; }
.chapter h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.15; }
.chapter p, .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9cbe8; max-width: 34em; }
.chapter .actions { margin-top: 30px; }
.chapter-num { display: inline-block; font-size: 1rem; font-weight: 800; letter-spacing: .2em; color: var(--teal); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--pink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); backdrop-filter: blur(8px); margin-bottom: 26px; }
.eyebrow .i { color: var(--teal); }
.story-progress { position: absolute; inset-inline-end: 28px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.story-progress li { width: 4px; height: 34px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; position: relative; }
.story-progress li::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.story-progress li.on::after { transform: scaleY(1); }
.scroll-hint { position: absolute; bottom: 30px; inset-inline: 0; margin-inline: auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); transition: opacity .4s; }
.scroll-hint.hide { opacity: 0; }
.mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; position: relative; }
.mouse::after { content: ""; position: absolute; top: 7px; inset-inline: 0; margin-inline: auto; width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
html:not(.js) .chapter:not(.chapter-hero), html:not(.js) .story-progress, html:not(.js) .scroll-hint { display: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: rgba(255, 255, 255, .02); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee-track span { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 900; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.marquee-track span:nth-of-type(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.marquee-track .i { width: 26px; height: 26px; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Video: looping reel band, pop-up player, project videos ---------- */
.i-play { fill: currentColor; }
.reel { position: relative; overflow: hidden; min-height: min(78vh, 680px); display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.reel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; inset: 0; }
[dir="rtl"] .reel-shade { background: linear-gradient(to left, rgba(6, 6, 26, .92) 0%, rgba(6, 6, 26, .55) 50%, rgba(6, 6, 26, .3)), linear-gradient(to top, var(--bg), transparent 30%); }
[dir="ltr"] .reel-shade { background: linear-gradient(to right, rgba(6, 6, 26, .92) 0%, rgba(6, 6, 26, .55) 50%, rgba(6, 6, 26, .3)), linear-gradient(to top, var(--bg), transparent 30%); }
.reel-inner { position: relative; padding-block: 90px; }
.reel-inner h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.15; }
.reel-inner p { color: #c9cbe8; font-size: 1.15rem; max-width: 32em; margin-bottom: 28px; }
.video-dialog { padding: 0; border: 0; background: transparent; width: min(1000px, 94vw); max-width: none; overflow: visible; }
.video-dialog::backdrop { background: rgba(6, 6, 26, .88); backdrop-filter: blur(6px); }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.video-close { position: absolute; top: -52px; inset-inline-end: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.video-close:hover { background: rgba(255, 255, 255, .18); }
.video-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.video-card figcaption { padding: 18px 22px 22px; }
.video-card h3 { font-size: 1.1rem; margin-bottom: .25em; }
.video-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .9rem; color: var(--teal); margin-bottom: 14px; letter-spacing: .04em; }
.kicker::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 900; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* Glass cards with a light that follows the pointer */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 208, 224, .75), transparent 60%), var(--line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(164, 107, 224, .14), transparent 55%);
  opacity: 0; transition: opacity .4s ease;
}
.spot:hover::after { opacity: 1; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { display: block; border-radius: var(--radius); background: var(--panel); padding: 34px 30px; transition: transform .45s var(--ease), background-color .3s, opacity .9s var(--ease); }
a.card:hover, .card.big:hover { transform: translateY(-8px); background: var(--panel-2); }
.icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; color: #fff; background: linear-gradient(135deg, rgba(92, 208, 224, .22), rgba(164, 107, 224, .22) 55%, rgba(224, 96, 159, .22)); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.icon .i { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; font-size: .95rem; color: var(--teal); }
.more .i-arrow { transition: translate .3s var(--ease); }
a.card:hover .more .i-arrow { translate: 4px 0; }
[dir="rtl"] a.card:hover .more .i-arrow { translate: -4px 0; }
.cards-4 .card { padding: 30px 24px; }
.cards-4 .card h3 { font-size: 1.12rem; }
.cards-4 .card p { font-size: .96rem; }
.contact-item .muted { display: block; font-size: .9rem; }
.big-num { display: block; font-size: 3.4rem; font-weight: 900; line-height: 1; margin-bottom: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card.big h3 { font-size: 1.5rem; }

.feature { border-radius: var(--radius); background: var(--panel); padding: 30px 26px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Split section with a 3D-tilting panel */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.tilt { perspective: 1000px; }
.tilt-inner {
  position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; border-radius: 28px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
}
.tilt-bg { position: absolute; inset: 0; border-radius: inherit; background: url("../img/poly.svg") center / cover no-repeat; overflow: hidden; }
.tilt-bg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 40%, transparent 20%, rgba(6, 6, 26, .65) 80%); }
.tilt-logo { position: absolute; width: 42%; top: 50%; left: 50%; transform: translate(-50%, -50%) translateZ(70px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: .92rem; background: rgba(10, 10, 36, .72); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); white-space: nowrap; }
.chip .i { color: var(--teal); }
.chip-a { top: 9%; inset-inline-start: -5%; transform: translateZ(110px); }
.chip-b { bottom: 18%; inset-inline-end: -6%; transform: translateZ(130px); }
.chip-c { bottom: 6%; inset-inline-start: 10%; transform: translateZ(90px); }
.checks { display: grid; gap: 12px; margin: 26px 0 32px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(92, 208, 224, .14); color: var(--teal); stroke-width: 3; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; inset-inline: 12%; height: 2px; background: var(--grad); opacity: .5; }
.timeline li { position: relative; text-align: center; padding-inline: 8px; }
.dot { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; font-weight: 900; font-size: 1.2rem; border: 2px solid transparent; background-image: linear-gradient(var(--bg), var(--bg)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 30px rgba(164, 107, 224, .35); }
.timeline h3 { font-size: 1.15rem; }
.timeline p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: center; padding-top: var(--header-h); border-bottom: 1px solid var(--line); }
.page-hero .scene { z-index: 0; }
.page-hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
[dir="rtl"] .page-hero-bg { background: linear-gradient(to left, rgba(6, 6, 26, .92) 0%, rgba(6, 6, 26, .55) 45%, transparent 75%), linear-gradient(to top, var(--bg), transparent 30%); }
[dir="ltr"] .page-hero-bg { background: linear-gradient(to right, rgba(6, 6, 26, .92) 0%, rgba(6, 6, 26, .55) 45%, transparent 75%), linear-gradient(to top, var(--bg), transparent 30%); }
html:not(.has-3d) .page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/poly.svg") center / cover no-repeat; opacity: .35; }
.page-hero-inner { position: relative; z-index: 2; padding-block: 60px 80px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 900; line-height: 1.15; max-width: 14em; animation: rise .9s var(--ease) both .1s; }
.page-hero .lead { animation: rise .9s var(--ease) both .25s; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; animation: rise .9s var(--ease) both; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--teal); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; animation: rise .9s var(--ease) both .4s; }
.pills a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-weight: 600; font-size: .95rem; transition: background-color .2s, border-color .2s; }
.pills a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.facts { border-radius: var(--radius); background: var(--panel); padding: 10px 28px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .label { color: var(--muted); font-weight: 600; }
.facts .value { font-weight: 700; text-align: end; }

/* Services list */
.services-list { display: grid; gap: clamp(28px, 5vw, 56px); }
.service { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; scroll-margin-top: calc(var(--header-h) + 20px); }
.service:nth-child(even) .service-visual { order: 2; }
.service-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(92, 208, 224, .18), transparent 55%), radial-gradient(circle at 75% 80%, rgba(224, 96, 159, .2), transparent 55%), var(--panel); }
.icon-xl { width: 116px; height: 116px; border-radius: 30px; margin: 0; }
.icon-xl .i { width: 54px; height: 54px; }
.service-num { position: absolute; top: 18px; inset-inline-start: 24px; font-size: 4.4rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.service h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; }
.service .checks { grid-template-columns: 1fr 1fr; margin-bottom: 0; }

/* Projects */
.project { border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: transform .45s var(--ease), opacity .9s var(--ease); }
.project:hover { transform: translateY(-8px); }
.project-media { aspect-ratio: 16 / 11; background: url("../img/poly.svg") center / cover no-repeat; position: relative; display: grid; place-items: center; overflow: hidden; }
.project-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 26, .1), rgba(6, 6, 26, .78)); transition: opacity .4s; }
.project:hover .project-media::before { opacity: .6; }
.project-media span { position: relative; font-weight: 800; padding: 6px 20px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(6, 6, 26, .35); backdrop-filter: blur(6px); }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover .project-media img { transform: scale(1.06); }
.project-media:has(img)::before { z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(6, 6, 26, .55)); }
.project-city { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.t-mech { color: #5cd0e0; border-color: rgba(92, 208, 224, .4); background: rgba(92, 208, 224, .08); }
.t-elec { color: #ffbf5e; border-color: rgba(255, 191, 94, .4); background: rgba(255, 191, 94, .08); }
.t-plumb { color: #8aa2ff; border-color: rgba(138, 162, 255, .4); background: rgba(138, 162, 255, .08); }
.t-fire { color: #ff7aa2; border-color: rgba(255, 92, 138, .4); background: rgba(255, 92, 138, .08); } border-color: rgba(214, 164, 255, .4); background: rgba(214, 164, 255, .08); }
.more-row { margin-top: 36px; }
.project-body { padding: 22px 24px; }
.project-body h3 { font-size: 1.1rem; margin-bottom: .3em; }
.project-body p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 16px; border-radius: var(--radius); background: var(--panel); padding: 18px 20px; transition: transform .3s var(--ease), background-color .3s; }
a.contact-item:hover { transform: translateY(-3px); background: var(--panel-2); }
.contact-item .icon { margin: 0; width: 52px; height: 52px; }
.contact-item .icon .i { width: 24px; height: 24px; }
.contact-item small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.contact-item strong { font-size: 1.05rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; background: var(--panel); padding: 1px; }
.map-frame iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: calc(var(--radius) - 1px); filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 200px; }
.wa-off .wa-only { display: none; }
.chapter-num.sys-mech { color: #5cd0e0; border-color: #5cd0e0; }
.chapter-num.sys-elec { color: #ffbf5e; border-color: #ffbf5e; }
.chapter-num.sys-plumb { color: #8aa2ff; border-color: #ff5c8a; }
.map-box { min-height: 170px; border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px; color: var(--muted); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px), var(--panel); }
.map-box > .i { width: 34px; height: 34px; color: var(--pink); }

.form { border-radius: 24px; background: rgba(255, 255, 255, .04); padding: clamp(24px, 4vw, 40px); }
.form h2 { font-size: 1.7rem; font-weight: 900; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(6, 6, 26, .55);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(164, 167, 204, .6); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(6, 6, 26, .8); box-shadow: 0 0 0 4px rgba(92, 208, 224, .16); }
.field [aria-invalid="true"] { border-color: #ff6b81; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-weight: 600; font-size: .95rem; }
.form-status.error { color: #ff8fa1; }
.form-status.ok { color: #7be3b5; }
.form-note { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 110px); overflow: hidden; background: radial-gradient(800px 400px at 50% 0%, rgba(164, 107, 224, .14), transparent 70%); }
.footer-cta { text-align: center; padding-bottom: clamp(56px, 8vw, 96px); margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-cta .kicker { justify-content: center; }
.footer-cta-title { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.15; max-width: 14em; margin: 0 auto 34px; background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid .brand { margin-bottom: 18px; }
.footer-grid p { color: var(--muted); max-width: 26em; }
.footer h3 { font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; color: var(--muted); }
.footer-grid ul a:hover, .footer-grid ul a[aria-current="page"] { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .i { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }

/* WhatsApp floating button */
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .i { width: 28px; height: 28px; stroke-width: 2; }

/* 404 */
.notfound { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.notfound .page-hero-bg { background: radial-gradient(600px 400px at 50% 40%, rgba(164, 107, 224, .2), transparent 70%); }
.notfound .container { position: relative; z-index: 2; }
.notfound .code { font-size: clamp(6rem, 20vw, 11rem); font-weight: 900; line-height: 1; margin-bottom: 10px; }
.notfound .lead { margin-inline: auto; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid-3 > .reveal:nth-child(3n+2), .js .grid-4 > .reveal:nth-child(4n+2), .js .timeline > .reveal:nth-child(2) { transition-delay: .1s; }
.js .grid-3 > .reveal:nth-child(3n), .js .grid-4 > .reveal:nth-child(4n+3), .js .timeline > .reveal:nth-child(3) { transition-delay: .2s; }
.js .grid-4 > .reveal:nth-child(4n), .js .timeline > .reveal:nth-child(4) { transition-delay: .3s; }
.js .reveal.in:hover { transition-delay: 0s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: inline-flex; }
  .header .btn-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 28px 24px 40px;
    background: rgba(6, 6, 26, .97); backdrop-filter: blur(16px);
    display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a { font-size: 1.6rem; font-weight: 800; color: #fff; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--teal); }
  .nav-extra { display: flex; flex-direction: column; gap: 16px; }
  .nav-lang { text-align: center; color: var(--muted); font-weight: 700; padding: 8px; }
  .split, .about, .contact { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-visual { order: 0; }
  .service-visual { aspect-ratio: 16 / 9; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .story-progress { inset-inline-end: 14px; }

  /* Story on phones: building in the upper part, text at the bottom */
  .chapter { top: auto; bottom: 96px; transform: translateY(30px); }
  .chapter.is-active { transform: none; }
  [dir] .story-scrim { background: linear-gradient(to top, rgba(6, 6, 26, .96) 0%, rgba(6, 6, 26, .75) 38%, transparent 62%); }
  [dir] .page-hero-bg { background: linear-gradient(to top, rgba(6, 6, 26, .97) 10%, rgba(6, 6, 26, .6) 55%, rgba(6, 6, 26, .35)); }
  .page-hero { align-items: flex-end; min-height: 82vh; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { width: 38px; }
  .brand-sub { display: none; }
  .grid-3, .grid-4, .form-row, .service .checks { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .chapter { bottom: 84px; }
  .chapter-hero .eyebrow { margin-bottom: 16px; }
  .scroll-hint { bottom: 18px; }
  .scroll-hint .mouse { display: none; }
  .story-progress { display: none; }
  .chip { font-size: .8rem; padding: 8px 12px; }
  .chip-a { inset-inline-start: 2%; }
  .chip-b { inset-inline-end: 2%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-start: 16px; }
}
.project-body .area { display: block; margin-top: 4px; font-size: .85rem; color: var(--teal); font-weight: 700; }
/* Service with a looping video instead of an icon (BIM) */
.service-media .service-visual { aspect-ratio: 1040 / 428; }
.service-media .service-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-media .service-num { z-index: 1; -webkit-text-stroke: 1px rgba(6, 6, 26, .35); color: rgba(255, 255, 255, .55); }
.media-caption { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .92rem; font-weight: 700; color: var(--teal); }
.media-caption .i { width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.service.service-media { grid-template-columns: 1.3fr 1fr; }
.service-media .service-num { display: none; }
@media (max-width: 960px) { .service.service-media { grid-template-columns: 1fr; } }
/* Client logo shown exactly as supplied (original colours) on a white badge */
.logo-badge { display: grid; place-items: center; flex: none; background: #fff; border-radius: 10px; padding: 5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.brand .logo-badge img { width: 38px; height: auto; }
.tilt-logo { display: grid; place-items: center; background: #fff; border-radius: 22px; padding: 22px; width: 46%; box-shadow: 0 24px 50px rgba(0, 0, 0, .55); filter: none; }
.tilt-logo img { width: 100%; height: auto; }
@media (max-width: 640px) { .brand .logo-badge img { width: 32px; } }
