/* /organisations-teams. Colours come from the shared tokens in shows-ui.css (light and night).
   Text rules are scoped under .otl so night-mode.css's global heading and paragraph colours
   don't apply. Motion runs only when the page script has added .otl--js, and stops for
   prefers-reduced-motion. */

.otl {
  --otl-ink: #0f1115;
  --otl-blue: #2e90fa;
  --otl-purple: #7a5af8;
  --otl-green: #12b76a;
  --otl-cyan: #06aed4;
  --otl-ease: cubic-bezier(.2, .8, .2, 1);
  display: block;
  overflow-x: clip;
  background: var(--ev-bg);
  color: var(--ev-text);
}

.otl *,
.otl *::before,
.otl *::after {
  box-sizing: border-box;
}

.otl p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

.otl h1,
.otl h2 {
  margin: 0;
  color: inherit;
  letter-spacing: normal;
}

.otl-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sections */
.otl-section {
  padding: 56px 0;
  scroll-margin-top: 72px;
}

.otl-section--tinted {
  background: var(--ev-surface);
  border-top: 1px solid var(--ev-border);
  border-bottom: 1px solid var(--ev-border);
}

.otl .otl-section__title {
  margin: 0 0 8px;
  color: var(--ev-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.otl .otl-section__intro {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--ev-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Buttons */
.otl-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, transform .2s var(--otl-ease), box-shadow .2s ease;
}

.otl-button:hover,
.otl-button:focus-visible {
  background: rgba(255, 255, 255, .1);
}

.otl-button--primary,
.otl-button--solid {
  border-color: transparent;
  background: var(--ev-brand);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ev-brand) 40%, transparent);
}

.otl-button--primary:hover,
.otl-button--primary:focus-visible,
.otl-button--solid:hover,
.otl-button--solid:focus-visible {
  background: var(--ev-brand-strong);
  transform: translateY(-2px);
}

.otl-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ev-brand) 45%, transparent);
  outline-offset: 2px;
}

/* Hero */
.otl-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background: linear-gradient(160deg, #1d140e 0%, var(--otl-ink) 55%, #0c1424 100%);
  color: #fff;
  isolation: isolate;
}

.otl-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.otl-hero__glow {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}

.otl-hero__glow--one {
  top: -140px;
  left: -120px;
  background: var(--ev-brand);
}

.otl-hero__glow--two {
  right: -140px;
  bottom: -180px;
  background: var(--otl-blue);
  opacity: .4;
}

.otl-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.otl .otl-hero__title {
  max-width: 560px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.otl .otl-hero__lead {
  max-width: 540px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.6;
}

.otl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.otl-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
}

.otl-hero__jump a {
  color: rgba(255, 255, 255, .78) !important;
  font-size: 14px;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 255, 255, .3) !important;
  text-underline-offset: 4px;
}

.otl-hero__jump a:hover {
  color: #fff !important;
  text-decoration-color: #fff !important;
}

/* Hero illustration */
.otl-stage {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 0 44px;
}

.otl-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
}

.otl-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.otl-window__dots {
  display: flex;
  gap: 6px;
}

.otl-window__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.otl-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
  font-size: 14px;
  font-weight: 500;
}

.otl-switch__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ev-brand);
  font-size: 12px;
}

.otl-switch__names {
  display: grid;
  overflow: hidden;
  height: 20px;
  line-height: 20px;
}

.otl-switch__name {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.otl-switch__name--personal {
  opacity: 0;
}

.otl-switch__chevron {
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
}

.otl-window__body {
  padding: 16px;
}

.otl .otl-window__label {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.otl-team {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.otl-team__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.otl-team__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.otl-float {
  position: absolute;
  display: flex;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(22, 25, 31, .92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  color: #fff;
  backdrop-filter: blur(10px);
}

.otl-float--balance {
  top: 0;
  right: -6px;
  flex-direction: column;
  gap: 2px;
  width: 190px;
  padding: 12px 14px;
}

.otl-float__label {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

.otl-float__value {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.otl-spark {
  width: 100%;
  height: 30px;
  margin: 4px 0 6px;
}

.otl-spark path {
  fill: none;
  stroke: var(--otl-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  stroke-dasharray: 160;
}

.otl-float__pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 183, 106, .16);
  color: #6ce9a6;
  font-size: 12px;
  font-weight: 500;
}

.otl-float--toast {
  bottom: 4px;
  left: -10px;
  align-items: center;
  gap: 10px;
  max-width: 290px;
  padding: 10px 14px 10px 10px;
  font-size: 13px;
}

/* Avatars and role chips (shared by the illustrations and the role picker) */
.otl-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--otl-tone-bg, #fff0e3);
  color: var(--otl-tone-fg, #b84f08);
  font-size: 12px;
  font-weight: 600;
}

.otl-avatar--t1 { --otl-tone-bg: #fff0e3; --otl-tone-fg: #b84f08; }
.otl-avatar--t2 { --otl-tone-bg: #eff8ff; --otl-tone-fg: #175cd3; }
.otl-avatar--t3 { --otl-tone-bg: #ecfdf3; --otl-tone-fg: #067647; }
.otl-avatar--t4 { --otl-tone-bg: #f4f3ff; --otl-tone-fg: #5925dc; }
.otl-avatar--t6 { --otl-tone-bg: #f0f9ff; --otl-tone-fg: #026aa2; }

.otl-role {
  --otl-role: var(--ev-brand);
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--otl-role) 18%, transparent);
  color: color-mix(in srgb, var(--otl-role) 55%, #fff);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.otl-role--admin { --otl-role: var(--otl-blue); }
.otl-role--event_manager { --otl-role: var(--otl-purple); }
.otl-role--finance { --otl-role: var(--otl-green); }
.otl-role--scanner { --otl-role: var(--otl-cyan); }

/* Cards */
.otl-cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.otl-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
  color: var(--ev-text) !important;
  text-decoration: none;
  transition: transform .25s var(--otl-ease), box-shadow .25s ease, border-color .25s ease;
}

.otl-section--tinted .otl-card {
  background: var(--ev-bg);
}

.otl-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ev-brand), var(--otl-blue));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--otl-ease);
}

.otl-card:hover,
.otl-card:focus-visible {
  border-color: color-mix(in srgb, var(--ev-brand) 35%, var(--ev-border));
  box-shadow: var(--ev-shadow);
  transform: translateY(-3px);
}

.otl-card:hover::before,
.otl-card:focus-visible::before {
  transform: scaleX(1);
}

.otl-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 12px;
  background: var(--ev-brand-soft);
  color: var(--ev-brand);
  font-size: 18px;
  transition: transform .3s var(--otl-ease);
}

.otl-card:hover .otl-card__icon {
  transform: rotate(-6deg) scale(1.06);
}

.otl-card__title {
  font-size: 16px;
  font-weight: 600;
}

.otl-card__text {
  color: var(--ev-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Personal compared with organisation */
.otl-compare {
  overflow-x: auto;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-bg);
}

.otl-compare table,
.otl-matrix table {
  width: 100%;
  border-collapse: collapse;
}

.otl-compare th,
.otl-compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ev-border);
  color: var(--ev-text);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.otl-compare tbody tr:last-child > * {
  border-bottom: 0;
}

.otl-compare thead th {
  color: var(--ev-muted);
  font-size: 14px;
  font-weight: 500;
}

.otl-compare thead i {
  margin-right: 8px;
}

.otl-compare tbody th {
  width: 30%;
  color: var(--ev-muted);
  font-weight: 500;
}

.otl-compare .otl-compare__org {
  background: color-mix(in srgb, var(--ev-brand) 7%, transparent);
  font-weight: 500;
}

.otl-compare thead .otl-compare__org {
  color: var(--ev-brand);
}

/* Team roles */
.otl-roles__picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.otl-roles__picker[hidden] {
  display: none;
}

.otl-roles__pick {
  --otl-role: var(--ev-brand);
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-text);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--otl-ease);
}

.otl-roles__pick:hover {
  border-color: var(--otl-role);
  transform: translateY(-1px);
}

.otl-roles__pick[aria-pressed="true"] {
  border-color: var(--otl-role);
  background: var(--otl-role);
  color: #fff;
}

.otl-roles__pick:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--otl-role) 40%, transparent);
  outline-offset: 2px;
}

.otl .otl-roles__summary {
  min-height: 24px;
  margin-bottom: 16px;
  color: var(--ev-text);
  font-size: 16px;
  font-weight: 500;
}

.otl-matrix {
  overflow-x: auto;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
}

.otl-matrix th,
.otl-matrix td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ev-border);
  color: var(--ev-text);
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  transition: background .25s ease;
}

.otl-matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.otl-matrix th:first-child {
  min-width: 230px;
  text-align: left;
  white-space: normal;
}

.otl-matrix thead th {
  color: var(--ev-muted);
  font-size: 14px;
  font-weight: 500;
}

.otl-matrix tbody th {
  font-weight: 400;
}

.otl-matrix td.is-yes i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--otl-green) 16%, transparent);
  color: var(--otl-green);
  font-size: 12px;
}

.otl-matrix td.is-no i {
  color: var(--ev-border);
  font-size: 12px;
}

.otl-matrix .is-picked {
  background: color-mix(in srgb, var(--ev-brand) 8%, transparent);
}

.otl-matrix thead .is-picked {
  color: var(--ev-brand);
  font-weight: 600;
}

.otl .otl-roles__note {
  margin-top: 12px;
  color: var(--ev-muted);
  font-size: 14px;
}

/* Set up an organisation */
.otl-setup {
  display: grid;
  gap: 28px;
}

.otl-steps {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.otl-steps::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: var(--ev-border);
  content: "";
}

.otl-steps__item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 14px 16px 14px 0;
}

.otl-steps__number {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ev-brand);
  border-radius: 50%;
  background: var(--ev-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background .4s ease, color .4s ease, transform .4s var(--otl-ease), box-shadow .4s ease;
}

.otl-steps__copy {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.otl-steps__title {
  color: var(--ev-text);
  font-size: 16px;
  font-weight: 600;
}

.otl-steps__text {
  color: var(--ev-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Workspace switcher */
.otl-switcher {
  display: grid;
  gap: 36px;
  align-items: center;
}

.otl-menu {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--ev-border);
  border-radius: 16px;
  background: var(--ev-surface);
  box-shadow: var(--ev-shadow-strong);
}

.otl-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  color: var(--ev-text);
  font-size: 15px;
}

.otl-menu__item--active {
  background: var(--ev-brand-soft);
}

.otl-menu__name {
  display: grid;
  flex: 1;
  font-weight: 500;
}

.otl-menu__name small {
  color: var(--ev-muted);
  font-size: 12px;
  font-weight: 400;
}

.otl-menu__check {
  color: var(--ev-brand);
}

.otl-menu__divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--ev-border);
}

.otl-menu__item--create {
  color: var(--ev-brand);
  font-weight: 500;
}

.otl-menu__item--create i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.otl-menu__cursor {
  position: absolute;
  top: 70px;
  left: 70%;
  color: var(--ev-text);
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.otl-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.otl-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ev-text);
  font-size: 15px;
  line-height: 1.5;
}

.otl-points i {
  display: grid;
  flex: 0 0 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--ev-brand-soft);
  color: var(--ev-brand);
  font-size: 13px;
}

/* Questions */
.otl-faq {
  display: grid;
  gap: 24px;
}

.otl-faq__help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ev-brand) !important;
  font-size: 15px;
  font-weight: 500;
}

.otl-faq__list {
  display: grid;
  gap: 10px;
}

.otl-faq__item {
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  background: var(--ev-bg);
  transition: border-color .2s ease;
}

.otl-faq__item[open] {
  border-color: color-mix(in srgb, var(--ev-brand) 40%, var(--ev-border));
}

.otl-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--ev-text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
}

.otl-faq__item summary::-webkit-details-marker {
  display: none;
}

.otl-faq__item summary::after {
  flex: 0 0 auto;
  color: var(--ev-muted);
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  transition: transform .25s var(--otl-ease);
}

.otl-faq__item[open] summary::after {
  transform: rotate(180deg);
}

.otl .otl-faq__item p {
  padding: 0 18px 16px;
  color: var(--ev-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Call to action */
.otl-cta {
  padding: 56px 0 64px;
}

.otl-cta__panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 40px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--ev-brand) 55%, transparent), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(46, 144, 250, .45), transparent 55%),
    var(--otl-ink);
  color: #fff;
  text-align: center;
}

.otl-cta__avatars {
  display: flex;
  margin-bottom: 12px;
}

.otl-cta__avatars .otl-avatar {
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border: 3px solid var(--otl-ink);
}

.otl-cta__avatars .otl-avatar:first-child {
  margin-left: 0;
}

.otl .otl-cta__title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.otl-cta .otl-hero__actions {
  justify-content: center;
  margin-top: 18px;
}

/* Night mode */
html.night-mode .otl {
  --otl-ink: #0b0d10;
}

html.night-mode .otl-avatar--t1 { --otl-tone-bg: #3a2414; --otl-tone-fg: #ffb37d; }
html.night-mode .otl-avatar--t2 { --otl-tone-bg: #13263d; --otl-tone-fg: #84caff; }
html.night-mode .otl-avatar--t3 { --otl-tone-bg: #10291d; --otl-tone-fg: #6ce9a6; }
html.night-mode .otl-avatar--t4 { --otl-tone-bg: #221b3d; --otl-tone-fg: #bdb4fe; }
html.night-mode .otl-avatar--t6 { --otl-tone-bg: #0f2533; --otl-tone-fg: #7cd4fd; }

html.night-mode .otl-menu__cursor {
  color: #fff;
}

/* Larger screens */
@media (min-width: 720px) {
  .otl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otl .otl-section__title {
    font-size: 18px;
  }
}

@media (min-width: 992px) {
  .otl-hero {
    padding: 72px 0 80px;
  }

  .otl-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
  }

  .otl .otl-hero__title {
    font-size: 36px;
  }

  .otl-section {
    padding: 72px 0;
  }

  .otl-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .otl-cards--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .otl-setup {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
  }

  .otl-setup__aside {
    position: sticky;
    top: 96px;
  }

  .otl-switcher {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
  }

  .otl-faq {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 48px;
  }

  .otl-cta__panel {
    padding: 56px 32px;
  }
}

/* Phones: the role picker shows one role's column at a time. */
@media (max-width: 719.98px) {
  .otl--js .otl-matrix [data-col]:not(.is-picked) {
    display: none;
  }

  .otl-matrix th:first-child {
    min-width: 0;
  }

  .otl-float--balance {
    right: 0;
    width: 170px;
  }

  .otl-float--toast {
    left: 0;
  }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .otl--js .otl-hero__glow--one { animation: otl-drift 14s ease-in-out infinite alternate; }
  .otl--js .otl-hero__glow--two { animation: otl-drift 18s ease-in-out -6s infinite alternate-reverse; }

  .otl--js .otl-hero__text > * {
    animation: otl-rise .8s var(--otl-ease) both;
  }

  .otl--js .otl-hero__text > :nth-child(2) { animation-delay: .1s; }
  .otl--js .otl-hero__text > :nth-child(3) { animation-delay: .2s; }
  .otl--js .otl-hero__text > :nth-child(4) { animation-delay: .3s; }

  .otl--js .otl-window {
    animation: otl-rise 1s var(--otl-ease) .15s both;
  }

  .otl--js .otl-team__row {
    animation: otl-row-in .7s var(--otl-ease) both;
    animation-delay: var(--otl-delay, 0ms);
  }

  /* The switcher shows Personal, then moves to the organisation, on a loop. */
  .otl--js .otl-switch__name--personal { animation: otl-name-out 9s var(--otl-ease) infinite; }
  .otl--js .otl-switch__name--org { animation: otl-name-in 9s var(--otl-ease) infinite; }
  .otl--js .otl-switch__mark { animation: otl-mark 9s var(--otl-ease) infinite; }

  .otl--js .otl-float--balance {
    animation: otl-pop .8s var(--otl-ease) 1.2s both, otl-bob 6s ease-in-out 2s infinite;
  }

  .otl--js .otl-spark path {
    animation: otl-draw 1.6s var(--otl-ease) 1.6s both;
  }

  .otl--js .otl-float__pill {
    animation: otl-pop .6s var(--otl-ease) 3s both;
  }

  .otl--js .otl-float--toast {
    animation: otl-toast 8s var(--otl-ease) 2.4s infinite both;
  }

  .otl--js .otl-menu__cursor {
    animation: otl-cursor 6s var(--otl-ease) infinite;
  }

  .otl--js .otl-menu__item--active {
    animation: otl-select 6s var(--otl-ease) infinite;
  }

  .otl--js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--otl-ease), transform .7s var(--otl-ease);
    transition-delay: var(--otl-delay, 0ms);
  }

  .otl--js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  /* Each set-up step lights up as it scrolls into view. */
  .otl--js [data-step] .otl-steps__number {
    background: var(--ev-surface);
    color: var(--ev-brand);
    transform: scale(.85);
  }

  .otl--js [data-step].is-visible .otl-steps__number {
    background: var(--ev-brand);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--ev-brand) 14%, transparent);
    color: #fff;
    transform: none;
  }

  .otl--js [data-step] .otl-steps__copy {
    opacity: .35;
    transition: opacity .6s ease;
  }

  .otl--js [data-step].is-visible .otl-steps__copy {
    opacity: 1;
  }

  .otl-matrix.is-switching .is-picked i {
    animation: otl-check .45s var(--otl-ease);
  }
}

@keyframes otl-drift {
  to { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes otl-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes otl-row-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}

@keyframes otl-name-out {
  0%, 8% { opacity: 1; transform: none; }
  14%, 86% { opacity: 0; transform: translateY(-100%); }
  92%, 100% { opacity: 1; transform: none; }
}

@keyframes otl-name-in {
  0%, 8% { opacity: 0; transform: translateY(100%); }
  14%, 86% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(100%); }
}

@keyframes otl-mark {
  0%, 8%, 92%, 100% { background: rgba(255, 255, 255, .2); transform: none; }
  12% { transform: scale(1.18); }
  16%, 86% { background: var(--ev-brand); transform: none; }
}

@keyframes otl-pop {
  from { opacity: 0; transform: translateY(10px) scale(.92); }
  to { opacity: 1; transform: none; }
}

@keyframes otl-bob {
  0%, 100% { transform: none; }
  50% { transform: translateY(-8px); }
}

@keyframes otl-draw {
  from { stroke-dashoffset: 160; }
  to { stroke-dashoffset: 0; }
}

@keyframes otl-toast {
  0%, 4% { opacity: 0; transform: translateY(16px) scale(.95); }
  10%, 62% { opacity: 1; transform: none; }
  70%, 100% { opacity: 0; transform: translateY(8px) scale(.97); }
}

@keyframes otl-cursor {
  0% { opacity: 0; transform: translate(40px, 90px); }
  15% { opacity: 1; }
  40%, 55% { opacity: 1; transform: none; }
  47% { transform: scale(.85); }
  80%, 100% { opacity: 0; transform: translate(30px, 60px); }
}

@keyframes otl-select {
  0%, 40% { background: transparent; }
  48%, 100% { background: var(--ev-brand-soft); }
}

@keyframes otl-check {
  0% { transform: scale(.4); }
  70% { transform: scale(1.15); }
  100% { transform: none; }
}
