/**
 * ===== Root tokens =====
 *
 * @format
 */

.navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
:root {
  --padL: 0.8vw;
  --padR: 4.2vw;
  --gap: 3vw;

  --h2: clamp(26px, 3.9vw, 50px);
  --p: clamp(16px, 1.1vw, 18px);

  --btn-size: 53px; /* desktop button */
  --btn-size-m: 40px; /* mobile button */
  --mobile-pad: 20px; /* mobile side padding */

  /* Trusted-by */
  --tb-bg: #fff;
  --tb-gap-d: 72px; /* desktop visual gap */
  --tb-gap-m: 40px; /* mobile gap between logos */
  --tb-logo-h-d: 32px; /* desktop logo height */
  --tb-logo-h-m: 26px; /* mobile logo height */
  --tb-auto-pps: 35; /* mobile auto-scroll px/sec (0 disables) */
  --tb-inertia: 0.7; /* 0.90–0.97 (higher = longer glide) */
}

/* Page basics (keep minimal to avoid duplicating ../style.css) */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  width: 100vw;
  overflow-x: hidden;
}
a {
  text-decoration: none;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 100 900; /* variable font range */
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  background: #fff;
}

/* ===== FULL PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.page-loader__spinner {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffffff;
  box-sizing: border-box;
  animation: dwSpin 0.9s linear infinite;
}
@keyframes dwSpin {
  to {
    transform: rotate(360deg);
  }
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===== SECTION 1: About band header ===== */
.about-band {
  margin-top: 11.3vh;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14vh;
}
.about-band__title {
  margin: 0;
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #11cdd4;
}
.thumb-1 {
  display: none;
  background: #000;
  width: 100vw;
  height: 2vh;
  margin: 1.5vh auto 0;
}
.about-content {
  max-width: 1200px;
  margin: 4vh auto;
  padding: 0 2rem;
}
@media (max-width: 980px) {
  .about-band {
    margin-top: 9.5vh;
    height: 10vh;
  }
  .about-band__title {
    font-size: 31px;
  }
  .thumb-1 {
    height: 1vh;
    margin: 1vh auto 0;
  }
}

/* ===== SECTION 2: Intro + Video panel ===== */
.pre-intro-wrap {
  padding: 0 var(--padR) 0 var(--padL);
}
.pre-intro {
  max-width: 980px;
  margin: clamp(7.5vh, 6vw, 72px) auto;
  text-align: center;
  font-weight: 400;
}
.pre-intro p {
  margin: 0 0 12px 0;
  color: #000;
}
.pre-intro .lead {
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.6;
}
.pre-intro .sub {
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.8;
}

.mv-wrap {
  width: 100vw;
  margin: clamp(9vh, 8vh, 8vh) auto;
  padding: 0 var(--padR) 0 var(--padL);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6vw;
}
@media (min-width: 1024px) {
  .mv-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
  }
}

.video-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 74vh;
  max-height: 900px;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) {
  .video-panel {
    width: 57%;
  }
}
.video-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* button-only control */
}

.play-pin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(10px, 2vw, 18px);
  pointer-events: none; /* button takes events */
}
.video-ctl {
  position: absolute;
  bottom: 12px;
  right: 12px;
  pointer-events: auto;
  appearance: none;
  border: none;
  cursor: pointer;
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: none;
}
.video-ctl svg {
  width: 22px;
  height: 22px;
  display: none;
  fill: #000;
}
.video-panel:not(.is-playing) .video-ctl {
  background: #fff;
}
.video-panel:not(.is-playing) #iconPlay {
  display: block;
}
.video-panel.is-playing #iconPause {
  display: block;
}

.mv-col {
  text-align: center;
}
.mv-col h2 {
  font-size: 51px;
  font-weight: 1000;
  line-height: 1.12;
  margin: 0 0 40px;
}
.mv-col p {
  margin: 0 auto 12px;
  max-width: 980px;
  font-size: var(--p);
  line-height: 1.8;
  color: #222;
}
.mv-block + .mv-block {
  margin-top: clamp(36px, 8vh, 100px);
}

@media (max-width: 1023.98px) {
  .pre-intro-wrap {
    padding: 0 var(--mobile-pad);
  }
  .mv-wrap {
    margin-bottom: 2vh;
    padding: 0 var(--mobile-pad);
    gap: 6vh;
  }
  .pre-intro {
    text-align: left;
  }
  .pre-intro .lead,
  .pre-intro .sub {
    text-align: center;
  }

  .video-panel {
    width: 100%;
    height: 50vh;
    margin: 0;
  }
  .video-ctl {
    width: var(--btn-size-m);
    height: var(--btn-size-m);
  }
  .video-ctl svg {
    width: 14px;
    height: 14px;
  }

  .mv-col,
  .mv-col h2 {
    font-size: 29px;
    text-align: left;
    margin: 0 0 24px;
  }
  .mv-block + .mv-block {
    margin-top: 28px;
  }
  .mv-col p {
    margin: 0 0 12px;
    max-width: 100%;
  }
}

/* ===== SECTION 3: Trusted-by (desktop row + seamless draggable mobile loop) ===== */
.trusted-by {
  padding: 64px 0;
  background: var(--tb-bg);
}

.trusted-by h2 {
  margin: 0 2vw;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* border-top: 1px solid #bfbfbf; */

  padding: 3.5vw 0;
  font-size: 20px;
  font-weight: normal;
}

.tb-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-inline: 2vw;
}

/* Desktop row */
.tb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: var(--tb-gap-d);
  flex-wrap: nowrap;
}
.tb-list img {
  height: var(--tb-logo-h-d);
  width: auto;
  display: block;
  filter: grayscale(100%) opacity(0.9);
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.tb-list img:hover {
  filter: none;
  opacity: 1;
}

/* Mobile marquee */
.tb-marquee {
  display: none;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  min-height: calc(var(--tb-logo-h-m) + 16px);
}
.tb-marquee::before,
.tb-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 1;
  pointer-events: none;
}
.tb-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--tb-bg), transparent);
}
.tb-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--tb-bg), transparent);
}

.tb-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  cursor: grab;
  position: relative;
  z-index: 0;
}
.tb-track.dragging {
  cursor: grabbing;
}

.tb-seg {
  display: flex;
  align-items: center;
}
.tb-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--tb-gap-m);
}
.tb-item:last-child {
  margin-right: var(--tb-gap-m);
}
.tb-item img {
  height: var(--tb-logo-h-m);
  width: auto;
  display: block;
  filter: grayscale(100%) opacity(0.9);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tb-auto-pps: 0;
  }
}
@media (max-width: 980px) {
  .tb-wrap {
    margin-bottom: 2vh;
  }
  .trusted-by {
    padding: 0;
  }

  .trusted-by h2 {
    /* margin: 0 2vw; */
    padding: 4vh 0;

    font-size: 16px;
    font-weight: 500;
  }

  .tb-list {
    display: none;
  }
  .tb-marquee {
    display: block;
  }
}
