/* ============================================================
   SPHERE Consulting — stylesheet
   Brand palette & typography ported from lib/theme.dart
   ============================================================ */

:root {
  --blue: #2C7198;
  --deep: #024B78;
  --deeper: #023757;
  --green: #99D12C;
  --green-dark: #7FB31F;
  --ink: #313131;
  --muted: #5C6B76;
  --tint: #EEF4F9;
  --tint2: #E2EDF5;
  --line: #D8E4EC;
  --hero-grad: linear-gradient(135deg, #023757 0%, #024B78 52%, #0A5D92 100%);
  --band-grad: linear-gradient(135deg, var(--deep), var(--blue));
  --shadow: 0 10px 30px rgba(2, 75, 120, .10);
  --shadow-lg: 0 24px 60px rgba(2, 75, 120, .16);
  --radius: 18px;
  --content: 1180px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--deep);
  font-weight: 700;
  line-height: 1.18;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}

.content { width: min(92%, var(--content)); margin: 0 auto; }

/* ------------------------------------------------------------------
   Reveal-on-scroll (Flutter `Reveal` widget)
------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.215, .61, .355, 1),
              transform .65s cubic-bezier(.215, .61, .355, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------
   Top bar
------------------------------------------------------------------ */
.topbar { background: var(--deeper); padding: 7px 0; }
.topbar .content { display: flex; align-items: center; justify-content: space-between; }
.topbar-mail {
  display: inline-flex; align-items: center; gap: 7px;
  color: #CFE3F0; font-size: 13px;
}
.topbar-mail .material-symbols-outlined { font-size: 15px; }
.topbar-social { display: flex; align-items: center; }
.topbar-social a {
  padding: 0 7px; color: #CFE3F0;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center;
}
.topbar-social a:hover { color: var(--green); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ------------------------------------------------------------------
   Header + nav
------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 78px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .content { display: flex; align-items: center; height: 100%; }
.header-logo { cursor: pointer; }
.header-logo img { height: 60px; }
.header-spacer { flex: 1; }

.main-nav { display: flex; align-items: center; }
.nav-item { position: relative; margin: 0 2px; }
.nav-link {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  color: var(--deep); cursor: pointer;
  transition: background .2s, color .2s;
}
.nav-item:hover > .nav-link { background: var(--tint); color: var(--blue); }
.nav-link .material-symbols-outlined { font-size: 18px; transition: transform .2s; }
.nav-item:hover .nav-link .material-symbols-outlined { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 300px; background: #fff; border-radius: 14px;
  padding: 8px; box-shadow: 0 18px 46px rgba(2, 75, 120, .25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown::before { /* hover bridge */
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.drop-item {
  display: block; padding: 10px 13px; border-radius: 9px;
  transition: background .18s, padding-left .18s; cursor: pointer;
}
.drop-item:hover { background: var(--tint); padding-left: 18px; }
.drop-item.disabled { cursor: default; opacity: .55; }
.drop-item.disabled:hover { background: transparent; padding-left: 13px; }
.drawer-sub .disabled { display: block; padding: 8px; cursor: default; opacity: .55; }
.drawer-sub .disabled b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.drop-item b { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink); }
.drop-item:hover b { color: var(--deep); }
.drop-item span { font-size: 12px; color: var(--muted); }

.header-cta { margin-left: 12px; }

.menu-btn {
  display: none; color: var(--deep); padding: 6px;
}
.menu-btn .material-symbols-outlined { font-size: 30px; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(2, 40, 63, .45);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 200;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; z-index: 201; padding: 20px 16px;
  overflow-y: auto; transform: translateX(100%); transition: transform .3s;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer img.drawer-logo { height: 56px; margin-bottom: 16px; }
.drawer-group > .drawer-head {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 13px 8px; font-family: var(--font-display); font-size: 15px;
  font-weight: 600; color: var(--deep); text-align: left;
}
.drawer-group .material-symbols-outlined { color: var(--blue); transition: transform .25s; }
.drawer-group.open .drawer-head .material-symbols-outlined { transform: rotate(180deg); }
.drawer-sub { display: none; padding-left: 12px; }
.drawer-group.open .drawer-sub { display: block; }
.drawer-sub a { display: block; padding: 8px; }
.drawer-sub b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.drawer-sub span { font-size: 11.5px; color: var(--muted); }
.drawer-cta { margin: 16px auto 0; display: flex; justify-content: center; }

/* ------------------------------------------------------------------
   Buttons (Flutter PillButton)
------------------------------------------------------------------ */
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 27px; border-radius: 999px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  background: var(--green); color: var(--deeper);
  transition: background .25s, transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer; border: 2px solid transparent;
}
.pill-btn .material-symbols-outlined { font-size: 18px; transition: transform .25s; }
.pill-btn:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(127, 179, 31, .35); }
.pill-btn:hover .material-symbols-outlined { transform: translateX(3px); }

.pill-btn.blue { background: var(--deep); color: #fff; }
.pill-btn.blue:hover { background: var(--blue); box-shadow: 0 12px 26px rgba(44, 113, 152, .35); }

.pill-btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .54); box-shadow: none; }
.pill-btn.outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }

/* ------------------------------------------------------------------
   Sections & headings
------------------------------------------------------------------ */
.section { padding: 96px 0; background: #fff; scroll-margin-top: 90px; }
.section.tinted { background: var(--tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--blue);
}
.eyebrow.green { color: var(--green); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: 38px; margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ------------------------------------------------------------------
   Responsive grid (Flutter ResponsiveGrid)
------------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ------------------------------------------------------------------
   Hero (home)
------------------------------------------------------------------ */
.hero { background: var(--hero-grad); color: #fff; }
.hero-inner {
  display: grid; grid-template-columns: 11fr 9fr; gap: 40px;
  align-items: center; padding: 100px 0 40px;
}
.hero h1 {
  font-size: clamp(28px, 3.4vw, 42px); color: #fff; letter-spacing: -.8px;
  margin: 18px 0 10px;
}
.hero h1 .hl { color: var(--green); background: rgba(153, 209, 44, .14); padding: 0 4px; border-radius: 4px; }
.hero-tagline {
  font-family: var(--font-display); font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600; color: var(--green); margin: 0 0 18px; letter-spacing: .3px;
}
.hero-sub { max-width: 540px; font-size: 17px; color: #D7E7F2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 14px; margin: 30px 0 38px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: flex-start; }
.hero-badge { text-align: center; }
.hero-badge b { display: block; font-family: var(--font-display); font-size: 18px; color: #fff; }
.hero-badge span { font-size: 12.5px; color: #CFE3F0; }


/* ---------------- Animated world (globe) ---------------- */
.world { position: relative; width: min(440px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.world .orbit-ring { position: absolute; inset: 0; animation: spin 30s linear infinite; }
.world .orbit-ring.outer { inset: -7%; animation-direction: reverse; }
.world .orbit-ring svg { width: 100%; height: 100%; }

.globe {
  position: absolute; inset: 11%;
  border-radius: 50%;
  overflow: hidden;
  background: #2C7199;
  box-shadow: 0 30px 80px rgba(0, 20, 40, .5),
              inset -22px -26px 60px rgba(0, 0, 0, .35);
}
.globe-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.globe::after { /* spherical shine + shading over the flat scrolling map */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.28), transparent 46%),
    radial-gradient(circle at 72% 78%, rgba(0,0,0,.30), transparent 60%);
  pointer-events: none;
}

.globe .pin { position: absolute; width: 10px; height: 10px; }
.globe .pin::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
}
.globe .pin::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  border: 2px solid var(--green); border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pinPulse 2.6s ease-out infinite;
  animation-delay: var(--pin-delay, 0s);
}
@keyframes pinPulse {
  0%   { width: 10px; height: 10px; opacity: .65; }
  100% { width: 38px; height: 38px; opacity: 0; }
}

.chip-orbit { position: absolute; inset: 0; pointer-events: none; }
.sector-chip {
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: center; gap: 7px;
  background: #fff; border-radius: 999px; padding: 8px 14px;
  box-shadow: 0 12px 28px rgba(0, 20, 40, .35);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--deep);
  white-space: nowrap;
}
.sector-chip .ic {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--tint); color: var(--blue);
}
.sector-chip .ic .material-symbols-outlined { font-size: 14px; }
.sector-chip.green .ic { background: #F0F9DD; color: var(--green-dark); }

.float-card {
  position: absolute; bottom: 2%; left: -4%;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 13px 18px;
  box-shadow: var(--shadow-lg);
  animation: bob 5.5s ease-in-out infinite;
}
.float-card .pct {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700; color: var(--deeper);
}
.float-card b { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--deep); }
.float-card span { font-size: 12px; color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(-14px); } }

/* ------------------------------------------------------------------
   Stats strip
------------------------------------------------------------------ */
/* (Stats card removed) */

/* ------------------------------------------------------------------
   Split rows (about intro / mission band / split blocks)
------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }

.about-pic { position: relative; }
.about-pic > img { border-radius: 18px; aspect-ratio: 4 / 3.1; width: 100%; object-fit: cover; }
.about-pic .badge {
  position: absolute; bottom: -20px; right: -14px; width: 230px;
  background: var(--deep); border-radius: 14px; padding: 18px;
  box-shadow: var(--shadow-lg);
}
.about-pic .badge b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--green); }
.about-pic .badge span { font-size: 13px; color: #D7E7F2; }

.split h2 { font-size: 36px; margin: 14px 0 16px; }
.split .lead { color: var(--muted); }

.tick { display: flex; gap: 11px; margin-bottom: 12px; font-weight: 500; }
.tick .dot {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  border-radius: 50%; background: var(--green);
  display: grid; place-items: center; color: var(--deeper);
}
.tick .dot .material-symbols-outlined { font-size: 14px; font-variation-settings: 'wght' 700; }
.ticks { margin: 22px 0 10px; }
.split .split-img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }

/* Mission band */
.band { background: var(--band-grad); color: #fff; padding: 96px 0; }
.band h2 { color: #fff; font-size: 35px; margin: 14px 0; }
.band p { color: #D7E7F2; }
.band .pill-btn { margin-top: 26px; }
.band .split-img { aspect-ratio: 4 / 3; }

/* ------------------------------------------------------------------
   Cards (HoverLift ported as CSS 3D tilt via JS)
------------------------------------------------------------------ */
.lift {
  transition: transform .2s ease-out, box-shadow .25s, border-color .25s;
  transform-style: preserve-3d; will-change: transform;
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; height: 100%;
}
.lift:hover .card, .card.lift:hover { box-shadow: var(--shadow-lg); }

/* Service card */
.service-card { cursor: pointer; display: flex; flex-direction: column; }
.service-card .bar {
  height: 4px; width: 0; margin-bottom: 18px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width .3s;
}
.service-card:hover .bar { width: 120px; }
.service-card .ic {
  width: 58px; height: 58px; border-radius: 16px; background: var(--tint);
  display: grid; place-items: center; color: var(--blue); transition: .3s;
}
.service-card:hover .ic { background: var(--deep); color: var(--green); }
.service-card .ic .material-symbols-outlined { font-size: 27px; }
.service-card h3 { font-size: 17.5px; margin: 18px 0 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.learn-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--blue);
}
.learn-more .material-symbols-outlined { font-size: 16px; transition: transform .25s; }
.service-card:hover .learn-more .material-symbols-outlined,
.blog-card:hover .learn-more .material-symbols-outlined { transform: translateX(4px); }

/* News card */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--green); color: var(--deeper); border-radius: 999px;
  padding: 5px 12px; font-family: var(--font-display); font-size: 11px; font-weight: 600;
}
.news-body { padding: 22px; }
.news-body h3 { font-size: 17px; }
.news-body p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* Blog card */
.grid.cols-3 > .reveal, .grid.cols-3 > .lift { height: 100%; }
.blog-card { cursor: pointer; display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; }
.blog-card:hover { border-color: var(--green); }
.blog-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card > .blog-meta,
.blog-card > h3,
.blog-card > p,
.blog-card > .learn-more { margin-left: 22px; margin-right: 22px; }
.blog-card > .blog-meta { margin-top: 20px; }
.blog-card > h3 { min-height: 2.8em; }
.blog-card > p { flex: 1; }
.blog-card > .learn-more { margin-top: 14px; margin-bottom: 22px; }
.blog-meta { display: flex; align-items: center; gap: 10px; }
.blog-cat {
  background: var(--tint); color: var(--blue); border-radius: 999px;
  padding: 4px 11px; font-family: var(--font-display); font-size: 10.5px; font-weight: 600;
  flex: none;
}
.blog-date { font-size: 12.5px; color: var(--muted); }
.blog-card h3 { font-size: 16.5px; margin: 14px 22px 6px; line-height: 1.4; }
.blog-card p {
  font-size: 14px; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .learn-more { font-size: 13.5px; margin-top: 16px; }
.blog-card .learn-more .material-symbols-outlined { font-size: 14px; }

/* Value card */
.value-card:hover { border-color: var(--green); }
.value-card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--tint);
  display: grid; place-items: center; color: var(--blue);
}
.value-card .ic .material-symbols-outlined { font-size: 25px; }
.value-card h3 { font-size: 17px; margin: 16px 0 8px; }
.value-card p { font-size: 14px; color: var(--muted); }

/* Team card */
.team-card { padding: 28px 18px; text-align: center; }
.team-avatar {
  width: 140px; height: 140px; margin: 0 auto; border-radius: 50%;
  border: 4px solid var(--tint); background: #fff;
  overflow: hidden; cursor: pointer; transition: border-color .25s;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--deep);
}
.team-card:hover .team-avatar { border-color: var(--green); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar.grad-0 { background: linear-gradient(135deg, var(--blue), var(--deep)); color: #fff; }
.team-avatar.grad-1 { background: linear-gradient(135deg, #0A5D92, var(--deeper)); color: #fff; }
.team-avatar.grad-2 { background: linear-gradient(135deg, var(--green-dark), #5E8C15); color: #fff; }
.team-card h3 { font-size: 16px; margin: 16px 0 4px; }
.team-card span { font-size: 13px; color: var(--muted); }

/* Commit card */
.commit-card { padding: 0; display: flex; overflow: hidden; border-radius: 12px; }
.commit-card .edge { width: 5px; flex: none; background: var(--green); }
.commit-body { padding: 26px; }
.commit-body .pct { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--blue); }
.commit-body h3 { font-size: 17px; margin: 10px 0 8px; }
.commit-body p { font-size: 14px; color: var(--muted); }

/* Feature row (About / Goals) */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.feature-row .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tint);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--blue);
}
.feature-row h3 { font-size: 23px; margin: 16px 0 12px; }
.feature-row p { color: var(--muted); }
.feature-row img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-row.flip .fr-copy { order: 2; }

/* Quote block */
.quote-block {
  display: flex; margin: 40px 0; background: var(--tint); border-radius: 12px; overflow: hidden;
}
.quote-block .edge { width: 6px; flex: none; background: var(--green); }
.quote-body { padding: 38px 38px 34px 32px; }
.quote-body .q {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  line-height: 1.5; color: var(--deep);
}
.quote-person { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.quote-person .av {
  width: 52px; height: 52px; border-radius: 50%; background: var(--deep); flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff;
}
.quote-person b { color: var(--deep); font-weight: 600; }
.quote-person span { display: block; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------
   Partner marquee
------------------------------------------------------------------ */
.marquee { overflow: hidden; height: 96px; position: relative; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-logo {
  padding: 18px 27px; opacity: .68; filter: grayscale(1);
  transition: opacity .25s, filter .25s, transform .25s;
}
.marquee-logo img { height: 56px; width: auto; max-width: none; }
.marquee-logo:hover { opacity: 1; filter: none; transform: scale(1.08); }

/* ------------------------------------------------------------------
   3D gallery coverflow
------------------------------------------------------------------ */
.g3d { position: relative; height: 400px; overflow: hidden; perspective: 900px; }
.g3d-item {
  position: absolute; top: 20px; bottom: 20px; left: 50%; width: 48%;
  border-radius: 20px; border: 5px solid #fff; overflow: hidden;
  box-shadow: 0 22px 40px rgba(2, 55, 87, .35);
  cursor: pointer; will-change: transform, opacity;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .7s;
}
.g3d-item img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g-tile {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  aspect-ratio: 100 / 74; box-shadow: var(--shadow);
  transition: transform .26s, box-shadow .26s;
}
.g-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-tile:hover img { transform: scale(1.07); }
.g-tile .ov {
  position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: linear-gradient(to bottom, transparent, rgba(2, 55, 87, .55));
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px; color: #fff;
}
.g-tile:hover .ov { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(0, 0, 0, .92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: calc(100vw - 56px); max-height: calc(100vh - 56px);
  border-radius: 14px; object-fit: contain;
}
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .3); }
.lb-btn .material-symbols-outlined { font-size: 26px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-caption {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px;
  border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}

/* ------------------------------------------------------------------
   Page hero (inner pages)
------------------------------------------------------------------ */
.page-hero {
  background: var(--hero-grad); color: #fff; padding: 92px 0; position: relative;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.1px, transparent 1.4px);
  background-size: 28px 28px;
}
.page-hero .content { position: relative; max-width: 820px; margin-left: max(4vw, calc((100vw - var(--content)) / 2)); }
.crumb { font-size: 13.5px; color: #A9C8DB; }
.crumb a { color: #CFE3F0; }
.crumb a:hover { color: var(--green); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); margin: 16px 0 14px; }
.page-hero p { font-size: 17px; color: #D7E7F2; }

/* ------------------------------------------------------------------
   Project cards (Current Initiatives / Delivered Projects)
------------------------------------------------------------------ */
.proj-card {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  height: 100%; text-align: left;
}
a.proj-card { color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s; }
a.proj-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.proj-card .ic-media {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint);
}
.proj-card .ic-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.proj-card:hover .ic-media img { transform: scale(1.04); transition: transform .4s; }
.proj-card .proj-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.proj-card .proj-body h3 { font-size: 17px; color: var(--deep); margin: 0 0 8px; }
.proj-card .proj-body p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
.proj-link {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--green-dark);
}
.proj-link .material-symbols-outlined { font-size: 18px; transition: transform .2s; }
a.proj-card:hover .proj-link .material-symbols-outlined { transform: translateX(4px); }
.proj-card.is-static { cursor: default; }

/* Long-form prose (ECD detail) */
.prose { max-width: 860px; }
.prose h2 { font-size: 22px; color: var(--deep); margin: 34px 0 12px; }
.prose p { font-size: 16px; color: var(--ink); line-height: 1.7; margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose ul li { font-size: 16px; color: var(--ink); line-height: 1.7; margin-bottom: 4px; }
.ecd-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 26px 0 34px;
}
.ecd-shot {
  border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; display: block; width: 100%;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.ecd-shot img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform .4s; }
.ecd-shot:hover { box-shadow: var(--shadow-lg); }
.ecd-shot:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .ecd-gallery { grid-template-columns: 1fr; }
  .ecd-shot img { height: 260px; }
}

/* ------------------------------------------------------------------
   Service page
------------------------------------------------------------------ */
.service-layout { display: grid; grid-template-columns: 290px 1fr; gap: 46px; align-items: start; }
.side-link {
  display: block; width: 100%; margin-bottom: 10px; padding: 15px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink);
  transition: .22s; cursor: pointer; text-align: left;
}
.side-link:hover { border-color: var(--blue); color: var(--blue); padding-left: 22px; }
.side-link.active { background: var(--deep); border-color: var(--deep); color: #fff; }
.side-link.active:hover { padding-left: 18px; }
.side-cta {
  margin-top: 10px; padding: 22px; border-radius: 14px;
  background: var(--band-grad); color: #fff;
}
.side-cta b { display: block; font-family: var(--font-display); font-size: 17px; }
.side-cta p { font-size: 13.5px; color: #D7E7F2; margin: 6px 0 16px; }

.service-body > img { border-radius: 18px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 12px; }
.pill {
  background: var(--tint); border: 1px solid var(--tint2); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 500; color: var(--deep);
}
.service-body h2 { font-size: 25px; margin: 44px 0 10px; }
.service-body .sec-p { color: var(--muted); }

/* ------------------------------------------------------------------
   Contact page
------------------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 12fr 9fr; gap: 50px; align-items: start; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: var(--shadow);
}
.contact-form h2 { font-size: 26px; margin: 12px 0 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; font: inherit; font-size: 14.5px;
  background: rgba(238, 244, 249, .55); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); outline: none; transition: border .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); font-size: 14px; }
.field input:focus, .field textarea:focus { border: 2px solid var(--blue); padding: 14px 15px; }
.field.error input, .field.error textarea { border: 2px solid #ff5252; padding: 14px 15px; }
.field .err { display: none; color: #d32f2f; font-size: 12.5px; margin: 4px 2px 0; }
.field.error .err { display: block; }
.field textarea { min-height: 150px; resize: vertical; }
.field.full { margin-bottom: 16px; }

.captcha-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0 22px; }
.captcha-row canvas { border: 1px solid var(--line); border-radius: 10px; }
.captcha-refresh {
  background: var(--tint); border-radius: 10px; padding: 12px;
  color: var(--blue); display: grid; place-items: center; transition: background .2s;
}
.captcha-refresh:hover { background: var(--tint2); }
.captcha-row .field { width: 230px; }
.form-label { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--deep); display: block; margin-bottom: 10px; }

.contact-info {
  background: var(--band-grad); color: #fff; border-radius: 18px; padding: 30px;
}
.contact-info h2 { color: #fff; font-size: 22px; }
.contact-info .tagline { font-size: 14px; color: #D7E7F2; margin: 6px 0 26px; }
.info-row { display: flex; gap: 14px; margin-bottom: 18px; }
.info-row a { display: flex; gap: 14px; }
.info-row .ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: rgba(255, 255, 255, .12); color: var(--green);
  display: grid; place-items: center;
}
.info-row .ic .material-symbols-outlined { font-size: 20px; }
.info-row b { display: block; font-family: var(--font-display); font-size: 14px; }
.info-row span { font-size: 13.5px; color: #D7E7F2; }
.follow-label { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin: 28px 0 12px; }
.soc-row { display: flex; gap: 10px; }
.soc-row a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .12);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  transition: background .22s, transform .22s;
}
.soc-row a:hover { background: var(--green); color: var(--deeper); transform: translateY(-3px); }
.soc-row svg { width: 16px; height: 16px; fill: currentColor; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 80px);
  background: var(--deep); color: #fff; font-size: 14px;
  padding: 14px 22px; border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: .35s; z-index: 600; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------
   Blog post page
------------------------------------------------------------------ */
.blog-post { max-width: 860px; margin: 0 auto; }
.blog-cover { display: block; max-width: 100%; width: auto; max-height: 520px; height: auto; margin: 0 auto 28px; border-radius: 16px; box-shadow: var(--shadow); }
.blog-list-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; text-align: left; text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s; }
.blog-list-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-list-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.blog-list-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-list-card:hover .blog-list-media img { transform: scale(1.04); }
.blog-list-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-list-body h3 { font-size: 16.5px; color: var(--deep); margin: 8px 0; line-height: 1.35; }
.blog-list-body p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; flex: 1; }
.blog-viewall-cell { display: flex; align-items: center; justify-content: center; min-height: 200px; }
.blog-post .para[dir="rtl"] { direction: rtl; text-align: right; font-size: 19px; line-height: 2; }
.blog-post .para { margin-bottom: 16px; font-size: 17px; }
.blog-post .para.rtl { direction: rtl; text-align: right; font-size: 18px; line-height: 2; font-family: system-ui, sans-serif; }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hashtag {
  background: var(--tint); border-radius: 999px; padding: 5px 12px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--blue);
}
.more-info { margin-top: 22px; font-size: 16px; }
.more-info a { font-weight: 600; color: var(--blue); text-decoration: underline; }
.post-in { margin-top: 18px; font-size: 15px; color: var(--muted); }
.post-in b { color: var(--deep); }
.post-rule { height: 1px; background: var(--line); margin: 30px 0 26px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 14px 14px; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.footer { background: var(--deeper); color: #B9D2E2; }
.footer-accent { height: 5px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.footer-cols {
  display: grid; grid-template-columns: 14fr 9fr 10fr 12fr; gap: 40px;
  padding: 56px 0 36px;
}
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 62px; filter: brightness(0) invert(1); }
.footer-about { font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  transition: background .22s, color .22s, transform .22s;
}
.footer-social a:hover { background: var(--green); color: var(--deeper); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.foot-link { display: block; font-size: 14px; padding-bottom: 9px; transition: color .18s, padding-left .18s; cursor: pointer; }
.foot-link:hover { color: var(--green); padding-left: 5px; }
.foot-contact { display: flex; gap: 9px; font-size: 14px; margin-bottom: 14px; }
.foot-contact .material-symbols-outlined { font-size: 17px; color: var(--green); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0;
}
.footer-bottom .content { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 13px; color: #8FB0C4; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--green); color: var(--deeper);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transform: scale(0); transition: transform .25s;
}
.to-top.show { transform: scale(1); }

/* ------------------------------------------------------------------
   Intro overlay
------------------------------------------------------------------ */
.intro {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(120% 130% at 50% 40%, #06263E, #021423);
  transition: opacity .6s ease-in;
}
.intro.done { opacity: 0; pointer-events: none; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-skip {
  position: absolute; right: 24px; bottom: 24px;
  color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px; padding: 10px 18px; font-size: 13px; transition: opacity .3s;
}
.intro-skip:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.intro-skip.hide { opacity: 0; pointer-events: none; }

/* Page fade transition (Flutter FadeTransition on route change) */
#app { animation: pageFade .38s ease-out; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 64px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { margin: 0 auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .world { margin-top: 48px; }
  .service-layout { grid-template-columns: 1fr; }
  .service-side { order: 2; margin-top: 40px; }
}

@media (max-width: 1000px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .topbar-mail { display: none; }
  .topbar .content { justify-content: center; }
  .section, .band { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .split, .contact-layout, .feature-row { grid-template-columns: 1fr; }
  .split { gap: 34px; }
  .split .split-media { order: -1; }
  .band .split-media { order: 2; }
  .about-pic .badge { right: 0; }
  .split h2 { font-size: 26px; }
  .band h2 { font-size: 26px; }
  .feature-row .fr-media { order: -1; }
  .feature-row.flip .fr-copy { order: 0; }
  .page-hero { padding: 60px 0; }
  .g3d { height: 272px; }
  .g3d-item { top: 12px; bottom: 12px; }
  .blog-post .para { font-size: 15.5px; }
  .footer-cols { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .sector-chip { padding: 6px 10px; font-size: 11px; }
  .sector-chip .ic { width: 20px; height: 20px; }
  .sector-chip .ic .material-symbols-outlined { font-size: 12px; }
}

/* ------------------------------------------------------------------
   Page loader (theme-colored)
------------------------------------------------------------------ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; background: var(--hero-grad);
  transition: opacity .45s ease, visibility .45s ease;
}
#page-loader.loaded { opacity: 0; visibility: hidden; }
.pl-globe {
  width: 84px; height: 84px;
  animation: pl-tilt 6s ease-in-out infinite;
}
.plg-sphere {
  fill: rgba(255, 255, 255, .04);
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 3;
}
.plg-lat {
  stroke: rgba(255, 255, 255, .35);
  stroke-width: 2;
  stroke-linecap: round;
}
.plg-mer {
  fill: none;
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 2;
}
.plg-mer-accent { stroke: var(--green); stroke-width: 2.5; }
@keyframes pl-tilt {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pl-globe { animation: none; }
}
