html { scroll-behavior: smooth; }
body { background:#fff; color:#4A4A5A; font-family:'Geist',sans-serif; font-size:1.0625rem; }

/* Anchor targets sit below fixed header + sticky subnav. */
.ontarioai-investors-portal .ontarioai-investor-thesis-section,
.ontarioai-investors-portal .ontarioai-investor-market-section,
.ontarioai-investors-portal .ontarioai-investor-roadmap-section,
.ontarioai-investors-portal .ontarioai-investor-revenue-section,
.ontarioai-investors-portal .ontarioai-investor-financials-section,
.ontarioai-investors-portal .ontarioai-investor-funding-section,
.ontarioai-investors-portal .ontarioai-investor-documents-section,
.ontarioai-investors-portal .ontarioai-investor-contact-section,
#ir-portal-content .ontarioai-investor-thesis-section,
#ir-portal-content .ontarioai-investor-market-section,
#ir-portal-content .ontarioai-investor-roadmap-section,
#ir-portal-content .ontarioai-investor-revenue-section,
#ir-portal-content .ontarioai-investor-financials-section,
#ir-portal-content .ontarioai-investor-funding-section,
#ir-portal-content .ontarioai-investor-documents-section,
#ir-portal-content .ontarioai-investor-contact-section {
  scroll-margin-top: 8.5rem;
}

/* Thesis section — match mockup py-28 bg-surface when Tailwind/Elementor omit utilities. */
.ontarioai-investor-thesis-section.bg-surface,
.elementor-widget-ontarioai-investor-thesis .ontarioai-investor-thesis-section.bg-surface {
  background-color: #F4F3F0;
}

/* Market section — bg utilities when Tailwind is not loaded in Elementor context. */
.ontarioai-investor-market-section.bg-white,
.elementor-widget-ontarioai-investor-market .ontarioai-investor-market-section.bg-white {
  background-color: #fff;
}
.ontarioai-investor-market-section.bg-surface,
.elementor-widget-ontarioai-investor-market .ontarioai-investor-market-section.bg-surface {
  background-color: #F4F3F0;
}
.ontarioai-investor-market-section.bg-navy,
.elementor-widget-ontarioai-investor-market .ontarioai-investor-market-section.bg-navy {
  background-color: #0F1629;
}

/* Financials section — bg utilities when Tailwind is not loaded in Elementor context. */
.ontarioai-investor-financials-section.bg-white,
.elementor-widget-ontarioai-investor-financials .ontarioai-investor-financials-section.bg-white {
  background-color: #fff;
}
.ontarioai-investor-financials-section.bg-surface,
.elementor-widget-ontarioai-investor-financials .ontarioai-investor-financials-section.bg-surface {
  background-color: #F4F3F0;
}
.ontarioai-investor-financials-section.bg-navy,
.elementor-widget-ontarioai-investor-financials .ontarioai-investor-financials-section.bg-navy {
  background-color: #0F1629;
}
.ontarioai-investor-financials-section.hero-mesh,
.elementor-widget-ontarioai-investor-financials .ontarioai-investor-financials-section.hero-mesh {
  background-color: #0F1629;
}

/* Financials typography defaults (overridable in Elementor Style tab). */
.ontarioai-investors-portal .ontarioai-investor-financials-heading,
.elementor-widget-ontarioai-investor-financials .ontarioai-investor-financials-heading {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.ontarioai-investors-portal .ontarioai-investor-financials-intro,
.elementor-widget-ontarioai-investor-financials .ontarioai-investor-financials-intro {
  font-size: 1.125rem;
}

/* Funding section — bg utilities when Tailwind is not loaded in Elementor context. */
.ontarioai-investor-funding-section.bg-white,
.elementor-widget-ontarioai-investor-funding .ontarioai-investor-funding-section.bg-white {
  background-color: #fff;
}
.ontarioai-investor-funding-section.bg-surface,
.elementor-widget-ontarioai-investor-funding .ontarioai-investor-funding-section.bg-surface {
  background-color: #F4F3F0;
}
.ontarioai-investor-funding-section.bg-navy,
.elementor-widget-ontarioai-investor-funding .ontarioai-investor-funding-section.bg-navy {
  background-color: #0F1629;
}
.ontarioai-investor-funding-section.hero-mesh,
.elementor-widget-ontarioai-investor-funding .ontarioai-investor-funding-section.hero-mesh {
  background-color: #0F1629;
}

/* Funding typography defaults (overridable in Elementor Style tab). */
.ontarioai-investors-portal .ontarioai-investor-funding-heading,
.elementor-widget-ontarioai-investor-funding .ontarioai-investor-funding-heading {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.ontarioai-investors-portal .ontarioai-investor-funding-intro,
.elementor-widget-ontarioai-investor-funding .ontarioai-investor-funding-intro {
  font-size: 1.125rem;
}

/* Elementor flex containers break native position:sticky — JS adds .is-pinned. */
.ontarioai-investor-sticky-nav.is-pinned,
#ir-portal-content > .sticky.top-16.is-pinned {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
}

.ontarioai-investor-sticky-nav-placeholder {
  display: block;
  height: 0;
  pointer-events: none;
}

/* Allow sticky/pinned subnav to escape Elementor overflow clipping. */
.ontarioai-investors-portal .elementor-widget-ontarioai-investor-sticky-nav,
.ontarioai-investors-portal .elementor-widget-ontarioai-investor-sticky-nav > .elementor-widget-container,
.ontarioai-investors-portal .elementor-element:has(> .elementor-widget-ontarioai-investor-sticky-nav),
.ontarioai-investors-portal .elementor-element:has(> .elementor-widget-ontarioai-investor-sticky-nav).e-con {
  overflow: visible !important;
}

/* Hero typography defaults (overridable in Elementor Style tab). */
.ontarioai-investors-portal .ontarioai-investor-hero-title,
.elementor-widget-ontarioai-investor-hero .ontarioai-investor-hero-title {
  font-size: 3.45rem;
}

.ontarioai-investors-portal .ontarioai-investor-hero-lead,
.elementor-widget-ontarioai-investor-hero .ontarioai-investor-hero-lead {
  font-size: 1.125rem;
}

::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:#0F1629; }
::-webkit-scrollbar-thumb { background:#6B46FF; border-radius:3px; }

.nav-link { position:relative; }
.nav-link::after { content:''; position:absolute; bottom:-2px; left:0; width:0; height:1px; background:#6B46FF; transition:width .3s; }
.nav-link:hover::after { width:100%; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
/* Drop transform after reveal so descendant text (esp. monospace) renders crisply. */
.reveal.visible.is-revealed { transform:none; transition:opacity .7s ease; }

.tabular-nums { font-variant-numeric:tabular-nums; }

.stagger > *:nth-child(1) { transition-delay:.04s; }
.stagger > *:nth-child(2) { transition-delay:.10s; }
.stagger > *:nth-child(3) { transition-delay:.16s; }
.stagger > *:nth-child(4) { transition-delay:.22s; }
.stagger > *:nth-child(5) { transition-delay:.28s; }

/* Hero */
.hero-mesh {
  background-color:#0F1629;
  background-image:
    radial-gradient(ellipse 55% 70% at 70% 40%, rgba(107,70,255,.22) 0%, transparent 70%),
    radial-gradient(ellipse 35% 50% at 15% 85%, rgba(107,70,255,.10) 0%, transparent 65%);
}
.hero-mesh > svg.hero-mesh__canvas,
.hero-mesh > svg.hero-mesh__dots {
  position:absolute; inset:0; width:100%; height:100%; max-width:none;
  transform:none; left:0; top:0;
}
.hero-mesh > svg.hero-mesh__canvas { z-index:1; }
.hero-mesh > svg.hero-mesh__dots { z-index:2; }
.hero-mesh > .relative.z-10 { z-index:10; }
.dot-grid { background-image:radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px); background-size:36px 36px; }

/* Investor news grid */
.ontarioai-investor-news-grid .ontarioai-investor-news-card {
  min-height:100%;
}
.ontarioai-investor-news-card--featured .dot-grid {
  pointer-events:none;
}
.ontarioai-investor-news-single .article-body a {
  color:#6B46FF;
}
.ontarioai-investor-news-single-page.ir-portal-gate-only #ir-gate {
  min-height:calc(100vh - var(--header-height, 72px));
}

/* Breadcrumb */
.bc-sep::before { content:'/'; margin:0 8px; opacity:.3; }

/* Metric card */
.metric-card { transition:transform .3s, box-shadow .3s, border-color .3s; }
.metric-card:hover { transform:translateY(-4px); box-shadow:0 16px 48px rgba(107,70,255,.14); border-color:rgba(107,70,255,.4); }

/* Phase timeline */
.phase-track {
  position:relative;
  --phase-dot-size:44px;
  --phase-line-y:calc(var(--phase-dot-size) / 2);
}
.phase-track::before {
  content:''; position:absolute;
  top:calc(var(--phase-line-y) - 1px);
  left:calc(16.666% + var(--phase-dot-size) / 2);
  right:calc(16.666% + var(--phase-dot-size) / 2);
  height:2px; z-index:0; pointer-events:none;
  background:linear-gradient(to right,
    #6B46FF 0%,
    #6B46FF var(--phase-progress, 0%),
    rgba(107,70,255,.35) var(--phase-progress, 0%),
    rgba(107,70,255,.12) 100%);
  transition:background .45s ease;
}
.phase-track-full::before {
  left:calc(var(--phase-dot-size) / 2);
  right:calc(var(--phase-dot-size) / 2);
}
.phase-step {
  flex:1; display:flex; flex-direction:column; align-items:center;
  background:none; border:none; padding:0; cursor:pointer; text-align:center;
  color:inherit; font:inherit;
  transition:opacity .25s ease;
}
.phase-track-full .phase-step {
  flex:0 0 auto;
}
.phase-step--start {
  align-items:flex-start;
  text-align:left;
}
.phase-step--center {
  align-items:center;
  text-align:center;
}
.phase-step--end {
  align-items:flex-end;
  text-align:right;
}
.phase-step--start .phase-step-dot-row {
  justify-content:flex-start;
}
.phase-step--center .phase-step-dot-row {
  justify-content:center;
}
.phase-step--end .phase-step-dot-row {
  justify-content:flex-end;
}
.phase-step:hover { opacity:.92; }
.phase-step:focus-visible { outline:2px solid #6B46FF; outline-offset:4px; border-radius:12px; }
.phase-step-dot-row {
  height:var(--phase-dot-size); display:flex; align-items:center; justify-content:center;
  margin-bottom:1.25rem; position:relative; z-index:1;
}
.phase-dot {
  width:var(--phase-dot-size); height:var(--phase-dot-size); border-radius:50%; border:2px solid;
  display:flex; align-items:center; justify-content:center; position:relative; z-index:1;
  transition:background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.phase-dot.done  { background:#6B46FF; border-color:#6B46FF; box-shadow:0 0 0 6px rgba(107,70,255,.15); }
.phase-dot.next  { background:#0F1629; border-color:#6B46FF; box-shadow:0 0 0 6px rgba(107,70,255,.12); transform:scale(1.06); }
.phase-dot.later { background:#0F1629; border-color:rgba(107,70,255,.3); box-shadow:none; transform:scale(1); }
.phase-step-label { transition:color .3s ease, opacity .3s ease; }
.phase-step[aria-selected="true"] .phase-step-label:nth-child(2) { color:#6B46FF; opacity:1; }
.phase-step[aria-selected="true"] .phase-step-label:nth-child(3) { color:#fff; opacity:1; }
.phase-step[aria-selected="false"] .phase-step-label:nth-child(2) { color:rgba(255,255,255,.35); opacity:1; }
.phase-step[aria-selected="false"] .phase-step-label:nth-child(3) { color:rgba(255,255,255,.6); opacity:1; }
.phase-step-label-muted { opacity:.65; }
.phase-step[aria-selected="true"] .phase-step-label-muted { opacity:1; }

/* Phase detail cards */
.phase-cards { position:relative; }
.phase-card {
  cursor:pointer;
  transition:opacity .4s ease, transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.phase-card.is-inactive {
  opacity:.55; transform:scale(.98);
  border-color:rgba(255,255,255,.1) !important;
  box-shadow:none !important;
}
.phase-card.is-inactive:hover {
  opacity:.72; transform:scale(.99);
}
.phase-card:focus-visible {
  outline:2px solid rgba(107,70,255,.6);
  outline-offset:3px;
}
.phase-card.is-active {
  opacity:1; transform:scale(1);
  border-color:rgba(107,70,255,.35) !important;
  box-shadow:0 0 40px rgba(107,70,255,.12) !important;
}
.phase-active-badge {
  transition:opacity .3s ease, transform .3s ease;
}
.phase-active-badge[hidden] { display:none; }
@keyframes phaseCardIn {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
@media (max-width:767px) {
  .phase-card { display:none; }
  .phase-card.is-active {
    display:block;
    animation:phaseCardIn .4s ease;
  }
  .phase-track-mobile .phase-track::before {
    left:calc(12.5% + var(--phase-dot-size) / 2);
    right:calc(12.5% + var(--phase-dot-size) / 2);
  }
}

/* Revenue / market progress bars */
.rev-bar {
  height: 100%;
  min-height: 8px;
  border-radius: 9999px;
  background: #6B46FF;
  transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
  width: 0;
}
.rev-bar-amber { background:#F5A623; }

/* Comparison table */
.comp-row:hover td { background:rgba(107,70,255,.04); }
.chk { color:#0D7A65; font-weight:700; }
.crs { color:#D0CEC8; }
.half { color:#F5A623; }

/* Document card */
.doc-card { transition:border-color .25s, background .25s; }
.doc-card:hover { border-color:rgba(107,70,255,.5); background:rgba(107,70,255,.04); }

/* Form input */
.ir-input {
  width:100%; background:#fff; border:1.5px solid #D0CEC8; border-radius:.75rem;
  padding:.85rem 1.1rem; font-family:'Geist',sans-serif; font-size:.9375rem; color:#0F1629;
  transition:border-color .2s, box-shadow .2s; outline:none;
}
.ir-input:focus { border-color:#6B46FF; box-shadow:0 0 0 3px rgba(107,70,255,.12); }
.ir-input::placeholder { color:#D0CEC8; }
textarea.ir-input { resize:vertical; min-height:130px; }
select.ir-input { appearance:none; cursor:pointer; }

/* Gated lock card */
.gated-card { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10); }
.gated-card:hover { border-color:rgba(107,70,255,.4); background:rgba(107,70,255,.07); }

/* Subav */
.subnav-link { display:inline-block; padding:.6rem 1.25rem; border-bottom:2px solid transparent; font-family:'DM Mono',monospace; font-size:.8125rem; letter-spacing:.06em; text-transform:uppercase; transition:all .2s; color:#4A4A5A; }
.subnav-link:hover { color:#0F1629; border-bottom-color:rgba(107,70,255,.4); }
.subnav-link.active { color:#6B46FF; border-bottom-color:#6B46FF; }

/* wave */
.wave-line { stroke-dasharray:1000; stroke-dashoffset:1000; animation:drawLine 3s ease forwards; }
.wave-line:nth-child(2){ animation-delay:.4s; }
@keyframes drawLine { to { stroke-dashoffset:0; } }

/* lock icon overlay */
.lock-overlay { position:absolute; inset:0; background:rgba(15,22,41,.75); backdrop-filter:blur(4px); border-radius:1rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.75rem; }

/* IR portal access gate */
.ir-gate {
  position:fixed; inset:0; z-index:100;
  background:#0F1629;
  background-image:
    radial-gradient(ellipse 55% 70% at 70% 40%, rgba(107,70,255,.22) 0%, transparent 70%),
    radial-gradient(ellipse 35% 50% at 15% 85%, rgba(107,70,255,.10) 0%, transparent 65%);
  display:flex; align-items:center; justify-content:center; padding:1.5rem;
  transition:opacity .4s ease, visibility .4s ease;
}
.ir-gate.is-hidden { opacity:0; visibility:hidden; pointer-events:none; }
.ir-gate__view { width:100%; }
.ir-gate__view[hidden] { display:none !important; }
.ir-gate.ir-gate--request-page {
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  overflow-y:auto;
  padding:0;
}
.ir-gate__view--login {
  display:flex; align-items:center; justify-content:center;
  min-height:100%; padding:1.5rem;
}
.ir-gate__request-nav {
  position:sticky; top:0; z-index:2;
  width:100%; flex-shrink:0;
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
  padding:1rem 1.5rem;
  background:#0F1629;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.ir-gate__request-nav .ir-gate__back {
  position:static; top:auto; left:auto;
  background:none; border:none; cursor:pointer;
  font-family:'DM Mono',monospace; font-size:.8125rem; letter-spacing:.04em;
  color:rgba(255,255,255,.65); text-decoration:none;
  display:inline-flex; align-items:center; gap:.4rem;
  white-space:nowrap; flex-shrink:0;
  transition:color .2s; padding:0;
}
.ir-gate__request-nav .ir-gate__back:hover { color:#6B46FF; }
.ir-gate__back-icon { width:1rem; height:1rem; flex-shrink:0; }
.ir-gate__card {
  position:relative;
  width:100%; max-width:28rem;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12);
  border-radius:1.5rem; padding:2.5rem; text-align:center;
  box-shadow:0 0 80px rgba(107,70,255,.15);
}
.ir-gate__card .ir-gate__back {
  position:absolute; top:1.25rem; left:1.25rem;
  display:inline-flex; align-items:center; gap:.35rem;
  font-family:'DM Mono',monospace; font-size:.75rem; letter-spacing:.04em;
  color:rgba(255,255,255,.45); text-decoration:none;
  white-space:nowrap;
  transition:color .2s;
}
.ir-gate__card .ir-gate__back:hover { color:#6B46FF; }
.ir-gate__input {
  width:100%; background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.15);
  border-radius:.75rem; padding:.85rem 1.1rem; font-family:'Geist',sans-serif;
  font-size:.9375rem; color:#fff; outline:none; transition:border-color .2s, box-shadow .2s;
}
.ir-gate__input:focus { border-color:#6B46FF; box-shadow:0 0 0 3px rgba(107,70,255,.2); }
.ir-gate__input::placeholder { color:rgba(255,255,255,.35); }
.ir-gate-error { color:#F5A623; font-size:.8125rem; margin-top:.5rem; display:none; }
.ir-gate-error.is-visible { display:block; }
.ir-request-flash {
  border-radius:.75rem; padding:.85rem 1rem; font-size:.875rem; line-height:1.5; margin-bottom:1rem;
}
.ir-request-flash--success {
  background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.35); color:#166534;
}
.ir-request-flash--error {
  background:rgba(245,166,35,.12); border:1px solid rgba(245,166,35,.35); color:#92400e;
}
.ir-access-honeypot {
  position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;
}
.ir-request-access-section { background:transparent; }
.ir-gate--request-page .ir-request-access__title { color:#fff; }
.ir-gate--request-page .ir-request-access__lead { color:rgba(255,255,255,.55); }
.ir-gate--request-page .ir-request-access__callout {
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.12);
}
.ir-gate--request-page .ir-request-access__callout-title { color:#fff; }
.ir-gate--request-page .ir-request-access__callout-text { color:rgba(255,255,255,.45); }
