/* ==========================================================================
   INVESTORS PAGE — companion styles
   Loaded after styles.css. Reuses shared tokens, panels, buttons, eyebrows.
   ========================================================================== */

/* ---------- Hero ---------- */
.investor-hero {
  padding-top: clamp(7.5rem, 14vh, 10rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}
.investor-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: end;
}
.investor-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: 0.002em;
  color: var(--ivory);
  grid-column: 1 / -1;
  max-width: 22ch;
  margin-bottom: 2rem;
}
.investor-hero__inner .btn--gold {
  margin-bottom: 2rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.72rem;
  /* grid items default to justify-items:stretch, which was forcing this
     anchor to fill the whole column width — pin it to its own content
     size instead so it reads as a normal button, not a full-width bar. */
  justify-self: start;
  width: fit-content;
}
.investor-hero__lede {
  color: var(--mist);
  line-height: 1.8;
  font-size: 0.96rem;
  max-width: 42ch;
  margin-left: auto;
}
.investor-hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

/* ---------- Investor logos marquee ---------- */
.section-investor-logos { padding-top: clamp(1.2rem, 2.5vw, 2rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-investor-logos .section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 38ch;
  margin-inline: auto;
}
.investor-logos-marquee { overflow: hidden; }
.investor-logos-marquee__track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: investorLogosSlide 30s linear infinite;
  padding: 1.2rem 0;
}
@keyframes investorLogosSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.investor-logo-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  min-height: 80px;
  min-width: 120px;
}
.investor-logo-tile img {
  max-height: 50px;
  height: auto;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s var(--ease);
}
.investor-logo-tile:hover img { opacity: 0.85; }

/* ---------- How Do I Become An Investor ---------- */
.section-become { padding-block: var(--pad-y); }
.become-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
.become-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.become-step__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}
.become-step__arrow {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--bronze);
  flex: none;
  transition: transform 0.4s var(--ease);
}
.become-step:hover .become-step__arrow { transform: translateX(6px); }
.become-step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--ivory);
  margin-bottom: 1.1rem;
}
.become-step__copy { color: var(--mist); line-height: 1.8; font-size: 0.96rem; }

/* ---------- Global network (dotted world map — shared #worldMap/.map-wrap/.network-copy styles live in styles.css) ---------- */
.section-network { padding-block: var(--pad-y); }
.section-network .section-title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Core principles — FLIP CARDS (same pattern as homepage .offer-card) ---------- */
.section-principles { padding-block: var(--pad-y); }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
}
.principle-card {
  position: relative;
  min-height: 440px;
  background: var(--midnight);
  color: var(--platinum);
  border: 1px solid rgba(8, 13, 21, 0.9);
  box-shadow: 0 30px 60px -30px rgba(8, 13, 21, 0.45);
  cursor: pointer;
  outline-offset: 4px;
}
.principle-card:focus-visible { outline: 1px solid var(--bronze); }

.principle-card__face {
  position: absolute;
  inset: 0;
  padding: 1.85rem 2rem;
  display: flex;
  flex-direction: column;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.principle-card__face--front {
  opacity: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.principle-card__face--back {
  background: var(--midnight-2);
  border: 1px solid var(--hairline-dark);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  overflow-y: auto;
}
.principle-card:hover .principle-card__face--back,
.principle-card:focus-visible .principle-card__face--back,
.principle-card.is-open .principle-card__face--back {
  opacity: 1; transform: none; pointer-events: auto;
}
.principle-card:hover .principle-card__face--front,
.principle-card:focus-visible .principle-card__face--front,
.principle-card.is-open .principle-card__face--front {
  opacity: 0; transform: translateY(-10px);
}

.principle-card__label {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--bronze);
  margin-bottom: 1.6rem;
}
.principle-card__art { width: clamp(96px, 11vw, 130px); margin: 0 auto; opacity: 0.92; }
.principle-card__art svg { width: 100%; height: 100%; }

.principle-card__back-num {
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}
.principle-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  color: var(--ivory);
  margin-bottom: 1rem;
}
.principle-card__copy { color: var(--mist); line-height: 1.72; font-size: 0.86rem; }

/* ---------- Investment criteria (centred — the logo wall has been removed) ---------- */
.section-criteria { padding-block: var(--pad-y); }
.criteria-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.criteria-text { max-width: 64ch; }
.criteria-text .eyebrow { justify-content: center; }
.criteria-text .section-title { margin: 1.4rem auto 1.8rem; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.criteria-copy { color: var(--mist); line-height: 1.85; max-width: 56ch; margin-inline: auto; font-size: 0.95rem; }

/* ---------- Why Join Thim Investors — compact + hover-animated mockups ---------- */
.section-whyjoin { padding-block: var(--pad-y); }
.whyjoin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.6vw, 2rem);
}
.whyjoin-card {
  background: var(--midnight);
  border: 1px solid var(--hairline-dark);
  padding: 1.5rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.whyjoin-card:hover { border-color: var(--hairline-dark); transform: translateY(-4px); }
.whyjoin-card__visual {
  position: relative;
  height: 168px;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--midnight-2);
}
.whyjoin-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ivory);
  margin-bottom: 0.65rem;
}
.whyjoin-card__copy { color: var(--mist); font-size: 0.82rem; line-height: 1.65; }

/* visual: stacked cards — fan out further on hover */
.whyjoin-card__visual--cards { display: flex; align-items: center; justify-content: center; }
.mock-card {
  position: absolute;
  width: 64%; height: 76%;
  border-radius: 6px;
  background: linear-gradient(160deg, #1a2740, #0c1421);
  border: 1px solid var(--hairline-dark);
  box-shadow: 0 18px 30px -16px rgba(0,0,0,0.6);
  transition: transform 0.5s var(--ease);
}
.mock-card--a { transform: rotate(-9deg) translate(-22px, 6px); }
.mock-card--b { transform: rotate(-2deg) translate(-4px, -2px); background: linear-gradient(160deg, #16213a, #0a1018); }
.mock-card--c {
  transform: rotate(7deg) translate(18px, 2px);
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.whyjoin-card:hover .mock-card--a { transform: rotate(-15deg) translate(-34px, 10px); }
.whyjoin-card:hover .mock-card--b { transform: rotate(-2deg) translate(-4px, -6px); }
.whyjoin-card:hover .mock-card--c { transform: rotate(13deg) translate(30px, 4px); }
.mock-card__mark { width: 28px; height: 28px; }

/* visual: network rings — avatars orbit slightly on hover */
.whyjoin-card__visual--network { display: flex; align-items: center; justify-content: center; }
.network-rings { position: relative; width: 78%; height: 100%; }
.network-mark {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
}
.network-avatar {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--bronze), var(--midnight-2));
  border: 1.5px solid rgba(241,236,225,0.5);
  transition: transform 0.6s var(--ease);
}
.whyjoin-card:hover .network-avatar:nth-child(1) { transform: translate(-3px, -5px) scale(1.08); }
.whyjoin-card:hover .network-avatar:nth-child(2) { transform: translate(-6px, 2px) scale(1.08); }
.whyjoin-card:hover .network-avatar:nth-child(3) { transform: translate(6px, 2px) scale(1.08); }
.whyjoin-card:hover .network-avatar:nth-child(4) { transform: translate(-3px, 5px) scale(1.08); }
.whyjoin-card:hover .network-avatar:nth-child(5) { transform: translate(4px, -3px) scale(1.08); }

/* visual: deal list rows — rows lift in sequence on hover */
.whyjoin-card__visual--list { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.8rem; justify-content: center; }
.deal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-dark);
  background: var(--ink);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.deal-row span { font-size: 0.76rem; color: var(--ivory); font-weight: 500; }
.deal-row small { font-size: 0.58rem; letter-spacing: 0.05em; color: var(--bronze); text-transform: uppercase; }
.whyjoin-card:hover .deal-row:nth-child(1) { transform: translateX(4px); border-color: var(--hairline-dark); }
.whyjoin-card:hover .deal-row:nth-child(2) { transform: translateX(7px); }
.whyjoin-card:hover .deal-row:nth-child(3) { transform: translateX(4px); }

/* visual: photo placeholders — slow zoom on hover */
.whyjoin-card__visual--photo {
  background: linear-gradient(150deg, #1c2638, #060a10);
  transition: transform 0.6s var(--ease);
}
.whyjoin-card__visual--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(217,212,201,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217,212,201,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.whyjoin-card__visual--photo2 { background: linear-gradient(150deg, #241a2c, #0a0610); }
.whyjoin-card:hover .whyjoin-card__visual--photo { transform: scale(1.04); }

/* visual: alert toast — slides in on hover */
.whyjoin-card__visual--alert { background: var(--ink); padding: 0.9rem; display: flex; flex-direction: column; }
.alert-mock__brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--mist);
  opacity: 0.5;
  margin-bottom: auto;
}
.alert-mock__toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(241,236,225,0.08);
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  transform: translateY(6px);
  opacity: 0.85;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.whyjoin-card:hover .alert-mock__toast { transform: translateY(0); opacity: 1; }
.alert-mock__icon { width: 22px; height: 22px; flex: none; }
.alert-mock__toast strong { display: block; font-size: 0.72rem; color: var(--ivory); }
.alert-mock__toast small { display: block; font-size: 0.6rem; color: var(--stone); margin-top: 0.1rem; }
.alert-mock__time { margin-left: auto; font-size: 0.6rem; color: var(--stone); flex: none; }

/* ---------- Membership benefits — staggered scroll reveal ---------- */
.section-benefits { padding-block: var(--pad-y); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.5rem);
}
.benefit-card {
  border: 1px solid var(--hairline-dark);
  padding: 2rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--bronze);
  background: var(--midnight);
}
.benefit-card__icon { width: 26px; height: 26px; color: var(--mist); transition: color 0.4s var(--ease); }
.benefit-card:hover .benefit-card__icon { color: var(--gold); }
.benefit-card p { font-size: 0.92rem; color: var(--platinum); }

/* ---------- Disclaimer + final CTA ---------- */
.section-disclaimer { padding-block: var(--pad-y); }
.disclaimer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.disclaimer-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ivory);
  line-height: 1.18;
}
.disclaimer-text { color: var(--mist); line-height: 1.85; max-width: 50ch; margin: 1.2rem 0 2.2rem; font-size: 0.92rem; }
.disclaimer-image {
  min-height: 340px;
  background-image: url("https://images.unsplash.com/photo-1538428494232-9c0d8a3ab403?q=80&w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

/* ==========================================================================
   SCROLL-REVEAL STAGGER (used by benefit cards + principle/whyjoin grids)
   The .reveal/.is-visible mechanism already exists in styles.css; this just
   adds a per-card transition-delay set via inline --delay custom property,
   assigned in investors.js, so cards cascade in rather than popping at once.
   ========================================================================== */
.reveal { transition-delay: var(--delay, 0s); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .investor-hero__inner { grid-template-columns: 1fr; }
  .investor-hero__lede { margin-left: 0; }
  .become-steps { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 400px; }
  .whyjoin-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .disclaimer-grid { grid-template-columns: 1fr; }
  .disclaimer-image { min-height: 240px; order: -1; }
}

@media (max-width: 640px) {
  .whyjoin-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ---- Why Join numbered list ---- */
.whyjoin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 780px;
}
.whyjoin-list__item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.whyjoin-list__item:last-child { border-bottom: none; }
.whyjoin-list__num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold, #c9a84c);
  min-width: 3rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.whyjoin-list__body { flex: 1; }
.whyjoin-list__title {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ivory, #f5f0e8);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.whyjoin-list__copy {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--stone, #8a8a8a);
  line-height: 1.75;
  margin: 0;
}