/* ==========================================================================
   DWM GLOBAL, Digiwaz Media
   Brand palette sourced from portfolio: signature green #7ED957 on rich black,
   iridescent holographic accents, heavy sans + italic-serif heading motif.
   ========================================================================== */

:root {
  --bg:        #060607;
  --bg-2:      #0c0d10;
  --surface:   rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.18);

  --green:     #7ED957;   /* exact brand green from the DWM logo block (fills) */
  --green-dk:  #5fb93c;
  --green-ink: #7ED957;   /* green used for TEXT, darker on light theme for contrast */
  --grey:      #9a9ca1;   /* DWM logo grey */
  --text:      #f4f5f6;
  --muted:     #9aa0a6;
  --muted-2:   #6c7176;

  --header-bg: rgba(6,6,7,.72);
  --menu-bg:   rgba(6,6,7,.96);
  --input-bg:  rgba(0,0,0,.28);
  --input-bg-focus: rgba(0,0,0,.4);
  color-scheme: dark;

  /* iridescent / holographic ramp */
  --iri-1: #ff5e3a;
  --iri-2: #ffd23f;
  --iri-3: #7ED957;
  --iri-4: #22d3ee;
  --iri-5: #a855f7;
  --holo: conic-gradient(from 210deg,
      var(--iri-1), var(--iri-2), var(--iri-3),
      var(--iri-4), var(--iri-5), var(--iri-1));

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-body:    'Space Grotesk', 'Segoe UI', system-ui, sans-serif;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: #05210a; }

/* ---------- Ambient background layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  mix-blend-mode: screen; will-change: transform;
}
.orb-a { width: 46vw; height: 46vw; left: -12vw; top: -8vw;
  background: radial-gradient(circle, rgba(126,217,87,.55), transparent 68%);
  animation: drift 26s var(--ease) infinite alternate; }
.orb-b { width: 40vw; height: 40vw; right: -10vw; top: 26vh;
  background: radial-gradient(circle, rgba(168,85,247,.42), transparent 68%);
  animation: drift 32s var(--ease) infinite alternate-reverse; }
.orb-c { width: 34vw; height: 34vw; left: 40vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(34,211,238,.38), transparent 68%);
  animation: drift 30s var(--ease) infinite alternate; }
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(6vw,4vh,0) scale(1.18); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green), var(--iri-4), var(--iri-5)); box-shadow: 0 0 14px rgba(126,217,87,.6); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; padding: 16px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header .brand { justify-self: start; }
.site-header .nav { justify-self: center; }        /* nav truly centred in the bar */
.header-actions { justify-self: end; display: inline-flex; align-items: center; gap: 12px; }
.site-header.scrolled {
  background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--border); padding-top: 12px; padding-bottom: 12px;
}

/* Brand / logo lockup, faithful DWM + DIGIWAZ MEDIA GLOBAL block */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: -1px;
  color: var(--grey); line-height: .8; position: relative;
}
.brand-mark::after { /* signature horizontal cut through the letters */
  content: ""; position: absolute; left: -1px; right: -1px; top: 44%; height: 2px;
  background: var(--bg); mix-blend-mode: normal;
}
.brand-sub { display: flex; flex-direction: column; gap: 3px; }
.brand-sub > span { font-size: 8.5px; letter-spacing: 3px; color: var(--grey); font-weight: 600; }
.brand-global {
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 3px;
  color: #05210a; background: var(--green); padding: 2px 6px 1px; align-self: flex-start; border-radius: 2px;
}
/* actual DWM logo image, swaps by theme (light = grey mark, dark = white mark) */
.brand-logo { height: 34px; width: auto; display: block; }
.footer-brand .brand-logo { height: 40px; }
.brand-logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }
:root[data-theme="dark"] .brand-logo-light { display: none; }
@media (max-width: 620px) { .brand-logo { height: 28px; } }

.nav { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; z-index: 1; font-size: 13px; font-weight: 500; letter-spacing: .3px;
  color: var(--muted); padding: 8px 13px; border-radius: 999px;
  transition: color .3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: #05210a; font-weight: 700; }
/* single "liquid" active indicator, position/size driven by JS (see main.js) */
.nav-pill { position: absolute; left: 0; top: 0; z-index: 0; height: 32px; width: 0;
  border-radius: 999px; background: var(--green); box-shadow: 0 6px 22px -8px rgba(126,217,87,.8);
  opacity: 0; pointer-events: none; will-change: left, width; }

.nav-cta { padding: 9px 16px; font-size: 13px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body);
  font-weight: 600; font-size: 15px; letter-spacing: .2px; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #04220a; box-shadow: 0 10px 34px -12px rgba(126,217,87,.9); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(126,217,87,1); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--green-ink); color: var(--green-ink); }

/* mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0 0 auto 0; z-index: 99; top: 0; padding: 96px var(--pad) 40px;
  background: var(--menu-bg); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-102%); transition: transform .5s var(--ease); border-bottom: 1px solid var(--border);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.5px;
  padding: 10px 0; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--green-ink); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: stretch; padding: 100px var(--pad) 0; overflow: hidden; z-index: 2; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }

.hero-inner { max-width: 820px; position: relative; z-index: 3;
  flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(126,217,87,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(126,217,87,.6); } 70% { box-shadow: 0 0 0 12px rgba(126,217,87,0); } 100% { box-shadow: 0 0 0 0 rgba(126,217,87,0); } }

.hero-title { font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 8.4vw, 112px); line-height: .92; letter-spacing: -2px; margin-bottom: 24px; }
.hero-title .line { display: block; }
.hero-title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.hero-title .grad {
  background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% 220%; animation: holoShift 8s ease infinite;
}
@keyframes holoShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-lede { max-width: 560px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* full-width stats bar across the bottom of the hero */
.hero-stats { position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(14px, 1.8vw, 22px) 0 clamp(16px, 2vw, 26px);
  border-top: 1px solid var(--border); }
.hero-stats .stat { padding: 2px clamp(16px, 2.4vw, 44px); border-left: 1px solid var(--border); }
.hero-stats .stat:first-child { border-left: none; padding-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1; letter-spacing: -1px; color: var(--text); }
.stat span { font-size: clamp(11.5px, 1vw, 13.5px); color: var(--muted); letter-spacing: .3px; }

/* hero 3D object, real cube textured with the PDF cover's iridescent material */
.hero-object { position: absolute; right: clamp(-30px, 5vw, 90px); top: 50%; transform: translateY(-50%);
  width: clamp(240px, 32vw, 440px); aspect-ratio: 1; z-index: 2;
  display: grid; place-items: center; cursor: grab; }
.hero-object:active { cursor: grabbing; }
.cube-glow { position: absolute; inset: 4%; border-radius: 50%; z-index: -1; filter: blur(64px); opacity: .6;
  background: radial-gradient(circle, rgba(126,217,87,.6), rgba(70,240,200,.28) 46%, transparent 70%);
  animation: glowPulse 6s var(--ease) infinite; }
@keyframes holoRot { to { transform: rotate(360deg); } }
@keyframes glowPulse { 0%,100% { opacity: .45; transform: scale(1); } 50% { opacity: .7; transform: scale(1.08); } }

/* WebGL cube fills the hero object; the image is a fallback if WebGL is off */
.cube-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.cube-fallback { position: absolute; inset: 0; margin: auto; width: 82%; height: auto;
  object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 24px 60px rgba(126,217,87,.28)); }
.cube-mount.cube-3d-ready .cube-fallback { display: none; }
/* second cube: floating accent in the Values ("How we work") section */
.cube-values { position: absolute; top: clamp(16px, 3vw, 48px); right: clamp(0px, 4vw, 64px);
  width: clamp(150px, 18vw, 250px); aspect-ratio: 1; z-index: 0; cursor: grab; }
.cube-values:active { cursor: grabbing; }
@media (max-width: 900px) { .cube-values { width: clamp(120px, 26vw, 170px); top: 8px; right: -6px; opacity: .85; } }

/* scroll hint */
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--green), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; top: -34px; left: 0; width: 100%; height: 34px;
  background: var(--green); animation: scrollDot 2.2s var(--ease) infinite; }
@keyframes scrollDot { to { top: 34px; } }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker { position: relative; z-index: 2; overflow: hidden; padding: clamp(20px, 2.6vw, 34px) 0;
  border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 60px); width: max-content;
  animation: marquee 44s linear infinite; will-change: transform; }
.ticker-track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, 1.5vw, 18px);
  text-transform: uppercase; letter-spacing: 3.5px; color: var(--muted); white-space: nowrap; }
.ticker-track i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.section { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(80px, 12vw, 150px) var(--pad); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green-ink); font-weight: 600; margin-bottom: 18px; }
.kicker-num { font-family: var(--font-display); color: var(--muted-2); font-weight: 800; }
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -1.5px;
  font-size: clamp(40px, 7vw, 84px); line-height: .96; }
.display em { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: 0;
  background: linear-gradient(120deg, var(--text), var(--green-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-lede { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }
.big { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; color: var(--text); font-weight: 500; }
.hl-green { color: var(--green-ink); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 20px); align-items: start; }
.about-media .media { aspect-ratio: 3 / 4.1; }
.about-media .media-fill { margin-top: clamp(28px, 6vw, 64px); }   /* staggered for a designed feel */
.about-copy .big { margin-bottom: 22px; }
.about-copy p:not(.big) { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.about-copy b { color: var(--text); }
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about-chips span { font-size: 13px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); transition: border-color .3s, color .3s; }
.about-chips span:hover { border-color: var(--green-ink); color: var(--green-ink); }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { max-width: var(--maxw); }
.team-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.team-copy .display { margin: 8px 0 24px; }
.team-copy .big { margin-bottom: 20px; }
.team-copy p:not(.big) { color: var(--muted); }

.team-visual { display: flex; justify-content: center; }
.team-photo { position: relative; width: min(420px, 100%); aspect-ratio: 3/3.6; border-radius: 24px;
  overflow: hidden; border: 1px solid var(--border-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.team-photo::before { content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(6,6,7,.85)); }
.team-photo::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: var(--holo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .0; transition: opacity .5s; }
.team-photo:hover::after { opacity: .9; }
.team-badge { position: absolute; left: 26px; bottom: 24px; z-index: 4; display: flex; flex-direction: column; }
.team-badge b { font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 4vw, 40px); line-height: .9; }
.team-badge i { font-family: var(--font-serif); font-style: italic; font-size: clamp(28px, 4.5vw, 46px);
  margin-top: -4px; background: linear-gradient(120deg, var(--text), var(--green-ink)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* ==========================================================================
   MISSION & VISION
   ========================================================================== */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); }
.mv-card { position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.mv-card::before { content: ""; position: absolute; inset: 0; z-index: 3; padding: 1px; border-radius: inherit;
  background: var(--holo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.mv-card:hover { transform: translateY(-6px); }
.mv-card:hover::before { opacity: .8; }
.mv-media { position: relative; height: clamp(180px, 22vw, 260px); overflow: hidden; }
.mv-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,7,.15), var(--bg-2)); }
.mv-media img { width: 100%; height: 130%; object-fit: cover; }
.mv-body { padding: clamp(26px, 3.4vw, 46px); margin-top: -40px; position: relative; z-index: 2; }
.mv-card .display { font-size: clamp(34px, 5vw, 58px); margin: 6px 0 18px; }
.mv-card p { font-size: clamp(17px, 2.2vw, 22px); color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   VALUES
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.value-card { position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 42px); border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform .45s var(--ease), border-color .45s, background .45s; }
.value-card::before { content: ""; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit;
  background: var(--holo); background-size: 200% 200%; animation: holoShift 9s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s; pointer-events: none; }
.value-card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.value-card:hover::before { opacity: .75; }
.value-card.quote { background: linear-gradient(180deg, rgba(126,217,87,.07), var(--surface)); }
.vc-mark { color: var(--green-ink); font-size: 18px; line-height: 1; margin-bottom: 18px; }
.value-card h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.5px;
  font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.value-card p { color: var(--muted); font-size: 16px; }
.value-card blockquote { margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--border); font-family: var(--font-serif); font-style: italic;
  font-size: clamp(16px, 1.8vw, 20px); color: var(--text); line-height: 1.4; }
.value-card blockquote cite { display: block; font-family: var(--font-body); font-style: normal;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-ink); margin-top: 10px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); grid-auto-flow: dense; }
.services .hint { display: block; margin-top: 12px; font-size: 14px; color: var(--green-ink); font-weight: 600; }
.service-card { position: relative; overflow: hidden; min-height: 250px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-2); grid-column: span 1;
  display: flex; align-items: flex-end; cursor: pointer; isolation: isolate;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.service-card.feature { grid-column: span 2; grid-row: span 2; }
.service-card.wide { grid-column: span 2; min-height: 250px; }
.service-card:hover, .service-card:focus-visible { transform: translateY(-6px); border-color: var(--border-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); outline: none; }
.service-card:focus-visible { box-shadow: 0 0 0 2px var(--green); }

.svc-img { position: absolute; inset: 0; z-index: -1; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .5s;
  filter: saturate(.98) brightness(.74); }
.service-card:hover .svc-img img { transform: scale(1.08); filter: saturate(1.1) brightness(.88); }
.svc-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,7,0) 0%, rgba(6,6,7,.3) 52%, rgba(6,6,7,.85) 100%); }

.svc-content { position: relative; padding: clamp(22px, 2.6vw, 32px); width: 100%; }
.svc-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--green-ink); letter-spacing: 2px; }
.service-card h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.5px;
  font-size: clamp(20px, 2.2vw, 28px); margin: 10px 0 8px; line-height: 1.05; }
.service-card.feature h3 { font-size: clamp(28px, 3.4vw, 44px); }
.svc-tag { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 8px; opacity: .9; }
.svc-desc { color: var(--muted); font-size: 15px; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600;
  font-size: 14px; color: var(--green); opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.svc-more i { font-style: normal; transition: transform .3s var(--ease); }
.service-card:hover .svc-more, .service-card:focus-visible .svc-more { opacity: 1; transform: none; }
.service-card:hover .svc-more i { transform: translateX(4px); }

/* ==========================================================================
   CLIENTS
   ========================================================================== */
.clients { max-width: 100%; }
.clients .section-head { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.marquee { overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(34px, 5vw, 72px); width: max-content;
  animation: marquee 50s linear infinite;
  will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* full-colour logo strip, no cards, no desaturation.
   Uniform HEIGHT (width free) so every logo reads at the same optical size.
   Per-logo --logo-h tweaks below balance unusually wide/compact marks. */
.logo-tile { flex: none; display: grid; place-items: center; box-sizing: border-box;
  min-height: clamp(30px, 3.4vw, 42px); padding: 0 4px; }
.logo-tile img { height: var(--logo-h, clamp(30px, 3.4vw, 42px)); width: auto; max-width: clamp(150px, 18vw, 240px);
  object-fit: contain; transition: transform .3s var(--ease), filter .3s var(--ease); }
.logo-tile:hover img { transform: scale(1.06); }
.logo-tile .wordmark { font-family: var(--font-display); font-weight: 800; letter-spacing: -.3px; white-space: nowrap;
  font-size: clamp(18px, 2vw, 26px); line-height: 1; color: var(--muted); transition: color .3s var(--ease); }
.logo-tile:hover .wordmark { color: var(--text); }
/* optical balancing: compact/icon marks a touch bigger, very wide wordmarks a touch smaller */
.logo-tile[data-logo="bmw"] img,
.logo-tile[data-logo="samsung"] img,
.logo-tile[data-logo="indomie"] img,
.logo-tile[data-logo="dysol"] img       { --logo-h: clamp(38px, 4.4vw, 54px); }
.logo-tile[data-logo="passion-pro"] img { --logo-h: clamp(24px, 2.6vw, 32px); }
.logo-tile[data-logo="johnson-johnson"] img,
.logo-tile[data-logo="vodacom"] img,
.logo-tile[data-logo="dulux"] img        { --logo-h: clamp(26px, 3vw, 38px); }
/* Option B: auto-lift near-black logos so they read on dark backgrounds (light theme untouched) */
:root[data-theme="dark"] .logo-tile.is-dark img { filter: invert(1) brightness(1.06); }
/* xm + dashing have dark lettering, flip lightness on dark while keeping the red arrow */
:root[data-theme="dark"] .logo-tile[data-logo="xm"] img,
:root[data-theme="dark"] .logo-tile[data-logo="dashing"] img { filter: invert(1) hue-rotate(180deg); }
/* dysol is white on transparent, darken its lettering on light mode (keep the magenta) */
:root[data-theme="light"] .logo-tile[data-logo="dysol"] img { filter: invert(1) hue-rotate(180deg); }
/* logos with a dedicated dark-theme file (e.g. cheelee): swap image by theme */
.logo-tile .logo-dark { display: none; }
:root[data-theme="dark"] .logo-tile.has-dark-variant .logo-base { display: none; }
:root[data-theme="dark"] .logo-tile.has-dark-variant .logo-dark { display: block; }

/* ==========================================================================
   CLOSING
   ========================================================================== */
.closing { text-align: center; max-width: 900px; }
.closing .kicker { justify-content: center; }
.closing-title { font-size: clamp(48px, 9vw, 110px); }
.closing-body { font-size: clamp(17px, 2.2vw, 23px); color: var(--muted); margin: 28px auto 40px; max-width: 640px; }
.closing-punch { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 4vw, 44px);
  line-height: 1.1; color: var(--muted); }
.closing-punch .define { display: inline-block; margin-top: 6px; color: transparent;
  background: var(--holo); background-size: 220% 220%; -webkit-background-clip: text; background-clip: text;
  animation: holoShift 7s ease infinite; font-size: clamp(40px, 8vw, 104px); letter-spacing: -1px; }
.closing-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--border);
  background: var(--bg-2); padding: clamp(50px, 7vw, 84px) var(--pad) 30px; }
.footer-top { max-width: var(--maxw); margin: 0 auto 44px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px; }
.footer-brand .brand-mark { font-size: 34px; }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, 2.4vw, 26px); color: var(--muted); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer-grid h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--green-ink); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--muted); padding: 5px 0; font-size: 15px; transition: color .25s, padding-left .25s; }
.footer-grid a:hover { color: var(--text); padding-left: 6px; }
.footer-bottom { max-width: var(--maxw); margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; text-align: center; font-size: 13px; color: var(--muted-2); }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   IMAGERY (external) + parallax
   ========================================================================== */
.media { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-2); }
.media img, .team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-parallax] { will-change: transform; }
[data-parallax] img { transform: scale(1.12); } /* headroom for parallax travel */
/* graceful fallback when an external image fails */
.img-failed { position: relative; }
.img-failed img { visibility: hidden; }
.img-failed::after { content: ""; position: absolute; inset: 0; background: var(--holo);
  background-size: 200% 200%; animation: holoShift 8s ease infinite; opacity: .55; }

/* floating cube accent (Values) */
.cube-float { position: absolute; top: 4%; right: clamp(-30px, 2vw, 40px); width: clamp(120px, 16vw, 220px);
  opacity: .55; pointer-events: none; z-index: 0; filter: drop-shadow(0 20px 50px rgba(126,217,87,.25));
  animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }
.values { position: relative; overflow: hidden; }
.values .section-head, .values .values-grid { position: relative; z-index: 1; }

/* ==========================================================================
   CLOSING background
   ========================================================================== */
.closing { position: relative; overflow: hidden; }
.closing-bg { position: absolute; inset: -12% 0; z-index: 0; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28;
  filter: saturate(1.1) brightness(.7); }
.closing-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent, var(--bg) 72%); }
.closing-inner { position: relative; z-index: 1; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility .35s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,3,4,.72); backdrop-filter: blur(8px); }
.modal-card { position: relative; z-index: 2; width: min(920px, 100%); max-height: 88vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; border: 1px solid var(--border-2);
  background: var(--bg-2); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9);
  transform: translateY(24px) scale(.97); transition: transform .4s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-media { position: relative; min-height: 320px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 55%, var(--bg-2)); }
.modal-badge { position: absolute; left: 20px; bottom: 20px; font-family: var(--font-serif); font-style: italic;
  font-size: 22px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.modal-body { padding: clamp(28px, 3vw, 44px); overflow-y: auto; }
.modal-kicker { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green-ink); }
.modal-body h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: -1px;
  font-size: clamp(28px, 4vw, 44px); line-height: 1; margin: 10px 0 16px; }
.modal-body > p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.modal-list { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.modal-list li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
.modal-list li::before { content: "✦"; position: absolute; left: 0; color: var(--green-ink); }
.modal-close { position: absolute; top: 14px; right: 16px; z-index: 5; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--border-2); background: rgba(6,6,7,.6); color: var(--text);
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .3s, transform .3s, color .3s; }
.modal-close:hover { background: var(--green); color: #04220a; transform: rotate(90deg); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 980px) {
  .modal-card { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-media { min-height: 200px; max-height: 34vh; }
  .modal-media::after { background: linear-gradient(180deg, transparent 40%, var(--bg-2)); }
}
@media (max-width: 900px) {
  .hero { padding-top: 112px; align-items: flex-start; }
  .hero-inner { max-width: 100%; flex: none; }
  /* cube sits between the copy and the stats; stats stack 2-up below */
  .hero-stats { margin-top: 34px; padding-bottom: 8px; }
  .hero-stats .stat { border-left: none; padding: 0; }
  .about-grid, .team-inner, .mv-grid { grid-template-columns: 1fr; }
  .team-visual { order: -1; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card.feature, .service-card.wide { grid-column: span 2 !important; grid-row: auto !important; }
  /* cube drops below the hero copy, still interactive */
  .hero-object { position: relative; right: auto; top: auto; transform: none; margin: 30px auto 0; }
}
@media (max-width: 620px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .about-media { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.feature, .service-card.wide { grid-column: span 1 !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-sub { display: none; }
}

/* ==========================================================================
   THEME SWITCH (labelled Light / Dark toggle)
   ========================================================================== */
.theme-switch { position: relative; flex: none; display: inline-grid; grid-template-columns: 1fr 1fr;
  align-items: stretch; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
  cursor: pointer; overflow: hidden; user-select: none; -webkit-tap-highlight-color: transparent; }
.theme-switch .ts-opt { position: relative; z-index: 1; padding: 7px 15px; text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .4px;
  color: var(--muted); transition: color .3s var(--ease); }
.theme-switch .ts-knob { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--green); box-shadow: 0 4px 14px -6px rgba(126,217,87,.9);
  transition: transform .32s var(--ease); }
:root[data-theme="dark"] .theme-switch .ts-knob { transform: translateX(100%); }
.theme-switch .ts-opt[data-theme-opt="light"] { color: #04220a; }
:root[data-theme="dark"] .theme-switch .ts-opt[data-theme-opt="light"] { color: var(--muted); }
:root[data-theme="dark"] .theme-switch .ts-opt[data-theme-opt="dark"] { color: #04220a; }
.theme-switch:hover { border-color: var(--border-2); }

/* ==========================================================================
   LIGHT THEME
   ========================================================================== */
:root[data-theme="light"] {
  --bg:        #f6f7f4;
  --bg-2:      #ffffff;
  --surface:   rgba(0, 0, 0, 0.035);
  --surface-2: rgba(0, 0, 0, 0.05);
  --border:    rgba(0, 0, 0, 0.12);
  --border-2:  rgba(0, 0, 0, 0.20);
  --green-ink: #2f8f3a;   /* darker green for legible text on light */
  --grey:      #5f6266;
  --text:      #10130f;
  --muted:     #52585a;
  --muted-2:   #7c8288;
  --header-bg: rgba(246, 247, 244, 0.82);
  --menu-bg:   rgba(246, 247, 244, 0.97);
  --input-bg:  rgba(0, 0, 0, 0.035);
  --input-bg-focus: rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

/* ambient graphics need different blending on a light canvas */
:root[data-theme="light"] .orb { mix-blend-mode: multiply; opacity: .22; }
:root[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: .035; }
:root[data-theme="light"] .hero-canvas { opacity: .4; }

/* logo cut-line reads as a light gap */
:root[data-theme="light"] .brand-mark { color: #3a3d42; }
:root[data-theme="light"] .brand-sub > span { color: #52565b; }

/* text that sits on ALWAYS-dark imagery must stay light */
:root[data-theme="light"] .service-card h3 { color: #fff; }
:root[data-theme="light"] .svc-tag { color: rgba(255,255,255,.92); }
:root[data-theme="light"] .svc-desc { color: rgba(255,255,255,.8); }
:root[data-theme="light"] .team-badge b { color: #fff; }

/* modal close button on a light card */
:root[data-theme="light"] .modal-close { background: rgba(0,0,0,.05); }
:root[data-theme="light"] .modal-backdrop { background: rgba(20,22,20,.5); }

/* softer shadows read better on light */
:root[data-theme="light"] .btn-primary { box-shadow: 0 10px 30px -14px rgba(94,185,60,.7); }

/* ==========================================================================
   ABOUT, merged mission / vision band
   ========================================================================== */
.about-mv { margin-top: clamp(30px, 4vw, 54px); padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.amv-label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-ink); font-weight: 600; margin-bottom: 12px; }
.amv p { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, 2.1vw, 24px);
  color: var(--text); line-height: 1.42; }
@media (max-width: 640px) { .about-mv { grid-template-columns: 1fr; gap: 26px; } }
