/* ---- Websites showcase hero ---- */
.frontier-hero .hero-tagline { margin-top: 2.2rem; }

.frontier-invite {
  margin-top: 1.1rem;
  font-style: normal;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--ink-dim);
}

.frontier-credit {
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: hero-rise var(--dur-slow) var(--ease-out) 0.6s both;
}

.frontier-back {
  margin-top: 2.25rem;
  opacity: 0;
  animation: hero-rise var(--dur-slow) var(--ease-out) 0.7s both;
}

/* ---- Showcase section ---- */
.showcase-section { padding-top: clamp(2rem, 5vw, 3rem); }

.project-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vw, 7rem);
}

/* ---- The Whispering Trail ---- */
.trail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.trail-base,
.trail-base-glow {
  fill: none;
  stroke: url(#trailGradientBase);
  vector-effect: non-scaling-stroke;
}

.trail-base { stroke-width: 1.4; stroke-linecap: round; opacity: 0.4; }

.trail-base-glow {
  stroke-width: 7;
  opacity: 0.1;
  filter: url(#trailSoftBlur);
}

.trail-reveal,
.trail-reveal-glow {
  fill: none;
  stroke: url(#trailGradientBright);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trail-reveal { stroke-width: 2; }

.trail-reveal-glow {
  stroke-width: 9;
  opacity: 0.55;
  filter: url(#trailSoftBlur);
}

.trail-particle-halo {
  filter: url(#trailSoftBlur);
  opacity: 0.6;
}

.trail-particle-core { opacity: 0.95; }
.trail-particle-trail { opacity: 0.35; }

@keyframes path-breathe {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.48; }
}

.trail-base-glow { animation: path-breathe 6s ease-in-out infinite; }

.project-stop {
  --depth: 0;
  --tilt: 1;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}

.project-stop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-stop[data-align="right"] { --tilt: -1; }

.project-stop article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .project-stop article {
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .project-stop[data-align="right"] article {
    grid-template-columns: 1fr 1.35fr;
  }

  .project-stop[data-align="right"] .project-visual { order: 2; }
  .project-stop[data-align="right"] .project-info { order: 1; text-align: right; }
  .project-stop[data-align="right"] .project-info .btn { margin-left: auto; }
  .project-stop[data-align="right"] .project-node { right: auto; left: -18px; }
}

.project-visual {
  position: relative;
}

.project-node {
  position: absolute;
  top: -14px;
  right: -18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--accent-2-dim);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 4px rgba(5, 6, 10, 0.6), 0 0 18px -4px var(--accent-2-soft);
  transition: box-shadow 0.6s var(--ease-out), border-color 0.6s var(--ease-out), color 0.5s var(--ease-out);
}

.project-node.is-lit {
  border-color: var(--accent-2);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(5, 6, 10, 0.6), 0 0 26px -4px var(--accent-2), 0 0 42px -16px var(--accent-2-soft);
}

.project-node.is-pulsing {
  box-shadow: 0 0 0 4px rgba(5, 6, 10, 0.6), 0 0 32px 2px var(--accent-2), 0 0 20px 4px var(--accent-soft);
}

.browser-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
  transform: perspective(1400px) rotateY(calc(var(--tilt) * var(--depth) * -5deg)) translateY(calc(var(--depth) * 16px)) scale(calc(1 - abs(var(--depth)) * 0.035));
  filter: brightness(calc(1 - abs(var(--depth)) * 0.22));
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out), border-color 0.5s var(--ease-out);
}

.project-stop.is-focused .browser-frame {
  border-color: var(--accent-2-dim);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.browser-dots { display: inline-flex; gap: 0.4rem; flex: none; }
.browser-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.55;
}

.browser-url {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 614;
  object-fit: cover;
  background: var(--bg-2);
}

.project-info { max-width: 46ch; }

.project-category {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--accent-2-dim);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  margin-bottom: 0.9rem;
  margin-right: 0.6rem;
}

.project-newest {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  margin-bottom: 0.9rem;
  background: var(--accent-soft);
}

.project-newest::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
}

.project-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.project-tagline {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  margin-bottom: 0.6rem;
}

.project-info p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

/* ---- End of journey CTA ---- */
.frontier-end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

@media (max-width: 480px) {
  .project-node { width: 34px; height: 34px; font-size: 0.64rem; top: -10px; right: -10px; }
  .frontier-end-actions { flex-direction: column; width: 100%; }
  .frontier-end-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .project-stop {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .browser-frame {
    transform: none !important;
    filter: none !important;
    transition: none;
  }
  .trail-base-glow { animation: none; }
  .project-node { transition: none; }
  .frontier-credit, .frontier-back { animation: none; opacity: 1; }
}
