/* Blog index — 01 Hero (Corewave main blog Page) */

@keyframes cw-blog-index-hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cw-blog-index-hero-marq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cw-blog-index-hero {
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 40px) clamp(40px, 5vw, 64px);
  box-sizing: border-box;
  background: #141210;
}

.cw-blog-index-hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cw-blog-index-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.cw-blog-index-hero__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #d4f53c;
}

.cw-blog-index-hero__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(46px, 6vw, 86px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.cw-blog-index-hero__title-em {
  font-style: italic;
  color: #cfc4f6;
}

.cw-blog-index-hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(243, 239, 231, 0.72);
}

.cw-blog-index-hero__search-wrap {
  position: relative;
  max-width: 560px;
}

.cw-blog-index-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3efe7;
  color: #141210;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
}

.cw-blog-index-hero__search-icon {
  font-size: 18px;
  line-height: 1;
}

.cw-blog-index-hero__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cw-blog-index-hero__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #141210;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 10px 0;
}

.cw-blog-index-hero__search-btn {
  border: 0;
  background: #141210;
  color: #f3efe7;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-blog-index-hero__search-btn:hover,
.cw-blog-index-hero__search-btn:focus-visible {
  background: #ff5527;
  color: #141210;
}

.cw-blog-index-hero__suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  background: #1c1916;
  border: 1px solid rgba(243, 239, 231, 0.14);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.cw-blog-index-hero__suggestions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cw-blog-index-hero__suggestions-empty {
  margin: 0;
  padding: 12px;
  font-size: 14px;
  color: #a39c90;
}

.cw-blog-index-hero__suggestion-link {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  color: #f3efe7;
  text-decoration: none;
}

.cw-blog-index-hero__suggestion-link:hover,
.cw-blog-index-hero__suggestion-link:focus-visible {
  background: rgba(243, 239, 231, 0.06);
  outline: none;
}

.cw-blog-index-hero__suggestion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cw-blog-index-hero__suggestion-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-blog-index-hero__suggestion-min {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #8e877c;
}

.cw-blog-index-hero__popular {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cw-blog-index-hero__popular-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8e877c;
}

.cw-blog-index-hero__popular-tag {
  border: 1px solid rgba(243, 239, 231, 0.2);
  background: transparent;
  color: #cfc9be;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cw-blog-index-hero__popular-tag:hover,
.cw-blog-index-hero__popular-tag:focus-visible {
  border-color: #d4f53c;
  color: #d4f53c;
  outline: none;
}

.cw-blog-index-hero__visual {
  position: relative;
  min-width: 0;
  perspective: 1400px;
}

.cw-blog-index-hero__card {
  transform: rotateY(var(--cw-blog-index-hero-ry, 0deg)) rotateX(var(--cw-blog-index-hero-rx, 0deg));
  transition: transform 0.3s ease-out;
  border-radius: 30px;
  overflow: hidden;
  background: #f3efe7;
  color: #141210;
  display: grid;
  grid-template-rows: auto auto;
}

.cw-blog-index-hero__card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cw-blog-index-hero-cover-bg, #ff5527);
  color: var(--cw-blog-index-hero-cover-fg, #141210);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

.cw-blog-index-hero__card-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.cw-blog-index-hero__card-big {
  position: absolute;
  right: -4%;
  bottom: -18%;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(160px, 20vw, 280px);
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.14;
  pointer-events: none;
}

.cw-blog-index-hero__card-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 88%;
  animation: cw-blog-index-hero-in 0.45s both;
}

.cw-blog-index-hero__card-body {
  padding: clamp(18px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cw-blog-index-hero__card-details {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
  color: #5a534a;
}

.cw-blog-index-hero__card-cat {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: #141210;
}

.cw-blog-index-hero__card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cw-blog-index-hero__card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cw-blog-index-hero__dots {
  display: flex;
  gap: 6px;
  flex: 1;
}

.cw-blog-index-hero__dot {
  flex: 1;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 4px;
  background: rgba(20, 18, 16, 0.18);
  cursor: pointer;
}

.cw-blog-index-hero__dot--active {
  background: #141210;
}

.cw-blog-index-hero__dot:focus-visible {
  outline: 2px solid #ff5527;
  outline-offset: 2px;
}

.cw-blog-index-hero__read {
  background: #141210;
  color: #f3efe7;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-blog-index-hero__read:hover,
.cw-blog-index-hero__read:focus-visible {
  background: #ff5527;
  color: #141210;
}

.cw-blog-index-hero__marquee {
  border-top: 1px solid rgba(243, 239, 231, 0.1);
  border-bottom: 1px solid rgba(243, 239, 231, 0.1);
  overflow: hidden;
  padding: 16px 0;
  background: #141210;
}

.cw-blog-index-hero__marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: cw-blog-index-hero-marq 50s linear infinite;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #cfc9be;
  white-space: nowrap;
}

.cw-blog-index-hero__marquee-item {
  display: inline-flex;
  gap: 40px;
  align-items: center;
}

.cw-blog-index-hero__marquee-star {
  color: #ff5527;
}

@media (prefers-reduced-motion: reduce) {
  .cw-blog-index-hero__marquee-track {
    animation: none;
  }

  .cw-blog-index-hero__card {
    transform: none;
  }

  .cw-blog-index-hero__card-title {
    animation: none;
  }
}
