/* Statement section — scroll-pinned sentence; a large tooth flies into the word slot
   Values mirror the reference component props: scrollLength 140, stageHeight 70. */
.statement {
  position: relative;
  width: 100%;
  --scroll-length: 90;    /* vh of pinned scroll (was 140; user asked for a faster tooth) */
  --stage-height: 70;     /* vh */
}

.statement__track {
  position: relative;
  height: calc((100 + var(--scroll-length)) * 1vh);
}

.statement__stage {
  position: sticky;
  top: calc((100vh - var(--stage-height) * 1vh) / 2);
  min-height: calc(var(--stage-height) * 1vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow: hidden;
}

.statement__text {
  margin: 0;
  max-width: 22ch;
  text-align: center;
  color: var(--ink);
  font-family: var(--font);
  font-size: 45px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15em;
}
@media (min-width: 1200px) {
  .statement__text { font-size: 56px; }
}

.statement__text .w {
  display: inline-block;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(14px);
}
.statement__text .accent { color: var(--accent); }

/* Inline image slots ("sockets") */
.statement__text .slot {
  display: inline-block;
  position: relative;
  vertical-align: -0.14em;
  width: 1.9em;
  height: 1em;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  transform: translateY(14px);
}
.statement__text .slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slot--crown img { object-fit: contain; visibility: hidden; } /* the flying crown stands in for it */
.slot--photo img { object-fit: cover; transform: scale(.9); opacity: 0; }

/* The flying crown */
.statement__crown {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 56px;
  transform-origin: top left;
  will-change: transform;
  z-index: 2;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1) 150ms;
  pointer-events: none;
}
.statement__crown img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(var(--shadow-tint), .18));
}
.statement__crown.is-in { opacity: 1; }

/* Reduced motion: static sentence, crown sits in its slot */
@media (prefers-reduced-motion: reduce) {
  .statement__track { height: auto; }
  .statement__stage { position: relative; top: 0; min-height: 0; }
  .statement__text .w,
  .statement__text .slot { opacity: 1; transform: none; }
  .slot--crown img { visibility: visible; }
  .slot--photo img { transform: none; opacity: 1; }
  .statement__crown { display: none; }
}
