:root {
  --black: #070606;
  --charcoal: #151313;
  --ash: #242020;
  --blood: #8f0f17;
  --blood-hot: #e01825;
  --gold: #d4882d;
  --amber: #a83a1b;
  --paper: #f2e4c5;
  --muted: #a79a8a;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(143, 15, 23, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 15, 23, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(224, 24, 37, 0.27), transparent 38rem),
    var(--black);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body.intro-active {
  height: 100svh;
  overflow: hidden;
}

body.intro-active .site-header,
body.intro-active .gallery-section,
body.intro-active .about-section,
body.intro-active .strip-section,
body.intro-active .contact-section,
body.intro-active .site-footer {
  display: none;
}

body.web-mode .start-screen {
  display: none;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(224, 24, 37, 0.48);
  background: rgba(7, 6, 6, 0.72);
  backdrop-filter: blur(16px);
  transform: translateY(0);
  transition: transform 450ms ease;
}

.site-header.is-visible {
  transform: translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(224, 24, 37, 0.74));
}

.brand-logo.is-loaded {
  display: block;
}

.brand-type,
h1,
h2,
h3,
.start-button,
button {
  font-family: "Archivo Black", "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-type {
  color: var(--paper);
  font-size: 1rem;
  text-shadow: 2px 2px 0 var(--blood), 0 0 14px rgba(224, 24, 37, 0.58);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.start-screen {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: clip;
  border-bottom: 2px solid var(--blood);
  background: #020202;
}

.start-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: cabinetKick 1800ms ease-out both;
}

.start-wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(1.15) contrast(1.08) brightness(0.7);
  animation: wallpaperDrift 7200ms ease-in-out both;
}

.start-layer {
  position: absolute;
  width: 100vw;
  height: 100svh;
  object-fit: cover;
  filter: drop-shadow(0 0 24px rgba(224, 24, 37, 0.28));
}

.start-bw {
  animation: bwFlash 4200ms steps(1, end) both;
}

.start-color {
  opacity: 0;
  animation: colorFade 4200ms ease-out both;
}

.start-layer-two {
  opacity: 0;
  animation: slideLayerTwo 4200ms cubic-bezier(.16, .88, .27, 1) both;
}

.start-layer-three {
  width: min(82vw, 132vh);
  height: auto;
  max-height: 72svh;
  object-fit: contain;
  opacity: 0;
  animation: flyLayerThree 4200ms cubic-bezier(.12, .85, .25, 1) both;
}

.boot-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(980px, calc(100% - 32px));
  margin-bottom: clamp(30px, 8vh, 86px);
  text-align: center;
  animation: copyRise 900ms ease 3400ms both;
}

.view-gallery {
  margin: 0;
  color: var(--paper);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.15rem, 2.7vw, 1.9rem);
  font-weight: 800;
  text-shadow: 0 0 16px rgba(224, 24, 37, 0.85), 2px 2px 0 #260406;
  text-transform: uppercase;
  animation: slowFlash 2200ms ease-in-out infinite;
}

.kicker {
  margin: 0 0 8px;
  color: var(--blood-hot);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.92;
  text-shadow: 4px 4px 0 var(--blood), 0 0 24px rgba(224, 24, 37, 0.52);
}

h1 {
  font-size: clamp(3.1rem, 12vw, 8.7rem);
}

h2 {
  font-size: clamp(2.4rem, 7vw, 6rem);
}

h3 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.start-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 22px;
  border: 2px solid #ef464d;
  color: var(--paper);
  background: linear-gradient(180deg, var(--blood-hot), #61070d);
  box-shadow: 0 0 0 4px rgba(12, 5, 5, 0.82), 0 0 30px rgba(224, 24, 37, 0.62);
  cursor: pointer;
  text-decoration: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
}

.gallery-section,
.about-section,
.strip-section,
.contact-section {
  padding: clamp(64px, 11vw, 120px) clamp(16px, 4vw, 48px);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.comic-strip {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: clamp(22px, 4vw, 44px);
  min-width: 0;
}

.sequential-art-feature {
  width: 100%;
  min-width: 0;
}

.art-feature-heading {
  margin: 0 0 clamp(16px, 2.5vw, 26px);
}

.comic-panel,
.record-scene {
  position: relative;
  overflow: hidden;
  contain: paint;
  margin: 0;
  width: 100%;
  min-width: 0;
  border: 3px solid #080606;
  outline: 1px solid rgba(242, 179, 77, 0.58);
  background: var(--charcoal);
  box-shadow: 8px 8px 0 rgba(124, 16, 22, 0.72), 0 0 40px rgba(195, 25, 34, 0.14);
}

.comic-panel::after,
.record-scene::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(242, 179, 77, 0.16), transparent 28%, transparent 72%, rgba(124, 16, 22, 0.22));
}

.comic-panel img {
  width: 100%;
  height: auto;
}

.record-scene {
  display: grid;
  min-height: clamp(560px, 80svh, 900px);
  place-items: center;
  background:
    radial-gradient(circle, rgba(224, 24, 37, 0.22), transparent 40%),
    linear-gradient(135deg, #100d0d, #050505);
}

.record-copy {
  position: absolute;
  top: clamp(18px, 4vw, 42px);
  left: clamp(18px, 4vw, 42px);
  z-index: 2;
}

.record-disc {
  width: min(74vw, 650px);
  height: auto;
  aspect-ratio: 1 / 1;
  transform: rotate(var(--spin, 0deg)) translateX(var(--roll, 0px));
  filter: drop-shadow(0 0 28px rgba(224, 24, 37, 0.46));
  will-change: transform;
}

.tall-panel {
  max-width: 100%;
  aspect-ratio: 3 / 4;
}

.comic-animate {
  height: clamp(640px, 92svh, 980px);
  background: #000;
}

.comic-animate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--comic-fade, 1);
}

.comic-layer {
  will-change: transform, opacity;
}

.comic-layer-three {
  transform: translateX(calc(-76% + var(--l3-p, 0) * 76%));
}

.comic-layer-one {
  transform: translateX(calc(-76% + var(--l1-p, 0) * 76%));
}

.comic-layer-two {
  transform: translateX(calc(76% - var(--l2-p, 0) * 76%));
}

.comic-layer-one {
  opacity: var(--comic-fade, 1);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.about-card,
.contact-form {
  border: 1px solid rgba(224, 24, 37, 0.48);
  background: linear-gradient(180deg, rgba(21, 19, 19, 0.94), rgba(9, 8, 8, 0.94));
  box-shadow: 7px 7px 0 rgba(124, 16, 22, 0.54);
}

.about-card {
  padding: clamp(20px, 4vw, 34px);
  color: #dfd1b7;
  font-size: 1rem;
  line-height: 1.7;
}

.about-card p:first-child {
  margin-top: 0;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.strip-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(224, 24, 37, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(224, 24, 37, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(143, 15, 23, 0.14), rgba(0, 0, 0, 0));
  background-size: 34px 34px, 34px 34px, auto;
}

.strip-sequence {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: clamp(16px, 2.6vw, 28px);
}

.strip-frame {
  position: relative;
  overflow: hidden;
  contain: paint;
  margin: 0;
  border: 3px solid #060303;
  outline: 1px solid rgba(224, 24, 37, 0.68);
  background: #050303;
  box-shadow: 0 8px 0 rgba(143, 15, 23, 0.72), 0 0 34px rgba(224, 24, 37, 0.18);
  transform: translateY(var(--frame-lift, 0));
}

.strip-frame:nth-child(1),
.strip-frame:nth-child(4) {
  grid-column: span 7;
}

.strip-frame:nth-child(2),
.strip-frame:nth-child(5) {
  grid-column: span 5;
  --frame-lift: 34px;
}

.strip-frame:nth-child(3) {
  grid-column: 3 / span 8;
}

.strip-frame span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(224, 24, 37, 0.82);
  color: var(--paper);
  background: rgba(8, 4, 4, 0.82);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(224, 24, 37, 0.8);
}

.strip-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.05);
  transition: transform 650ms ease, filter 650ms ease;
}

.strip-frame:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.1);
}

.contact-form {
  display: grid;
  width: min(760px, 100%);
  margin: 0 auto;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: #ef464d;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(224, 24, 37, 0.42);
  border-radius: 0;
  color: var(--paper);
  background: #090808;
  font: 1rem Inter, system-ui, sans-serif;
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--blood-hot);
  box-shadow: 0 0 0 3px rgba(224, 24, 37, 0.28);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(224, 24, 37, 0.42);
  color: var(--muted);
  background: #050505;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer a {
  color: #ef464d;
}

@keyframes bwFlash {
  0%, 22% { opacity: 1; }
  23%, 100% { opacity: 0; }
}

@keyframes colorFade {
  0%, 17% { opacity: 0; }
  30%, 100% { opacity: 1; }
}

@keyframes slideLayerTwo {
  0%, 38% { opacity: 0; transform: translateX(-46vw); }
  64%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes flyLayerThree {
  0%, 54% { opacity: 0; transform: scale(1.72); filter: blur(12px); }
  76%, 100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes wallpaperDrift {
  0% { transform: scale(1.1) translate3d(-1.4%, -0.8%, 0); }
  100% { transform: scale(1.2) translate3d(1.4%, 0.8%, 0); }
}

@keyframes cabinetKick {
  0% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes copyRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slowFlash {
  0%, 100% { opacity: 0.44; filter: brightness(0.8); }
  50% { opacity: 1; filter: brightness(1.28); }
}

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-type {
    font-size: 0.88rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 9px 13px;
    font-size: 0.94rem;
  }

  .start-layer-three {
    width: min(88vw, 68vh);
    max-height: 58svh;
  }

  .boot-copy {
    margin-bottom: 34px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .record-scene {
    min-height: 600px;
  }

  .comic-panel,
  .record-scene,
  .about-card,
  .strip-frame,
  .contact-form {
    box-shadow: 0 7px 0 rgba(124, 16, 22, 0.62), 0 0 32px rgba(195, 25, 34, 0.12);
  }

  .record-disc {
    width: min(92vw, 560px);
  }

  .strip-sequence {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .strip-frame,
  .strip-frame:nth-child(1),
  .strip-frame:nth-child(2),
  .strip-frame:nth-child(3),
  .strip-frame:nth-child(4),
  .strip-frame:nth-child(5) {
    grid-column: 1;
    transform: none;
  }

  .strip-frame img {
    min-height: 0;
    height: auto;
    object-fit: contain;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
