/* ─── Hitchhiking guide: slide layout ───────────────────────────────
   Each .hg-slide is one "slide": a text block and a photo/drawing that
   slide in from opposite sides when the slide scrolls into view.
   Photos and drawings have sharp corners, text-only boxes stay round. */

.hg-page { --hg-good: #2f8a57; --hg-bad: #c4442d; --hg-road: #3b3b37; --hg-ink: var(--text); overflow-x: clip; }

/* Hero */
.hg-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #1c1f22; overflow: hidden;
  margin-top: var(--nav-height);
}
.hg-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,14,.25) 0%, rgba(10,12,14,.35) 45%, rgba(10,12,14,.85) 100%);
}
.hg-hero__inner { position: relative; width: min(1100px, 100%); margin: 0 auto; padding: 0 24px 64px; display: flex; flex-direction: column; gap: 18px; }
.hg-back { position: absolute; top: 20px; left: 24px; z-index: 2; color: rgba(255,255,255,.85); font-family: var(--font-body); font-size: 13px; text-decoration: none; }
.hg-back:hover { color: #fff; }
.hg-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hg-hero h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin: 0; color: #fff; text-wrap: balance; }
.hg-km { font-family: var(--font-serif); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; margin: 0; color: #fff; }
.hg-km strong { color: #f0a07e; }
.hg-disclaimer { font-family: var(--font-body); font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.85); max-width: 62ch; margin: 0; }

/* Agenda */
.hg-agenda { width: min(1100px, 100%); margin: -40px auto 0; padding: 0 24px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hg-agenda a { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; background: var(--bg, #fafaf7);
  border: 0.5px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); text-decoration: none; color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease; }
.hg-agenda a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.hg-agenda__num { font-family: var(--font-mono); font-size: 12px; color: var(--orange); letter-spacing: .1em; }
.hg-agenda__title { font-family: var(--font-serif); font-size: 21px; font-weight: 700; line-height: 1.2; }
.hg-agenda__desc { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* Part dividers */
.hg-part { scroll-margin-top: var(--nav-height); width: min(1100px, 100%); margin: 0 auto; padding: 120px 24px 24px; display: grid;
  grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0 28px; }
.hg-part__num { font-family: var(--font-serif); font-weight: 700; font-size: clamp(80px, 13vw, 150px); line-height: .8; color: transparent;
  -webkit-text-stroke: 1.5px var(--orange); }
.hg-part__title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; margin: 0; }
.hg-part__lede { grid-column: 2; font-family: var(--font-body); font-size: 15.5px; line-height: 1.6; color: var(--text-muted); margin: 10px 0 0; max-width: 58ch; }

/* Slides */
.hg-slide { width: min(1100px, 100%); margin: 0 auto; padding: 56px 24px; min-height: 76vh; min-height: 76svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; border-top: 0.5px solid var(--border); }
.hg-part + .hg-slide { border-top: none; }
.hg-slide--flip .hg-text { order: 2; }
.hg-slide--flip .hg-media { order: 1; }
.hg-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hg-eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hg-text h3 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0; text-wrap: balance; }
.hg-text p { font-family: var(--font-body); font-size: 16.5px; line-height: 1.7; color: var(--text); margin: 0; max-width: 52ch; }
.hg-text p.hg-muted { color: var(--text-muted); font-size: 15px; }
.hg-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; max-width: 52ch; }
.hg-points li { font-family: var(--font-body); font-size: 16px; line-height: 1.6; padding-left: 22px; position: relative; }
.hg-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--orange); }
.hg-points strong { font-weight: 600; }

.hg-media { min-width: 0; display: flex; justify-content: center; }
.hg-photo { margin: 0; width: min(100%, 440px); display: flex; flex-direction: column; gap: 10px; }
.hg-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); }
.hg-photo--wide img { aspect-ratio: 4 / 3; }
.hg-photo figcaption, .hg-figure figcaption { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: .02em; color: var(--text-muted); }
.hg-figure { margin: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.hg-figure svg { width: 100%; height: auto; display: block; background: var(--bg-raised, #f5f5f0); border: 0.5px solid var(--border); }

/* Slide-in motion (only when JS is running; without it everything is simply visible) */
html.hg-anim .hg-reveal .hg-text,
html.hg-anim .hg-reveal .hg-media { opacity: 0; transition: opacity .7s ease, transform .9s cubic-bezier(.2,.75,.2,1); }
html.hg-anim .hg-reveal .hg-text  { transform: translateX(-80px); }
html.hg-anim .hg-reveal .hg-media { transform: translateX(80px); transition-delay: .12s; }
html.hg-anim .hg-reveal.hg-slide--flip .hg-text  { transform: translateX(80px); }
html.hg-anim .hg-reveal.hg-slide--flip .hg-media { transform: translateX(-80px); }
html.hg-anim .hg-reveal.is-in .hg-text,
html.hg-anim .hg-reveal.is-in .hg-media { opacity: 1; transform: none; }
html.hg-anim .hg-part.hg-reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
html.hg-anim .hg-part.hg-reveal.is-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.hg-anim .hg-reveal .hg-text, html.hg-anim .hg-reveal .hg-media, html.hg-anim .hg-part.hg-reveal > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Number plate */
.hg-plate { display: inline-flex; align-items: stretch; border: 3px solid #1d1d1b; border-radius: 8px; background: #fff; overflow: hidden;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.4); transform: rotate(-3deg); }
.hg-plate__eu { background: #1f47a8; color: #ffd84a; width: 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 0;
  font-family: var(--font-body); font-weight: 700; font-size: 18px; }
.hg-plate__eu span { font-size: 10px; letter-spacing: 2px; margin-bottom: auto; margin-top: 6px; }
.hg-plate__text { font-family: "Space Mono", monospace; font-weight: 700; font-size: clamp(30px, 5vw, 52px); letter-spacing: .06em; color: #1d1d1b; padding: 10px 22px; white-space: nowrap; }
.hg-plate-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hg-phone-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.hg-phone-note s { color: var(--hg-bad); }

/* Pairs */
.hg-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 460px); }
.hg-pair { border: 0.5px solid var(--border); border-radius: 10px; padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--bg-raised, #fff); }
.hg-pair svg { width: 76px; height: 64px; }
.hg-pair span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.hg-pair--best { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.hg-pair--best span { color: var(--orange); }
.hg-pairs-wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }
.hg-pairs-wrap img { width: min(100%, 460px); aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Time calculator */
.hg-calc { width: min(100%, 460px); border: 0.5px solid var(--border); border-radius: 12px; padding: 22px 22px 18px; background: var(--bg-raised, #fff);
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 44px -26px rgba(0,0,0,.35); }
.hg-calc label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); display: flex; justify-content: space-between; }
.hg-calc label output { color: var(--text); font-size: 13px; }
.hg-calc input[type=range] { width: 100%; accent-color: var(--orange); }
.hg-calc__rows { display: grid; gap: 8px; }
.hg-calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-body); font-size: 15px; border-top: 0.5px solid var(--border); padding-top: 8px; }
.hg-calc__row b { font-family: var(--font-serif); font-size: 24px; font-variant-numeric: tabular-nums; }
.hg-calc__row--main b { color: var(--orange); font-size: 30px; }
.hg-calc__rule { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* Sunset bar */
.hg-sun { width: min(100%, 460px); display: flex; flex-direction: column; gap: 10px; }
.hg-sun__bar { position: relative; height: 54px; border-radius: 0; background: linear-gradient(90deg, #f6d27a 0%, #f4b85f 55%, #e67e4a 78%, #6a5b8c 92%, #23284a 100%); }
.hg-sun__mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); }
.hg-sun__mark span { position: absolute; top: 100%; transform: translateX(-50%); margin-top: 8px; white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.hg-sun__labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); margin-top: 22px; }

/* Cardboard sign */
.hg-sign { background: #c9a36b; background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.06)); color: #1b1a17; padding: 26px 34px 22px;
  font-family: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive; text-align: center; transform: rotate(2deg);
  box-shadow: 0 22px 40px -18px rgba(0,0,0,.45); width: min(100%, 400px); }
.hg-sign__big { font-size: clamp(38px, 6vw, 58px); line-height: 1; display: block; }
.hg-sign__small { font-size: 22px; display: block; margin-top: 8px; }

/* Part 3 */
.hg-block { width: min(1100px, 100%); margin: 0 auto; padding: 48px 24px; border-top: 0.5px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.hg-block h3 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(26px, 3vw, 34px); margin: 0; }
.hg-block > p { font-family: var(--font-body); font-size: 16px; line-height: 1.7; margin: 0; max-width: 65ch; color: var(--text); }
.hg-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hg-story { display: flex; flex-direction: column; gap: 10px; }
.hg-story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.hg-story h4 { font-family: var(--font-serif); font-size: 19px; margin: 4px 0 0; }
.hg-story p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.hg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hg-card { border: 0.5px solid var(--border); border-radius: 10px; padding: 16px 18px; background: var(--bg-raised, #fff); display: flex; flex-direction: column; gap: 8px; }
.hg-card h4 { font-family: var(--font-serif); font-size: 18px; margin: 0; }
.hg-card p, .hg-card li { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.hg-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.hg-card a { color: var(--orange); }
.hg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hg-stat { border-left: 2px solid var(--orange); padding: 4px 0 4px 14px; }
.hg-stat b { display: block; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); font-variant-numeric: tabular-nums; }
.hg-stat span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.hg-note { font-family: var(--font-body); font-size: 12.5px; color: var(--text-muted); margin: 0; }
.hg-note a { color: inherit; }
.hg-go { width: min(1100px, 100%); margin: 0 auto 40px; padding: 72px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; border-top: 0.5px solid var(--border); }
.hg-go h3 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(36px, 5vw, 56px); margin: 0; }
.hg-go p { font-family: var(--font-body); font-size: 16.5px; line-height: 1.7; max-width: 58ch; margin: 0; }
.hg-go a.hg-btn { font-family: var(--font-body); font-size: 15px; color: #fff; background: var(--orange); padding: 12px 22px; border-radius: 6px; text-decoration: none; }
.hg-go a.hg-btn:hover { filter: brightness(1.08); }

/* Phones and tablets */
@media (max-width: 860px) {
  .hg-agenda { grid-template-columns: 1fr; margin-top: -28px; }
  .hg-slide { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 44px 20px; }
  .hg-slide--flip .hg-text { order: 0; }
  .hg-slide--flip .hg-media { order: 0; }
  .hg-part { padding: 80px 20px 8px; grid-template-columns: 1fr; }
  .hg-part__lede { grid-column: 1; }
  .hg-stories, .hg-cards { grid-template-columns: 1fr; }
  .hg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.hg-anim .hg-reveal .hg-text, html.hg-anim .hg-reveal.hg-slide--flip .hg-text { transform: translateX(-36px); }
  html.hg-anim .hg-reveal .hg-media, html.hg-anim .hg-reveal.hg-slide--flip .hg-media { transform: translateX(36px); }
  /* revealed state must win over the start offsets above (same specificity, later in file) */
  html.hg-anim .hg-reveal.hg-slide.is-in .hg-text,
  html.hg-anim .hg-reveal.hg-slide.is-in .hg-media { transform: none; }
  .hg-hero { min-height: 82svh; }
  .hg-hero__inner { padding: 0 20px 56px; }
}

/* Easy / hard places */
.hg-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hg-tier { border: 0.5px solid var(--border); border-top: 4px solid var(--tier); border-radius: 10px; padding: 16px 18px 18px; background: var(--bg-raised, #fff); display: flex; flex-direction: column; gap: 12px; }
.hg-tier--easy { --tier: #2f8a57; } .hg-tier--mixed { --tier: #d9a23a; } .hg-tier--hard { --tier: #c4442d; }
.hg-tier__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tier); font-weight: 700; }
.hg-tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hg-tier li { display: flex; flex-direction: column; gap: 3px; }
.hg-tier b { font-family: var(--font-serif); font-size: 18px; }
.hg-tier li span { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* FAQ */
.hg-faq { display: flex; flex-direction: column; border-top: 0.5px solid var(--border); max-width: 780px; }
.hg-faq details { border-bottom: 0.5px solid var(--border); }
.hg-faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-family: var(--font-serif); font-size: 19px; font-weight: 700; }
.hg-faq summary::-webkit-details-marker { display: none; }
.hg-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 300; font-size: 26px; color: var(--orange); transition: transform .2s; }
.hg-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hg-faq details p { font-family: var(--font-body); font-size: 15.5px; line-height: 1.7; color: var(--text); margin: 0 0 18px; max-width: 65ch; }
@media (max-width: 860px) { .hg-tiers { grid-template-columns: 1fr; } .hg-faq summary { font-size: 17px; } }

/* Hero photo: full-bleed on phones, right half on wide screens */
.hg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 40%; z-index: 0; }
.hg-hero::before { z-index: 1; }
.hg-hero__inner { z-index: 2; }
.hg-back { z-index: 3; }
.hg-hero__credit { position: absolute; right: 20px; top: 22px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: rgba(255,255,255,.75); }
@media (min-width: 861px) {
  .hg-hero__img { left: auto; width: 50%; object-position: 62% 50%; }
  .hg-hero::before { background: linear-gradient(90deg, #1c1f22 0%, #1c1f22 48%, rgba(28,31,34,.55) 53%, rgba(28,31,34,0) 64%); }
  .hg-hero__inner { padding-bottom: 72px; }
  .hg-hero__inner > * { max-width: 520px; }
}
