:root {
  --yellow: #ffd60a;
  --red: #e63946;
  --blue: #1d6fd8;
  --cyan: #38d6f5;
  --ink: #111014;
  --paper: #fffaf0;
  --white: #ffffff;
  --display: 'Bangers', 'Impact', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
html, body { overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .logo, .sfx, .burst span, .stats b, .num, .btn, .ticker b {
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Ben-Day dots ---------- */
.dots { position: relative; isolation: isolate; }
.dots::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(17,16,20,.16) 22%, transparent 24%);
  background-size: 14px 14px;
  pointer-events: none;
}

/* ---------- Magic canvas (sparkles) ---------- */
#sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: radial-gradient(circle at 30% 45%, #fff3a3 0%, var(--yellow) 45%, #ffb703 100%);
  border-bottom: 6px solid var(--ink);
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-video.ready { opacity: .92; }
.hero-video + .hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,250,240,.0) 0%, rgba(17,16,20,.15) 100%);
}

.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  position: relative; z-index: 5;
}
.logo { font-size: 34px; text-decoration: none; color: var(--ink); text-shadow: 3px 3px 0 var(--white); }
.logo span { color: var(--red); }
.logo.small { font-size: 22px; text-shadow: none; }
.nav-links { display: flex; gap: clamp(10px, 2.5vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-weight: 800; text-decoration: none; text-transform: uppercase; font-size: 14px;
  padding: 6px 12px; background: var(--white); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.nav-links a:hover { transform: translate(-2px,-2px) rotate(-2deg); box-shadow: 5px 5px 0 var(--ink); }

.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 8px 16px 40px; text-align: center;
  position: relative; z-index: 2;
}
.hero-inner .burst-hero { width: min(62vh, 86vw); max-width: 600px; }
/* Once the Kling video plays, it supplies the explosion; the CSS burst fades to just the word. */
.hero.has-video .burst-hero polygon { opacity: 0; transition: opacity 1.2s ease; }
.hero.has-video .burst-hero::after { display: none; }
.hero-line {
  margin: 0; font-size: clamp(18px, 2.4vw, 26px); font-weight: 600;
  background: var(--paper); border: 4px solid var(--ink); box-shadow: var(--shadow); padding: 8px 20px; transform: rotate(-1.5deg);
}
.hero-line b { color: var(--red); }
.scroll-cue {
  font-size: 22px; text-decoration: none; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); border-radius: 50%; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

.intro { max-width: 980px; }
.hero-copy {
  background: var(--paper); border: 5px solid var(--ink); box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3.5vw, 44px);
}
.hero-copy.reveal.in { transform: rotate(-1deg); }
.kicker { margin: 0 0 6px; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .1em; color: var(--red); }
.hello { margin: 0; font-weight: 800; font-size: 18px; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: .92; margin: 6px 0 16px; }
h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--ink); display: inline-block; }
.lede { font-size: clamp(16px, 1.6vw, 19px); margin: 0 0 22px; }

/* ---------- Bursts ---------- */
.burst { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; cursor: pointer; }
.burst svg { width: 100%; height: 100%; overflow: visible; }
.burst polygon { fill: var(--yellow); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; filter: drop-shadow(10px 10px 0 var(--ink)); }
.burst-hero polygon { fill: var(--red); }
.burst span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(64px, 11vw, 150px); color: var(--yellow);
  -webkit-text-stroke: 4px var(--ink); text-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-12deg);
}
.burst-name { max-width: 400px; }
.burst-name span { color: var(--red); font-size: clamp(54px, 7vw, 96px); }
.hero-inner .burst-hero span { font-size: clamp(80px, 13vw, 200px); }
.burst-hero { animation: pop-in .9s cubic-bezier(.2,1.6,.4,1) both, wobble 5s ease-in-out 1s infinite; }
.burst-hero svg { animation: spin 40s linear infinite; }
.burst-hero::after {
  content: ''; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,214,10,0) 70%);
  animation: glow 2.6s ease-in-out infinite;
}
.burst.punched { animation: punch .45s cubic-bezier(.2,1.8,.4,1); }

@keyframes pop-in { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes wobble { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { 0%,100% { opacity: .35; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.15); } }
@keyframes punch { 0% { transform: scale(1); } 30% { transform: scale(.82) rotate(-8deg); } 70% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1); } }

/* ---------- Buttons ---------- */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block; padding: 12px 24px; font-size: 24px; text-decoration: none;
  border: 4px solid var(--ink); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(4px,4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red); color: var(--white); text-shadow: 2px 2px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--yellow); }

/* ---------- Ticker ---------- */
.ticker {
  list-style: none; margin: 0; padding: 14px clamp(16px, 4vw, 48px);
  display: flex; gap: 12px 36px; flex-wrap: wrap; justify-content: center;
  background: var(--ink); color: var(--white); font-weight: 600; position: relative; z-index: 3;
}
.ticker b { color: var(--yellow); font-size: 30px; margin-right: 1px; vertical-align: -3px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) clamp(16px, 5vw, 72px); max-width: 1280px; margin: 0 auto; }
.section-yellow, .section-red { max-width: none; border-block: 6px solid var(--ink); }
.section-yellow { background: var(--yellow); }
.section-red { background: var(--red); color: var(--white); }
.section-yellow > *, .section-red > * { max-width: 1140px; margin-inline: auto; }
.section-title { text-align: center; margin: 0 0 40px; }
.section-title span {
  display: inline-block; font-size: clamp(44px, 6vw, 72px); padding: 4px 26px;
  background: var(--white); border: 5px solid var(--ink); box-shadow: var(--shadow); transform: rotate(-2deg);
}
.section-lede { text-align: center; font-size: 19px; max-width: 720px !important; margin: -12px auto 40px !important; }

/* ---------- Panels ---------- */
.panel {
  position: relative; background: var(--white); border: 5px solid var(--ink); box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.5vw, 44px); margin-bottom: 40px;
}
.panel h3 { font-size: clamp(40px, 5vw, 64px); margin: 0; line-height: 1; }
.panel .sub { font-weight: 800; font-size: 19px; margin: 6px 0 18px; }
.tag {
  display: inline-block; margin: 0 0 10px; padding: 3px 10px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: var(--yellow);
}
.panel-flagship { background: linear-gradient(135deg, #fff 0%, #fff7cc 100%); }
.panel-flagship h3 { font-size: clamp(56px, 8vw, 104px); color: var(--blue); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--ink); }
.panel-red { background: var(--red); color: var(--white); }
.panel-red .tag { background: var(--yellow); color: var(--ink); }
.panel-blue { background: var(--blue); color: var(--white); }
.panel-blue .tag { background: var(--yellow); color: var(--ink); }
.panel-ink { background: var(--ink); color: var(--white); }
.panel-ink .tag { background: var(--red); color: var(--white); }
.panel-ink h3 { color: var(--yellow); }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.panel-row > *, .grid-2 > * { min-width: 0; }
.panel h3 { overflow-wrap: anywhere; }
.panel-ink .grid-2 { margin-top: 28px; }
.panel-row .panel { margin-bottom: 40px; }

.sfx {
  position: absolute; top: -34px; right: -14px; z-index: 4;
  font-size: clamp(40px, 5vw, 64px); padding: 2px 18px; transform: rotate(8deg);
  border: 4px solid var(--ink); box-shadow: var(--shadow);
}
.sfx-yellow { background: var(--yellow); color: var(--red); -webkit-text-stroke: 1px var(--ink); }
.sfx-white { background: var(--white); color: var(--red); }
.sfx-red { background: var(--red); color: var(--yellow); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }
.align-start { align-items: start; }
.align-center { align-items: center; }

.caption-box { background: var(--yellow); border: 4px solid var(--ink); padding: 18px 22px; box-shadow: 5px 5px 0 var(--ink); }
.caption-box h4 { margin: 0 0 6px; font-size: 18px; text-transform: uppercase; }
.caption-box p { margin: 0; }
.solution { margin-top: 30px; }
.solution h4 { font-family: var(--display); font-size: 36px; margin: 0 0 10px; color: var(--red); letter-spacing: .04em; font-weight: 400; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: '★'; position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--red); color: var(--yellow); border: 2px solid var(--ink); font-size: 14px; transform: rotate(-8deg);
}
.checks.small { font-size: 15.5px; margin-top: 16px; }
.panel-red .checks li::before { background: var(--yellow); color: var(--red); }
.panel-blue .checks li::before { background: var(--yellow); color: var(--blue); }

.stats { list-style: none; padding: 0; margin: 30px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats.compact { grid-template-columns: repeat(3, 1fr); margin: 22px 0 14px; }
.stats li { background: var(--white); color: var(--ink); border: 4px solid var(--ink); padding: 12px; text-align: center; box-shadow: 4px 4px 0 var(--ink); }
.stats b { display: block; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--red); }
.stats span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.stack { font-size: 14px; font-weight: 600; opacity: .85; margin: 14px 0 0; border-top: 3px dashed currentColor; padding-top: 12px; }

/* ---------- Thinking cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--white); border: 4px solid var(--ink); box-shadow: var(--shadow); padding: 22px; transition: transform .2s; }
.card:nth-child(odd) { transform: rotate(-1deg); }
.card:nth-child(even) { transform: rotate(1deg); }
.card:hover { transform: rotate(0) scale(1.03); }
.card h4 { margin: 4px 0 8px; font-size: 19px; }
.card p { margin: 0; font-size: 15.5px; }
.num { font-size: 44px; color: var(--red); line-height: 1; -webkit-text-stroke: 1px var(--ink); }

/* ---------- Chips ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips li { padding: 8px 16px; border: 3px solid var(--ink); background: var(--white); font-weight: 800; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, background .15s; }
.chips li:hover { background: var(--yellow); transform: translateY(-3px) rotate(-2deg); }

/* ---------- Name ---------- */
.name-title { font-size: clamp(52px, 7vw, 88px); margin: 0 0 12px; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--ink); }
.section-red p { font-size: 19px; }

/* ---------- Contact / footer ---------- */
.contact { text-align: center; }
.footer { background: var(--ink); color: var(--white); text-align: center; padding: 26px 16px; font-size: 14px; }
.footer .logo { color: var(--white); }

/* ---------- Punch words spawned on click ---------- */
.pow {
  position: fixed; z-index: 70; pointer-events: none; font-family: var(--display); font-size: 56px;
  padding: 4px 16px; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-50%, -50%); animation: pow-out .9s cubic-bezier(.2,1.6,.4,1) forwards;
}
@keyframes pow-out {
  0% { transform: translate(-50%,-50%) scale(0) rotate(-30deg); opacity: 1; }
  40% { transform: translate(-50%,-50%) scale(1.15) rotate(var(--r, 6deg)); opacity: 1; }
  100% { transform: translate(-50%,-80%) scale(1) rotate(var(--r, 6deg)); opacity: 0; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.96) rotate(-1deg); transition: opacity .6s ease, transform .7s cubic-bezier(.2,1.5,.4,1); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:nth-child(odd) { transform: rotate(-1deg); }
.card.reveal.in:nth-child(even) { transform: rotate(1deg); }
.reveal .sfx { transform: scale(0) rotate(-30deg); transition: transform .5s cubic-bezier(.2,1.8,.4,1) .35s; }
.reveal.in .sfx { transform: rotate(8deg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .panel-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .burst-name { max-width: 260px; }
  .panel-ink .grid-2 { margin-top: 12px; }
}
@media (max-width: 560px) {
  .nav { flex-direction: column; gap: 10px; }
  .nav-links { justify-content: center; gap: 8px; }
  .nav-links a { font-size: 12px; padding: 5px 9px; }
  .cards { grid-template-columns: 1fr; }
  .stats.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stats.compact li { padding: 8px 4px; }
  .stats.compact b { font-size: 30px; }
  .stats.compact span { font-size: 10.5px; letter-spacing: 0; overflow-wrap: anywhere; }
  .sfx { right: 4px; }
  .panel h3 { font-size: 36px; }
  .panel-flagship h3 { font-size: 52px; }
  .btn { font-size: 20px; padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal .sfx { opacity: 1; transform: none; }
  #sparkles, .hero-video { display: none; }
}
