/* =========================================================
   MerryThought (Hong Kong) — Official Website v2
   Brand: Deep Orange #E65100
   Style: International Tech-Consulting · GBA · AI-Era
   ========================================================= */

/* ---------- 0. Tokens ---------- */
:root {
  --brand: #E65100;
  --brand-600: #C94400;
  --brand-50: #FFF3EA;
  --ink: #0E1116;
  --ink-2: #1A1F26;
  --ink-soft: #2A2F36;
  --paper: #FFFCF8;
  --paper-2: #F4EEE8;
  --line: #E8DFD4;
  --muted: #6B6258;
  --text: #1F1A14;
  --text-soft: #5A5249;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(14,17,22,0.04), 0 4px 12px rgba(230,81,0,0.04);
  --shadow-md: 0 4px 16px rgba(14,17,22,0.06), 0 12px 40px rgba(230,81,0,0.06);
  --shadow-lg: 0 16px 48px rgba(14,17,22,0.12), 0 32px 64px rgba(230,81,0,0.08);
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: 0.35s var(--ease);
  --font-sans: "Inter", "PingFang HK", "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Inter", "PingFang HK", "PingFang SC", "Helvetica Neue", sans-serif;
}

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "kern", "liga", "calt", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { padding-left: 0; list-style: none; margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.2; margin: 0; font-weight: 800; }

/* ---------- 2. Layout primitives ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--brand); display: inline-block; }
.section--ink .eyebrow { color: var(--brand); }

.h1 { font-size: clamp(34px, 5.5vw, 64px); letter-spacing: -0.02em; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.015em; }
.h3 { font-size: clamp(20px, 2vw, 24px); }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-soft); max-width: 64ch; }
.section--ink .lead { color: #B5B9BF; }
.muted { color: var(--muted); }

/* ---------- 3. Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,252,248,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t), box-shadow var(--t);
}
.topbar.is-scrolled { background: rgba(255,252,248,0.95); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0,0,0,0.04); }
.topbar__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark img { height: 30px; width: auto; }
.brand-mark__suffix { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; padding-left: 12px; border-left: 1px solid var(--line); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text);
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.toolbar { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.6);
}
.lang-switch button {
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  color: var(--text-soft); transition: all var(--t); letter-spacing: 0.04em;
}
.lang-switch button.is-active { background: var(--ink); color: var(--paper); }
.lang-switch button:hover:not(.is-active) { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  font-size: 14.5px; transition: all var(--t); white-space: nowrap;
}
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(230,81,0,0.25); }
.btn--brand:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(230,81,0,0.4); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost-light { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.25); }
.btn--ghost-light:hover { border-color: var(--brand); color: var(--brand); background: rgba(230,81,0,0.08); }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

.menu-toggle { display: none; }

@media (max-width: 920px) {
  .nav, .toolbar .lang-switch, .toolbar .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; }
  .menu-toggle::before { content: "≡"; font-size: 22px; line-height: 1; }
  .topbar.is-open .nav { display: flex; }
  .topbar.is-open .toolbar .lang-switch,
  .topbar.is-open .toolbar .btn { display: inline-flex; }
  .topbar.is-open .topbar__row { flex-wrap: wrap; height: auto; padding-bottom: 18px; gap: 16px; }
  .topbar.is-open .nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 14px; }
  .topbar.is-open .toolbar { flex-basis: 100%; justify-content: flex-start; }
  .brand-mark__suffix { display: none; }
}

/* ---------- 4. Hero (with HK skyline + animated background + GLOBE) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #07090C;
  color: var(--paper);
  padding: clamp(80px, 11vw, 140px) 0 clamp(120px, 14vw, 180px);
  min-height: 92vh;
  display: flex; align-items: center;
}
/* Background photo (subtle, behind globe) */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.18;
  filter: contrast(1.1) saturate(0.85) blur(2px);
  animation: heroZoom 30s var(--ease) infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.2%); }
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(230,81,0,0.18), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(230,81,0,0.10), transparent 60%),
    linear-gradient(to bottom, rgba(7,9,12,0.6) 0%, rgba(7,9,12,0.92) 100%);
}
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 25%, transparent 70%);
}

/* GLOBE — the protagonist of the hero. Right-side, huge, glowing. */
.hero__globe {
  position: absolute;
  right: -8%; top: 50%;
  transform: translateY(-50%);
  width: 78vw; max-width: 1100px;
  aspect-ratio: 16/9;
  z-index: 1;
  pointer-events: none;
  /* The actual rotating globe is centered in the video frame; we shift right so half of it bleeds off the canvas */
}
.hero__globe video {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Pure black around the globe → screen blend mode lets only the bright orange particles through, killing the box edges. */
  mix-blend-mode: screen;
  filter: brightness(1.15) saturate(1.15) contrast(1.05);
}
/* Soft orange atmospheric glow around the globe */
.hero__globe::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(230,81,0,0.22), transparent 55%);
  pointer-events: none;
  filter: blur(40px);
  animation: globePulse 6s var(--ease) infinite alternate;
}
@keyframes globePulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}
/* Star/particle field behind the globe */
.hero__stars {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 26% 78%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1px 1px at 48% 14%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1.5px 1.5px at 64% 64%, rgba(230,81,0,0.7), transparent 50%),
    radial-gradient(1px 1px at 76% 32%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 88% 84%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 38% 46%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.5px 1.5px at 8% 60%, rgba(230,81,0,0.55), transparent 50%);
  animation: twinkle 5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twinkle {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}
/* On wide screens the globe is on the right; on narrow it sinks behind the content */
@media (max-width: 980px) {
  .hero__globe {
    right: -25%; top: auto; bottom: -10%; transform: none;
    width: 130vw; max-width: none;
    opacity: 0.5;
  }
}

.hero__skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 220px; z-index: 2; opacity: 0.55; pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.hero__inner {
  position: relative; z-index: 3;
  width: 100%;
  max-width: 56%; /* Reserve right side for globe */
}
@media (max-width: 980px) {
  .hero__inner { max-width: 100%; }
}
.hero__cities {
  display: inline-flex; gap: 18px; align-items: center;
  font-size: 11px; letter-spacing: 0.32em; color: rgba(255,255,255,0.6);
  font-weight: 600; margin-bottom: 28px;
}
.hero__cities span { display: inline-flex; align-items: center; gap: 18px; }
.hero__cities span::after { content: "·"; color: var(--brand); margin-left: 4px; }
.hero__cities span:last-child::after { content: ""; }
.hero__cities .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  margin-right: 4px; box-shadow: 0 0 0 0 rgba(230,81,0,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230,81,0,0.6); }
  70% { box-shadow: 0 0 0 14px rgba(230,81,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,81,0,0); }
}
.hero__title { font-size: clamp(36px, 5.6vw, 72px); font-weight: 800; max-width: 18ch; line-height: 1.05; }
.hero__title em {
  font-style: normal; position: relative;
  background: linear-gradient(90deg, #FFAE6B 0%, #E65100 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--brand);
  transform-origin: left;
  animation: sweepIn 1.2s var(--ease) 0.5s both;
}
@keyframes sweepIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { margin-top: 24px; max-width: 60ch; font-size: clamp(16px, 1.4vw, 19px); color: #C5C9CF; }
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__strip {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid; grid-template-columns: repeat(2, 1fr) repeat(2, 1fr); gap: 28px;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 36px;
  position: relative;
}
@media (min-width: 1100px) { .hero__strip { grid-template-columns: repeat(4, 1fr); } }
.hero__strip > div { display: flex; flex-direction: column; gap: 6px; }
.hero__strip .num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.5vw, 42px);
  color: var(--paper); letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--brand) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__strip .lbl { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #888d94; }
@media (max-width: 720px) { .hero__strip { grid-template-columns: repeat(2, 1fr); } }

/* Reduce motion: stop animations */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-img, .hero__globe::before, .hero__stars { animation: none; }
}

/* ---------- 5. Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar {
  padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; transition: all var(--t);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--brand); transform: scaleY(0); transform-origin: top;
  transition: transform var(--t);
}
.pillar::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  background: radial-gradient(circle, var(--brand-50), transparent 70%);
  opacity: 0; transition: opacity var(--t);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar:hover::before { transform: scaleY(1); }
.pillar:hover::after { opacity: 1; }
.pillar__icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  font-size: 22px; transition: transform var(--t);
}
.pillar:hover .pillar__icon { transform: rotate(-6deg) scale(1.05); }
.pillar__title { font-size: 17px; font-weight: 700; }
.pillar__desc { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- 6. Section header ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .lead { margin-top: 14px; }
.section-head .left { max-width: 720px; }

/* ---------- 7. Service cards (Home preview + Services full) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: all var(--t); display: flex; flex-direction: column;
  overflow: hidden; cursor: pointer;
}
.svc__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--ink);
}
.svc__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: saturate(0.9) contrast(1.05);
}
.svc:hover .svc__media img { transform: scale(1.06); }
.svc__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,17,22,0.5) 100%);
}
.svc__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.svc::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--brand); opacity: 0; transition: opacity var(--t); z-index: 1;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:hover::after { opacity: 1; }
.svc__num { font-size: 12px; letter-spacing: 0.16em; color: var(--brand); font-weight: 700; }
.svc__title { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.svc__desc { font-size: 15px; color: var(--text-soft); line-height: 1.65; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.svc__tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--text-soft); font-weight: 500; }
.svc__cta { color: var(--brand); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; margin-top: 4px; }
.svc:hover .svc__cta { gap: 12px; }

/* Detail service block (services.html) */
.svc-detail {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.svc-detail:first-of-type { border-top: 0; }
.svc-detail__row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-detail--alt .svc-detail__row { grid-template-columns: 1fr 1fr; }
.svc-detail--alt .svc-detail__media { order: 2; }
@media (max-width: 880px) {
  .svc-detail__row, .svc-detail--alt .svc-detail__row { grid-template-columns: 1fr; gap: 28px; }
  .svc-detail--alt .svc-detail__media { order: 0; }
}
.svc-detail__media {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc-detail__media:hover img { transform: scale(1.04); }
.svc-detail__media::before {
  content: ""; position: absolute; left: -10px; top: -10px; width: 60px; height: 60px;
  border-top: 3px solid var(--brand); border-left: 3px solid var(--brand);
  z-index: 2; pointer-events: none;
}
.svc-detail__media::after {
  content: ""; position: absolute; right: -10px; bottom: -10px; width: 60px; height: 60px;
  border-bottom: 3px solid var(--brand); border-right: 3px solid var(--brand);
  z-index: 2; pointer-events: none;
}
.svc-detail__id { font-size: 12px; letter-spacing: 0.18em; color: var(--brand); font-weight: 700; }
.svc-detail h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 12px; }
.svc-detail__client { font-size: 13.5px; color: var(--muted); margin-top: 16px; letter-spacing: 0.04em; }
.svc-detail__client b { color: var(--text); font-weight: 600; display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 4px; }
.svc-detail__lead { font-size: 17px; line-height: 1.7; color: var(--text); margin-top: 16px; }
.deliv {
  margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 12px;
}
.deliv li {
  font-size: 14.5px; padding-left: 22px; position: relative; color: var(--text); line-height: 1.6;
}
.deliv li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: var(--brand);
}

/* ---------- 8. Method page ---------- */
.method-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
@media (max-width: 1100px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .method-grid { grid-template-columns: 1fr; } }
.method {
  padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: background var(--t);
}
.method:last-child { border-right: 0; }
.method:hover { background: var(--brand-50); }
.method__num {
  font-size: 36px; font-weight: 800; color: var(--brand);
  font-family: var(--font-display); line-height: 1;
}
.method__title { font-size: 18px; font-weight: 700; }
.method__body { font-size: 14.5px; color: var(--text-soft); line-height: 1.65; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 28px; background: var(--paper-2); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; transition: transform var(--t), box-shadow var(--t); }
.principle:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { margin: 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.7; }

/* ---------- 9. Audience / industries ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .audience { grid-template-columns: repeat(2,1fr); } }
.audience > div { padding: 32px 24px; border-right: 1px solid var(--line); transition: background var(--t); }
.audience > div:last-child { border-right: 0; }
.audience > div:hover { background: var(--brand-50); }
@media (max-width: 880px) { .audience > div:nth-child(2) { border-right: 0; } }
.audience h4 { font-size: 14px; letter-spacing: 0.06em; margin-bottom: 8px; }
.audience p { margin: 0; font-size: 13.5px; color: var(--text-soft); }

/* ---------- 10. About / Team ---------- */
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.member {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; transition: all var(--t);
  overflow: hidden;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.member__photo {
  position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); filter: saturate(0.85); }
.member:hover .member__photo img { transform: scale(1.06); filter: saturate(1); }
.member__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,17,22,0.45) 100%);
}
.member__photo-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: var(--brand); padding: 4px 10px; border-radius: 4px; font-weight: 700;
}
.member__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.member__role { font-size: 12px; color: var(--brand); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.member__name { font-size: 19px; font-weight: 800; }
.member__bio { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

.creds { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 880px) { .creds { grid-template-columns: repeat(2,1fr); } }
.cred {
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 8px; transition: all var(--t);
}
.cred:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cred__t { font-size: 12px; letter-spacing: 0.16em; color: var(--brand); text-transform: uppercase; font-weight: 700; }
.cred__v { font-size: 16px; font-weight: 700; }
.cred__d { font-size: 13px; color: var(--text-soft); }

/* ---------- 11. Partners marquee ---------- */
.partners-section {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.partners-head { text-align: center; margin-bottom: 32px; }
.partners-head .eyebrow { justify-content: center; }
.partners-head h3 {
  margin-top: 14px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; color: var(--text);
}
.partners-marquee {
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.partners-track {
  display: flex; gap: 56px; align-items: center;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner {
  flex: 0 0 auto; height: 56px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(0.4) opacity(0.75);
  transition: filter var(--t);
}
.partner:hover { filter: grayscale(0) opacity(1); }
.partner img { max-height: 56px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.partner--svg { width: 180px; }
.partner--wide { width: 140px; height: 72px; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); filter: none !important; }
.partner--wide img { max-height: 60px; max-width: 128px; border-radius: 4px; }

/* ---------- 12. Contact ---------- */
.contact-card {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,81,0,0.25), transparent 70%);
  pointer-events: none;
}
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card .h2 { color: var(--paper); }
.contact-card .lead { color: #B5B9BF; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; position: relative; z-index: 1; }
.contact-list li { display: flex; gap: 14px; align-items: baseline; }
.contact-list b { color: var(--brand); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; min-width: 90px; }
.contact-list span { color: var(--paper); font-size: 15px; }
.contact-list a { color: var(--paper); }
.contact-list a:hover { color: var(--brand); }

.qr-card {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 24px; padding: 14px 18px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); position: relative; z-index: 1;
}
.qr-card img { width: 84px; height: 84px; background: #fff; padding: 6px; border-radius: 6px; }
.qr-card div { font-size: 12px; color: #B5B9BF; line-height: 1.5; }
.qr-card div b { display: block; color: var(--paper); font-size: 13px; margin-bottom: 4px; }

/* ---------- 12b. Animated GLOBE section (full-width video bg) ---------- */
.globe-section {
  position: relative;
  background: #000;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  min-height: 720px;
  display: flex; align-items: center;
  padding: clamp(80px, 11vw, 140px) 0;
}
.globe-section__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* Subtle slow zoom on top of the spinning content */
  animation: globeBreathe 18s var(--ease) infinite alternate;
}
@keyframes globeBreathe {
  0%   { transform: scale(1.0)  translateY(0); }
  100% { transform: scale(1.06) translateY(-1.5%); }
}
.globe-section::before {
  /* Vignette + subtle ink wash on top of video so text is readable */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.55) 100%);
}
.globe-section::after {
  /* Brand-orange atmospheric glow at top + bottom edges */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(230,81,0,0.18), transparent 60%),
    radial-gradient(800px 300px at 50% 100%, rgba(230,81,0,0.12), transparent 60%);
}
.globe-section__inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 980px) {
  .globe-section { min-height: auto; }
  .globe-section__inner { grid-template-columns: 1fr; gap: 48px; text-align: left; }
}
.globe-section h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--paper);
}
.globe-section h2 em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(90deg, #FFAE6B 0%, #E65100 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.globe-section .lead {
  margin-top: 22px; max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px); color: #C5C9CF;
}
.globe-section__cta {
  margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap;
}
.globe-section__panel {
  background: rgba(14,17,22,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  position: relative;
}
.globe-section__panel::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
  background: linear-gradient(180deg, var(--brand), transparent);
  border-radius: 3px;
}
.globe-section__panel h4 {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px; font-weight: 700;
}
.globe-section__panel ul { display: flex; flex-direction: column; gap: 12px; }
.globe-section__panel li {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 14.5px;
}
.globe-section__panel li b {
  color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; min-width: 80px; font-weight: 600;
}
.globe-section__panel li span { color: var(--paper); }
.globe-section__panel li a { color: var(--paper); }
.globe-section__panel li a:hover { color: var(--brand); }

.globe-section__qr {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.globe-section__qr img {
  width: 76px; height: 76px;
  background: #fff; padding: 5px; border-radius: 6px;
}
.globe-section__qr div { font-size: 12px; color: #B5B9BF; line-height: 1.5; }
.globe-section__qr b { display: block; color: var(--paper); font-size: 13px; margin-bottom: 4px; }

/* Globe coordinate ribbons */
.globe-coords {
  display: flex; gap: 28px; margin-top: 28px;
  font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.55);
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  flex-wrap: wrap;
}
.globe-coords span::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--brand); border-radius: 50%; margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--brand);
}

/* Reduce motion: stop the breathing animation */
@media (prefers-reduced-motion: reduce) {
  .globe-section__video { animation: none; }
}

/* ---------- 13. CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 80px) 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 350px at 90% 50%, rgba(230,81,0,0.22), transparent 60%);
}
.cta-banner__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; position: relative; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 36px); max-width: 22ch; }
.cta-banner p { color: #B5B9BF; margin: 8px 0 0; max-width: 55ch; }

/* ---------- 14. Footer ---------- */
.footer {
  background: #0A0C10; color: #B5B9BF;
  padding: 64px 0 28px; font-size: 14px;
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer h5 { color: var(--paper); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--brand); }
.footer__brand img { height: 28px; margin-bottom: 12px; }
.footer__brand p { margin: 12px 0 0; line-height: 1.7; max-width: 36ch; }
.footer__bot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: 12.5px; color: #6c7079;
}

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero {
  background: #07090C;
  color: var(--paper);
  padding: clamp(80px, 10vw, 130px) 0 clamp(56px, 7vw, 90px);
  position: relative; overflow: hidden;
}
.page-hero__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.22; z-index: 0;
  filter: contrast(1.05) blur(1px);
  animation: heroZoom 25s var(--ease) infinite alternate;
}
/* Smaller globe variant — sits at right side, bleeds off canvas */
.page-hero__globe {
  position: absolute;
  right: -10%; top: 50%; transform: translateY(-50%);
  width: 60%; max-width: 700px; aspect-ratio: 16/9;
  z-index: 1; pointer-events: none;
  opacity: 0.85;
}
.page-hero__globe video {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen;
  filter: brightness(1.1) saturate(1.1);
}
.page-hero__globe::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(230,81,0,0.18), transparent 55%);
  filter: blur(30px);
  animation: globePulse 6s var(--ease) infinite alternate;
}
@media (max-width: 980px) {
  .page-hero__globe { right: -30%; opacity: 0.4; }
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 380px at 90% 0%, rgba(230,81,0,0.18), transparent 60%),
    linear-gradient(to bottom, rgba(7,9,12,0.6), rgba(7,9,12,0.92));
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 25%, transparent 75%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 60%; }
@media (max-width: 980px) { .page-hero__inner { max-width: 100%; } }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); }
.page-hero p { color: #C5C9CF; margin-top: 18px; font-size: clamp(15px, 1.3vw, 18px); max-width: 60ch; }

.svc-tabs { display: flex; gap: 6px; margin: 32px 0 0; flex-wrap: wrap; }
.svc-tabs a {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.85);
  font-weight: 500; letter-spacing: 0.02em; transition: all var(--t);
}
.svc-tabs a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }

/* ---------- 16. GBA showcase block ---------- */
.gba-showcase {
  background: var(--ink); color: var(--paper);
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative; overflow: hidden;
}
.gba-showcase::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 20% 50%, rgba(230,81,0,0.15), transparent 60%);
}
.gba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 880px) { .gba-grid { grid-template-columns: 1fr; } }
.gba-grid h2 { color: var(--paper); }
.gba-grid p { color: #B5B9BF; }
.gba-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 32px; }
.gba-stats > div { padding-left: 16px; border-left: 2px solid var(--brand); }
.gba-stats .v { font-size: 24px; font-weight: 800; color: var(--paper); }
.gba-stats .l { font-size: 11px; letter-spacing: 0.14em; color: #888; text-transform: uppercase; }
.gba-map-wrap {
  position: relative; aspect-ratio: 8/5; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1A1F26, #0E1116);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.gba-map-wrap svg { width: 100%; height: 100%; }
.gba-map-wrap .dataflow { stroke-dasharray: 6 4; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -100; } }

/* ---------- 17. Featured photo block (alternating image/text) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: clamp(48px, 7vw, 90px) 0;
}
.feature-row--alt { grid-template-columns: 1fr 1fr; }
.feature-row--alt .feature-row__media { order: 2; }
@media (max-width: 880px) {
  .feature-row, .feature-row--alt { grid-template-columns: 1fr; }
  .feature-row--alt .feature-row__media { order: 0; }
}
.feature-row__media {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature-row:hover .feature-row__media img { transform: scale(1.04); }
.feature-row__media::before {
  content: ""; position: absolute; left: -10px; top: -10px; width: 70px; height: 70px;
  border-top: 3px solid var(--brand); border-left: 3px solid var(--brand); z-index: 2;
}

/* ---------- 18. Hero floating cards — DISABLED in v2 hero (globe takes the right side). Kept in CSS for legacy. ---------- */
.hero__floats { display: none !important; }

/* ---------- 19. Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 56px 0; }
.note { font-size: 13px; color: var(--muted); }

/* ---------- 20. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--right { transform: translateX(30px); }
.reveal--right.is-in { transform: none; }
.reveal--left { transform: translateX(-30px); }
.reveal--left.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--right, .reveal--left { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .partners-track, .hero__bg-img, .hero__float-card, .page-hero__bg-img { animation: none; }
}

/* ---------- 21. Print ---------- */
@media print {
  .topbar, .cta-banner, .footer, .partners-section { display: none; }
  .hero, .page-hero, .section--ink, .contact-card { background: #fff !important; color: #000 !important; }
}
