/* ─────────────────────────────────────────────
   GIMBO ART DELUXE — STYLESHEET
   Dark / blood / abstract comic aesthetic
───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #080808;
  --darkgray: #111111;
  --midgray:  #1c1c1c;
  --red:      #b80000;
  --red-hot:  #ff1a1a;
  --offwhite: #d8d0c8;
  --cream:    #e8ddd0;
  --font-display: 'Bebas Neue', 'Black Ops One', Impact, sans-serif;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--font-mono);
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── NOISE TEXTURE OVERLAY ── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── BLOOD BAR ── */
.blood-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--red);
  display: flex;
  overflow: visible;
  z-index: 10;
}

.drip {
  display: block;
  width: 14px;
  flex-shrink: 0;
  flex-grow: 1;
  background: var(--red);
  position: relative;
}

.drip::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  border-radius: 0 0 50% 50%;
  background: var(--red);
  animation: drip-fall linear infinite;
}

/* randomise drip lengths */
.drip:nth-child(1)::after  { height: 28px; animation-duration: 3.2s; animation-delay: 0s; }
.drip:nth-child(2)::after  { height: 14px; animation-duration: 4.1s; animation-delay: 0.5s; }
.drip:nth-child(3)::after  { height: 40px; animation-duration: 2.8s; animation-delay: 1.1s; }
.drip:nth-child(4)::after  { height: 20px; animation-duration: 5.0s; animation-delay: 0.2s; }
.drip:nth-child(5)::after  { height: 55px; animation-duration: 3.6s; animation-delay: 1.8s; }
.drip:nth-child(6)::after  { height: 10px; animation-duration: 4.5s; animation-delay: 0.7s; }
.drip:nth-child(7)::after  { height: 35px; animation-duration: 2.5s; animation-delay: 1.3s; }
.drip:nth-child(8)::after  { height: 22px; animation-duration: 3.9s; animation-delay: 0.4s; }
.drip:nth-child(9)::after  { height: 48px; animation-duration: 4.2s; animation-delay: 2.0s; }
.drip:nth-child(10)::after { height: 16px; animation-duration: 3.1s; animation-delay: 0.9s; }
.drip:nth-child(11)::after { height: 30px; animation-duration: 5.3s; animation-delay: 1.5s; }
.drip:nth-child(12)::after { height: 12px; animation-duration: 2.9s; animation-delay: 0.3s; }

@keyframes drip-fall {
  0%   { transform: translateX(-50%) scaleY(0); transform-origin: top; opacity: 1; }
  60%  { transform: translateX(-50%) scaleY(1); opacity: 1; }
  100% { transform: translateX(-50%) scaleY(1); opacity: 0; }
}

.bottom-blood { transform: scaleY(-1); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 60%, #1a0000 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 4px
    );
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; padding: 2rem; }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 1.5rem;
  animation: flicker 4s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--offwhite);
  text-shadow:
    4px 4px 0 var(--red),
    -2px -2px 0 #000,
    0 0 60px rgba(184,0,0,0.3);
  margin-bottom: 1.5rem;
}

.hero-title .red { color: var(--red); text-shadow: 3px 3px 0 #000; }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: #555;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--black);
  background: var(--red);
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover { background: var(--red-hot); transform: scale(1.04) skewX(-2deg); }

/* blood splats on hero */
.hero-splat {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 30%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
.splat1 { width: 500px; height: 500px; top: -100px; right: -150px; }
.splat2 { width: 300px; height: 300px; bottom: 0; left: -80px; }

/* ── NAV ── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.95);
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(4px);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  gap: 0;
}

.main-nav ul li a {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--offwhite);
  text-decoration: none;
  padding: 1rem 1.8rem;
  transition: color 0.15s, background 0.15s;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--red);
  transition: left 0.2s, right 0.2s;
}

.main-nav ul li a:hover { color: var(--red); }
.main-nav ul li a:hover::after { left: 0; right: 0; }

/* ── SECTIONS ── */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: var(--offwhite);
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 0 var(--red);
}

.section-title .red { color: var(--red); text-shadow: 2px 2px 0 #000; }

.section-desc {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

/* ── VIDEO ── */
.featured-section { text-align: center; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}

.video-card {
  background: var(--darkgray);
  border: 1px solid #222;
  border-top: 3px solid var(--red);
}

.video-card--placeholder .video-wrapper {
  border-color: #333;
  box-shadow: none;
}

.video-info {
  padding: 0.75rem 1rem 1rem;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.video-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #666;
  letter-spacing: 0.08em;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border-color: #333;
  box-shadow: none;
}

.video-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #333;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 3px solid var(--red);
  box-shadow: 0 0 40px rgba(184,0,0,0.4), 8px 8px 0 #000;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── GALLERY GRID ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.comic-card {
  background: var(--darkgray);
  border: 1px solid #222;
  border-top: 3px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  overflow: hidden;
}

.comic-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 6px 6px 0 var(--red), 0 20px 40px rgba(0,0,0,0.6);
}

/* Comics grid — smaller cards than the main gallery grid */
.comics-section .gallery {
  grid-template-columns: repeat(auto-fill, minmax(160px, 210px));
  justify-content: center;
}

.comic-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #0e0e0e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comic-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  filter: contrast(1.1) saturate(0.8);
}

.comic-card:hover .comic-img-wrap img { transform: scale(1.05); }

.comic-img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #333;
  letter-spacing: 0.2em;
  border: 1px dashed #222;
}

/* show placeholder if img fails */
.comic-img-wrap.img-missing img { display: none; }
.comic-img-wrap.img-missing .comic-img-placeholder { display: flex; }

.comic-info {
  padding: 0.6rem 0.8rem 0.8rem;
}

.comic-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--offwhite);
  margin-bottom: 0.2rem;
}

.comic-desc {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* ── DIVIDER ── */
.divider {
  text-align: center;
  overflow: hidden;
  padding: 1rem 0;
}

.divider span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #1f1f1f;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--darkgray);
  border-top: none;
  text-align: center;
  margin-top: 4rem;
}

.footer-inner { padding: 3rem 2rem; }

.footer-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--offwhite);
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--red-hot); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #333;
  letter-spacing: 0.15em;
}

.footer-build {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #222;
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}

/* ── ANIMATIONS ── */
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96%            { opacity: 0.3; }
  97%            { opacity: 1; }
  98%            { opacity: 0.5; }
  99%            { opacity: 1; }
}

/* ── COMIC CARD LINK VARIANT ── */
.comic-card--link { cursor: pointer; }

.comic-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.comic-read-overlay {
  position: absolute;
  inset: 0;
  background: rgba(184,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}

.comic-card--link:hover .comic-read-overlay { opacity: 1; }
.comic-card--link:hover .comic-img-wrap img { transform: scale(1.05); }

/* ── INSTAGRAM SECTION ── */
.instagram-section { text-align: center; }

.inline-link {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.inline-link:hover { border-color: var(--red); }

/* Square photo grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}

.ig-card { position: relative; aspect-ratio: 1; overflow: hidden; }

.ig-thumb {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #0e0e0e;
}

.ig-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(0.75);
  transition: transform 0.35s, filter 0.35s;
}

.ig-thumb:hover img {
  transform: scale(1.08);
  filter: contrast(1.15) saturate(1);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(184,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.ig-overlay span {
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
  font-family: var(--font-display);
}

.ig-thumb:hover .ig-overlay,
.ig-thumb:focus-visible .ig-overlay { opacity: 1; }

/* missing image placeholder */
.ig-card.ig-missing .ig-thumb img { display: none; }
.ig-missing-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #222;
  letter-spacing: 0.2em;
  border: 1px dashed #1a1a1a;
}
.ig-card.ig-missing .ig-missing-placeholder { display: flex; }
.ig-card.ig-missing .ig-overlay { display: none; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lb-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 92vw;
  max-height: 92vh;
}

#lbImg {
  max-width: 85vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border: 2px solid var(--red);
  box-shadow: 0 0 60px rgba(184,0,0,0.35);
}

.lb-close {
  all: unset;
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--offwhite);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
  z-index: 2001;
}
.lb-close:hover { color: var(--red); }

.lb-arrow {
  all: unset;
  font-size: 2rem;
  color: var(--offwhite);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
  flex-shrink: 0;
}
.lb-arrow:hover { color: var(--red); transform: scale(1.2); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ── SELECTION ── */
::selection { background: var(--red); color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .main-nav ul li a { padding: 0.8rem 1rem; font-size: 0.85rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .section { padding: 4rem 1.2rem; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
}
