/* Portfolio index — 01 Hero (Corewave Portfolio main Page) */

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

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

@keyframes cw-portfolio-index-hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.cw-portfolio-index-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 80% 30%, rgba(255, 85, 39, 0.12), transparent 70%),
    #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(56px, 7vw, 100px) clamp(20px, 4vw, 40px) 64px;
  box-sizing: border-box;
}

.cw-portfolio-index-hero__marquee {
  position: absolute;
  left: 0;
  top: 44%;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.cw-portfolio-index-hero__marquee-track {
  display: inline-block;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(90px, 13vw, 200px);
  letter-spacing: 0.04em;
  color: rgba(243, 239, 231, 0.035);
  animation: cw-portfolio-index-hero-marq 60s linear infinite;
}

.cw-portfolio-index-hero__squares {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cw-portfolio-index-hero__square {
  position: absolute;
  border: 1px solid rgba(243, 239, 231, 0.12);
  border-radius: 6px;
  transition: transform 0.5s ease-out;
}

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

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

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

.cw-portfolio-index-hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cw-portfolio-index-hero__title-line {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: #f3efe7;
}

.cw-portfolio-index-hero__title-word {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(46px, 6.2vw, 94px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ff5527;
  min-height: 1em;
}

.cw-portfolio-index-hero__title-word.is-changing {
  animation: cw-portfolio-index-hero-in 0.5s ease;
}

.cw-portfolio-index-hero__title-suffix {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(46px, 6.2vw, 94px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f3efe7;
}

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

.cw-portfolio-index-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-portfolio-index-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-portfolio-index-hero__btn--primary {
  background: #d4f53c;
  color: #141210;
}

.cw-portfolio-index-hero__btn--primary:hover {
  background: #fff;
  color: #141210;
}

.cw-portfolio-index-hero__btn--secondary {
  border: 1px solid rgba(243, 239, 231, 0.25);
  color: #f3efe7;
  font-weight: 600;
}

.cw-portfolio-index-hero__btn--secondary:hover {
  border-color: #ff5527;
  color: #ff5527;
}

.cw-portfolio-index-hero__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-portfolio-index-hero__stat {
  border: 1px solid rgba(243, 239, 231, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cw-portfolio-index-hero__stat-value {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cw-portfolio-index-hero__stat-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #a39c90;
}

.cw-portfolio-index-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.cw-portfolio-index-hero__stage-wrap {
  position: relative;
  height: clamp(400px, 42vw, 500px);
  perspective: 1400px;
}

.cw-portfolio-index-hero__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}

.cw-portfolio-index-hero__phones {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.cw-portfolio-index-hero__phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(170px, 17vw, 220px);
  aspect-ratio: 9 / 19;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(243, 239, 231, 0.18);
  border-radius: 34px;
  background: #0b0a09;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.cw-portfolio-index-hero__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  background: #1c1916;
}

.cw-portfolio-index-hero__toast {
  position: absolute;
  right: 0;
  top: 6%;
  z-index: 20;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #d4f53c;
  color: #141210;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: cw-portfolio-index-hero-float 4s ease-in-out infinite;
}

.cw-portfolio-index-hero__toast.is-changing {
  animation: cw-portfolio-index-hero-in 0.45s ease, cw-portfolio-index-hero-float 4s ease-in-out infinite;
}

.cw-portfolio-index-hero__toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #141210;
  flex-shrink: 0;
}

.cw-portfolio-index-hero__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(243, 239, 231, 0.12);
  padding-top: 16px;
}

.cw-portfolio-index-hero__meta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cw-portfolio-index-hero__meta-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #ff5527;
}

.cw-portfolio-index-hero__meta-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #cfc9be;
}

.cw-portfolio-index-hero__nav {
  display: flex;
  gap: 8px;
}

.cw-portfolio-index-hero__nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cw-portfolio-index-hero__nav-btn--ghost {
  border: 1px solid rgba(243, 239, 231, 0.25);
  background: transparent;
  color: #f3efe7;
}

.cw-portfolio-index-hero__nav-btn--ghost:hover {
  border-color: #d4f53c;
  color: #d4f53c;
}

.cw-portfolio-index-hero__nav-btn--solid {
  border: 0;
  background: #f3efe7;
  color: #141210;
}

.cw-portfolio-index-hero__nav-btn--solid:hover {
  background: #d4f53c;
}

.cw-portfolio-index-hero__dots {
  display: flex;
  gap: 4px;
}

.cw-portfolio-index-hero__dot {
  flex: 1;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(243, 239, 231, 0.14);
  transition: background 0.3s ease;
}

.cw-portfolio-index-hero__dot.is-active {
  background: #ff5527;
}

.cw-portfolio-index-hero__dot.is-past {
  background: rgba(255, 85, 39, 0.35);
}

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

  .cw-portfolio-index-hero__stage,
  .cw-portfolio-index-hero__phone,
  .cw-portfolio-index-hero__square {
    transition: none;
  }
}
