/* Home (landing) page styles. Extends design.css. */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--space-7);
  padding: var(--space-7) 0 var(--space-8);
  position: relative;
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-5) 0 var(--space-6);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  position: relative;
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  opacity: 0;
  animation: live-pulse 1600ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes live-pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 700;
  margin: 0 0 var(--space-4) 0;
}
@media (max-width: 1100px) { .hero h1 { font-size: 64px; } }
@media (max-width: 880px)  { .hero h1 { font-size: 52px; } }
@media (max-width: 480px)  { .hero h1 { font-size: 40px; } }

.hero-accent {
  position: relative;
  display: inline-block;
  color: var(--accent);
  white-space: nowrap;
}
.hero-accent-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  height: 0.14em;
  background: var(--accent-soft);
  border-radius: 999px;
  z-index: -1;
  transform-origin: left center;
  transform: scaleX(0);
  animation: underline-sweep 900ms 250ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes underline-sweep {
  to { transform: scaleX(1); }
}

.hero-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  max-width: 460px;
  margin: 0 0 var(--space-5) 0;
  line-height: 1.45;
}
@media (max-width: 480px) { .hero-lead { font-size: 17px; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.hero-meta {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.btn-hero {
  height: 56px;
  padding: 0 var(--space-5) 0 var(--space-3);
  font-size: 16px;
  font-weight: 650;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
}
.btn-hero:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}
.btn-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-on);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.btn-play svg { width: 14px; height: 14px; margin-left: 2px; }
.btn-hero:hover .btn-play { transform: scale(1.08); }

/* ============ Hero art (three floating clip cards) ============ */

.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 520px;
  justify-self: end;
  isolation: isolate;
}
@media (max-width: 880px) {
  .hero-art { justify-self: center; max-width: 400px; }
}

.hero-card {
  position: absolute;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.hero-card.card-a {
  inset: 4% 28% 36% 0;
  --start-rot: -6deg;
  animation: card-bob 6s ease-in-out infinite;
}
.hero-card.card-b {
  inset: 22% 6% 18% 24%;
  --start-rot: 3deg;
  animation: card-bob 7s ease-in-out infinite reverse;
  animation-delay: -2s;
  z-index: 2;
}
.hero-card.card-c {
  inset: 44% 0 0 38%;
  --start-rot: -2deg;
  animation: card-bob 8s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes card-bob {
  0%, 100% { transform: rotate(var(--start-rot)) translateY(0); }
  50%      { transform: rotate(var(--start-rot)) translateY(-10px); }
}
.hero-art:hover .hero-card.card-a { transform: rotate(-9deg) translate(-8px, -6px); }
.hero-art:hover .hero-card.card-b { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: var(--shadow-lg); }
.hero-art:hover .hero-card.card-c { transform: rotate(2deg) translate(8px, 4px); }
.hero-art:hover .hero-card { animation-play-state: paused; }

.hero-card-bar {
  height: 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  flex-shrink: 0;
}
.hero-card-bar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-3);
}
.hero-card-bar > span:nth-child(1) { background: var(--hue-rose-ink); opacity: 0.5; }
.hero-card-bar > span:nth-child(2) { background: var(--hue-lemon-ink); opacity: 0.5; }
.hero-card-bar > span:nth-child(3) { background: var(--hue-mint-ink); opacity: 0.5; }

.hero-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-2);
  padding: var(--space-3);
  min-height: 0;
}

/* Card A — filmstrip clips that shimmer in sequence */
.filmstrip {
  display: flex;
  gap: 5px;
  width: 100%;
}
.filmstrip > span {
  flex: 1;
  height: 44px;
  border-radius: 6px;
  position: relative;
  animation: strip-pulse 2.4s ease-in-out infinite;
}
.filmstrip > span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: strip-shine 2.4s ease-in-out infinite;
}
.filmstrip .strip-1 { background: var(--hue-sky);   animation-delay: 0s; }
.filmstrip .strip-1::after { animation-delay: 0s; }
.filmstrip .strip-2 { background: var(--hue-lilac); animation-delay: 0.2s; }
.filmstrip .strip-2::after { animation-delay: 0.2s; }
.filmstrip .strip-3 { background: var(--hue-peach); animation-delay: 0.4s; }
.filmstrip .strip-3::after { animation-delay: 0.4s; }
.filmstrip .strip-4 { background: var(--hue-mint);  animation-delay: 0.6s; }
.filmstrip .strip-4::after { animation-delay: 0.6s; }
@keyframes strip-pulse {
  0%, 80%, 100% { transform: scaleY(1); }
  10%           { transform: scaleY(1.08); }
}
@keyframes strip-shine {
  0%, 60%, 100% { background-position: 100% 0; }
  30%           { background-position: -100% 0; }
}
.hero-art:hover .filmstrip > span,
.hero-art:hover .filmstrip > span::after { animation-duration: 1.2s; }

/* Card B — big play button that pulses */
.hero-play-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  animation: play-throb 2.2s ease-in-out infinite;
}
.hero-play-mark::before,
.hero-play-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: play-ripple 2.2s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}
.hero-play-mark::after { animation-delay: 1.1s; }
.hero-play-mark svg { width: 26px; height: 26px; margin-left: 4px; }
@keyframes play-throb {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes play-ripple {
  0%   { transform: scale(0.95); opacity: 0.55; }
  100% { transform: scale(1.6);  opacity: 0; }
}
.hero-art:hover .hero-play-mark { animation-duration: 1.2s; }

/* Card C — waveform bouncing */
.waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  height: 48px;
  padding: 0 4px;
}
.waveform > span {
  display: inline-block;
  width: 5px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: center;
  animation: wave 1.4s ease-in-out infinite;
}
.waveform > span:nth-child(even) { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.waveform > span:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform > span:nth-child(2) { height: 70%; animation-delay: -0.2s; }
.waveform > span:nth-child(3) { height: 45%; animation-delay: -0.4s; }
.waveform > span:nth-child(4) { height: 90%; animation-delay: -0.6s; }
.waveform > span:nth-child(5) { height: 55%; animation-delay: -0.8s; }
.waveform > span:nth-child(6) { height: 75%; animation-delay: -1s; }
.waveform > span:nth-child(7) { height: 35%; animation-delay: -1.2s; }
.waveform > span:nth-child(8) { height: 65%; animation-delay: -1.4s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}
.hero-art:hover .waveform > span { animation-duration: 0.7s; }

/* Floating clip-type tags — scattered, bobbing, sticker-like */
.art-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  z-index: 3;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.art-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
  flex-shrink: 0;
}
.tag-podcast {
  top: 0%;
  left: 20%;
  background: var(--hue-rose);
  color: var(--hue-rose-ink);
  transform: rotate(-7deg);
  animation: tag-bob-a 4s ease-in-out infinite;
}
.tag-djset {
  top: 6%;
  right: -4%;
  background: var(--accent);
  color: var(--accent-on);
  transform: rotate(8deg);
  animation: tag-bob-b 3.4s ease-in-out infinite;
}
.tag-djset::before { background: var(--accent-on); }
.tag-vlog {
  bottom: 12%;
  left: -6%;
  background: var(--bg-1);
  color: var(--text-0);
  border-color: var(--text-0);
  transform: rotate(-4deg);
  animation: tag-bob-a 5s ease-in-out infinite;
  animation-delay: -1.5s;
}
.tag-gaming {
  bottom: -3%;
  right: 14%;
  background: var(--hue-lemon);
  color: var(--hue-lemon-ink);
  transform: rotate(5deg);
  animation: tag-bob-b 4.6s ease-in-out infinite;
  animation-delay: -2s;
}
@keyframes tag-bob-a {
  0%, 100% { transform: rotate(var(--rot, -7deg)) translateY(0); }
  50%      { transform: rotate(var(--rot, -7deg)) translateY(-8px); }
}
.tag-vlog { --rot: -4deg; }
@keyframes tag-bob-b {
  0%, 100% { transform: rotate(var(--rot, 8deg)) translate(0, 0); }
  50%      { transform: rotate(var(--rot, 8deg)) translate(-4px, -6px); }
}
.tag-gaming { --rot: 5deg; }

/* Sparkle dots for fun */
.art-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
  animation: spark-twinkle 2.6s ease-in-out infinite;
}
.art-spark.spark-1 { top: 18%; left: -2%;   background: var(--hue-peach-ink); animation-delay: 0s; }
.art-spark.spark-2 { top: 60%; right: 4%;   background: var(--accent);        animation-delay: -0.8s; }
.art-spark.spark-3 { bottom: 8%; left: 38%; background: var(--hue-mint-ink);  animation-delay: -1.6s; }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50%      { opacity: 1;   transform: scale(1.4); }
}

@media (max-width: 480px) {
  .art-tag { font-size: 9px; padding: 5px 9px; }
  .tag-vlog { left: -2%; }
  .tag-djset { right: -2%; }
  .art-spark { display: none; }
}

/* ============ How it works ============ */

.how-section {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
}
.how-section .section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}
.how-section h2 {
  margin: 0 0 var(--space-5) 0;
  font-size: 36px;
  letter-spacing: -0.024em;
  font-weight: 700;
}
@media (max-width: 640px) { .how-section h2 { font-size: 28px; } }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 880px) {
  .how-grid { grid-template-columns: 1fr; }
}

.how-card {
  position: relative;
  padding: var(--space-5);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.how-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-slow);
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.how-card:hover::before { transform: scaleX(1); }

.how-card .step-num {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 40px;
  font-weight: 800;
  color: var(--bg-3);
  letter-spacing: -0.05em;
  line-height: 1;
  transition: color var(--transition);
}
.how-card:hover .step-num { color: var(--accent-soft); }

.how-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}
.how-card:hover .how-icon { transform: rotate(-6deg) scale(1.06); }
.how-icon svg { width: 26px; height: 26px; }
.how-card[data-step="1"] .how-icon { background: var(--hue-sky);   color: var(--hue-sky-ink); }
.how-card[data-step="2"] .how-icon { background: var(--hue-lilac); color: var(--hue-lilac-ink); }
.how-card[data-step="3"] .how-icon { background: var(--hue-mint);  color: var(--hue-mint-ink); }
.how-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.how-card p {
  margin: 0;
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.5;
}

/* ============ Projects grid ============ */

.projects-section {
  padding: var(--space-6) 0 var(--space-7);
  border-top: 1px solid var(--border);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  color: inherit;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.project-card .project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  overflow: hidden;
  position: relative;
}
.project-card .project-thumb svg { width: 32px; height: 32px; }
.project-card .project-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--text-0);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-card .project-meta {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  background: var(--bg-1);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}
.empty-state .empty-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.empty-state .empty-mark svg { width: 28px; height: 28px; }
.empty-state h3 { margin: 0 0 var(--space-2) 0; }
.empty-state p { margin: 0 0 var(--space-4) 0; max-width: 380px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  margin-top: auto;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
