/* ============================================
   CRAFT HERO
============================================ */
.craft-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.craft-hero-bg {
  position: absolute;
  inset: -10%;
  background: url('../img/craft-hero.png') center 40% / cover no-repeat;
  background-attachment: fixed;
  animation: zoomIn 10s ease-out both;
}

.craft-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 35, 0.52);
}

.craft-hero .hero-brand {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  padding-top: 1.2rem;
  animation: heroFadeIn 1s ease 0.2s both;
  white-space: nowrap;
}

.craft-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 2rem;
  animation: heroFadeIn 1.2s ease 0.4s both;
  white-space: nowrap;
}

.craft-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.93);
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 1.2rem;
}

.craft-hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.06em;
}

/* ============================================
   CRAFT JOURNEY — cinematic scroll
============================================ */
.craft-journey {
  position: relative;
  /* 900vh = 100vh viewport + 4 steps × 200vh scroll each */
  height: 900vh;
  background: #060b1a;
}

/* Single sticky viewport — all panels stack inside */
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ── Individual panel ──────────────────────── */
.journey-panel {
  position: absolute;
  inset: 0;
  will-change: opacity, transform;
}

/* Background image layer */
.jp-bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Dark overlay — JS drives opacity */
.jp-overlay {
  position: absolute;
  inset: 0;
  background: #060b1a;
  will-change: opacity;
}

/* Canvas for particles */
.jp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Ghost step number — huge, bottom-right */
.jp-num {
  position: absolute;
  right: -0.04em;
  bottom: -0.18em;
  font-family: var(--font-serif);
  font-size: clamp(16rem, 30vw, 36rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  z-index: 2;
  will-change: transform, opacity;
}

/* Step counter — top right */
.jp-counter {
  position: absolute;
  top: clamp(1.5rem, 5vh, 3.5rem);
  right: clamp(2rem, 5vw, 5rem);
  z-index: 4;
  text-align: right;
  will-change: opacity;
}

.jp-counter-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
}

.jp-counter-label {
  font-family: var(--font-manrope);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 0.25rem;
}

/* Content block — bottom left */
.jp-content {
  position: absolute;
  left: clamp(2rem, 8vw, 9rem);
  bottom: clamp(3.5rem, 9vh, 7rem);
  z-index: 3;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Red accent bar — draws down */
.jp-bar {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--red);
  transform-origin: top;
  will-change: height;
}

/* Step label */
.jp-label {
  font-family: var(--font-manrope);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  will-change: transform, opacity;
}

/* Title — clip-path wipe reveal */
.jp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.0;
  letter-spacing: 0.02em;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, opacity, transform;
}

/* Quote */
.jp-quote {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.65vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  letter-spacing: 0.03em;
  will-change: transform, opacity;
}

/* Body */
.jp-body {
  font-family: var(--font-manrope);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.38);
  line-height: 2;
  letter-spacing: 0.04em;
  max-width: 440px;
  will-change: transform, opacity;
}

/* ── Side navigation dots ──────────────────── */
.journey-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.journey-nav.visible {
  opacity: 1;
  pointer-events: all;
}

.jnav-dot {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
}

.jnav-dot::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.35s ease, transform 0.35s ease;
}

.jnav-dot span {
  font-family: var(--font-manrope);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.35s ease;
}

.jnav-dot.active::before {
  background: var(--red);
  transform: scale(2.2);
}

.jnav-dot.active span {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Bottom progress bar ──────────────────── */
.journey-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.journey-progress.visible {
  opacity: 1;
}

.journey-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.04s linear;
}

/* ============================================
   CLOSING LINE
============================================ */
.craft-closing {
  background: var(--off-white);
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.craft-closing-rule {
  width: 40px;
  height: 1px;
  background: var(--red);
}

.craft-closing-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .craft-hero-bg { background-attachment: scroll; }
}

@media (max-width: 768px) {
  .journey-nav { display: none; }

  .jp-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 2.5rem;
    max-width: 100%;
  }

  .jp-bar { left: -1.2rem; }
  .jp-title { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .jp-num { font-size: clamp(14rem, 55vw, 20rem); }
  .jp-counter { right: 1.5rem; top: 1.2rem; }
}

@media (max-width: 480px) {
  .jp-body { display: none; }
  .craft-hero-content { white-space: normal; width: 90%; }
  .craft-hero .hero-brand { white-space: normal; }
  .craft-closing { padding: 4rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jp-bg,
  .jp-overlay,
  .jp-num,
  .jp-bar,
  .jp-label,
  .jp-title,
  .jp-quote,
  .jp-body,
  .jp-counter { transition: none !important; will-change: auto !important; }
}
