/* ═══════════════════════════════════════════════════════════════════════
   Made for More — a scroll journey: six stops on a path that fills in
   as you go, then the destination, mission/vision/values and a next step.
   (page top uses the shared .page-hero in css/site.css)
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Caveat';
  src: url('../assets/fonts/Caveat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

html { scroll-padding-top: calc(var(--header-h) + var(--banner-h, 0px) + 2rem); }

/* ── Top ──────────────────────────────────────────────────────────────── */
.jy-hero { min-height: min(78vh, 680px); }
.jy-hero__title { font-size: clamp(3rem, 9vw, 7rem); }
.jy-note, .jy-dest__note {
  display: block;
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-weight: 700;
  font-size: 0.55em;
  letter-spacing: 0;
  color: var(--gold);
  transform: rotate(-6deg);
  transform-origin: left bottom;
  margin-bottom: 0.1em;
}
.jy-hero__lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 34ch; color: #fff; }
.jy-start {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}
.jy-start span { animation: jy-bob 1.6s ease-in-out infinite; }
@keyframes jy-bob { 50% { transform: translateY(4px); } }

/* ── The path ─────────────────────────────────────────────────────────── */
.jy-path-sec {
  position: relative;
  width: min(1100px, 100% - var(--gutter) * 2);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
/* Side list of stops (desktop) */
.jy-rail {
  position: sticky;
  top: calc(var(--header-h) + var(--banner-h, 0px) + 2rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jy-rail a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  color: var(--fg-faint);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.jy-rail a span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.78rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.jy-rail a:hover { color: var(--fg); }
.jy-rail a.is-done { color: var(--fg-muted); }
.jy-rail a.is-done span { background: color-mix(in srgb, var(--gold) 30%, transparent); border-color: transparent; color: var(--fg); }
.jy-rail a[aria-current='true'] { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.jy-rail a[aria-current='true'] span { background: var(--gold); border-color: var(--gold); color: #111; }

.jy-path { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 6rem); }
/* The line down the left, filling gold as you scroll */
.jy-line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: var(--line); }
.jy-line__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(to bottom, var(--gold), color-mix(in srgb, var(--gold) 70%, #ff8a3d));
  box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 60%, transparent);
}
.jy-stop { position: relative; }
.jy-marker {
  position: absolute;
  left: -64px;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--fg-faint);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.jy-stop.is-in .jy-marker { background: var(--gold); border-color: var(--gold); color: #111; transform: scale(1.08); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 20%, transparent); }

.jy-card {
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  opacity: 0.25;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.5s var(--ease);
}
.jy-stop.is-in .jy-card { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }
.jy-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.jy-title { margin-top: 0.5rem; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.jy-title em, .jy-big em { font-style: normal; color: var(--gold); }
.jy-card > p:not(.jy-kicker):not(.jy-big) { margin-top: 0.9rem; color: var(--fg-muted); font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }
.jy-card p b { color: var(--fg); }
.jy-big {
  margin-top: 1rem;
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--gold);
}
.jy-verse { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, 0.04); }
.jy-verse p { font-style: italic; line-height: 1.5; }
.jy-verse cite { display: block; margin-top: 0.4rem; font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.jy-verse--big p { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-family: var(--font-display); font-weight: 900; font-style: normal; line-height: 1.2; }

/* From / for */
.jy-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.jy-compare > div { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.04); }
.jy-compare > div:last-child { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.jy-compare b { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.jy-compare > div:last-child b { color: var(--gold); }
.jy-compare span { font-weight: 600; line-height: 1.4; }

/* Surrender → filled → growing */
.jy-steps { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; counter-reset: s; }
.jy-steps li { position: relative; padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.04); color: var(--fg-muted); font-size: 0.92rem; line-height: 1.4; }
.jy-steps li b { display: block; color: var(--fg); font-size: 1.05rem; margin-bottom: 0.15rem; }
.jy-steps li + li::before { content: '→'; position: absolute; left: -0.55rem; top: 50%; transform: translate(-50%, -50%); color: var(--gold); font-weight: 900; }

/* ── Destination ──────────────────────────────────────────────────────── */
.jy-dest {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(4rem, 12vw, 8rem);
  text-align: center;
  background:
    radial-gradient(50% 80% at 50% 50%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%),
    var(--bg-raised);
  border-block: 1px solid var(--line);
}
.jy-dest__note { display: inline-block; font-size: clamp(2rem, 5vw, 3.2rem); transform-origin: center; }
.jy-dest__title { font-size: clamp(3rem, 10vw, 7.5rem); line-height: 0.92; letter-spacing: -0.04em; }
.jy-dest__lead { margin-top: 1.25rem; font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 700; color: var(--gold); }
.jy-dest__dna { margin: 1rem auto 0; max-width: 52ch; color: var(--fg-muted); font-size: 1.05rem; line-height: 1.6; }

/* ── Mission / vision / values ────────────────────────────────────────── */
.jy-h { margin-top: 0.4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.025em; }
.jy-mvv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.jy-mvv__card { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-card); }
.jy-mvv__card--gold { background: var(--gold); color: #111; border-color: var(--gold); }
.jy-mvv__card h3 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.jy-mvv__card--gold h3 { color: #111; opacity: 0.7; }
.jy-mvv__statement { margin-top: 0.8rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; }
.jy-values { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; color: var(--fg-muted); }
.jy-values b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--fg); }

/* ── Next step ────────────────────────────────────────────────────────── */
.jy-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%), var(--bg-card);
}
.jy-next__title { margin-top: 0.35rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.jy-next p:not(.eyebrow) { margin-top: 0.5rem; color: var(--fg-muted); max-width: 56ch; line-height: 1.55; }
.jy-next__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.jy-song { margin-top: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); color: var(--fg-faint); font-size: 0.9rem; text-align: center; }
.jy-song a { color: var(--gold); font-weight: 700; text-decoration: none; }
.jy-song a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ── Smaller screens ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .jy-path-sec { grid-template-columns: minmax(0, 1fr); }
  .jy-rail { display: none; }
  .jy-mvv__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .jy-path { padding-left: 46px; }
  .jy-line { left: 15px; }
  .jy-marker { left: -46px; width: 34px; height: 34px; font-size: 0.9rem; }
  .jy-compare, .jy-steps { grid-template-columns: minmax(0, 1fr); }
  .jy-steps li + li::before { content: '↓'; left: 50%; top: -0.55rem; transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .jy-start span { animation: none; }
  .jy-card { opacity: 1; transform: none; transition: none; }
  .jy-marker, .jy-rail a, .jy-rail a span { transition: none; }
}

/* Mission / vision / values: wording from the Crash Course booklet */
.jy-mvv__intro { margin-top: 0.9rem; max-width: 62ch; color: var(--fg-muted); font-size: 1.05rem; line-height: 1.55; }
.jy-mvv__intro b { color: var(--fg); }
.jy-mvv__note { margin-top: 1rem; font-size: 0.85rem; line-height: 1.45; color: var(--fg-faint); }
.jy-mvv__note cite { display: block; margin-top: 0.25rem; font-style: normal; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.jy-mvv__card--gold .jy-mvv__note { color: rgba(17, 17, 17, 0.7); }
.jy-mvv__card { display: flex; flex-direction: column; }
.jy-mvv__card .jy-mvv__note { margin-top: auto; padding-top: 1rem; }
.jy-mega {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--gold);
}

/* Upcoming "Uncommon" events inside the next-step card */
.jy-up { flex: 1 1 100%; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.jy-up[hidden] { display: none; }
.jy-up__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.jy-up__list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0.6rem; }
.jy-up__event {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
  animation: jy-in 0.5s var(--ease);
}
.jy-up__event:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: rgba(255, 255, 255, 0.07); }
.jy-up__name { font-weight: 700; }
.jy-up__name::after { content: ' →'; color: var(--gold); }
.jy-up__when { font-size: 0.85rem; color: var(--fg-muted); }
@keyframes jy-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jy-up__event { animation: none; transition: none; } }
