@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #7b00ff;
  --ink: #333333;
  --link: #0097a7;
  --cover: #efefef;
  --paper: #ffffff;
  --cream: #fff0ec;
  --nav: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
}

img {
  max-width: 100%;
}

h1,
h2,
.mark p,
.mark span,
.step-num {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--purple);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 40;
}

.skip:focus {
  top: 0.5rem;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav);
  padding: 0.4rem 3vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-brand {
  display: flex;
  width: 2.4rem;
  height: 2.4rem;
}

.nav-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars {
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.cover {
  min-height: 100vh;
  background: var(--cover);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav) + 1.6rem) 3vw 3.2rem;
  scroll-margin-top: var(--nav);
}

.cover h1 {
  margin: 0;
  color: var(--purple);
  font-size: clamp(4.6rem, 19.4vw, 18.75rem);
  line-height: 0.8;
  white-space: nowrap;
}

.tagline {
  margin: 0.85rem 0 0 0.15rem;
  font-weight: 700;
  font-size: clamp(1rem, 1.75vw, 1.55rem);
}

.mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
  line-height: 0.85;
}

.mark img {
  width: 100%;
  height: auto;
  display: block;
}

.mark p,
.mark span {
  margin: 0.15rem 0 0;
}

.mark-lg {
  width: min(9.5rem, 28vw);
  margin: auto auto 0;
  align-items: center;
  text-align: center;
}

.mark-lg p {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.mark-xl {
  width: min(12.5rem, 42vw);
  align-items: flex-start;
}

.mark-xl p {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.mark-light {
  position: absolute;
  right: 2.2vw;
  bottom: 1.6vw;
  width: 4.6rem;
  color: var(--cream);
  z-index: 2;
}

.mark-light span {
  font-size: 1.15rem;
}

.bleed,
.speed-banner,
.step,
.shot {
  position: relative;
}

.bleed {
  scroll-margin-top: var(--nav);
}

.bleed-shot,
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0c0c10;
  cursor: zoom-in;
}

.bleed-shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bleed-shot img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.bleed-shot img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bleed-caption {
  position: absolute;
  left: 3vw;
  bottom: 2vw;
  margin: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.kicker,
.piece {
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
}

.kicker {
  color: var(--purple);
}

.piece {
  color: #fff;
}

.about,
.social {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.8rem) 4vw;
  scroll-margin-top: var(--nav);
}

.about-copy,
.social-copy {
  text-align: center;
}

.social-copy {
  text-align: left;
}

h2 {
  margin: 0 0 0.45rem;
  color: var(--purple);
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  line-height: 0.95;
}

.tools {
  margin: 0 0 1.15rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.about-copy p,
.process-copy p,
.split p,
.comic-copy p {
  margin: 0 0 1rem;
}

.block {
  padding: clamp(1.4rem, 3vw, 2.4rem) 3vw clamp(2.4rem, 5vw, 3.6rem);
  scroll-margin-top: var(--nav);
}

.process-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem 1.15rem;
  max-width: 1180px;
  margin: 0 auto;
}

.step-1 { grid-column: 1 / 6; }
.step-2 { grid-column: 6 / 11; }
.step-3 { grid-column: 5 / 9; }
.step-4 { grid-column: 9 / 13; }

.step-num {
  position: absolute;
  left: 0.35rem;
  top: 0.1rem;
  color: var(--purple);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.process-copy {
  max-width: 1180px;
  margin: 1.6rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
}

.process-copy h2,
.process-copy p:nth-of-type(1) {
  grid-column: 1;
}

.process-side {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}

.content-block {
  padding-top: 1.6rem;
}

.speed-banner {
  max-width: 1280px;
  margin: 0 auto;
}

.speed-banner .mark-light {
  right: 1.2rem;
  bottom: 1rem;
}

.split {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3.5rem;
}

.comics {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.comic-copy {
  max-width: 760px;
  margin: 1.4rem auto 0;
  padding: 0 0.2rem;
}

.social-sub {
  margin-top: 1.35rem;
}

.link-label {
  margin: 0.85rem 0 0;
  font-weight: 700;
}

.social-copy a {
  color: var(--link);
  overflow-wrap: anywhere;
}

.close {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
}

#lightbox::backdrop {
  background: rgba(8, 8, 12, 0.9);
}

#lightbox img {
  display: block;
  max-width: min(96vw, 1600px);
  max-height: 88vh;
  margin: 6vh auto 0;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.4rem 1.2rem 1rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0;
    font-size: 1.05rem;
  }

  .cover h1 {
    font-size: clamp(3.1rem, 16.8vw, 8rem);
    white-space: normal;
  }

  .about,
  .social,
  .process-copy,
  .split,
  .comics {
    grid-template-columns: 1fr;
  }

  .process-board {
    grid-template-columns: 1fr 1fr;
  }

  .step-1,
  .step-2,
  .step-3,
  .step-4,
  .process-copy h2,
  .process-copy p,
  .process-side {
    grid-column: auto;
    grid-row: auto;
  }

  .about-copy {
    text-align: left;
  }

  .mark-light {
    width: 3.4rem;
  }

  .mark-light span {
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  .comics,
  .process-board {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
