/* intro v25 — Sagmeister ticket: corner patch, spiral binding, ticket perforation, square thumb */

/* Corner accent patch → triangle */
.intro-tkt__patch {
    width: 10rem;
    height: 10rem;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.9;
}
.intro-tkt__spiral { height: 1rem; }
.intro-tkt__body { min-width: 0; }
.intro-tkt__close { width: 2rem; height: 2rem; }

/* Torn notebook spiral binding holes (colour from Tailwind text-*, holes via mask) */
.intro-tkt__spiral {
    -webkit-mask: radial-gradient(circle 5px at center, black 98%, transparent 100%) 0 0 / 30px 100%;
    mask: radial-gradient(circle 5px at center, black 98%, transparent 100%) 0 0 / 30px 100%;
    background: currentColor;
    opacity: 0.5;
}

/* Square cropped thumbnail */
.intro-tkt__thumb {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
}

/* Ticket stub perforation (currentColor from the card text) */
.intro-tkt__ticket { transition: box-shadow 240ms ease; }
.intro-tkt__ticket::after {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 7.5rem;
    border-left: 2px dashed currentColor;
    opacity: 0.25;
    pointer-events: none;
}
@media (max-width: 575.98px) {
    .intro-tkt__ticket::after { display: none; }
}

.content-rail__side {
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .content-rail__side {
        width: 8rem;
    }

    .content-rail__vertical {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
}

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

/* Featured: высота превью и заполнение колонки на md+ (без цветов) */
.journal-tag-feature__lead {
    min-height: 16rem;
}

@media (min-width: 768px) {
    .journal-tag-feature__lead {
        min-height: 18rem;
        align-self: stretch;
    }
}

.journal-tag-feature__hero-shot {
    display: block;
    width: 100%;
    min-height: 16rem;
}

@media (min-width: 768px) {
    .journal-tag-feature__hero-shot {
        height: 100%;
        min-height: 100%;
    }
}

/* Карточки сетки: компактный блок с иконкой */
.journal-tag-feature__icon-frame {
    min-height: 7rem;
}

.journal-tag-feature__icon-glyph {
    line-height: 1;
}

.journal-tag-feature__lead img,
.journal-tag-feature__hero-shot {
    object-fit: cover;
}

/* Аватар: однаковий фізичний розмір для TW/BS (у BS немає w-12/h-12) */
.dual-column-rating-quote__media {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    flex-shrink: 0;
}

.cta-smoke-hero__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-smoke-hero__lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-smoke-hero__line-track {
  letter-spacing: 0.08em;
  line-height: 1;
}

.cta-smoke-hero__line--center {
  align-self: center;
  text-align: center;
}

.cta-smoke-hero__line--end {
  align-self: flex-end;
  text-align: end;
  margin-inline-end: 4%;
}

.cta-smoke-hero__line--start {
  align-self: flex-start;
  text-align: start;
  margin-inline-start: 4%;
}

.cta-smoke-hero__rule {
  height: 0;
}

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

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

.cta-smoke-hero__cta:hover .cta-smoke-hero__cta-icon,
.cta-smoke-hero__cta:focus-visible .cta-smoke-hero__cta-icon {
  transform: translate(2px, -2px);
}

.cta-smoke-hero__cta-icon {
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .cta-smoke-hero__lines {
    gap: 0.75rem;
  }

  .cta-smoke-hero__line--end {
    margin-inline-end: 10%;
  }

  .cta-smoke-hero__line--start {
    margin-inline-start: 10%;
  }
}

@media (max-width: 767px) {
  .cta-smoke-hero__line--end,
  .cta-smoke-hero__line--start {
    margin-inline: 0;
    align-self: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-smoke-hero__cta:hover,
  .cta-smoke-hero__cta:focus-visible {
    transform: none;
  }

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

