/* Verant Studio — Copper Journey Refinement V1
   Desktop/tablet-only visual refinement (651px+).
   The existing homepage.js journey, native 8-step details, scroll behavior,
   and the complete mobile Orbit timeline (<=650px) are intentionally untouched.
   No typography, hero, contact, or global component selectors. */

@media screen and (min-width: 651px) {
  .home-page #jak-pracuji.home-journey {
    --journey-refinement-amber: #efaf80;
    --journey-refinement-ink: #fff7f0;
    --journey-refinement-muted: #dcc6b8;
    border: 1px solid rgba(231, 172, 123, .18);
    background:
      radial-gradient(ellipse 52% 43% at 96% -7%, rgba(214, 113, 61, .23), transparent 79%),
      radial-gradient(ellipse 40% 47% at -8% 108%, rgba(156, 83, 49, .17), transparent 81%),
      linear-gradient(145deg, #2d211c 0%, #261c19 55%, #221a18 100%);
    box-shadow: 0 33px 84px rgba(56, 32, 20, .23), inset 0 1px 0 rgba(255,255,255,.035);
  }

  /* Maintain the existing typography and layout; improve dark-surface contrast. */
  .home-page #jak-pracuji.home-journey .home-vf-process-intro {
    position: relative;
    z-index: 2;
    margin-bottom: clamp(31px, 3.8vw, 48px);
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-intro .home-section-kicker {
    color: #f0b28a;
    letter-spacing: .14em;
    font-size: .76rem;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-intro h2 {
    color: var(--journey-refinement-ink);
    max-width: 780px;
    margin: 14px auto 19px;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.45rem, 3.9vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-intro h2 em {
    color: #eca271;
    font-weight: 400;
    font-style: italic;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-intro > p:last-child {
    max-width: 700px;
    color: var(--journey-refinement-muted);
    font-size: clamp(.99rem, 1.3vw, 1.13rem);
    line-height: 1.7;
  }

  /* Four phases — coherent copper cards, not white cards on a dark backdrop. */
  .home-page #jak-pracuji.home-journey .home-vf-process-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    max-width: 1170px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.1vw, 17px);
    align-items: stretch;
    padding: 0 8px;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-grid > article {
    position: relative;
    min-width: 0;
    min-height: 218px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.2vw, 28px) clamp(17px, 1.9vw, 25px);
    overflow: visible;
    border: 1px solid rgba(236, 188, 154, .22);
    border-radius: 22px;
    background:
      radial-gradient(ellipse 90% 48% at 90% 0%, rgba(234, 143, 84, .10), transparent 78%),
      linear-gradient(155deg, rgba(255,255,255,.085), rgba(255,255,255,.033));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 15px 37px rgba(12, 6, 5, .12);
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-grid > article::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 100%;
    width: clamp(10px, 1.1vw, 17px);
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 161, 105, .72), rgba(242, 161, 105, .22));
    pointer-events: none;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-grid > article:last-child::after {
    display: none;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-grid > article > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    margin: 0 0 25px;
    padding: 0;
    border: 1px solid rgba(238, 159, 108, .48);
    border-radius: 50%;
    background: rgba(224, 115, 62, .18);
    color: #ffc092;
    box-shadow: 0 0 0 5px rgba(227, 133, 76, .07), inset 0 1px 0 rgba(255,255,255,.07);
    font: 800 .78rem/1 "Barlow", sans-serif;
    letter-spacing: .035em;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-grid > article h3 {
    margin: 0 0 13px !important;
    padding: 0;
    color: #fff4eb !important;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.22rem, 1.68vw, 1.65rem) !important;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.015em;
    text-wrap: balance;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-grid > article p {
    margin: 0;
    color: #dcc8bb;
    font-size: clamp(.86rem, 1.05vw, .97rem);
    font-weight: 400;
    line-height: 1.56;
  }

  /* Closing takeaway: visually bridges the summary to the detailed timeline. */
  .home-page #jak-pracuji.home-journey .home-vf-process-conclusion {
    max-width: 730px;
    box-sizing: border-box;
    margin: 31px auto 26px !important;
    padding: 0 clamp(14px, 2vw, 28px);
    color: #e0c9b9;
    font-size: clamp(.98rem, 1.12vw, 1.08rem);
    line-height: 1.65;
    text-align: center;
  }

  /* Keep native <details> functionality: improve its visibility and focus. */
  .home-page #jak-pracuji.home-journey .home-vf-process-details {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 15px;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    margin: 0 auto;
    padding: 13px 25px;
    border: 1px solid rgba(244, 180, 135, .51);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(241, 152, 91, .21), rgba(218, 116, 62, .10));
    color: #ffe0c5;
    box-shadow: 0 12px 30px rgba(17, 9, 7, .15), inset 0 1px 0 rgba(255,255,255,.06);
    font: 800 .94rem/1.35 "Barlow", sans-serif;
    cursor: pointer;
    text-align: center;
    text-wrap: balance;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details > summary::-webkit-details-marker {
    display: none;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details > summary::marker {
    content: "";
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details > summary span {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid rgba(255, 205, 169, .30);
    border-radius: 50%;
    color: #ffcca6;
    font-size: 1.3rem;
    line-height: 1;
    transition: transform .22s ease, background .22s ease;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details[open] > summary {
    margin-bottom: 38px;
    border-color: rgba(247, 188, 143, .76);
    background: rgba(226, 119, 64, .25);
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details[open] > summary span {
    transform: rotate(45deg);
    background: rgba(246, 167, 113, .12);
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details > summary:focus-visible {
    outline: 3px solid #ffe0b9;
    outline-offset: 5px;
  }
  .home-page #jak-pracuji.home-journey .home-vf-process-details .home-journey__track {
    margin-top: 55px;
  }

  @media (hover: hover) and (pointer: fine) {
    .home-page #jak-pracuji.home-journey .home-vf-process-grid > article:hover {
      border-color: rgba(241, 167, 115, .38);
      background: linear-gradient(150deg, rgba(255,255,255,.11), rgba(241,151,95,.055));
      box-shadow: 0 19px 39px rgba(12, 6, 5, .18), inset 0 1px rgba(255,255,255,.08);
    }
    .home-page #jak-pracuji.home-journey .home-vf-process-details > summary:hover {
      background: rgba(231, 133, 79, .27);
      border-color: rgba(250, 196, 155, .7);
    }
  }
  @media (max-width: 1020px) {
    .home-page #jak-pracuji.home-journey .home-vf-process-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 13px;
    }
    .home-page #jak-pracuji.home-journey .home-vf-process-grid > article {
      min-height: 196px;
    }
    .home-page #jak-pracuji.home-journey .home-vf-process-grid > article::after {
      display: none;
    }
    .home-page #jak-pracuji.home-journey .home-vf-process-grid > article h3 {
      font-size: clamp(1.25rem, 2.4vw, 1.6rem) !important;
    }
  }
}

/* Reduced-motion preference applies to this refinement only. */
@media screen and (min-width: 651px) and (prefers-reduced-motion: reduce) {
  .home-page #jak-pracuji.home-journey .home-vf-process-details > summary,
  .home-page #jak-pracuji.home-journey .home-vf-process-details > summary span {
    transition: none !important;
  }
}
