/* ============================================================
   InReality Solutions — design system
   Immersive dark theme · Plus Jakarta Sans · cyan/blue glow
   ============================================================ */

:root {
  --bg: #08111F;
  --bg-2: #101A2B;
  --bg-3: #162133;
  --hover: #1E2C44;
  --ink: #F5F7FA;
  --muted: #A5B1C2;
  --line: #2A3A52;
  --cyan: #16D9FF;
  --violet: #4B8CFF;
  --pink: #7FE3FF;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --grad: linear-gradient(115deg, #16D9FF 0%, #4B8CFF 100%);
  --glass: rgba(22, 33, 51, 0.62);
  --glass-strong: rgba(16, 26, 43, 0.86);
  --radius: 18px;
  --maxw: 1180px;
  --wa: #25d366;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

/* Smooth cross-fade between page navigations (progressive enhancement) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Article reading progress bar (injected by site.js) */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 300;
  pointer-events: none;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(75, 140, 255, 0.45); color: #fff; }

/* ---------- WebGL canvases ---------- */
#gl {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hero-gl {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { color: var(--muted); }
strong { color: var(--ink); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 46rem; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 50rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }

.surface {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(75, 140, 255, 0.10), transparent 60%),
    radial-gradient(700px 420px at 8% 30%, rgba(22, 217, 255, 0.07), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
/* When the mobile menu is open, keep the top bar fully solid & readable */
.site-header.menu-open {
  background: var(--bg);
  border-bottom-color: var(--line);
}
body.nav-open { overflow: hidden; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.07rem;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #101A2B;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(75, 140, 255, 0.45);
}
.brand span em { font-style: normal; color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: #A5B1C2;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

.nav-dd { position: relative; }
.nav-dd > a::after { content: " ▾"; font-size: 0.7em; color: var(--muted); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  translate: -50% 0;
  min-width: 250px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem;
  display: grid;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  translate: -50% 8px;
  transition: opacity 0.22s ease, translate 0.22s ease, visibility 0.22s;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; translate: -50% 0;
}
.nav-dd-menu a {
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  display: block;
}
.nav-dd-menu a:hover { background: rgba(75, 140, 255, 0.14); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-switch a { padding: 0.32rem 0.75rem; color: var(--muted); }
.lang-switch a.active { background: rgba(22, 217, 255, 0.16); color: var(--cyan); }

.nav-cta { display: flex; align-items: center; gap: 0.9rem; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--ink);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #101A2B;
  box-shadow: 0 8px 30px rgba(75, 140, 255, 0.38);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(22, 217, 255, 0.45); }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(22, 217, 255, 0.55); }
.btn-wa { background: var(--wa); color: #04220f; box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.86rem; }

/* ---------- Hero (journey + subpages) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4rem;
  overflow: clip;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right,  rgba(8,17,31,0.82) 0%, rgba(8,17,31,0.60) 50%, rgba(8,17,31,0.28) 100%),
    linear-gradient(to bottom, rgba(8,17,31,0.40) 0%, transparent 25%, transparent 75%, rgba(8,17,31,0.50) 100%);
}
.hero .wrap { position: relative; z-index: 3; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: rgba(16, 26, 43, 0.5);
  backdrop-filter: blur(6px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }

.hero--sub { min-height: 72svh; padding-top: 8.5rem; background:
    radial-gradient(800px 420px at 80% 0%, rgba(75, 140, 255, 0.13), transparent 65%),
    radial-gradient(600px 380px at 5% 60%, rgba(22, 217, 255, 0.08), transparent 60%); }

/* The heavy video scrim is for the homepage hero only — sub heroes have no
   video, so keep just a subtle grounding fade at the bottom. */
.hero--sub::after {
  background: linear-gradient(to bottom, transparent 72%, rgba(8, 17, 31, 0.55) 100%);
}
.hero--sub > .wrap { position: relative; z-index: 3; }
/* Service pages: keep the text column clear of the 3D stage on the right */
@media (min-width: 1100px) {
  .hero--split h1 { max-width: 17ch; }
  .hero--split .lead { max-width: 36rem; }
}
.hero--split h1 .grad-text { white-space: nowrap; }

/* Scroll-scrubbed sequence: sticky viewport theatre, tall scroll track */
.scrub { position: relative; height: 340vh; }
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.scrub-sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scrub-sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,17,31,0.55) 0%, transparent 22%, transparent 72%, rgba(8,17,31,0.85) 100%);
}
.scrub-copy {
  position: absolute;
  inset: auto 0 clamp(2rem, 7vh, 4.5rem) 0;
  z-index: 2;
  text-align: center;
  padding: 0 1.2rem;
}
.scrub-stage {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.scrub-stage.on { opacity: 1; transform: none; pointer-events: auto; }
.scrub-stage h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 24px rgba(8, 17, 31, 0.9);
}
.scrub-stage p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--ink);
  opacity: 0.85;
  text-shadow: 0 1px 14px rgba(8, 17, 31, 0.9);
}
.scrub-stage .btn { margin-top: 1.2rem; }
.scrub-hint {
  position: absolute;
  top: clamp(1.2rem, 4vh, 2.4rem);
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.8;
}
@media (max-width: 700px) {
  /* keep stage copy clear of the floating WhatsApp button */
  .scrub-copy { inset: auto 0 6.2rem 0; }
  .scrub-stage p { font-size: 0.92rem; }
}
.scrub--static { height: auto; }
.scrub--static .scrub-sticky { position: relative; height: 72svh; }
.scrub--static .scrub-stage { position: relative; margin-top: 0.8rem; }

/* Embedded company / showreel video */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  max-width: 960px;
  margin: 1.8rem auto 0;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* QR block beside the AR demo CTA — desktop only */
.ar-qr {
  display: none;
}
@media (min-width: 900px) {
  .ar-qr {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.6rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(16, 26, 43, 0.55);
  }
  .ar-qr img {
    width: 96px; height: 96px;
    border-radius: 8px;
    background: #F5F7FA;
    padding: 4px;
  }
  .ar-qr span {
    color: var(--muted);
    font-size: 0.85rem;
    max-width: 11rem;
    text-align: left;
  }
}

/* Indonesian-language nudge banner */
.lang-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  max-width: min(92vw, 34rem);
}
.lang-banner a { color: var(--cyan); font-weight: 700; }
.lang-banner button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.2rem;
}

/* Cinematic mid-page showcase band (service pages) */
.showcase {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.showcase img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: transform 6s ease;
}
.showcase:hover img { transform: scale(1.08); }
.showcase figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background: linear-gradient(to top, rgba(8, 17, 31, 0.92) 15%, rgba(8, 17, 31, 0.55) 55%, transparent);
}
.showcase figcaption h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  margin-bottom: 0.4rem;
}
.showcase figcaption p {
  color: var(--muted);
  max-width: 34rem;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
}
.post-meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); margin-bottom: 0.6rem; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--cyan), transparent);
  display: block;
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Journey stations (home) ---------- */
.station {
  min-height: 108svh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}
.station-card {
  width: min(560px, 100%);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3.4vw, 2.6rem);
  box-shadow: 0 24px 70px rgba(8, 17, 31, 0.55);
}
.station.right .wrap { display: flex; justify-content: flex-end; }
.station-card .num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--violet);
  margin-bottom: 0.8rem;
  display: block;
}
.station-card h2 { margin-bottom: 0.9rem; }
.station-card ul { margin: 1.2rem 0 1.5rem; display: grid; gap: 0.55rem; }
.station-card ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.station-card ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.6rem;
  top: 0.42em;
}
.station-card .links { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: rgba(22, 33, 51, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  background: var(--hover);
  border-color: rgba(22, 217, 255, 0.4);
  box-shadow: 0 18px 50px rgba(22, 217, 255, 0.08);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: rgba(75, 140, 255, 0.14);
  border: 1px solid rgba(75, 140, 255, 0.3);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; }
.card a.more { color: var(--cyan); font-weight: 700; font-size: 0.9rem; display: inline-block; margin-top: 0.9rem; }

.card-thumb {
  display: block;
  width: calc(100% + 3.4rem);
  margin: -1.7rem -1.7rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
  aspect-ratio: 16/9;
  height: auto;
}

.article-hero-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  margin: 0 0 2.5rem;
  object-fit: cover;
  aspect-ratio: 1200/630;
  height: auto;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.72;
  pointer-events: none;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  background: rgba(22, 33, 51, 0.5);
}
.stats b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.stats span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Process ---------- */
.process { counter-reset: step; }
.process .card { position: relative; padding-top: 2.1rem; }
.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.95rem;
  left: 1.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  background: var(--grad);
  color: #101A2B;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 54rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 33, 51, 0.5);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; font-weight: 400; transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 1.4rem 1.25rem; font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 24px;
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(75, 140, 255, 0.35);
  background:
    radial-gradient(620px 300px at 50% -40%, rgba(75, 140, 255, 0.35), transparent 70%),
    radial-gradient(480px 260px at 12% 120%, rgba(22, 217, 255, 0.22), transparent 70%),
    var(--bg-3);
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { max-width: 38rem; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* AR live-demo band */
.ar-band { border-color: rgba(22, 217, 255, 0.45); }
.ar-band .kicker { margin-bottom: 0.6rem; }
.ar-steps {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  flex-wrap: wrap;
  margin: 1.8rem auto 2rem;
}
.ar-steps div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  max-width: 15rem;
}
.ar-steps b {
  flex-shrink: 0;
  width: 2.1rem; height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #04101d;
  font-size: 1rem;
}
.ar-steps span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: #08111F;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  margin-bottom: 2.6rem;
}
.site-footer h4 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer a { color: var(--muted); transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.wa-float .tip {
  position: absolute;
  right: calc(100% + 0.8rem);
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.wa-float:hover .tip { opacity: 1; visibility: visible; }

/* ---------- Client logo wall ---------- */
.clients-cat { margin-bottom: 2.6rem; }
.clients-cat h3 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.clients-cat h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}
.logo-chip {
  background: #F5F7FA;
  border: 1px solid rgba(42, 58, 82, 0.22);
  border-radius: 14px;
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 0.9rem 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.logo-chip:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 217, 255, 0.18);
}
.logo-chip img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* uniform monochrome wall by default; true brand colour on hover so every
     logo stays visible regardless of its own colour (white / dark / coloured) */
  filter: grayscale(1) brightness(0) opacity(0.55);
  transition: filter 0.3s ease;
}
.logo-chip:hover img { filter: none; }

/* homepage marquee strip */
.logo-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee .track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.logo-marquee:hover .track { animation-play-state: paused; }
.logo-marquee .logo-chip { min-width: 170px; min-height: 80px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee .track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-grid label { font-size: 0.86rem; font-weight: 700; display: grid; gap: 0.45rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(16, 26, 43, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--cyan); }
.contact-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.6rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-info .card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.5rem; }
.contact-info .card .icon { margin: 0; flex-shrink: 0; }

/* ---------- Article / prose ---------- */
.prose { max-width: 50rem; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 0.7rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.2rem 1.1rem; list-style: disc; color: var(--muted); display: grid; gap: 0.45rem; }
.prose ul li::marker { color: var(--cyan); }
.prose ol { margin: 0 0 1.2rem 1.3rem; list-style: decimal; color: var(--muted); display: grid; gap: 0.55rem; }
.prose ol li::marker { color: var(--cyan); font-weight: 700; }
.prose ol li > strong:first-child { color: var(--ink); }

/* Tables and code carry the specifics an article is actually cited for,
   so they need to survive a phone screen. The wrapper scrolls, the page
   never does. */
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 34rem; }
.prose thead th {
  text-align: left; padding: 0.85rem 1rem; white-space: nowrap;
  background: rgba(22, 33, 51, 0.7); color: var(--ink);
  font-weight: 700; border-bottom: 1px solid var(--line);
}
.prose tbody td { padding: 0.8rem 1rem; color: var(--muted); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td strong { color: var(--ink); }

.prose :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; padding: 0.15em 0.42em; border-radius: 6px;
  background: rgba(22, 217, 255, 0.10); color: var(--ice, #7FE3FF);
  border: 1px solid rgba(22, 217, 255, 0.18);
}
.prose pre {
  overflow-x: auto; margin: 0 0 1.4rem; padding: 1.1rem 1.2rem;
  background: rgba(8, 17, 31, 0.75); border: 1px solid var(--line);
  border-radius: var(--radius); line-height: 1.6;
}
.prose pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem; color: #cfe6ff; white-space: pre;
}
.prose figcaption, .prose .note {
  font-size: 0.9rem; color: var(--muted);
  border-left: 2px solid var(--cyan); padding-left: 0.9rem; margin: 0 0 1.3rem;
}
.faq-block { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.faq-block h2 { margin-bottom: 1.5rem; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; color: var(--cyan); font-size: 1.3rem; flex-shrink: 0; margin-left: 1rem; }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 1.2rem 1rem; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.crumbs a { color: var(--cyan); }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; opacity: 0.5; }

/* ---------- Testimonials ---------- */
.grid-1 { max-width: 46rem; margin-inline: auto; }
.testimonial {
  background: rgba(22, 33, 51, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover {
  transform: translateY(-5px);
  background: var(--hover);
  border-color: rgba(22, 217, 255, 0.4);
  box-shadow: 0 18px 50px rgba(22, 217, 255, 0.08);
}
.testimonial blockquote { position: relative; padding-top: 1.5rem; flex: 1; }
.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.35rem;
  left: -0.15rem;
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.5;
}
.testimonial blockquote p { font-size: 0.95rem; }
.testimonial .t-metric {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(22, 217, 255, 0.1);
  border: 1px solid rgba(22, 217, 255, 0.3);
}
.testimonial figcaption { margin-top: 1.1rem; font-size: 0.92rem; }
.testimonial figcaption b { display: block; }
.testimonial figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Credentials & awards ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.cred-badge {
  background: rgba(22, 33, 51, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  place-items: center;
  min-height: 110px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.cred-badge:hover { border-color: rgba(22, 217, 255, 0.4); background: var(--hover); }
.cred-badge img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 62px;
    height: calc(100svh - 62px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.2rem 8vw 3rem;
    gap: 1.4rem;
    background: #0B1526;
    font-size: 1.15rem;
    color: var(--ink);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cyan); }
  .nav-dd > a::after { color: var(--cyan); }
  .nav-dd-menu {
    position: static;
    translate: 0 0;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0.4rem 0 0 1rem;
  }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .station.right .wrap { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Article author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 33, 51, 0.45);
}
.author-box img { border-radius: 50%; object-fit: cover; width: 72px; height: 72px; flex-shrink: 0; }
.author-box span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.author-box b { color: var(--ink); font-size: 1.05rem; }
.author-box p { margin: 0.1rem 0 0; font-size: 0.88rem; }
.author-box a { color: var(--cyan); font-weight: 700; }

/* Case study pages */
.case-meta-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.case-meta-chips span {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem;
  font-size: 0.82rem; color: var(--muted); background: rgba(16, 26, 43, 0.5);
}
.case-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
}
.case-stats .stat-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.2rem; text-align: center; background: rgba(22, 33, 51, 0.5);
}
.case-stats .stat-card b {
  display: block; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-stats .stat-card span { font-size: 0.85rem; color: var(--muted); }
.case-toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(16, 26, 43, 0.5); padding: 1.3rem 1.5rem; margin: 0 0 2.5rem;
}
.case-toc summary {
  cursor: pointer; list-style: none; margin-bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.case-toc summary::-webkit-details-marker { display: none; }
.case-toc summary::after {
  content: "+"; color: var(--cyan); font-size: 1.2rem; font-weight: 400;
}
.case-toc[open] summary { margin-bottom: 0.8rem; }
.case-toc[open] summary::after { content: "−"; }
.case-toc ol { list-style: decimal; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.case-toc a { color: var(--muted); font-size: 0.92rem; }
.case-toc a:hover { color: var(--cyan); }
.case-overview {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0 2.5rem;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.case-overview tr { border-bottom: 1px solid var(--line); }
.case-overview tr:last-child { border-bottom: none; }
.case-overview td { padding: 0.85rem 1.2rem; font-size: 0.92rem; }
.case-overview td:first-child { color: var(--muted); font-weight: 600; width: 38%; }
.case-overview td:last-child { color: var(--ink); }
.case-quote {
  border-left: 3px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(22, 33, 51, 0.5); padding: 1.6rem 1.8rem; margin: 2.5rem 0;
}
.case-quote p { font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 0.8rem; }
.case-quote b { color: var(--cyan); }
.case-quote span { color: var(--muted); font-size: 0.88rem; }
.case-index-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; background: rgba(22, 33, 51, 0.4); transition: transform 0.25s, border-color 0.25s;
}
.case-index-card:hover { transform: translateY(-4px); border-color: rgba(22, 217, 255, 0.4); }
.case-index-card .tag { color: var(--cyan); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.case-index-card h3 { margin: 0.5rem 0; }
.case-index-card .metric { font-size: 1.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
