/* Connected Nodes — rails frame content left + right */

.page-nodes {
  --cn-green: #10b981;
  --cn-bright: #10b981;
  --cn-rail-w: 56px;
  --cn-gutter: 72px; /* space reserved for each rail + gap */
  position: relative;
}

.page-nodes .cn-rail {
  position: absolute;
  top: 0;
  width: var(--cn-rail-w);
  height: 100%;
  z-index: 40;
  pointer-events: none;
  overflow: visible;
  /* Hide anything that would sit over the sticky menu */
  clip-path: inset(var(--cn-clip-top, 72px) -40px var(--cn-clip-bottom, 0px) -40px);
}

/* Pin rails to the far left / far right of the viewport */
.page-nodes .cn-rail--left {
  left: 12px;
  right: auto;
}

.page-nodes .cn-rail--right {
  right: 12px;
  left: auto;
}

/* Left rail on all viewports; right rail always off */
.page-nodes .cn-rail--right {
  display: none !important;
}

.page-nodes .cn-rail--left {
  display: block;
  z-index: 60;
}

.page-nodes .cn-traveler {
  fill: var(--cn-bright);
  stroke: #ffffff;
  stroke-width: 2;
}

.page-nodes .cn-node.is-active {
  fill: #00e676;
  stroke: #00e676;
}

/* Compact left rail on phones / tablets */
@media (max-width: 991.98px) {
  .page-nodes {
    --cn-rail-w: 28px;
    --cn-gutter: 36px;
  }
  .page-nodes .cn-rail--left {
    left: 2px;
    opacity: 0.95;
  }
  .page-nodes .cn-track {
    stroke-width: 1.8;
  }
  .page-nodes .cn-progress {
    stroke-width: 2.2;
  }
}

@media (max-width: 575.98px) {
  .page-nodes {
    --cn-rail-w: 24px;
    --cn-gutter: 30px;
  }
  .page-nodes .cn-rail--left {
    left: 1px;
  }
}

.page-nodes .cn-rail__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.page-nodes .cn-track,
.page-nodes .cn-track--r {
  stroke: rgba(0, 200, 83, 0.22);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
}

.page-nodes .cn-progress,
.page-nodes .cn-progress--r {
  stroke: url(#cnGrad);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.page-nodes .cn-progress--r {
  stroke: url(#cnGradR);
}

.page-nodes .cn-node,
.page-nodes .cn-node--r {
  fill: #ffffff;
  stroke: rgba(16, 185, 129, 0.45);
  stroke-width: 2;
  transition: fill 0.25s ease, stroke 0.25s ease;
}

.page-nodes .cn-node.is-active,
.page-nodes .cn-node--r.is-active {
  fill: var(--cn-bright);
  stroke: var(--cn-bright);
  filter: url(#cnGlow);
}

.page-nodes .cn-node.is-passed,
.page-nodes .cn-node--r.is-passed {
  fill: var(--cn-green);
  stroke: var(--cn-green);
}

/* Start hub — geometric snowflake motif */
.page-nodes .cn-start-hub {
  fill: none;
  stroke: none;
  filter: url(#cnGlow);
}

.page-nodes .cn-start-hub__lines line {
  stroke: var(--cn-bright);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.95;
}

.page-nodes .cn-start-hub__dots circle {
  fill: var(--cn-bright);
  stroke: none;
}

.page-nodes .cn-start-hub.is-active .cn-start-hub__lines line,
.page-nodes .cn-start-hub.is-passed .cn-start-hub__lines line {
  stroke: var(--cn-bright);
}

.page-nodes .cn-start-hub.is-active .cn-start-hub__dots circle,
.page-nodes .cn-start-hub.is-passed .cn-start-hub__dots circle {
  fill: var(--cn-bright);
}

.page-nodes .cn-start-hub:not(.is-active):not(.is-passed) .cn-start-hub__lines line {
  stroke: rgba(0, 200, 83, 0.55);
}

.page-nodes .cn-start-hub:not(.is-active):not(.is-passed) .cn-start-hub__dots circle {
  fill: rgba(0, 200, 83, 0.75);
}

.page-nodes .cn-traveler,
.page-nodes .cn-traveler--r {
  fill: var(--cn-bright);
  stroke: #ffffff;
  stroke-width: 2;
  opacity: 0;
}

.page-nodes .cn-traveler.is-on,
.page-nodes .cn-traveler--r.is-on {
  opacity: 1;
}

.page-nodes .cn-node-ring {
  display: none;
}

/* Content sits strictly between the two rails */
.page-nodes #main-content .hp-container {
  max-width: min(1400px, calc(100% - (var(--cn-gutter) * 2)));
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

/* CTA + footer — full width, no rail gutter */
.page-nodes #apply .hp-container {
  max-width: 1400px;
}

.page-nodes .hp-about__layout--solo {
  grid-template-columns: 1fr !important;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.page-nodes .hp-about__visual {
  width: 100%;
  min-height: 0;
  display: block;
}

.page-nodes .hp-about .hp-collab__media {
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 10;
  max-height: 360px;
}

@media (max-width: 991.98px) {
  .page-nodes .hp-about .hp-collab__media {
    max-height: 260px;
  }
}

.page-nodes .hp-stories--nodes .hp-section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

@media (min-width: 992px) {
  .page-nodes {
    --cn-rail-w: 64px;
    --cn-gutter: 88px;
  }
  .page-nodes .cn-rail--left {
    left: 20px;
  }
  .page-nodes #main-content .hp-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .page-nodes {
    --cn-rail-w: 72px;
    --cn-gutter: 96px;
  }
  .page-nodes .cn-rail--left {
    left: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-nodes .cn-traveler,
  .page-nodes .cn-traveler--r {
    display: none;
  }
}

/* ── Hero video + Wiron-style play control ── */
.page-nodes .hp-hero__inner--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.page-nodes .hp-hero--video .hp-hero__overlay,
.page-nodes .hp-hero--video .hp-hero__particles {
  display: none !important;
}

.page-nodes .hp-hero--video .hp-hero__media {
  background: var(--bg-white, #ffffff);
}

.page-nodes .hp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
}

/*
 * Mobile: clear fixed navbar, then fill frame (crop MP4 letterbox).
 */
@media (max-width: 991.98px) {
  .page-nodes .hp-hero.hp-hero--video {
    min-height: 0;
    height: auto;
    max-height: none;
    width: 100%;
    aspect-ratio: unset;
    padding-top: 4rem; /* space under fixed navbar */
    overflow: hidden;
    background: var(--bg-white, #ffffff);
  }

  .page-nodes .hp-hero--video .hp-hero__media {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-white, #ffffff);
  }

  .page-nodes .hp-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    transform: translate(-50%, -50%) scale(1.42);
    transform-origin: center center;
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 575.98px) {
  .page-nodes .hp-hero.hp-hero--video {
    padding-top: 3.65rem;
  }

  .page-nodes .hp-hero--video .hp-hero__media {
    aspect-ratio: 16 / 9;
  }

  .page-nodes .hp-hero__video {
    transform: translate(-50%, -50%) scale(1.52);
  }
}

/* Split hero play control (hero.jpeg layout) */
.page-nodes .hp-hero--split .hp-hero__play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: 4px solid #fff;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: rgba(16, 185, 129, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: none;
}
.page-nodes .hp-hero--split .hp-hero__play:hover {
  background: rgba(16, 185, 129, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.35);
}
.page-nodes .hp-hero--split .hp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.page-nodes .hp-hero__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.page-nodes .hp-hero__play-icon {
  display: none;
  line-height: 0;
}

.page-nodes .hp-hero__play-icon i {
  font-size: 1.85rem;
}

.page-nodes .hp-hero__play-icon--play {
  display: grid;
  place-items: center;
  padding-left: 3px; /* optical center for play triangle */
}

.page-nodes .hp-hero__play.is-playing .hp-hero__play-icon--play {
  display: none;
}

.page-nodes .hp-hero__play.is-playing .hp-hero__play-icon--pause {
  display: grid;
  place-items: center;
}

@keyframes hpHeroPlayPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35), 0 12px 28px rgba(16, 185, 129, 0.2); }
  70% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0), 0 12px 28px rgba(16, 185, 129, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 12px 28px rgba(16, 185, 129, 0.2); }
}

@media (max-width: 991.98px) {
  .page-nodes .hp-hero__play {
    left: 1rem;
    bottom: 1.15rem;
  }
  .page-nodes .hp-hero--split .hp-hero__play {
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 767.98px) {
  .page-nodes .hp-hero__play {
    width: 48px;
    height: 48px;
    left: 0.85rem;
    bottom: 1rem;
  }
  .page-nodes .hp-hero__play-icon i {
    font-size: 1.35rem;
  }
  .page-nodes .hp-hero--split .hp-hero__play {
    width: 68px;
    height: 68px;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-nodes .hp-hero__play {
    animation: none;
  }
}

/* Header — transparent over hero; white after scroll (home). Inner pages solid white. */
.page-nodes .header-shell {
  max-width: min(1400px, calc(100% - (var(--cn-gutter) * 2)));
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  .page-nodes .header-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.page-nodes .site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}

.page-nodes .site-header.scrolled,
body.page-nodes.menu-open .site-header,
.page-inner .site-header,
.page-inner .site-header.scrolled,
body.page-inner.menu-open .site-header {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
}

.page-nodes .site-header .nav-link-custom {
  color: #111 !important;
}

.page-nodes .site-header .nav-link-custom:hover,
.page-nodes .site-header .nav-link-custom:focus {
  color: #000 !important;
}

.page-nodes .site-header.scrolled .nav-link-custom,
.page-inner .site-header .nav-link-custom,
.page-inner .site-header.scrolled .nav-link-custom {
  color: rgba(255, 255, 255, 0.92) !important;
}

.page-nodes .site-header.scrolled .nav-link-custom:hover,
.page-nodes .site-header.scrolled .nav-link-custom:focus,
.page-inner .site-header .nav-link-custom:hover,
.page-inner .site-header .nav-link-custom:focus,
.page-inner .site-header.scrolled .nav-link-custom:hover,
.page-inner .site-header.scrolled .nav-link-custom:focus {
  color: #fff !important;
}

.page-nodes #menu-toggle {
  color: #111 !important;
}

.page-nodes .site-header.scrolled #menu-toggle,
.page-inner #menu-toggle,
.page-inner .site-header.scrolled #menu-toggle,
body.menu-open #menu-toggle {
  color: #fff !important;
}

.page-nodes .site-header .nav-link-custom::after,
.page-inner .site-header .nav-link-custom::after {
  background: var(--accent, #10b981);
}

/* Node colors — light theme */
.page-nodes .cn-node,
.page-nodes .cn-node--r {
  fill: #ffffff;
  stroke: rgba(16, 185, 129, 0.45);
}

.page-nodes .cn-traveler,
.page-nodes .cn-traveler--r {
  fill: var(--cn-bright);
  stroke: #ffffff;
}

/* Stories card height fill (no gap) — dark theme */
.page-nodes .hp-story-card > .row,
.page-nodes .story-card > .row {
  align-items: stretch;
  min-height: 100%;
}

.page-nodes .hp-story-card > .row > [class*="col-"],
.page-nodes .story-card > .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.page-nodes .hp-story-panel.story-panel,
.page-nodes .hp-story-content.story-content {
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
}
