/* =========================================================
   Core Realty — site styles
   Minimal, white, SF Pro typography
   ========================================================= */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1d1d1f;
  --ink-3: #6e6e73;
  --ink-4: #a1a1a6;
  --line: #ececec;
  --line-2: #f5f5f7;
  --accent: #ff5d15;
  --accent-dark: #bb2b09;
  --accent-soft: #ffe7dc;
  --accent-ink: #ffffff;
  --brand-yellow: #D19C1C;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- AUDIENCE TABS (top strip) ---------- */
.audience-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px var(--pad-x);
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 110;
}
.audience-tab {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  transition: background 0.2s ease, color 0.2s ease;
}
.audience-tab:hover { color: var(--ink); background: var(--line-2); }
.audience-tab.is-active {
  background: var(--ink);
  color: #fff;
}
.audience-tab.is-active:hover { background: var(--ink); }

@media (max-width: 540px) {
  .audience-tabs { padding: 8px 10px; gap: 2px; }
  .audience-tab { padding: 6px 12px; font-size: 12px; }
}

/* When audience tabs are present, push the sticky nav below them */
.audience-tabs ~ .nav { top: 41px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad-x);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.02em; font-size: 17px;
}
.nav__logo img { height: 28px; width: auto; display: block; }
.nav__mark { color: var(--accent); font-size: 14px; transform: translateY(-1px); }
.nav__links {
  display: flex; gap: 28px; flex: 1; justify-content: center;
  font-size: 14px; color: var(--ink-3);
}
.nav__links a { transition: color 0.15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-size: 14px; padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- TYPE HELPERS ---------- */
.section__eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.section__title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}
.section__lede {
  max-width: 640px;
  margin: 0 0 48px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-3);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,93,21,0.22); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--line-2); }

/* ---------- LAYOUT WRAPPER ---------- */
main > section {
  padding: clamp(80px, 10vh, 140px) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- HERO (Banco Plata-style 2-col) ---------- */
.hero {
  padding-top: clamp(56px, 10vh, 120px) !important;
  padding-bottom: clamp(80px, 12vh, 140px) !important;
  text-align: left;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__eyebrow {
  margin: 0 0 24px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 56ch;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-3);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__cta {
  background: var(--accent);
  color: #fff;
  padding: 16px 28px;
  font-size: 16px;
}
.hero__cta:hover {
  background: var(--accent-dark) !important;
  box-shadow: 0 12px 32px rgba(255,93,21,0.32);
  transform: translateY(-1px);
}

/* Hero visual (Runway video) ---------------- */
.hero__visual-wrap {
  width: 100%;
  margin-left: auto;
}
@media (max-width: 900px) {
  .hero__visual-wrap { margin: 24px auto 0; max-width: 520px; }
}
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft) 0%, #ffd9c4 55%, #ffc09a 100%);
  box-shadow: 0 30px 80px rgba(255,93,21,0.18);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Product mockup variant: transparent PNG, no card — devices float on page bg */
.hero__visual--product {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  padding: 0;
}
.hero__product {
  width: 115%;
  max-width: none;
  height: auto;
  margin-left: -7.5%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,0.18));
}
@media (max-width: 900px) {
  .hero__product { width: 100%; margin-left: 0; }
}
.hero__caption {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding: 0 6px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
  text-align: left;
}
.hero__caption-title {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hero__caption-hr {
  color: var(--ink-2);
  margin-top: 2px;
}
.hero__caption--product {
  margin: 18px 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: center;
}
.hero__scroll {
  position: absolute; bottom: 32px; left: var(--pad-x);
  width: 1px; height: 64px; background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; top: -32px; left: 0;
  width: 1px; height: 32px;
  background: var(--ink);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -32px; }
  60%  { top: 64px; }
  100% { top: 64px; }
}

/* ---------- COUNTER ---------- */
.counter {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.counter__label {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}
.counter__amount {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin: 0 auto 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.counter__currency {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ink-3);
}
.counter__value {
  font-size: clamp(64px, 11vw, 144px);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #0a0a0a 0%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter__hint {
  margin: 0 0 64px;
  color: var(--ink-3);
  font-size: 14px;
}
.counter__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.counter__grid li { display: flex; flex-direction: column; gap: 8px; }
.counter__big {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.counter__cap { font-size: 13px; color: var(--ink-3); letter-spacing: 0.02em; }
/* Two-tile variant: center the pair under the big AED number */
.counter__grid--two {
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 96px;
  text-align: center;
}
.counter__grid--two li { align-items: center; text-align: center; }
@media (max-width: 760px) {
  .counter__grid { grid-template-columns: repeat(2, 1fr); }
  .counter__grid--two { gap: 48px; }
}

/* ---------- REGIONS ---------- */
.regions__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 24px;
}
.region {
  background: var(--line-2);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease;
}
.region:hover { background: #f0f0f3; transform: translateY(-2px); }
.region__num {
  position: absolute; top: 24px; right: 28px;
  font-size: 13px; color: var(--ink-4); letter-spacing: 0.1em; font-weight: 500;
}
.region__name {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.025em; font-weight: 700;
}
.region__meta { margin: 0 0 18px; color: var(--ink-3); font-size: 14px; }
.region__text { margin: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.region__stats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto;
}
.region__stat {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; color: var(--ink-3);
  font-weight: 500;
}
.region__stat span {
  font-size: 16px; color: var(--ink); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.region__stat--year {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
@media (max-width: 760px) {
  .regions__grid { grid-template-columns: 1fr; }
}

/* ---------- FOUNDERS (two cards, each with internal photo carousel) ---------- */
.founders { position: relative; }
.founders__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .founders__grid { grid-template-columns: 1fr; }
}

.founder {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.founder:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

/* Internal photo carousel ---------- */
.founder__carousel {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0a0a0a;
  overflow: hidden;
}
.founder__carousel::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  pointer-events: none;
  z-index: 1;
}
.founder__slides {
  position: absolute; inset: 0;
}
.founder__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.founder__slide.is-active { opacity: 1; }

/* Tone placeholders so empty slides aren't blank */
.founder__slide[data-tone="a"] { background: linear-gradient(135deg, #0a0a0a 0%, var(--accent) 110%); }
.founder__slide[data-tone="b"] { background: linear-gradient(135deg, #1a1a1f 0%, #ff7a45 110%); }
.founder__slide[data-tone="c"] { background: linear-gradient(135deg, #0f1f2e 0%, #00b894 110%); }
.founder__slide[data-tone="d"] { background: linear-gradient(135deg, #2a1a3e 0%, #c084fc 110%); }
.founder__slide[data-tone="e"] { background: linear-gradient(135deg, #0a0a0a 0%, #f43f5e 110%); }
.founder__slide[data-tone="f"] { background: linear-gradient(135deg, #0c1828 0%, #38bdf8 110%); }
.founder__slide[data-tone="g"] { background: linear-gradient(135deg, #2d1a0a 0%, #facc15 110%); }
.founder__slide[data-tone="h"] { background: linear-gradient(135deg, #1a0a1f 0%, #ec4899 110%); }

.founder__arrow {
  position: absolute;
  z-index: 2;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.founder__carousel:hover .founder__arrow,
.founder__carousel:focus-within .founder__arrow { opacity: 1; }
.founder__arrow:hover { background: rgba(255,93,21,0.9); }
.founder__arrow--prev { left: 12px; }
.founder__arrow--next { right: 12px; }

.founder__dots {
  position: absolute;
  z-index: 2;
  bottom: 14px; left: 0; right: 0;
  display: flex; gap: 5px; flex-wrap: wrap;
  justify-content: center;
  padding: 0 14px;
}
.founder__dots button {
  width: 18px; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.founder__dots button.is-active {
  background: #fff;
  width: 26px;
}

/* Card body ---------- */
.founder__body { padding: 26px 28px 30px; }
.founder__role {
  margin: 0 0 8px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.founder__name {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em; font-weight: 700;
}
.founder__quote {
  margin: 0;
  font-size: 16px; color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- BROKERS ---------- */
.brokers__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
/* Collapsed state: only first 10 brokers visible. JS handles incremental reveal. */
.brokers__grid:not(.is-expanded) > .broker:nth-child(n+11) { display: none; }
.brokers__grid .broker--hidden { display: none; }

.broker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.broker:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}
.broker__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8ed, #d2d2d7) center / cover no-repeat;
  margin: 0 auto 10px;
  position: relative;
  overflow: hidden;
}
.broker__avatar::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-2); font-weight: 600; font-size: 24px; letter-spacing: -0.01em;
}
.broker--placeholder .broker__avatar {
  background:
    repeating-linear-gradient(45deg, #f5f5f7 0 8px, #fafafa 8px 16px);
}
.broker--placeholder { opacity: 0.6; border-style: dashed; }
.broker__name { margin: 0 0 3px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; text-align: center; }
.broker__role { margin: 0 0 8px; font-size: 11px; color: var(--ink-3); text-align: center; }
.broker__line { margin: 0 0 8px; font-size: 11px; color: var(--ink-4); text-align: center; }

.broker__brn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  margin: 0 auto;
}
.broker {
  display: flex; flex-direction: column; align-items: center;
}
.broker--placeholder .broker__brn {
  background: var(--line);
  color: var(--ink-4);
}

@media (max-width: 1100px) { .brokers__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width:  900px) { .brokers__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  640px) { .brokers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:  420px) { .brokers__grid { grid-template-columns: 1fr; } }

/* Toggle button below the grid */
.brokers__more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.brokers__more button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.brokers__more button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- STORIES (3-up carousel with center focus) ---------- */
.stories__carousel {
  position: relative;
  margin: 32px 0 8px;
  padding: 0 64px;
  min-height: 560px;
}
.stories__reel {
  position: relative;
  height: 560px;
  overflow: visible;
  display: block;
  list-style: none;
  padding: 0;
}
.stories__reel::-webkit-scrollbar { display: none; }

.story {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 498px;
  border: none;
  background: var(--ink-2);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1),
              opacity 0.35s ease,
              filter 0.35s ease;
  padding: 0;
  color: #fff;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.story--center {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.story--prev,
.story--next {
  opacity: 0.55;
  pointer-events: auto;
  filter: brightness(0.85);
  z-index: 2;
}
.story--prev {
  transform: translate(calc(-50% - 230px), -50%) scale(0.72);
}
.story--next {
  transform: translate(calc(-50% + 230px), -50%) scale(0.72);
}
.story--prev:hover,
.story--next:hover {
  opacity: 0.85;
  filter: brightness(1);
}
.stories__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: grid; place-items: center;
}
.stories__nav:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.05);
}
.stories__nav--prev { left: 8px; }
.stories__nav--next { right: 8px; }
@media (max-width: 720px) {
  .stories__carousel { padding: 0 16px; min-height: 460px; }
  .stories__reel { height: 460px; }
  .story { width: 220px; height: 391px; }
  .story--prev { transform: translate(calc(-50% - 170px), -50%) scale(0.7); }
  .story--next { transform: translate(calc(-50% + 170px), -50%) scale(0.7); }
  .stories__nav { width: 40px; height: 40px; font-size: 22px; }
}
.story__poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
/* Posters: first frame of each story video */
.story__poster[data-bg="1"] { background-image: url('assets/stories/1.jpg?v=3'); }
.story__poster[data-bg="2"] { background-image: url('assets/stories/2.jpg?v=3'); }
.story__poster[data-bg="3"] { background-image: url('assets/stories/3.jpg?v=3'); }
.story__poster[data-bg="4"] { background-image: url('assets/stories/4.jpg?v=3'); }
.story__poster[data-bg="5"] { background-image: url('assets/stories/5.jpg?v=3'); }
.story__poster[data-bg="6"] { background-image: url('assets/stories/6.jpg?v=3'); }

.story__ring {
  position: absolute; inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.story__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.story:hover .story__play { background: rgba(255,93,21,0.9); transform: translate(-50%, -50%) scale(1.05); }
.story__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 22px;
  z-index: 4;
}
.story--playing .story__play,
.story--playing .story__caption,
.story--playing .story__poster {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.story__caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  text-align: left;
}

.stories__hint {
  margin-top: 16px;
  font-size: 13px; color: var(--ink-4);
}
.stories__hint code {
  background: var(--line-2);
  padding: 2px 8px; border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}

/* Stories modal player */
.story-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.story-modal.is-open { opacity: 1; pointer-events: auto; }
.story-modal__inner {
  width: min(360px, 90vw);
  aspect-ratio: 9 / 16;
  background: #111;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.story-modal__close {
  position: absolute; top: -42px; right: 0;
  background: transparent; border: 0; color: #fff; font-size: 22px;
}
.story-modal__body {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px; text-align: center; padding: 24px;
  background: linear-gradient(180deg, #1a1a1f 0%, var(--accent) 100%);
}

/* ---------- DEVELOPERS / partner brand wall ---------- */
.developers {
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
.dev-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.dev-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  line-height: 1.2;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.dev-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,10,10,0.06);
}
.dev-tile--hidden { display: none; }
.dev-more {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.dev-more button {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dev-more button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
@media (max-width: 960px) {
  .dev-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .dev-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dev-tile { min-height: 64px; font-size: 13px; padding: 12px; }
}

/* ---------- CASES ---------- */
.cases__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cases__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) { .cases__grid--two { grid-template-columns: 1fr; max-width: none; } }
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.case:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}
.case__cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f5f5f7 0%, #ececec 100%);
  position: relative;
}
.case__cover[data-cover="a"] {
  background: linear-gradient(135deg, #0a0a0a 0%, var(--accent) 110%);
}
.case--placeholder { opacity: 0.85; border-style: dashed; }
.case--placeholder .case__cover {
  background:
    repeating-linear-gradient(45deg, #f5f5f7 0 12px, #fafafa 12px 24px);
}
.case__body { padding: 22px 24px 26px; }
.case__tag { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.case__title { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.case__line { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.case__note { margin: 0; font-size: 14px; color: var(--ink-3); }

@media (max-width: 920px) { .cases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cases__grid { grid-template-columns: 1fr; } }

/* ---------- CALCULATOR (Dealhash-style) ---------- */
.calc {
  background: var(--line-2);
  border-radius: 24px;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  max-width: calc(var(--maxw) - 0px);
  padding-top: clamp(32px, 4vw, 56px) !important;
  padding-bottom: clamp(32px, 4vw, 56px) !important;
  padding-left: clamp(20px, 3vw, 40px) !important;
  padding-right: clamp(20px, 3vw, 40px) !important;
}
.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 880px) {
  .calc__grid { grid-template-columns: 1fr; }
}

.calc__panel {
  background: #fff;
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
}

.calc__row { margin-bottom: 22px; }
.calc__row:last-child { margin-bottom: 0; }

.calc__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.calc__display,
.calc__input,
.calc__select {
  width: 100%;
  background: var(--line-2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}
.calc__display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.calc__badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.calc__input { font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.calc__input::-webkit-outer-spin-button,
.calc__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input:focus, .calc__select:focus {
  background: #fff;
  border-color: var(--ink);
}

.calc__select-wrap { position: relative; }
.calc__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.calc__select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Range slider (split) */
.calc__rowhead {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.calc__rowhead .calc__label { margin-bottom: 0; }
.calc__out {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calc__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
  margin: 4px 0 8px;
  padding: 0;
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,93,21,0.25);
  transition: transform 0.15s ease;
}
.calc__range::-webkit-slider-thumb:hover { transform: scale(1.08); }
.calc__range::-moz-range-thumb {
  width: 22px; height: 22px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.calc__pillrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.calc__pill {
  display: inline-flex;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
}
.calc__pillhint { font-size: 13px; color: var(--ink-3); }

.calc__progress {
  position: relative;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}
.calc__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 6px;
}

/* Results panel — side-by-side comparison ---------------- */
.calc__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.calc__compare-col {
  background: var(--line-2);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.calc__compare-col--accent {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
}
.calc__compare-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.35;
}
.calc__compare-col--accent .calc__compare-label { color: #15803d; }
.calc__compare-value {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.calc__compare-col--accent .calc__compare-value { color: #15803d; }
.calc__compare-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-4);
}

.calc__compare-breakdown {
  margin: 0 0 18px;
  padding: 0 4px;
}
.calc__breakdown-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.calc__breakdown-line > span:last-child { color: var(--ink-2); font-weight: 500; }

.calc__loss {
  background: #fef2f2;
  border-radius: 14px;
  padding: 22px 24px;
  text-align: center;
  margin-bottom: 18px;
}
.calc__loss-text {
  margin: 0 0 8px;
  font-size: 13px;
  color: #b91c1c;
  font-weight: 500;
  line-height: 1.35;
}
.calc__loss-value {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

.calc__cta {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  margin: 0;
}
.calc__cta:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 30px rgba(255,93,21,0.28);
}

/* ---------- MARKET / WHY GCC (full-bleed) ---------- */
.market {
  /* Break out of main's max-width to span the full viewport */
  max-width: none !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: var(--line-2);
}
.market__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad-x);
}
.market .section__eyebrow { margin-bottom: 16px; }
.market .section__title {
  margin-bottom: clamp(36px, 5vw, 60px);
  font-size: clamp(34px, 4.6vw, 56px);
}
.market .section__title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.market .section__lede {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* CORE featured + competitor tickers grid */
.tickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 980px) { .tickers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tickers { grid-template-columns: 1fr; } }

.ticker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ticker:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
}
.ticker__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ticker__sym {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.ticker__country {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.ticker__name {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ticker__cap {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ticker__change {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.ticker__change--up { color: #15803d; }
.ticker__change--down { color: #dc2626; }

/* LIVE dot indicator after name */
.ticker.is-live .ticker__name::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  background: #15803d;
  border-radius: 50%;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(21,128,61,0.5);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(21,128,61,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(21,128,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
}

/* CORE card — same grid slot as competitors, dark accent treatment */
.ticker--core {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ticker--core .ticker__sym {
  color: var(--accent);
  letter-spacing: 0.06em;
}
.ticker--core .ticker__country {
  color: rgba(255,255,255,0.45);
}
.ticker--core .ticker__name { color: #fff; }
.ticker--core .ticker__cap  { color: var(--accent); }
.ticker--core .ticker__change {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.tickers__footer {
  margin: 24px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-align: right;
}
.market__map {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(16px, 2vw, 28px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.market__map-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Live pins overlay — positioned over the baked-in labels they replace */
.map-pin {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.04);
  font-variant-numeric: tabular-nums;
  min-width: 130px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.map-pin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.map-pin__name {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.map-pin__cap {
  margin: 0 0 2px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.map-pin__meta {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.map-pin.is-live .map-pin__name::after {
  content: '· LIVE';
  margin-left: 4px;
  color: #15803d;
  font-weight: 700;
}

/* Pin positions — over the country regions on the clean world map */
.map-pin--exp     { top: 12%;  left: 16%; }   /* North America / UK */
.map-pin--beike   { top: 24%;  left: 64%; }   /* China */
.map-pin--costar  { top: 34%;  left: 8%; }    /* USA */
.map-pin--propnex { top: 56%;  left: 72%; }   /* Singapore (small island) */

/* CORE pin — highlighted in our accent color over Saudi Arabia (green country) */
.map-pin--core {
  top: 44%; left: 55%;
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
.map-pin--core .map-pin__name {
  color: var(--accent);
}
.map-pin--core .map-pin__cap {
  color: #fff;
}
.map-pin--core .map-pin__meta {
  color: rgba(255,255,255,0.5);
}

@media (max-width: 700px) {
  .map-pin { padding: 6px 10px 8px; min-width: 78px; }
  .map-pin__name { font-size: 9px; }
  .map-pin__cap { font-size: 13px; }
  .map-pin__meta { display: none; }
}
.market__cards {
  display: grid;
  gap: 14px;
}
.market__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.market__card:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 14px 36px rgba(0,0,0,0.05);
}
.market__card-num {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.market__card-title {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-right: 36px;
}
.market__card-title strong {
  color: var(--accent-dark);
  font-weight: 700;
}
.market__card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Live competitor market caps strip */
.caps {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.caps__head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.caps__eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.caps__meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-4);
}
.caps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .caps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .caps__grid { grid-template-columns: 1fr; } }

.cap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cap:hover { border-color: #d2d2d7; transform: translateY(-1px); }

.cap__name {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cap__ticker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-4);
}
.cap__value {
  margin: 0 0 2px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cap__change {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.cap__change--up { color: #15803d; }
.cap__change--down { color: #dc2626; }
.cap.is-loading { opacity: 0.6; }

/* ---------- TEAM (funds page · pitch-deck style cards) ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 760px) { .team__grid { grid-template-columns: 1fr; } }

.team__card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.team__card--founder {
  border-color: var(--accent-soft);
}
.team__card:hover {
  transform: translateY(-2px);
  border-color: #d2d2d7;
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
}
@media (max-width: 540px) {
  .team__card { grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 18px; }
}

.team__photo {
  width: 150px; height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
@media (max-width: 540px) {
  .team__photo { width: 104px; height: 104px; }
}

.team__body { min-width: 0; }
.team__name {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.team__role {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
}
.team__bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.team__bio strong { color: var(--ink); }

.team__card--ambassador .team__role {
  color: var(--ink-3);
}

/* ---------- INSTAGRAM ---------- */
.ig__handle {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-soft);
}
.ig__handle:hover { color: var(--accent); border-color: var(--accent); }

.ig__feed {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line-2);
  transition: background 0.3s ease;
}
.ig__feed iframe { display: block; width: 100%; }

/* Custom grid replaces iframe once /api/public/instagram-feed responds */
.ig__feed--loaded {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
@media (max-width: 480px) {
  .ig__feed--loaded { grid-template-columns: repeat(2, 1fr); }
}
.ig__feed--loaded iframe { display: none; }

.ig__tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ig__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,93,21,0.18);
}
.ig__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ig__tile:hover img { transform: scale(1.04); }
.ig__tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.28) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.ig__tile:hover::after { opacity: 1; }
.ig__tile-icon {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}

.ig__cta { margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 820px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: var(--ink); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 24px;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq__item[open] .faq__q::after {
  content: '–';
  color: var(--accent);
  transform: translateY(-50%) rotate(0deg);
}
.faq__a {
  padding: 0 24px 22px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.55;
  max-width: 720px;
}

/* ---------- CONTACT ---------- */
.contact__form {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
  max-width: 640px;
  margin-top: 24px;
}
.contact__input {
  font: inherit; font-size: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--line-2);
  border: 1px solid transparent;
  color: var(--ink);
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.contact__input:focus { background: #fff; border-color: var(--ink); }

/* Channel selector ---------------- */
.contact__channels {
  grid-column: 1 / -1;
  border: 0;
  padding: 0;
  margin: 6px 0 0;
  min-width: 0;
}
.contact__channels legend {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  padding: 0;
  margin-bottom: 10px;
}
.contact__channel-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.contact__channel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.contact__channel-pill {
  display: inline-flex; align-items: center;
  padding: 11px 18px;
  background: var(--line-2);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  user-select: none;
}
.contact__channel-pill:hover { border-color: var(--ink-4); }
.contact__channel input:checked + .contact__channel-pill {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.contact__channel input:focus-visible + .contact__channel-pill {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Consent ---------------- */
.contact__consent {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  cursor: pointer;
  margin-top: 4px;
}
.contact__consent input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex: 0 0 18px;
  cursor: pointer;
}
.contact__consent a {
  color: var(--accent-dark);
  border-bottom: 1px solid var(--accent-soft);
}
.contact__consent a:hover { color: var(--accent); border-color: var(--accent); }

/* Submit + feedback ---------------- */
.contact__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
}
.contact__done,
.contact__error {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.contact__done { background: #dcfce7; color: #15803d; }
.contact__error { background: #fef2f2; color: #b91c1c; }

@media (max-width: 600px) {
  .contact__form { grid-template-columns: 1fr; }
}

.contact__founder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.4;
}
.contact__founder a {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  width: max-content;
  transition: color .15s ease, border-color .15s ease;
}
.contact__founder a:hover { color: var(--accent); border-color: var(--accent); }
.contact__founder span { color: var(--ink-3); font-size: 15px; }

/* ---------- OFFICE / MAP ---------- */
.office {
  padding-top: clamp(48px, 6vh, 80px) !important;
  padding-bottom: clamp(48px, 6vh, 80px) !important;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .office { grid-template-columns: 1fr; }
}
.office .section__eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
.office .section__title {
  grid-column: 1 / -1;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 16px;
}

.office__address {
  background: var(--line-2);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.office__address p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.office__address-title {
  font-size: 16px !important;
  font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: -0.01em;
  margin-bottom: 4px !important;
}
.office__route {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 14px;
}

.office__map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line-2);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  aspect-ratio: 16 / 9;
  min-height: 240px;
}
.office__map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  border: 0;
  filter: saturate(1.05);
}

/* ---------- LEGAL PAGE (privacy.html) ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(60px, 8vh, 100px) var(--pad-x) clamp(60px, 8vh, 100px);
}
.legal__title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
}
.legal__meta {
  margin: 0 0 40px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.legal__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.legal__body h2 {
  margin: 40px 0 14px;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}
.legal__body h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.legal__body p { margin: 0 0 14px; }
.legal__body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal__body li {
  margin-bottom: 6px;
}
.legal__body a {
  color: var(--accent-dark);
  border-bottom: 1px solid var(--accent-soft);
}
.legal__body a:hover { color: var(--accent); border-color: var(--accent); }
.legal__body code {
  background: var(--line-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}
.legal__back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--pad-x) 28px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.footer__brand { font-weight: 600; color: var(--ink); }

.footer__about {
  padding: 18px 0 4px;
  max-width: 720px;
}
.footer__about p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.footer__about strong { color: var(--ink); font-weight: 600; }

.footer__legal-block {
  padding: 14px 0;
}
.footer__legal-name {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.footer__legal-line {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.footer__legal-line strong { color: var(--ink); font-weight: 600; }

.footer__bottom {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-4);
}
.footer__copy { letter-spacing: 0.02em; }
.footer__links { display: flex; gap: 16px; }
.footer__links a {
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.footer__links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- REVEAL ON SCROLL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   MOBILE LAYOUT FIXES (brokers / partners / funds)
   Fix horizontal overflow on phones. Added 2026-09.
   ========================================================= */

/* 1) Office map: keep the aspect-ratio from back-computing a width
      wider than its column when min-height wins on narrow screens. */
.office__map {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 880px) {
  .office__map { min-height: 200px; }
}

/* 2) Commission / GMV counter: scale the big number down so long
      figures (e.g. AED 3,861,066,871) fit the viewport. */
@media (max-width: 600px) {
  .counter__amount {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 8px;
    max-width: 100%;
  }
  .counter__currency { font-size: clamp(20px, 6vw, 36px); }
  .counter__value    { font-size: clamp(30px, 10.5vw, 72px); }
}

/* 3) Broker stories carousel: clip the peeking side cards so they
      don't create horizontal page scroll on phones. */
@media (max-width: 720px) {
  .stories__carousel { overflow: hidden; }
}
