/* intro v18 — Emigre clay: blurred photo, ECG draw, typewriter caret */

/* Blurred background photo, sharp panel sits over it */
.intro-clay [data-photo] {
    width: 66%;
    aspect-ratio: 4 / 3;
}
.intro-clay__img {
    object-fit: cover;
    filter: blur(5px) saturate(1.05);
    transform: scale(1.06);
}

/* Heartbeat / ECG line draw (stroke colour = currentColor from Tailwind text-*) */
.intro-clay__ecg-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: intro-clay-ecg 4s linear infinite;
}
@keyframes intro-clay-ecg {
    0%   { stroke-dashoffset: 1400; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}

/* Typewriter caret while typing */
.intro-clay__type .is-typing {
    border-right: 2px solid currentColor;
    animation: intro-clay-caret 800ms step-end infinite;
}
@keyframes intro-clay-caret {
    50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-clay__ecg-path { animation: none; stroke-dashoffset: 0; }
}

.triplet-plain-quote__track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    row-gap: 1.5rem;
}

@media (min-width: 768px) {
    .triplet-plain-quote__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 1.5rem;
        row-gap: 1.75rem;
    }
}

.triplet-plain-quote__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 768px) {
    .triplet-plain-quote__col {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Card hover: scale */
.portfolio-item-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: scale(1.05);
}

/* Overlay: fade in on card hover */
.portfolio-overlay-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item-hover:hover .portfolio-overlay-hover {
    opacity: 1;
}

/* Bootstrap: blur-орби, ранг, нижня лінія (імена без номера варіанту) */
.stats__decor-blur-tl {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 16rem;
  height: 16rem;
  filter: blur(64px);
}

.stats__decor-blur-br {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  filter: blur(64px);
}

.stats__rank-badge {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
}

.stats__bottom-line-bar {
  height: 0.25rem;
}

.stats-card-hover {
  transition:
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

.stats-gradient-overlay-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-gradient-overlay-hover {
  opacity: 1;
}

.stats-bottom-bar-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-bottom-bar-hover {
  opacity: 1;
}

/* quote — featured academic quote + supporting cards */

/* serif lead + drop-cap. BS has no font-serif utility; font-family here is allowed (it is not a color) */
.quote-essay__lead {
    font-family: ui-serif, Georgia, "Times New Roman", serif;
}

.quote-essay__lead::first-letter {
    float: left;
    font-size: 3.25rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    font-weight: 700;
}

/* author avatar: fixed size + cover (neither has a BS utility) */
.quote-essay__avatar {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}

.quote-essay__glow {
    width: 16rem;
    height: 16rem;
    filter: blur(64px);
}

/* stepping-stone offset rhythm on supporting cards — layout only */
@media (min-width: 1024px) {
    .quote-essay__step:nth-child(odd) {
        transform: translateY(0.75rem);
    }
    .quote-essay__step:nth-child(even) {
        transform: translateY(-0.25rem);
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-essay-root [role="listitem"]:hover,
    .quote-essay-root article:hover,
    .quote-essay-root [class*="quote-essay__card"]:hover,
    .quote-essay-root .quote-essay__book:hover,
    .quote-essay-root .quote-essay__step:hover,
    .quote-essay-root .quote-essay__index-card:hover,
    .quote-essay-root .quote-essay__pill:hover,
    .quote-essay-root .quote-essay__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-essay-root [role="listitem"],
.quote-essay-root article,
.quote-essay-root [class*="quote-essay__card"],
.quote-essay-root .quote-essay__book,
.quote-essay-root .quote-essay__step,
.quote-essay-root .quote-essay__index-card,
.quote-essay-root .quote-essay__pill {
    transition: transform 200ms ease;
}

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

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

