/* intro v29 — Rolls-Royce thread: circle-expand reveal, half-ring, chat alignment, dual-layer parallax */

.intro-thread { min-height: 88vh; }

/* Clip-path circle expand from centre on load */
.intro-thread__reveal {
    animation: intro-thread-expand 900ms ease forwards;
}
@keyframes intro-thread-expand {
    from { clip-path: circle(0% at 50% 50%); }
    to   { clip-path: circle(150% at 50% 50%); }
}

/* Half-ring at the boundary (fixed size — no BS w-N/h-N utility) */
.intro-thread__half {
    width: 16rem;
    height: 8rem;
    opacity: 0.7;
    filter: blur(2px);
}
.intro-thread__sun { width: 6rem; height: 6rem; }
.intro-thread [data-msg] { max-width: 28rem; }

/* Dual-layer parallax offset (set by JS via custom props) */
.intro-thread__island [data-layer] {
    transition: transform 200ms ease-out;
    transform: translate(var(--px, 0), var(--py, 0));
}

/* Chat thread alternate alignment + retro corner tails */
.intro-thread [data-msg] { border-bottom-left-radius: 0.25rem; }
.intro-thread [data-msg]:nth-child(even) {
    margin-left: auto;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .intro-thread__reveal { animation: none; }
    .intro-thread__island [data-layer] { transition: none; }
}

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

.content-disclaimer-logo__mark {
    width: 5rem;
    height: 5rem;
}

.content-disclaimer-logo__mark--small {
    width: 3rem;
    height: 3rem;
}

.content-disclaimer-logo__mark--large {
    width: 6rem;
    height: 6rem;
}

.content-disclaimer-logo__mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.content-disclaimer-ticker__rail {
    animation: content-disclaimer-drift 9s ease-in-out infinite alternate;
}

.content-disclaimer-orb--large {
    width: 12rem;
    height: 12rem;
    animation: content-disclaimer-float 8s ease-in-out infinite;
}

.content-disclaimer-orb--small {
    width: 7rem;
    height: 7rem;
    animation: content-disclaimer-float 7s ease-in-out infinite reverse;
}

.content-disclaimer-corner {
    width: 4rem;
    height: 4rem;
    pointer-events: none;
}

.content-disclaimer-orbit__ring {
    animation: content-disclaimer-spin 14s linear infinite;
}

.content-disclaimer-rail__accent {
    width: 100%;
    height: 0.75rem;
    flex-shrink: 0;
    animation: content-disclaimer-grow 5s ease-in-out infinite alternate;
}

.content-disclaimer-pattern {
    pointer-events: none;
}

.content-disclaimer-pulse {
    width: 0.75rem;
    height: 0.75rem;
    animation: content-disclaimer-pulse 1.8s ease-in-out infinite;
}

@media (min-width: 768px) {
    .content-disclaimer-rail__accent {
        width: 0.75rem;
        height: auto;
    }
}

@keyframes content-disclaimer-drift {
    from { transform: translateX(-1rem); }
    to { transform: translateX(1rem); }
}

@keyframes content-disclaimer-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.75rem); }
}

@keyframes content-disclaimer-spin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.04); }
}

@keyframes content-disclaimer-grow {
    from { transform: scaleX(0.75); }
    to { transform: scaleX(1); }
}

@keyframes content-disclaimer-pulse {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.35); opacity: 1; }
}


.passage-chapter__visual--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.passage-chapter__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-img-compact {
    display: block;
    width: 100%;
    height: 12rem;
    min-height: 12rem;
    flex-shrink: 0;
    object-fit: cover;
}
@media (min-width: 768px) {
    .content-img-compact {
        height: 14rem;
        min-height: 14rem;
    }
}

/* Bootstrap: позиції/розміри без інлайну (TW — у @sem); імена без номера варіанту */
.stats__overlay-dot-a {
  position: absolute;
  top: 5rem;
  left: 4rem;
  width: 0.5rem;
  height: 0.5rem;
}

.stats__overlay-dot-b {
  position: absolute;
  top: 8rem;
  right: 5rem;
  width: 0.75rem;
  height: 0.75rem;
}

.stats__overlay-dot-c {
  position: absolute;
  bottom: 6rem;
  left: 5rem;
  width: 0.25rem;
  height: 0.25rem;
}

.stats__overlay-dot-d {
  position: absolute;
  bottom: 8rem;
  right: 4rem;
  width: 0.5rem;
  height: 0.5rem;
}

.stats__line-accent-t {
  position: absolute;
  top: 25%;
  left: 0;
  width: 8rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35),
    transparent
  );
}

.stats__line-accent-b {
  position: absolute;
  bottom: 33%;
  right: 0;
  width: 7rem;
  height: 1px;
  background: linear-gradient(
    270deg,
    transparent,
    rgba(var(--bs-primary-rgb, 13, 110, 253), 0.3),
    transparent
  );
}

.stats__decor-ring-t {
  position: absolute;
  top: 6rem;
  left: 25%;
  width: 1rem;
  height: 1rem;
}

.stats__decor-ring-b {
  position: absolute;
  bottom: 7rem;
  right: 25%;
  width: 0.75rem;
  height: 0.75rem;
}

.stats__dashboard-card {
  max-width: 20rem;
}

.stats__blob-tr-dim {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
}

.stats__blob-bl-dim {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 5rem;
}

.stats__header-icon-dim {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
}

.stats__dot-dim {
  width: 0.5rem;
  height: 0.5rem;
  min-width: 0.5rem;
  min-height: 0.5rem;
}

.stats__bottom-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
}

.stats__bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.stats__progress-svg rect {
  transition: width 1s ease;
}

@keyframes stats-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes stats-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@keyframes stats-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes stats-spin {
  to { transform: rotate(360deg); }
}

.stats-anim-pulse {
  animation: stats-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.stats-anim-bounce {
  animation: stats-bounce 1s infinite;
}

.stats-anim-ping {
  animation: stats-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.stats-anim-spin {
  animation: stats-spin 1s linear infinite;
}

.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-bg-dim-hover {
  transition: opacity 0.5s ease;
  opacity: 0.05;
}

.stats-card-hover:hover .stats-bg-dim-hover {
  opacity: 0.1;
}

.stats-blob-tr-hover {
  transition: transform 0.7s ease;
  transform: translate(2rem, -2rem);
}

.stats-card-hover:hover .stats-blob-tr-hover {
  transform: translate(2rem, -2rem) scale(1.25);
}

.stats-blob-bl-hover {
  transition: transform 0.5s ease;
  transform: translate(-1.5rem, 1.5rem);
}

.stats-card-hover:hover .stats-blob-bl-hover {
  transform: translate(-1.5rem, 1.5rem) scale(1.1);
}

.stats-header-icon-hover {
  transition: transform 0.3s ease;
}

.stats-card-hover:hover .stats-header-icon-hover {
  transform: rotate(12deg);
}

.stats-bottom-accent-hover {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-bottom-accent-hover {
  opacity: 0.6;
}

/* quote v18 — checkerboard rhythm, extrude title, icon glyph cards */

/* BS glyph tile sizing (TW w-12 h-12 = 3rem) */
.quote-check__glyph {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.quote-check__meta {
    min-width: 0;
}

.quote-scan__layer {
    animation: quoteScanFlicker 4s steps(2, end) infinite;
}
@keyframes quoteScanFlicker {
    0%, 92%, 100% { opacity: 0.35; }
    94% { opacity: 0.7; }
}

/* checkerboard stagger — margin only (transform on ancestors breaks flip-card 3D) */
.quote-check__cell:nth-child(odd) {
    margin-top: 0.25rem;
}
.quote-check__cell:nth-child(even) {
    margin-bottom: 0.25rem;
}

.quote-check__grid.is-compact-grid .quote-check__cell {
    margin-top: 0;
    margin-bottom: 0;
}

.quote-flip__perspective {
    perspective: 1400px;
}

.quote-flip__card {
    cursor: pointer;
    overflow: visible;
}
.quote-flip__card:active {
    transform: none;
    scale: 1;
}

.quote-tape__strip {
    width: 3.5rem;
    height: 1.25rem;
    transform: rotate(-12deg);
}
.quote-tape__strip--a {
    top: -0.35rem;
    left: 0.75rem;
}
.quote-tape__strip--b {
    top: -0.35rem;
    right: 0.75rem;
    transform: rotate(12deg);
}

.quote-check__extrude {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1.2;
}
.quote-check__extrude--back {
    transform: translate(3px, 3px);
}
.quote-check__extrude--mid {
    transform: translate(6px, 6px);
}

.quote-flip__inner {
    display: grid;
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 450ms ease;
}
.quote-flip__face {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.quote-flip__card.is-flipped .quote-flip__inner {
    transform: rotateY(180deg);
}
.quote-flip__face--back {
    transform: rotateY(180deg);
}

.quote-flip__card:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

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

@media (hover: hover) {
    .quote-check-root button:hover {
        opacity: 0.92;
    }
}


.drive-signup__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.drive-signup__grid {
    min-height: 350px;
}

@keyframes drive-signup-spark-beat-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.drive-signup__spark--beat {
    animation: drive-signup-spark-beat-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

.drive-signup__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

