/* 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; }
}

.about-reel__head { max-width: 44rem; }

.about-reel__arrow { width: 3.25rem; height: 3.25rem; appearance: none; -webkit-appearance: none; cursor: pointer; transition: transform 200ms ease, opacity 200ms ease; }
.about-reel__arrow[disabled] { opacity: .35; cursor: default; transform: none; }

.about-reel__timeline { padding: 0 .25rem; }
.about-reel__rail { top: 1.125rem; height: .25rem; }
.about-reel__rail-fill { width: 0; transition: width 250ms ease-out; }
.about-reel__node { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; opacity: .55; transition: opacity 300ms ease; }
.about-reel__node.is-active, .about-reel__node.is-done { opacity: 1; }
.about-reel__node:focus-visible { outline: 2px solid; outline-offset: 4px; border-radius: .5rem; }
.about-reel__dot { width: 2.5rem; height: 2.5rem; font-size: .9375rem; transform: scale(.82); transition: transform 300ms cubic-bezier(.3, 1.4, .4, 1); }
.about-reel__node.is-active .about-reel__dot { transform: scale(1.08); }
.about-reel__node-label { font-size: .875rem; line-height: 1.25rem; }

.about-reel__track { scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.about-reel__track:focus-visible { outline: 2px solid; outline-offset: 4px; border-radius: 1.5rem; }
.about-reel__card { flex: 0 0 86%; scroll-snap-align: start; opacity: .55; transform: scale(.96); transition: opacity 500ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1); }
.about-reel__card.is-active { opacity: 1; transform: none; }
@media (min-width: 640px) { .about-reel__card { flex-basis: 60%; } }
@media (min-width: 1024px) { .about-reel__card { flex-basis: 40%; } }
@media (min-width: 1280px) { .about-reel__card { flex-basis: 36%; } }

.about-reel__figure { aspect-ratio: 16 / 10; }
.about-reel__img { object-fit: cover; transform: scale(1.1); transition: transform 1200ms cubic-bezier(.2, .8, .2, 1); }
.about-reel__card.is-active .about-reel__img { transform: scale(1); }

.about-reel__caption { font-size: .875rem; line-height: 1.25rem; }
.about-reel__meter { height: .5rem; }
.about-reel__meter-fill { width: 0; transition: width 1400ms cubic-bezier(.2, .8, .2, 1) 200ms; }

@media (prefers-reduced-motion: reduce) {
    .about-reel__track { scroll-behavior: auto; }
    .about-reel__card, .about-reel__img, .about-reel__meter-fill, .about-reel__rail-fill, .about-reel__dot { transition: none; }
    .about-reel__card { opacity: 1; transform: none; }
}
/* keep edge labels inside the container */
.about-reel__node-label { max-width: 9rem; text-align: center; }
.about-reel__timeline li:first-child .about-reel__node { align-items: flex-start !important; }
.about-reel__timeline li:first-child .about-reel__node-label { text-align: left; }
.about-reel__timeline li:last-child .about-reel__node { align-items: flex-end !important; }
.about-reel__timeline li:last-child .about-reel__node-label { text-align: right; }
@media (max-width: 767px) { .about-reel__node-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

@keyframes notion-table-timeline__row-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notion-table-timeline__row-visible {
    animation: notion-table-timeline__row-in 0.3s ease forwards;
}

.notion-table-timeline__decor-corner {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    width: 8rem;
    height: 8rem;
}

.notion-table-timeline__cell-width {
    max-width: 24rem;
}

.notion-table-timeline__line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* team v24 — sidebar navigation */
.team-sidebar__nav-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 150ms ease;
}

.team-sidebar__nav-btn.is-active {
  background-color: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
  font-weight: 600;
}

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

.team-sidebar__panel {
  animation: fade-in 300ms ease;
}

.team-sidebar__panel.hidden {
  display: none !important;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ethic-scatter__dots {
    background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.ethic-scatter__item {
    transition: transform 300ms ease;
}

.ethic-scatter__item:nth-child(1) { transform: translateY(0.5rem) rotate(-1deg); }
.ethic-scatter__item:nth-child(2) { transform: translateY(-0.75rem) rotate(1.5deg); }
.ethic-scatter__item:nth-child(3) { transform: translateY(1rem) rotate(-0.5deg); }
.ethic-scatter__item:nth-child(4) { transform: translateY(-0.5rem) rotate(1deg); }

.ethic-scatter__item:hover {
    transform: scale(1.05);
}

/* Декор картки + великі лапки — позиціонування; розміри медіа в @sem */
.quote-decor-a {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  transform: translate(4rem, -4rem);
  opacity: 0.3;
}

.quote-decor-b {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 6rem;
  transform: translate(-3rem, 3rem);
  opacity: 0.3;
}

.quote-mark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 6rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  opacity: 0.2;
}

