/* ==========================================================================
   HOME — page-specific rules (Figma 47:2 "v2 Portfolio — Home (Desktop 1728)")
   Requires jnp.css. Only deltas from the shared kit live here.
   ========================================================================== */

/* --- Shared page helpers -------------------------------------------------- */
/* Eyebrows on light (paper/tint) sections are RUST in this design, not orange. */
.home-eyebrow-rust { color: var(--jnp-rust); }
.home-body-slate { color: var(--jnp-slate); line-height: 31px; }

/* "LABEL  →" text links (rust on light, orange on ink) */
.home-arrowlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--jnp-ui); font-weight: 600; font-size: 13px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--jnp-rust); line-height: 1.2; white-space: nowrap;
  transition: gap .18s ease;
}
.home-arrowlink:hover { gap: 14px; }
.home-arrowlink-sm { font-size: 12px; letter-spacing: 0.13em; }
.jnp-sec-ink .home-arrowlink, .jnp-sec-grad .home-arrowlink { color: var(--jnp-orange); }

/* Icons drawn in CSS (trivial glyphs only) */
.home-icon { display: inline-block; position: relative; flex: none; }
.home-icon-arrow { width: 12px; height: 12px; }
.home-icon-arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.home-icon-arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.home-icon-play { width: 0; height: 0; border-style: solid; border-color: transparent transparent transparent var(--jnp-rust); }
.home-icon-chevron-left, .home-icon-chevron-right { width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.home-icon-chevron-left { transform: translateX(2px) rotate(-135deg); }
.home-icon-chevron-right { transform: translateX(-2px) rotate(45deg); }

/* --- 01 Hero (67:5, Option A gradient) ------------------------------------ */
.home-hero { padding-top: 237px; padding-bottom: 0; overflow: hidden; }
/* 52 header top + ~60 nav + 32 + 1 rule + 92 = 237px from top to hero content */
.home-hero-inner { display: flex; align-items: flex-end; gap: 70px; }
.home-hero-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-bottom: 104px; }
.home-hero-copy .jnp-h1 { line-height: 88px; }
.home-hero-copy .jnp-lede { color: rgba(255,255,255,.82); }

.home-hero-video {
  position: relative; display: block; flex: none; width: 560px; height: 620px;
  border-radius: 18px 18px 0 0; overflow: hidden; background: var(--jnp-ink); color: #fff;
}
.home-hero-video img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.home-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,26,56,.22) 0%, rgba(19,26,56,.30) 55%, rgba(19,26,56,.62) 100%); }
.home-hero-play { position: absolute; left: 50%; top: 240px; width: 112px; height: 112px; transform: translateX(-50%); }
.home-hero-play-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); }
.home-hero-play-btn {
  position: absolute; left: 14px; top: 14px; width: 84px; height: 84px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 30px rgba(19,26,56,.30);
  transition: transform .18s ease;
}
.home-hero-video:hover .home-hero-play-btn { transform: scale(1.04); }
.home-hero-play-btn .home-icon-play { border-width: 15px 0 15px 26px; margin-left: 7px; }
.home-hero-video-cap {
  position: absolute; left: 0; right: 0; top: 362px; text-align: center;
  font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.92);
}

/* --- 02 Something big (47:4) ---------------------------------------------- */
.home-teaser { padding: 0 0 88px; }
.home-teaser-rule { height: 4px; width: 100%; background: var(--jnp-rust); }
.home-teaser-row { display: flex; align-items: center; gap: 70px; padding-top: 80px; }
.home-teaser-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.home-teaser-body { color: var(--jnp-slate); }
.home-teaser-row .jnp-btn { flex: none; }

/* --- 03 Where small business stands (47:5) -------------------------------- */
.home-stats { padding: 96px 0; }
.home-stats-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 38px; }
.home-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; width: 100%; }
.home-stat { position: relative; padding-left: 25px; gap: 12px; }
.home-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--jnp-orange); }
.home-stat .jnp-stat-fig { font-size: 52px; line-height: 54px; letter-spacing: -0.03em; white-space: nowrap; }
.home-stat .jnp-stat-label { font-size: 15px; line-height: 24px; color: rgba(255,255,255,.78); }
.home-stat .jnp-stat-src { font-size: 12px; line-height: 18px; color: rgba(255,255,255,.46); opacity: 1; }

/* --- 04 My mission (47:6) ------------------------------------------------- */
.home-mission { padding: 120px 0; }
.home-mission-split { gap: 90px; }
.home-mission-photo { width: 560px; height: 480px; border-radius: 14px; margin: 0; }
.home-mission-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.home-mission-h { font-size: 38px; line-height: 45px; letter-spacing: -0.025em; }

/* --- 05 On the road (47:7) ------------------------------------------------ */
.home-road { padding: 120px 0; }
.home-road-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 46px; }
.home-road-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
.home-road-h, .home-h2-48 { font-size: 48px; line-height: 54px; letter-spacing: -0.028em; }
.home-road-lede { font-size: 19px; line-height: 32px; max-width: 860px; }
.home-road-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; width: 100%; }
.home-road-photo { height: 400px; border-radius: 14px; }

/* --- 06 What I'm fighting for (47:8) -------------------------------------- */
.home-fights { padding: 120px 0; }
.home-fights-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 44px; }
.home-fights-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.home-fights-list { display: flex; flex-direction: column; gap: 44px; width: 100%; counter-reset: none; }
.home-fight { display: flex; align-items: flex-start; gap: 32px; width: 100%; border-top: 1px solid var(--jnp-line); padding: 28px 0 4px; }
.home-fight-num { flex: none; width: 52px; font-family: var(--jnp-display); font-weight: 700; font-size: 22px; line-height: normal; letter-spacing: -0.01em; color: var(--jnp-rust); }
.home-fight-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.home-fight-h { font-family: var(--jnp-display); font-weight: 600; font-size: 30px; line-height: 38px; letter-spacing: -0.02em; color: var(--jnp-ink); }
.home-fight-p { font-size: 17px; line-height: 28px; color: var(--jnp-slate); }

/* --- 07 In the media (74:2) — horizontal carousel, bleeds right ----------- */
.home-media { padding: 110px 0; overflow: hidden; }
.home-media-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 44px; }
.home-media-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; width: 100%; }
.home-media-titles { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.home-carousel-arrows { display: flex; align-items: center; gap: 14px; flex: none; }
.home-carousel-arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color .18s, opacity .18s, background .18s;
}
.home-carousel-arrow:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.home-carousel-arrow.is-disabled, .home-carousel-arrow:disabled { opacity: .35; cursor: default; }
.home-carousel-arrow.is-disabled:hover, .home-carousel-arrow:disabled:hover { border-color: rgba(255,255,255,.55); background: transparent; }

.home-carousel {
  width: auto; align-self: stretch;
  margin-right: calc(-1 * var(--jnp-gutter));
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.home-carousel::-webkit-scrollbar { display: none; }
@media (min-width: 1729px) { .home-carousel { margin-right: calc((var(--jnp-max) - 100vw) / 2); } }
.home-carousel-track { display: flex; align-items: flex-start; gap: 24px; width: max-content; padding-right: var(--jnp-gutter); }
.home-video { flex: none; width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; scroll-snap-align: start; }
.home-video-thumb {
  position: relative; display: block; width: 420px; height: 236px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(57deg, #2B2350 11%, #4B3A7A 58%, #6B3A5E 89%);
}
.home-video-thumb img, .home-video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.home-video-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2; padding: 6px 10px; border-radius: 6px; background: rgba(19,26,56,.55);
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.9); line-height: normal;
}
.home-video-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 62px; height: 62px; border-radius: 50%; background: #fff;
  transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px rgba(19,26,56,.30);
  transition: transform .18s ease;
}
.home-video-thumb:hover .home-video-play { transform: translate(-50%,-50%) scale(1.05); }
.home-video-play .home-icon-play { border-width: 11px 0 11px 19px; margin-left: 5px; }
.home-video-title { font-family: var(--jnp-display); font-weight: 600; font-size: 19px; line-height: 27px; letter-spacing: -0.01em; color: #fff; }
.home-video-meta { font-size: 13.5px; line-height: 20px; color: rgba(255,255,255,.6); }

/* --- 08 Latest (47:9) ----------------------------------------------------- */
.home-latest { padding: 110px 0; }
.home-latest-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 44px; }
.home-latest-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.home-h2-44 { font-size: 44px; line-height: 50px; letter-spacing: -0.025em; }
.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; width: 100%; align-items: stretch; }
.home-news-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 32px 34px; border-radius: 16px; min-height: 185px; }
.home-news-meta { display: flex; align-items: baseline; gap: 10px; line-height: normal; }
.home-news-type { font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--jnp-rust); white-space: nowrap; }
.home-news-date { font-size: 11.5px; color: var(--jnp-slate); white-space: nowrap; }
.home-news-title { font-family: var(--jnp-display); font-weight: 600; font-size: 22px; line-height: 29px; letter-spacing: -0.015em; color: var(--jnp-ink); }
.home-news-title a:hover { color: var(--jnp-rust); }
.home-news-card .home-arrowlink { margin-top: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .home-hero { padding-top: 220px; }
  .home-hero-inner { gap: 48px; }
  .home-hero-copy { padding-bottom: 72px; }
  .home-hero-copy .jnp-h1 { line-height: 1; }
  .home-hero-video { width: 440px; height: 520px; }
  .home-hero-play { top: 190px; }
  .home-hero-video-cap { top: 312px; }
  .home-mission-split { gap: 56px; }
  .home-mission-photo { width: 100%; height: 420px; }
  .home-mission-h { font-size: 34px; line-height: 40px; }
  .home-road-h, .home-h2-48 { font-size: 42px; line-height: 48px; }
  .home-road-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-road-photo { height: 360px; }
  .home-stats-grid { gap: 36px; }
  .home-stat .jnp-stat-fig { font-size: 46px; line-height: 50px; }
  .home-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 991px) {
  .home-hero { padding-top: 190px; }
  .home-hero-inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .home-hero-copy { padding-bottom: 0; }
  .home-hero-video { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 18px 18px 0 0; }
  .home-hero-play { top: 50%; transform: translate(-50%, -62%); width: 96px; height: 96px; }
  .home-hero-play-btn { left: 12px; top: 12px; width: 72px; height: 72px; }
  .home-hero-video-cap { top: auto; bottom: 28px; }
  .home-teaser { padding-bottom: 72px; }
  .home-teaser-row { flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 56px; }
  .home-stats { padding: 80px 0; }
  .home-stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-mission, .home-road, .home-fights { padding: 80px 0; }
  .home-mission-photo { height: 380px; }
  .home-mission-h { font-size: 30px; line-height: 36px; }
  .home-road-h, .home-h2-48, .home-h2-44 { font-size: 36px; line-height: 42px; }
  .home-road-photo { height: 300px; }
  .home-fights-list { gap: 32px; }
  .home-fight-h { font-size: 26px; line-height: 32px; }
  .home-media, .home-latest { padding: 80px 0; }
  .home-media-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .home-video, .home-video-thumb { width: 360px; }
  .home-video-thumb { height: 202px; }
  .home-news-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-news-card { min-height: 0; }
}

@media (max-width: 767px) {
  .home-hero { padding-top: 150px; }
  .home-hero-copy { gap: 20px; }
  .home-hero-copy .jnp-lede { font-size: 18px; line-height: 29px; }
  .home-hero-video { aspect-ratio: 4 / 5; border-radius: 14px 14px 0 0; }
  .home-hero-video-cap { font-size: 11px; padding: 0 16px; }
  .home-teaser { padding-bottom: 56px; }
  .home-teaser-row { padding-top: 40px; }
  .home-stats { padding: 64px 0; }
  .home-stat .jnp-stat-fig { font-size: 40px; line-height: 44px; }
  .home-mission, .home-road, .home-fights, .home-media, .home-latest { padding: 64px 0; }
  .home-mission-photo { height: 280px; border-radius: 12px; }
  .home-mission-h { font-size: 26px; line-height: 32px; }
  .home-road-h, .home-h2-48, .home-h2-44 { font-size: 30px; line-height: 36px; }
  .home-road-lede { font-size: 17px; line-height: 28px; }
  .home-road-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-road-photo { height: 260px; border-radius: 12px; }
  .home-fight { gap: 18px; padding-top: 22px; }
  .home-fight-num { width: 36px; font-size: 18px; }
  .home-fight-h { font-size: 22px; line-height: 28px; }
  .home-fight-p { font-size: 16px; line-height: 26px; }
  .home-carousel-arrows { display: none; }
  .home-video, .home-video-thumb { width: 300px; }
  .home-video-thumb { height: 169px; border-radius: 12px; }
  .home-video-title { font-size: 17px; line-height: 24px; }
  .home-news-card { padding: 24px 24px 26px; }
  .home-news-title { font-size: 20px; line-height: 26px; }
}
