/* ============================================================
   YesWeTrust — Design System
   Apple-premium · dark · glass over calm nature
   ============================================================ */

:root {
  /* surfaces */
  --bg-0: #0d0f0c;
  --bg-1: #12150f;

  /* ink */
  --ink:        #f3f6f3;
  --ink-2:      rgba(243, 246, 243, 0.62);
  --ink-3:      rgba(243, 246, 243, 0.52);   /* T6: 0.40 (3.6:1, fails AA) -> 0.52 (~5.3:1) for muted text; still clearly below --ink-2 */
  --ink-4:      rgba(243, 246, 243, 0.26);

  /* lines + glass */
  --line:       rgba(255, 255, 255, 0.12);
  --line-2:     rgba(255, 255, 255, 0.08);
  /* surfaces are DARK tints (not white film) so boxes stay legible over bright scenes */
  --glass:      rgba(10, 14, 12, 0.62);
  --glass-2:    rgba(16, 21, 18, 0.74);
  --glass-hi:   rgba(255, 255, 255, 0.15);

  /* nature accents (softened — less neon, more sage) */
  --green:      oklch(0.76 0.085 150);
  --green-mid:  oklch(0.58 0.09 152);
  --green-deep: oklch(0.40 0.07 156);
  --sky:        oklch(0.74 0.07 235);
  --sand:       oklch(0.82 0.07 80);

  /* radii */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.05) inset, 0 24px 60px -28px rgba(0,0,0,0.7);
  --shadow-pop:  0 30px 80px -24px rgba(0,0,0,0.85);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1480px;

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* a11y: a visible keyboard-focus ring on every interactive control (was missing).
   No border-radius override here — the outline follows each control's own radius. */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
/* robustness: a long unbroken string wraps instead of overflowing its container */
body { overflow-wrap: break-word; }
/* icon glyphs never clip at sub-pixel on iOS Safari */
.icon-btn svg { overflow: visible; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

/* grain overlay — premium texture, applied app-wide via .grain */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

::selection { background: oklch(0.78 0.13 150 / 0.3); }

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- scrollbars ---------- */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); background-clip: padding-box; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.shell {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(20px, 3.4vw, 48px) 64px;
}

/* full-bleed scene background layer — heavily blurred to a calm tonal wash */
.scene {
  position: fixed;
  inset: -80px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--scene-blur, 6px)) saturate(1.06);
  transition: opacity 0.6s var(--ease);
}
.scene-fade {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(125% 85% at 50% -10%, transparent 46%, rgba(4,7,8,0.45) 100%),
    linear-gradient(180deg, rgba(5,8,9,0.30) 0%, rgba(5,8,9,0.0) 32%, rgba(5,8,9,0.0) 60%, rgba(5,8,9,0.45) 100%);
}

/* ---- real nature scenes (premium calm photography + light, warm scrim) ---- */
.scene-night {
  background-image:
    radial-gradient(125% 88% at 50% 60%, rgba(12,14,11,0.10) 0%, rgba(12,14,11,0.40) 100%),
    linear-gradient(180deg, rgba(14,16,12,0.46) 0%, rgba(14,16,12,0.28) 50%, rgba(14,16,12,0.58) 100%),
    url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=2400&q=80");
}
.scene-grass {
  background-image:
    linear-gradient(180deg, rgba(12,16,11,0.42) 0%, rgba(12,16,11,0.26) 42%, rgba(12,16,11,0.56) 100%),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=2400&q=80");
}
.scene-ocean {
  background-image:
    linear-gradient(180deg, rgba(11,15,16,0.44) 0%, rgba(11,15,16,0.28) 42%, rgba(11,15,16,0.56) 100%),
    url("https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=2400&q=80");
}
.scene-dawn {
  background-image:
    linear-gradient(180deg, rgba(15,15,13,0.44) 0%, rgba(15,15,13,0.28) 42%, rgba(15,15,13,0.58) 100%),
    url("https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=2400&q=80");
}

/* ============================================================
   GLASS PRIMITIVES
   ============================================================ */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: var(--shadow-card);
}
.glass-soft {
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

/* ============================================================
   BUTTONS / PILLS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-white { background: #fff; color: #0a0c0b; }
.btn-white:hover { background: #f0f2ef; }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--glass-2); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 450; letter-spacing: -0.01em;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--line-2);
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--ink); background: var(--glass-2); }
.chip.is-active {
  background: #fff; color: #0a0c0b; border-color: #fff;
}
.chip-sm { height: 30px; padding: 0 13px; font-size: 12.5px; }
/* EVENTS-01: scrim strip behind the Events type filters so the chips read over the scene */
.ev-typefilter { align-items: center; width: fit-content; max-width: 100%;
  background: rgba(10,14,12,0.58); border: 1px solid var(--line-2); border-radius: 16px; padding: 7px 11px; }
.ev-typefilter .chip { color: var(--ink); background: var(--glass-2); }

/* ============================================================
   TOP NAV
   ============================================================ */
.topbar {
  position: relative; z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: clamp(28px, 5vh, 60px);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, oklch(0.5 0.12 150), oklch(0.32 0.09 156));
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700; font-size: 17px; color: #fff;
  font-style: italic;
}
.brand-logo {
  height: 34px; width: auto; display: block;
  opacity: 0.96;
}

.nav {
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: var(--shadow-card);
}
.nav-item {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 450; letter-spacing: -0.01em;
  color: var(--ink-2);
  background: transparent; border: none;
  transition: color 0.2s, background 0.2s var(--ease);
  white-space: nowrap;
}
.nav-item:hover { color: var(--ink); }
.nav-item.is-active { background: #fff; color: #0a0c0b; font-weight: 500; }
.nav-item svg { width: 16px; height: 16px; opacity: 0.85; }

.topbar-right {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--glass-2); }
.icon-btn svg { width: 18px; height: 18px; }

.me {
  display: flex; align-items: center; gap: 11px;
  padding: 4px 6px 4px 10px; border-radius: 999px;
  background: transparent; border: none; color: inherit;
  transition: background 0.2s var(--ease);
}
.me:hover { background: var(--glass); cursor: pointer; }

/* founder hub — company cards (compact grid) */
.cocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.cocard {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; text-align: left;
  padding: 0; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--line-2);
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.cocard:hover { transform: translateY(-3px); border-color: var(--line); background: var(--glass-2); }
.cocard-thumb {
  width: 100%; height: 118px; border-radius: 0; overflow: hidden;
  border: none; border-bottom: 1px solid var(--line); display: grid; place-items: center;
}
.cocard-thumb span { font-weight: 700; letter-spacing: 0.05em; font-size: 18px; opacity: 0.92; }
.cocard-body { flex: 1; padding: 16px 18px 18px; min-width: 0; }
.cocard-go { display: none; }
/* T2: tablet band still shows the desktop top-nav but it overflows — condense it
   (avatar only, drop the disabled "coming soon" items) so the header fits. */
@media (max-width: 880px) and (min-width: 721px) {
  .topbar .me > div:not(.avatar) { display: none; }
  .topbar .nav-item:disabled { display: none; }
  .topbar .nav { gap: 0; }
}
@media (max-width: 720px) {
  .cocards { grid-template-columns: 1fr; }
}
.me-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; white-space: nowrap; }
.me-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.15; }

/* role switch */
.roleswitch {
  display: inline-flex; padding: 4px;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(20px);
}
.roleswitch button {
  height: 32px; padding: 0 15px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  background: transparent; border: none; color: var(--ink-3);
  transition: all 0.22s var(--ease);
}
.roleswitch button.on { background: var(--glass-hi); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset; }

/* settings dropdown */
.icon-btn.is-on { color: var(--ink); background: var(--glass-2); }
.menu {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 248px; padding: 12px; z-index: 41;
  background: rgba(11,15,14,0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  box-shadow: var(--shadow-pop);
  animation: rise 0.22s var(--ease) both;
}
.menu .roleswitch { display: flex; width: 100%; background: rgba(255,255,255,0.04); }
.menu .roleswitch button { flex: 1; height: 36px; }
.menu-label { font-size: 12px; color: var(--ink-3); margin: 2px 2px 9px; }
.menu-sep { height: 1px; background: var(--line-2); margin: 12px 4px; }
.menu-item {
  display: block; width: 100%; text-align: left;
  height: 38px; padding: 0 10px; border-radius: 11px;
  background: transparent; border: none; color: var(--ink-2); font-size: 14px;
  transition: all 0.16s var(--ease);
}
.menu-item:hover { background: var(--glass-2); color: var(--ink); }

/* settings: top action row (mobile preview) */
.menu-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 42px; padding: 8px 10px; border-radius: 11px; margin-bottom: 4px;
  background: var(--glass-2); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 500;
  transition: background 0.16s var(--ease);
}
.menu-row:hover { background: var(--glass-hi); }
.menu-go { color: var(--ink-3); display: inline-flex; }

/* mobile preview frame */
.mframe-ov {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, rgba(20,28,24,0.92), rgba(6,8,7,0.95));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade 0.22s var(--ease) both;
}
.mframe-label { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); color: var(--ink-2); font-size: 13px; letter-spacing: 0.03em; }
.mframe-dev {
  position: relative; width: 393px; max-width: calc(100vw - 28px);
  height: min(800px, calc(100vh - 88px)); flex: none;
  border-radius: 46px; padding: 11px; background: #000;
  box-shadow: 0 0 0 2px #2a2f2c, 0 40px 90px -30px rgba(0,0,0,0.9);
  animation: rise 0.28s var(--ease) both;
}
.mframe-dev::after {
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 128px; height: 30px; background: #000; border-radius: 0 0 18px 18px; z-index: 3;
}
.mframe-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg-0); }
.mframe-screen iframe { width: 100%; height: 100%; border: 0; display: block; }

/* background picker swatches */
.bg-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bg-sw {
  aspect-ratio: 1; border-radius: 8px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line); padding: 0; cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.bg-sw:hover { transform: translateY(-1px); }
.bg-sw.on { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px #fff; }

/* segmented control (map style) */
.seg { display: flex; gap: 6px; }
.seg-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: all 0.16s var(--ease);
}
.seg-btn:hover { color: var(--ink-2); background: var(--glass-2); }
.seg-btn.on { background: var(--glass-hi); color: var(--ink); border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset; }

/* blur range slider */
.blur-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 99px; margin: 4px 0 2px;
  background: rgba(255,255,255,0.14); cursor: pointer;
}
.blur-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 999px;
  background: #fff; border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.blur-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 999px;
  background: #fff; border: none; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* role-specific top-bar action pill */
.topcta {
  display: inline-flex; align-items: center; gap: 11px;
  height: 44px; padding: 4px 18px 4px 6px;
  border-radius: 999px;
  background: #0c100e; border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}
.topcta:hover { background: #131815; }
.topcta:active { transform: scale(0.98); }
.ava-stack { display: flex; }
.ava-stack > div { box-shadow: 0 0 0 2px #0c100e !important; }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  position: relative;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; letter-spacing: -0.02em;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 6px 18px -8px rgba(0,0,0,0.7);
}
.avatar span { position: relative; z-index: 2; mix-blend-mode: plus-lighter; opacity: 0.92; }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.eyebrow {
  font-size: 14px; color: var(--ink-3); font-weight: 450; letter-spacing: -0.01em;
  margin: 0 0 10px;
}

/* hero copy over photography — brighter + scrim for legibility */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1;
  left: -40px; right: -40px; top: -30px; bottom: -30px;
  background: radial-gradient(80% 120% at 0% 30%, rgba(2,5,6,0.34), transparent 72%);
  pointer-events: none;
}
.hero-copy .eyebrow {
  color: rgba(240,244,240,0.74);
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12.5px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero-copy .display { text-shadow: 0 2px 20px rgba(0,0,0,0.34); }
.hero-copy .hero-sub {
  font-size: 15px; margin-top: 12px;
  color: rgba(240,244,240,0.66);
  text-shadow: 0 1px 9px rgba(0,0,0,0.4);
}
.display {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 600;
  margin: 0;
}
.h1 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; font-weight: 600; margin: 0; line-height: 1.02; }
.h2 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.label { font-size: 11px; color: rgba(243,246,243,0.55); letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; }
.mono { font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace; }

.ask {
  display: flex; align-items: center; gap: 10px;
  height: 46px; width: min(360px, 60vw); padding: 0 18px;
  border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--ink-3); font-size: 14.5px;
  backdrop-filter: blur(20px);
  transition: all 0.2s var(--ease);
}
.ask:hover { background: var(--glass-2); color: var(--ink-2); }
.ask svg { width: 16px; height: 16px; }
.ask input::placeholder { color: var(--ink-3); opacity: 1; }

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.5); opacity: 0.3; }
}
.rise { animation: rise 0.6s var(--ease) both; }
.page-enter { animation: fade 0.4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; }
}

/* ============================================================
   WORLD MAP
   ============================================================ */
.mapwrap {
  position: relative;
  width: 100%;
  overflow: visible;
}
.mapsvg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.map-pulse { animation: map-pulse 2.6s var(--ease) infinite; }
@keyframes map-pulse {
  0%   { transform: scale(1); opacity: 0.55; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}
.map-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 16px));
  pointer-events: none;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(10,14,13,0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-pop);
  white-space: nowrap;
  z-index: 5;
  animation: fade 0.18s var(--ease) both;
}
.map-tip-av {
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset;
}
.map-tip-av span { mix-blend-mode: plus-lighter; opacity: 0.92; }
.map-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
  background: rgba(10,14,13,0.72);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.map-tip-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.map-tip-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.map-tip-city { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* ============================================================
   ACTIVITY
   ============================================================ */
.actstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.actcols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; margin-top: 40px; }
.actlist { display: flex; flex-direction: column; gap: 8px; }
.actrow {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(10,14,12,0.55); border: 1px solid var(--line-2);
  color: var(--ink);
  transition: background 0.18s var(--ease), border-color 0.18s, transform 0.18s var(--ease);
}
.actrow:hover { background: rgba(16,21,18,0.7); border-color: var(--line); transform: translateX(2px); }
.actrow-main { flex: 1; min-width: 0; }
.actrow-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.actrow-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actrow-when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.istat-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
}
.ip-green { background: oklch(0.78 0.085 150 / 0.16); color: var(--green); border: 1px solid oklch(0.78 0.085 150 / 0.3); }
.ip-amber { background: oklch(0.82 0.07 80 / 0.16); color: oklch(0.86 0.09 80); border: 1px solid oklch(0.82 0.07 80 / 0.3); }
.ip-sky   { background: oklch(0.74 0.07 235 / 0.16); color: oklch(0.80 0.06 235); border: 1px solid oklch(0.74 0.07 235 / 0.3); }
.ip-red   { background: oklch(0.62 0.12 25 / 0.16); color: oklch(0.74 0.13 25); border: 1px solid oklch(0.62 0.12 25 / 0.3); }
.ip-white { background: rgba(255,255,255,0.12); color: var(--ink); border: 1px solid var(--line); }
.act-empty { padding: 22px; text-align: center; color: var(--ink-3); font-size: 14px;
  border: 1px dashed var(--line); border-radius: var(--r-sm); }

.feed { display: flex; flex-direction: column; }
.feed-item {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 4px; border: none; border-bottom: 1px solid var(--line-2);
  background: transparent;
  transition: padding-left 0.18s var(--ease);
}
.feed-item:hover { padding-left: 10px; }
.feed-item:last-child { border-bottom: none; }
.feed-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.fi-green { background: oklch(0.78 0.085 150 / 0.16); color: var(--green); }
.fi-amber { background: oklch(0.82 0.07 80 / 0.16); color: oklch(0.86 0.09 80); }
.fi-muted { background: var(--glass-2); color: var(--ink-2); }
.feed-text { flex: 1; font-size: 14px; color: var(--ink-2); }
.feed-text b { color: var(--ink); font-weight: 600; }
.feed-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

@media (max-width: 1000px) {
  .actstats { grid-template-columns: repeat(2, 1fr); }
  .actcols { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   TRUST FLAGS
   ============================================================ */
.flagrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fbadge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid; white-space: nowrap;
}
.fbadge svg { flex: none; }
.fbadge-ico { width: 26px; padding: 0; justify-content: center; }

/* save / bookmark on profile cards */
.savebtn {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(10,12,11,0.34); border: 1px solid var(--line); color: var(--ink-2);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.savebtn svg { width: 16px; height: 16px; }
.savebtn:hover { color: var(--ink); background: rgba(10,12,11,0.55); }
.savebtn.on { color: #0a0c0b; background: var(--green); border-color: transparent; }
.savebtn.on svg path { fill: currentColor; }
.savebtn:active { transform: scale(0.88); }

/* ============================================================
   ADMIN CONSOLE
   ============================================================ */
.adm-kpis { grid-template-columns: repeat(6, 1fr); }
.adm-delta { font-size: 12.5px; color: var(--green); margin-top: 10px; }
.adm-count {
  display: inline-grid; place-items: center; margin-left: 7px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: oklch(0.82 0.07 80 / 0.25); color: oklch(0.88 0.09 80);
  font-size: 11px; font-weight: 700;
}
.funnel { display: grid; gap: 13px; }
.funnel-row { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 14px; }
.funnel-lbl { font-size: 13.5px; color: var(--ink-2); }
.funnel-bar { height: 22px; border-radius: 7px; background: rgba(255,255,255,0.06); overflow: hidden; }
.funnel-bar > span { display: block; height: 100%; border-radius: 7px;
  background: linear-gradient(90deg, oklch(0.45 0.08 155), oklch(0.72 0.11 150)); }
.funnel-n { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.admtable { padding: 6px 0; overflow: hidden; }
.admtr {
  display: grid; grid-template-columns: 1.3fr 1.1fr 0.9fr 1.2fr 70px;
  align-items: center; gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.admtr:last-child { border-bottom: none; }
.admtr-head {
  font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500;
  padding-top: 16px; padding-bottom: 10px;
}
.admtd-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admtd-who b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.admtd-who em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.admtd-note { font-size: 13px; color: var(--ink-2); }
.admtd-when { font-size: 12.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }

@media (max-width: 1180px) { .adm-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .admtr { grid-template-columns: 1fr 1fr; }
  .admtd-note, .admtd-when, .admtr-head { display: none; }
}

/* ============================================================
   UPLOAD TILES (founder hub)
   ============================================================ */
.upgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.uptile {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 20px; min-height: 178px;
  border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--line-2);
}
.uptile.is-empty { background: rgba(10,14,12,0.35); border-style: dashed; border-color: var(--line); }
.uptile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.uptile-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,0.07); color: var(--ink-2);
}
.uptile-state {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-4);
}
.uptile-state.ok { color: var(--green); }
.uptile-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.uptile-meta { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 16px; line-height: 1.45; text-wrap: pretty; }
@media (max-width: 1080px) { .upgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .upgrid { grid-template-columns: 1fr; } }

/* ============================================================
   ONBOARDING / SIGN-UP
   ============================================================ */
.ob-wrap { max-width: 720px; margin: 0 auto; padding-top: 2vh; }
.ob-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(22px, 4.5vh, 48px); }
.ob-card { padding: clamp(26px, 3.4vw, 40px); border-radius: var(--r-xl); }
.ob-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ob-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 24px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.045); border: 1px solid var(--line-2); color: var(--ink);
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s;
}
.ob-side:hover { transform: translateY(-3px); background: rgba(255,255,255,0.085); border-color: var(--line); }
.ob-side .uptile-ico { margin-bottom: 12px; }
.ob-side-t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ob-side-s { font-size: 13px; color: var(--ink-3); line-height: 1.45; text-wrap: pretty; }
@media (max-width: 560px) { .ob-pick { grid-template-columns: 1fr; } }

.ob-steps { display: flex; gap: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.ob-step {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 13px 0 6px; border-radius: 999px;
  background: transparent; border: none; color: var(--ink-3); font-size: 13px; font-weight: 500;
  transition: all 0.18s var(--ease);
}
.ob-step:hover { color: var(--ink-2); }
.ob-step-n {
  display: grid; place-items: center; width: 23px; height: 23px; border-radius: 999px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--line-2);
  font-size: 11.5px; font-weight: 600;
}
.ob-step.on { color: var(--ink); background: rgba(255,255,255,0.07); }
.ob-step.on .ob-step-n { background: #fff; color: #0a0c0b; border-color: #fff; }
.ob-step.done { color: var(--ink-2); }
.ob-step.done .ob-step-n { background: oklch(0.78 0.085 150 / 0.2); color: var(--green); border-color: oklch(0.78 0.085 150 / 0.35); }

.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 560px) { .ob-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-lbl { font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.02em; }
.field-in {
  height: 46px; padding: 0 15px; border-radius: 12px;
  background: rgba(255,255,255,0.055); border: 1px solid var(--line-2);
  color: var(--ink); font-size: 14.5px; font-family: inherit; letter-spacing: -0.01em;
  outline: none; transition: border-color 0.18s, background 0.18s;
}
.field-in:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
.field-hint { font-size: 12px; color: var(--ink-4); line-height: 1.45; }
.ob-note { font-size: 13.5px; color: var(--ink-3); margin: 0 0 6px; line-height: 1.5; text-wrap: pretty; }

.dropzone {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: var(--r-sm);
  background: rgba(10,14,12,0.35); border: 1px dashed var(--line);
}
.dropzone.is-filled { border-style: solid; border-color: var(--line-2); background: rgba(255,255,255,0.05); }
.dz-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.dz-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.flagapply {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: var(--r-sm); cursor: pointer;
  background: rgba(255,255,255,0.035); border: 1px solid var(--line-2);
  transition: background 0.18s, border-color 0.18s;
}
.flagapply:hover { background: rgba(255,255,255,0.06); }
.flagapply.on { border-color: oklch(0.78 0.085 150 / 0.45); background: oklch(0.78 0.085 150 / 0.07); }
.obcheck {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; flex: none;
  border: 1px solid var(--line); color: #0a0c0b; background: transparent;
  transition: all 0.18s var(--ease);
}
.obcheck.on { background: var(--green); border-color: var(--green); }

.ob-review { border-radius: var(--r-sm); border: 1px solid var(--line-2); padding: 6px 18px; background: rgba(255,255,255,0.03); }
.ob-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2);
}
.ob-done-ico {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 999px;
  background: oklch(0.78 0.085 150 / 0.16); color: var(--green);
  border: 1px solid oklch(0.78 0.085 150 / 0.35);
}

/* flag badges inside pcards sit above the click layer */
.pcard .flagrow { position: relative; }

/* event date block */
.ev-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
  width: 86px; padding: 8px 6px; border-radius: 12px;
  background: oklch(0.82 0.07 80 / 0.10); border: 1px solid oklch(0.82 0.07 80 / 0.25);
}
.ev-date-d { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: oklch(0.88 0.09 80); white-space: nowrap; }
.ev-date-y { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* event list rows */
.evrow {
  display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(10,14,12,0.55); border: 1px solid var(--line-2); color: var(--ink);
  transition: background 0.18s var(--ease), border-color 0.18s, transform 0.18s var(--ease);
}
.evrow:hover { background: rgba(16,21,18,0.7); border-color: var(--line); transform: translateX(2px); }
.evrow-main { flex: 1; min-width: 0; }
.evrow-name { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.evrow-meta { display: flex; align-items: center; gap: 9px; margin-top: 6px; flex-wrap: wrap; }
.evrow-loc { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evrow-blurb { font-size: 13px; color: var(--ink-2); margin-top: 7px; line-height: 1.45; text-wrap: pretty; }
.evrow-act { flex: none; }

/* always-visible mini map cards (events) */
.map-anchor {
  position: absolute; width: 8px; height: 8px; border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px oklch(0.82 0.07 80 / 0.22), 0 0 12px oklch(0.82 0.07 80 / 0.5);
  pointer-events: none; z-index: 3;
}
.map-anchor-btn { pointer-events: auto; border: none; padding: 0; cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s; }
.map-anchor-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 999px; }   /* T9: 44x44 invisible touch target around the 12px pin */
.map-anchor-btn:hover, .map-anchor-btn.is-open { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 4px oklch(0.82 0.07 80 / 0.3), 0 0 16px oklch(0.82 0.07 80 / 0.7); }
.map-card {
  position: absolute; z-index: 4;
  transform: translate(-50%, calc(-100% - 13px));
  display: flex; flex-direction: column; gap: 1px; align-items: flex-start; text-align: left;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(10,14,13,0.78); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px -16px rgba(0,0,0,0.8);
  color: var(--ink); white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.map-card:hover { border-color: oklch(0.82 0.07 80 / 0.5); background: rgba(14,18,16,0.88); transform: translate(-50%, calc(-100% - 16px)); }
.map-card::after {
  content: ""; position: absolute; left: var(--stem, 50%); bottom: -4.5px;
  width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg);
  background: rgba(10,14,13,0.78);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.map-card.below {
  transform: translate(-50%, 13px);
}
.map-card.below:hover { transform: translate(-50%, 16px); }
.map-card.below::after {
  bottom: auto; top: -4.5px;
  border: none; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.map-card.is-open { z-index: 6; }
.map-card-t { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }
.map-card-s { font-size: 11px; color: oklch(0.88 0.09 80); }

/* ticket rows (event detail) */
.tixrow {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  padding: 13px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.035); border: 1px solid var(--line-2); color: var(--ink);
  transition: background 0.18s var(--ease), border-color 0.18s;
}
.tixrow:hover { background: rgba(255,255,255,0.06); }
.tixrow.on { border-color: oklch(0.82 0.07 80 / 0.5); background: oklch(0.82 0.07 80 / 0.08); }
.tix-price { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.tixrow.on .tix-price { color: oklch(0.88 0.09 80); }

/* ============================================================
   PROFILE COMPLETENESS / EMPTY STATES
   ============================================================ */
.checklist { margin-top: 28px; padding: clamp(22px,3vw,32px); border-radius: var(--r-lg); }
.checklist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.checklist-sub { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; max-width: 420px; line-height: 1.5; text-wrap: pretty; }
.checklist-prog { text-align: right; flex: none; }
.checklist-pct { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--green); }
.checklist-pct span { font-size: 18px; }
.checklist-frac { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.checklist-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .checklist-items { grid-template-columns: 1fr; } }
.chk-item {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.035); border: 1px solid var(--line-2); color: var(--ink);
  transition: background 0.18s var(--ease), border-color 0.18s;
}
.chk-item:not(.done):hover { background: rgba(255,255,255,0.06); border-color: var(--line); }
.chk-item.done { opacity: 0.62; }
.chk-box {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; flex: none;
  border: 1px solid var(--line); color: #0a0c0b; background: transparent;
}
.chk-box.on { background: var(--green); border-color: var(--green); }
.chk-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,0.06); color: var(--ink-2); }
.chk-label { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.chk-meta { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.chk-item.done .chk-label { text-decoration: line-through; text-decoration-color: var(--ink-4); }
.chk-cta { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--green); }

.emptyblock {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 40px 28px; border-radius: var(--r-md);
  border: 1px dashed var(--line); background: rgba(10,14,12,0.3);
}
.emptyblock-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,0.06); color: var(--ink-2); margin-bottom: 4px; }
.emptyblock-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.emptyblock-body { font-size: 13.5px; color: var(--ink-3); max-width: 380px; line-height: 1.5; text-wrap: pretty; }
.empty-inline { font-size: 15px; color: var(--ink-3); margin: 0; font-style: italic; }
.empty-inline .impact-link { font-style: normal; cursor: pointer; }

/* background scene picker (profile pages) */
.bg-swatches-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bg-swatches-row .bg-sw {
  width: 54px; aspect-ratio: 1; border-radius: 10px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line); padding: 0; cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.bg-swatches-row .bg-sw:hover { transform: translateY(-2px); }
.bg-swatches-row .bg-sw.on { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px #fff; }
.co-bgpick { margin-bottom: 26px; padding: 16px 18px; border-radius: var(--r-md); }
.co-bgpick-hint { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* founder-pitch full-page player */
.pitch-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 56px);
  background: rgba(4,6,5,0.82);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  animation: fade 0.22s var(--ease) both;
}
.pitch-modal-stage { width: min(1040px, 100%); animation: rise 0.28s var(--ease) both; }
.pitch-modal-video {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.pitch-modal-video .play > div { width: 84px; height: 84px; }
.pitch-modal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2);
}
.pitch-modal-close {
  position: fixed; top: 22px; right: 22px; z-index: 2;
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(20px); transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.pitch-modal-close:hover { background: var(--glass-hi); transform: scale(1.05); }
@media (max-width: 560px) {
  .pitch-modal-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .pitch-modal-bar .btn { width: 100%; }
}

/* add-to-calendar menu */
.calmenu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 41;
  padding: 8px; border-radius: 14px;
  background: rgba(11,15,14,0.92); border: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: var(--shadow-pop); animation: rise 0.2s var(--ease) both;
}

/* admin activity — monthly bar charts + most-active leaderboard */
.barchart { display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 14px); height: 180px; padding-top: 8px; }
.barcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barcol-stack { width: 100%; max-width: 38px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; }
.barseg { width: 100%; transition: height 0.5s var(--ease); }
.barseg.s0 { background: linear-gradient(180deg, oklch(0.72 0.11 150), oklch(0.5 0.09 152)); }
.barseg.s1 { background: oklch(0.82 0.07 80 / 0.75); }
.barcol-lbl { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.barcol-val { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chart-legend { display: flex; gap: 18px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.lg-sq { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lead-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; flex: none;
  font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,0.07); color: var(--ink-2); }
.lead-rank.top { background: oklch(0.82 0.07 80 / 0.2); color: oklch(0.88 0.09 80); }
.lead-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 7px; }
.lead-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, oklch(0.5 0.09 152), oklch(0.78 0.12 150)); }

/* ============================================================
   HOME v2 · map-only minimal
   ============================================================ */
.homev2 { position: relative; }
/* two-colour legend */
.map-legend {
  position: absolute; top: 14px; right: 6px; z-index: 5;
  display: flex; gap: 16px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 12.5px; color: var(--ink-2);
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.homev2-map { margin: -8px calc(-1 * clamp(20px, 3.4vw, 48px)) 0; }
.homev2-overlay {
  position: absolute; left: calc(-1 * clamp(20px, 3.4vw, 48px)); right: 0; bottom: 0;
  z-index: 4; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: 0 4px 18px 8px;
}
.homev2-left { text-align: left; pointer-events: auto; }
.homev2-tag {
  margin: 0 0 24px;
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 400; letter-spacing: -0.04em; line-height: 0.94;
  color: var(--ink);
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.homev2-left .btn-lg { gap: 10px; }
.map-draghint {
  display: none; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 7px 14px; border-radius: 999px; pointer-events: none;
  background: rgba(10,14,13,0.6); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
  animation: fade 0.6s var(--ease) both;
}
.minichart-card {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 26px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: var(--shadow-card);
}
.mc-stat { text-align: left; }
.mc-num { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.mc-lbl { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; margin-top: 6px; }
.mc-spark { width: 110px; opacity: 0.95; }
.mc-divider { width: 1px; align-self: stretch; background: var(--line); margin: 2px 0; }

@media (max-width: 640px) {
  .mc-spark { display: none; }
  .minichart-card { gap: 18px; padding: 14px 20px; }
  .homev2-overlay { gap: 18px; }
}
.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 14px;
}
.pcard {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px 22px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(14,19,16,0.66), rgba(10,14,12,0.6));
  border: 1px solid var(--line-2);
  text-align: center;
  cursor: pointer;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s;
  overflow: hidden;
}
.pcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, oklch(0.5 0.12 150 / 0.16), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(20,27,22,0.78), rgba(12,17,14,0.72));
}
.pcard:hover::before { opacity: 1; }
.pcard-name { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; margin-top: 14px; position: relative; }
.pcard-logo {
  width: 92px; height: 92px; border-radius: 22px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 8px 22px -10px rgba(0,0,0,0.7);
}
.pcard-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; position: relative; }
.pcard .btn { margin-top: 16px; position: relative; }
/* intro status colours */
.istat-requested {
  background: oklch(0.82 0.07 80 / 0.16); color: oklch(0.86 0.09 80);
  border: 1px solid oklch(0.82 0.07 80 / 0.30);
}
.istat-introduced {
  background: oklch(0.78 0.085 150 / 0.18); color: var(--green);
  border: 1px solid oklch(0.78 0.085 150 / 0.32);
}
.istat-requested:disabled, .istat-introduced:disabled { opacity: 1; }
.pcard-score {
  position: absolute; top: 12px; right: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-2);
  background: none; border: none; padding: 0;
  z-index: 2;
}

/* why-this-is-a-match panel */
.whymatch {
  margin-top: 28px;
  display: flex; align-items: center; gap: 28px;
  padding: 24px 28px; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, oklch(0.55 0.1 150 / 0.16), transparent 62%),
    var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
}
.whymatch-score { text-align: center; flex: none; padding-right: 24px; border-right: 1px solid var(--line); }
.whymatch-num { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--green); }
.whymatch-num span { font-size: 22px; }
.whymatch-cap { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.whymatch-body { flex: 1; }
.whymatch-lead { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.5; text-wrap: pretty; }

@media (max-width: 760px) {
  .whymatch { flex-direction: column; align-items: stretch; gap: 18px; }
  .whymatch-score { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 18px; display: flex; align-items: baseline; gap: 10px; justify-content: center; }
}

/* ============================================================
   STAT TILES / PANELS
   ============================================================ */
.statrow {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 1.5fr 1.15fr;
  gap: 14px;
}
.tile {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
}
.tile-num { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.tile-lbl { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; }

.kpitiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-2);
}
.kpitile {
  padding: 24px 22px 26px;
  border-right: 1px dashed var(--line);
  background: rgba(10,14,12,0.5);
  backdrop-filter: blur(20px);
}
.kpitile:last-child { border-right: none; }
/* 8-tile financial grid: 2 rows of 4 */
.kpitiles-8 .kpitile { border-bottom: 1px dashed var(--line); }
.kpitiles-8 .kpitile:nth-child(4n) { border-right: none; }
.kpitiles-8 .kpitile:nth-last-child(-n+4) { border-bottom: none; }
.kpitile-top { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.kpitile-mid { font-size: 15px; color: var(--green); font-weight: 500; margin-top: 18px; }
.kpitile-lbl { font-size: 11px; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; }

/* attribute tiles (company hero) */
.attrtiles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8,12,11,0.55);
  backdrop-filter: blur(22px);
}
.attr {
  padding: 24px 22px 22px;
  border-right: 1px dashed var(--line);
  min-height: 116px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.attr:last-child { border-right: none; }
.attr-val { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.attr-lbl { font-size: 11px; color: rgba(243,246,243,0.6); margin-top: auto; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; }

/* the pitch panel */
.pitch {
  width: 380px; flex: none;
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20,30,24,0.55), rgba(10,16,13,0.5));
  border: 1px solid var(--line);
  backdrop-filter: blur(30px) saturate(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  box-shadow: var(--shadow-pop);
}
.pitch-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}
.pitch-row:last-of-type { border-bottom: none; }
.pitch-row .k { color: var(--ink-2); }   /* PROFILE-01: more readable label contrast */
.pitch-row .v { font-weight: 600; letter-spacing: -0.01em; }

/* vision cards */
.visiongrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vcard {
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
}
.vtag {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 13px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  background: oklch(0.78 0.13 150 / 0.16); color: var(--green);
  margin-bottom: 16px;
}
.vcard h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.vcard p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* meter */
.meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 14px; }
.meter > span { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, oklch(0.6 0.12 150), oklch(0.82 0.14 150)); }

/* section header */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 22px; }

/* impact score band */
.impact-band {
  margin-top: 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 30px 34px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
}
.impact-left { display: flex; align-items: center; gap: 26px; }
/* compact impact badge (no ESG breakdown) */
.impact-band-compact { display: flex; grid-template-columns: none; }
.impact-band-compact .impact-left { gap: 24px; }
.co-info .impact-band { margin-top: 24px; width: 100%; }

/* data room */
.dataroom { display: grid; gap: 8px; }
.docrow {
  display: grid; grid-template-columns: 38px 1fr auto 38px; align-items: center;
  gap: 12px; padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(10,14,12,0.5);
  border: 1px solid var(--line-2);
  transition: background 0.18s var(--ease), border-color 0.18s;
}
.docrow:hover { background: rgba(16,21,18,0.66); border-color: var(--line); }
.doc-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05); color: var(--ink-2); }
.doc-name { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.doc-meta { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.doc-act { display: grid; place-items: center; color: var(--ink-3); }
/* when the action is the owner's remove button, strip default button chrome */
button.doc-act { appearance: none; -webkit-appearance: none; background: none; border: 0;
  padding: 0; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font: inherit;
  transition: background 0.15s, color 0.15s; }
button.doc-act:hover { color: var(--ink-1); background: var(--glass-2); }
.docrow.is-locked { opacity: 0.62; }
.docrow.is-locked .doc-act { color: var(--ink-3); }
.impact-num { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; line-height: 1; }
.impact-num span { font-size: 20px; color: var(--ink-3); font-weight: 500; }
.impact-note { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; max-width: 360px; line-height: 1.5; }
.impact-link { color: var(--green); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.impact-dims { display: grid; gap: 17px; }
.dim-head { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.dim-val { color: var(--ink); font-weight: 600; }
.dim-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.dim-bar > span { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, oklch(0.55 0.11 152), oklch(0.82 0.14 150)); }

/* pitch-deck rail */
.deckrail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.deckslide {
  flex: 0 0 320px; aspect-ratio: 16/9; border-radius: var(--r-md);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  scroll-snap-align: start; cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.deckslide:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.22); }
.deckslide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.55)); }
.deckslide-no { position: absolute; top: 16px; left: 22px; z-index: 2;
  font-size: 11.5px; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); }
.deckslide-title { position: relative; z-index: 2; font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; text-wrap: pretty; }

/* founder video pitch */
.videopitch {
  position: relative; height: 300px; border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: flex-end;
}
.videopitch::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 60% at 50% 42%, transparent, rgba(0,0,0,0.4)); }
.videopitch .play { z-index: 2; }
.videopitch .play > div { width: 60px; height: 60px; }
.videopitch-meta { position: relative; z-index: 3; padding: 26px; }

/* line chart card */
.chartcard { position: relative; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* company sibling-company tabs, on their own full-width row under the Go Back bar */
.pagebackbar-tabs { margin: 2px 0 12px; }
.pagebackbar-tabs:empty { display: none; }
.pagebackbar-tabs .chip-row { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; min-width: 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pagebackbar-tabs .chip-row::-webkit-scrollbar { display: none; }

/* deck embed */
.deck {
  position: relative;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
}
.deck .deck-cta {
  position: absolute; bottom: 16px; right: 16px;
}

/* small media thumb */
.thumb {
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play > div {
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  display: grid; place-items: center;
}

/* profile hero — content-height (no forced full-screen gap) */
.profile-hero {
  position: relative;
  display: flex; flex-direction: column;
  gap: 26px;
  padding-bottom: 4px;
}

/* company hero — banner + logo header (content-height, no dead space) */
.co-hero { margin-top: 6px; }

/* ---- founder: highlighted PURPOSE ---- */
.purpose {
  margin-top: 44px;
  position: relative;
  padding: 30px clamp(24px, 3.5vw, 44px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, oklch(0.5 0.12 150 / 0.20), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  overflow: hidden;
}
.purpose::before {
  content: "\201C";
  position: absolute; top: -34px; left: 16px;
  font-size: 140px; line-height: 1; color: rgba(255,255,255,0.05);
  font-family: Georgia, "Times New Roman", serif;
}
.purpose-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.purpose-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green);
  box-shadow: 0 0 0 4px oklch(0.78 0.13 150 / 0.18); }
.purpose-quote {
  position: relative; z-index: 1;
  margin: 0; max-width: 820px;
  font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; letter-spacing: -0.012em;
  font-weight: 500; color: var(--ink); text-wrap: pretty;
}
.purpose-by { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* two-column block */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* media strip */
.mediastrip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  grid-auto-rows: 200px;
}
.mediaslot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }

/* journey timeline */
.timeline { display: grid; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 84px 24px 1fr; gap: 0; align-items: start;
  padding-bottom: 26px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 1px; font-variant-numeric: tabular-nums; }
.tl-dot { position: relative; justify-self: center; width: 11px; height: 11px; margin-top: 5px;
  border-radius: 999px; background: var(--green);
  box-shadow: 0 0 0 4px rgba(8,12,11,1), 0 0 0 5px var(--line); }
.tl-item:not(:last-child) .tl-dot::after {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 1px; height: calc(100% + 26px); background: var(--line);
}
.tl-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tl-text { font-size: 14px; color: var(--ink-2); margin: 5px 0 0; line-height: 1.5; max-width: 620px; text-wrap: pretty; }
.co-banner {
  position: relative;
  width: 100%;
  height: clamp(210px, 30vh, 320px);
  margin-bottom: 26px;
}
.co-logo {
  position: absolute; left: 22px; bottom: 18px; z-index: 4;
  width: 84px; height: 84px; border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(7,11,10,0.65), 0 16px 34px -12px rgba(0,0,0,0.75);
}
.co-cols {
  display: flex; gap: 28px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap;
}
.co-info { flex: 1 1 540px; min-width: 320px; }
.videopitch image-slot { z-index: 0; }

/* editable-image upload control (logo / banner / photo) — clean glass badge, bottom-right */
.editable-img { position: relative; }
.uploadbtn {
  position: absolute; right: 12px; bottom: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 999px;
  background: rgba(10,13,12,0.74); color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  cursor: pointer; transition: background 0.16s var(--ease), transform 0.12s var(--ease);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.6);
}
.uploadbtn svg { flex: none; }
.uploadbtn:hover { background: rgba(24,28,26,0.9); }
.uploadbtn:active { transform: scale(0.96); }
.uploadbtn.is-err { border-color: var(--bad,#e0716b); color: var(--bad,#e0716b); }
/* round (logo): a compact camera badge in the corner; expands only to show status text */
.uploadbtn-round { right: 5px; bottom: 5px; width: 34px; padding: 0; gap: 0; justify-content: center; }
.uploadbtn-round .uploadbtn-txt { display: none; }
.uploadbtn-round.is-busy, .uploadbtn-round.is-err { width: auto; padding: 0 13px; gap: 6px; }
.uploadbtn-round.is-busy .uploadbtn-txt, .uploadbtn-round.is-err .uploadbtn-txt { display: inline; }
.videopitch::after { z-index: 1; }

@media (max-width: 1080px) {
  .statrow { grid-template-columns: 1fr 1fr; }
  .visiongrid { grid-template-columns: 1fr; }
  .pitch { width: 100%; }
  .attrtiles { grid-template-columns: 1fr 1fr; }
  .attr:nth-child(2) { border-right: none; }
  .attr:nth-child(1), .attr:nth-child(2) { border-bottom: 1px dashed var(--line); }
  .impact-band { grid-template-columns: 1fr; gap: 26px; }
  .twocol { grid-template-columns: 1fr; gap: 24px; }
  .mediastrip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .mediaslot { grid-column: span 1 !important; }
}

/* ============================================================
   MOBILE — bottom tab bar + condensed chrome (≤720px)
   ============================================================ */
@media (max-width: 720px) {
  .shell { padding-left: 16px; padding-right: 16px; padding-bottom: 120px; }
  /* nav drops to a fixed bottom bar (below), so the topbar is just brand | right cluster */
  .topbar { margin-bottom: clamp(20px, 4vh, 32px); grid-template-columns: 1fr auto; }

  /* nav becomes a fixed bottom tab bar */
  .nav {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    justify-content: space-around; gap: 4px;
    padding: 8px 10px; border-radius: 22px;
    background: rgba(9,13,12,0.9);
    box-shadow: 0 -2px 0 rgba(255,255,255,0.04) inset, 0 20px 44px -14px rgba(0,0,0,0.9);
  }
  .nav-item { flex: 1; flex-direction: column; gap: 3px; height: auto; padding: 7px 6px; border-radius: 15px; }
  .nav-item svg { width: 21px; height: 21px; opacity: 0.9; }
  .nav-item span { font-size: 11px; letter-spacing: 0; }
  .nav-item.is-active { background: var(--glass-2); color: var(--ink); font-weight: 600; }
  .nav-item.is-active svg { opacity: 1; }

  /* condense the right cluster — avatar only, no name text (keep the .avatar div!) */
  .me { padding: 4px; gap: 0; }
  .me > div:not(.avatar) { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .topbar-right { gap: 8px; }

  /* profile / detail two-column layouts stack cleanly */
  .co-cols, .profile-hero > div { gap: 22px; }
  .co-info { min-width: 0; }   /* was min-width:320px (desktop 2-col) — on a single mobile column it overflowed the viewport, cutting the bio/cards on the right */
  .statrow { grid-template-columns: 1fr; }
  .attrtiles { grid-template-columns: 1fr 1fr; }
  /* T3: the 7-tab Admin Console bar scrolls — fade the right edge to signal "more →" */
  .admin-tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  /* LAYOUT-01: let a long section title + its label/button stack instead of overlapping */
  .sec-head { flex-wrap: wrap; row-gap: 4px; margin-bottom: 18px; }
  /* LAYOUT-02: founder card stacks (avatar, then text, then full-width actions) */
  .cofounder-card { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  .cofounder-card > div:not(.avatar) { flex: none !important; width: 100%; }
  .cofounder-card > .btn { width: 100%; }
  /* detail back bar: Go Back + icons on one row (company tabs are now a separate row, see .pagebackbar-tabs) */
  .pagebackbar { flex-wrap: wrap; row-gap: 10px; }
  /* admin Approvals/Requests cards: wrap text, drop the buttons to their own row (ADMIN-01/02) */
  .actrow { flex-wrap: wrap; gap: 8px 12px; }
  .actrow-main { flex: 1 1 55%; }
  .actrow-name, .actrow-sub { white-space: normal; overflow: visible; }
  .actrow-when { font-size: 11.5px; }
  .actrow > div:last-child { flex: 1 1 100%; display: flex; justify-content: flex-end; gap: 8px; }

  /* big display type a touch smaller so it never clips */
  .display { font-size: clamp(32px, 9vw, 48px); }

  /* segmented controls: fill width when they fit, scroll when they don't (admin 5-tab) */
  .seg { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar { display: none; }
  .seg-btn { flex: 1 0 auto; white-space: nowrap; }

  /* HOME — give the headline + CTA room, drop the stat card, clear the tab bar */
  .minichart-card { display: none; }
  .homev2-overlay { padding: 0 18px 104px 18px; gap: 18px; }
  .homev2-tag { margin-bottom: 30px; font-size: clamp(38px, 12vw, 60px); }
  .homev2-left .btn-lg { height: 54px; font-size: 16.5px; }
  .map-draghint { display: block; }

  /* DISCOVER / matches — compact horizontal rows, full-width search */
  .dgrid { grid-template-columns: 1fr; gap: 9px; }
  .pcard { flex-direction: row; align-items: center; text-align: left; padding: 11px 13px; gap: 13px; }
  .pcard::before { display: none; }
  .pcard:hover { transform: none; }
  .pcard .avatar { width: 50px !important; height: 50px !important; font-size: 17px !important; }
  .pcard-logo { width: 50px; height: 50px; border-radius: 13px; flex: none; }
  .pcard-main { order: 1; flex: 1; min-width: 0; text-align: left; }
  .pcard-name { margin-top: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pcard-sub { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pcard .flagrow { margin-top: 5px !important; justify-content: flex-start !important; flex-wrap: nowrap; }
  .pcard .fbadge-ico { width: 22px; height: 22px; }
  .pcard-logo, .pcard .avatar { order: 0; }
  .pcard-score { position: static; order: 2; align-self: center; font-size: 14px; font-weight: 600; color: var(--green); }
  .pcard .btn { order: 3; margin-top: 0 !important; flex: none; height: 32px; padding: 0 13px; font-size: 12.5px; }
  .pcard .savebtn { display: none; }
  /* intro button → icon only on mobile so it doesn't eat the row */
  .intro-btn { padding: 0 !important; width: 36px; justify-content: center; }
  .intro-btn .btn-label { display: none; }

  /* filter chip rows stay on one line, scroll horizontally */
  .filterrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filterrow::-webkit-scrollbar { display: none; }
  .filterrow .chip, .filterrow .label { flex: none; }

  /* search by name — full width and prominent */
  label.ask { width: 100% !important; height: 50px; border-radius: 14px; }
  label.ask input { font-size: 16px !important; }

  /* matches list starts higher: shorter map + tighter gaps */
  .disc-controls { margin-top: 14px !important; gap: 9px !important; }
  .disc-map { margin-top: 10px !important; margin-bottom: 4px !important; }
  .disc-map .mapwrap { height: 200px !important; }
  .dgrid { margin-top: 12px !important; }

  /* EVENTS — shorter map, dots instead of crammed cards, compact rows */
  .ev-map { margin-top: 12px !important; }
  .ev-map .mapwrap { height: 200px !important; }
  .ev-map .map-card { display: none; }
  .ev-map .map-card.is-open { display: flex; }
  .ev-map .map-anchor { width: 12px; height: 12px; }
  .evrow { gap: 12px; padding: 12px 13px; }
  .evrow-name { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* T8: wrap long titles to 2 lines, no mid-word "…Ret…" */
  .evrow-meta { flex-wrap: wrap; margin-top: 4px; gap: 5px 9px; }   /* T8: location drops to its own line so the full city shows */
  .evrow-loc { overflow: visible; text-overflow: clip; }            /* T8: show full "City · N going", no "Zürich · 14…" */
  .evrow-blurb { display: none; }
  .ev-date { width: 86px; min-width: 86px; padding: 7px 6px; }   /* §2: uniform width (matches desktop) so every event title aligns; still fits "Jan 19–23" */
  .evrow-act.btn { height: 40px; padding: 0 16px; font-size: 13px; }   /* T9: bigger tap target (row is now multi-line, fits) */

  /* T9: interactive controls get a >=44px tap target on mobile.
     button.chip targets only the interactive filter chips — the static Tag()
     spans (span.chip) are left at their compact size. */
  button.chip { min-height: 44px; }
  .seg-btn { height: 44px; }
  .btn-sm { min-height: 44px; }

  /* settings dropdown: pin to viewport so it never clips off the left edge */
  .menu { position: fixed; top: 64px; right: 12px; left: auto; width: min(300px, calc(100vw - 24px)); }
  /* §7: dim + blur behind the menu sheet on mobile so it reads as a layer, no bleed-through
     (the overlay already closes on tap-outside; desktop keeps the plain dropdown, no scrim) */
  .menu-scrim { background: rgba(0,0,0,0.42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
}

@media (max-width: 480px) {
  .attrtiles { grid-template-columns: 1fr; }
  .attr { border-right: none !important; border-bottom: 1px dashed var(--line); min-height: 0; }
  .attr:last-child { border-bottom: none; }
  .adm-kpis { grid-template-columns: 1fr 1fr; }
  .nav-item span { font-size: 10.5px; }
  .map-card { max-width: 44vw; }
  .map-card-t, .map-card-s { white-space: normal; }
  /* back bar: drop the name text, keep avatar + actions */
  .topbar-right .me-name, .topbar-right .me-sub { display: none; }
}

/* ---- horizontal timeline editor (founder profile) ---- */
.tl-edit-wrap { margin-top: 8px; }
.tl-edit-rail {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 8px 2px 12px;
  scroll-behavior: smooth;
}
.tl-edit-col {
  flex: 0 0 248px;
  width: 248px;
  padding: 0 9px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-edit-noderow {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-edit-noderow::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: var(--line-2);
  transform: translateY(-50%);
}
.tl-edit-col:first-child .tl-edit-noderow::before { left: 50%; }
.tl-edit-addcol .tl-edit-noderow::before { right: 50%; }
.tl-edit-dot {
  position: relative; z-index: 1;
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--bg-1);
}
.tl-edit-year { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-edit-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-edit-del {
  position: absolute;
  top: -10px; right: -10px;
  width: 24px; height: 24px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.tl-edit-del:hover { color: var(--ink); border-color: var(--line); }
.tl-edit-addcol { flex: 0 0 116px; width: 116px; align-items: center; }
.tl-edit-add {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1.5px dashed var(--line);
  background: transparent; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.tl-edit-add:hover { border-color: var(--green); color: var(--green); }
.tl-edit-addlbl { font-size: 12px; color: var(--ink-3); margin-top: 2px; text-align: center; }
.tl-edit-empty { color: var(--ink-3); font-size: 13.5px; padding: 6px 2px; }

/* ---- compact repeatable-rows editor (links, track record) ---- */
.re-list { display: grid; gap: 8px; margin-top: 6px; }
.re-row { display: flex; gap: 8px; align-items: center; }
.re-row.re-row-stack { align-items: flex-start; }
.re-row .field-in { min-width: 0; }
.re-del {
  flex: none;
  width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line-2);
  color: var(--ink-3); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.re-del:hover { color: var(--ink); border-color: var(--line); }
.re-add {
  align-self: flex-start;
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: transparent; border: 1.5px dashed var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.re-add:hover { border-color: var(--green); color: var(--green); }

/* ---- field-by-field editing: hover a field → pencil → click to edit the text in place ---- */
.ce-slot { position: relative; cursor: text; border-radius: 8px;
  transition: background .12s ease, box-shadow .12s ease; }
.ce-slot:not(.ce-slot-block) { display: inline-block; vertical-align: top; }
.ce-slot:hover { background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.ce-slot.ce-active { background: rgba(255,255,255,0.04); box-shadow: 0 0 0 2px var(--green-mid); }
.ce-slot [contenteditable="true"] { outline: none; }
.ce-pencil {
  position: absolute; top: -7px; right: -7px;
  width: 19px; height: 19px; border-radius: 999px;
  background: var(--green); color: #0a0c0b;
  display: grid; place-items: center; z-index: 3;
  opacity: 0; transform: scale(.7); pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.ce-slot:hover .ce-pencil { opacity: 1; transform: scale(1); }
.ce-slot.ce-active .ce-pencil { opacity: 0; }
.link-edit-row { display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); }
.ce-empty { color: var(--ink-3); font-style: italic; }
/* standalone form pages (new company, settings) — keep forms a readable width */
.settings-card { max-width: 760px; }
/* dashed "add" tile for inline list editors (track tiles, portfolio cards) */
.ce-add-tile { display: grid; place-items: center; cursor: pointer; min-height: 64px;
  background: transparent; border: 1.5px dashed var(--line); border-radius: var(--r-sm);
  color: var(--ink-3); font-size: 13.5px;
  transition: color .15s ease, border-color .15s ease; }
.ce-add-tile:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   MARKETPLACE · product grid + product detail
   ============================================================ */
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mkt-card {
  display: flex; flex-direction: column; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.mkt-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7); }
.mkt-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-1); overflow: hidden; }
.mkt-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-media .mkt-img { transition: transform 0.4s var(--ease); }
.mkt-card:hover .mkt-media .mkt-img { transform: scale(1.03); }
.mkt-cat {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(10,13,12,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mkt-body { display: flex; flex-direction: column; gap: 5px; padding: 16px 16px 18px; flex: 1; }
.mkt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mkt-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.mkt-price { font-size: 15px; font-weight: 600; color: var(--green); white-space: nowrap; }
.mkt-maker-static { font-size: 12.5px; color: var(--ink-3); }
.mkt-blurb { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 3px 0 0; text-wrap: pretty; flex: 1; }
.mkt-view { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.mkt-view svg { transition: transform 0.18s var(--ease); }
.mkt-card:hover .mkt-view svg { transform: translateX(3px); }

/* ---------- product detail ---------- */
.pd { margin-top: 8px; }
.pd-cols { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.pd-media {
  position: relative; flex: 1 1 380px; min-width: 0; aspect-ratio: 4 / 3;
  border-radius: 22px; overflow: hidden; background: var(--bg-1); border: 1px solid var(--line-2);
}
.pd-content { flex: 1 1 340px; min-width: 0; }
.pd-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.pd-maker {
  display: inline-block; margin-top: 8px; padding: 0; background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
}
.pd-maker:hover { color: var(--ink); }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.pd-unit { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.pd-text { font-size: 15px; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.pd-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0;
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
}
.pd-stat { background: var(--bg-0); padding: 14px 16px; }
.pd-stat-v { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.pd-stat-k { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.pd-cta { width: 100%; margin-top: 4px; }
.pd-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.pd-note svg { flex: none; color: var(--green); }

@media (max-width: 720px) {
  .mkt-grid { grid-template-columns: 1fr; gap: 16px; }
  .pd-cols { gap: 20px; }
  .pd-price { margin: 16px 0; font-size: 26px; }
}

/* ============================================================
   LOADING SKELETONS (shimmer placeholders during list fetches)
   ============================================================ */
@keyframes skl-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skl {
  background: linear-gradient(90deg, rgba(255,255,255,0.045) 25%, rgba(255,255,255,0.10) 37%, rgba(255,255,255,0.045) 63%);
  background-size: 200% 100%; animation: skl-shimmer 1.5s ease-in-out infinite; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) { .skl { animation: none; } }
.skl-line { height: 12px; border-radius: 6px; }
/* grid card skeleton (marketplace) */
.skl-card { display: flex; flex-direction: column; background: var(--glass); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; }
.skl-card .skl-media { aspect-ratio: 4 / 3; border-radius: 0; }
.skl-card .skl-body { display: flex; flex-direction: column; gap: 11px; padding: 16px 16px 20px; }
/* row skeleton (discover / events lists) */
.skl-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 12px;
  background: var(--glass); border: 1px solid var(--line-2); border-radius: 16px; }
.skl-row .skl-avatar { width: 52px; height: 52px; border-radius: 999px; flex: none; }
.skl-row .skl-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }

/* claim page — prepared-profile preview card */
.claim-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line-2);
}
.claim-preview-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.claim-preview-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
