:root {
  --ink:    #0D0D0D;
  --white:  #FFFFFF;
  --yellow: #FFD600;
  --orange: #FF6B00;
  --red:    #E8192C;
  --blue:   #1565C0;
  --sky:    #29B6F6;
  --green:  #2E7D32;
  --lime:   #76C442;
  --panel-1:#FFF9C4;
  --panel-2:#E3F2FD;
  --panel-3:#FCE4EC;
  --panel-4:#E8F5E9;
  --panel-5:#FFF3E0;
  --dots:   rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 16px;
  overflow-x: hidden;
}

/* Global halftone texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  border-bottom: 5px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.55rem 1rem;
  gap: 1rem;
  overflow-x: auto;
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.nav-links a {
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--yellow);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--ink);
  margin-top: 60px;
}

/* Action lines */
#hero::after {
  content: '';
  position: absolute;
  inset: -200%;
  background: repeating-conic-gradient(
    rgba(255,255,255,0.35) 0deg 2deg,
    transparent 2deg 12deg
  );
  pointer-events: none;
  animation: spin 80s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

/* KABOOM word */
.hero-kaboom {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 18vw, 12rem);
  line-height: 0.85;
  letter-spacing: 4px;
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow:
    6px 6px 0 var(--orange),
    12px 12px 0 var(--red),
    18px 18px 0 var(--ink);
  display: block;
  animation: kaboom-in 0.55s cubic-bezier(0.17,0.67,0.35,1.6) both;
}

@keyframes kaboom-in {
  from {
    transform: scale(0.2) rotate(-10deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Exclamation burst */
.hero-exclaim {
  display: inline-block;
  position: relative;
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 18vw, 12rem);
  line-height: 0.85;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
  animation: kaboom-in 0.6s 0.1s cubic-bezier(0.17,0.67,0.35,1.6) both;
}

.hero-sub {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  letter-spacing: 4px;
  color: var(--ink);
  margin: 0.4rem 0 1.5rem;
  display: block;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

/* Comic speech bubble */
.speech-bubble {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 1rem 1.5rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  font-style: italic;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid var(--ink);
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 24px solid var(--white);
  z-index: 1;
}

.hero-cta {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--red);
  border: 4px solid var(--ink);
  padding: 0.6rem 2rem;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 1rem;
}

.hero-cta:hover {
  transform: translate(-3px,-3px);
  box-shadow: 9px 9px 0 var(--ink);
}

/* ── COMIC PANEL LAYOUT ── */
.comic-strip {
  display: grid;
  border: 5px solid var(--ink);
  border-bottom: none;
}

/* Grid layouts - mobile first */
.strip-2 {
  grid-template-columns: 1fr;
}

.strip-3 {
  grid-template-columns: 1fr;
}

.strip-4 {
  grid-template-columns: 1fr;
}

.strip-big-small {
  grid-template-columns: 1fr;
}

.comic-panel {
  border-right: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  padding: 1.5rem 1.2rem;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(24px);
  animation: card-reveal 0.6s ease-out forwards;
}

@keyframes card-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comic-panel:nth-child(1) { animation-delay: 0.1s; }
.comic-panel:nth-child(2) { animation-delay: 0.2s; }
.comic-panel:nth-child(3) { animation-delay: 0.3s; }
.comic-panel:nth-child(4) { animation-delay: 0.4s; }
.comic-panel:nth-child(5) { animation-delay: 0.5s; }
.comic-panel:nth-child(6) { animation-delay: 0.6s; }

.comic-panel:last-child {
  border-right: none;
}

/* Panel colour scheme */
.p-yellow  { background: var(--panel-1); }
.p-blue    { background: var(--panel-2); }
.p-red     { background: var(--panel-3); }
.p-green   { background: var(--panel-4); }
.p-orange  { background: var(--panel-5); }
.p-ink     { background: var(--ink); color: var(--white); }
.p-sky     { background: #B3E5FC; }

/* Panel dot texture */
.comic-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}

/* Panel caption label */
.panel-caption {
  font-family: 'Special Elite', cursive;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  padding: 0.15rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.panel-caption.cap-yellow { background: var(--yellow); color: var(--ink); }
.panel-caption.cap-red    { background: var(--red); color: var(--white); }
.panel-caption.cap-blue   { background: var(--blue); color: var(--white); }
.panel-caption.cap-green  { background: var(--green); color: var(--white); }

.panel-heading {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.panel-heading.white { color: var(--white); text-shadow: 2px 2px 0 rgba(0,0,0,0.4); }
.panel-heading.yellow { color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.panel-heading.red  { color: var(--red); text-shadow: 1px 1px 0 var(--ink); }
.panel-heading.blue { color: var(--blue); text-shadow: 1px 1px 0 rgba(0,0,0,0.2); }
.panel-heading.green { color: var(--green); }
.panel-heading.ink  { color: var(--ink); }

.panel-body {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.panel-body.white {
  color: rgba(255,255,255,0.88);
}

.panel-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
  position: relative;
  z-index: 1;
}

/* Big onomatopoeia */
.onomatopoeia {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: 3px;
  -webkit-text-stroke: 2px var(--ink);
  display: block;
  line-height: 0.9;
  position: relative;
  z-index: 1;
}

.pow  { color: var(--yellow); text-shadow: 4px 4px 0 var(--orange), 8px 8px 0 var(--ink); }
.wham { color: var(--sky);    text-shadow: 4px 4px 0 var(--blue),   8px 8px 0 var(--ink); }
.zap  { color: var(--lime);   text-shadow: 4px 4px 0 var(--green),  8px 8px 0 var(--ink); }

/* Number callout */
.big-number {
  font-family: 'Bangers', cursive;
  font-size: 5rem;
  line-height: 1;
  opacity: 0.12;
  position: absolute;
  bottom: -0.5rem;
  right: 0.5rem;
  pointer-events: none;
}

/* Quote box */
.comic-quote {
  border: 4px solid var(--ink);
  background: var(--yellow);
  padding: 0.8rem 1rem;
  font-family: 'Special Elite', cursive;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

/* Director card style */
.director-panel {
  border: 5px solid var(--ink);
  border-bottom: none;
  overflow: hidden;
}

.director-head {
  padding: 1rem 1rem;
  border-bottom: 5px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.director-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,0.12) 5px, rgba(255,255,255,0.12) 6px);
  pointer-events: none;
}

.director-head h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  position: relative;
}

.director-head .role {
  font-family: 'Special Elite', cursive;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  position: relative;
}

.director-body {
  padding: 1.2rem;
}

.director-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.tag {
  font-family: 'Special Elite', cursive;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.4rem;
  border: 2px solid var(--ink);
  text-transform: uppercase;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

form input, form textarea {
  background: var(--white);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
  box-shadow: 3px 3px 0 var(--ink);
}

form input:focus, form textarea:focus {
  border-color: var(--red);
}

form input::placeholder, form textarea::placeholder {
  color: #999;
  font-family: 'Special Elite', cursive;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

form button {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--red);
  border: 4px solid var(--ink);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  align-self: flex-start;
}

form button:hover {
  transform: translate(-3px,-3px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* Section wrapper */
.section-wrap {
  position: relative;
  z-index: 1;
}

.section-label-bar {
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-bottom: 4px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.section-label-bar span {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background: var(--ink);
  border-top: 6px solid var(--yellow);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--orange);
  text-shadow: 3px 3px 0 var(--red), 5px 5px 0 var(--ink);
}

footer p {
  font-family: 'Special Elite', cursive;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ── TABLET & UP ── */
@media (min-width: 640px) {
  body { font-size: 18px; }

  nav {
    padding: 0.55rem 2rem;
    gap: 2rem;
    justify-content: flex-end;
  }

  .nav-links {
    gap: 1.4rem;
    width: auto;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  #hero {
    padding: 5rem 2rem 4rem;
    margin-top: 55px;
  }

  .hero-kaboom {
    font-size: clamp(5rem, 20vw, 15rem);
    letter-spacing: 6px;
    -webkit-text-stroke: 4px var(--ink);
  }

  .hero-exclaim {
    font-size: clamp(5rem, 20vw, 15rem);
    -webkit-text-stroke: 4px var(--ink);
  }

  .hero-sub {
    font-size: clamp(1.6rem, 5vw, 3rem);
    letter-spacing: 6px;
    margin: 0.4rem 0 2rem;
  }

  .speech-bubble {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    margin: 0 auto 2rem;
  }

  .hero-cta {
    font-size: 1.6rem;
    letter-spacing: 4px;
    padding: 0.6rem 2.8rem;
    margin-top: 1.4rem;
  }

  .comic-panel {
    padding: 2rem 1.8rem;
    min-height: 220px;
  }

  .panel-icon {
    font-size: 3rem;
    margin-bottom: 0.6rem;
  }

  .panel-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 3px;
  }

  .panel-body {
    font-size: 1rem;
  }

  .onomatopoeia {
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 4px;
    -webkit-text-stroke: 3px var(--ink);
  }

  .director-head h3 {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }

  .director-head .role {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .director-body {
    padding: 1.5rem;
  }

  .director-body p {
    font-size: 1rem;
  }

  /* Two-col strip */
  .strip-2 {
    grid-template-columns: 1fr 1fr;
  }

  /* Three-col strip */
  .strip-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Four-col strip */
  .strip-4 {
    grid-template-columns: repeat(4,1fr);
  }

  /* Big-small */
  .strip-big-small {
    grid-template-columns: 2fr 1fr;
  }

  .section-label-bar {
    font-size: 1rem;
    letter-spacing: 5px;
    padding: 0.4rem 1.5rem;
  }

  .section-label-bar span {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  footer {
    padding: 1.5rem 2rem;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  footer p {
    font-size: 0.74rem;
    letter-spacing: 1px;
  }

  .footer-logo {
    font-size: 2rem;
    letter-spacing: 4px;
  }
}
