:root {
  --ink: #15182f;
  --ink-soft: #545b70;
  --ink-muted: #73798a;
  --paper: #f3efec;
  --surface: #ffffff;
  --blue: #0083ef;
  --blue-dark: #0069c5;
  --blue-soft: #e8f4ff;
  --green: #40c076;
  --green-soft: #eaf8f0;
  --orange: #ff9a55;
  --orange-soft: #fff0e5;
  --purple: #9b72dc;
  --purple-soft: #f2ecff;
  --navy: #17294a;
  --line: rgba(21, 24, 47, .12);
  --shadow-sm: 0 8px 24px rgba(22, 33, 59, .08);
  --shadow-md: 0 18px 44px rgba(22, 33, 59, .12);
  --shadow-lg: 0 30px 80px rgba(22, 33, 59, .18);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.raise-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 131, 239, .13), transparent 26%),
    radial-gradient(circle at 92% 0%, rgba(155, 114, 220, .16), transparent 28%),
    linear-gradient(180deg, #fbfaf8 0%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.raise-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 44px);
  background: rgba(243,239,236,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(21, 24, 47, .08);
}
.raise-brand img { width: 154px; height: auto; }
.raise-header-center { min-width: 0; text-align: center; }
.raise-kicker,
.eyebrow,
.insight-kicker {
  display: block;
  color: var(--blue);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.raise-header-center strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 700;
}
.raise-header-actions { display: flex; gap: 10px; align-items: center; }
.ghost-link,
.primary-link,
.text-button,
.mobile-button,
.zoom-button,
.lightbox button {
  border: 1px solid rgba(21, 24, 47, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--ink);
  cursor: pointer;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ghost-link,
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; }
.primary-link,
.mobile-button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 12px 26px rgba(0,131,239,.22); }
.ghost-link:hover,
.primary-link:hover,
.text-button:hover,
.mobile-button:hover,
.zoom-button:hover,
.lightbox button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 131, 239, .35); outline-offset: 3px; }

.raise-main { width: min(calc(100% - 34px), var(--container)); margin: 0 auto; padding: clamp(28px, 4vw, 52px) 0 70px; }
.raise-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}
.raise-intro h1 {
  margin: 8px 0 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.04em;
}
.raise-intro p { margin: 0; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.55; }

.deck-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid rgba(21, 24, 47, .08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-lg);
}
.stage-topline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 16px; }
.slide-counter { display: inline-flex; align-items: baseline; gap: 5px; font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; color: var(--blue); }
.slide-counter span:nth-child(2), .slide-counter span:nth-child(3) { color: var(--ink-muted); }
.progress-track { height: 7px; border-radius: 999px; background: rgba(21, 24, 47, .08); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 7%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--purple)); transition: width .32s ease; }
.text-button { min-height: 38px; padding: 0 14px; }

.story-rail { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 16px; scrollbar-width: thin; }
.story-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(21, 24, 47, .1);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 800;
}
.story-pill.is-active { color: var(--blue); border-color: rgba(0, 131, 239, .28); background: var(--blue-soft); }

.deck-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(16px, 2.3vw, 30px);
  align-items: stretch;
}
.slide-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 24, 47, .12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 33, 59, .15);
  isolation: isolate;
}
.slide-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.slide-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; user-select: none; }
.zoom-button { position: absolute; right: 14px; bottom: 14px; min-height: 40px; padding: 0 14px; color: var(--blue-dark); background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); }

.insight-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(21,24,47,.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(251,250,248,.9));
  box-shadow: var(--shadow-md);
}
.insight-panel h2 {
  margin: 10px 0 12px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.insight-panel p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
#insight-points { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
#insight-points li { position: relative; padding-left: 24px; color: var(--ink); font-size: .96rem; line-height: 1.44; }
#insight-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.investor-note { margin-top: auto; padding: 18px; border-radius: 20px; background: var(--blue-soft); border: 1px solid rgba(0, 131, 239, .18); }
.investor-note span { display: block; margin-bottom: 6px; color: var(--blue-dark); font-family: "Montserrat", system-ui, sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.investor-note p { color: var(--navy); font-size: .94rem; line-height: 1.45; }

.nav-button {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 60px;
  height: 76px;
  border: 1px solid rgba(21,24,47,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--blue);
}
.nav-button span { font-size: 3.2rem; line-height: .8; font-family: Georgia, serif; }
.nav-button.prev { left: 14px; }
.nav-button.next { right: calc(360px + 44px); }
.nav-button:hover { background: #fff; box-shadow: var(--shadow-lg); }
.nav-button:disabled { opacity: .35; cursor: not-allowed; }
.mobile-controls { display: none; }

.thumbnail-drawer { margin-top: 18px; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.thumb-button { display: grid; gap: 6px; border: 1px solid rgba(21,24,47,.12); border-radius: 16px; background: #fff; padding: 8px; cursor: pointer; text-align: left; }
.thumb-button img { border-radius: 10px; border: 1px solid rgba(21,24,47,.06); }
.thumb-button span { color: var(--ink-soft); font-size: .72rem; font-weight: 700; line-height: 1.2; }
.thumb-button.is-active { border-color: rgba(0, 131, 239, .5); box-shadow: 0 0 0 3px rgba(0, 131, 239, .12); }

.lightbox {
  width: min(96vw, 1540px);
  max-width: 1540px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #0f1830;
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.lightbox::backdrop { background: rgba(10, 16, 33, .78); backdrop-filter: blur(8px); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; color: #fff; }
.lightbox-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.lightbox button { min-height: 38px; padding: 0 14px; }
.lightbox img { width: 100%; height: auto; max-height: calc(90vh - 66px); object-fit: contain; background: #fff; }

@media (max-width: 1120px) {
  .raise-header { grid-template-columns: auto 1fr; }
  .raise-header-center { display: none; }
  .raise-header-actions { justify-content: end; }
  .raise-intro { grid-template-columns: 1fr; }
  .deck-grid { grid-template-columns: 1fr; }
  .insight-panel { order: 2; }
  .nav-button { display: none; }
  .mobile-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  .mobile-button { min-height: 52px; padding: 0 18px; }
  .thumbnail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .raise-header { padding: 12px 14px; gap: 12px; }
  .raise-brand img { width: 118px; }
  .ghost-link { display: none; }
  .primary-link { min-height: 38px; padding-inline: 12px; font-size: .74rem; }
  .raise-main { width: min(calc(100% - 20px), var(--container)); padding-top: 24px; }
  .raise-intro h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .raise-intro p { font-size: .98rem; }
  .deck-shell { padding: 12px; border-radius: 28px; }
  .stage-topline { grid-template-columns: auto 1fr auto; gap: 10px; }
  .story-rail { padding-bottom: 12px; }
  .slide-frame { border-radius: 20px; overflow-x: auto; }
  .slide-frame img { min-width: 900px; max-width: none; }
  .zoom-button { display: none; }
  .insight-panel { padding: 18px; border-radius: 22px; }
  .investor-note { margin-top: 18px; }
  .thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Investor-context refinement */
.raise-footer {
  width: min(calc(100% - 34px), var(--container));
  margin: -38px auto 32px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(21, 24, 47, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .66);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.raise-footer > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.raise-footer strong {
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .94rem;
}
.raise-footer span { font-size: .88rem; }
.raise-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: .88rem;
  font-weight: 700;
}
.raise-footer-links a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-color: rgba(0, 105, 197, .28);
  text-underline-offset: 3px;
}
.raise-footer-links a:hover { text-decoration-color: currentColor; }

.contact-dialog {
  width: min(92vw, 660px);
  padding: 30px;
  border: 1px solid rgba(21, 24, 47, .1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(155, 114, 220, .18), transparent 38%),
    linear-gradient(180deg, #fff, #fbfaf8);
  color: var(--ink);
  box-shadow: 0 34px 110px rgba(10, 18, 38, .32);
}
.contact-dialog::backdrop {
  background: rgba(10, 16, 33, .64);
  backdrop-filter: blur(8px);
}
.contact-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(21, 24, 47, .1);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.contact-person {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  align-items: center;
}
.contact-person img {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  object-fit: cover;
  background: #ffc928;
  box-shadow: var(--shadow-md);
}
.contact-kicker {
  color: var(--blue);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-person h2 {
  margin: 8px 0 6px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.contact-person p { margin: 0; color: var(--ink-soft); }
.contact-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.contact-primary,
.contact-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}
.contact-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 131, 239, .22);
}
.contact-secondary {
  border: 1px solid rgba(21, 24, 47, .14);
  background: #fff;
  color: var(--ink);
}
#copy-email {
  grid-column: 1 / -1;
  min-height: 44px;
  font-size: .82rem;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(21, 24, 47, .1);
  color: var(--blue-dark);
  font-size: .9rem;
  font-weight: 700;
}
.contact-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--green);
  font-size: .86rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .raise-footer {
    width: min(calc(100% - 20px), var(--container));
    margin-top: -20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .raise-footer > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .raise-footer-links {
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .contact-dialog { padding: 24px 20px; }
  .contact-person {
    grid-template-columns: 86px 1fr;
    gap: 16px;
  }
  .contact-person img {
    width: 86px;
    height: 86px;
    border-radius: 22px;
  }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-details { flex-direction: column; gap: 8px; }
}
