/* =========================
   PROJECT PAGE
========================= */

.p-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-bottom: 2px;
  margin-bottom: 1.6rem;
  color: var(--ink-dim);
  position: relative;
  width: fit-content;
}

.p-back::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink-dim);
  transition: width 0.3s var(--ease);
}

.p-back:hover { color: var(--ink); }
.p-back:hover::after { width: 100%; }

.p-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 3rem;
  border-bottom: 1px solid var(--line-strong);
}

.p-hero__index { display: block; margin-bottom: 1.4rem; }

.p-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.p-hero__title .line { display: block; }

.p-hero__subtitle {
  margin-top: 1.6rem;
  max-width: 480px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.p-section {
  max-width: 760px;
  padding: 6rem var(--gutter) 0;
  margin: 0 auto;
}

.p-section:last-of-type { padding-bottom: 6rem; }

.p-overview p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
  max-width: 640px;
}

.p-features, .p-process {
  list-style: none;
}

.p-features li, .p-process li {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.p-features li:last-child, .p-process li:last-child {
  border-bottom: 1px solid var(--line);
}

.p-features li span:first-child,
.p-process li span:first-child {
  color: var(--accent);
  min-width: 1.6rem;
}

.p-explore {
  padding: 8rem var(--gutter);
  border-top: 1px solid var(--line-strong);
  text-align: center;
}

.p-explore__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.p-explore__link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}

.p-explore__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.p-explore__link:hover::after { transform: scaleX(1); }

.p-ending {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter) 6rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.p-section--wide { max-width: 820px; }

.p-terminal {
  border: 1px solid var(--line-strong);
  background: #0c0c0e;
  overflow: hidden;
}

.p-terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-strong);
}

.p-terminal__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.p-terminal__path {
  margin-left: 0.6rem;
  color: var(--ink-faint);
}

.p-terminal__body {
  padding: 1.4rem 1.2rem 1.6rem;
  min-height: 460px;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--ink-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

.p-terminal__body .caret {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.p-terminal__body .out { color: var(--ink); }
.p-terminal__body .ok { color: var(--accent); }

@media (max-width: 640px) {
  .p-terminal__body { font-size: 0.74rem; min-height: 520px; }
  .p-hero { padding-top: 6rem; }
  .p-section { padding-top: 4rem; }
}
