/**
 * sinopak/projects-band block styles
 *
 * Prototype: sinopak-homepage-premium-h5.html #projects .dark /
 * .projects-grid / .project-evidence.about-proof / .project-visual /
 * .about-video / .play-button / .project-stamp / .about-list
 * (base rules merged with the "impeccable polish pass" overrides).
 * Breakpoints: 1180 / 760 (prototype @media breaks, no new ones).
 */
@layer spk-block {
  .spk-x-projects-band {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 5.4vw, 86px) 0;
    color: #fff;
    background:
      radial-gradient(circle at 86% 18%, rgba(23, 183, 216, 0.2), transparent 32%),
      linear-gradient(118deg, #07345f 0%, #075582 58%, #06284d 100%);
  }
  .spk-x-projects-band::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.64;
    background:
      linear-gradient(112deg, transparent 0 34%, rgba(255, 255, 255, 0.052) 34% 42%, transparent 42% 100%),
      radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.055), transparent 30%);
  }
  .spk-x-projects-band > .spk-x-wrap {
    position: relative;
    z-index: 1;
  }

  .spk-x-projects-band__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 3vw, 42px);
    align-items: start;
  }

  /* ── Section head ── */
  .spk-x-projects-band__head {
    align-self: start;
    max-width: 1180px;
    margin-bottom: 0;
  }
  .spk-x-projects-band .spk-x-eyebrow {
    display: block;
    margin: 0 0 18px;
    color: #9beafb;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.16em;
  }
  .spk-x-projects-band .spk-x-section-title {
    max-width: 860px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(31px, 3vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
  }
  .spk-x-projects-band__head .spk-x-projects-band__text {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.48;
  }
  .spk-x-projects-band__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .spk-x-projects-band__link:hover {
    color: #9beafb;
  }

  /* ── Evidence panel: absolute visual + glass fact list ── */
  .spk-x-projects-band__evidence {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
  }
  .spk-x-projects-band__visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .spk-x-projects-band__visual img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.05);
  }
  .spk-x-projects-band__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(2, 23, 51, 0.64), rgba(2, 23, 51, 0.12) 46%, rgba(2, 23, 51, 0.6));
  }
  .spk-x-projects-band__visual::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.13), transparent 28%);
  }

  .spk-x-projects-band__play {
    position: absolute;
    top: 45%;
    left: 37%;
    z-index: 4;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(155, 234, 251, 0.62);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(8, 126, 174, 0.72), rgba(6, 54, 107, 0.38));
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 20px 46px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px) saturate(1.25);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .spk-x-projects-band__play::before {
    position: absolute;
    inset: -9px;
    content: "";
    border: 1px solid rgba(155, 234, 251, 0.28);
    border-radius: inherit;
  }
  .spk-x-projects-band__play svg {
    width: 25px;
    height: 25px;
    margin-left: 4px;
    fill: currentColor;
    filter: drop-shadow(0 4px 12px rgba(2, 23, 51, 0.18));
  }
  .spk-x-projects-band__play:hover {
    border-color: rgba(155, 234, 251, 0.92);
    transform: translate(-50%, -50%) scale(1.05);
    background: linear-gradient(145deg, rgba(8, 168, 210, 0.82), rgba(6, 54, 107, 0.52));
  }

  .spk-x-video-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none;
    place-items: center;
    padding: 24px;
  }
  .spk-x-video-modal.spk-x-open {
    display: grid;
  }
  .spk-x-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 23, 51, 0.82);
  }
  .spk-x-video-modal__panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 96vw);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 32px 88px rgba(0, 0, 0, 0.5);
  }
  .spk-x-video-modal__panel iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .spk-x-video-modal__close {
    position: absolute;
    top: -46px;
    right: -6px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
  }

  .spk-x-projects-band__stamp {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 12px 16px;
    background: rgba(2, 23, 51, 0.5);
    backdrop-filter: blur(18px) saturate(1.15);
  }
  .spk-x-projects-band__stamp span {
    display: block;
    color: #9beafb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(2, 23, 51, 0.2);
  }
  .spk-x-projects-band__stamp strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: clamp(20px, 1.55vw, 26px);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .spk-x-projects-band__list {
    position: relative;
    z-index: 3;
    width: min(360px, 34%);
    margin-left: auto;
    align-self: stretch;
    display: grid;
    align-content: center;
    padding: 16px 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.09));
    backdrop-filter: blur(20px) saturate(1.25);
  }
  .spk-x-projects-band__list article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 0;
  }
  .spk-x-projects-band__list article:last-child {
    border-bottom: 0;
  }
  .spk-x-projects-band__list span {
    color: #9beafb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(2, 23, 51, 0.2);
  }
  .spk-x-projects-band__list strong {
    display: block;
    color: #fff;
    font-size: clamp(21px, 1.48vw, 27px);
    letter-spacing: -0.04em;
  }
  .spk-x-projects-band__list p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.48;
  }
}

@layer spk-responsive {
  @media (max-width: 1180px) {
    .spk-x-projects-band__evidence {
      min-height: 560px;
    }
    .spk-x-projects-band__list {
      width: min(100%, 520px);
      margin: auto 28px 28px auto;
      align-self: end;
    }
  }
  @media (max-width: 760px) {
    .spk-x-projects-band__evidence {
      min-height: 520px;
    }
    .spk-x-projects-band__list {
      width: auto;
      margin: auto 18px 18px;
      padding: 22px;
    }
  }

  @media (max-width: 760px) {
    .spk-x-video-modal {
      padding: 12px;
    }
    .spk-x-video-modal__close {
      top: -40px;
      right: 2px;
    }
  }
}
