/* ==========================================================================
   INVESTORS + SCROLLABLE CONTENT PAGES
   Header is in normal flow — don't stack large top padding under it
   ========================================================================== */
.inv-page .hero-showcase {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  overflow-y: visible;
  overflow-x: hidden;
  min-height: 0;
}

body.scrollable-page.inv-page .app-container,
body.scrollable-page:not(.inv-page) .app-container {
  padding-top: 1rem;
  padding-bottom: 0;
  gap: 0.75rem;
}

body.scrollable-page:not(.inv-page) .hero-showcase {
  padding-top: 1.25rem !important;
  padding-bottom: 2.5rem !important;
  min-height: 0;
}

/* ==========================================================================
   INVESTORS DIRECTORY (dense / IndianVCs-style)
   ========================================================================== */
.inv-dir-page .hero-showcase.inv-list-main {
  background-color: transparent;
}

.inv-dir-page .inv-dir-ambient {
  opacity: 1;
}

.inv-dir-page .inv-dir-ambient .waitlist-bg {
  background-color: transparent;
  background-image: none;
}

.inv-dir-page .inv-dir-ambient .glow-orb {
  filter: blur(110px);
  opacity: 0.18;
}

.inv-dir-wrap {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 20px 48px;
}

.inv-dir-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inv-dir-header h1 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 0.2rem;
}

.inv-dir-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.inv-dir-meta a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.inv-dir-meta a:hover {
  color: var(--color-accent-orange);
  border-bottom-color: rgba(237, 87, 47, 0.5);
}

.inv-dir-dot {
  opacity: 0.4;
}

.inv-dir-filters-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.inv-dir-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.inv-dir-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.25rem;
}

.inv-dir-sidebar-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inv-dir-sidebar-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.inv-dir-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inv-dir-field > span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inv-dir-field input,
.inv-dir-field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.55rem 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.inv-dir-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.55)' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.1rem;
}

.inv-dir-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Search clear (×) — brand orange on mweb + dweb */
.inv-dir-field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 0.35rem;
  cursor: pointer;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23ed572f'/%3E%3Cpath d='M5.2 5.2l5.6 5.6M10.8 5.2l-5.6 5.6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.inv-dir-field input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.inv-dir-field input:focus,
.inv-dir-field select:focus {
  border-bottom-color: rgba(237, 87, 47, 0.7);
}

.inv-dir-field select option {
  background: #1a1a1a;
  color: #fff;
}

/* Custom filter dropdowns */
.inv-dd {
  position: relative;
  width: 100%;
}

.inv-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.55rem 0;
  text-align: left;
  cursor: pointer;
}

.inv-dd.is-open .inv-dd-trigger,
.inv-dd-trigger:focus {
  border-bottom-color: rgba(237, 87, 47, 0.7);
  outline: none;
}

.inv-dd-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

.inv-dd.has-value .inv-dd-value {
  color: var(--color-text-light);
}

.inv-dd-caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.inv-dd.is-open .inv-dd-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.inv-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  max-height: min(280px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.inv-dd-menu[hidden] {
  display: none !important;
}

.inv-dd-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.3;
  cursor: pointer;
}

.inv-dd-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.inv-dd-option.is-selected {
  color: #fff;
  background: rgba(237, 87, 47, 0.1);
}

.inv-dd-check {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  position: relative;
}

.inv-dd-option.is-selected .inv-dd-check::after {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.05rem;
  width: 0.28rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--color-accent-orange);
  border-bottom: 1.5px solid var(--color-accent-orange);
  transform: rotate(40deg);
}

.inv-dd-label {
  min-width: 0;
}

.inv-dir-checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.2rem 0;
}

.inv-dir-checkbox-field input {
  width: 15px;
  height: 15px;
  accent-color: var(--color-accent-orange);
  cursor: pointer;
}

.inv-dir-checkbox-field span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 500;
}

.inv-dir-active-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: #6be895;
  box-shadow: 0 0 0 3px rgba(107, 232, 149, 0.18);
  vertical-align: middle;
}

.inv-dir-clear {
  align-self: flex-start;
  margin-top: 0.35rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.inv-dir-clear:hover {
  color: var(--color-accent-orange);
}

.inv-dir-main {
  min-width: 0;
}

.inv-dir-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.72fr) minmax(0, 1.7fr) minmax(0, 0.68fr);
  gap: 1.35rem;
  padding: 0 0.15rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.inv-dir-results {
  display: flex;
  flex-direction: column;
}

.inv-dir-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.72fr) minmax(0, 1.7fr) minmax(0, 0.68fr);
  gap: 1.35rem;
  align-items: center;
  padding: 0.75rem 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Invisible hit target covering the full row */
.inv-dir-row-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
  color: transparent;
  pointer-events: auto;
}

/* Let clicks reach the full-row hit target; re-enable on CTAs only */
.inv-dir-row > .inv-dir-col {
  pointer-events: none;
}

.inv-dir-row .inv-dir-inline-link,
.inv-dir-row .inv-email-unlock-btn,
.inv-dir-row .inv-email-revealed,
.inv-dir-row .inv-email-copy-btn {
  pointer-events: auto;
}

/* Keep interactive columns above the full-row hit target (desktop) */
.inv-dir-col-stages:has(.inv-dir-inline-link),
.inv-dir-col-sectors:has(.inv-dir-inline-link),
.inv-dir-col-ticket:has(.inv-dir-inline-link) {
  position: relative;
  z-index: 2;
}

.inv-dir-row:hover:not(:has(a:hover:not(.inv-dir-row-hit), button:hover)) {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(237, 87, 47, 0.35);
}

.inv-dir-row:hover:not(:has(a:hover:not(.inv-dir-row-hit), button:hover)) .inv-dir-name,
.inv-dir-row:hover:not(:has(a:hover:not(.inv-dir-row-hit), button:hover)) .inv-dir-ticket:not(:has(.inv-dir-inline-link)),
.inv-dir-row:has(.inv-dir-row-hit:focus-visible):not(:has(a:hover:not(.inv-dir-row-hit), button:hover)) .inv-dir-name {
  color: #ffb89c;
}

.inv-dir-col {
  min-width: 0;
}

.inv-dir-col-fund {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inv-dir-fund-mark {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.inv-dir-logo,
.inv-dir-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.inv-dir-logo {
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid var(--color-accent-orange);
  padding: 4px;
  box-sizing: border-box;
}

.inv-dir-logo.is-broken {
  display: none;
}

.inv-dir-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(237, 87, 47, 0.16);
  border: 1.5px solid var(--color-accent-orange);
  color: #ffb89c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.inv-dir-logo-fallback.is-visible {
  display: flex;
}

.inv-dir-fund-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.inv-dir-type {
  display: flex;
  align-items: center;
  color: var(--color-accent-orange);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.inv-dir-name {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 400;
}

.inv-dir-cell,
.inv-dir-ticket {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 400;
}

/* Keep sectors/thesis to 3 lines so directory rows stay even height */
.inv-dir-col-sectors {
  padding-left: 0.35rem;
  padding-right: 0.55rem;
}

.inv-dir-col-sectors .inv-dir-cell {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: calc(1.45em * 3);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* People email column: buttons/links must not be line-clamped or clipped on hover */
.inv-dir-col-email .inv-dir-cell:has(.inv-email-unlock-btn),
.inv-dir-col-email .inv-dir-cell:has(.inv-email-revealed),
.inv-dir-col-email .inv-dir-cell:has(.inv-dir-inline-link) {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  max-height: none;
}

.inv-dir-ticket {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-dir-mobile-label {
  display: none;
}

.inv-dir-empty {
  color: rgba(255, 255, 255, 0.55);
  padding: 2rem 0.15rem;
  margin: 0;
  font-size: 0.95rem;
}

.inv-dir-row.inv-dir-skel {
  display: grid !important;
  pointer-events: none;
  cursor: default;
}

.inv-dir-row.inv-dir-skel:hover {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.inv-dir-results[aria-busy="true"] {
  min-height: 22rem;
}

.inv-dir-results[aria-busy="true"] .inv-dir-row.inv-dir-skel {
  display: grid !important;
}

.inv-skel {
  display: block;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.12);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: invSkelShimmer 1.2s ease-in-out infinite;
}

.inv-skel-mark {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.inv-dir-row.inv-dir-skel .inv-dir-fund-mark {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.inv-skel-type {
  width: 4.5rem;
  height: 0.55rem;
  margin-bottom: 0.45rem;
}

.inv-skel-name {
  width: 55%;
  max-width: 11rem;
  height: 1rem;
}

.inv-skel-line {
  width: 70%;
  height: 0.7rem;
  margin-top: 0.35rem;
}

.inv-skel-wide {
  width: 85%;
}

.inv-skel-ticket {
  width: 4.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
}

.inv-skel-pill {
  width: 7.25rem;
  height: 1.55rem;
  margin-top: 0;
  border-radius: 999px;
}

@keyframes invSkelShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 768px) {
  body.inv-dir-page .inv-dir-results[aria-busy="true"] {
    min-height: 28rem;
  }

  body.inv-dir-page .inv-dir-row.inv-dir-skel .inv-skel-line,
  body.inv-dir-page .inv-dir-row.inv-dir-skel .inv-skel-ticket {
    margin-top: 0.2rem;
    height: 0.8rem;
    width: 78%;
  }

  body.inv-dir-page .inv-dir-row.inv-dir-skel .inv-skel-pill {
    margin-top: 0.15rem;
  }
}

.inv-dir-empty-state {
  padding: 3rem 0.25rem 2.5rem;
  text-align: left;
}

.inv-dir-empty-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.45rem;
  font-weight: 400;
}

.inv-dir-empty-copy {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  max-width: 28rem;
  line-height: 1.5;
}

.inv-dir-empty-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

.inv-dir-empty-action:hover {
  border-color: rgba(237, 87, 47, 0.55);
  color: var(--color-accent-orange);
}

.inv-dir-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 1.85rem;
  padding: 1.15rem 0.25rem 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inv-dir-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.inv-dir-pager-arrow {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--color-accent-orange);
}

.inv-dir-pager-btn:hover:not(:disabled) {
  background: rgba(237, 87, 47, 0.1);
  border-color: rgba(237, 87, 47, 0.55);
  color: #fff;
}

.inv-dir-pager-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  background: transparent;
}

.inv-dir-pager-btn:disabled .inv-dir-pager-arrow {
  color: rgba(255, 255, 255, 0.35);
}

.inv-dir-pager-status {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.inv-dir-pager-kicker {
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 0.15rem;
}

.inv-dir-pager-current {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  font-weight: 400;
}

.inv-dir-pager-sep {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.95rem;
}

.inv-dir-pager-total {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}

.inv-dir-backdrop {
  display: none;
}

.inv-list-wrap,
.inv-detail-wrap {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 20px 40px;
}

.inv-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.inv-breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.inv-breadcrumbs .current,
.inv-breadcrumbs a:hover {
  color: var(--color-accent-orange);
}

.inv-list-header {
  margin-bottom: 1.75rem;
}

.inv-kicker {
  display: inline-block;
  color: var(--color-accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.inv-list-header h1,
.inv-detail-title {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.inv-list-header p,
.inv-detail-thesis {
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.inv-filters {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.inv-search-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.inv-search-row input {
  flex: 1;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text-light);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.inv-search-row input::placeholder {
  color: rgba(255,255,255,0.45);
}

.inv-clear-btn {
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--color-text-light);
  border-radius: 10px;
  padding: 0 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
}

.inv-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.inv-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inv-filter-grid select {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text-light);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.inv-results-meta {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.inv-table-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 0.8fr;
  gap: 1rem;
  padding: 0 1.1rem 0.55rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inv-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inv-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 0.8fr;
  gap: 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.inv-card:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 87, 47, 0.45);
  background: rgba(255,255,255,0.055);
}

.inv-card-type,
.inv-type-badge {
  display: inline-block;
  color: var(--color-accent-orange);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.inv-card-name {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.inv-card-thesis {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inv-card-col-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.inv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.inv-ticket {
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.inv-empty {
  color: rgba(255,255,255,0.65);
  padding: 2rem 0.5rem;
}

.inv-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.inv-pager button {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text-light);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
}

.inv-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.inv-page-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.inv-hero-panel,
.inv-body-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 1.85rem 1.85rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.inv-hero-top {
  max-width: 760px;
}

.inv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.inv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.inv-btn-primary {
  background: var(--color-accent-orange);
  color: #fff;
}

.inv-btn-primary:hover {
  background: var(--color-accent-orange-hover);
  transform: translateY(-1px);
}

.inv-btn-ghost {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--color-text-light);
  background: rgba(255,255,255,0.03);
}

.inv-btn-ghost:hover {
  border-color: rgba(237, 87, 47, 0.6);
  color: var(--color-accent-orange);
}

.inv-metrics {
  display: grid;
  grid-template-columns: minmax(0, 280px);
  gap: 0.85rem;
  margin: 1.75rem 0 0.35rem;
}

.inv-metric {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(237, 87, 47, 0.28), transparent 55%),
    rgba(0,0,0,0.28);
  border: 1px solid rgba(237, 87, 47, 0.28);
}

.inv-metric-label {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.inv-metric-value {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.inv-facts {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.inv-fact-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.inv-fact-row:last-child {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.inv-fact-label {
  color: rgba(255,255,255,0.48);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.35rem;
}

.inv-fact-value {
  color: var(--color-text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.inv-connect-text {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  font-weight: 500;
}

.inv-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 500;
}

.inv-chip-stage {
  border-color: rgba(237, 87, 47, 0.35);
  background: rgba(237, 87, 47, 0.12);
  color: #ffd2c3;
}

.inv-chip-sector {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}

.inv-chip-thesis {
  border-color: rgba(120, 170, 255, 0.28);
  background: rgba(120, 170, 255, 0.1);
  color: #d7e6ff;
}

/* Investment thesis widget (investor profiles) */
.thesis-widget {
  margin: 1.35rem 0 1.75rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 170, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(120, 170, 255, 0.08), rgba(12, 14, 22, 0.35) 45%, rgba(237, 87, 47, 0.05)),
    rgba(10, 12, 20, 0.72);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.thesis-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.thesis-widget-kicker {
  margin: 0 0 0.25rem;
  color: #9eb8ff;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thesis-widget-title {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
}

.thesis-widget-browse {
  flex-shrink: 0;
  color: #ffb89c;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding-top: 0.35rem;
}

.thesis-widget-browse:hover {
  color: #ffd2c3;
  text-decoration: underline;
}

.thesis-widget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.thesis-widget.is-collapsed .thesis-chip-extra {
  display: none;
}

.thesis-widget-chip {
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.thesis-widget-toggle {
  margin-top: 1rem;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.thesis-widget-toggle:hover {
  border-color: rgba(237, 87, 47, 0.45);
  background: rgba(237, 87, 47, 0.12);
  color: #ffe1d6;
}

@media (max-width: 640px) {
  .thesis-widget {
    padding: 1.15rem 1.05rem 1.05rem;
  }
  .thesis-widget-head {
    flex-direction: column;
    gap: 0.35rem;
  }
}

a.inv-chip {
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

a.inv-chip:hover {
  border-color: rgba(237, 87, 47, 0.45);
  background: rgba(237, 87, 47, 0.14);
  color: #ffe1d6;
  transform: translateY(-1px);
}

.inv-inline-link {
  color: #ffb89c;
  text-decoration: none;
  white-space: nowrap;
}

.inv-inline-link:hover {
  color: #ffd2c3;
  text-decoration: underline;
}

.inv-chip.muted {
  opacity: 0.6;
}

.inv-props-grid,
.inv-prop,
.inv-prop-label,
.inv-prop-value {
  /* legacy unused */
}

.inv-body-panel h2,
.inv-related h2 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}

.inv-writeup {
  color: rgba(255,255,255,0.86);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.inv-writeup.muted {
  color: rgba(255,255,255,0.55);
}

.inv-notes {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.inv-notes h3 {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.inv-notes p,
.inv-confidence {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.inv-confidence {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.inv-related {
  margin-top: 2rem;
}

.inv-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.inv-related-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 1rem;
  transition: border-color 0.2s ease;
}

.inv-related-card:hover {
  border-color: rgba(237, 87, 47, 0.45);
}

.inv-related-type {
  color: var(--color-accent-orange);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.inv-related-card h3 {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
}

.inv-related-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Thesis theme pages */
.theme-page-wrap {
  max-width: 1040px;
}

.theme-hero {
  margin: 0 0 2rem;
}

.theme-hero-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}

.theme-hero-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.theme-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  align-items: center;
  margin-top: 1.1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.theme-hero-meta a {
  color: #ffb89c;
  text-decoration: none;
}

.theme-hero-meta a:hover {
  color: #ffd2c3;
  text-decoration: underline;
}

.theme-writeup-panel h2 {
  margin-bottom: 1rem;
}

.theme-writeup-p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.1rem;
}

.theme-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.theme-two-col h3 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.theme-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

.theme-bullets li + li {
  margin-top: 0.45rem;
}

.theme-investors-section,
.theme-others {
  margin: 2.75rem 0 1rem;
}

.theme-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.theme-section-head h2,
.theme-others h2 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.8rem;
  margin: 0;
}

.theme-section-head a {
  color: #ffb89c;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.theme-section-head a:hover {
  text-decoration: underline;
}

.theme-inv-grid,
.themes-grid,
.theme-others-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.theme-inv-card,
.theme-index-card,
.theme-other-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(12, 14, 22, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.theme-inv-card-main {
  display: block;
  text-decoration: none;
  color: inherit;
}

.theme-inv-card:hover,
.theme-index-card:hover,
.theme-other-card:hover {
  border-color: rgba(237, 87, 47, 0.4);
  background: rgba(20, 22, 32, 0.72);
  transform: translateY(-2px);
}

.theme-inv-type,
.theme-index-count,
.theme-other-count {
  color: #ffb89c;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.theme-index-top,
.theme-other-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.theme-index-top .theme-index-count,
.theme-other-top .theme-other-count {
  margin-bottom: 0;
}

.theme-index-icon,
.theme-other-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.78);
}

.theme-inv-card h3,
.theme-index-card h2,
.theme-other-card h3 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
  line-height: 1.25;
}

.theme-inv-card p,
.theme-index-card p,
.theme-other-card p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-inv-meta {
  margin-top: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

.theme-index-cta {
  display: inline-block;
  margin-top: 1rem;
  color: #ffb89c;
  font-size: 0.9rem;
  font-weight: 600;
}

.theme-more {
  margin-top: 1.5rem;
  text-align: center;
}

.themes-grid {
  margin-top: 0.5rem;
}

/* Investment stage pages — editorial guide redesign */
.stage-page-wrap {
  max-width: 1080px;
}

.stage-guide-page .stage-hero {
  position: relative;
  margin: 0 0 1.35rem;
  padding: 1.65rem 1.5rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(237, 87, 47, 0.22);
  overflow: hidden;
  background: rgba(10, 12, 18, 0.55);
}

.stage-hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 12% 20%, rgba(237, 87, 47, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 88% 80%, rgba(237, 87, 47, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(255,255,255,0.04), transparent 40%);
  pointer-events: none;
}

.stage-hero-num {
  position: absolute;
  right: -0.4rem;
  top: -1.2rem;
  font-family: var(--font-heading);
  font-size: clamp(7rem, 18vw, 12rem);
  line-height: 0.85;
  color: rgba(255,255,255,0.045);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.stage-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.stage-hero-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: #ffb89c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 0.95;
  color: #fff;
  font-weight: 400;
}

.stage-hero-summary {
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 34rem;
}

.stage-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.stage-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}

.stage-hero-stat strong {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: #fff;
  line-height: 1;
}

.stage-hero-stat span {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--color-accent-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.stage-hero-cta:hover {
  background: var(--color-accent-orange-hover);
  transform: translateY(-1px);
}

/* Connected stage rail */
.stage-rail,
.stages-index-ladder {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  margin-top: 1.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.stage-rail-item {
  display: flex;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 5.5rem;
}

.stage-rail-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  text-align: center;
  width: 100%;
  transition: color 0.2s ease;
}

.stage-rail-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(8,10,16,0.9);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.stage-rail-label {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  max-width: 5.5rem;
}

.stage-rail-line {
  flex: 1 1 auto;
  height: 2px;
  margin-top: 0.95rem;
  min-width: 0.75rem;
  background: rgba(255,255,255,0.12);
  align-self: flex-start;
}

.stage-rail-line.is-done {
  background: rgba(237, 87, 47, 0.55);
}

.stage-rail-node.is-done {
  color: rgba(255, 184, 156, 0.85);
}

.stage-rail-node.is-done .stage-rail-dot {
  border-color: rgba(237, 87, 47, 0.55);
  background: rgba(237, 87, 47, 0.18);
  color: #ffd2c3;
}

.stage-rail-node.is-active {
  color: #fff;
}

.stage-rail-node.is-active .stage-rail-dot {
  border-color: var(--color-accent-orange);
  background: var(--color-accent-orange);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(237, 87, 47, 0.2);
  animation: stagePulse 1.1s ease-out 1;
}

.stage-rail-node:hover {
  color: #ffe1d6;
}

.stage-rail-node:hover .stage-rail-dot {
  transform: scale(1.06);
}

@keyframes stagePulse {
  0% { box-shadow: 0 0 0 0 rgba(237, 87, 47, 0.45); }
  100% { box-shadow: 0 0 0 10px rgba(237, 87, 47, 0); }
}

/* Sticky nav — underline rail */
.stage-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 1rem;
  margin: 0 0 2rem;
  padding: 0.85rem 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(6, 8, 14, 0.96);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.stage-sticky-nav::-webkit-scrollbar { display: none; }

.stage-sticky-nav a {
  position: relative;
  flex: 0 0 auto;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.1rem 0.55rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.stage-sticky-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.stage-sticky-nav a:hover,
.stage-sticky-nav a.is-active {
  color: #fff;
}

.stage-sticky-nav a.is-active::after {
  background: var(--color-accent-orange);
}

/* Sections */
.stage-section {
  margin: 0 0 2.75rem;
}

.stage-section-label {
  color: #ffb89c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.stage-section-head {
  margin-bottom: 1.15rem;
}

.stage-section-head h2,
.stage-fit-panel h2,
.stage-meaning h2 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  margin: 0 0 0.4rem;
  font-weight: 400;
  line-height: 1.15;
}

.stage-section-head p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 36rem;
}

.stage-meaning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.stage-prose {
  color: rgba(255,255,255,0.8);
  font-size: 1.08rem;
  line-height: 1.78;
  margin: 0 0 1.15rem;
}

.stage-pullquote {
  margin: 0;
  padding: 1.4rem 1.35rem;
  border-radius: 18px;
  border-left: 3px solid var(--color-accent-orange);
  background: linear-gradient(145deg, rgba(237, 87, 47, 0.14), rgba(12, 14, 22, 0.4));
}

.stage-pullquote p {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #fff;
}

/* Metric strip */
.stage-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: rgba(8, 10, 16, 0.65);
}

.stage-metric {
  padding: 1.15rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stage-metric:last-child { border-right: none; }

.stage-metric.is-lead {
  background: linear-gradient(160deg, rgba(237, 87, 47, 0.18), rgba(237, 87, 47, 0.04));
}

.stage-metric-label {
  color: rgba(255,255,255,0.48);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stage-metric-value {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
}

/* Fit band */
.stage-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stage-fit-panel {
  padding: 1.4rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(12, 14, 22, 0.55);
}

.stage-fit-panel.is-yes {
  border-color: rgba(237, 87, 47, 0.35);
  box-shadow: inset 3px 0 0 var(--color-accent-orange);
  background: linear-gradient(135deg, rgba(237, 87, 47, 0.1), rgba(12, 14, 22, 0.45));
}

.stage-fit-panel.is-wait {
  background: rgba(255,255,255,0.025);
}

.stage-fit-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.stage-fit-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: rgba(255,255,255,0.8);
  line-height: 1.45;
}

.stage-fit-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.stage-fit-mark.is-yes {
  background: rgba(237, 87, 47, 0.18);
  color: #ffb89c;
}

.stage-fit-mark.is-wait {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
}

/* Numbered checklists */
.stage-panel-accent {
  padding: 0.35rem 0;
}

.stage-numbered {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.stage-numbered li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.stage-num {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--color-accent-orange);
}

.stage-num-text {
  color: rgba(255,255,255,0.86);
  font-size: 1.02rem;
  line-height: 1.5;
  padding-top: 0.15rem;
}

/* Tips panel */
.stage-tips-panel {
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(237, 87, 47, 0.28);
  background:
    linear-gradient(145deg, rgba(237, 87, 47, 0.12), rgba(12, 14, 22, 0.35)),
    rgba(10, 12, 18, 0.7);
}

.stage-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.stage-tip-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.65rem;
  color: rgba(255,255,255,0.86);
  font-size: 1.02rem;
  line-height: 1.5;
}

.stage-tip-mark {
  color: #ffb89c;
  font-weight: 700;
}

/* Mistakes */
.stage-mistakes {
  display: grid;
  gap: 0.75rem;
}

.stage-mistake {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--color-accent-orange);
  background: rgba(255,255,255,0.03);
}

.stage-mistake-num {
  color: #ffb89c;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
}

.stage-mistake p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Investor + related grids */
.stage-inv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.stage-inv-card {
  display: block;
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(12, 14, 22, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.stage-inv-card:hover {
  border-color: rgba(237, 87, 47, 0.4);
  background: rgba(20, 22, 32, 0.72);
  transform: translateY(-2px);
}

.stage-inv-type {
  color: #ffb89c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.stage-inv-card h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 0.45rem;
  font-weight: 400;
}

.stage-inv-card p {
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage-inv-meta {
  margin-top: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

.stage-related-grid,
.stage-theme-grid,
.stages-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stage-related-card,
.stage-index-card {
  display: block;
  position: relative;
  padding: 1.35rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(160deg, rgba(237, 87, 47, 0.08), transparent 45%),
    rgba(12, 14, 22, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
  overflow: hidden;
}

.stage-related-card:hover,
.stage-index-card:hover {
  border-color: rgba(237, 87, 47, 0.45);
  transform: translateY(-3px);
  background:
    linear-gradient(160deg, rgba(237, 87, 47, 0.14), transparent 45%),
    rgba(20, 22, 32, 0.75);
}

.stage-related-order,
.stage-index-order,
.stage-index-count {
  color: #ffb89c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-index-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stage-related-card h3,
.stage-index-card h2 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.55rem;
  margin: 0.2rem 0 0.55rem;
  font-weight: 400;
  line-height: 1.15;
}

.stage-related-card p,
.stage-index-card p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage-related-meta,
.stage-index-meta {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  color: rgba(255,255,255,0.48);
  font-size: 0.82rem;
}

.stage-index-cta {
  color: #ffb89c;
  font-weight: 700;
}

.stage-theme-chip {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.stage-theme-chip:hover {
  border-color: rgba(237, 87, 47, 0.4);
  transform: translateY(-2px);
}

.stage-theme-chip strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
}

.stage-theme-chip span {
  color: rgba(255,255,255,0.55);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage-pn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.stage-pn-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stage-pn-card:hover {
  border-color: rgba(237, 87, 47, 0.4);
  background: rgba(237, 87, 47, 0.08);
}

.stage-pn-card span {
  color: rgba(255,255,255,0.48);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.stage-pn-card strong {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 400;
}

.stage-pn-card.is-empty {
  opacity: 0;
  pointer-events: none;
}

.stages-index-grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stages-index-hero {
  margin-bottom: 0.5rem;
}

/* Motion */
.stage-hero-enter {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.stage-ready .stage-hero-enter {
  opacity: 1;
  transform: none;
}

.stage-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stage-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  body.scrollable-page.inv-page .app-container,
  body.scrollable-page:not(.inv-page) .app-container {
    padding-top: 0.85rem;
    gap: 0.65rem;
  }

  body.scrollable-page.inv-page .hero-showcase,
  body.scrollable-page:not(.inv-page) .hero-showcase {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  .inv-dir-layout {
    grid-template-columns: 1fr;
  }

  .inv-dir-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
  }

  .inv-dir-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    /* Above page chrome + dimmer; below main nav (10040+) when that is open */
    z-index: 10035;
    background: #161618;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 1rem;
    overscroll-behavior: contain;
    pointer-events: auto;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
  }

  .inv-dir-sidebar .inv-dd-menu {
    z-index: 10036;
  }

  .inv-dir-sidebar.is-open {
    transform: translateX(0);
  }

  .inv-dir-sidebar-head {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  /* Match menu X: two bars crossed */
  .inv-dir-sidebar-close {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 -0.35rem 0 0;
    padding: 0;
    color: transparent;
    font-size: 0;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .inv-dir-sidebar-close span {
    position: absolute;
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 0;
  }

  .inv-dir-sidebar-close span:nth-child(1) {
    transform: rotate(45deg);
  }

  .inv-dir-sidebar-close span:nth-child(2) {
    transform: rotate(-45deg);
  }

  .inv-dir-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10025;
    background: rgba(0, 0, 0, 0.45);
  }

  .inv-dir-backdrop[hidden] {
    display: none !important;
  }

  body.inv-dir-filters-open {
    overflow: hidden;
  }

  /* Brighter, readable filter controls on the drawer */
  body.inv-dir-page .inv-dir-sidebar .inv-dir-field > span {
    color: rgba(255, 255, 255, 0.55);
  }

  body.inv-dir-page .inv-dir-sidebar .inv-dir-field input,
  body.inv-dir-page .inv-dir-sidebar .inv-dd-trigger,
  body.inv-dir-page .inv-dir-sidebar .inv-dd-value {
    color: rgba(255, 255, 255, 0.92);
  }

  body.inv-dir-page .inv-dir-sidebar .inv-dd-value {
    color: rgba(255, 255, 255, 0.78);
  }

  body.inv-dir-page .inv-dir-sidebar .inv-dd.has-value .inv-dd-value {
    color: #fff;
  }

  body.inv-dir-page .inv-dir-sidebar .inv-dir-field input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  body.inv-dir-page .inv-dir-sidebar .inv-dir-checkbox-field span,
  body.inv-dir-page .inv-dir-sidebar .inv-dir-clear {
    color: rgba(255, 255, 255, 0.78);
  }

  .inv-dir-table-head {
    display: none;
  }

  .inv-dir-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
    padding: 1rem 0;
  }

  .inv-dir-col-fund {
    grid-column: 1 / -1;
  }

  .inv-dir-mobile-label {
    display: block;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
  }

  .inv-dir-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .inv-dir-pager-status {
    grid-column: 1 / -1;
    order: -1;
    justify-self: center;
  }

  .inv-dir-pager-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .inv-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inv-table-head {
    display: none;
  }
  .inv-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .inv-fact-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .inv-fact-label {
    padding-top: 0;
  }
  .inv-related-grid {
    grid-template-columns: 1fr;
  }
  .inv-metrics {
    grid-template-columns: 1fr;
  }
  .theme-two-col,
  .theme-inv-grid,
  .themes-grid,
  .theme-others-grid,
  .stage-meaning-grid,
  .stage-metric-strip,
  .stage-fit-grid,
  .stage-related-grid,
  .stage-theme-grid,
  .stages-index-grid,
  .stage-inv-grid {
    grid-template-columns: 1fr;
  }
  .stage-metric {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stage-metric:last-child { border-bottom: none; }
  .stage-guide-page .stage-hero {
    padding: 1.75rem 1.2rem 1.35rem;
  }
}

@media (max-width: 768px) {
  body.inv-dir-page .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: transparent;
  }

  body.inv-dir-page .inv-dir-header {
    position: sticky;
    top: calc(50px + env(safe-area-inset-top, 0px));
    z-index: 80;
    background: transparent;
    margin-bottom: 0.55rem;
    padding-top: 0.35rem;
    padding-bottom: 0.55rem;
    box-shadow: none;
    align-items: center;
    gap: 0.75rem;
  }

  body.inv-dir-page .inv-dir-header .inv-dir-meta {
    display: none;
  }

  body.inv-dir-page .inv-dir-header-text {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.inv-dir-page .inv-dir-header h1 {
    margin: 0;
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.inv-dir-page .inv-dir-filters-toggle {
    margin-left: 0;
    flex: 0 0 auto;
    max-width: none;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    padding: 0.5rem 0.85rem;
    min-height: 40px;
    align-self: center;
    gap: 0.45rem;
  }

  /* Orange dot when any filter is applied (mweb Funds / Investors) */
  body.inv-dir-page .inv-dir-filters-toggle.has-active-filters::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent-orange, #ed572f);
    flex-shrink: 0;
  }

  /*
   * Funds mweb cards — grouped hierarchy, not a flat dump of fields.
   * Desktop table layout is unchanged (≥769px).
   */
  body.inv-dir-page .inv-dir-results {
    gap: 0.7rem;
  }

  body.inv-dir-page .inv-dir-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 0.7rem 0.85rem;
    align-items: start;
    padding: 0.95rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
  }

  body.inv-dir-page .inv-dir-row:hover:not(:has(a:hover:not(.inv-dir-row-hit), button:hover)) {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(237, 87, 47, 0.35);
  }

  body.inv-dir-page .inv-dir-col-fund {
    grid-column: 1 / -1;
    order: 1;
    gap: 0.7rem;
    align-items: flex-start;
    padding-bottom: 0.15rem;
  }

  body.inv-dir-page .inv-dir-fund-mark,
  body.inv-dir-page .inv-dir-logo,
  body.inv-dir-page .inv-dir-logo-fallback {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 11px;
  }

  body.inv-dir-page .inv-dir-type {
    margin-bottom: 0.15rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  body.inv-dir-page .inv-dir-name {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  body.inv-dir-page .inv-dir-col-stages,
  body.inv-dir-page .inv-dir-col-ticket {
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
  }

  /* Interactive Firm / Links tiles sit above the row hit + show press feedback */
  body.inv-dir-page .inv-dir-col-stages:has(.inv-dir-inline-link),
  body.inv-dir-page .inv-dir-col-ticket:has(.inv-dir-inline-link),
  body.inv-people-dir .inv-dir-col-email:has(.inv-email-unlock-btn),
  body.inv-people-dir .inv-dir-col-email:has(.inv-dir-inline-link),
  body.inv-people-dir .inv-dir-col-email:has(.inv-email-revealed) {
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }

  body.inv-dir-page .inv-dir-col-stages:has(.inv-dir-inline-link) .inv-dir-mobile-label,
  body.inv-dir-page .inv-dir-col-ticket:has(.inv-dir-inline-link) .inv-dir-mobile-label {
    pointer-events: none;
  }

  body.inv-dir-page .inv-dir-col-stages .inv-dir-inline-link,
  body.inv-dir-page .inv-dir-ticket .inv-dir-inline-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Stretch a single Firm/Links anchor across the whole tile */
  body.inv-dir-page .inv-dir-col-stages .inv-dir-inline-link,
  body.inv-dir-page .inv-dir-col-ticket:not(:has(.inv-dir-inline-link ~ .inv-dir-inline-link)) .inv-dir-inline-link {
    position: static;
  }

  body.inv-dir-page .inv-dir-col-stages .inv-dir-inline-link::after,
  body.inv-dir-page .inv-dir-col-ticket:not(:has(.inv-dir-inline-link ~ .inv-dir-inline-link)) .inv-dir-inline-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
  }

  body.inv-dir-page .inv-dir-col-stages:has(.inv-dir-inline-link:active),
  body.inv-dir-page .inv-dir-col-ticket:has(.inv-dir-inline-link:active),
  body.inv-dir-page .inv-dir-col-stages.is-pressed,
  body.inv-dir-page .inv-dir-col-ticket.is-pressed {
    background: rgba(237, 87, 47, 0.22);
    border-color: rgba(237, 87, 47, 0.55);
    transform: scale(0.975);
  }

  body.inv-dir-page .inv-dir-col-stages .inv-dir-inline-link:active,
  body.inv-dir-page .inv-dir-ticket .inv-dir-inline-link:active,
  body.inv-dir-page .inv-dir-col-stages.is-pressed .inv-dir-inline-link,
  body.inv-dir-page .inv-dir-col-ticket.is-pressed .inv-dir-inline-link {
    color: #ffb89c;
  }

  body.inv-dir-page .inv-dir-col-stages {
    grid-column: 1;
    order: 2;
  }

  body.inv-dir-page .inv-dir-col-ticket {
    grid-column: 2;
    order: 3;
    padding-top: 0.55rem;
  }

  body.inv-dir-page .inv-dir-col-sectors {
    grid-column: 1 / -1;
    order: 4;
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.inv-dir-page .inv-dir-mobile-label {
    display: block;
    margin: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.inv-dir-page .inv-dir-col-stages .inv-dir-cell,
  body.inv-dir-page .inv-dir-ticket {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
  }

  body.inv-dir-page .inv-dir-ticket {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Firm (people) / Stages (funds): keep all values on one line in meta tiles */
  body.inv-dir-page .inv-dir-col-stages .inv-dir-cell {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: none;
  }

  /* Inline — multiple stage links must stay on one line (not stacked blocks) */
  body.inv-dir-page .inv-dir-col-stages .inv-dir-inline-link {
    display: inline;
    white-space: nowrap;
  }

  body.inv-dir-page .inv-dir-col-sectors .inv-dir-mobile-label {
    margin-bottom: 0.2rem;
  }

  body.inv-dir-page .inv-dir-col-sectors .inv-dir-cell {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: calc(1.4em * 2);
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: left;
  }

  body.inv-people-dir .inv-dir-col-email .inv-dir-cell:has(.inv-email-unlock-btn),
  body.inv-people-dir .inv-dir-col-email .inv-dir-cell:has(.inv-dir-inline-link),
  body.inv-people-dir .inv-dir-col-email .inv-dir-cell:has(.inv-email-revealed) {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    max-height: none;
  }

  /* People directory: email row stays single-line when possible */
  body.inv-dir-page .inv-dir-col-sectors .inv-profile-empty {
    color: rgba(255, 255, 255, 0.38);
  }

  body.inv-dir-page .inv-dir-col-stages .inv-dir-inline-link,
  body.inv-dir-page .inv-dir-ticket .inv-dir-inline-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: none;
  }

  body.inv-dir-page .inv-dir-inline-link {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    border-bottom: none;
  }

  .inv-dir-wrap {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .inv-dd-trigger {
    min-height: 44px;
    padding: 0.65rem 0;
  }

  .inv-dd-option {
    min-height: 44px;
    padding: 0.65rem 0.85rem;
  }

  .inv-dir-checkbox-field {
    min-height: 44px;
    padding: 0.35rem 0;
  }

  .inv-dir-checkbox-field input {
    width: 20px;
    height: 20px;
  }

  .inv-dir-clear {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    margin-left: -0.5rem;
  }

  .inv-dir-empty-action {
    min-height: 44px;
    padding: 0.65rem 1.15rem;
  }

  .inv-dir-guide-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.15rem 0;
  }
}

@media (max-width: 640px) {
  body.scrollable-page.inv-page .app-container,
  body.scrollable-page:not(.inv-page) .app-container {
    padding-top: 0.75rem;
    gap: 0.5rem;
  }

  body.scrollable-page.inv-page .hero-showcase,
  body.scrollable-page:not(.inv-page) .hero-showcase {
    padding-top: 0.85rem !important;
    padding-bottom: 1.75rem !important;
  }

  .inv-dir-header {
    align-items: flex-start;
    margin-bottom: 0.7rem;
    padding-bottom: 0.55rem;
  }

  .inv-dir-row {
    grid-template-columns: 1fr;
    padding: 0.7rem 0;
  }

  .inv-dir-col-ticket {
    padding-top: 0.15rem;
  }

  /* Funds mweb cards: keep 2-col meta + card chrome from 768 block */
  body.inv-dir-page .inv-dir-header {
    align-items: center;
  }

  body.inv-dir-page .inv-dir-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    padding: 0.9rem 0.85rem;
  }

  body.inv-dir-page .inv-dir-col-ticket {
    padding-top: 0.55rem;
  }

  .inv-filter-grid {
    grid-template-columns: 1fr;
  }
  .inv-search-row {
    flex-direction: column;
  }
  .theme-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .stage-pn-grid {
    grid-template-columns: 1fr;
  }
  .stage-pn-card.is-empty {
    display: none;
  }
  .stage-hero-num {
    font-size: 6.5rem;
    right: -0.6rem;
  }
  .stage-rail-label {
    font-size: 0.68rem;
  }
}

/* Directory list links — must stay in list bundle (not profile-only) */
.inv-dir-guide-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.inv-dir-guide-link:hover {
  color: #ffd2c3;
  text-decoration: underline;
}

.inv-dir-cell a,
.inv-dir-ticket a,
.inv-dir-inline-link {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.inv-dir-cell a:hover,
.inv-dir-ticket a:hover,
.inv-dir-inline-link:hover {
  color: #ffb89c;
  border-bottom-color: rgba(237, 87, 47, 0.55);
}

/* Email unlock — people directory rows (list bundle; profile overrides below) */
.inv-email-unlock-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  background: rgba(237, 87, 47, 0.06);
  border: 1px solid rgba(237, 87, 47, 0.38);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.inv-email-unlock-btn .inv-email-unlock-icon {
  flex: 0 0 auto;
  color: rgba(237, 87, 47, 0.72);
  transition: color 0.18s ease;
}

.inv-email-unlock-btn:hover:not(:disabled),
.inv-email-unlock-btn:focus-visible:not(:disabled) {
  background: rgba(237, 87, 47, 0.12);
  border-color: rgba(237, 87, 47, 0.55);
  color: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.inv-email-unlock-btn:hover:not(:disabled) .inv-email-unlock-icon,
.inv-email-unlock-btn:focus-visible:not(:disabled) .inv-email-unlock-icon {
  color: rgba(237, 87, 47, 0.88);
}

.inv-email-unlock-btn:active:not(:disabled) {
  transform: translateY(0);
  background: rgba(237, 87, 47, 0.16);
  border-color: rgba(237, 87, 47, 0.62);
}

.inv-email-unlock-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.inv-dir-col-email:has(.inv-email-unlock-btn),
.inv-dir-col-email:has(.inv-email-revealed) {
  position: relative;
  z-index: 2;
}

.inv-dir-col-email .inv-email-unlock-btn {
  vertical-align: middle;
}

.inv-dir-col-email .inv-email-unlock-btn:hover:not(:disabled),
.inv-dir-col-email .inv-email-unlock-btn:focus-visible:not(:disabled),
.inv-dir-col-email .inv-email-unlock-btn:active:not(:disabled) {
  transform: none;
}

@media (min-width: 769px) {
  body.inv-people-dir .inv-dir-table-head,
  body.inv-people-dir .inv-dir-row {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.9fr) minmax(0, 1.12fr) minmax(0, 0.74fr);
    gap: 1.2rem;
  }

  body.inv-people-dir .inv-dir-row {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
  }

  body.inv-people-dir .inv-dir-col-stages,
  body.inv-people-dir .inv-dir-col-email,
  body.inv-people-dir .inv-dir-col-ticket {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  body.inv-people-dir .inv-dir-col-email {
    padding-left: 0;
    padding-right: 0;
  }

  body.inv-people-dir .inv-dir-col-email .inv-dir-cell {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 1.75rem;
    margin: 0;
    padding: 0;
  }

  body.inv-people-dir .inv-dir-col-email .inv-email-unlock-btn {
    margin: 0;
    flex-shrink: 0;
  }

  body.inv-people-dir .inv-dir-col-email .inv-dir-inline-link,
  body.inv-people-dir .inv-dir-col-ticket .inv-dir-inline-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  body.inv-people-dir .inv-dir-col-email .inv-profile-empty {
    line-height: 1.75rem;
  }
}

.inv-email-revealed {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  min-width: 0;
}

.inv-email-revealed .inv-dir-inline-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-email-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(237, 87, 47, 0.38);
  background: rgba(237, 87, 47, 0.06);
  color: rgba(237, 87, 47, 0.72);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.inv-email-copy-btn:hover,
.inv-email-copy-btn:focus-visible {
  background: rgba(237, 87, 47, 0.12);
  border-color: rgba(237, 87, 47, 0.55);
  color: rgba(237, 87, 47, 0.88);
}

.inv-email-copy-btn.is-copied {
  background: rgba(72, 187, 120, 0.12);
  border-color: rgba(72, 187, 120, 0.55);
  color: rgba(130, 230, 170, 0.95);
}

body.inv-people-dir .inv-dir-col-email .inv-dir-cell:has(.inv-email-revealed) {
  display: flex;
  align-items: center;
}

.inv-email-limit-strip {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 9999;
  transform: translate(-50%, 120%);
  opacity: 0;
  max-width: min(92vw, 28rem);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(237, 87, 47, 0.45);
  background: rgba(18, 12, 10, 0.94);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.inv-email-limit-strip.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 768px) {
  .inv-email-limit-strip {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 1.5rem);
    font-size: 0.82rem;
  }
}
