/* intro v17 — Death Note noir: circuit band, pulse rings, extrude text, duotone media, scroll slide-in */

/* Circuit-board traces — colour via Tailwind text-* on the band, currentColor in the pattern */
.intro-noir__circuit {
    background-image:
        repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 32px);
    opacity: 0.18;
    -webkit-mask: linear-gradient(180deg, black, transparent);
    mask: linear-gradient(180deg, black, transparent);
}

/* Pulse rings from the band centre (size + placement so Bootstrap has no utility gap) */
.intro-noir__ring {
    width: 6rem;
    height: 6rem;
    top: 6rem;
    left: 50%;
    margin-left: -3rem;
    opacity: 0;
    animation: intro-noir-pulse 3.4s ease-out infinite;
}
.intro-noir__ring--2 { animation-delay: 1.7s; }

@keyframes intro-noir-pulse {
    0%   { transform: scale(0.4); opacity: 0.55; }
    100% { transform: scale(3.4); opacity: 0; }
}

/* Emboss seal circle */
.intro-noir__seal {
    width: 7rem;
    height: 7rem;
    font-size: 0.75rem;
    line-height: 1.1;
    padding: 0.75rem;
    transform: rotate(-8deg);
}

/* Extrude — stacked text-shadow depth using the element's own colour */
.intro-noir__extrude {
    text-shadow: 1px 1px 0 currentColor, 2px 2px 0 currentColor, 3px 3px 0 currentColor;
}

/* Duotone media: grayscale image + primary multiply tint (colour is a Tailwind class) */
.intro-noir__img {
    height: 10rem;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

/* Sticky aside offset (Bootstrap position-sticky has no top-16 utility) */
@media (min-width: 992px) {
    .intro-noir__aside { top: 4rem; }
}
.intro-noir__tint {
    mix-blend-mode: multiply;
    opacity: 0.5;
}

/* Letter-spacing widen on hover */
.intro-noir__ttl { transition: letter-spacing 260ms ease; }
[data-card]:hover .intro-noir__ttl { letter-spacing: 0.08em; }

/* Slide-in entrance — pure CSS on the reliable [data-card] attribute; always ends visible */
@keyframes intro-noir-rise {
    from { opacity: 0; transform: translateY(2rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.intro-noir [data-card] { animation: intro-noir-rise 560ms ease both; }

@media (prefers-reduced-motion: reduce) {
    .intro-noir__ring { animation: none; }
    .intro-noir [data-card] { animation: none; }
}

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

.ribbon-flow__accent--1 { width: 8rem; height: 8rem; filter: blur(2rem); }
.ribbon-flow__accent--2 { width: 10rem; height: 10rem; filter: blur(2rem); }
.ribbon-flow__accent--3 { width: 6rem; height: 6rem; filter: blur(1.5rem); }
.ribbon-flow__accent--4 { width: 7rem; height: 7rem; filter: blur(1.5rem); }
.ribbon-flow__accent--5 { width: 9rem; height: 9rem; filter: blur(2rem); }

.ribbon-flow__line--1 { height: 0.125rem; }
.ribbon-flow__line--2 { height: 0.125rem; top: 25%; }
.ribbon-flow__line--3 { height: 0.125rem; top: 50%; }
.ribbon-flow__line--4 { height: 0.125rem; top: 75%; }
.ribbon-flow__line--5 { height: 0.125rem; }

.ribbon-flow__dot--1, .ribbon-flow__dot--2, .ribbon-flow__dot--3, .ribbon-flow__dot--4,
.ribbon-flow__dot--5, .ribbon-flow__dot--6, .ribbon-flow__dot--7, .ribbon-flow__dot--8 {
    width: 0.5rem; height: 0.5rem;
}

.ribbon-flow__dash--1, .ribbon-flow__dash--2, .ribbon-flow__dash--3, .ribbon-flow__dash--4 {
    width: 8rem; height: 0.125rem;
}
.ribbon-flow__dash--1 { top: 25%; }
.ribbon-flow__dash--2 { top: 50%; }
.ribbon-flow__dash--3 { bottom: 25%; width: 6rem; }
.ribbon-flow__dash--4 { bottom: 50%; width: 6rem; }

.ribbon-flow__shape--1 { width: 4rem; height: 4rem; transform: rotate(45deg); }
.ribbon-flow__shape--2 { width: 3rem; height: 3rem; transform: rotate(45deg); }
.ribbon-flow__shape--3 { width: 2rem; height: 2rem; }
.ribbon-flow__shape--4 { width: 2.5rem; height: 2.5rem; }

.ribbon-flow__title-line--1, .ribbon-flow__title-line--2 {
    width: 4rem; height: 0.125rem; transform: translateY(-50%);
}
.ribbon-flow__title-dot--1 { width: 0.5rem; height: 0.5rem; top: -0.5rem; right: -0.5rem; }
.ribbon-flow__title-dot--2 { width: 0.5rem; height: 0.5rem; bottom: -0.5rem; left: -0.5rem; }

.ribbon-flow__media--xl { height: 20rem; }
.ribbon-flow__media--lg { height: 18rem; }
.ribbon-flow__media--md { height: 16rem; }

.ribbon-flow__glow--br { background: radial-gradient(circle at bottom right, rgba(var(--bs-primary-rgb), 0.2), transparent); }
.ribbon-flow__glow--bl { background: radial-gradient(circle at bottom left, rgba(var(--bs-primary-rgb), 0.2), transparent); }

.ribbon-flow__card--hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.ribbon-flow__card--hover:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
}

.ribbon-flow__img--zoom {
    transition: transform 0.5s ease;
}
.ribbon-flow__row:hover .ribbon-flow__img--zoom {
    transform: scale(1.1);
}

.ribbon-flow__overlay--fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ribbon-flow__row:hover .ribbon-flow__overlay--fade {
    opacity: 1;
}

.ribbon-flow__overlay--glow {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.ribbon-flow__row:hover .ribbon-flow__overlay--glow {
    opacity: 1;
}

.ribbon-flow__corner--tl, .ribbon-flow__corner--br { width: 5rem; height: 5rem; }

.ribbon-flow__badge--left { left: 1rem; }
.ribbon-flow__badge--right { right: 1rem; }

.ribbon-flow__accent-corner--tr { right: 0; width: 1.5rem; height: 1.5rem; border-right-width: 2px; }
.ribbon-flow__accent-corner--tl { left: 0; width: 1.5rem; height: 1.5rem; border-left-width: 2px; }
.ribbon-flow__accent-corner--bl { left: 0; width: 1.5rem; height: 1.5rem; border-left-width: 2px; }
.ribbon-flow__accent-corner--br { right: 0; width: 1.5rem; height: 1.5rem; border-right-width: 2px; }

.ribbon-flow__panel--slide {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.ribbon-flow__row:hover .ribbon-flow__panel--slide {
    transform: translateY(0);
}

.ribbon-flow__slot { width: 5rem; height: 0.25rem; }
.ribbon-flow__slot-line { height: 0.125rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__slot-dot { width: 0.5rem; height: 0.5rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__row:hover .ribbon-flow__slot-line,
.ribbon-flow__row:hover .ribbon-flow__slot-dot {
    opacity: 1;
}

.ribbon-flow__row-accent--left { left: 0; transform: translateY(-50%); width: 2rem; height: 2rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__row-accent--right { right: 0; transform: translateY(-50%); width: 2rem; height: 2rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__row:hover .ribbon-flow__row-accent--left,
.ribbon-flow__row:hover .ribbon-flow__row-accent--right {
    opacity: 1;
}

/* Bootstrap Fallbacks */
@media (min-width: 768px) {
   
    .ribbon-flow__media--w40 { width: 40%; }
    .ribbon-flow__media--w33 { width: 33.333333%; }
}

/* process stack — sticky scroll layering, marker, oversized step numbers */
.process-stack__marker {
    width: 0.625rem;
    height: 0.625rem;
}

.process-stack__num {
    font-size: clamp(3.5rem, 11vw, 7.5rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
}

@media (min-width: 768px) {
    .process-stack__slot {
        min-height: min(52vh, 26rem);
    }

    .process-stack__slot:last-child {
        min-height: 0;
    }

    .process-stack__panel {
        position: sticky;
        top: 5rem;
        z-index: calc(var(--stack-index, 0) + 1);
    }
}

.tips-numbered__card {
    max-width: 24rem;
}

.tips-numbered__thumb {
    width: 4rem;
    height: 4rem;
}

.cta-creative-hero__strings {
  position: absolute;
  inset: 0;
  bottom: 4.5rem;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.cta-creative-hero__string {
  position: absolute;
  top: -8%;
  width: 0;
  border-left-width: 1px;
  border-left-style: solid;
  transform-origin: top center;
  animation: cta-creative-hero__string-sway 4s ease-in-out infinite;
}

.cta-creative-hero__string--0 {
  left: 4%;
  height: 88%;
  animation-duration: 3.6s;
  animation-delay: 0s;
}

.cta-creative-hero__string--1 {
  left: 14%;
  height: 96%;
  animation-duration: 4.2s;
  animation-delay: -0.4s;
}

.cta-creative-hero__string--2 {
  left: 26%;
  height: 78%;
  animation-duration: 3.8s;
  animation-delay: -1.1s;
}

.cta-creative-hero__string--3 {
  left: 38%;
  height: 92%;
  animation-duration: 4.6s;
  animation-delay: -0.8s;
}

.cta-creative-hero__string--4 {
  left: 50%;
  height: 100%;
  animation-duration: 3.4s;
  animation-delay: -1.6s;
}

.cta-creative-hero__string--5 {
  left: 62%;
  height: 82%;
  animation-duration: 4.4s;
  animation-delay: -0.2s;
}

.cta-creative-hero__string--6 {
  left: 74%;
  height: 94%;
  animation-duration: 3.9s;
  animation-delay: -1.3s;
}

.cta-creative-hero__string--7 {
  left: 86%;
  height: 76%;
  animation-duration: 4.8s;
  animation-delay: -0.6s;
}

.cta-creative-hero__string--8 {
  left: 94%;
  height: 90%;
  animation-duration: 3.5s;
  animation-delay: -1.9s;
}

@keyframes cta-creative-hero__string-sway {
  0%,
  100% {
    transform: rotate(-2deg) translateX(0);
  }
  25% {
    transform: rotate(1.5deg) translateX(3px);
  }
  50% {
    transform: rotate(-1deg) translateX(-2px);
  }
  75% {
    transform: rotate(2deg) translateX(2px);
  }
}

.cta-creative-hero__wrap {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.cta-creative-hero__subtitle-track {
  letter-spacing: 0.2em;
}

.cta-creative-hero__ring {
  inset: -0.35rem -0.5rem;
  border-radius: 9999px;
}

.cta-creative-hero__marquee-track {
  overflow: hidden;
}

.cta-creative-hero__marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: cta-creative-hero__marquee 24s linear infinite;
}

@keyframes cta-creative-hero__marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cta-creative-hero__cta {
  transition: filter 0.2s ease, transform 0.15s ease;
}

.cta-creative-hero__cta:hover,
.cta-creative-hero__cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta-creative-hero__cta.btn:hover,
.cta-creative-hero__cta.btn:focus-visible {
  color: var(--bs-white);
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

@media (min-width: 768px) {
  .cta-creative-hero__wrap {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 767px) {
  .cta-creative-hero__strings {
    bottom: 3.5rem;
  }

  .cta-creative-hero__string--0,
  .cta-creative-hero__string--8 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-creative-hero__string {
    animation: none;
    transform: none;
  }

  .cta-creative-hero__marquee-inner {
    animation: none;
  }

  .cta-creative-hero__cta:hover,
  .cta-creative-hero__cta:focus-visible {
    transform: none;
  }
}

