.jp-home {
  --home-base: #151f30;
  --home-line: #3b4758;
  --home-fade: #c3cdd7;
  background: var(--home-base);
}

.jp-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.jp-home-hero-art,
.jp-home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.jp-home-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 71% center;
}

.jp-home-hero::after {
  content: "";
  background: linear-gradient(90deg, #151f30 0%, #151f30ed 19%, #151f30d4 33%, #151f306f 51%, transparent 73%);
}

.jp-home-hero-inner {
  min-height: clamp(440px, 36vw, 610px);
  display: grid;
  align-items: center;
  padding-block: clamp(35px, 4.4vw, 70px);
}

.jp-home-intro { max-width: clamp(325px, 52vw, 690px); }

.jp-home-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ffd4af;
  font: 700 .79rem/1.4 var(--label);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jp-home-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.jp-home h1 {
  margin-block: 14px 20px;
  font-size: clamp(2.6rem, 6.15vw, 6.1rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .99;
  white-space: pre-line;
  word-spacing: .04em;
}

.jp-home-lead {
  max-width: 39ch;
  color: #e4e7e7;
  font-size: clamp(1.04rem, 1.48vw, 1.27rem);
  line-height: 1.53;
}

.jp-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.jp-home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.jp-home-actions .jp-home-primary {
  background: var(--accent);
  color: #242131;
}

.jp-home-actions .jp-home-primary:hover { background: #ffc2aa; }

.jp-home-actions .jp-home-secondary {
  background: #151f30bf;
  border-color: #c3cdd782;
}

.jp-home-actions .jp-home-secondary:hover { background: #2a374c; }

.jp-home-sample {
  display: grid;
  grid-template-columns: clamp(46px, 15vw, 78px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(9px, 1.2vw, 15px);
  width: min(100%, 365px);
  margin-top: 16px;
  padding: 7px 12px 7px 7px;
  border: 1px solid #a9826f9e;
  border-radius: 8px;
  background: #192536ed;
  color: #fff2da;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.jp-home-sample img {
  width: 100%;
  height: 100%;
  min-height: 63px;
  border-radius: 4px;
  object-fit: cover;
  object-position: 62% center;
}

.jp-home-sample strong,
.jp-home-sample-trip,
.jp-home-sample-access { display: block; }

.jp-home-sample strong { font-size: 1rem; line-height: 1.2; }
.jp-home-sample-trip { margin-top: 4px; color: #e0e5eb; font-size: .83rem; line-height: 1.25; }
.jp-home-sample-access { margin-top: 3px; color: #ffcbaa; font-size: .74rem; line-height: 1.25; }
.jp-home-sample > svg { color: var(--accent); transition: transform .18s ease; }

.jp-home-sample:is(:hover, :focus-visible) {
  border-color: var(--accent);
  background: #253248;
}

.jp-home-sample:is(:hover, :focus-visible) > svg { transform: translateX(3px); }

.jp-home-links {
  background: #202c3c;
  border-block: 1px solid var(--home-line);
}

.jp-home-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jp-home-link-grid a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  min-height: 91px;
  padding: 13px clamp(12px, 2vw, 28px);
  text-decoration: none;
}

.jp-home-link-grid a:first-child { padding-inline-start: 0; }
.jp-home-link-grid a:last-child { padding-inline-end: 0; }
.jp-home-link-grid a + a { border-inline-start: 1px solid var(--home-line); }

.jp-home-link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #a9826f62;
  border-radius: 7px;
  background: #faad8610;
  color: #ffcbaa;
}

.jp-home-link-grid strong,
.jp-home-city-copy strong { display: block; line-height: 1.16; }

.jp-home-link-grid small,
.jp-home-city-copy small {
  display: block;
  margin-top: 4px;
  color: var(--home-fade);
  font-size: .88rem;
  line-height: 1.3;
}

.jp-home-link-grid a > svg,
.jp-home-city-copy > svg,
.jp-home-text-link { color: var(--accent); }

.jp-home-link-grid a:hover strong,
.jp-home-text-link:hover,
.jp-home-route-copy li a:hover strong { text-decoration: underline; text-underline-offset: .2em; }

.jp-home .jp-home-resume {
  margin-top: 24px;
  color: #193b34;
}

.jp-home-cities { padding-block: clamp(33px, 4vw, 60px) clamp(44px, 5vw, 80px); }

.jp-home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-bottom: 23px;
}

.jp-home h2:not(#home-resume-heading) {
  font-size: clamp(2rem, 3.55vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -.062em;
  line-height: 1;
}

.jp-home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 750;
  text-decoration: none;
}

.jp-home-city-grid,
.jp-home-route-copy ul { list-style: none; padding: 0; margin: 0; }

.jp-home-city-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(12px, 1.8vw, 24px);
}

.jp-home-city-grid a {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 9px;
  background: #1f2b3e;
  text-decoration: none;
  transition: border-color .18s ease;
}

.jp-home-city-grid a:hover { border-color: var(--accent); }

.jp-home-city-grid img,
.jp-home-route-art img { width: 100%; height: 100%; object-fit: cover; }

.jp-home-city-grid img { height: clamp(125px, 14vw, 215px); }

.jp-home-city-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px clamp(12px, 1.6vw, 22px) 17px;
}

.jp-home-city-copy strong {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  letter-spacing: -.052em;
}

.jp-home-itineraries {
  background: #f5f0e4;
  color: #1a3834;
  color-scheme: light;
}

.jp-home-route-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  padding-block: clamp(38px, 5.2vw, 80px);
}

.jp-home-route-art {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #ccc3ae;
}

.jp-home-route-copy p {
  margin-block: 12px 18px;
  color: #415854;
  max-width: 43ch;
}

.jp-home-route-copy li { border-top: 1px solid #c8ccbd; }
.jp-home-route-copy li:last-child { border-bottom: 1px solid #c8ccbd; }

.jp-home-route-copy li a {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding-block: 10px;
  line-height: 1.25;
  text-decoration: none;
}

.jp-home-route-copy li span {
  font: 700 .77rem/1.3 var(--label);
  color: #486359;
}

.jp-home-route-copy .jp-home-text-link {
  margin-top: 8px;
  color: #215649;
}

@media (max-width: 850px) {
  .jp-home-hero-inner { min-height: 418px; }
  .jp-home-hero::after {
    background: linear-gradient(90deg, #151f30 0%, #151f30f0 23%, #151f308c 57%, #151f3020 100%);
  }
  .jp-home-link-grid a > svg { display: none; }
  .jp-home-link-grid a { grid-template-columns: auto minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .jp-home-hero-art,
  .jp-home-hero::after { bottom: auto; height: clamp(194px, 58vw, 334px); }
  .jp-home-hero-art img { object-position: center 37%; }
  .jp-home-hero::after { background: linear-gradient(180deg, transparent 49%, #151f3070 78%, var(--home-base)); }
  .jp-home-hero-inner {
    min-height: 0;
    padding-top: clamp(164px, 49vw, 289px);
    padding-bottom: 31px;
  }
  .jp-home-intro { max-width: none; }
  .jp-home h1 {
    margin-block: 10px 15px;
    font-size: clamp(1.95rem, 11vw, 4.2rem);
  }
  .jp-home-actions { margin-top: 22px; }
  .jp-home-actions a { padding-inline: .78rem; gap: 7px; }
  .jp-home-link-grid { grid-template-columns: minmax(0, 1fr); }
  .jp-home-link-grid a,
  .jp-home-link-grid a:first-child,
  .jp-home-link-grid a:last-child {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 67px;
    padding: 10px 0;
  }
  .jp-home-link-grid a + a { border-inline-start: 0; border-top: 1px solid var(--home-line); }
  .jp-home-link-grid a > svg { display: block; }
  .jp-home-link-icon { width: 36px; height: 36px; }
  .jp-home-section-head { margin-bottom: 11px; }
  .jp-home-city-grid { grid-template-columns: minmax(0, 1fr); }
  .jp-home-city-grid img { height: clamp(140px, 38vw, 235px); }
  .jp-home-city-copy { padding-block: 12px 14px; }
  .jp-home-route-layout { grid-template-columns: minmax(0, 1fr); }
  .jp-home-route-art { aspect-ratio: 2 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .jp-home a,
  .jp-home-sample > svg { transition: none; }
  .jp-home-sample:is(:hover, :focus-visible) > svg { transform: none; }
}
