/* ============================================================
   ScaleUp — investors.css (gated investor overview page)
   Cream edition — builds on tokens in styles.css
   ============================================================ */

/* ---------- access gate ---------- */
.iv-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(184,50,50,0.08), transparent 65%),
    var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s, transform 0.7s cubic-bezier(0.5, 0, 0.8, 0.4);
}
.iv-gate.open { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
.iv-gate-panel { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.iv-gate-eyebrow { margin-top: 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.26em; color: rgba(36,29,19,0.55); }
.iv-gate-title { margin-top: 14px; font-family: 'Lora', serif; font-weight: 600; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.015em; color: var(--text); }
.iv-gate-sub { margin-top: 12px; font-size: 15px; color: rgba(36,29,19,0.55); }
.iv-gate-form { margin-top: 30px; display: flex; gap: 12px; }
.iv-gate-form input {
  width: min(280px, 60vw); padding: 14px 20px; border-radius: 100px;
  font-family: 'Archivo', sans-serif; font-size: 15px; color: var(--text);
  background: #FFFEF9; border: 1px solid rgba(36,29,19,0.2); outline: none;
  transition: border-color 0.2s ease;
}
.iv-gate-form input:focus { border-color: rgba(36,29,19,0.5); }
.iv-gate-form.iv-wrong input { border-color: var(--red); animation: iv-shake 0.4s ease; }
@keyframes iv-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}
.iv-gate-hint { margin-top: 26px; font-size: 13px; color: rgba(36,29,19,0.45); }
.iv-gate-hint a { color: rgba(36,29,19,0.7); text-decoration: underline; text-underline-offset: 3px; }
.iv-gate-hint a:hover { color: var(--ink); }

/* page hidden while locked */
.iv-locked .iv-page { visibility: hidden; }
body:not(.iv-locked) .iv-page { visibility: visible; }

/* ---------- floating pill nav ---------- */
.iv-nav {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 30px;
  padding: 10px 12px 10px 22px; border-radius: 100px;
  background: rgba(255,252,244,0.96);
  border: 1px solid rgba(36,29,19,0.12); box-shadow: 0 18px 50px rgba(74,56,30,0.16);
  white-space: nowrap;
}
.iv-nav-links { display: flex; gap: 24px; }
.iv-nav-links a { font-size: 13px; font-weight: 500; color: rgba(36,29,19,0.68); transition: color 0.2s ease; }
.iv-nav-links a:hover { color: var(--ink); }
.iv-nav-cta {
  padding: 10px 18px; border-radius: 100px; background: var(--red);
  font-size: 13px; font-weight: 600; color: #FBF3F0;
  transition: background 0.2s ease;
}
.iv-nav-cta:hover { background: var(--red-hover); }

/* ---------- hero ---------- */
.iv-hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(184,50,50,0.09), transparent 65%);
}
.iv-hero-center { position: relative; z-index: 5; text-align: center; padding: 120px 24px 80px; }
.iv-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; color: rgba(36,29,19,0.55);
}
.iv-eyebrow i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.iv-hero-center h1 {
  margin-top: 22px; font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(56px, 8.6vw, 128px); line-height: 1.02; letter-spacing: -0.02em; color: var(--text);
}
.iv-hero-center h1 span { display: block; }
.iv-hero-up { color: var(--red); font-style: italic; }
.iv-hero-mark { margin-top: 38px; display: flex; justify-content: center; }
.iv-hero-mark .su-logo-mark {
  padding: 16px; height: auto; border-radius: 18px;
  background: var(--panel); border: 1px solid rgba(36,29,19,0.12);
  box-shadow: 0 20px 50px rgba(74,56,30,0.16);
}
.iv-hero-mark .su-logo-mark svg { height: 44px; }
.iv-hero-sub { margin-top: 26px; font-size: 16px; color: rgba(36,29,19,0.6); }
.iv-hero-scroll { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); }

/* hero entrance: lines rise in after unlock */
.iv-hero-line { opacity: 0; }
.iv-unlocked .iv-hero-line { animation: su-rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0s); }

/* polaroid site photos — paper-framed, flip in on load */
.iv-polaroids { position: absolute; inset: 0; perspective: 1400px; pointer-events: none; }
.iv-polaroid {
  position: absolute; width: clamp(180px, 17vw, 260px); aspect-ratio: 3 / 4;
  border-radius: 18px; overflow: hidden;
  border: 6px solid #FFFEF9; background: #FFFEF9;
  box-shadow: 0 40px 90px rgba(74,56,30,0.3);
  opacity: 0; transform: rotateY(85deg) rotate(0deg) scale(0.85);
  will-change: transform;
}
.iv-polaroid-sm { width: clamp(130px, 12vw, 190px); }
.iv-polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.iv-unlocked .iv-polaroid {
  animation: iv-flip 1.1s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes iv-flip {
  0% { opacity: 0; transform: rotateY(85deg) rotate(0deg) scale(0.85); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0deg) rotate(var(--tilt, 0deg)) scale(1); }
}
/* gentle drift after they land */
.iv-polaroid::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(36,29,19,0.06); border-radius: 12px; }

@media (max-width: 1020px) {
  .iv-polaroid { display: none; }
  .iv-nav-links { display: none; }
}

/* ---------- sections ---------- */
.iv-section { position: relative; padding: 13vh 6vw; border-top: 1px solid rgba(36,29,19,0.1); }
.iv-inner { max-width: 1080px; margin: 0 auto; }
.iv-head h2 {
  margin-top: 18px; font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.02em; color: var(--text);
}
.iv-head p { margin-top: 18px; max-width: 560px; font-size: 16px; line-height: 1.65; color: rgba(36,29,19,0.6); }

/* scroll-reveal: rise + de-blur */
.iv-reveal { opacity: 0; transform: translateY(28px); filter: blur(7px); transition: opacity 0.85s cubic-bezier(0.2,0.7,0.2,1), transform 0.85s cubic-bezier(0.2,0.7,0.2,1), filter 0.85s ease; transition-delay: var(--d, 0s); }
.iv-reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- the gap ---------- */
.iv-bars { margin-top: 56px; max-width: 720px; }
.iv-bars-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: rgba(36,29,19,0.45); }
.iv-bar-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 20px; margin-top: 20px; }
.iv-bar-name { font-size: 14px; color: rgba(36,29,19,0.7); }
.iv-bar-track { position: relative; display: flex; align-items: center; gap: 12px; height: 30px; }
.iv-bar-fill {
  height: 100%; width: 0; border-radius: 6px; background: rgba(36,29,19,0.22);
  transition: width 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.iv-bar-red { background: var(--red); }
.iv-bars.in .iv-bar-fill { width: var(--w); }
.iv-bar-callout { font-size: 14px; font-weight: 600; color: var(--leasing-text); }

.iv-stats { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.iv-stat { border-top: 1px solid rgba(36,29,19,0.16); padding-top: 24px; }
.iv-stat-val { display: block; font-family: 'Lora', serif; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.iv-stat-label { display: block; margin-top: 12px; font-size: 13px; line-height: 1.55; color: rgba(36,29,19,0.55); max-width: 230px; }

/* ---------- meet the team — rotating stage ---------- */
.iv-head-center { text-align: center; }
.iv-head-center p { margin-left: auto; margin-right: auto; }

.iv-team-stage { position: relative; max-width: 1340px; height: 690px; margin: 40px auto 0; }

/* credential bubbles: outer floats, inner handles the switch transition */
.iv-bub { position: absolute; animation: t-float 6.5s ease-in-out infinite; z-index: 2; }
.iv-bub-in {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 16px 20px; border-radius: 16px;
  background: rgba(255,252,244,0.94);
  border: 1px solid rgba(36,29,19,0.13); box-shadow: 0 18px 44px rgba(74,56,30,0.15);
  font-size: 13.5px; line-height: 1.55; color: rgba(36,29,19,0.75);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--bd, 0s);
}
.iv-bub-in i { flex-shrink: 0; margin-top: 6px; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.iv-switching .iv-bub-in { opacity: 0; transform: translateY(14px) scale(0.94); }

/* headshot cards — persistent, glide clockwise between slots */
.iv-team-center { position: relative; width: 300px; height: 400px; margin: 96px auto 0; }
.iv-head-card {
  position: absolute; aspect-ratio: 3 / 4;
  border-radius: 20px; overflow: hidden; padding: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(184,50,50,0.10), transparent 70%),
    var(--panel);
  border: 1px solid rgba(36,29,19,0.15);
  box-shadow: 0 36px 80px rgba(74,56,30,0.22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition:
    left 0.7s cubic-bezier(0.3, 0.05, 0.22, 1),
    top 0.7s cubic-bezier(0.3, 0.05, 0.22, 1),
    width 0.7s cubic-bezier(0.3, 0.05, 0.22, 1),
    opacity 0.55s ease, border-color 0.3s ease, transform 0.35s ease;
}
.iv-head-card img { width: 100%; height: 100%; object-fit: cover; }
.iv-slot-main { left: 0; top: 0; width: 300px; z-index: 3; opacity: 1; cursor: default; }
.iv-slot-top { left: 4px; top: -96px; width: 118px; z-index: 2; opacity: 0.8; cursor: pointer; }
.iv-slot-right { left: 320px; top: -16px; width: 148px; z-index: 2; opacity: 0.8; cursor: pointer; }
.iv-slot-top:hover, .iv-slot-right:hover { opacity: 1; transform: translateY(-5px); border-color: rgba(36,29,19,0.38); }

.iv-mono { font-family: 'Lora', serif; font-weight: 600; font-size: 64px; color: rgba(36,29,19,0.8); transition: font-size 0.7s cubic-bezier(0.3, 0.05, 0.22, 1); }
.iv-slot-top .iv-mono, .iv-slot-right .iv-mono { font-size: 30px; }
.iv-mono-note { font-size: 9px; font-weight: 600; letter-spacing: 0.22em; color: rgba(36,29,19,0.35); }
.iv-slot-top .iv-mono-note, .iv-slot-right .iv-mono-note { display: none; }

/* name + role */
.iv-team-id { position: absolute; top: calc(100% + 24px); left: -60px; width: 420px; text-align: center; transition: opacity 0.35s ease, transform 0.35s ease; }
.iv-switching .iv-team-id { opacity: 0; transform: translateY(10px); }
.iv-team-name { font-family: 'Lora', serif; font-weight: 600; font-size: 30px; letter-spacing: -0.01em; color: var(--text); }
.iv-team-role { display: block; margin-top: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--leasing-text); }

/* dots / progress slider */
.iv-team-dots { position: absolute; top: calc(100% + 102px); left: -60px; display: flex; justify-content: center; gap: 10px; width: 420px; }
.iv-dot {
  position: relative; width: 26px; height: 6px; border-radius: 100px; border: none; cursor: pointer;
  background: rgba(36,29,19,0.16); overflow: hidden; padding: 0;
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease;
}
.iv-dot:hover { background: rgba(36,29,19,0.3); }
.iv-dot.active { width: 58px; }
.iv-dot::after {
  content: ''; position: absolute; inset: 0; width: 0; border-radius: 100px; background: var(--red);
}
.iv-dot.filling::after { animation: iv-dotfill 5s linear forwards; }
@keyframes iv-dotfill { from { width: 0; } to { width: 100%; } }

@media (max-width: 1020px) {
  .iv-team-stage { height: auto; padding-bottom: 20px; display: flex; flex-direction: column; }
  .iv-team-center { order: -1; margin-top: 110px; margin-bottom: 34px; }
  .iv-bub { position: static; margin: 12px auto; max-width: 480px !important; animation: none; }
  .iv-slot-top { left: 10px; }
  .iv-slot-right { left: 205px; top: -96px; width: 90px; }
  .iv-team-center { margin-bottom: 170px; }
  .iv-team-id, .iv-team-dots { width: 300px; left: 0; }
}

/* ---------- markets ---------- */
.iv-markets { margin-top: 46px; border-top: 1px solid rgba(36,29,19,0.16); }
.iv-market {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; align-items: center; gap: 30px;
  padding: 24px 6px; border-bottom: 1px solid rgba(36,29,19,0.16);
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.iv-market:hover { background: rgba(36,29,19,0.04); padding-left: 14px; }
.iv-market-name { font-family: 'Lora', serif; font-weight: 500; font-size: 24px; color: var(--text); }
.iv-market-loc { font-size: 14px; color: rgba(36,29,19,0.55); }
.iv-market-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: rgba(36,29,19,0.72); }
.iv-market-status i { display: block; width: 7px; height: 7px; border-radius: 50%; }
.iv-market-delivery { font-family: 'Lora', serif; font-style: italic; font-size: 17px; color: rgba(36,29,19,0.6); }

/* ---------- co-investors ---------- */
.iv-principles { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.iv-principle {
  position: relative; padding: 30px 32px 32px; border-radius: 20px;
  border: 1px solid rgba(36,29,19,0.12); background: var(--panel);
  box-shadow: 0 16px 40px rgba(74,56,30,0.08);
  overflow: hidden; transition: border-color 0.3s ease, transform 0.3s ease;
}
.iv-principle:hover { border-color: rgba(184,50,50,0.55); transform: translateY(-4px); }
.iv-principle-n {
  position: absolute; top: 18px; right: 24px;
  font-family: 'Lora', serif; font-style: italic; font-size: 38px; color: rgba(36,29,19,0.12);
}
.iv-principle h3 { font-family: 'Lora', serif; font-weight: 600; font-size: 22px; color: var(--text); }
.iv-principle p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: rgba(36,29,19,0.6); max-width: 380px; }

/* ---------- institutional ---------- */
.iv-acq { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.iv-acq-point { border-left: 3px solid var(--red); padding-left: 24px; }
.iv-acq-point h3 { font-family: 'Lora', serif; font-weight: 600; font-size: 23px; color: var(--text); }
.iv-acq-point p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: rgba(36,29,19,0.6); }
.iv-acq-cta { margin-top: 54px; display: flex; align-items: center; gap: 18px; }
.iv-acq-note { font-size: 13px; color: rgba(36,29,19,0.5); }

/* ---------- footer ---------- */
.iv-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 30px 6vw 40px;
  border-top: 1px solid rgba(36,29,19,0.12);
}
.iv-back { font-size: 14px; color: rgba(36,29,19,0.6); transition: color 0.2s ease; }
.iv-back:hover { color: var(--ink); }

/* main-site footer button */
.su-investor-btn { gap: 8px; font-size: 13px; }

@media (max-width: 900px) {
  .iv-stats, .iv-team, .iv-principles, .iv-acq { grid-template-columns: 1fr; }
  .iv-market { grid-template-columns: 1fr auto; }
  .iv-market-loc, .iv-market-delivery { display: none; }
  .iv-bar-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .iv-gate-form { flex-wrap: wrap; justify-content: center; }
  .iv-gate-form input { width: min(320px, 78vw); }
  .iv-nav { gap: 16px; padding: 8px 10px 8px 16px; max-width: 92vw; }
  .iv-hero-center h1 { font-size: clamp(44px, 14vw, 64px); }
  .iv-section { padding: 9vh 6vw; }
  .iv-stats { gap: 26px; margin-top: 46px; }
  .iv-bars { margin-top: 40px; }
  .iv-acq { gap: 30px; }
  .iv-footer { flex-direction: column; text-align: center; }
}
