:root {
  --bg: #f5f1ea;
  --bg-alt: #ebe6dc;
  --ink: #0e1116;
  --ink-soft: #2a2f38;
  --muted: #6b6f78;
  --red: #d7263d;
  --red-deep: #8e0d20;
  --blue: #14316b;
  --blue-deep: #0a1d47;
  --fb: #1877f2;
  --fb-dark: #0d5fc7;
  --line: rgba(14, 17, 22, 0.15);

  --pad-x: clamp(16px, 4vw, 40px);
  --hero-pad-x: clamp(24px, 4.5vw, 56px);
  --hero-pad-y: clamp(28px, 4vw, 44px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  font-family: "Anuphan", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  background-image:
    radial-gradient(1000px 700px at 85% -10%, rgba(215, 38, 61, 0.10), transparent 55%),
    radial-gradient(900px 650px at -10% 110%, rgba(20, 49, 107, 0.12), transparent 55%);
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14, 17, 22, 0.06) 1px, transparent 0);
  background-size: 22px 22px;
  z-index: 0;
  opacity: 0.6;
}

img { max-width: 100%; display: block; }

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(7px, 0.9vw, 10px) 0;
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid var(--ink);
  flex-shrink: 0;
}

.marquee--bottom {
  background: var(--red);
  color: #fff;
  border-top: 1px solid var(--red-deep);
  border-bottom: none;
  margin-top: auto;
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  will-change: transform;
}

.marquee__track--reverse { animation: scrollR 32s linear infinite; }

.marquee__item {
  font-family: "Bebas Neue", "Anuphan", sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  letter-spacing: 0.22em;
  font-weight: 400;
}

.marquee__star { font-size: 0.65rem; opacity: 0.6; }

@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes scrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 48px) var(--pad-x);
  width: 100%;
}

.big69 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(14rem, 42vw, 36rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(14, 17, 22, 0.07);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* side stamps */
.stamp {
  position: absolute;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}

.stamp--left { left: clamp(16px, 2.2vw, 32px); top: 50%; transform: translateY(-50%); }
.stamp--right { right: clamp(16px, 2.2vw, 32px); top: 50%; transform: translateY(-50%) rotate(180deg); }

.stamp__div { width: 1px; height: 24px; background: var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: var(--hero-pad-y) var(--hero-pad-x);
  box-shadow: 9px 9px 0 var(--ink);
  animation: pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pop {
  from { opacity: 0; transform: translate(-6px, -6px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(18px, 2.4vw, 24px);
  padding-bottom: clamp(14px, 1.8vw, 18px);
  border-bottom: 1px dashed var(--line);
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
}

.logo {
  width: clamp(54px, 7vw, 72px);
  height: clamp(54px, 7vw, 72px);
  object-fit: contain;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  letter-spacing: 0.2em;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}

.tag__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.2);
  animation: blink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ---------- mid ---------- */
.hero__mid {
  text-align: center;
  padding: clamp(6px, 1vw, 12px) 0 clamp(16px, 2.2vw, 22px);
}

.eyebrow {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  letter-spacing: 0.45em;
  color: var(--red);
  margin-bottom: clamp(12px, 1.6vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eyebrow span {
  display: inline-block;
  width: clamp(20px, 2.8vw, 26px);
  height: 1px;
  background: var(--red);
}

.heading {
  font-family: "Anuphan", sans-serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: clamp(14px, 2vw, 18px);
  display: flex;
  justify-content: center;
  gap: 0.22em;
  flex-wrap: wrap;
}

.heading__line {
  font-size: clamp(3rem, 9vw, 6.2rem);
  color: var(--ink);
}

.heading__line--outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--red);
  position: relative;
}

.heading__line--outline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.12em;
  height: 0.08em;
  background: var(--blue);
}

.accent-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: clamp(14px, 2vw, 18px);
}

.accent-bar span {
  display: block;
  height: 4px;
  border-radius: 1px;
}

.accent-bar span:nth-child(1) { width: clamp(28px, 3.6vw, 38px); background: var(--red); }
.accent-bar span:nth-child(2) { width: clamp(14px, 1.8vw, 18px); background: var(--ink); }
.accent-bar span:nth-child(3) { width: clamp(28px, 3.6vw, 38px); background: var(--blue); }

.subheading {
  font-family: "Anuphan", sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.subheading b {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}

/* ---------- bottom ---------- */
.hero__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: clamp(16px, 2.2vw, 20px);
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Anuphan", sans-serif;
  font-weight: 600;
  font-size: clamp(0.88rem, 1.3vw, 0.96rem);
  padding: 12px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.cta svg { width: 17px; height: 17px; flex-shrink: 0; }

.cta--primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  cursor: not-allowed;
  opacity: 0.95;
}

.cta--primary:disabled { pointer-events: none; }

.cta--fb {
  color: #fff;
  background: var(--fb);
  border-color: var(--fb-dark);
  box-shadow: 4px 4px 0 var(--ink);
}

.cta--fb:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.cta--fb:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.meta {
  list-style: none;
  display: flex;
  gap: clamp(16px, 2.4vw, 24px);
}

.meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta__k {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.65rem, 0.95vw, 0.74rem);
  letter-spacing: 0.25em;
  color: var(--muted);
}

.meta__v {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ---------- responsive breakpoints ---------- */

/* tablet */
@media (max-width: 900px) {
  .stamp { display: none; }
  .big69 { font-size: clamp(16rem, 50vw, 30rem); }
}

/* small tablet / large phone */
@media (max-width: 720px) {
  .hero { box-shadow: 6px 6px 0 var(--ink); }

  .hero__bot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .actions { flex-direction: column; gap: 8px; }
  .cta { width: 100%; padding: 11px 20px; }

  .meta {
    justify-content: space-between;
    width: 100%;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }
}

/* phone */
@media (max-width: 520px) {
  :root {
    --pad-x: 12px;
    --hero-pad-x: 18px;
    --hero-pad-y: 18px;
  }

  .marquee { padding: 5px 0; }
  .marquee__item { letter-spacing: 0.16em; font-size: 0.76rem; }
  .marquee__star { font-size: 0.6rem; }

  .stage { padding: 10px var(--pad-x); }

  .hero {
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  /* keep top row horizontal — saves a lot of vertical space */
  .hero__top {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .logo-wrap { padding: 4px; box-shadow: 2px 2px 0 var(--ink); }
  .logo { width: 40px; height: 40px; }

  .tag {
    font-size: 0.6rem;
    padding: 3px 8px;
    letter-spacing: 0.14em;
  }
  .tag__dot { width: 6px; height: 6px; }

  .hero__mid {
    padding: 2px 0 8px;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    gap: 8px;
    margin-bottom: 6px;
  }
  .eyebrow span { width: 14px; }

  .heading {
    gap: 0.18em;
    margin-bottom: 8px;
  }
  .heading__line { font-size: clamp(2.2rem, 11vw, 2.9rem); }
  .heading__line--outline { -webkit-text-stroke-width: 2px; }

  .accent-bar { margin-bottom: 8px; }
  .accent-bar span { height: 3px; }
  .accent-bar span:nth-child(1),
  .accent-bar span:nth-child(3) { width: 24px; }
  .accent-bar span:nth-child(2) { width: 12px; }

  .subheading {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .hero__bot {
    padding-top: 10px;
    gap: 8px;
  }

  .actions { gap: 6px; }
  .cta { padding: 9px 16px; font-size: 0.82rem; }
  .cta svg { width: 14px; height: 14px; }

  .meta { padding-top: 0; }
  .meta__k { font-size: 0.56rem; letter-spacing: 0.16em; }
  .meta__v { font-size: 0.84rem; }

  .big69 { opacity: 0.5; }
}

/* very small phone */
@media (max-width: 380px) {
  :root { --pad-x: 8px; --hero-pad-x: 14px; --hero-pad-y: 14px; }

  .marquee__item { letter-spacing: 0.1em; font-size: 0.7rem; }
  .marquee { padding: 4px 0; }

  .stage { padding: 6px var(--pad-x); }

  .logo { width: 36px; height: 36px; }
  .tag { font-size: 0.55rem; padding: 3px 7px; }

  .hero__top { margin-bottom: 10px; padding-bottom: 8px; }
  .hero__mid { padding: 0 0 6px; }
  .hero__bot { padding-top: 8px; }

  .heading__line { font-size: 2.2rem; }
  .accent-bar { margin-bottom: 6px; }

  .meta { gap: 6px; }
  .meta__v { font-size: 0.78rem; }
  .meta__k { font-size: 0.52rem; }

  .cta { padding: 8px 14px; font-size: 0.78rem; }

  .subheading { font-size: 0.8rem; line-height: 1.45; }
}

/* short height phones — final safety net */
@media (max-width: 520px) and (max-height: 700px) {
  :root { --hero-pad-y: 14px; }
  .stage { padding: 6px var(--pad-x); }
  .heading__line { font-size: 2.1rem; }
  .subheading { font-size: 0.8rem; line-height: 1.4; }
  .hero__top { margin-bottom: 8px; padding-bottom: 8px; }
  .hero__mid { padding: 0 0 6px; }
  .hero__bot { padding-top: 8px; }
  .logo { width: 38px; height: 38px; }
  .eyebrow { margin-bottom: 4px; }
  .accent-bar { margin-bottom: 6px; }
  .heading { margin-bottom: 6px; }
}

/* desktop wide */
@media (min-width: 1100px) {
  .hero { max-width: 760px; }
  .big69 { font-size: 36rem; }
}

@media (min-width: 1440px) {
  .hero { max-width: 800px; }
  :root { --hero-pad-y: 48px; --hero-pad-x: 60px; }
  .big69 { font-size: 42rem; }
}

/* short viewport — fit everything in view */
@media (max-height: 820px) and (min-width: 720px) {
  :root { --hero-pad-y: 30px; --hero-pad-x: 44px; }

  .stage { padding: 22px var(--pad-x); }

  .heading__line { font-size: clamp(2.6rem, 7vw, 5rem); }
  .heading { margin-bottom: 14px; }

  .hero__top { margin-bottom: 16px; padding-bottom: 14px; }
  .hero__mid { padding: 6px 0 14px; }
  .hero__bot { padding-top: 16px; }

  .eyebrow { margin-bottom: 10px; }
  .accent-bar { margin-bottom: 12px; }

  .logo { width: 60px; height: 60px; }
}

@media (max-height: 680px) and (min-width: 720px) {
  :root { --hero-pad-y: 22px; --hero-pad-x: 38px; }
  .stage { padding: 12px var(--pad-x); }
  .heading__line { font-size: clamp(2.2rem, 5.8vw, 3.8rem); }
  .subheading { font-size: 0.9rem; line-height: 1.55; }
  .logo { width: 50px; height: 50px; }
  .hero__top { margin-bottom: 12px; padding-bottom: 10px; }
  .hero__mid { padding: 2px 0 10px; }
  .hero__bot { padding-top: 12px; }
}

/* landscape phone */
@media (max-height: 520px) and (orientation: landscape) {
  .stage { padding: 16px var(--pad-x); }
  .heading__line { font-size: clamp(2rem, 6vw, 3.4rem); }
  .hero__top { margin-bottom: 12px; padding-bottom: 10px; }
  .hero__mid { padding: 4px 0 10px; }
  .hero__bot { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .tag__dot, .hero, .cta { animation: none; transition: none; }
  .cta--fb:hover { transform: none; }
}
