/* intro v27 — Evangelion cascade: organic blob, wide banner, diagonal steps, slide-in L/R, word reveal */

/* Organic blob */
.intro-eva__blob {
    width: 24rem;
    height: 24rem;
    filter: blur(60px);
    opacity: 0.4;
    border-radius: 38% 62% 55% 45% / 55% 42% 58% 45%;
    animation: intro-eva-morph 12s ease-in-out infinite;
}
@keyframes intro-eva-morph {
    50% { border-radius: 55% 45% 42% 58% / 42% 58% 45% 55%; }
}

/* Single wide banner */
.intro-eva__banner-img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}
@media (min-width: 768px) {
    .intro-eva__banner-img { height: 16rem; }
}

/* Stepped diagonal cascade + asymmetric mixed sizes */
.intro-eva__row { margin-left: 0; }
.intro-eva__cell { max-width: 46rem; }
@media (min-width: 768px) {
    .intro-eva__row:nth-child(1) .intro-eva__cell { margin-left: 0;    max-width: 40rem; }
    .intro-eva__row:nth-child(2) .intro-eva__cell { margin-left: 3rem; max-width: 34rem; }
    .intro-eva__row:nth-child(3) .intro-eva__cell { margin-left: 6rem; max-width: 44rem; }
    .intro-eva__row:nth-child(4) .intro-eva__cell { margin-left: 9rem; max-width: 30rem; }
}

/* Slide-in from L / R on scroll — hidden only once JS arms it (no-JS content stays visible) */
.intro-eva.is-armed .intro-eva__row {
    opacity: 0;
    transition: opacity 560ms ease, transform 560ms ease;
}
.intro-eva.is-armed .intro-eva__row:nth-child(odd)  { transform: translateX(-2.5rem); }
.intro-eva.is-armed .intro-eva__row:nth-child(even) { transform: translateX(2.5rem); }
.intro-eva.is-armed .intro-eva__row.is-in { opacity: 1; transform: translateX(0); }

/* Letterpress-ish press using the element's own colour */
.intro-eva__press { text-shadow: 0 1px 0 currentColor; }

/* Word-by-word reveal */
.intro-eva__word { display: inline-block; }
.intro-eva.is-armed .intro-eva__word {
    opacity: 0;
    transform: translateY(0.6em);
    transition: opacity 420ms ease, transform 420ms ease;
}
.intro-eva.is-armed .intro-eva__reveal.is-in .intro-eva__word { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .intro-eva__blob { animation: none; }
    .intro-eva__row { opacity: 1; transform: none; }
    .intro-eva__word { opacity: 1; transform: none; }
}

.essence-card-hover {
    transition: transform 0.3s ease;
}

.essence-card-hover:hover {
    transform: scale(1.05);
}

/* team v19 — masonry with corner dots */
.team-masonry__media {
  height: 16rem;
}

.team-masonry__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-masonry__card-accent {
  width: 0.25rem;
  z-index: 1;
}

.team-masonry__decor {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.team-masonry__decor--top-left {
  top: -40px;
  left: -40px;
  background-color: currentColor;
}

.team-masonry__decor--bottom-right {
  bottom: -40px;
  right: -40px;
  background-color: currentColor;
}

@media (max-width: 768px) {
  .team-masonry__decor {
    width: 80px;
    height: 80px;
  }
}

/* quote v27 — BAPE flow-chart: snow drift, script heading, connectors, ripples, drag */

.quote-flow__script-heading {
    font-family: "Segoe Script", "Brush Script MT", cursive;
}

.quote-flow__snow {
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    animation: quoteFlowSnow 12s linear infinite;
}
.quote-flow__snow--1 { left: 8%; top: -5%; animation-delay: 0s; }
.quote-flow__snow--2 { left: 18%; top: -8%; animation-delay: 1.5s; }
.quote-flow__snow--3 { left: 32%; top: -4%; animation-delay: 3s; }
.quote-flow__snow--4 { left: 48%; top: -7%; animation-delay: 0.8s; }
.quote-flow__snow--5 { left: 62%; top: -6%; animation-delay: 2.2s; }
.quote-flow__snow--6 { left: 74%; top: -9%; animation-delay: 4s; }
.quote-flow__snow--7 { left: 84%; top: -5%; animation-delay: 1.1s; }
.quote-flow__snow--8 { left: 92%; top: -7%; animation-delay: 2.8s; }
@keyframes quoteFlowSnow {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translate(-3rem, 110vh); opacity: 0; }
}

.quote-flow__connector {
    height: 3rem;
}

.quote-flow__ripple-wrap {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
}
.quote-flow__ripple {
    animation: quoteFlowRipple 2.4s ease-out infinite;
}
.quote-flow__ripple--delay {
    animation-delay: 1.2s;
}
@keyframes quoteFlowRipple {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.quote-flow__step-badge {
    width: 2rem;
    height: 2rem;
}

.quote-flow__card {
    border-radius: 0.25rem;
    box-shadow: 3px 3px 0 0 currentColor;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.quote-flow__card.is-dragging {
    opacity: 0.65;
    transform: rotate(-1deg) scale(1.02);
}
[data-quote-flow-item].is-drop-target .quote-flow__card {
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.quote-flow__thumb {
    aspect-ratio: 1 / 1;
    min-height: 4rem;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-flow-root [role="listitem"]:hover,
    .quote-flow-root article:hover,
    .quote-flow-root [class*="quote-flow__card"]:hover,
    .quote-flow-root .quote-flow__book:hover,
    .quote-flow-root .quote-flow__step:hover,
    .quote-flow-root .quote-flow__index-card:hover,
    .quote-flow-root .quote-flow__pill:hover,
    .quote-flow-root .quote-flow__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-flow-root [role="listitem"],
.quote-flow-root article,
.quote-flow-root [class*="quote-flow__card"],
.quote-flow-root .quote-flow__book,
.quote-flow-root .quote-flow__step,
.quote-flow-root .quote-flow__index-card,
.quote-flow-root .quote-flow__pill {
    transition: transform 200ms ease;
}

.quote-flow-root a:focus-visible,
.quote-flow-root button:focus-visible,
.quote-flow-root [tabindex="0"]:focus-visible,
.quote-flow-root input:focus-visible,
.quote-flow-root summary:focus-visible,
.quote-flow-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-flow-root button:hover,
    .quote-flow-root a:hover,
    .quote-flow-root summary:hover {
        opacity: 0.92;
    }
}

.mosaic-varied-quote__portrait {
    width: 4rem;
    height: 4rem;
}

