/* ================================================================
   WORK IN PROGRESS PAGE
   Eva Zaadnoordijk — builds on styles/style.css
   ================================================================ */

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wip {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
}

/* ---- HERO ---- */
.wip__hero {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wip__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: glitchIn 0.5s 0.3s forwards;
}
.wip__tag span {
  color: var(--neon-amber);
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.5);
}

.wip__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: glitchIn 0.7s 0.5s forwards;
}
.wip__title-line1 {
  display: block;
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(232, 213, 192, 0.2);
  line-height: 1;
}
.wip__title-line2 {
  display: block;
  position: relative;
  color: var(--neon-orange);
  text-shadow:
    0 0 30px var(--neon-orange),
    0 0 80px rgba(255, 107, 53, 0.4);
}
.wip__title-line2::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--neon-cyan);
  text-shadow: 0 0 30px var(--neon-cyan);
  animation: chromaShift 4s 2s infinite;
  pointer-events: none;
}

.wip__sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: glitchIn 0.5s 0.9s forwards;
}

.wip__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: glitchIn 0.5s 1.1s forwards;
}

/* ---- BUILD PANEL ---- */
.wip__build {
  position: relative;
  max-width: 560px;
  padding: 1.25rem 1.5rem 1.4rem;
  margin-bottom: 2.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  overflow: hidden;
  opacity: 0;
  animation: glitchIn 0.5s 1.3s forwards;
}
.wip__build::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 18px,
    rgba(255, 107, 53, 0.03) 18px,
    rgba(255, 107, 53, 0.03) 19px
  );
  pointer-events: none;
}

.wip__build-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.wip__build-state {
  color: var(--neon-cyan);
}
.wip__dots::after {
  content: "";
  display: inline-block;
  width: 2ch;
  text-align: left;
  animation: dots 1.4s steps(1) infinite;
}

/* Progress bar */
.wip__bar {
  position: relative;
  height: 6px;
  background: var(--dim-orange);
  border: 1px solid var(--border-glow);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.wip__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(to right, var(--neon-orange), var(--neon-amber));
  box-shadow: 0 0 12px var(--neon-orange);
  animation: buildFill 2.4s 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.wip__bar-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  left: -60px;
  background: linear-gradient(to right, transparent, var(--neon-cyan), transparent);
  opacity: 0.8;
  animation: barScan 2.2s 4s ease-in-out infinite;
}

/* Log */
.wip__log {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.wip__log li {
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}
.wip__log li:nth-child(1) { animation-delay: 1.9s; }
.wip__log li:nth-child(2) { animation-delay: 2.4s; }
.wip__log li:nth-child(3) { animation-delay: 2.9s; }
.wip__log li:nth-child(4) { animation-delay: 3.4s; margin-bottom: 0; }
.wip__log .ok   { color: #28c840; }
.wip__log .run  { color: var(--neon-amber); }
.wip__log .wait { color: var(--neon-cyan); }
.wip__log .dim  { color: var(--text-dim); }

/* Cursor (same as homepage terminal) */
.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 0.4rem;
  background: var(--neon-orange);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

/* ---- ACTIONS ---- */
.wip__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: glitchIn 0.5s 1.5s forwards;
}

/* Horizon line (from home.css) */
.hero__line {
  position: absolute;
  left: 0;
  bottom: 2.5rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--neon-orange) 30%,
    var(--neon-cyan) 70%,
    transparent
  );
  opacity: 0;
  animation: fadeIn 0.8s 1.8s forwards;
}

/* Logo is not a link here */
.nav__logo,
.footer__logo {
  cursor: default;
}

/* ---- KEYFRAMES ---- */
@keyframes buildFill {
  to { width: 72%; }
}
@keyframes barScan {
  0%   { left: -60px; }
  100% { left: 100%; }
}
@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .wip__hero {
    padding: 7rem 1.25rem 5rem;
  }
  .wip__tag {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }
  .wip__sub {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
  .wip__build {
    padding: 1rem 1.1rem 1.2rem;
  }
  .wip__log {
    font-size: 0.7rem;
  }
  .nav__inner {
    padding: 0 1.25rem;
  }
}

/* Reduced motion: show the final state immediately */
@media (prefers-reduced-motion: reduce) {
  .wip__bar-fill { width: 72%; }
  .wip__bar-scan { display: none; }
}
