/* ============================================================
   Dubai Momentum — Real Estate Market Analytics
   Light / UAE-flag palette (white · black · green · red)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --background: 0 0% 100%;              /* white */
  --surface:   150 24% 98%;            /* faint green-tinted panel */
  --surface-2: 210 20% 97%;            /* neutral panel */
  --foreground: 210 24% 12%;           /* near-black ink */
  --card: 0 0% 100%;
  --card-foreground: 210 24% 12%;
  --muted: 210 20% 96%;
  --muted-foreground: 214 12% 42%;
  --primary: 150 86% 26%;              /* UAE green */
  --primary-dark: 150 90% 18%;
  --primary-foreground: 0 0% 100%;
  --accent: 354 78% 45%;               /* UAE red */
  --accent-foreground: 0 0% 100%;
  --ink: 210 30% 8%;                   /* black sections */
  --gold: 40 84% 52%;                  /* subtle warm highlight */
  --border: 210 18% 90%;
  --ring: 150 86% 26%;
  --radius: 0.75rem;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --grad-green: linear-gradient(120deg, hsl(150 86% 26%), hsl(168 76% 38%));
  --grad-flag: linear-gradient(120deg, hsl(150 86% 26%), hsl(150 70% 40%) 55%, hsl(354 78% 45%));
  --shadow-sm: 0 1px 2px hsl(210 20% 20% / 0.05), 0 1px 4px hsl(210 20% 20% / 0.04);
  --shadow-md: 0 6px 18px -10px hsl(210 24% 20% / 0.12);
  --shadow-lg: 0 18px 44px -24px hsl(210 24% 18% / 0.20);
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6; font-size: 16px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; color: hsl(var(--foreground)); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: hsl(var(--primary-dark)); font-weight: 600;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: hsl(var(--primary)); border-radius: 2px; }
.gradient-text {
  background: var(--grad-green); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 90px; }
.section { padding: 84px 0; }
.section-sm { padding: 52px 0; }
.bg-surface { background: hsl(var(--surface)); }
.bg-surface-2 { background: hsl(var(--surface-2)); }
.bg-ink { background: hsl(var(--ink)); color: #eef2f4; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 14px 0 14px; }
.section-head p { color: hsl(var(--muted-foreground)); font-size: 1.05rem; }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.text-accent { color: hsl(var(--accent)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.up { color: hsl(var(--primary)); }
.down { color: hsl(var(--accent)); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: hsl(var(--primary)); color: #fff; box-shadow: 0 3px 10px -5px hsl(var(--primary) / 0.4); }
.btn-primary:hover { background: hsl(var(--primary-dark)); box-shadow: 0 6px 16px -8px hsl(var(--primary) / 0.45); transform: translateY(-1px); }
.btn-accent { background: hsl(var(--accent)); color: #fff; box-shadow: 0 6px 18px -6px hsl(var(--accent) / 0.5); }
.btn-accent:hover { box-shadow: 0 12px 30px -8px hsl(var(--accent) / 0.6); transform: translateY(-2px); }
.btn-dark { background: hsl(var(--ink)); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid hsl(var(--border)); color: hsl(var(--foreground)); background: hsl(var(--card)); }
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-ghost { color: hsl(var(--primary)); padding: 8px 4px; }
.btn-ghost:hover { gap: 12px; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.on-ink .btn-outline { border-color: hsl(0 0% 100% / 0.25); color: #fff; background: transparent; }
.on-ink .btn-outline:hover { border-color: #fff; background: hsl(0 0% 100% / 0.08); color: #fff; }
/* Glass outline button for use over dark imagery (e.g. hero) */
.btn-glass { background: hsl(0 0% 100% / 0.08); border: 1.5px solid hsl(0 0% 100% / 0.55); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: hsl(0 0% 100% / 0.18); border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); background: hsl(var(--muted));
}
.badge-primary { color: hsl(var(--primary-dark)); border-color: hsl(var(--primary) / 0.28); background: hsl(var(--primary) / 0.08); }
.badge-accent  { color: hsl(var(--accent)); border-color: hsl(var(--accent) / 0.3); background: hsl(var(--accent) / 0.08); }
.badge-hot     { color: hsl(var(--accent)); border-color: hsl(var(--accent) / 0.35); background: hsl(var(--accent) / 0.1); }
.badge-glass   { color: #fff; background: hsl(210 30% 8% / 0.55); border-color: hsl(0 0% 100% / 0.18); backdrop-filter: blur(6px); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--accent)); position: relative; flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: hsl(var(--accent) / 0.5); animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%,100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Cards ---------- */
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; overflow: hidden; }
.card-pad { padding: 26px; }
.card-hover:hover { transform: translateY(-3px); border-color: hsl(var(--primary) / 0.28); box-shadow: var(--shadow-md); }

/* Stat card */
.stat { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: hsl(var(--primary)); opacity: 0.55; }
.stat .stat-label { font-size: 0.82rem; color: hsl(var(--muted-foreground)); font-weight: 600; }
.stat .stat-value { font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 10px 0 6px; color: hsl(var(--foreground)); }
.stat .stat-delta { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; }
.stat .stat-sub { font-size: 0.78rem; color: hsl(var(--muted-foreground)); }
.bg-ink .stat { background: hsl(210 25% 12%); border-color: hsl(0 0% 100% / 0.08); }
.bg-ink .stat .stat-value { color: #fff; }
.bg-ink .stat .stat-label, .bg-ink .stat .stat-sub { color: hsl(210 12% 66%); }

/* Media / imagery */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, hsl(150 30% 90%), hsl(168 40% 82%)); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-hover:hover .media img { transform: scale(1.06); }
.media .media-badge { position: absolute; z-index: 2; top: 12px; left: 12px; }
.media .media-tag { position: absolute; z-index: 2; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: #fff; background: hsl(210 30% 8% / 0.6); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.media .media-cap { position: absolute; z-index: 2; bottom: 12px; left: 14px; right: 14px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-shadow: 0 2px 10px hsl(0 0% 0% / 0.6); }
.media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, hsl(210 30% 6% / 0.55), transparent 55%); pointer-events: none; }
.thumb { aspect-ratio: 16 / 10; }
.thumb-tall { aspect-ratio: 3 / 2; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); background: hsl(var(--background) / 0.82); border-bottom: 1px solid hsl(var(--border)); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-green); color: #fff; font-weight: 700; font-size: 0.95rem; font-family: var(--font-head); box-shadow: 0 4px 12px -3px hsl(var(--primary) / 0.5); }
.brand .brand-sub { color: hsl(var(--muted-foreground)); font-weight: 500; font-size: 0.7rem; display: block; margin-top: -2px; letter-spacing: 0.02em; }
.brand img.logo { height: 40px; width: auto; display: block; }
@media (max-width: 720px) { .brand img.logo { height: 34px; } }
.footer-logo { background: #fff; padding: 8px 12px; border-radius: 10px; display: inline-block; }
.footer-logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.92rem; color: hsl(var(--muted-foreground)); font-weight: 500; transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: hsl(var(--primary)); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid hsl(var(--border)); place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: hsl(var(--foreground)); position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: hsl(var(--ink)); color: hsl(210 14% 72%); padding: 66px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.footer-grid h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: hsl(210 12% 60%); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 600; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: hsl(210 14% 72%); font-size: 0.92rem; transition: color .15s; }
.footer-grid ul a:hover { color: hsl(150 60% 55%); }
.footer-brand p { color: hsl(210 12% 62%); font-size: 0.92rem; margin: 16px 0; max-width: 320px; }
.footer-contact { color: hsl(210 14% 72%); font-size: 0.92rem; }
.footer-contact strong { color: #fff; display: block; font-weight: 500; }
.footer-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid hsl(0 0% 100% / 0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: hsl(210 12% 58%); font-size: 0.85rem; }
.footer-bottom .tag { font-family: var(--font-mono); font-size: 0.78rem; }
.flag-strip { display: inline-flex; height: 12px; border-radius: 3px; overflow: hidden; margin-left: 4px; vertical-align: middle; }
.flag-strip i { width: 8px; }
.flag-strip .fg { background: hsl(150 86% 34%); } .flag-strip .fw { background: #fff; } .flag-strip .fk { background: #111; } .flag-strip .fr { background: hsl(354 78% 45%); }

/* ---------- Filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 17px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; border: 1.5px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); background: hsl(var(--card)); transition: .15s; }
.chip:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.5); }
.chip.active { background: var(--grad-green); color: #fff; border-color: transparent; }
.filter-group { margin-bottom: 22px; }
.filter-group .filter-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 10px; }

/* ---------- Home hero (Dubai image + about) ---------- */
.hero { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, hsl(210 35% 6% / 0.86) 0%, hsl(210 35% 6% / 0.62) 45%, hsl(210 35% 6% / 0.25) 100%), linear-gradient(to top, hsl(210 35% 6% / 0.7), transparent 60%); }
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding: 120px 0 90px; }
.hero .eyebrow { color: hsl(150 70% 62%); }
.hero .eyebrow::before { background: hsl(150 70% 55%); }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 4.7rem); line-height: 1.03; margin: 22px 0 22px; color: #fff; }
.hero h1 .grad { background: linear-gradient(120deg, hsl(150 70% 55%), hsl(168 76% 60%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: hsl(210 16% 86%); max-width: 600px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 2px; }
.hero-strip i { flex: 1; height: 5px; }
.hero-strip .fg { background: hsl(150 86% 34%); } .hero-strip .fw { background: #fff; } .hero-strip .fk { background: #111; } .hero-strip .fr { background: hsl(354 78% 45%); }
.hero-stats { position: relative; z-index: 2; display: flex; gap: 34px; flex-wrap: wrap; margin-top: 40px; }
.hero-stats .hs-val { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; color: #fff; }
.hero-stats .hs-label { font-size: 0.8rem; color: hsl(210 16% 78%); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 66px 0 42px; border-bottom: 1px solid hsl(var(--border)); overflow: hidden; background: hsl(var(--surface)); }
.page-hero::before { content: ""; position: absolute; top: -160px; right: -60px; width: 460px; height: 460px; border-radius: 50%; background: hsl(var(--primary)); filter: blur(150px); opacity: 0.1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 12px 0 12px; position: relative; }
.page-hero p { color: hsl(var(--muted-foreground)); font-size: 1.1rem; position: relative; max-width: 640px; }

/* ---------- About (home) ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.about-media .float-card { position: absolute; bottom: -24px; left: -24px; background: #fff; border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 22px; }
.about-media .float-card .fc-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: hsl(var(--primary)); }
.about-media .float-card .fc-label { font-size: 0.78rem; color: hsl(var(--muted-foreground)); }
.feature-list { display: grid; gap: 16px; margin-top: 24px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list .fi { width: 30px; height: 30px; border-radius: 8px; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); display: grid; place-items: center; flex-shrink: 0; }
.feature-list strong { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.feature-list span.ft { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

/* ---------- Live feed ---------- */
.feed-item { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid hsl(var(--border)); }
.feed-item:last-child { border-bottom: none; }
.feed-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.feed-main { flex: 1; min-width: 0; }
.feed-main .feed-loc { font-weight: 600; font-family: var(--font-head); }
.feed-main .feed-type { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }
.feed-right { text-align: right; }
.feed-right .feed-price { font-family: var(--font-mono); font-weight: 700; color: hsl(var(--primary)); }
.feed-right .feed-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); font-family: var(--font-mono); }

/* ---------- Card bodies ---------- */
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-lg { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: hsl(var(--primary)); }
.kv { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 8px 0; border-top: 1px solid hsl(var(--border)); }
.kv span:first-child { color: hsl(var(--muted-foreground)); }
.kv span:last-child { font-family: var(--font-mono); font-weight: 600; }

/* ---------- Videos ---------- */
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); display: block; background: hsl(var(--ink)); }
.video-card .vthumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; opacity: 0.9; transition: transform .5s, opacity .3s; }
.video-card:hover .vthumb { transform: scale(1.05); opacity: 1; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play span { width: 68px; height: 68px; border-radius: 50%; background: hsl(var(--accent)); display: grid; place-items: center; box-shadow: 0 10px 30px -6px hsl(var(--accent) / 0.7); transition: transform .2s; }
.video-card:hover .play span { transform: scale(1.1); }
.video-card .play svg { fill: #fff; margin-left: 4px; }
.video-card .vcap { position: absolute; left: 16px; bottom: 14px; right: 16px; color: #fff; font-family: var(--font-head); font-weight: 600; text-shadow: 0 2px 10px hsl(0 0% 0% / 0.7); z-index: 2; }
.video-card iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }

/* ---------- Charts ---------- */
.chart-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.chart-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.chart-card .chart-sub { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin-bottom: 20px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis-label { font-family: var(--font-mono); font-size: 10px; fill: hsl(var(--muted-foreground)); }
.chart .grid-line { stroke: hsl(var(--border)); stroke-width: 1; opacity: 0.5; }
.chart .axis-label { opacity: 0.8; }
.chart .bar-track { fill: hsl(var(--muted)); opacity: 0.55; }
.chart .bar-val { font-family: var(--font-mono); font-size: 10px; font-weight: 600; fill: hsl(var(--muted-foreground)); opacity: 0; animation: barValIn .5s ease forwards; animation-delay: .55s; }
@keyframes barValIn { to { opacity: 1; } }
.bar { fill: url(#barGrad); transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .2s; transform-box: fill-box; transform-origin: bottom; cursor: pointer; }
.bar.hi { fill: url(#barGradHi); }
.bar:hover { opacity: 0.85; }
.chart .bar-val.hi { fill: hsl(var(--gold)); font-weight: 700; }
.chart .axis-label.hi { fill: hsl(var(--foreground)); font-weight: 600; opacity: 1; }
.chart .bar-record { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; fill: hsl(var(--gold)); font-weight: 700; opacity: 0; animation: barValIn .5s ease forwards .65s; }
/* Dark / featured chart card */
.chart-card.dark { background: hsl(var(--ink)); border-color: hsl(210 30% 18%); color: #eef2f4; position: relative; overflow: hidden; }
.chart-card.dark::before { content: ""; position: absolute; top: -45%; right: -8%; width: 340px; height: 340px; border-radius: 50%; background: hsl(var(--primary)); filter: blur(120px); opacity: 0.16; pointer-events: none; }
.chart-card.dark > * { position: relative; }
.chart-card.dark h3 { color: #fff; }
.chart-card.dark .chart-sub { color: hsl(210 12% 62%); }
.chart-card.dark .chart .axis-label { fill: hsl(210 14% 62%); }
.chart-card.dark .chart .axis-label.hi { fill: #fff; }
.chart-card.dark .chart .grid-line { stroke: hsl(0 0% 100% / 0.09); opacity: 1; }
.chart-card.dark .chart .bar-track { fill: hsl(0 0% 100% / 0.05); opacity: 1; }
.chart-card.dark .chart .bar-val { fill: hsl(210 14% 80%); }
.chart svg .line-path { transition: stroke-dashoffset 1.2s cubic-bezier(.16,1,.3,1); filter: drop-shadow(0 6px 12px hsl(156 55% 34% / 0.2)); }
.chart svg circle.dot { cursor: pointer; transition: r .15s; }
.chart svg circle.dot.end { filter: drop-shadow(0 0 6px hsl(156 60% 42% / 0.7)); }
.chart svg circle.dot:hover { r: 6; }
@media (prefers-reduced-motion: reduce) { .chart .bar-val { opacity: 1; animation: none; } }
.chart-tip { position: fixed; z-index: 3000; pointer-events: none; background: hsl(var(--ink)); color: #fff; font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow-md); opacity: 0; transform: translate(-50%, -130%); transition: opacity .12s; white-space: nowrap; }
.chart-tip.show { opacity: 1; }
.chart-tip b { color: hsl(150 60% 60%); }
/* Interactive area explorer */
.area-explorer .ax-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 720px) { .area-explorer .ax-stats { grid-template-columns: repeat(2, 1fr); } }
.ax-metric { text-align: center; padding: 20px 12px; border-radius: var(--radius); background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); }
.ax-metric .axv { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: hsl(var(--primary)); }
.ax-metric .axl { font-size: 0.78rem; color: hsl(var(--muted-foreground)); margin-top: 4px; }

/* Heatmap */
.heat-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.heat-row .heat-name { width: 150px; font-size: 0.9rem; font-weight: 600; flex-shrink: 0; }
.heat-track { flex: 1; height: 30px; border-radius: 8px; background: hsl(var(--muted)); overflow: hidden; }
.heat-fill { height: 100%; border-radius: 8px; background: var(--grad-flag); }
.heat-val { width: 44px; text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: hsl(var(--primary)); }

/* Distribution bars */
.dist-row { margin-bottom: 16px; }
.dist-top { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.dist-top .mono { color: hsl(var(--primary)); font-weight: 700; }
.dist-track { height: 12px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.dist-bar { height: 100%; border-radius: 999px; background: var(--grad-green); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field label .req { color: hsl(var(--accent)); }
.field input, .field select, .field textarea { background: hsl(var(--card)); border: 1.5px solid hsl(var(--border)); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .ci { width: 42px; height: 42px; border-radius: 10px; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); display: grid; place-items: center; flex-shrink: 0; }
.contact-line .cl-label { font-size: 0.78rem; color: hsl(var(--muted-foreground)); }
.contact-line .cl-value { font-weight: 600; }
.form-note { font-size: 0.82rem; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.form-success { display: none; padding: 14px 18px; border-radius: 10px; background: hsl(var(--primary) / 0.1); border: 1px solid hsl(var(--primary) / 0.4); color: hsl(var(--primary-dark)); font-size: 0.9rem; margin-top: 16px; }

/* ---------- Team / Who we are ---------- */
.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.founder-photo .exp-badge { position: absolute; top: 18px; right: -14px; background: var(--grad-green); color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); text-align: center; }
.founder-photo .exp-badge b { display: block; font-family: var(--font-mono); font-size: 1.6rem; line-height: 1; }
.founder-photo .exp-badge small { font-size: 0.7rem; opacity: 0.9; }
.founder-avatar { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius); background: var(--grad-green); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 5rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.founder-avatar::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 10%, hsl(0 0% 100% / 0.18), transparent 60%); }
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.brand-card { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 20px; background: hsl(var(--card)); box-shadow: var(--shadow-sm); transition: .2s; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: hsl(var(--primary) / 0.4); }
.brand-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.brand-card p { font-size: 0.88rem; color: hsl(var(--muted-foreground)); }
.on-ink .brand-card { background: hsl(210 25% 12%); border-color: hsl(0 0% 100% / 0.09); }
.on-ink .brand-card p { color: hsl(210 12% 66%); }
.on-ink .founder-quote { color: hsl(210 14% 80%); }
.founder-quote { font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; font-weight: 500; margin: 18px 0; }
.founder-quote .gradient-text { background: linear-gradient(120deg, hsl(150 70% 55%), hsl(168 76% 60%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Founder / team (redesigned) ---------- */
.team { display: grid; grid-template-columns: 0.82fr 1.1fr; gap: 52px; align-items: center; }
.team-portrait { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(210 30% 20%); background: linear-gradient(160deg, hsl(210 30% 14%), hsl(210 32% 8%)); display: flex; align-items: flex-end; }
.team-portrait .mk { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-head); font-weight: 600; font-size: 4.5rem; color: hsl(0 0% 100% / 0.12); letter-spacing: 0.06em; }
.team-portrait .plate { position: relative; width: 100%; padding: 20px 22px; background: linear-gradient(to top, hsl(210 40% 5% / 0.92), transparent); color: #fff; z-index: 1; }
.team-portrait .plate b { font-family: var(--font-head); font-size: 1.1rem; display: block; }
.team-portrait .plate span { font-size: 0.82rem; color: hsl(210 14% 76%); }
.team-q { font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.42; font-weight: 500; letter-spacing: -0.015em; margin: 16px 0 18px; }
.team-by { font-size: 0.95rem; color: hsl(var(--muted-foreground)); margin-bottom: 18px; }
.team-by b { font-family: var(--font-head); color: hsl(var(--foreground)); }
.team-stats { display: flex; gap: 40px; margin: 26px 0; flex-wrap: wrap; }
.team-stats .ts b { font-family: var(--font-mono); font-size: 1.6rem; display: block; color: hsl(var(--primary)); line-height: 1; }
.team-stats .ts span { font-size: 0.8rem; color: hsl(var(--muted-foreground)); }
.team-brands { display: flex; gap: 40px; align-items: flex-start; padding-top: 22px; border-top: 1px solid hsl(var(--border)); flex-wrap: wrap; }
.team-brands .tb b { font-family: var(--font-head); font-size: 1.02rem; }
.team-brands .tb span { font-size: 0.8rem; color: hsl(var(--muted-foreground)); display: block; margin-top: 2px; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; gap: 34px; } .team-portrait { max-width: 320px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; border-radius: 22px; padding: 68px 32px; background: hsl(var(--ink)); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 50% 0%, hsl(var(--primary) / 0.35), transparent 60%); }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad-flag); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; color: #fff; }
.cta-band p { color: hsl(210 14% 78%); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Article (blog post) ---------- */
.article-hero { position: relative; height: 46vh; min-height: 340px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsl(210 35% 6% / 0.92), hsl(210 35% 6% / 0.35)); z-index: 1; }
.article-hero .container { position: relative; z-index: 2; padding-bottom: 40px; }
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 860px; margin: 14px 0 12px; }
.article-meta { display: flex; gap: 16px; align-items: center; font-family: var(--font-mono); font-size: 0.82rem; color: hsl(210 16% 82%); flex-wrap: wrap; }
.article-body { max-width: 760px; margin: 0 auto; padding: 60px 0; font-size: 1.08rem; }
.article-body p { margin-bottom: 22px; color: hsl(210 18% 24%); }
.article-body h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.article-body h3 { font-size: 1.25rem; margin: 30px 0 12px; }
.article-body ul.bul { list-style: none; margin: 0 0 22px; padding: 0; }
.article-body ul.bul li { position: relative; padding-left: 26px; margin-bottom: 12px; color: hsl(210 18% 24%); }
.article-body ul.bul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-green); }
.article-body blockquote { border-left: 4px solid hsl(var(--primary)); background: hsl(var(--surface)); padding: 18px 24px; border-radius: 0 10px 10px 0; margin: 0 0 24px; font-family: var(--font-head); font-size: 1.15rem; }
.article-body .lead { font-size: 1.22rem; color: hsl(var(--foreground)); font-weight: 500; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.95rem; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); text-align: left; }
.article-body th { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); }
.article-body td.mono { font-family: var(--font-mono); color: hsl(var(--primary)); font-weight: 600; }
.share-cta { max-width: 760px; margin: 0 auto; padding: 0 0 40px; }

/* ---------- Project detail ---------- */
.proj-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.proj-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.proj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsl(210 35% 6% / 0.92), hsl(210 35% 6% / 0.25)); z-index: 1; }
.proj-hero .container { position: relative; z-index: 2; padding-bottom: 40px; }
.proj-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 12px 0 10px; max-width: 900px; }
.proj-hero .ph-meta { display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; color: hsl(210 16% 84%); font-size: 0.95rem; }
.proj-hero .ph-price { font-family: var(--font-mono); font-weight: 700; color: #fff; font-size: 1.2rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 8px; }
.fact { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.fact .fk { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.fact .fv { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-top: 6px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid hsl(var(--border)); text-align: left; }
.data-table th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); }
.data-table td.price { font-family: var(--font-mono); color: hsl(var(--primary)); font-weight: 700; }
.data-table td.mono { font-family: var(--font-mono); }
.data-table td.up { color: hsl(var(--primary)); font-family: var(--font-mono); font-weight: 600; }
.data-table tr:hover td { background: hsl(var(--surface)); }
.minibar { display: inline-block; width: 56px; height: 7px; border-radius: 999px; background: hsl(var(--muted)); vertical-align: middle; margin-right: 8px; overflow: hidden; }
.minibar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-flag); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; transition: transform .3s, box-shadow .3s; box-shadow: var(--shadow-sm); }
.gallery-grid img:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.hl-list li { display: flex; gap: 11px; align-items: flex-start; }
.hl-list li svg { flex-shrink: 0; color: hsl(var(--primary)); margin-top: 3px; }
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.community-grid .ci { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.community-grid .ci img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.community-grid .ci span { position: absolute; left: 10px; bottom: 8px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; text-shadow: 0 2px 8px hsl(0 0% 0% / 0.7); z-index: 1; }
.community-grid .ci::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsl(0 0% 0% / 0.5), transparent 55%); }
/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: hsl(210 35% 4% / 0.92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 2rem; line-height: 1; background: none; }
.empty-note { text-align: center; color: hsl(var(--muted-foreground)); padding: 40px; grid-column: 1 / -1; }

/* Animated stat counters keep layout stable */
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Calculators ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.calc { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.calc-head { padding: 22px 24px 0; }
.calc-head .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-green); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.calc-head h3 { font-size: 1.2rem; }
.calc-head p { color: hsl(var(--muted-foreground)); font-size: 0.9rem; margin-top: 4px; }
.calc-body { padding: 20px 24px; display: grid; gap: 16px; }
.calc-field { display: grid; gap: 7px; }
.calc-field label { font-size: 0.85rem; font-weight: 600; display: flex; justify-content: space-between; }
.calc-field label .lv { font-family: var(--font-mono); color: hsl(var(--primary)); }
.calc-field input[type="number"], .calc-field select { background: hsl(var(--background)); border: 1.5px solid hsl(var(--border)); border-radius: 10px; padding: 11px 13px; font-family: var(--font-mono); transition: border-color .15s, box-shadow .15s; }
.calc-field input[type="number"]:focus, .calc-field select:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15); }
.calc-field input[type="range"] { width: 100%; accent-color: hsl(var(--primary)); cursor: pointer; }
.calc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-result { margin-top: auto; background: hsl(var(--surface)); border-top: 1px solid hsl(var(--border)); padding: 20px 24px; }
.calc-hero-out { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.calc-hero-out .co-label { font-size: 0.82rem; color: hsl(var(--muted-foreground)); font-weight: 600; }
.calc-hero-out .co-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.7rem; color: hsl(var(--primary)); }
.calc-rows .rr { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; border-top: 1px dashed hsl(var(--border)); }
.calc-rows .rr span:last-child { font-family: var(--font-mono); font-weight: 600; }
.calc-rows .rr.total { border-top: 2px solid hsl(var(--border)); margin-top: 4px; padding-top: 12px; font-weight: 700; }
.calc-rows .rr.total span:last-child { color: hsl(var(--primary)); }
.seg { display: inline-flex; background: hsl(var(--muted)); border-radius: 999px; padding: 3px; }
.seg button { padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.seg button.active { background: #fff; color: hsl(var(--primary)); box-shadow: var(--shadow-sm); }

/* ---------- Market hero (light, colourful) ---------- */
.mkt-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, hsl(152 44% 95%), hsl(170 48% 93%) 52%, hsl(150 32% 97%)); border-bottom: 1px solid hsl(var(--border)); }
.mkt-hero::before { content: ""; position: absolute; top: -150px; right: -80px; width: 440px; height: 440px; border-radius: 50%; background: hsl(var(--primary)); filter: blur(150px); opacity: 0.12; pointer-events: none; }
.mkt-hero::after { content: ""; position: absolute; bottom: -180px; left: -100px; width: 380px; height: 380px; border-radius: 50%; background: hsl(172 70% 45%); filter: blur(150px); opacity: 0.1; pointer-events: none; }
.mkt-hero > .container { position: relative; z-index: 1; }

/* ---------- Market snapshot strip ---------- */
.mkt-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; background: hsl(var(--card)); box-shadow: var(--shadow-sm); }
.mkt-strip .m { padding: 28px 26px; border-left: 1px solid hsl(var(--border)); }
.mkt-strip .m:first-child { border-left: none; }
.mkt-strip .m .mv { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.01em; }
.mkt-strip .m .ml { font-size: 0.86rem; color: hsl(var(--foreground)); margin-top: 6px; font-weight: 500; }
.mkt-strip .m .mc { font-family: var(--font-mono); font-size: 0.76rem; color: hsl(var(--primary)); margin-top: 6px; }
@media (max-width: 820px) {
  .mkt-strip { grid-template-columns: 1fr 1fr; }
  .mkt-strip .m:nth-child(3) { border-left: none; }
  .mkt-strip .m:nth-child(3), .mkt-strip .m:nth-child(4) { border-top: 1px solid hsl(var(--border)); }
}

/* ---------- Market indicators grid ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.ind:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ind .ii { width: 40px; height: 40px; border-radius: 11px; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); display: grid; place-items: center; margin-bottom: 15px; }
.ind .iv { font-family: var(--font-mono); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; }
.ind .il { font-size: 0.82rem; color: hsl(var(--muted-foreground)); margin-top: 3px; }
.ind .ic { font-family: var(--font-mono); font-size: 0.72rem; color: hsl(var(--primary)); margin-top: 8px; }
@media (max-width: 820px) { .ind-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Interactive heat map ---------- */
.dm-map { background: radial-gradient(120% 130% at 15% 10%, hsl(205 45% 16%), hsl(210 35% 8%)); border-radius: var(--radius); padding: 10px; overflow: hidden; border: 1px solid hsl(210 30% 18%); }
.dm-map svg { width: 100%; height: auto; display: block; }
.dm-node { cursor: pointer; }
.dm-node circle.core { transition: r .18s ease; }
.dm-node:hover circle.core { stroke: #fff; stroke-width: 2.5; }
.dm-node:hover circle.hit { r: 34; }
.dm-node text { font-family: var(--font-head); font-size: 12px; font-weight: 600; fill: #fff; pointer-events: none; text-shadow: 0 1px 4px hsl(0 0% 0% / 0.8); }
.dm-legend { display: flex; align-items: center; gap: 10px; color: hsl(210 12% 66%); font-size: 0.76rem; font-family: var(--font-mono); margin-top: 10px; padding: 4px 8px 8px; flex-wrap: wrap; }
.dm-legend .lbar { height: 9px; width: 150px; border-radius: 999px; background: linear-gradient(90deg, hsl(168 80% 45%), hsl(120 75% 48%), hsl(55 88% 52%), hsl(32 92% 55%)); }
.dm-sealbl { font-family: var(--font-mono); font-size: 11px; fill: hsl(200 40% 55% / 0.6); letter-spacing: 0.2em; }
/* Heat map + click-to-drill side panel (DXBinteract-style) */
.heatmap-wrap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: stretch; }
.heatmap-wrap .dm-map { height: 100%; }
.hm-mapcol { display: flex; flex-direction: column; }
.hm-map { height: 560px; border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); background: hsl(var(--ink)); position: relative; z-index: 0; }
.hm-map .leaflet-container { height: 100%; width: 100%; background: hsl(var(--ink)); font-family: var(--font-body); }
.hm-map .leaflet-control-attribution { font-size: 9px; }
.hm-ic { background: none !important; border: none !important; }
.hm-dot { position: relative; border-radius: 50%; background: var(--c); filter: drop-shadow(0 0 6px var(--c)); cursor: pointer; }
.hm-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--c); opacity: 0.25; animation: hmpulse 2.4s ease-out infinite; }
.hm-dot.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c); }
@keyframes hmpulse { 0% { transform: scale(.7); opacity: .4; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-dot::before { animation: none; } }
.hm-label { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 11px; color: #fff; text-shadow: 0 1px 3px #000, 0 0 3px #000; pointer-events: none; }
@media (max-width: 860px) { .hm-map { height: 420px; } }
/* Project pins + popups on the map */
.hm-proj-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: hsl(var(--primary)); transform: rotate(-45deg); box-shadow: 0 2px 6px hsl(0 0% 0% / 0.45); border: 2px solid #fff; display: grid; place-items: center; cursor: pointer; }
.hm-proj-pin svg { transform: rotate(45deg); color: #fff; }
.hm-map .leaflet-popup-content-wrapper { border-radius: 12px; overflow: hidden; padding: 0; box-shadow: var(--shadow-lg); }
.hm-map .leaflet-popup-content { margin: 0; width: 216px !important; }
.mp-pop img { width: 100%; height: 112px; object-fit: cover; display: block; }
.mp-pop .mp-body { padding: 12px 14px 14px; }
.mp-pop .mp-name { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1.2; color: hsl(var(--foreground)); }
.mp-pop .mp-sub { font-size: 0.76rem; color: hsl(var(--muted-foreground)); margin: 3px 0 8px; }
.mp-pop .mp-price { font-family: var(--font-mono); font-weight: 700; color: hsl(var(--primary)); margin-bottom: 10px; }
.mp-pop .mp-btn { display: block; text-align: center; background: hsl(var(--primary)); color: #fff !important; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; padding: 9px; border-radius: 8px; }
.mp-pop .mp-btn:hover { background: hsl(var(--primary-dark)); }
.hm-reset { background: #fff; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 7px 12px; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: hsl(var(--foreground)); box-shadow: var(--shadow-sm); cursor: pointer; }
.hm-reset:hover { color: hsl(var(--primary)); }
.heat-panel { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.heat-panel .hp-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.heat-panel .hp-area { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; margin: 4px 0 2px; }
.heat-panel .hp-price { font-family: var(--font-mono); font-weight: 700; font-size: 2.3rem; color: hsl(var(--primary)); line-height: 1.05; }
.heat-panel .hp-price small { font-size: 0.9rem; color: hsl(var(--muted-foreground)); font-weight: 500; }
.heat-panel .hp-rows { margin: 18px 0 6px; }
.heat-panel .hp-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid hsl(var(--border)); font-size: 0.9rem; }
.heat-panel .hp-row span { color: hsl(var(--muted-foreground)); }
.heat-panel .hp-row b { font-family: var(--font-mono); font-weight: 600; color: hsl(var(--foreground)); }
.heat-panel .hp-row b.up { color: hsl(var(--primary)); }
.heat-panel .hp-spark { margin-top: auto; padding-top: 16px; }
.heat-panel .hp-spark .sl { font-family: var(--font-mono); font-size: 0.7rem; color: hsl(var(--muted-foreground)); margin-bottom: 6px; }
.heat-panel .hp-cta { margin-top: 16px; }
@media (max-width: 860px) { .heatmap-wrap { grid-template-columns: 1fr; } }

/* ---------- Area comparison ---------- */
.cmp-controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; margin-bottom: 24px; }
.cmp-controls .vs { font-family: var(--font-head); font-weight: 700; color: hsl(var(--muted-foreground)); padding-bottom: 12px; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-col { border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; }
.cmp-col .cmp-name { padding: 14px 18px; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad-green); }
.cmp-col.b .cmp-name { background: hsl(var(--ink)); }
.cmp-col .cmp-metric { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid hsl(var(--border)); font-size: 0.9rem; }
.cmp-col .cmp-metric span:first-child { color: hsl(var(--muted-foreground)); }
.cmp-col .cmp-metric b { font-family: var(--font-mono); }
.cmp-col .cmp-metric b.win { color: hsl(var(--primary)); }
/* Upgraded comparison */
.cmp-grid[data-cmp-result] { display: block; }
.cmpx-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 22px; }
.cmpx-team { text-align: center; padding: 16px 14px; border-radius: var(--radius); border: 1px solid hsl(var(--border)); }
.cmpx-team.a { background: hsl(var(--primary) / 0.06); border-color: hsl(var(--primary) / 0.3); }
.cmpx-team.b { background: hsl(var(--surface-2)); }
.cmpx-nm { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.cmpx-tag { display: inline-block; margin-top: 7px; font-size: 0.7rem; font-family: var(--font-mono); color: hsl(var(--primary-dark)); background: hsl(var(--primary) / 0.12); padding: 4px 10px; border-radius: 999px; }
.cmpx-team.b .cmpx-tag { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.cmpx-vs { font-family: var(--font-head); font-weight: 700; color: hsl(var(--muted-foreground)); font-size: 0.82rem; }
.cmpx-rows { display: flex; flex-direction: column; }
.cmpx-row { display: grid; grid-template-columns: 92px 1fr 92px; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid hsl(var(--border)); }
.cmpx-row:first-child { border-top: none; }
.cmpx-v { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; color: hsl(var(--muted-foreground)); }
.cmpx-v.a { text-align: right; } .cmpx-v.b { text-align: left; }
.cmpx-v.win { color: hsl(var(--primary)); font-weight: 700; }
.cmpx-mid { text-align: center; }
.cmpx-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-bottom: 6px; }
.cmpx-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: hsl(var(--muted)); }
.cmpx-bar i.a { background: var(--grad-green); }
.cmpx-bar i.b { background: hsl(var(--ink)); }
.cmpx-verdict { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); font-size: 0.92rem; line-height: 1.5; }
.cmpx-verdict svg { color: hsl(var(--primary)); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 620px) { .cmpx-row { grid-template-columns: 58px 1fr 58px; gap: 8px; } .cmpx-v { font-size: 0.78rem; } }

@media (max-width: 820px) {
  .calc-grid { grid-template-columns: 1fr; }
  .cmp-controls { grid-template-columns: 1fr !important; }
  .cmp-controls .vs { display: none; }
  .cmp-grid { grid-template-columns: 1fr; }
  [data-glance] { grid-template-columns: 1fr !important; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-list { grid-template-columns: 1fr; }
  [data-budget-quick] { justify-self: start; }
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .live-dot::after { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split, .about-grid, .founder-grid { grid-template-columns: 1fr !important; }
  .about-grid { gap: 40px; }
  .founder-grid { gap: 32px; }
}
/* Nav collapses to a menu below 1024px so the 7-item bar never crams/wraps */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid hsl(var(--border)); padding: 8px 0; box-shadow: var(--shadow-md); }
  .nav-links.open a { padding: 14px 24px; width: 100%; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav-actions .btn { display: none; }
  .g-4, .g-3, .g-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .heat-row .heat-name { width: 108px; font-size: 0.82rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-media .float-card { left: 12px; bottom: 12px; }
  .brand-cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .data-table th, .data-table td, .article-body th, .article-body td { padding: 10px 9px; font-size: 0.82rem; }
  .article-body table, .data-table { display: block; overflow-x: auto; white-space: nowrap; }
  .dm-node text { font-size: 15px; }
  .proj-hero { min-height: 54vh; }
  .proj-hero .ph-meta { font-size: 0.85rem; gap: 6px 12px; }
  .hero-stats { gap: 22px; }
  .cta-band { padding: 48px 22px; }
}
