/* Intro splash — always viewport-centered, no page scroll */
.ohf-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: block;
  background: #101820;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  opacity: 1;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.ohf-splash.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ohf-splash[hidden] {
  display: none !important;
}

.ohf-splash__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  z-index: 2;
}

.ohf-splash__bar span:nth-child(1) { background: #572d2d; }
.ohf-splash__bar span:nth-child(2) { background: #f1be48; }
.ohf-splash__bar span:nth-child(3) { background: #007396; }
.ohf-splash__bar span:nth-child(4) { background: #f67599; }
.ohf-splash__bar span:nth-child(5) { background: #f4633a; }
.ohf-splash__bar span:nth-child(6) { background: #3e7054; }
.ohf-splash__bar span:nth-child(7) { background: #c54644; }
.ohf-splash__bar span:nth-child(8) { background: #71b0b4; }
.ohf-splash__bar span:nth-child(9) { background: #e6baa8; }
.ohf-splash__bar span:nth-child(10) { background: #101820; }

/* Brand-black masthead — “One symbol for all” owns the top */
.ohf-splash__banner {
  position: absolute;
  top: 6px; /* below color bar */
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 88px;
  padding: 22px 28px;
  background: #000000;
  border-bottom: 3px solid #101820;
  box-shadow: 0 1px 0 rgba(230, 186, 168, 0.35); /* brand nude hairline */
}

/* True center of the viewport — independent of document scroll */
.ohf-splash__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 1;
  box-sizing: border-box;
  width: min(880px, calc(100vw - 40px));
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 16px 12px;
  text-align: left;
  overflow: hidden;
}

.ohf-splash__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  min-height: 0;
}

@media (min-width: 768px) {
  .ohf-splash__split {
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.15fr);
    gap: 48px;
  }
}

.ohf-splash__stage {
  position: relative;
  width: min(320px, 70vw, 46vh);
  max-width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .ohf-splash__stage {
    width: min(340px, 38vw, 56vh);
    margin-inline: 0;
  }
}

.ohf-splash__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  text-align: left;
}

.ohf-splash__ring {
  position: absolute;
  inset: -8%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: splash-pulse-ring 3.2s ease-out infinite;
  opacity: 0;
  pointer-events: none;
}

.ohf-splash__ring:nth-child(2) { animation-delay: 1.1s; }
.ohf-splash__ring:nth-child(3) { animation-delay: 2.2s; }

@keyframes splash-pulse-ring {
  0% { transform: scale(0.72); opacity: 0.45; }
  100% { transform: scale(1.28); opacity: 0; }
}

.ohf-splash__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  color: #fff;
}

.ohf-splash__svg .draw {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.15;
  transition: stroke 280ms ease, opacity 280ms ease, filter 280ms ease;
}

.ohf-splash__svg .draw.is-drawing,
.ohf-splash__svg .draw.is-drawn {
  opacity: 1;
}

/* Match emblem.svg stroke weights */
.ohf-splash__svg .part-circle { stroke-width: 7; }
.ohf-splash__svg .part-o,
.ohf-splash__svg .part-stem,
.ohf-splash__svg .part-h,
.ohf-splash__svg .part-h1,
.ohf-splash__svg .part-h2,
.ohf-splash__svg .part-f { stroke-width: 6; }

/* Soft brand accents while teaching — color applies during draw + hold */
.ohf-splash__svg.is-teaching-o .part-o.is-accent,
.ohf-splash__svg.is-teaching-o .part-o.is-drawing {
  stroke: #71b0b4;
}

.ohf-splash__svg.is-teaching-o .part-circle,
.ohf-splash__svg.is-teaching-o .part-stem,
.ohf-splash__svg.is-teaching-o .part-h1,
.ohf-splash__svg.is-teaching-o .part-h2,
.ohf-splash__svg.is-teaching-o .part-f {
  opacity: 0.22;
}

/* H = stem + two bars (brand: horizontals across the stem) */
.ohf-splash__svg.is-teaching-h .part-stem.is-accent,
.ohf-splash__svg.is-teaching-h .part-stem.is-drawing,
.ohf-splash__svg.is-teaching-h .part-h.is-accent,
.ohf-splash__svg.is-teaching-h .part-h.is-drawing,
.ohf-splash__svg.is-teaching-h .part-h1.is-accent,
.ohf-splash__svg.is-teaching-h .part-h1.is-drawing,
.ohf-splash__svg.is-teaching-h .part-h2.is-accent,
.ohf-splash__svg.is-teaching-h .part-h2.is-drawing {
  stroke: #f4633a;
}

.ohf-splash__svg.is-teaching-h .part-circle,
.ohf-splash__svg.is-teaching-h .part-o,
.ohf-splash__svg.is-teaching-h .part-f {
  opacity: 0.22;
}

/* F = long vertical stem + base foot (brand) — stem stays lit, not dimmed */
.ohf-splash__svg.is-teaching-f .part-stem.is-accent,
.ohf-splash__svg.is-teaching-f .part-stem.is-drawing,
.ohf-splash__svg.is-teaching-f .part-f.is-accent,
.ohf-splash__svg.is-teaching-f .part-f.is-drawing {
  stroke: #f1be48;
}

.ohf-splash__svg.is-teaching-f .part-circle,
.ohf-splash__svg.is-teaching-f .part-o,
.ohf-splash__svg.is-teaching-f .part-h1,
.ohf-splash__svg.is-teaching-f .part-h2 {
  opacity: 0.22;
}

.ohf-splash__svg.is-all-white .draw.is-drawn,
.ohf-splash__svg.is-all-white .draw.is-drawing {
  stroke: #ffffff;
  opacity: 1;
  filter: none;
}

.ohf-splash__kicker {
  margin: 0;
  max-width: 20ch;
  font-family: "One Human Family", "Franie", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 5.2vw, 48px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  opacity: 0;
  flex: 0 0 auto;
}

.ohf-splash__title {
  margin: 0;
  font-family: "One Human Family", "Franie", Helvetica, Arial, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0;
  flex: 0 0 auto;
  line-height: 1.15;
  /* Keep out of flow until the final OHF reveal so letter steps stay tight */
  display: none;
}

.ohf-splash__title .letter {
  display: inline-block;
  opacity: 0;
}

.ohf-splash__story {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
}

.ohf-splash__step {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.ohf-splash__step.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.ohf-splash__step.is-done {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

.ohf-splash__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0 0 10px;
  border: 2px solid currentColor;
  font-family: "One Human Family", "Franie", Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
}

.ohf-splash__lockup {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.ohf-splash__lockup-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: "One Human Family", "Franie", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.ohf-splash__lockup-letter:last-child {
  border-right: 0;
}

.ohf-splash__lockup-letter--o { color: #71b0b4; }
.ohf-splash__lockup-letter--h { color: #f4633a; }
.ohf-splash__lockup-letter--f { color: #f1be48; }

.ohf-splash.is-revealing-name .ohf-splash__step[data-step="all"] .ohf-splash__lockup-letter {
  animation: splash-lockup-settle 700ms ease forwards;
}

.ohf-splash.is-revealing-name .ohf-splash__step[data-step="all"] .ohf-splash__lockup-letter--h {
  animation-delay: 120ms;
}

.ohf-splash.is-revealing-name .ohf-splash__step[data-step="all"] .ohf-splash__lockup-letter--f {
  animation-delay: 240ms;
}

@keyframes splash-lockup-settle {
  from { opacity: 0.35; }
  to { opacity: 1; color: #fff; }
}

.ohf-splash__step h2 {
  margin: 0 0 8px;
  font-family: "One Human Family", "Franie", Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 400;
  color: inherit; /* O/H/F accent from step */
  line-height: 1.2;
}

.ohf-splash__step h2 .ohf-splash__word {
  color: #fff;
}

.ohf-splash__step[data-step="all"] h2 {
  color: #fff;
}

.ohf-splash__nowrap {
  white-space: nowrap;
}

.ohf-splash__step p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
}

.ohf-splash__step p strong {
  color: #fff;
  font-weight: 600;
}

.ohf-splash__step[data-step="o"] { color: #71b0b4; }
.ohf-splash__step[data-step="h"] { color: #f4633a; }
.ohf-splash__step[data-step="f"] { color: #f1be48; }
.ohf-splash__step[data-step="all"] { color: #fff; }

.ohf-splash__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  min-height: 44px;
  opacity: 0;
  pointer-events: none;
  flex: 0 0 auto;
}

.ohf-splash__cta.is-ready {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 400ms ease;
}

.ohf-splash__enter {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  background: #fff;
  color: #101820;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.ohf-splash__enter:hover {
  background: #f1be48;
}

.ohf-splash__skip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.ohf-splash__skip:hover {
  border-color: #fff;
}

.ohf-splash__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.ohf-splash__progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: #007396;
  transition: width 400ms ease;
}

.ohf-splash.is-visible .ohf-splash__kicker {
  animation: splash-fade-in 600ms ease forwards;
}

.ohf-splash.is-revealing-name .ohf-splash__title {
  display: block;
  animation: splash-fade-in 600ms ease forwards;
}

@keyframes splash-fade-in {
  to { opacity: 1; }
}

.ohf-splash.is-revealing-name .ohf-splash__title .letter {
  animation: splash-letter 480ms ease forwards;
}

@keyframes splash-letter {
  to { opacity: 1; }
}

html.splash-locked,
body.splash-locked {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
}

@media (max-height: 700px) {
  .ohf-splash__banner {
    min-height: 56px;
    padding: 12px 16px;
  }

  .ohf-splash__kicker {
    font-size: clamp(20px, 4vw, 32px);
  }

  .ohf-splash__stage {
    width: min(132px, 28vw, 18vh);
  }

  .ohf-splash__story {
    height: 5.5rem;
  }

  .ohf-splash__letter,
  .ohf-splash__lockup {
    display: none;
  }

  .ohf-splash__inner {
    gap: 8px;
  }
}

@media (max-height: 540px) {
  .ohf-splash__stage {
    width: min(96px, 16vh);
  }

  .ohf-splash__story {
    height: 4.5rem;
  }

  .ohf-splash__step p {
    font-size: 12px;
    line-height: 1.3;
  }

  .ohf-splash__title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ohf-splash__ring,
  .ohf-splash__svg .draw.is-drawing,
  .ohf-splash.is-visible .ohf-splash__kicker,
  .ohf-splash.is-revealing-name .ohf-splash__title,
  .ohf-splash.is-revealing-name .ohf-splash__title .letter,
  .ohf-splash.is-revealing-name .ohf-splash__step[data-step="all"] .ohf-splash__lockup-letter {
    animation: none !important;
  }

  .ohf-splash__svg .draw {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .ohf-splash__kicker,
  .ohf-splash__title,
  .ohf-splash__cta,
  .ohf-splash__title .letter,
  .ohf-splash__lockup-letter {
    opacity: 1;
  }

  .ohf-splash.is-revealing-name .ohf-splash__title {
    display: block;
  }

  .ohf-splash__lockup-letter {
    color: #fff;
  }
}
