
:root { --bz-black: #000000; --bz-yellow: #FFD400; }
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bz-black); color:#f5f5f5;
  font-family:"Krungtherp","Krungthep","Krungthep UI","Oswald","Impact","Arial Black",system-ui,sans-serif; line-height:1.6; }
a { color:var(--bz-yellow); text-decoration:none; }
a:hover { opacity:.9; }
.container { max-width:1100px; margin:0 auto; padding:24px; }

.nav { position:sticky; top:0; z-index:1000; background:rgba(0,0,0,.85); backdrop-filter:blur(4px); border-bottom:1px solid rgba(255,212,0,.2);}
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:flex; align-items:center; gap:14px; font-weight:900; letter-spacing:1px; text-transform:uppercase; font-size:20px; }
.brand img { height:40px; width:auto; filter:drop-shadow(0 0 8px rgba(255,212,0,.25)); }
.menu { display:flex; gap:18px; flex-wrap:wrap; }
.menu a { padding:10px 12px; border-radius:10px; }
.menu a:hover, .menu a.active { background:rgba(255,212,0,.1); }

.hero { padding:90px 0 40px; background:radial-gradient(600px 300px at 70% 20%, rgba(255,212,0,.12), transparent 60%); border-bottom:1px solid rgba(255,212,0,.15); }
.hero h1 { font-size:clamp(36px,5vw,64px); margin:0 0 8px 0; color:#FFD400; text-shadow:0 0 20px rgba(255,212,0,.2); letter-spacing:.5px; }
.hero p { max-width:750px; opacity:.9; }
.cta { display:inline-block; margin-top:18px; padding:12px 18px; border-radius:12px; background:var(--bz-yellow); color:#121212; font-weight:800; letter-spacing:.3px; }

.section { padding:48px 0; }
.grid { display:grid; grid-template-columns:repeat(12,1fr); gap:20px; }
.col-12 { grid-column:span 12; } .col-6 { grid-column:span 6; } .col-4 { grid-column:span 4; }
@media (max-width:900px) { .col-6 { grid-column:span 12; } .col-4 { grid-column:span 6; } }
@media (max-width:600px) { .col-4 { grid-column:span 12; } }

.card { background:#0a0a0a; border:1px solid rgba(255,212,0,.15); border-radius:16px; padding:18px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.card img, .card video { width:100%; border-radius:10px; display:block; }

.footer { padding:40px 0; border-top:1px solid rgba(255,212,0,.15); font-size:14px; color:#bdbdbd; }

.form { display:grid; gap:14px; }
.form label { font-weight:700; color:#FFD400; }
.form input, .form select, .form textarea { background:#0f0f0f; border:1px solid rgba(255,212,0,.25); color:#f5f5f5; padding:12px 14px; border-radius:10px; }
.form input::placeholder, .form textarea::placeholder { color:#9e9e9e; }
.form button { background:var(--bz-yellow); color:#111; font-weight:900; border:none; padding:12px 16px; border-radius:12px; cursor:pointer; }
.form button:hover { filter:brightness(1.05); }

.badge { display:inline-block; background:rgba(255,212,0,.15); color:#FFD400; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,212,0,.25); font-weight:700; font-size:12px; letter-spacing:.4px; }
/* === Mobile Optimization Pack === */
img, video { max-width: 100%; height: auto; display: block; }

/* Keep logo + menu from overflowing; center on small screens */
.nav-inner { flex-wrap: wrap; row-gap: 10px; }
.menu { justify-content: center; gap: 12px; }

/* Container + sections: smaller gutters on phones */
@media (max-width: 900px) {
  .container { padding: 18px; }
  .hero { padding: 72px 0 32px; }
}
@media (max-width: 560px) {
  .container { padding: 14px; }
  .hero { padding: 56px 0 24px; background: none; }
}

/* Headings scale gracefully on small screens */
.hero h1 { font-size: clamp(28px, 8vw, 48px); }
h2 { font-size: clamp(20px, 5.5vw, 32px); }
h3 { font-size: clamp(18px, 4.8vw, 24px); }

/* Grid collapses to single column on phones */
@media (max-width: 900px) {
  .grid { gap: 16px; }
}
@media (max-width: 760px) {
  .col-6, .col-4, .col-12 { grid-column: span 12 !important; }
}

/* Cards: tighter padding on small screens */
.card { padding: clamp(14px, 3vw, 18px); }

/* ⚡ Simple square outline buttons (desktop + mobile) */
button,
.cta,
input[type="submit"] {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 20px;
  min-height: 44px;                        /* thumb-friendly */
  min-width: 120px;                        /* never too tiny */
  background: transparent;                 
  color: var(--bz-yellow);
  font-weight: 800;
  font-size: clamp(14px, 4vw, 18px);       /* scales with screen */
  letter-spacing: .3px;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--bz-yellow);
  border-radius: 0;                        /* rigid edges */
  transition: background .2s ease, color .2s ease, transform .15s ease;
  box-sizing: border-box;
}

/* Hover/active effect */
button:hover,
.cta:hover,
input[type="submit"]:hover {
  background: var(--bz-yellow);
  color: #111;
  transform: translateY(-2px);
}
button:active,
.cta:active,
input[type="submit"]:active {
  transform: translateY(0);
}

/* Responsive adjustments for very small screens */
@media (max-width: 600px) {
  button,
  .cta,
  input[type="submit"] {
    width: 100%;              /* full width on narrow screens */
    max-width: 100%;
  }
}


/* Forms: fields full width + comfy spacing */
.form { gap: 12px; }
.form input, .form select, .form textarea {
  width: 100%;
  font-size: 16px;                  /* prevents iOS zoom */
}
@media (max-width: 760px) {
  .form .grid > [class^="col-"] { grid-column: span 12 !important; }
}

/* Responsive video embed (use by wrapping <video> or <iframe> in .embed) */
.embed { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */ }
.embed > iframe,
.embed > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer: stack + center*
/* Hide-on-scroll header */
.nav {
  position: sticky; top: 0;
  transition: transform 1s ease;  /* smooth slide */
}
.nav.hide { transform: translateY(-100%); } /* slide up out of view */
/* Prevent horizontal scrolling on mobile */
html, body { width: 100%; overflow-x: hidden; }

/* Make sure children don’t force overflow */
.container, .grid { overflow-x: clip; }
[class^="col-"], [class*=" col-"] { min-width: 0; }

img, video, iframe { max-width: 100%; height: auto; display: block; }

/* Menus wrap safely on small screens */
.menu { flex-wrap: wrap; }

/* Optional: if something still spills, clamp any super-wide elements */
section, .card { max-width: 100%; }
/* ⚡ Zap buttons (outline + glow, desktop + mobile) */
button,
.cta,
input[type="submit"] {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 20px;
  min-height: 48px;                      /* comfortable tap size */
  min-width: 120px;                      /* no tiny buttons */
  background: transparent;
  color: var(--bz-yellow);
  font-weight: 800;
  font-size: clamp(14px, 4vw, 18px);     /* scales with screen */
  letter-spacing: .3px;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--bz-yellow);
  border-radius: 0;                      /* rigid edges */
  box-sizing: border-box;
  transition: transform .1s ease, box-shadow .1s ease, filter .1s ease;
}


/* Zap + glow on hover (desktop), focus (keyboard), and tap (mobile) */
button:hover,
button:focus,
button:active,
.cta:hover,
.cta:focus,
.cta:active,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active {
  animation: zap 0.45s ease-in-out;
  transform: scale(1.05);
  background: var(--bz-yellow);
  color: #111;
  box-shadow:
    0 0 12px var(--bz-yellow),
    0 0 28px var(--bz-yellow),
    0 0 44px var(--bz-yellow);
  outline: none; /* removes default focus outline */
}

/* Zap keyframes */
@keyframes zap {
  0%   { transform: scale(1) rotate(0);   filter: brightness(1);   }
  25%  { transform: scale(1.1) rotate(3deg);  filter: brightness(1.3); }
  50%  { transform: scale(0.96) rotate(-3deg); filter: brightness(0.85); }
  75%  { transform: scale(1.08) rotate(2deg); filter: brightness(1.2); }
  100% { transform: scale(1) rotate(0);   filter: brightness(1);   }
}

/* Mobile optimization: full-width buttons */
@media (max-width: 600px) {
  button,
  .cta,
  input[type="submit"] {
    width: 100%;
    max-width: 100%;
  }
}
.video-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: -1;
}
.video-background .video-foreground {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.video-background iframe {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}
/* === VHS TV GLOBAL === */
html, body {
  background: #000;                  /* deep black behind everything */
  overflow-x: hidden;                /* no sideways scroll */
}

/* Shell: fixed layers that sit above your site content */
.vhs-shell,
.vhs-overlay,
.vhs-bezel,
.vhs-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;              /* clicks pass through */
  z-index: 9990;
}

/* Subtle CRT curvature (content appears slightly bowed) */
@media (prefers-reduced-motion: no-preference) {
  body {
    transform: perspective(1200px) translateZ(0);
    transform-style: preserve-3d;
  }
}

/* Slight barrel distortion + soft blur to mimic glass */
@supports (filter: contrast(1)) {
  body {
    filter: contrast(1.03) saturate(1.05);
  }
}

/* —— SCANLINES + NOISE OVERLAY —— */
.vhs-overlay {
  z-index: 9992;
  background:
    /* scanlines */
    linear-gradient(rgba(0,0,0,0) 90%, rgba(0,0,0,0.15) 100%),
    /* dithery noise (data URI tiny png fallback below) */
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABb2f7xQAAAABJRU5ErkJggg==");
  background-size:
    100% 2px,          /* scanline thickness */
    2px 2px;           /* noise tile */
  opacity: .28;
  mix-blend-mode: multiply;
  animation: vhsNoise 6s linear infinite;
}

@keyframes vhsNoise {
  0%   { opacity: .22; }
  50%  { opacity: .30; }
  100% { opacity: .22; }
}

/* —— CHROMATIC ABERRATION (tiny RGB edge split on text) —— */
* {
  text-shadow:
    0 0 0 rgba(0,0,0,0),
    0.6px 0 rgba(255,0,80,0.12),
    -0.6px 0 rgba(0,180,255,0.12);
}

/* —— VIGNETTE / TV EDGE DARKEN —— */
.vhs-glow {
  z-index: 9991;
  background:
   
}

/* —— TV BEZEL (OPTIONAL IMAGE) —— */
/* Put a transparent PNG of a CRT frame in /assets/tv-frame.png for realism */
.vhs-bezel {
  z-index: 9993;
  background: center / contain no-repeat;
  /* If you have a PNG bezel frame, uncomment the next line: */
  /* background-image: url('/assets/tv-frame.png'); */
  /* Fallback “glass” look when no bezel image is used: */
  box-shadow:
    inset 0 0 120px rgba(0,0,0,0.65),
    inset 0 0 40px rgba(255,255,255,0.06);
  border: none;

  margin: 2vw;                       /* creates black bezel margins around content */
}

/* —— CONTENT SAFETY PADDING —— */
/* Make sure your existing header/footer aren’t tight against the bezel */
.container { max-width: 1100px; }
@media (max-width: 900px) {
  .container { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 560px) {
  .container { padding-left: 14px; padding-right: 14px; }
}

/* —— FLICKER ON PAGE LOAD (subtle) —— */
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: vhsBoot 800ms ease-out both;
  }
  @keyframes vhsBoot {
    0%   { filter: brightness(0.6) blur(1px); }
    30%  { filter: brightness(1.2) blur(0.6px); }
    60%  { filter: brightness(0.9) blur(0.2px); }
    100% { filter: brightness(1) blur(0); }
  }
}

/* —— MOBILE TWEAKS —— */
@media (max-width: 600px) {
  .vhs-bezel { margin: 3vw; border-radius: 10px; }
  .vhs-overlay { opacity: .22; background-size: 100% 2px, 3px 3px; } /* softer noise */
  * { text-shadow:
      0 0 0 rgba(0,0,0,0),
      0.45px 0 rgba(255,0,80,0.10),
      -0.45px 0 rgba(0,180,255,0.10);
  }
}

/* Respect accessibility settings */
@media (prefers-reduced-motion: reduce) {
  .vhs-overlay { animation: none; }
  body { animation: none; }
}
/* Kill the thin yellow lines */
.nav,
.hero,
.footer { border: none !important; }

.card { border: 0 !important; }                  /* optional: remove card outlines */
.section { border: 0 !important; }               /* in case any future sections add borders */

/* Also remove any faint separator shadows */
.nav { box-shadow: none !important; }
/* === Minimal VHS look (no extra HTML required) === */

/* Vignette / bezel glow */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  background:
    radial-gradient(120% 120% at 50% 50%,
      rgba(255,255,255,0.03) 0%,
      rgba(0,0,0,0.35) 60%,
      rgba(0,0,0,0.85) 100%);
  mix-blend-mode: multiply;
}

/* Optional scanlines + noise (keep subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9989;
  background:
    linear-gradient(rgba(0,0,0,0) 92%, rgba(0,0,0,0.18) 100%),
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABb2f7xQAAAABJRU5ErkJggg==");
  background-size: 100% 3px, 2px 2px; /* 3px spacing = softer lines */
  opacity: .14;                        /* keep very faint so no “yellow lines” look */
  mix-blend-mode: multiply;
}

/* Slight CRT pop without causing blur */
html, body { overflow-x: hidden; }
@supports (filter: contrast(1)) {
  body { filter: contrast(1.03) saturate(1.05); }
}

/* Respect accessibility */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Make header transparent */
.nav {
  background: transparent !important;
  box-shadow: none !important;   /* also kills faint line under header */
}
