/* intro v19 — photo-free index list: soft blurred blobs, fixed icon tiles, scroll reveal */

/* Soft background blobs (fixed size + blur have no BS utility; colour stays a Tailwind/BS class) */
.intro-index__blob {
    width: 24rem;
    height: 24rem;
    filter: blur(64px);
    opacity: 0.5;
}

/* Icon tile fixed size (BS has no w-N/h-N utility) */
.intro-index__icon-tile {
    width: 3rem;
    height: 3rem;
}

/* Scroll reveal — cards hide only once JS arms the section (no-JS content stays visible) */
.intro-index.is-armed .intro-index__card {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 560ms ease, transform 560ms ease;
}
.intro-index.is-armed .intro-index__card.is-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .intro-index.is-armed .intro-index__card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.tour-panel-hover {
    transition: box-shadow 0.2s ease;
}

.tour-panel-hover:hover {
    box-shadow: var(--bs-box-shadow);
}

details[open] .tour-open-icon {
    transform: scale(1.05);
}

details[open] .tour-chevron {
    transform: rotate(180deg);
}

.tour-open-icon,
.tour-chevron {
    transition: transform 0.3s ease;
}

.art-deco-reveal-timeline__panel--hidden {
    display: none !important;
}

.art-deco-reveal-timeline__tab--active {
    position: relative;
}

.art-deco-reveal-timeline__tab--active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    outline: 2px solid;
    outline-offset: -2px;
}

@keyframes art-deco-reveal-timeline__reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.art-deco-reveal-timeline__panel:not(.art-deco-reveal-timeline__panel--hidden) {
    animation: art-deco-reveal-timeline__reveal 0.35s ease forwards;
}

.art-deco-reveal-timeline__corner-tl {
    top: 1.5rem;
    left: 1.5rem;
    width: 5rem;
    height: 5rem;
}

.art-deco-reveal-timeline__corner-tr {
    top: 1.5rem;
    right: 1.5rem;
    width: 5rem;
    height: 5rem;
}

.art-deco-reveal-timeline__corner-bl {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 5rem;
    height: 5rem;
}

.art-deco-reveal-timeline__corner-br {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 5rem;
    height: 5rem;
}

.art-deco-reveal-timeline__diamond-mid {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 0.75rem;
    height: 0.75rem;
    left: 0;
}

.art-deco-reveal-timeline__diamond-mid--right {
    left: auto;
    right: 0;
}

.art-deco-reveal-timeline__diamond-sm {
    width: 0.5rem;
    height: 0.5rem;
    transform: rotate(45deg);
}

.art-deco-reveal-timeline__inner-border {
    inset: 0.5rem;
}

.art-deco-reveal-timeline__icon-diamond {
    width: 5rem;
    height: 5rem;
    transform: rotate(45deg);
}

.art-deco-reveal-timeline__icon-inner {
    transform: rotate(-45deg);
}

.art-deco-reveal-timeline__diamond-xs {
    width: 0.375rem;
    height: 0.375rem;
    transform: rotate(45deg);
}

.art-deco-reveal-timeline__min-shrink {
  min-width: 0;
}

/* Bootstrap: явный gap между карточками (row + row-cols часто без горизонтального gutter) */
.values-icon-grid__bs-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.values-icon-grid__subtitle {
    max-width: 42rem;
}

.values-icon-grid__thumb {
    width: 4rem;
    height: 4rem;
}

/* team v27 — alternating rows + morphing decor shapes */
.team-zigzag__scene {
  overflow: hidden;
}

.team-zigzag__morph {
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  transform-origin: center center;
  animation: team-zigzag-morph 11s ease-in-out infinite;
}

.team-zigzag__morph--a {
  animation-duration: 9s;
}

.team-zigzag__morph--b {
  animation-duration: 12s;
  animation-delay: 1.5s;
}

.team-zigzag__morph--c {
  animation-duration: 10s;
  animation-delay: 3s;
}

.team-zigzag__morph--d {
  animation-duration: 13s;
  animation-delay: 0.5s;
}

.team-zigzag__morph--e {
  animation-duration: 14s;
  animation-delay: 2s;
}

@keyframes team-zigzag-morph {
  0%,
  100% {
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    transform: scale(1) rotate(0deg);
  }
  33% {
    border-radius: 65% 35% 45% 55% / 42% 58% 38% 62%;
    transform: scale(1.06) rotate(4deg);
  }
  66% {
    border-radius: 52% 48% 62% 38% / 58% 42% 55% 45%;
    transform: scale(0.94) rotate(-3deg);
  }
}

/* Ambient layer — spin, float, pulse (distinct from morph blobs) */
.team-zigzag__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-zigzag__orbit {
  transform-origin: center center;
  animation: team-zigzag-orbit-spin 22s linear infinite;
}

.team-zigzag__orbit--rev {
  animation-direction: reverse;
  animation-duration: 30s;
}

.team-zigzag__orbit--lg {
  width: 11rem;
  height: 11rem;
  animation-duration: 26s;
}

.team-zigzag__orbit--sm {
  width: 7rem;
  height: 7rem;
}

.team-zigzag__spark {
  animation: team-zigzag-spark-float 5.5s ease-in-out infinite;
}

.team-zigzag__spark--b {
  animation-delay: 0.8s;
  animation-duration: 4.5s;
}

.team-zigzag__spark--c {
  animation-delay: 1.6s;
  animation-duration: 6s;
}

.team-zigzag__prism {
  width: 2.5rem;
  height: 2.5rem;
  transform-origin: center center;
  animation: team-zigzag-prism-pulse 7s ease-in-out infinite;
}

.team-zigzag__sweep {
  transform-origin: center center;
  width: 8rem;
  height: 2px;
  animation: team-zigzag-sweep-drift 9s ease-in-out infinite;
}

.team-zigzag__sweep--alt {
  width: 6rem;
  animation-delay: 2s;
  animation-duration: 11s;
}

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

@keyframes team-zigzag-spark-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-0.75rem) scale(1.35);
    opacity: 1;
  }
}

@keyframes team-zigzag-prism-pulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: rotate(52deg) scale(1.2);
    opacity: 0.85;
  }
}

@keyframes team-zigzag-sweep-drift {
  0%,
  100% {
    transform: rotate(-14deg) translateX(-0.5rem) scaleX(0.8);
    opacity: 0.2;
  }
  50% {
    transform: rotate(6deg) translateX(0.75rem) scaleX(1.15);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-zigzag__morph,
  .team-zigzag__orbit,
  .team-zigzag__spark,
  .team-zigzag__prism,
  .team-zigzag__sweep {
    animation: none;
  }
}

.team-zigzag__portrait {
  width: 5.5rem;
  height: 5.5rem;
}

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

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

/* quote wireframe — typography, aurora sweep, ruler marks, celtic knots, dual-image crop */

.quote-wire__heading-serif {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.quote-wire__body-sans {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* horizontal aurora wave — translate only; gradient colors live in template classes */
@keyframes quoteWireAuroraSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

.quote-wire__aurora {
    width: 60%;
    height: 140%;
    top: -20%;
    left: 20%;
    filter: blur(4rem);
    animation: quoteWireAuroraSweep 14s linear infinite;
    will-change: transform;
}

/* ruler measurement marks — tick pattern via transparent gaps, color from currentColor */
.quote-wire__ruler {
    height: 1.25rem;
    background-image:
        repeating-linear-gradient(
            90deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            90deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 24px
        );
    background-size: 6px 40%, 24px 100%;
    background-position: left bottom, left top;
    background-repeat: repeat-x;
}

.quote-wire__ruler--vertical {
    width: 1.25rem;
    height: 100%;
    min-height: 8rem;
    background-image:
        repeating-linear-gradient(
            180deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            180deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 24px
        );
    background-size: 40% 6px, 100% 24px;
    background-position: right top, left top;
    background-repeat: repeat-y;
}

/* wireframe corner brackets */
.quote-wire__bracket {
    width: 1.5rem;
    height: 1.5rem;
    border-style: solid;
    border-width: 0;
}

.quote-wire__bracket--tl {
    top: 0.5rem;
    left: 0.5rem;
    border-top-width: 2px;
    border-left-width: 2px;
}

.quote-wire__bracket--br {
    bottom: 0.5rem;
    right: 0.5rem;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* celtic-knot corner accents — interlaced L-shapes, distinct from deck overlap variant */
.quote-wire__knot {
    width: 1.75rem;
    height: 1.75rem;
    pointer-events: none;
}

.quote-wire__knot--tl {
    top: 0.35rem;
    left: 0.35rem;
    clip-path: polygon(0 0, 100% 0, 100% 28%, 28% 28%, 28% 100%, 0 100%, 0 55%, 55% 55%, 55% 0);
}

.quote-wire__knot--tr {
    top: 0.35rem;
    right: 0.35rem;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 72% 55%, 72% 100%, 45% 100%, 45% 28%, 0 28%);
}

.quote-wire__knot--bl {
    bottom: 0.35rem;
    left: 0.35rem;
    clip-path: polygon(0 45%, 28% 45%, 28% 0, 55% 0, 55% 72%, 100% 72%, 100% 100%, 0 100%);
}

.quote-wire__knot--br {
    bottom: 0.35rem;
    right: 0.35rem;
    clip-path: polygon(72% 0, 100% 0, 100% 100%, 0 100%, 0 72%, 45% 72%, 45% 45%, 72% 45%);
}

/* featured card — diagonal crop dual-image overlap */
.quote-wire__dual-media {
    position: relative;
    height: 9rem;
    overflow: hidden;
}

.quote-wire__dual-media img {
    position: absolute;
    top: 0;
    width: 78%;
    height: 100%;
    object-fit: cover;
}

.quote-wire__dual-media img:first-child {
    left: 0;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
}

.quote-wire__dual-media img:last-child {
    right: 0;
    z-index: 2;
    clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}

/* wireframe grid crosshair overlay */
.quote-wire__crosshair {
    background-image:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
}

/* slot group spacing — vertical rhythm between named slots */
.quote-wire__slot-stack > [data-slot] + [data-slot] {
    margin-top: 1rem;
}

.quote-wire__card-slot > [data-slot="attribution"] {
    margin-top: auto;
    padding-top: 0.75rem;
}

.quote-wire__panel-body {
    min-width: 0;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-wire-root [role="listitem"]:hover,
    .quote-wire-root article:hover,
    .quote-wire-root [class*="quote-wire__card"]:hover,
    .quote-wire-root .quote-wire__book:hover,
    .quote-wire-root .quote-wire__step:hover,
    .quote-wire-root .quote-wire__index-card:hover,
    .quote-wire-root .quote-wire__pill:hover,
    .quote-wire-root .quote-wire__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-wire-root [role="listitem"],
.quote-wire-root article,
.quote-wire-root [class*="quote-wire__card"],
.quote-wire-root .quote-wire__book,
.quote-wire-root .quote-wire__step,
.quote-wire-root .quote-wire__index-card,
.quote-wire-root .quote-wire__pill {
    transition: transform 200ms ease;
}

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

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

