/* Header uses DM Mono, same as the project text. Bands take type and color from
   subscribe.adbusters.org. All fonts are free Google Fonts. */
:root {
  --black: #0a0a0a;
  --white: #f5f1eb;
  --red: #e31c1c;
  --ink: #111111;
  --font-type: "DM Mono", "Courier New", monospace;
  --font-head: "Oswald", Impact, "Arial Black", sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Header (adbusters.org/support) ---------- */
.intro {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-type);
  text-align: center;
  padding: 3rem 1rem;          /* same space above the logo and below the bio */
}
.intro__art {
  width: min(420px, 80vw);
  margin: 0 auto 1.5rem;
  mix-blend-mode: multiply;
}
.intro__sign {
  width: 200px;
  margin: 0 auto 2rem;
}
/* Header text all matches the project subtext (0.96rem); the headline stays all caps */
.intro h1 {
  font-family: var(--font-type);
  font-weight: 500;           /* DM Mono's heaviest weight */
  font-size: 0.96rem;         /* same as the bio below it */
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 auto 1.2rem;
  max-width: 1080px;
}
.intro__bio {
  max-width: 40rem;
  margin: 0 auto;
}
.intro__bio p {
  font-size: 0.96rem;         /* same as project subtext */
  line-height: 1.55;
  margin: 0 0 0.9rem;
}
.intro__bio p:last-child { margin-bottom: 0; }


/* About section at the foot of the page: text left, illustration right.
   Side padding matches the project bands so the text lines up with them. */
.about {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-type);
  display: flex;
  align-items: center;
  gap: 4vw;
  padding: 6vw 5vw;
}
.about__text { flex: 1 1 50%; min-width: 0; }
.about__text p {
  font-size: 0.96rem;         /* same as project subtext */
  line-height: 1.55;
  max-width: 40rem;
  margin: 0;
  text-align: left;
}
.about__text .about__hi { margin-top: 1.55em; }   /* one blank line below the paragraph */
.about__hi a { color: inherit; }
.about__art {
  flex: 0 1 420px;
  width: min(420px, 40vw);
  height: auto;               /* always keep the drawing's own proportions */
  mix-blend-mode: multiply;
}
@media (max-width: 640px) {
  .about { flex-direction: column; align-items: flex-start; padding: 4rem 1rem; }
  /* In the stacked layout, flex sizing would act on height and squash the
     drawing, so take it out of flex sizing entirely. */
  .about__art { flex: none; width: min(320px, 80vw); height: auto; align-self: center; }
}

@media (max-width: 640px) {
  .intro__sign { width: 160px; }
}

/* ---------- Project bands (subscribe.adbusters.org) ---------- */
.band {
  display: flex;
  align-items: flex-end;
  gap: 1.6rem;
  min-height: 34rem;
  padding: 6vw 5vw;
  color: var(--white);
  background: var(--black);
  text-decoration: none;
  position: relative;
}
/* Optional background image: gritty, full color, 40% opacity,
   set per band with style="--band-img: url(...)" */
.band--img { isolation: isolate; overflow: hidden; }
.band--img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--band-img) var(--band-img-pos, center) / cover no-repeat;
  filter: contrast(1.35);     /* full color, a little extra grit */
  opacity: var(--band-img-opacity, 0.4);   /* override per band */
  pointer-events: none;
}
/* Product shot kept at its own resolution (never scaled up) and centred in
   the space between the end of the title and the right edge on desktop.
   --title-em is the title's width in ems; --backdrop is the photo's own
   background colour, laid over the whole band at the same 40%. */
.band--product { isolation: isolate; overflow: hidden; }
/* One layer holds the backdrop colour and the photo, so both fade together */
.band__layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--backdrop);
  opacity: var(--band-img-opacity, 0.4);
  pointer-events: none;
}
.band__product {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(5vw + var(--title-em) * clamp(3.2rem, 11.5vw, 9rem));
  width: calc(100% - 5vw - var(--title-em) * clamp(3.2rem, 11.5vw, 9rem));
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(var(--product-scale, 1.15));
}
@media (max-width: 720px) {
  .band__product { left: 0; width: 100%; }
}
/* Notes on phones: the notebook is fully opaque, so size it by width (about
   a third of the band), tuck it against the right edge (its right side sits at
   71% of the image, hence the 26% nudge) and keep the text in the left 60%. */
@media (max-width: 720px) {
  .band--notes .band__product {
    left: auto; right: 0; top: 50%; bottom: auto;
    width: 85%; height: auto;
    transform: translate(26%, -50%);
  }
  .band--notes .band__blurb { max-width: 60%; }
}

/* Moving background (a looping video instead of a GIF, far smaller).
   Same treatment as the still images; it covers the still poster. */
.band__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: grayscale(1) contrast(1.35);
  opacity: 0.4;
  pointer-events: none;
}
.band--img:has(.band__media)::before { display: none; filter: grayscale(1) contrast(1.35); }
@media (prefers-reduced-motion: reduce) {
  .band__media { display: none; }
  .band--img:has(.band__media)::before { display: block; }
}
.band--dark  { background: var(--black); color: var(--white); }
.band--red   { background: var(--red);   color: var(--white); }
.band--light { background: var(--white); color: var(--black); }

.band__col {
  flex: 1 1 75%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.band__aside { flex: 1 1 20%; min-height: 1px; } /* visuals go here later */

.band__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 11.5vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  /* Tight line-height leaves the caps hanging below the box, so add a bit
     back so the gap above the subtext matches the gap from the subtext baseline
     to the link (about 27px on desktop) */
  margin: 0 0 calc(0.045em + 4px);
  overflow-wrap: break-word;
}
/* One-word titles too long for the column at full size */
.band__title--long { font-size: clamp(2.4rem, 7.2vw, 6rem); }
/* BETTER WITH SWEAT: open the tracking slightly and even out E-T, T-T, T-E
   (each span's letter-spacing sets the gap after that letter) */
.band__title--better { letter-spacing: 0.01em; }
.band__title--better .k-et { letter-spacing: 0.017em; }
.band__title--better .k-tt { letter-spacing: 0.03em; }
.band__title--better .k-te { letter-spacing: -0.018em; }
/* GO FETCH ADVENTURE: open E-T to match F-E */
.band__title .k-fetch-e { letter-spacing: 0.025em; }
.band__blurb {
  font-family: var(--font-mono);
  font-size: 0.96rem;         /* 15.36px */
  line-height: 1.55;
  max-width: none;           /* one line on desktop; only hand-placed breaks */
  margin: 0;
}
.band__more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.band:hover .band__col,
.band:focus-visible .band__col { animation: jitter 0.15s ease-out; }
.band:focus-visible { outline: 3px solid currentColor; outline-offset: -10px; }

@keyframes jitter {
  25% { transform: translate(-2px, 1px) rotate(-0.3deg); }
  50% { transform: translate(2px, -1px) rotate(0.3deg); }
  75% { transform: translate(-1px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .band:hover .band__col, .band:focus-visible .band__col { animation: none; }
}

@media (max-width: 720px) {
  .band { flex-direction: column; align-items: stretch; min-height: 0; padding: 4rem 1rem; }
  .band__aside { display: none; }
}

/* ---------- Project stub pages ---------- */
.project {
  min-height: 100vh;
  padding: 6vw 5vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project__back {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}
.project__nav {
  margin-top: auto;           /* sits at the foot of the page */
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project__nav a { color: inherit; }
.project__body {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 40em;
  margin: 0;
}
.project__body p { margin: 0 0 1em; }
.project__body a { color: inherit; text-underline-offset: 3px; }
.project__body p:last-child { margin-bottom: 0; }
.project__award {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.project__credits {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project__credits--foot { margin-top: 1.5rem; }   /* credits placed after the work */
.project__press { font-family: var(--font-mono); }
.project__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.project__work { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.project__video {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.project__img { display: block; width: 100%; max-width: 1200px; height: auto; }
/* Portrait images keep to the screen height instead of running very tall */
.project__img--tall { width: auto; max-width: 100%; max-height: 90vh; align-self: flex-start; }
/* A row of small pieces (posters, GIFs): six across, three on phones */
.project__grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.project__grid img { display: block; width: 100%; height: auto; aspect-ratio: 250 / 371; object-fit: cover; }
/* Flipbook: images stacked in one frame, a script swaps which one shows.
   Sized like a tall image: up to the screen height, never wider than the column. */
.flipbook {
  position: relative;
  width: min(100%, calc(90vh * 1500 / 1888), 1500px);
  aspect-ratio: 1500 / 1888;
}
.flipbook img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.flipbook img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .flipbook img { transition: none; } }
/* Carousel: 2.5 images in view on desktop (1.5 on phones), arrow buttons below */
.carousel { width: 100%; max-width: 1200px; }
.carousel__track {
  --gap: 1.5rem;
  --show: 2.5;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > img {
  flex: 0 0 auto;
  width: calc((100% - (var(--show) - 0.5) * var(--gap)) / var(--show));
  min-width: 0;
  max-width: 500px;           /* never larger than the source files */
  height: auto;
  scroll-snap-align: start;
}
.carousel__track:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.carousel__controls { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.carousel__btn {
  width: 48px; height: 48px;   /* comfortable tap target; just the arrow shows */
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 500 1.6rem var(--font-mono);
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.carousel__controls { margin-left: -12px; }
.carousel__btn[data-dir="-1"]:hover:not(:disabled) { transform: translateX(-3px); }
.carousel__btn[data-dir="1"]:hover:not(:disabled) { transform: translateX(3px); }
.carousel__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 720px) { .carousel__track { --show: 1.5; --gap: 1rem; } }
@media (max-width: 720px) { .project__grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; } }
.project__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Custom-thumbnail video: a button showing the image and a play mark */
.project__video--poster { display: block; padding: 0; border: 0; cursor: pointer; overflow: hidden; }
.project__video--poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__play {
  position: absolute;
  left: 50%; top: 72%;          /* below the title card, clear of the lettering */
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--red);
  transition: transform .2s ease;
}
.project__play::after {
  content: "";
  position: absolute;
  left: 34px; top: 26px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--white);
}
.project__video--poster:hover .project__play,
.project__video--poster:focus-visible .project__play { transform: scale(1.08); }
.project__video--poster:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (max-width: 720px) { .project__play { transform: scale(.75); } .project__video--poster:hover .project__play { transform: scale(.8); } }
.project__press ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.project__press a {
  color: inherit;
  font-size: 0.96rem;
  text-underline-offset: 3px;
}

.site-foot {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  padding: 2rem 1rem;
}
.site-foot a { color: inherit; }

/* No widows: browsers that support it rebalance the last lines, and the
   last two words of every heading and paragraph are joined with &nbsp;. */
h1, h2, p { text-wrap: pretty; }
/* Hand-placed header line breaks apply on wide screens only */
@media (max-width: 640px) { .br-wide { display: none; } }
/* A break that only applies once the bands stack on phones */
.br-narrow { display: none; }
@media (max-width: 720px) { .br-narrow { display: inline; } }
.nowrap { white-space: nowrap; }
