/* ==============================================================
   1. DESIGN TOKENS, theme lives here. Edit colors in one place.
   ============================================================== */
:root {
  /* Dark theme (default) */
  --bg-0: #080c14;            /* page ground */
  --bg-1: #0d1220;            /* alternating section ground */
  --bg-2: #111827;            /* raised UI (inputs, buttons) */
  --surface: rgba(255,255,255,0.02);
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.14);
  --text-1: #f8fafc;          /* headings / primary */
  --text-2: #94a3b8;          /* body / secondary */
  --text-3: #64748b;          /* meta / tertiary */
  /* Single institutional accent — see DESIGN.md. No second hue, no
     gradient sweep; --grad now resolves solid so every existing
     usage (buttons, text-clip, badges) inherits the fix for free. */
  --accent: #c9a24d;
  --accent-2: #c9a24d;
  --gold: #c9a24d;
  --grad: #c9a24d;
  --font-display: "Libre Caslon Display", Georgia, serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-bg: rgba(8,12,20,0.82);
  --shadow: 0 16px 48px rgba(0,0,0,0.45);
  --particle-rgb: 148,163,184; /* hero canvas dot color */
  color-scheme: dark;
}
[data-theme="light"] {
  --bg-0: #f8fafc;
  --bg-1: #f1f5f9;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --border: rgba(15,23,42,0.09);
  --border-strong: rgba(15,23,42,0.18);
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --nav-bg: rgba(248,250,252,0.85);
  --shadow: 0 16px 48px rgba(15,23,42,0.10);
  --particle-rgb: 71,85,105;
  color-scheme: light;
}

/* ==============================================================
   2. RESET + BASE
   ============================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg-0);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-1); line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance;
}
a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: rgba(201,162,77,0.35); color: var(--text-1); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 6rem 0; }                 /* 8px grid: 96px */
section.alt { background: var(--bg-1); }     /* alternating band */

/* Section header pattern: numbered eyebrow + big heading */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 400; margin-bottom: 16px; }
.section-head p.lede { max-width: 640px; }
.section-head { margin-bottom: 56px; }

/* Scroll-reveal primitive (JS adds .visible) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==============================================================
   3. PRELOADER, thin ring + wordmark, removed by JS after load
   ============================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg-0);
  display: flex; flex-direction: column; gap: 20px;
  align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}
.loader-text { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==============================================================
   4. NAVIGATION, fixed, frosted, restrained
   ============================================================== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);                 /* solid-ish fallback */
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease;
}
@supports (backdrop-filter: blur(8px)) {
  #nav { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text-1); letter-spacing: -0.02em; }
.brand-mark { width: 14px; height: 14px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-link {
  position: relative; font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); padding: 6px 0; transition: color 0.25s ease;
}
.nav-link::after {                            /* underline slides left → right */
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text-1); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Theme toggle */
#theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-2); transition: color 0.25s, border-color 0.25s;
}
#theme-toggle:hover { color: var(--text-1); border-color: var(--border-strong); }
#theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Mobile hamburger */
#menu-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; align-items: center; justify-content: center; }
#menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  #menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-0); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link { display: block; padding: 12px 0; font-size: 1rem; }
}

/* ==============================================================
   5. BUTTONS, dark-to-accent fill sweep
   ============================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 4px;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, background-color 0.25s ease;
}
.btn-primary {
  color: #04121c;
  background-color: var(--accent);
}
.btn-primary:hover { background-color: #d8b263; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,162,77,0.35); }
.btn-outline {
  color: var(--text-1); border: 1px solid var(--border-strong);
  background-color: transparent;
}
.btn-outline:hover { border-color: var(--accent); background-color: rgba(201,162,77,0.08); transform: translateY(-2px); }

/* Arrow text-links inside cards */
.link-arrow { font-size: 0.875rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s ease, color 0.2s ease; }
.link-arrow:hover { gap: 10px; color: var(--accent-2); }

/* ==============================================================
   6. HERO, full viewport, particle canvas behind content
   ============================================================== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  /* Full-bleed Victoria Harbour photograph under a heavy gradient —
     photography-led hero (the CIO Circle treatment), anchored to the
     market this product actually targets. Overlay fades into --bg-0 so
     the section hands off cleanly to the page in either theme, and if
     the image ever fails to load the gradient alone still renders. */
  background:
    linear-gradient(to bottom,
      rgba(6, 9, 15, 0.86) 0%,
      rgba(6, 9, 15, 0.72) 45%,
      var(--bg-0) 97%),
    url("hero-hk.jpg") center 32% / cover no-repeat;
}
[data-theme="light"] #hero {
  background:
    linear-gradient(to bottom,
      rgba(10, 14, 22, 0.78) 0%,
      rgba(10, 14, 22, 0.62) 45%,
      var(--bg-0) 97%),
    url("hero-hk.jpg") center 32% / cover no-repeat;
}
/* Photo hero needs light text in both themes — scope overrides here */
[data-theme="light"] #hero h1,
[data-theme="light"] #hero .hero-sub,
[data-theme="light"] #hero .hero-eyebrow,
[data-theme="light"] #hero .hero-checklist li { color: #eef2f7; }
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
/* Soft radial vignette keeps particles from competing with text */
#hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 55%, var(--bg-0) 100%);
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 28px; }
.hero-eyebrow .brand-mark { width: 10px; height: 10px; }
#hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  font-weight: 400; letter-spacing: -0.01em;
  margin-bottom: 24px;
}
#hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

/* Trust badge, the only place gold glows */
.trust-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-2);
  background: var(--surface);
}
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(245,158,11,0.7); flex-shrink: 0; }
.trust-badge strong { color: var(--text-1); font-weight: 700; }

/* ==============================================================
   7. ABOUT, two-column
   ============================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.about-copy p + p { margin-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tag {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.8125rem; font-weight: 600; color: var(--text-1);
  white-space: nowrap;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ==============================================================
   8. CARDS (shared) + SERVICES
   ============================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,162,77,0.4);
  box-shadow: var(--shadow), 0 0 0 1px rgba(201,162,77,0.18), 0 0 32px rgba(201,162,77,0.10);
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.card p { font-size: 0.9375rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--accent-2);
}
.service-icon svg { width: 22px; height: 22px; }
/* Wide banner card: custom / local-first builds (spans full row) */
.custom-band {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, rgba(201,162,77,0.07), rgba(201,162,77,0.04));
}
.custom-band > div { max-width: 720px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ==============================================================
   9. WORK / PORTFOLIO
   ============================================================== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-thumb { position: relative; height: 176px; }
/* CSS-only placeholder art: gradient + faint grid lines. SWAP: replace with <img> */
.work-thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.05) 39px 40px);
}
.work-thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .work-thumb-img { transform: scale(1.07); }
.work-thumb-img + .work-badge { z-index: 2; }
/* Accent strip per card, colored from that card's own tile hue, so the row
   doesn't flatten into one blob now that all three real screenshots share
   a similar dark navy/teal palette. */
.work-thumb::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
}
.t1 { background: linear-gradient(135deg, #0c4a6e, #134e4a); }
.t1::before { background: linear-gradient(90deg, #0ea5e9, #14b8a6); }
.t2 { background: linear-gradient(135deg, #1e3a5f, #0f2c4a); }
.t2::before { background: linear-gradient(90deg, #3b82f6, #1e3a8a); }
.t3 { background: linear-gradient(135deg, #164e63, #1e293b); }
.t3::before { background: linear-gradient(90deg, #06b6d4, #475569); }
.t4 { background: linear-gradient(135deg, #3b2f14, #1f2937); }
.t4::before { background: linear-gradient(90deg, var(--gold, #c9a24d), #6b7280); }
.t5 { background: linear-gradient(135deg, #14532d, #0f172a); }
.t5::before { background: linear-gradient(90deg, #22c55e, #0f172a); }
.t6 { background: linear-gradient(135deg, #312e81, #111827); }
.t6::before { background: linear-gradient(90deg, #6366f1, #111827); }
.work-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(8,12,20,0.72); border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #e2e8f0;
}
.work-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-body p { flex: 1; }
.work-links { display: flex; gap: 20px; padding-top: 4px; }
@media (max-width: 1024px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .work-grid { grid-template-columns: 1fr; } }

/* ==============================================================
   10. TESTIMONIALS
   ============================================================== */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 0.875rem; margin-bottom: 16px; }
.quote-text { font-size: 1rem; color: var(--text-1); font-weight: 500; line-height: 1.65; margin-bottom: 24px; }
.quote-person { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; color: #f8fafc;
}
/* Flat single colors, no gradients — see DESIGN.md */
.a1 { background: #2d4a63; }
.a2 { background: #5c4530; }
.a3 { background: #3d3550; }
.a4 { background: #35505c; }
.quote-person strong { display: block; color: var(--text-1); font-size: 0.9375rem; }
.quote-person span { font-size: 0.8125rem; color: var(--text-3); }
@media (max-width: 768px) { .quote-grid { grid-template-columns: 1fr; } }

/* ==============================================================
   11. INSIGHTS / ARTICLES
   ============================================================== */
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.insight-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}
.insight-meta { font-size: 0.8125rem; color: var(--text-3); margin: 12px 0 16px; }
@media (max-width: 768px) { .insights-grid { grid-template-columns: 1fr; } }

/* ==============================================================
   12. VIDEO LIBRARY
   ============================================================== */
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card { padding: 0; overflow: hidden; }
.video-thumb {
  position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b1526, #101a2e 55%, #0d1f2b);
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  width: 68px; height: 68px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(8,12,20,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #f8fafc; padding-left: 5px;   /* optical centering of ▶ */
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.video-card:hover .play-btn { transform: scale(1.1); border-color: var(--accent-2); }
.video-duration {
  position: absolute; bottom: 12px; right: 12px;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(8,12,20,0.8); font-size: 0.75rem; font-weight: 600; color: #e2e8f0;
}
.video-body { padding: 24px 28px 28px; }
.video-body h3 { margin-bottom: 8px; }
@media (max-width: 768px) { .videos-grid { grid-template-columns: 1fr; } }

/* ==============================================================
   13. CONTACT
   ============================================================== */
.contact-wrap { max-width: 680px; margin: 0 auto; text-align: center; }
#contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);        /* keeps focus swap layout-stable */
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-1);
  font: inherit; font-size: 0.9375rem;
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field textarea { resize: vertical; min-height: 140px; }
.contact-email { margin-top: 24px; font-size: 0.875rem; color: var(--text-3); }
.contact-email a { color: var(--accent); font-weight: 600; }

/* ==============================================================
   14. FOOTER
   ============================================================== */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { font-size: 0.8125rem; color: var(--text-3); }
.socials { display: flex; gap: 12px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text-3);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.socials a:hover { color: var(--text-1); border-color: var(--accent-2); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ==============================================================
   15. SCROLL-TO-TOP
   ============================================================== */
#to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, border-color 0.25s, color 0.25s;
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { border-color: var(--accent-2); color: var(--text-1); }
#to-top svg { width: 16px; height: 16px; }

/* ==============================================================
   17. HERO PRODUCT SHOWCASE, StockLens mock, callouts, ticker,
       stats band, founder card, scroll progress
   ============================================================== */
body { overflow-x: clip; }               /* callout chips overhang; never scroll sideways */
#progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--grad); z-index: 200; }
.up { color: #34d399; }
.dn { color: #f87171; }

.hero-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; width: 100%; }
#hero h1 { font-size: clamp(2.2rem, 3.4vw, 3.3rem); }   /* tighter for split layout */
.hero-sub { font-size: 1.05rem; }

/* --- Draggable 360° glass panel: perspective on the stage, a
   preserve-3d rotator holding two backface-hidden faces (front =
   screenshot, back = frosted glass wordmark). JS drag handler owns the
   rotator's transform; this file owns material + layout only. --- */
.mock-stage { position: relative; z-index: 2; perspective: 1600px; }
.mock-rotator {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: none;
}
.mock-rotator.dragging { cursor: grabbing; }
/* Stops the browser's native "drag this image out" ghost preview from
   hijacking the pointer before our rotate handler sees it. */
.mock-rotator img, .mock-rotator * { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.mock-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 8px;
}
.mock-face-front { position: relative; } /* front sets stage height via normal flow */
.mock-face-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 12px 32px rgba(0,0,0,0.35);
}
.mock-face-back .brand-mark { width: 20px; height: 20px; }
.mock-back-word { font-family: var(--font-display); font-size: 1.3rem; color: #f8fafc; letter-spacing: -0.01em; }
.mock-drag-hint {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
}
.mockup {
  background: rgba(10,16,29,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 32px rgba(0,0,0,0.35);
  font-size: 11px; color: #94a3b8;
  overflow: hidden;
  position: relative;
}
/* Static glass sheen — a fixed diagonal highlight, not JS-driven, so it
   reads as glass material rather than another moving decoration. */
.mockup::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, transparent 22%, transparent 78%, rgba(255,255,255,0.06) 100%);
}
[data-theme="light"] .mockup { box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 12px 32px rgba(15,23,42,0.16); }
.mock-titlebar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.mock-title { font-weight: 600; color: #e2e8f0; letter-spacing: 0.02em; }
.mock-live { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: #34d399; }
.mock-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.mock-float { position: relative; }
/* Real product screenshot inside the 3D frame + client-name blur patch */
.mock-screen { position: relative; }
.mock-screen img { display: block; width: 100%; height: auto; }
.mock-redact {
  position: absolute; left: 48%; top: 50.5%; width: 11%; height: 4.4%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  background: rgba(16, 28, 46, 0.55);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  font-size: 10px; font-weight: 600; color: #cbd5e1; letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden;
}

/* --- Under the Hood: interactive product tour --- */
.platform-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.platform-shot { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.platform-shot img { display: block; width: 100%; height: auto; }
.hotspot {
  position: absolute; top: 52.8%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--accent-2); background: rgba(201,162,77,0.25);
  cursor: pointer; transition: background 0.25s ease;
}
.hotspot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(201,162,77,0.55); opacity: 0; }
.hotspot:hover { background: rgba(201,162,77,0.6); }
.hotspot.active { background: var(--accent-2); }
.hotspot.active::after { opacity: 1; animation: hotspotPing 2s ease-out infinite; }
@keyframes hotspotPing { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.pf-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pf-btn {
  padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 8px;
  font-size: 0.8125rem; font-weight: 600; color: var(--text-2);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pf-btn:hover { color: var(--text-1); border-color: var(--accent-2); }
.pf-btn.active { color: #04121c; background: var(--grad); border-color: transparent; }
.pf-detail { display: none; border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--surface); }
.pf-detail.active { display: block; animation: pfIn 0.3s ease; }
@keyframes pfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pf-detail > p { color: var(--text-1); font-weight: 500; margin-bottom: 18px; }
.pf-detail dl { display: flex; flex-direction: column; gap: 12px; }
.pf-detail dl > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: baseline; }
.pf-detail dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.pf-detail dd { font-size: 0.875rem; color: var(--text-2); }
.pf-detail dd b { color: var(--accent-2); }
@media (max-width: 1000px) { .platform-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --- FactSet-style feature callouts: chip + line + glowing dot --- */
.callout { position: absolute; z-index: 3; display: flex; align-items: center; }
.callout-label {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--nav-bg);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-1); white-space: nowrap;
}
@supports (backdrop-filter: blur(8px)) { .callout-label { backdrop-filter: blur(8px); } }
.callout::after {
  content: ""; width: 42px; height: 8px; flex-shrink: 0;
  background:
    radial-gradient(circle 3px at calc(100% - 4px) 50%, var(--accent-2) 98%, transparent),
    linear-gradient(var(--accent-2), var(--accent-2)) 0 50% / 100% 1px no-repeat;
}
.callout.flip { flex-direction: row-reverse; }
.callout.flip::after { transform: scaleX(-1); }
.c1 { top: 7%; left: -56px; }
.c2 { top: 40%; right: -32px; }
.c3 { bottom: 20%; left: -64px; }
.c4 { bottom: -22px; left: 22%; }
@media (max-width: 1200px) { .callout { display: none; } }
@media (max-width: 1080px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .mockup { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 1100px) { .nav-links { gap: 18px; } .nav-link { font-size: 0.8125rem; } }

/* --- Market ticker strip --- */
.ticker-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-1); overflow: hidden; }
.ticker { display: flex; width: max-content; padding: 12px 0; animation: tickerScroll 45s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.tk { font-size: 0.8125rem; white-space: nowrap; color: var(--text-3); font-variant-numeric: tabular-nums; padding-right: 44px; }
.tk b { font-weight: 600; margin-left: 6px; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

/* --- Proof stats band --- */
.stats-band { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text-1); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* --- Founder card --- */
.founder-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
  border: 1px solid var(--border); border-radius: 16px; padding: 40px;
  background: linear-gradient(135deg, rgba(201,162,77,0.05), rgba(201,162,77,0.02) 40%, transparent);
}
.founder-photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 28%, rgba(201,162,77,0.20), transparent 62%),
    linear-gradient(165deg, #10233a, #0b1120 60%, #10281f);
  display: flex; align-items: center; justify-content: center;
}
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.founder-monogram { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founder-info h3 { font-size: 1.7rem; font-weight: 400; margin-bottom: 4px; }
.founder-role { color: var(--accent-2); font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.founder-info p + p { margin-top: 14px; }
.founder-info .tags { margin-top: 24px; }
.founder-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .founder-card { grid-template-columns: 1fr; padding: 28px; gap: 32px; }
  .founder-photo { max-width: 280px; margin: 0 auto; width: 100%; }
}

/* ==============================================================
   18. RESEARCH HUB, FAQ, NEWSLETTER, TRUST ROW
   ============================================================== */
.hub-subhead { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 24px; color: var(--text-1); display: flex; align-items: center; gap: 16px; }
.hub-subhead::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.newsletter { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.newsletter h3 { margin-bottom: 6px; }
.newsletter p { font-size: 0.875rem; max-width: 420px; }
.newsletter-form { display: flex; gap: 12px; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter-form input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; color: var(--text-1); font: inherit; font-size: 0.9rem; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-3); }
.hub-cta { margin-top: 32px; text-align: center; border: 1px solid var(--border); border-radius: 16px; padding: 40px 24px; background: linear-gradient(135deg, rgba(201,162,77,0.06), rgba(201,162,77,0.03)); }
.hub-cta p { font-size: 1.05rem; margin-bottom: 20px; }
.hub-cta strong { color: var(--text-1); }
.hub-cta > div { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; color: var(--text-1); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--accent-2); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; font-size: 0.9375rem; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Brand logo in nav --- */
.brand-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }

/* --- Hero checklist (replaces trust badge) --- */
.hero-checklist { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; justify-content: start; }
.hero-checklist li { font-size: 0.8125rem; color: var(--text-2); padding-left: 22px; position: relative; }
.hero-checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
@media (max-width: 480px) { .hero-checklist { grid-template-columns: 1fr; } }

/* --- Hero screenshot carousel --- */
.mock-screen { aspect-ratio: 1600 / 936; }
.mock-screen .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.mock-screen .slide.active { opacity: 1; }
.mock-screen .slide.missing { display: none; }
.mock-screen .slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); padding: 0; transition: background 0.25s ease, transform 0.25s ease; }
.carousel-dots button.active { background: var(--accent-2); transform: scale(1.3); }

/* --- Capability band (replaces metric counters) --- */
.cap-kicker { text-align: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 32px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap { border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.cap h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.cap p { font-size: 0.875rem; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* --- Founder background list --- */
.founder-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.founder-list li { font-size: 0.9375rem; color: var(--text-2); padding-left: 18px; position: relative; }
.founder-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--accent-2); }

/* --- Solutions ledger (inside Services): numbered rows, hairline dividers --- */
.solutions-band { display: block; padding: 44px 48px; }
.solutions-kicker { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.solutions-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.solutions-head > div { max-width: 620px; }
.solutions-head h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.005em; margin-bottom: 0; }
.solutions-head p { margin-top: 12px; font-size: 0.9375rem; }
.solutions-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.solution {
  display: grid; grid-template-columns: 44px 1fr; row-gap: 4px;
  align-items: start; padding: 24px 0;
  border-top: 1px solid var(--border);
}
.solution i {
  grid-row: 1 / span 2;
  font-style: normal; font-size: 0.75rem; font-weight: 600;
  color: var(--text-3); font-variant-numeric: tabular-nums;
  padding-top: 3px; transition: color 0.25s ease;
}
.solution b { grid-column: 2; color: var(--text-1); font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; transition: color 0.25s ease; }
.solution span { grid-column: 2; font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }
.solution:hover b, .solution:hover i { color: var(--accent-2); }
@media (max-width: 900px) {
  .solutions-band { padding: 28px 24px; }
  .solutions-list { grid-template-columns: 1fr; column-gap: 0; }
  .solution { padding: 20px 0; }
}

/* ==============================================================
   16. RESPONSIVE + MOTION PREFERENCES
   ============================================================== */
@media (max-width: 768px) { section { padding: 4.5rem 0; } .section-head { margin-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==============================================================
   19. DISCLAIMER MODAL, FOOTER LINKS, ARTICLE PAGES
   ============================================================== */
#disclaimer-modal { position: fixed; inset: 0; z-index: 500; background: rgba(4,8,16,0.82); display: flex; align-items: center; justify-content: center; padding: 24px; }
@supports (backdrop-filter: blur(8px)) { #disclaimer-modal { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
#disclaimer-modal[hidden] { display: none; }
.dm-card { max-width: 540px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.dm-card h3 { margin-bottom: 14px; font-size: 1.25rem; }
.dm-card p { font-size: 0.9rem; margin-bottom: 14px; }
.dm-card a { color: var(--accent); font-weight: 600; }
.dm-card .btn { width: 100%; margin-top: 8px; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8125rem; color: var(--text-3); transition: color 0.25s ease; }
.footer-links a:hover { color: var(--text-1); }

/* Standalone pages (values.html, disclaimer.html, article.html) */
.page-wrap { max-width: 800px; margin: 0 auto; padding: 150px 24px 90px; }
.page-wrap h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; margin-bottom: 16px; }
.page-lede { font-size: 1.05rem; margin-bottom: 48px; max-width: 640px; }
.article-meta { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 40px; }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 1.35rem; margin: 36px 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); margin-bottom: 32px; transition: color 0.25s ease; }
.back-link:hover { color: var(--accent-2); }
.legal-body h2 { font-size: 1.1rem; margin: 32px 0 10px; }
.legal-body p { font-size: 0.9375rem; margin-bottom: 14px; }

/* ==============================================================
   20. HERO ENTRANCE — orchestrated load sequence after preloader
   ============================================================== */
.hero-content > *, .mock-stage { opacity: 0; }
body.ready .hero-content > * { animation: heroUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
body.ready .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
body.ready .hero-content > *:nth-child(2) { animation-delay: 0.16s; }
body.ready .hero-content > *:nth-child(3) { animation-delay: 0.28s; }
body.ready .hero-content > *:nth-child(4) { animation-delay: 0.42s; }
body.ready .hero-content > *:nth-child(5) { animation-delay: 0.56s; }
body.ready .mock-stage { animation: heroMockIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes heroMockIn {
  from { opacity: 0; transform: translateX(70px) scale(0.96); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .mock-stage { opacity: 1; animation: none !important; }
}

/* ==============================================================
   21. TOOLCHAIN — workflow stage rows with brand-colored badges
   ============================================================== */
.toolchain-grid { display: flex; flex-direction: column; }
.tc-row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px;
  align-items: center; padding: 22px 0;
  border-top: 1px solid var(--border);
}
.tc-row:last-child { border-bottom: 1px solid var(--border); }
.tc-stage b { display: block; color: var(--text-1); font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.tc-stage span { font-size: 0.8125rem; color: var(--text-3); }
.tc-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.8125rem; font-weight: 600; color: var(--text-1);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tc-badge:hover { transform: translateY(-2px); }
.tc-badge i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-style: normal; font-size: 0.75rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
/* Brand-approximate colors per tool, referenced by class not by trademarked logo image */
.tc-notebooklm i { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.tc-notebooklm:hover { border-color: #8b5cf6; }
.tc-openclaw i { background: #111827; border: 1px solid rgba(255,255,255,0.2); }
.tc-openclaw:hover { border-color: #6b7280; }
.tc-hermes i { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tc-hermes:hover { border-color: #f59e0b; }
.tc-claude i { background: linear-gradient(135deg, #d97757, #c15f3c); }
.tc-claude:hover { border-color: #d97757; }
.tc-perplexity i { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.tc-perplexity:hover { border-color: #14b8a6; }
.tc-finbert i { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.tc-finbert:hover { border-color: #2563eb; }
.tc-footnote { margin-top: 28px; font-size: 0.875rem; color: var(--text-3); max-width: 640px; }
@media (max-width: 720px) {
  .tc-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
}

/* ==============================================================
   22. PIPELINE — animated tool workflow (dots flow between stages)
   ============================================================== */
.pipeline { display: grid; grid-template-columns: 1fr 44px 1.15fr 44px 1.15fr 44px 1fr; align-items: stretch; }
.pipe-node {
  border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
}
.pipe-node small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.pipe-node b { color: var(--text-1); font-size: 1rem; letter-spacing: -0.01em; }
.pipe-node p { font-size: 0.8125rem; color: var(--text-3); margin-top: auto; }
.pipe-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pipe-node .tc-badge { font-size: 0.75rem; padding: 6px 11px 6px 6px; }
.pipe-node .tc-badge i { width: 19px; height: 19px; font-size: 0.6875rem; }
.pipe-out {
  border-color: rgba(201,162,77,0.45);
  background: linear-gradient(135deg, rgba(201,162,77,0.08), rgba(201,162,77,0.04));
  box-shadow: 0 0 32px rgba(201,162,77,0.08);
}
.pipe-link { position: relative; align-self: center; height: 2px; background: var(--border); }
.pipe-link i {
  position: absolute; top: -2.5px; left: -8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(201,162,77,0.8);
  animation: pipeFlow 2.4s linear infinite;
}
.pipe-link i:nth-child(2) { animation-delay: 0.8s; }
.pipe-link i:nth-child(3) { animation-delay: 1.6s; }
@keyframes pipeFlow {
  0%   { left: -8px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% + 2px); opacity: 0; }
}
.tc-chatgpt i { background: #10a37f; }
.tc-chatgpt:hover { border-color: #10a37f; }
@media (max-width: 1024px) {
  .pipeline { display: flex; flex-direction: column; gap: 0; }
  .pipe-link { width: 2px; height: 40px; margin: 0 auto; align-self: auto; }
  .pipe-link i { top: -8px; left: -2.5px; animation-name: pipeFlowV; }
  @keyframes pipeFlowV {
    0%   { top: -8px; opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { top: calc(100% + 2px); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) { .pipe-link i { animation: none; opacity: 0.6; left: 45%; } }

/* ==============================================================
   23. HONG KONG BAND — SVG skyline silhouette
   ============================================================== */
.hk-band {
  position: relative; overflow: hidden;
  padding: 9rem 0;
  /* Closing photographic band (CIO Circle treatment): Victoria Harbour
     from the Peak under a dark overlay, copy centered over it. The SVG
     skyline below stays as the no-image fallback and gains a soft glow
     over the photo. */
  background:
    linear-gradient(180deg, var(--bg-0) 0%, rgba(8, 12, 20, 0.55) 18%, rgba(8, 12, 20, 0.72) 82%, var(--bg-0) 100%),
    url("band-hk.jpg") center 65% / cover no-repeat;
}
.hk-copy { position: relative; z-index: 2; text-align: center; }
.hk-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 400; margin: 0 0 16px; color: #eef2f7; }
.hk-copy p { max-width: 560px; margin: 0 auto; color: #c3ccd8; }
.hk-copy .eyebrow { color: #d8c188; }
/* Photo band replaced the SVG silhouette — keep the markup as a fallback
   but don't paint ghost towers over a real skyline photograph. */
.hk-sky { display: none; }
.hk-sky svg { width: 100%; height: 100%; display: block; }
.hk-far rect { fill: var(--text-3); opacity: 0.16; }
.hk-near rect, .hk-near polygon { fill: var(--text-1); opacity: 0.22; }
.hk-lights rect { fill: var(--gold); opacity: 0; animation: hkTwinkle 4s ease-in-out infinite; }
.hk-lights rect:nth-child(odd) { animation-delay: 1.3s; }
.hk-lights rect:nth-child(3n) { animation-delay: 2.6s; }
@keyframes hkTwinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .hk-lights rect { animation: none; opacity: 0.4; } }
@media (max-width: 768px) { .hk-band { padding: 5rem 0 11rem; } .hk-sky { height: 150px; } }

/* ==============================================================
   24. WORK GRID — 4-card variant (2x2, since only shipped work is listed)
   ============================================================== */
.work-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .work-grid-4 { grid-template-columns: 1fr; } }

/* ==============================================================
   25. MAGNIFIER + IMAGE LIGHTBOX
   ============================================================== */
.mock-zoom {
  position: absolute; z-index: 5;
  bottom: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,20,0.72); border: 1px solid rgba(255,255,255,0.22);
  color: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}
.mock-zoom svg { width: 16px; height: 16px; }
.mock-zoom:hover { transform: scale(1.1); background: rgba(201,162,77,0.85); border-color: transparent; }
.platform-shot .mock-zoom { top: 12px; right: 12px; bottom: auto; }

#img-lightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(4,8,16,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
@supports (backdrop-filter: blur(6px)) { #img-lightbox { backdrop-filter: blur(6px); } }
#img-lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: default; }
#img-lightbox img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#lb-caption {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: #cbd5e1;
  padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,0.08);
}
#lb-caption[hidden] { display: none; }
.lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #f8fafc; transition: background 0.2s ease;
  z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-close svg { width: 18px; height: 18px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #f8fafc; transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.lb-nav:hover { background: rgba(201,162,77,0.75); border-color: transparent; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 640px) {
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ==============================================================
   26. MOBILE / TOUCH POLISH
   ============================================================== */
/* iOS Safari: 100vh includes the collapsed URL bar; svh is the visible height */
@supports (min-height: 100svh) { #hero { min-height: 100svh; } }

/* Touch devices: bigger dots + invisible 48px tap targets on the feature hotspots */
@media (hover: none) and (pointer: coarse) {
  .hotspot { width: 24px; height: 24px; }
  .hotspot::before { content: ""; position: absolute; inset: -12px; }
}

@media (max-width: 640px) {
  /* 16px inputs stop iOS auto-zoom on focus */
  .field input, .field textarea, .newsletter-form input { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .founder-actions .btn { width: 100%; justify-content: center; }
  .mock-zoom { width: 40px; height: 40px; }
  .carousel-dots { gap: 12px; }
  .carousel-dots button { width: 10px; height: 10px; }
  .page-wrap { padding-top: 120px; }
  .dm-card { padding: 28px 22px; }
}

/* ==============================================================
   27. BOOK A MEETING — Google Calendar Appointment Schedule CTA
   ============================================================== */
.booking-card {
  display: flex; align-items: center; gap: 20px;
  margin: 40px auto 0; padding: 24px 28px; max-width: 520px;
  border: 1px solid rgba(201,162,77,0.4); border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,162,77,0.08), rgba(201,162,77,0.04));
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.booking-card:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: 0 12px 32px rgba(201,162,77,0.15); }
.booking-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,162,77,0.12); color: var(--accent-2);
}
.booking-icon svg { width: 26px; height: 26px; }
.booking-text { flex: 1; min-width: 0; }
.booking-text b { display: block; color: var(--text-1); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.booking-text span { font-size: 0.875rem; color: var(--text-2); }
.booking-arrow { flex-shrink: 0; font-size: 1.25rem; color: var(--accent-2); transition: transform 0.25s ease; }
.booking-card:hover .booking-arrow { transform: translateX(4px); }

.or-divider { display: flex; align-items: center; gap: 16px; max-width: 520px; margin: 32px auto; color: var(--text-3); font-size: 0.8125rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 480px) {
  .booking-card { flex-wrap: wrap; text-align: center; justify-content: center; }
  .booking-text { text-align: center; }
}
