/* Civium — shared interaction patterns (tabs, step wheel, snap rail) */

/* —— Segmented tabs —— */
.ci-seg-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  margin: 0 0 28px;
  background: rgba(26, 52, 97, 0.06);
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-radius: 999px;
  max-width: 100%;
}
.ci-seg-tablist--dark {
  background: rgba(246, 242, 236, 0.06);
  border-color: var(--ghost2);
}
.ci-seg-tab {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition:
    background-color var(--dur-ui, 0.22s) var(--ease-ui, cubic-bezier(0.22, 1, 0.36, 1)),
    color var(--dur-ui, 0.22s) var(--ease-ui, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow var(--dur-ui, 0.22s) var(--ease-ui, cubic-bezier(0.22, 1, 0.36, 1)),
    transform var(--dur-ui-fast, 0.12s) var(--ease-ui, cubic-bezier(0.22, 1, 0.36, 1));
}
.ci-seg-tablist--dark .ci-seg-tab {
  color: rgba(240, 237, 232, 0.45);
}
.ci-seg-tab:hover {
  color: var(--ink);
}
.ci-seg-tablist--dark .ci-seg-tab:hover {
  color: rgba(240, 237, 232, 0.75);
}
.ci-seg-tab:focus-visible {
  outline: 2px solid var(--dark2);
  outline-offset: 2px;
}
.ci-seg-tab.is-active {
  background: var(--ink);
  color: #f0ede8;
}
.ci-seg-tablist--dark .ci-seg-tab.is-active {
  background: rgba(246, 242, 236, 0.12);
  color: #f0ede8;
  box-shadow: inset 0 0 0 1px rgba(246, 242, 236, 0.15);
}

.ci-panels {
  position: relative;
  min-height: 120px;
  display: grid;
}
.ci-panels > .ci-panel {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}
.ci-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  height: auto;
  overflow: visible;
  animation: ciFadeIn 0.35s ease;
}
.ci-panel[hidden] {
  display: none !important;
  visibility: hidden !important;
}
@keyframes ciFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ci-panel.is-active {
    animation: none;
  }
}

/* Lens / outcome panel layout */
.ci-panel-grid {
  display: grid;
  gap: 28px 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .ci-panel-grid {
    grid-template-columns: 1fr minmax(260px, 480px);
  }
  .ci-panel-grid--visual-first {
    grid-template-columns: minmax(260px, 480px) 1fr;
  }
}
.ci-panel-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 39, 68, 0.08);
  background: var(--white);
  box-shadow: 0 8px 28px -12px rgba(14, 32, 69, 0.1);
}
.ci-panel-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.ci-panel-copy h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}
.ci-panel-copy p,
.ci-panel-copy ul {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink2);
  margin: 0 0 12px;
}
.ci-panel-copy ul {
  padding-left: 1.2em;
}
.ci-panel-copy li {
  margin-bottom: 8px;
}

/* —— Step wheel —— */
.ci-step-wheel {
  max-width: 1160px;
  margin: 0 auto;
}
.ci-step-wheel-head {
  text-align: center;
  margin-bottom: 28px;
}
.ci-step-wheel-head h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: inherit;
  margin-bottom: 8px;
}
.ci-step-wheel-head p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.65;
  max-width: 42ch;
  margin: 0 auto;
}
.ci-step-wheel-head h3,
.ci-step-wheel-head p {
  transition: opacity 0.35s ease;
}
.ci-step-wheel-head.is-fading h3,
.ci-step-wheel-head.is-fading p,
.ci-step-wheel-head.is-fading [data-ci-step-kicker] {
  opacity: 0.2;
}
.ci-step-progress {
  max-width: 220px;
  height: 3px;
  margin: 0 auto 20px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 39, 68, 0.1);
}
.ci-step-wheel--dark .ci-step-progress {
  background: rgba(246, 242, 236, 0.12);
}
.ci-step-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--dark2);
  animation: ci-step-progress-fill var(--ci-step-interval, 5.5s) linear forwards;
}
.ci-step-wheel--dark .ci-step-progress-bar {
  background: #7ecde0;
}
@keyframes ci-step-progress-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.ci-step-wheel--flow .ci-step-dots,
.ci-step-wheel--flow .ci-step-nav,
.ci-flow-story .ci-step-labels,
.ci-flow-story .ci-step-progress {
  display: none !important;
}

/* —— Home platform: horizontal flow timeline (replaces pills) —— */
.ci-flow-story {
  padding-top: clamp(36px, 5vh, 52px);
}
.ci-flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: min(820px, 100%);
  margin: 0 auto clamp(40px, 5vh, 56px);
  padding: 0 clamp(4px, 2vw, 16px);
}
.ci-flow-track-rail {
  position: absolute;
  left: 18%;
  right: 18%;
  top: clamp(26px, 4vw, 36px);
  height: 4px;
  z-index: 0;
  pointer-events: none;
}
.ci-flow-track-bg {
  position: absolute;
  inset: 0;
  background: rgba(246, 242, 236, 0.1);
  border-radius: 999px;
}
.ci-flow-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4a8ca0 0%, #7ecde0 100%);
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.ci-flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vh, 14px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  text-align: center;
}
.ci-flow-node-num {
  width: clamp(56px, 10vw, 80px);
  height: clamp(56px, 10vw, 80px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(240, 237, 232, 0.42);
  background: rgba(26, 52, 97, 0.65);
  border: 2px solid rgba(246, 242, 236, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}
.ci-flow-node-title {
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.32);
  transition: color 0.35s ease;
}
.ci-flow-node.is-active .ci-flow-node-num {
  color: #0b1a3b;
  background: linear-gradient(145deg, #9ee8f0 0%, #7ecde0 55%, #5eb8cf 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 0 8px rgba(126, 205, 224, 0.14),
    0 16px 40px -12px rgba(126, 205, 224, 0.55);
  transform: scale(1.06);
}
.ci-flow-node.is-active .ci-flow-node-title {
  color: #9ee8f0;
}
.ci-flow-node:focus-visible {
  outline: 2px solid #7ecde0;
  outline-offset: 6px;
  border-radius: 12px;
}
.ci-flow-story-head {
  margin-bottom: 0 !important;
}
.ci-flow-story-head h3 {
  font-size: clamp(26px, 3.5vw, 40px) !important;
  line-height: 1.12 !important;
  margin-bottom: clamp(14px, 2vh, 18px) !important;
}
.ci-flow-story-head p {
  font-size: clamp(16px, 1.9vw, 19px) !important;
  line-height: 1.7 !important;
  max-width: 54ch !important;
  opacity: 0.72 !important;
}
@media (max-width: 520px) {
  .ci-flow-track-rail {
    left: 22%;
    right: 22%;
    top: 24px;
  }
  .ci-flow-node-num {
    width: 52px;
    height: 52px;
    font-size: 17px;
  }
}
.ci-step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ci-step-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 39, 68, 0.15);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.ci-step-wheel--dark .ci-step-dot {
  background: rgba(246, 242, 236, 0.2);
}
.ci-step-dot.is-active {
  background: var(--dark2);
  transform: scale(1.2);
}
.ci-step-wheel--dark .ci-step-dot.is-active {
  background: #7ecde0;
}
.ci-step-dot:focus-visible {
  outline: 2px solid var(--dark2);
  outline-offset: 2px;
}
.ci-step-labels {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ci-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink3);
  cursor: pointer;
  font-family: var(--font);
}
.ci-step-wheel--dark .ci-step-label {
  color: rgba(240, 237, 232, 0.4);
}
.ci-step-label.is-active {
  background: rgba(26, 52, 97, 0.08);
  color: var(--ink);
}
.ci-step-wheel--dark .ci-step-label.is-active {
  background: rgba(126, 205, 224, 0.12);
  color: #9ee8f0;
}
.ci-step-slides {
  position: relative;
}
.ci-step-slide {
  display: none;
}
.ci-step-slide.is-active {
  display: block;
}
.ci-step-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.ci-step-prev,
.ci-step-next {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 39, 68, 0.15);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.ci-step-wheel--dark .ci-step-prev,
.ci-step-wheel--dark .ci-step-next {
  border-color: var(--ghost2);
  background: var(--ghost);
  color: #f0ede8;
}
.ci-step-prev:disabled,
.ci-step-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* —— Snap rail —— */
.ci-snap-rail-wrap {
  position: relative;
}
.ci-snap-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
}
.ci-snap-rail > * {
  scroll-snap-align: start;
  flex: 0 0 min(85%, 320px);
}
@media (min-width: 768px) {
  .ci-snap-rail--desktop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }
  .ci-snap-rail--desktop-grid > * {
    flex: none;
  }
}
.ci-snap-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .ci-snap-nav--hide-desktop {
    display: none;
  }
}
.ci-snap-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0ddd8;
  background: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.ci-snap-btn:focus-visible {
  outline: 2px solid var(--dark2);
  outline-offset: 2px;
}

/* Challenge cards as details */
.ci-details-card {
  border-radius: 18px;
  border: 1px solid #e0ddd8;
  background: var(--white);
  overflow: hidden;
}
.ci-details-card summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ci-details-card summary::-webkit-details-marker {
  display: none;
}
.ci-details-card summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--ink3);
}
.ci-details-card[open] summary::after {
  content: '−';
}
.ci-details-card .ci-details-body {
  padding: 0 28px 24px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink2);
}
.ci-details-card .c-card-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink3);
  margin-bottom: 8px;
}

/* Story hero — journey scrubber (5-step flow + detail; autoplay via data-ci-step-wheel) */
.ci-story-journey,
.ci-story-journey-wheel {
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgba(240, 237, 232, 0.11);
  background:
    radial-gradient(ellipse 85% 120% at 70% 0%, rgba(126, 205, 224, 0.09), transparent 52%),
    radial-gradient(ellipse 70% 90% at 8% 100%, rgba(224, 144, 122, 0.06), transparent 48%),
    linear-gradient(168deg, rgba(26, 52, 97, 0.52) 0%, rgba(14, 32, 69, 0.94) 48%, rgba(11, 26, 56, 0.97) 100%);
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px) clamp(24px, 3vw, 32px);
}
.ci-story-journey-wheel .ci-flow-track {
  grid-template-columns: repeat(5, 1fr);
  max-width: 100%;
  margin: 0 auto clamp(28px, 3.5vh, 36px);
  gap: 4px;
}
.ci-story-journey-wheel .ci-flow-track-rail {
  left: 8%;
  right: 8%;
}
.ci-story-journey-wheel .ci-flow-node {
  gap: 8px;
}
.ci-story-journey-wheel .ci-flow-node:not(.is-active) {
  opacity: 0.48;
}
.ci-story-journey-wheel .ci-flow-node.is-active {
  opacity: 1;
}
.ci-flow-node-year {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(240, 237, 232, 0.34);
  transition: color 0.35s ease;
}
.ci-story-journey-wheel .ci-flow-node.is-active .ci-flow-node-year {
  color: rgba(158, 232, 240, 0.75);
}
.ci-story-journey-wheel .ci-flow-node-num {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  font-size: 0;
  color: rgba(240, 237, 232, 0.65);
  padding: 0;
}
.ci-story-journey-wheel .ci-flow-node-num svg {
  display: block;
  width: 22px;
  height: 22px;
}
/* OBK logo — muted so it matches the dark node system */
.ci-flow-node--obk .ci-flow-node-num {
  border-color: rgba(224, 144, 122, 0.28);
  background: rgba(20, 40, 78, 0.75);
}
.ci-flow-node--obk .ci-flow-node-num img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.82;
  filter: saturate(0.7) brightness(1.08) contrast(0.92);
}
.ci-flow-node--obk.is-active .ci-flow-node-num {
  border-color: rgba(224, 144, 122, 0.45);
  background: rgba(26, 52, 97, 0.85);
}
.ci-flow-node--obk.is-active .ci-flow-node-num img {
  opacity: 0.95;
  filter: saturate(0.85) brightness(1.05);
}
.ci-flow-node--future .ci-flow-node-num {
  border-style: dashed;
  border-color: rgba(240, 237, 232, 0.22);
  background: rgba(14, 32, 69, 0.4);
  color: rgba(240, 237, 232, 0.38);
}
.ci-story-journey-wheel .ci-flow-node-title {
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 0.1em;
}
.ci-story-journey-detail {
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(240, 237, 232, 0.08);
  padding-top: clamp(22px, 3vh, 28px);
  text-align: left;
}
.ci-story-journey-wheel .ci-step-wheel-head.ci-story-journey-detail {
  margin-bottom: 0;
}
.ci-story-detail-kicker,
.ci-story-journey-detail [data-ci-step-kicker] {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240, 237, 232, 0.4);
  margin-bottom: 10px;
  display: block;
}
.ci-story-journey-wheel .ci-step-wheel-head h3 {
  font-size: clamp(22px, 2.8vw, 30px) !important;
  margin-bottom: 12px !important;
}
.ci-story-journey-wheel .ci-step-wheel-head p {
  font-size: clamp(15px, 1.6vw, 17px) !important;
  max-width: 58ch;
  opacity: 0.55 !important;
}
.ci-story-journey-wheel .ci-step-wheel-head.is-fading [data-ci-step-kicker] {
  transition: opacity 0.28s ease;
}
@media (max-width: 767px) {
  .ci-story-journey-wheel .ci-flow-track {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
    padding: 0;
  }
  .ci-story-journey-wheel .ci-flow-track-rail {
    display: none;
  }
  .ci-story-journey-wheel .ci-flow-node {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 12px;
    border-left: 3px solid transparent;
    text-align: left;
  }
  .ci-story-journey-wheel .ci-flow-node.is-active {
    border-left-color: #7ecde0;
    background: rgba(126, 205, 224, 0.1);
    opacity: 1;
  }
  .ci-story-journey-wheel .ci-flow-node-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }
  .ci-story-journey-wheel .ci-flow-node-title,
  .ci-story-journey-wheel .ci-flow-node-year {
    text-align: left;
  }
  .ci-story-journey-wheel .ci-flow-node-title {
    flex: 1;
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .ci-story-journey-wheel .ci-flow-node-year {
    flex: 0 0 auto;
    font-size: 11px;
    min-width: 3.5em;
    text-align: right;
  }
}
.ci-timeline-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Home paths tab panel */
.ci-paths-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e0ddd8;
  margin-bottom: 24px;
  max-width: 560px;
}
.ci-paths-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Home paths tabs — single visible panel, image + copy */
.paths-tabs .ci-panels {
  min-height: 320px;
}
.paths-tabs .ci-panels > .ci-panel.is-active {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .paths-tabs .ci-panels > .ci-panel.is-active {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Team grid as snap rail on small screens */
@media (max-width: 767px) {
  #team .team-grid.ci-snap-rail {
    display: flex;
    grid-template-columns: unset;
    max-width: none;
    margin: 0;
  }
  #team .team-grid.ci-snap-rail > .team-member {
    flex: 0 0 min(78%, 280px);
  }
}

/* Outcome single card (tab panel) */
.ci-outcome-card {
  background: var(--white);
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.04);
}
.ci-outcome-card .card-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.ci-outcome-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.ci-outcome-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink2);
  margin: 0 0 16px;
}

.ci-outcome-card .flow-strip-inline img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 12px;
}

/* Lenses section — vertical padding via site-spacing.css */
.lenses-sec {
  background: var(--white);
}
.lenses-sec h2 {
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.lenses-sec h2 i {
  margin-top: clamp(8px, 1vh, 12px);
  line-height: 1.2;
}
.lenses-sec .section-head {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
