/* =========================================================
   Neuro Safety
   ========================================================= */

.sf {
  --sf-ink: #1a1a1c;
  --sf-muted: rgba(26, 26, 28, 0.62);
  --sf-faint: rgba(26, 26, 28, 0.44);
  --sf-line: rgba(26, 26, 28, 0.1);
  --sf-blue: #3c5294;
  --sf-amber: #f3b23c;
  --sf-amber-ink: #9a5b06;
  --sf-green: #15803d;
  --sf-dark: #131417;
  --sf-dark-ink: #f4f7fb;
  --sf-dark-muted: rgba(222, 230, 241, 0.72);
  --sf-dark-faint: rgba(222, 230, 241, 0.46);
  --sf-soft: var(--color-background-3, #f4f5f8);
  --sf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sf :where(p, h2, h3, ol, ul, dl, dd, figure, blockquote) {
  margin: 0;
}

.sf :where(ol, ul) {
  padding: 0;
  list-style: none;
}

:where(.sf-hero, .sf-panel, .sf-quiz, .sf-quote, .sf-scr, .sf-scope, .sf-slide) p {
  color: inherit;
}

.sf-band {
  padding-inline: 20px;
}

.sf-shell {
  max-width: 1880px;
  margin-inline: auto;
  border-radius: 24px;
}

@media (min-width: 1280px) {
  .sf-shell {
    border-radius: 32px;
  }
}

/* Floor-tape marker: the Safety accent */
.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-blue);
}

.sf-eyebrow::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--sf-amber);
}

.sf-eyebrow--dark {
  color: var(--sf-amber);
}

.sf-h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--sf-ink);
  text-wrap: balance;
}

.sf-h2--dark {
  color: var(--sf-dark-ink);
}

.sf-lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--sf-muted);
  text-wrap: pretty;
}

.sf-lede--dark {
  color: var(--sf-dark-muted);
}

.sf-kicker {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-amber-ink);
}

/* =========================================================
   Hero
   ========================================================= */
.sf-hero-section {
  padding: 0 20px;
}

@media (max-width: 767px) {
  .sf-hero-section {
    padding-inline: 0;
  }
}

.sf-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1880px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  padding: 124px 0 36px;
  border-radius: 0 0 24px 24px;
  background: var(--sf-dark);
  color: var(--sf-dark-ink);
}

.sf-hero__inner {
  display: contents;
}

.sf-hero__copy {
  order: 1;
  display: grid;
  gap: 22px;
  padding-inline: 20px;
}

.sf-hero__media {
  position: relative;
  order: 2;
  margin: 32px 0 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sf-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
  filter: saturate(0.9) contrast(1.04);
  animation: sf-drift 26s ease-in-out infinite alternate;
  transform-origin: 62% 40%;
}

.sf-hero__media::after {
  content: "";
  position: absolute;
  inset: -1px 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--sf-dark), rgba(19, 20, 23, 0)) top / 100% 22% no-repeat,
    linear-gradient(0deg, var(--sf-dark), rgba(19, 20, 23, 0)) bottom / 100% 34% no-repeat;
}

@keyframes sf-drift {
  from { transform: scale(1.03); }
  to { transform: scale(1.07) translate(-1%, -0.5%); }
}

/* Walkway marking along the bottom of the hero */
.sf-hero__tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  opacity: 0.7;
  background: linear-gradient(90deg, var(--sf-amber) 50%, transparent 50%) 0 0 / 44px 3px repeat-x;
  animation: sf-walk 3.2s linear infinite;
}

@keyframes sf-walk {
  to { background-position: 44px 0; }
}

.sf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-amber);
}

.sf-hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--sf-amber);
}

.sf-hero__h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1rem + 3.4vw, 4.375rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--sf-dark-ink);
  text-wrap: balance;
}

.sf-hero__h1 span {
  display: block;
}

.sf-hero__h1 span + span {
  color: rgba(244, 247, 251, 0.58);
}

.sf-hero__lead {
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--sf-dark-muted);
  text-wrap: pretty;
}

.sf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 6px;
}

.sf-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sf-dark-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.3s ease, gap 0.3s var(--sf-ease);
}

.sf-hero__ghost::after {
  content: "↓";
}

.sf-hero__ghost:hover {
  gap: 12px;
  color: var(--sf-dark-ink);
  border-color: var(--sf-amber);
}

/* Pre-shift refresher card */
.sf-focus {
  position: relative;
  z-index: 3;
  order: 3;
  margin: -18% 20px 0;
}

.sf-focus__card {
  padding: 16px 20px 18px;
  border-radius: 18px;
  background: rgba(14, 18, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.sf-focus__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.sf-focus__bars i {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.sf-focus__bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sf-amber);
  transform: scaleX(0);
  transform-origin: left;
}

.sf-focus__bars i.is-done::after,
.sf-focus__bars i.is-active::after {
  transform: scaleX(1);
}

.sf-hero.is-auto .sf-focus__bars i.is-active::after {
  animation: sf-fill var(--sf-hero-ms, 6000ms) linear forwards;
}

.sf-hero.is-paused .sf-focus__bars i::after {
  animation-play-state: paused !important;
}

@keyframes sf-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sf-focus__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sf-focus__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-amber);
}

.sf-focus__time {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(243, 178, 60, 0.14);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sf-amber);
}

.sf-focus__sets {
  display: grid;
}

.sf-focus__set {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.6s var(--sf-ease), visibility 0s linear 0.5s;
}

.sf-focus__set.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease 0.1s, transform 0.6s var(--sf-ease) 0.1s, visibility 0s;
}

.sf-focus__title {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--sf-dark-ink);
}

.sf-focus__where {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--sf-dark-faint);
}

.sf-focus__checks {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
}

.sf-focus__checks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sf-dark-ink);
}

.sf-focus__checks i {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--sf-amber);
  border: 1.5px solid var(--sf-amber);
}

.sf-focus__checks i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2.5px;
  width: 4.5px;
  height: 8px;
  border-right: 2px solid #1a1206;
  border-bottom: 2px solid #1a1206;
  transform: rotate(45deg);
}

.sf-hero.is-auto .sf-focus__set.is-active li {
  animation: sf-check-text 0.4s ease both;
  animation-delay: calc(0.5s + var(--i) * 0.9s);
}

.sf-hero.is-auto .sf-focus__set.is-active li i {
  animation: sf-check 0.4s var(--sf-ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.9s);
}

.sf-hero.is-auto .sf-focus__set.is-active li i::after {
  animation: sf-tick 0.3s ease both;
  animation-delay: calc(0.65s + var(--i) * 0.9s);
}

@keyframes sf-check-text {
  from { color: var(--sf-dark-faint); }
  to { color: var(--sf-dark-ink); }
}

@keyframes sf-check {
  from { background: transparent; border-color: rgba(255, 255, 255, 0.3); transform: scale(0.9); }
  to { background: var(--sf-amber); border-color: var(--sf-amber); transform: none; }
}

@keyframes sf-tick {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sf-focus__source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.45;
  color: var(--sf-dark-faint);
}

.sf-focus__note {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-dark-faint);
}

@media (min-width: 640px) {
  .sf-hero__media {
    aspect-ratio: 16 / 10;
  }

  .sf-focus {
    width: min(400px, calc(100% - 40px));
    margin: -16% 20px 0 auto;
  }
}

@media (min-width: 1024px) {
  .sf-hero {
    display: block;
    min-height: clamp(720px, calc(100svh - 12px), 940px);
    padding: 0;
    border-radius: 0 0 32px 32px;
  }

  .sf-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    aspect-ratio: auto;
  }

  .sf-hero__media img {
    object-position: 70% 35%;
  }

  .sf-hero__media::after {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(19, 20, 23, 0.7), rgba(19, 20, 23, 0)) top / 100% 24% no-repeat,
      linear-gradient(0deg, rgba(19, 20, 23, 0.85), rgba(19, 20, 23, 0)) bottom / 100% 42% no-repeat,
      linear-gradient(90deg, rgba(19, 20, 23, 0.9), rgba(19, 20, 23, 0)) left / 48% 100% no-repeat,
      linear-gradient(90deg, rgba(19, 20, 23, 0.75), rgba(19, 20, 23, 0)) left / 78% 100% no-repeat;
  }

  .sf-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    min-height: inherit;
    padding-top: 150px;
    padding-bottom: 56px;
  }

  .sf-hero__copy {
    align-self: center;
    max-width: 720px;
    padding: 0 0 40px;
  }

  .sf-focus {
    align-self: end;
    width: auto;
    margin: 0;
  }
}

@media (min-width: 1280px) {
  .sf-hero__inner {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

/* =========================================================
   The gap
   ========================================================= */
.sf-gap {
  padding-block: 96px 104px;
}

.sf-gap__intro {
  max-width: 760px;
}

.sf-gap__intro .sf-lede {
  margin-top: 20px;
  max-width: 620px;
}

.sf-gap__scene {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 52px;
}

.sf-slide {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 20px 20px;
  border-radius: 18px;
  background: #eef0f3;
  border: 1px solid var(--sf-line);
  color: rgba(26, 26, 28, 0.5);
}

.sf-slide__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--sf-faint);
}

.sf-slide__bar b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sf-slide__body {
  display: grid;
  gap: 11px;
  padding: 26px 24px;
  border-radius: 10px;
  background: #fff;
  aspect-ratio: 16 / 8.5;
  align-content: start;
}

.sf-slide__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(26, 26, 28, 0.55);
}

.sf-slide__line {
  display: block;
  width: var(--w);
  height: 8px;
  border-radius: 4px;
  background: #e3e6eb;
}

.sf-slide__foot {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sf-slide__progress {
  position: relative;
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #dde1e7;
}

.sf-slide__progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 58%);
  border-radius: 2px;
  background: #b7bec9;
  transition: width 0.8s var(--sf-ease);
}

.sf-slide__btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: #dde1e7;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(26, 26, 28, 0.5);
}

.sf-gap__distance {
  position: relative;
  justify-self: center;
  width: 3px;
  height: 64px;
  background: linear-gradient(180deg, var(--sf-amber) 50%, transparent 50%) 0 0 / 3px 14px repeat-y;
  animation: sf-walk-y 1.8s linear infinite;
}

@keyframes sf-walk-y {
  to { background-position: 0 14px; }
}

.sf-gap__distance em {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(243, 178, 60, 0.6);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sf-amber-ink);
  transform: translate(-50%, -50%);
}

.sf-gap__floor {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
}

@media (max-width: 1023px) {
  .sf-slide__body {
    aspect-ratio: auto;
    min-height: 150px;
  }

  .sf-gap__floor {
    aspect-ratio: 16 / 10;
  }
}

.sf-gap__floor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.sf-gap__floor figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
}

.sf-gap__list {
  display: grid;
  gap: 0 40px;
  margin-top: 56px;
}

.sf-gap__item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 0 26px;
  border-top: 1px solid var(--sf-line);
}

.sf-gap__num {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sf-amber-ink);
}

.sf-gap__item h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sf-ink);
}

.sf-gap__item p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--sf-muted);
}

@media (min-width: 640px) {
  .sf-gap__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sf-gap {
    padding-block: 140px 128px;
  }

  .sf-gap__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: end;
    max-width: none;
  }

  .sf-gap__intro .sf-eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -46px;
  }

  .sf-gap__intro .sf-lede {
    margin-top: 0;
  }

  .sf-gap__scene {
    grid-template-columns: minmax(0, 5fr) 168px minmax(0, 6fr);
    gap: 0;
    margin-top: 72px;
  }

  .sf-gap__distance {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--sf-amber) 50%, transparent 50%) 0 0 / 14px 3px repeat-x;
    animation-name: sf-walk-x;
  }

  .sf-gap__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 72px;
  }
}

@keyframes sf-walk-x {
  to { background-position: 14px 0; }
}

/* =========================================================
   The approach
   ========================================================= */
.sf-way {
  padding-block: 88px;
  background: var(--sf-soft);
}

.sf-way__head {
  max-width: 760px;
}

.sf-way__head .sf-lede {
  margin-top: 20px;
  max-width: 640px;
}

.sf-way__grid {
  display: grid;
  gap: 36px;
  margin-top: 48px;
}

.sf-way__visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(160deg, #e8ecf3, #dce3ed);
}

.sf-view {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.8s var(--sf-ease), visibility 0s linear 0.6s;
}

.sf-view.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.8s var(--sf-ease), visibility 0s;
}

.sf-view__photo {
  position: absolute;
  inset: 0;
}

.sf-view__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-view[data-view="2"] .sf-view__photo img {
  object-position: 45% 30%;
}

.sf-way__note {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-faint);
}

/* Shared white panel */
.sf-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 20px 22px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35), 0 1px 0 rgba(15, 23, 42, 0.04);
  color: var(--sf-ink);
}

.sf-panel__head {
  margin-bottom: 16px;
}

.sf-panel__head p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  color: var(--sf-faint);
}

.sf-panel__head b {
  font-size: 16px;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-panel__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sf-line);
  font-size: 12px;
  color: var(--sf-faint);
}

/* View: practical scenario */
.sf-quiz {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.45);
  color: var(--sf-ink);
}

.sf-quiz__q {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.sf-quiz__opts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sf-quiz__opts span {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--sf-line);
  font-size: 13.5px;
  color: var(--sf-muted);
}

.sf-quiz__opts .is-right {
  border-color: rgba(21, 128, 61, 0.4);
  background: rgba(21, 128, 61, 0.07);
  font-weight: 600;
  color: var(--sf-green);
}

.sf-way.is-auto .sf-view.is-active .sf-quiz__opts .is-right {
  animation: sf-right 0.5s ease both 0.9s;
}

@keyframes sf-right {
  from { border-color: var(--sf-line); background: transparent; color: var(--sf-muted); }
}

/* View: site sources */
.sf-sources__list {
  display: grid;
  gap: 8px;
}

.sf-sources__list li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sf-soft);
  font-size: 13.5px;
  color: var(--sf-ink);
}

.sf-sources__list em {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(60, 82, 148, 0.09);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  color: var(--sf-blue);
}

.sf-way.is-auto .sf-view.is-active .sf-sources__list li {
  animation: sf-rise 0.5s var(--sf-ease) both;
  animation-delay: calc(0.2s + var(--i) * 0.18s);
}

.sf-sources__out {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(243, 178, 60, 0.7);
  background: rgba(243, 178, 60, 0.08);
  font-size: 12.5px;
  color: var(--sf-faint);
}

.sf-sources__out b {
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-way.is-auto .sf-view.is-active .sf-sources__out {
  animation: sf-rise 0.6s var(--sf-ease) both 1.1s;
}

@keyframes sf-rise {
  from { opacity: 0; transform: translateY(8px); }
}

/* View: expertise quote */
.sf-quote {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 440px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(10, 13, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
}

.sf-quote p {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sf-quote footer {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.sf-quote footer b {
  font-weight: 600;
  color: var(--sf-amber);
}

/* View: reinforcement rhythm */
.sf-rhythm__track {
  position: relative;
  display: grid;
  gap: 14px;
}

.sf-rhythm__track::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(243, 178, 60, 0.45);
}

.sf-rhythm__track li {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 2px 12px;
  padding-left: 28px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sf-muted);
}

.sf-rhythm__track li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--sf-amber);
}

.sf-rhythm__track span {
  grid-row: 1 / span 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--sf-amber-ink);
}

.sf-rhythm__track b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-way.is-auto .sf-view.is-active .sf-rhythm__track li {
  animation: sf-rise 0.5s var(--sf-ease) both;
  animation-delay: calc(0.2s + var(--i) * 0.22s);
}

/* View: role readiness */
.sf-role__list {
  display: grid;
  gap: 8px;
}

.sf-role__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--sf-soft);
  font-size: 13.5px;
  color: var(--sf-ink);
}

.sf-role__list i {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 26, 28, 0.2);
}

.sf-role__list .is-done i {
  background: var(--sf-green);
  border-color: var(--sf-green);
}

.sf-role__list .is-done i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4.5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.sf-role__list .is-now i {
  border-color: var(--sf-amber);
  background: conic-gradient(var(--sf-amber) 0 50%, transparent 50% 100%);
}

.sf-role__list span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sf-faint);
}

.sf-role__list .is-done span {
  color: var(--sf-green);
}

.sf-role__list .is-now span {
  color: var(--sf-amber-ink);
}

@media (max-width: 639px) {
  .sf-way__visual {
    min-height: 540px;
  }

  .sf-view {
    padding: 50px 16px 16px;
  }

  .sf-panel {
    padding: 18px 16px;
  }

  .sf-sources__list li {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .sf-role__list li {
    gap: 10px;
    padding: 10px;
    font-size: 12.5px;
  }
}

/* Principle list */
.sf-way__list {
  border-bottom: 1px solid var(--sf-line);
}

.sf-way__item {
  position: relative;
  border-top: 1px solid var(--sf-line);
}

.sf-way__item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--sf-amber);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.sf-way__item.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.sf-way.is-auto .sf-way__item.is-active::before {
  animation: sf-fill var(--sf-way-ms, 6500ms) linear forwards;
}

.sf-way.is-paused .sf-way__item::before {
  animation-play-state: paused !important;
}

.sf-way__btn {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.sf-way__btn:focus-visible {
  outline: 2px solid var(--sf-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.sf-way__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sf-faint);
  transition: color 0.3s ease;
}

.sf-way__title {
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(26, 26, 28, 0.55);
  transition: color 0.3s ease;
}

.sf-way__btn:hover .sf-way__title,
.sf-way__item.is-active .sf-way__title {
  color: var(--sf-ink);
}

.sf-way__item.is-active .sf-way__num {
  color: var(--sf-amber-ink);
}

.sf-way__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--sf-ease);
}

.sf-way__item.is-active .sf-way__body {
  grid-template-rows: 1fr;
}

.sf-way__body p {
  min-height: 0;
  overflow: hidden;
  padding-left: 44px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--sf-muted);
}

.sf-way__item.is-active .sf-way__body p {
  padding-bottom: 22px;
}

@media (min-width: 640px) {
  .sf-view {
    padding: 40px;
  }

  .sf-quiz,
  .sf-quote {
    left: 28px;
    bottom: 28px;
    right: auto;
    width: calc(100% - 56px);
  }
}

@media (min-width: 1024px) {
  .sf-way {
    padding-block: 120px;
  }

  .sf-way__grid {
    grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr);
    gap: 72px;
    align-items: start;
    margin-top: 64px;
  }

  .sf-way__visual {
    position: sticky;
    top: 110px;
    min-height: 0;
    aspect-ratio: 1 / 0.86;
  }
}

/* =========================================================
   Concept preview
   ========================================================= */
.sf-story {
  position: relative;
  overflow: hidden;
  padding-block: 88px 72px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(243, 178, 60, 0.08), transparent 70%),
    #131417;
  color: var(--sf-dark-ink);
}

.sf-story__head {
  display: grid;
  gap: 20px;
}

.sf-story__head .sf-eyebrow {
  margin-bottom: 18px;
}

.sf-story__frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74%, 280px);
  gap: 18px;
  margin: 48px -20px 0;
  padding: 0 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
}

.sf-story__frames::-webkit-scrollbar {
  display: none;
}

.sf-frame {
  display: grid;
  gap: 20px;
  align-content: start;
  scroll-snap-align: start;
}

.sf-phone {
  padding: 6px;
  border-radius: 30px;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: opacity 0.5s ease, transform 0.6s var(--sf-ease), border-color 0.5s ease, box-shadow 0.5s ease;
}

.sf-phone__screen {
  position: relative;
  aspect-ratio: 506 / 900;
  overflow: hidden;
  border-radius: 24px;
  background: #f6f7f9;
  container-type: inline-size;
}

.sf-frame__text {
  display: grid;
  gap: 6px;
  transition: opacity 0.5s ease;
}

.sf-frame__num {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sf-amber);
}

.sf-frame__text h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--sf-dark-ink);
}

.sf-frame__text p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--sf-dark-muted);
}

/* Lesson screens, sized to the phone width */
.sf-scr {
  display: flex;
  flex-direction: column;
  gap: 4cqw;
  height: 100%;
  padding: 7cqw 6cqw 6cqw;
  font-size: 4.4cqw;
  line-height: 1.4;
  color: var(--sf-ink);
}

.sf-scr__bar {
  display: flex;
  justify-content: space-between;
  font-size: 3.6cqw;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-faint);
}

.sf-scr__photo {
  position: relative;
  overflow: hidden;
  border-radius: 4cqw;
  aspect-ratio: 4 / 3.4;
}

.sf-scr__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

.sf-scr__mark {
  position: absolute;
  left: 63%;
  top: 36%;
}

.sf-scr__mark i {
  position: absolute;
  left: -5cqw;
  top: -5cqw;
  width: 10cqw;
  height: 10cqw;
  border-radius: 50%;
  border: 0.7cqw solid var(--sf-amber);
  box-shadow: 0 0 0 1.6cqw rgba(243, 178, 60, 0.25);
}

.sf-scr__mark em {
  position: absolute;
  right: 7cqw;
  top: -3.2cqw;
  padding: 0.8cqw 2.4cqw;
  border-radius: 99px;
  background: var(--sf-amber);
  font-size: 3.4cqw;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
  color: #1a1206;
}

.sf-scr__h {
  font-size: 5.4cqw;
  line-height: 1.3;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-scr__p {
  margin-top: -2cqw;
  font-size: 4.2cqw;
  line-height: 1.45;
  color: var(--sf-muted);
}

.sf-scr__cta {
  margin-top: auto;
  padding: 3.4cqw;
  border-radius: 99px;
  background: var(--sf-blue);
  font-size: 4.2cqw;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.sf-scr__opts {
  display: grid;
  gap: 2.6cqw;
}

.sf-scr__opts li {
  padding: 3.2cqw 3.6cqw;
  border-radius: 3cqw;
  background: #fff;
  border: 0.4cqw solid var(--sf-line);
  color: var(--sf-muted);
}

.sf-scr__opts .is-right {
  border-color: rgba(21, 128, 61, 0.5);
  background: rgba(21, 128, 61, 0.08);
  font-weight: 600;
  color: var(--sf-green);
}

.sf-scr__fb {
  padding: 3.2cqw 3.6cqw;
  border-radius: 3cqw;
  background: #fff;
  border-left: 1cqw solid var(--sf-green);
  font-size: 3.9cqw;
  color: var(--sf-ink);
}

.sf-scr__video {
  position: relative;
  overflow: hidden;
  margin: -1cqw -1cqw 0;
  border-radius: 4cqw;
  aspect-ratio: 16 / 11;
  background: #0b0f15;
}

.sf-scr__video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}

.sf-scr__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13cqw;
  height: 13cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.sf-scr__play::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  border-style: solid;
  border-width: 2.4cqw 0 2.4cqw 3.8cqw;
  border-color: transparent transparent transparent var(--sf-ink);
  transform: translate(-40%, -50%);
}

.sf-scr__time {
  position: absolute;
  right: 2.6cqw;
  bottom: 2.6cqw;
  padding: 0.6cqw 2cqw;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 3.2cqw;
  font-weight: 600;
  color: #fff;
}

.sf-scr__tag {
  font-size: 3.4cqw;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-amber-ink);
}

.sf-scr__tag + .sf-scr__h {
  margin-top: -2.6cqw;
}

.sf-scr__steps {
  display: grid;
  gap: 2.2cqw;
  counter-reset: sf-step;
}

.sf-scr__steps li {
  display: grid;
  grid-template-columns: 6cqw minmax(0, 1fr);
  gap: 2.4cqw;
  align-items: center;
  padding: 2.6cqw 3cqw;
  border-radius: 3cqw;
  background: #fff;
  counter-increment: sf-step;
}

.sf-scr__steps li::before {
  content: counter(sf-step);
  display: grid;
  place-items: center;
  width: 6cqw;
  height: 6cqw;
  border-radius: 50%;
  background: rgba(243, 178, 60, 0.2);
  font-size: 3.4cqw;
  font-weight: 700;
  color: var(--sf-amber-ink);
}

.sf-scr__real {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sf-story__rail {
  display: none;
}

.sf-story__note {
  max-width: 760px;
  margin-top: 36px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--sf-dark-faint);
}

@media (min-width: 1024px) {
  .sf-story {
    padding-block: 120px 96px;
  }

  .sf-story__head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: end;
  }

  .sf-story__frames {
    grid-auto-flow: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 64px 0 0;
    padding: 0;
    overflow: visible;
  }

  .sf-story.is-auto .sf-frame:not(.is-active) .sf-phone {
    opacity: 0.5;
    transform: scale(0.97);
  }

  .sf-story.is-auto .sf-frame:not(.is-active) .sf-frame__text {
    opacity: 0.55;
  }

  .sf-story.is-auto .sf-frame.is-active .sf-phone {
    border-color: rgba(243, 178, 60, 0.55);
    box-shadow: 0 0 0 4px rgba(243, 178, 60, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }

  .sf-story.is-auto .sf-frame:not(.is-active) .sf-scr__opts .is-right {
    border-color: var(--sf-line);
    background: #fff;
    font-weight: 400;
    color: var(--sf-muted);
  }

  .sf-story.is-auto .sf-frame:not(.is-active) .sf-scr__fb {
    opacity: 0;
  }

  .sf-story.is-auto .sf-frame.is-active .sf-scr__opts .is-right {
    animation: sf-right 0.5s ease both 1s;
  }

  .sf-story.is-auto .sf-frame.is-active .sf-scr__fb {
    animation: sf-rise 0.5s var(--sf-ease) both 1.5s;
  }

  .sf-story.is-auto .sf-frame.is-active .sf-scr__mark i {
    animation: sf-ping 1.8s ease-out infinite;
  }

  .sf-story__rail {
    position: relative;
    display: block;
    height: 3px;
    margin-top: 40px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
  }

  .sf-story__rail i {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc((var(--step, 0) + 1) * 25%);
    background: var(--sf-amber);
    transition: width 0.8s var(--sf-ease);
  }
}

@keyframes sf-ping {
  0% { box-shadow: 0 0 0 0 rgba(243, 178, 60, 0.5); }
  100% { box-shadow: 0 0 0 4cqw rgba(243, 178, 60, 0); }
}

/* =========================================================
   Pilot
   ========================================================= */
.sf-pilot {
  padding-block: 96px 104px;
}

.sf-pilot__grid {
  display: grid;
  gap: 48px;
}

.sf-pilot__copy .sf-lede {
  margin-top: 20px;
  max-width: 600px;
}

.sf-pilot__steps {
  margin-top: 40px;
}

.sf-pilot__steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--sf-line);
}

.sf-pilot__steps li:last-child {
  border-bottom: 1px solid var(--sf-line);
}

.sf-pilot__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 28, 0.16);
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-pilot__steps h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-pilot__steps p {
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--sf-muted);
}

.sf-scope {
  position: relative;
  padding: 28px 22px 22px;
  border-radius: 24px;
  background: var(--sf-soft);
  border: 1px solid var(--sf-line);
  color: var(--sf-ink);
}

.sf-scope::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -1px;
  width: 64px;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: var(--sf-amber);
}

.sf-scope__head p {
  margin-top: 6px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.sf-scope__list {
  margin-top: 18px;
}

.sf-scope__list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--sf-line);
}

.sf-scope__list dt {
  padding-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-faint);
}

.sf-scope__list dd {
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--sf-ink);
}

.sf-scope.is-armed .sf-scope__list div {
  opacity: 0;
  transform: translateY(6px);
}

.sf-scope.is-in .sf-scope__list div {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.6s var(--sf-ease);
  transition-delay: calc(0.3s + var(--i) * 0.14s);
}

.sf-scope__judge {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
}

.sf-scope__judge ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sf-scope__judge li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--sf-ink);
}

.sf-scope__judge li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(243, 178, 60, 0.22);
}

.sf-scope__judge li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 4px;
  width: 4px;
  height: 7.5px;
  border-right: 1.75px solid var(--sf-amber-ink);
  border-bottom: 1.75px solid var(--sf-amber-ink);
  transform: rotate(45deg);
}

@media (min-width: 640px) {
  .sf-scope {
    padding: 32px 32px 28px;
  }

  .sf-scope::before {
    left: 32px;
  }

  .sf-scope__list div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .sf-scope__judge ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sf-pilot {
    padding-block: 140px 128px;
  }

  .sf-pilot__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 80px;
    align-items: start;
  }

  .sf-scope {
    position: sticky;
    top: 120px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .sf *,
  .sf *::before,
  .sf *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .sf-hero {
    border-radius: 0;
  }
}
