/* ============================================================
   HERO BOLD V2 — Modern Creative Agency Direction
   Direction by ฝ้าย (CD) | Build by ปูเป้
   Date: 2026-05-04
   Loaded AFTER styles.css → overrides hero classes
   ============================================================ */

/* Reduced motion — disable infinite hero animations */
@media (prefers-reduced-motion: reduce) {
  .hg-nametag,
  .hg-ticket,
  .hg-mood,
  .hg-star-big,
  .hg-star-sm {
    animation: none !important;
  }
  .hero-graphics > * {
    will-change: auto !important;
  }
}

/* === Section overrides === */
.hero-bold {
  padding: 140px 32px 100px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bold .hero-inner {
  max-width: 1280px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Hide old sticker wall completely in v2 */
.hero-bold .stickerwall {
  display: none !important;
}

/* === Stylized graphics layer === */
.hero-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero-graphics > * {
  position: absolute;
  will-change: transform;
}

/* Connection lines (subtle dashed) */
.hg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}
.hg-lines path {
  stroke: var(--purple);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

/* === Name tag badge (top-left, yellow) === */
.hg-nametag {
  left: 4%;
  top: 14%;
  background: var(--yellow);
  color: var(--ink);
  padding: 14px 22px 16px;
  border-radius: 12px;
  transform: rotate(5deg);
  box-shadow:
    0 14px 32px -8px rgba(255, 229, 0, 0.4),
    0 4px 0 rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-family: "Space Mono", monospace;
  min-width: 9rem;
  animation: hgFloat 9s ease-in-out infinite;
}
.hg-nametag::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 0 0 3.5px var(--yellow),
    0 2px 4px rgba(0, 0, 0, 0.3);
}
.ng-line {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 700;
}
.ng-name {
  display: block;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

/* === Event ticket (top-right, pink) === */
.hg-ticket {
  right: 6%;
  top: 11%;
  width: 11.5rem;
  background: linear-gradient(135deg, var(--pink), #ff5a96);
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  transform: rotate(-8deg);
  box-shadow:
    0 16px 36px -10px rgba(255, 45, 120, 0.5),
    0 4px 0 rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: hgFloat 11s ease-in-out infinite reverse;
}
.hg-ticket .tk-perf {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.hg-ticket .tk-perf::before,
.hg-ticket .tk-perf::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}
.hg-ticket .tk-perf::before {
  left: -15px;
}
.hg-ticket .tk-perf::after {
  right: -15px;
}
.hg-ticket .tk-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: "Space Mono", monospace;
}
.hg-ticket .tk-key {
  font-size: 0.55rem;
  opacity: 0.78;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.hg-ticket .tk-val {
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: -0.01em;
}

/* === Pill location (top-right corner under nav, purple) === */
.hg-pill {
  right: 32px;
  top: 88px;
  background: var(--purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 10px 24px -6px rgba(168, 85, 247, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hg-pill .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

/* === Big star burst (left center, purple) === */
.hg-star-big {
  left: 2%;
  top: 46%;
  width: 5rem;
  height: 5rem;
  fill: var(--purple);
  animation: hgSpin 22s linear infinite;
  filter: drop-shadow(0 10px 18px rgba(168, 85, 247, 0.45));
}

/* === Small stars (yellow accents) === */
.hg-star-sm {
  position: absolute;
  animation: hgFloat 7s ease-in-out infinite;
}
.hg-star-y1 {
  right: 8%;
  top: 60%;
  width: 2.1rem;
  fill: var(--yellow);
  filter: drop-shadow(0 4px 8px rgba(255, 229, 0, 0.4));
}
.hg-star-y2 {
  right: 28%;
  bottom: 18%;
  width: 1.7rem;
  fill: var(--yellow);
  transform: rotate(20deg);
  animation-duration: 5.5s;
  filter: drop-shadow(0 4px 8px rgba(255, 229, 0, 0.4));
}
.hg-star-c {
  left: 38%;
  top: 8%;
  width: 1.4rem;
  fill: var(--cyan);
  animation-duration: 6.5s;
  filter: drop-shadow(0 3px 6px rgba(0, 212, 255, 0.4));
}

/* === Mood card (bottom-left, off-white) === */
.hg-mood {
  left: 5.5%;
  bottom: 18%;
  width: 9rem;
  background: #f5f4f0;
  color: var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  transform: rotate(3deg);
  box-shadow:
    0 18px 38px -10px rgba(0, 0, 0, 0.5),
    0 4px 0 rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-family: "Space Mono", monospace;
  animation: hgFloat 10s ease-in-out infinite;
}
.mc-key {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
}
.mc-line {
  height: 5px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  margin-top: 8px;
}
.mc-line.short {
  width: 60%;
}
.mc-tag {
  font-size: 0.7rem;
  margin-top: 11px;
  font-weight: 700;
  color: var(--ink);
}

/* === Avatar block (bottom-left, signature) === */
.hg-avatar {
  left: 6%;
  bottom: 4.5%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 18rem;
}
.hg-avatar .av-circle {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--ink);
  border: 2.5px solid var(--pink);
  display: grid;
  place-items: center;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--pink);
  flex-shrink: 0;
  box-shadow: 0 8px 20px -6px rgba(255, 45, 120, 0.4);
}
.av-tag {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}
.av-tag strong {
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   HERO TYPOGRAPHY — bold display, Kanit Black
   ============================================================ */
.hero-bold h1.hb-headline {
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 8.5vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 28px 0;
  color: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-bold h1.hb-headline .line {
  display: block;
  margin: 0 0 0.04em;
}
.hero-bold h1.hb-headline .sub {
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  font-weight: 400;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 30px;
  opacity: 0.6;
  line-height: 1.4;
}

/* === Highlight box (pink marker over keyword) === */
.hl-box {
  display: inline-block;
  position: relative;
  background: var(--pink);
  color: #fff;
  padding: 0.02em 0.26em;
  border-radius: 0.18em;
  margin: 0 0.03em;
  transform: skew(-4deg);
  box-shadow:
    0 0.12em 0 rgba(0, 0, 0, 0.2),
    0 0.04em 0.12em rgba(255, 45, 120, 0.3);
}
.hl-box > span {
  display: inline-block;
  transform: skew(4deg);
}

/* === Pink solid word (e.g. "เล่นมัน") === */
.hero-bold h1.hb-headline .hb-pink {
  color: var(--pink);
}

/* === Outline white line (e.g. "make it slap.") === */
.hero-bold h1.hb-headline .hb-stroke-line {
  -webkit-text-stroke: 2px #fff;
  color: transparent;
}

/* === Eyebrow override (pink + dashes around tag) === */
.hero-bold .tag.hb-eyebrow {
  color: var(--pink);
  letter-spacing: 0.18em;
  font-size: 11px;
  margin-bottom: 24px;
}

/* === Yellow accent badge inline === */
.hb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 8px 18px -4px rgba(255, 229, 0, 0.5);
  vertical-align: middle;
  font-family: "Space Mono", monospace;
}

/* === CTA row tweaks === */
.hero-bold .cta-row {
  margin-top: 42px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes hgFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--_rot, 0deg));
  }
  50% {
    transform: translateY(-9px) rotate(var(--_rot, 0deg));
  }
}
@keyframes hgSpin {
  to {
    transform: rotate(360deg);
  }
}
.hg-nametag {
  --_rot: 5deg;
}
.hg-ticket {
  --_rot: -8deg;
}
.hg-mood {
  --_rot: 3deg;
}
.hg-star-y1 {
  --_rot: 0deg;
}
.hg-star-y2 {
  --_rot: 20deg;
}
.hg-star-c {
  --_rot: -12deg;
}

/* Highlight box (static visible — no entrance animation for now) */
/* Animation can be added later once base render confirmed */

/* ============================================================
   MOBILE — reduce density, scale typography
   ============================================================ */
@media (max-width: 900px) {
  .hero-bold {
    padding: 110px 20px 70px;
  }
  .hero-bold h1.hb-headline {
    font-size: clamp(2.2rem, 10.5vw, 3.8rem);
    letter-spacing: -0.025em;
    line-height: 1;
  }
  .hero-bold h1.hb-headline .sub {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    margin-top: 20px;
    line-height: 1.5;
  }
  .hb-badge {
    font-size: 0.55rem;
    padding: 4px 10px;
    margin-left: 4px;
  }

  /* On tablet: simplify graphics — hide mood + avatar + 2 stars */
  .hg-pill,
  .hg-star-c,
  .hg-star-y2,
  .hg-mood,
  .hg-avatar {
    display: none;
  }
  .hg-star-big {
    width: 3rem;
    left: -1%;
    top: 38%;
    opacity: 0.7;
  }
  .hg-star-y1 {
    right: 5%;
    top: 62%;
    width: 1.4rem;
  }
  .hg-nametag {
    left: 3%;
    top: 10%;
    padding: 8px 12px;
    min-width: 6.5rem;
  }
  .hg-nametag .ng-name {
    font-size: 1rem;
  }
  .hg-nametag .ng-line {
    font-size: 0.5rem;
  }
  .hg-ticket {
    right: 3%;
    top: 9%;
    width: 7.2rem;
    padding: 10px 12px;
  }
  .hg-ticket .tk-val {
    font-size: 0.7rem;
  }
  .hg-ticket .tk-perf::before,
  .hg-ticket .tk-perf::after {
    display: none;
  }
  .hg-lines {
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  .hero-bold {
    padding: 140px 16px 60px;
    overflow-x: hidden;
  }
  .hero-bold h1.hb-headline {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    max-width: 100%;
    line-height: 1.06;
  }
  .hero-bold h1.hb-headline .line {
    margin-bottom: 0.1em;
  }
  .hero-bold h1.hb-headline .sub {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    margin-top: 18px;
    display: block;
    line-height: 1.6;
    padding: 0 8px;
  }
  .hb-badge {
    margin-left: 0;
    margin-top: 8px;
    font-size: 0.5rem;
    display: inline-block;
  }
  .lede {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    padding: 0 4px;
  }
  .hl-box {
    padding: 0.02em 0.18em;
    border-radius: 0.14em;
    transform: skew(-3deg);
  }
  .hero-bold h1.hb-headline .hb-stroke-line {
    -webkit-text-stroke: 1.2px #fff;
  }

  /* Position graphics below navbar (navbar = ~64px tall) */
  .hg-nametag {
    left: 3%;
    top: 78px;
    padding: 6px 10px;
    min-width: 5.2rem;
  }
  .hg-nametag .ng-name {
    font-size: 0.85rem;
  }
  .hg-nametag .ng-line {
    font-size: 0.45rem;
  }
  .hg-nametag::before {
    width: 8px;
    height: 8px;
    top: -5px;
  }
  .hg-ticket {
    right: 3%;
    top: 78px;
    width: 5.8rem;
    padding: 7px 10px;
  }
  .hg-ticket .tk-key {
    font-size: 0.46rem;
  }
  .hg-ticket .tk-val {
    font-size: 0.6rem;
  }
  .hg-star-big {
    width: 2rem;
    top: 48%;
    left: -2%;
    opacity: 0.45;
  }
  .hg-star-y1 {
    right: 4%;
    top: 68%;
    width: 1.1rem;
  }
  .hg-lines {
    display: none;
  }
  .scroll-hint {
    font-size: 0.55rem;
  }
}

/* Hide v2 badge on mobile (avoids overlap with bottom content) — desktop only */
@media (max-width: 600px) {
  .v2-flag {
    display: none;
  }
}
