/* intro v20 — Calvin Klein magazine: shimmer sheen, mist, scale-up reveal, strike-through draw */

.intro-mag__img { object-fit: cover; }
.intro-mag__figure { aspect-ratio: 21 / 9; }

/* Gold-foil sheen → shimmer sweep (gradient colours come from Tailwind, motion from CSS) */
.intro-mag__sheen {
    background-size: 220% 220%;
    animation: intro-mag-shimmer 3s linear infinite;
    opacity: 0.35;
}
@keyframes intro-mag-shimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Smoke / mist wisp */
.intro-mag__mist {
    width: 24rem;
    height: 24rem;
    filter: blur(48px);
    opacity: 0.4;
}

/* LED step badge fixed size (no BS w-N/h-N utility) */
.intro-mag__led {
    width: 4rem;
    height: 4rem;
}

/* Dashed connector line (no BS border-style utility) */
.intro-mag__connector {
    border-style: dashed;
}

/* Scale-up on scroll into view — hidden only once JS arms it (no-JS content stays visible) */
.intro-mag.is-armed .intro-mag__scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 560ms ease, transform 560ms ease;
}
.intro-mag.is-armed .intro-mag__scale.is-in {
    opacity: 1;
    transform: scale(1);
}

/* Strikethrough line draw on hover */
.intro-mag__strike { height: 0.125rem; width: 0; transition: width 300ms ease; }
.intro-mag__st:hover .intro-mag__strike { width: 100%; }

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

.digest-sq-6  { width: 1.5rem;  height: 1.5rem;  flex-shrink: 0; }
.digest-sq-10 { width: 2.5rem;  height: 2.5rem;  flex-shrink: 0; }

/* Stack: как grid grid-cols-1 gap-lg (1.5rem в типичной шкале) */
.vertical-manifesto-grid {
    display: grid;
    width: 100%;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

/* Строка карточки: flex + gap-6 + items-start — то же, что tw flex flex-row items-start gap-6 */
.philosophy-v6-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

/* Как absolute -top-6 у бейджа в оригинале */
.philosophy-v6-badge-wrap {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -1.5rem;
}

.philosophy-v6-box {
    flex: 1;
    min-width: 0;
}

/* Круг как в Bootstrap + фикс «вытянутой» капсулы во flex */
.philosophy-vertical__badge {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
}

.philosophy-bg__img {
    object-fit: cover;
}

/* team v20 — vertical timeline + animated background decor */
.team-timeline__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.team-timeline__line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--tw-primary-500), transparent);
  transform: translateX(-50%);
  z-index: 1;
}

.team-timeline__blob {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: team-timeline-blob-morph 9s ease-in-out infinite;
  transform-origin: center;
}

.team-timeline__blob--tl {
  top: -4rem;
  left: -5rem;
  width: 20rem;
  height: 20rem;
}

.team-timeline__blob--br {
  bottom: -5rem;
  right: -4rem;
  width: 24rem;
  height: 24rem;
  animation-duration: 11s;
  animation-delay: 2s;
}

.team-timeline__glow--center {
  top: 50%;
  left: 50%;
  width: 24rem;
  height: 24rem;
  animation: team-timeline-glow-pulse 7s ease-in-out infinite;
  transform-origin: center;
}

.team-timeline__ring--1 {
  top: 6rem;
  right: 1.5rem;
  animation: team-timeline-spin 28s linear infinite;
  transform-origin: center;
}

.team-timeline__ring--2 {
  bottom: 8rem;
  left: 1rem;
  animation: team-timeline-pulse-ring 5.5s ease-in-out infinite;
  transform-origin: center;
}

.team-timeline__ring--3 {
  top: 33%;
  left: 2rem;
  animation: team-timeline-spin-reverse 22s linear infinite;
  transform-origin: center;
}

.team-timeline__spark {
  animation: team-timeline-spark-float 4.5s ease-in-out infinite;
}

.team-timeline__spark--1 {
  animation-delay: 0s;
}

.team-timeline__spark--2 {
  animation-delay: 0.7s;
}

.team-timeline__spark--3 {
  animation-delay: 1.4s;
}

.team-timeline__spark--4 {
  animation-delay: 2.1s;
}

.team-timeline__spark--1 {
  top: 18%;
  left: 46%;
  width: 0.5rem;
  height: 0.5rem;
}

.team-timeline__spark--2 {
  top: 42%;
  left: 52%;
  width: 0.75rem;
  height: 0.75rem;
}

.team-timeline__spark--3 {
  top: 68%;
  left: 48%;
  width: 0.5rem;
  height: 0.5rem;
}

.team-timeline__spark--4 {
  bottom: 22%;
  right: 18%;
  width: 0.5rem;
  height: 0.5rem;
}

.team-timeline__diamond--1 {
  top: 4rem;
  left: 12%;
  width: 2.5rem;
  height: 2.5rem;
  animation: team-timeline-diamond-turn-1 16s linear infinite;
  transform-origin: center;
}

.team-timeline__diamond--2 {
  bottom: 5rem;
  right: 10%;
  width: 3.5rem;
  height: 3.5rem;
  animation: team-timeline-diamond-turn-2 20s linear infinite reverse;
  transform-origin: center;
}

.team-timeline__ring--1 {
  width: 9rem;
  height: 9rem;
}

.team-timeline__ring--2 {
  width: 7rem;
  height: 7rem;
}

.team-timeline__ring--3 {
  width: 5rem;
  height: 5rem;
}

@media (min-width: 768px) {
  .team-timeline__ring--1 {
    width: 12rem;
    height: 12rem;
    right: 3rem;
  }

  .team-timeline__ring--2 {
    left: 2.5rem;
  }

  .team-timeline__ring--3 {
    left: 2rem;
  }
}

.team-timeline__item {
  position: relative;
  z-index: 2;
}

.team-timeline__dot {
  width: 1.25rem;
  height: 1.25rem;
}

.team-timeline__avatar {
  width: 11rem;
  height: 11rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .team-timeline__avatar {
    width: 14rem;
    height: 14rem;
  }
}

.team-timeline__panel--end {
  text-align: center;
}

@media (min-width: 768px) {
  .team-timeline__photo--end {
    justify-content: flex-end;
  }

  .team-timeline__photo--start {
    justify-content: flex-start;
  }

  .team-timeline__panel--end {
    text-align: right;
  }

  .team-timeline__panel--end .team-timeline__pill {
    margin-left: auto;
  }

  .team-timeline__panel--end .team-timeline__tags-row {
    justify-content: flex-end;
  }
}

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

.team-timeline__item [class*='col-md-6'] {
  min-width: 0;
}

.team-timeline__item:hover .team-timeline__dot {
  width: 1.5rem;
  height: 1.5rem;
}

@keyframes team-timeline-blob-morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: scale(1);
  }
  33% {
    border-radius: 58% 42% 38% 62% / 52% 48% 52% 48%;
    transform: scale(1.06);
  }
  66% {
    border-radius: 42% 58% 62% 38% / 48% 62% 38% 52%;
    transform: scale(0.97);
  }
}

@keyframes team-timeline-glow-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
}

@keyframes team-timeline-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes team-timeline-spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes team-timeline-pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

@keyframes team-timeline-spark-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-0.65rem);
    opacity: 1;
  }
}

@keyframes team-timeline-diamond-turn-1 {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(405deg);
  }
}

@keyframes team-timeline-diamond-turn-2 {
  from {
    transform: rotate(12deg);
  }
  to {
    transform: rotate(372deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-timeline__blob,
  .team-timeline__glow--center,
  .team-timeline__ring--1,
  .team-timeline__ring--2,
  .team-timeline__ring--3,
  .team-timeline__spark,
  .team-timeline__diamond {
    animation: none;
  }
}

.team-timeline__min-shrink {
  min-width: 0;
}

/* quote v13 — sekiro swimlane index cards: tessellation, CRT flicker, smoke wisps */

/* geometric tessellation tile sizing */
.sekiro-swimlane__tessellation svg {
    width: 100%;
    height: 100%;
}

/* CRT scanline flicker loop — tint via currentColor on the element */
.sekiro-swimlane__scanlines {
    background-image: repeating-linear-gradient(
        to bottom,
        currentColor 0,
        currentColor 1px,
        transparent 1px,
        transparent 3px
    );
    background-size: 100% 3px;
    animation: sekiro-swimlane-scanline-flicker 2.4s steps(2, end) infinite;
}

@keyframes sekiro-swimlane-scanline-flicker {
    0%, 100% {
        opacity: .12;
    }
    50% {
        opacity: .28;
    }
}

/* smoke / mist wisps — layout + blur only */
.sekiro-swimlane__wisp {
    filter: blur(48px);
    animation: sekiro-swimlane-wisp-drift 14s ease-in-out infinite;
}

.sekiro-swimlane__wisp--a {
    top: 8%;
    left: -4%;
    width: 16rem;
    height: 10rem;
    animation-delay: 0s;
}

.sekiro-swimlane__wisp--b {
    top: 42%;
    right: -6%;
    width: 20rem;
    height: 12rem;
    animation-delay: 4.5s;
}

.sekiro-swimlane__wisp--c {
    bottom: 6%;
    left: 28%;
    width: 14rem;
    height: 9rem;
    animation-delay: 9s;
}

@keyframes sekiro-swimlane-wisp-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: .35;
    }
    50% {
        transform: translate(1.5rem, -0.75rem) scale(1.08);
        opacity: .65;
    }
}

/* typography axis: lowercase body copy */
.sekiro-swimlane__body {
    text-transform: lowercase;
}

/* pull-quote aside accent rail */
.sekiro-swimlane__pull-rail {
    width: 3px;
    min-height: 3rem;
}

/* lane focus toggle — JS-driven active state (TW + BS parity via theme tokens) */
.sekiro-swimlane__tab {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
    transition: border-color 180ms ease, color 180ms ease;
    background-color: transparent;
    border-style: solid;
}

.sekiro-swimlane__tab.is-active {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

/* swimlane panel — flex/grid child must shrink below content width for overflow-x scroll */
.sekiro-swimlane__panel {
    min-width: 0;
}

/* swimlane row focus / dim states */
.sekiro-swimlane__lane {
    max-width: 100%;
    transition: opacity 220ms ease, transform 220ms ease;
}

.sekiro-swimlane__lane.is-dimmed {
    opacity: .42;
}

.sekiro-swimlane__lane.is-focused {
    opacity: 1;
    transform: translateY(-0.125rem);
}

/* index-card micro tile */
.sekiro-swimlane__index-card {
    width: 11.5rem;
    min-height: 9.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.sekiro-swimlane__index-card:hover {
    transform: translateY(-0.25rem);
}

/* ruled index-card lines — currentColor only */
.sekiro-swimlane__index-card__rules {
    top: 2rem;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 0.85rem,
        currentColor 0.85rem,
        currentColor calc(0.85rem + 1px)
    );
    background-size: 100% 1.125rem;
    opacity: .08;
}

/* hole-punch marker */
.sekiro-swimlane__index-card__punch {
    width: 0.5rem;
    height: 0.5rem;
}

/* horizontal swimlane scroll snap */
.sekiro-swimlane__track {
    width: 100%;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* pull-quote clamp for aside width */
.sekiro-swimlane__pull-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

/* card quote clamp */
.sekiro-swimlane__card-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .sekiro-swimlane__scanlines,
    .sekiro-swimlane__wisp {
        animation: none;
    }

    .sekiro-swimlane__lane,
    .sekiro-swimlane__index-card {
        transition: none;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .sekiro-swimlane-root [role="listitem"]:hover,
    .sekiro-swimlane-root article:hover,
    .sekiro-swimlane-root [class*="sekiro-swimlane__card"]:hover,
    .sekiro-swimlane-root .sekiro-swimlane__book:hover,
    .sekiro-swimlane-root .sekiro-swimlane__step:hover,
    .sekiro-swimlane-root .sekiro-swimlane__index-card:hover,
    .sekiro-swimlane-root .sekiro-swimlane__pill:hover,
    .sekiro-swimlane-root .sekiro-swimlane__item:hover {
        transform: translateY(-0.125rem);
    }
}

.sekiro-swimlane-root [role="listitem"],
.sekiro-swimlane-root article,
.sekiro-swimlane-root [class*="sekiro-swimlane__card"],
.sekiro-swimlane-root .sekiro-swimlane__book,
.sekiro-swimlane-root .sekiro-swimlane__step,
.sekiro-swimlane-root .sekiro-swimlane__index-card,
.sekiro-swimlane-root .sekiro-swimlane__pill {
    transition: transform 200ms ease;
}

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

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

