@keyframes driftLeftRight {
    0% { transform: translateX(-15%); }
    50% { transform: translateX(15%); }
    100% { transform: translateX(-15%); }
}

@keyframes driftRightLeft {
    0% { transform: translateX(15%); }
    50% { transform: translateX(-15%); }
    100% { transform: translateX(15%); }
}

.intro-drift-strip-a {
    width: 33%;
    height: 6rem;
    animation: driftLeftRight 14s ease-in-out infinite;
}

.intro-drift-strip-b {
    width: 50%;
    height: 4rem;
    animation: driftRightLeft 18s ease-in-out infinite;
}

.intro-drift-strip-c {
    width: 25%;
    height: 5rem;
    animation: driftLeftRight 12s ease-in-out infinite;
    animation-delay: 3s;
}

.intro-drift-container {
    max-width: 80rem;
}

.intro-drift-textbox {
    max-width: 48rem;
}

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

/* Image: zoom on card hover */
.portfolio-item-hover .portfolio-img-hover {
    transition: transform 0.3s ease;
}
.portfolio-item-hover:hover .portfolio-img-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;
}


.editorial-document__decor-1 {
    position: absolute;
    width: 8rem;
    height: 8rem;
    top: 0;
    right: 0;
    transform: translate(4rem, -4rem) rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.editorial-document__decor-2 {
    position: absolute;
    width: 12rem;
    height: 6rem;
    bottom: 0;
    left: 0;
    transform: translate(-6rem, 3rem) rotate(12deg);
    z-index: 0;
    pointer-events: none;
}

.editorial-document__decor-3 {
    position: absolute;
    width: 4rem;
    height: 4rem;
    top: 50%;
    left: 0;
    transform: translate(-2rem, -50%) rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.editorial-document__decor-4 {
    position: absolute;
    width: 5rem;
    height: 5rem;
    bottom: 25%;
    right: 33.333333%;
    transform: rotate(12deg);
    z-index: 0;
    pointer-events: none;
}

.editorial-document__decor-5 {
    position: absolute;
    width: 3rem;
    height: 3rem;
    top: 25%;
    left: 50%;
    transform: rotate(-12deg);
    z-index: 0;
    pointer-events: none;
}

.editorial-document__decor-6 {
    position: absolute;
    width: 2rem;
    height: 2rem;
    bottom: 50%;
    right: 0;
    transform: translate(1rem, 0) rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.editorial-document__divider-bar {
    height: 0.25rem;
}

.editorial-document__rule-trail { margin-bottom: 3rem; }

.editorial-document__shell-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.content-prose-measure {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.gallery-text-below__card {
    transition: transform 0.3s ease;
}

.gallery-text-below__card:hover {
    transform: scale(1.05);
}

.gallery-text-below__img {
    height: 16rem;
}

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

/* cta waves — SVG wave scroll (colors via currentColor in Blade) */
.cta-waves__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-waves__track {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 46%;
  display: flex;
  flex-direction: row;
  animation: cta-waves-flow 24s linear infinite;
  will-change: transform;
}

.cta-waves__track--front {
  bottom: 6%;
  height: 34%;
  animation-duration: 17s;
  animation-delay: -6s;
}

.cta-waves__svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
}

@keyframes cta-waves-flow {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-waves__track {
    animation: none;
    transform: translateX(-25%);
  }
}

