/* Variant 6 — "Poster".
   Type-led and loud: the tagline is the headline, one word knocked out in a red
   block, headings pinned to an asymmetric 12-column grid, photos in duotone. */

:root {
  --black: #0e0e0e;
  --white: #ffffff;
  --off: #f1efe9;
  --red: #d81e2c;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.05rem/1.6 var(--font);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.cap {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- fixed bar ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  transition: background 0.2s ease, padding 0.2s ease;
}
.top.scrolled {
  background: var(--black);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}
.top__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.top__brand img { height: 40px; width: auto; transition: height 0.2s ease; }
.top.scrolled .top__brand img { height: 32px; }
.top__brand b {
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.top__brand b span { display: block; }
.top__nav { display: flex; gap: 1.3rem; }
.top__nav a {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
}
.top__nav a:hover, .top__nav a.active {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.top__toggle { display: none; }

/* ---------- poster hero ---------- */

.poster {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 6rem var(--pad) clamp(2.5rem, 7vh, 5rem);
  background: url("../img/hero-dam.jpg") center / cover no-repeat;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 14, 14, 0.58);
}
.poster__in { width: 100%; max-width: var(--max); margin-inline: auto; }
.eyebrow { display: block; }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  margin-right: 0.85rem;
  vertical-align: 0.3em;
  background: var(--red);
}
.poster h1 {
  margin-top: 1.1rem;
  font-weight: 800;
  font-size: clamp(2.6rem, 10.5vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.poster h1 em {
  font-style: normal;
  background: var(--red);
  padding: 0 0.12em;
  margin-left: -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ghost {
  display: inline-block;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--white);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.ghost:hover { background: var(--red); border-color: var(--red); }

/* ---------- figures band ---------- */

.figs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--red);
}
.figs > div {
  padding: clamp(1.4rem, 3vw, 2.3rem) clamp(1.25rem, 2.5vw, 2rem);
  border-left: 2px solid rgba(14, 14, 14, 0.22);
}
.figs > div:first-child { border-left: 0; }
.figs b {
  display: block;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figs span { display: block; margin-top: 0.5rem; }

/* ---------- blocks ---------- */

/* scroll-margin matches the scrolled bar height so no sliver of the previous
   block shows under it when you jump to an anchor. */
.blk { padding: clamp(3rem, 8vw, 7rem) var(--pad); scroll-margin-top: 50px; }
.blk--white { background: var(--white); color: var(--black); }
.blk--off { background: var(--off); color: var(--black); }
.blk--red { background: var(--red); color: var(--white); }

.blk__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: var(--max);
  margin-inline: auto;
}
.blk h2 {
  grid-column: 1 / 6;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.032em;
  text-transform: uppercase;
}
.blk h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 6px;
  margin-top: 1.25rem;
  background: var(--red);
}
.blk--red h2::after { background: var(--black); }
.blk__body { grid-column: 7 / 13; }
.blk__body p + p { margin-top: 1rem; }
.blk__full { grid-column: 1 / 13; }

.arrow {
  display: inline-block;
  margin-top: 1.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--red);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.blk--white .arrow:hover,
.blk--off .arrow:hover { color: var(--red); }
.blk--red .arrow { border-bottom-color: var(--white); }
.blk--red .arrow:hover { color: var(--white); }

/* ---------- competition panels ---------- */

.panels {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
}
.panel {
  display: flex;
  flex-direction: column;
  background: var(--black);
  padding: 1.7rem 1.5rem;
}
.panel__n {
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}
.panel h3 {
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.panel__meta { display: block; margin-top: 0.45rem; color: rgba(255, 255, 255, 0.6); }
.panel__meta--raw { text-transform: none; letter-spacing: 0.06em; }
.panel p { margin-top: 0.85rem; font-size: 0.98rem; color: rgba(255, 255, 255, 0.78); }
.panel__img { margin-top: auto; padding-top: 1.7rem; }
.panel__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- crew ---------- */

.crew {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
}
.crew img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.25s ease;
}
.crew li:hover img, .crew li:focus-within img { filter: none; }
.crew .r {
  display: block;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b51420;
}
.crew .n {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.crew .y { display: block; margin-top: 0.15rem; font-size: 0.85rem; color: #6d6d6d; }

/* ---------- newsletter, sponsors ---------- */

.issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem;
  border: 2px solid rgba(14, 14, 14, 0.16);
}
.issue b { display: block; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }

.tiers { grid-column: 1 / 13; margin-top: 2.5rem; }
.tier {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 0;
  border-top: 2px solid rgba(14, 14, 14, 0.14);
}
.tier:last-child { border-bottom: 2px solid rgba(14, 14, 14, 0.14); }
.tier__label {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.tier__slots { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, 150px); }
.tier--diamond .tier__slots { grid-template-columns: repeat(auto-fill, 230px); }
.tier--gold .tier__slots { grid-template-columns: repeat(auto-fill, 190px); }
.tier--silver .tier__slots { grid-template-columns: repeat(auto-fill, 155px); }
.tier--bronze .tier__slots { grid-template-columns: repeat(auto-fill, 128px); }
.tier__slots div { aspect-ratio: 16 / 7; border: 2px solid rgba(14, 14, 14, 0.14); }
.thanks {
  margin-top: 1.75rem;
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

/* ---------- contact ---------- */

.cgrid {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.cgrid h3 {
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.cgrid p, .cgrid address {
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.98rem;
}
.cgrid a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.social a:hover { background: var(--white); color: var(--red); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.6rem var(--pad);
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
}
.foot img { height: 80px; width: auto; }

/* ---------- narrow ---------- */

@media (max-width: 1000px) {
  .crew { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .top__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
  }
  .top__toggle span,
  .top__toggle span::before,
  .top__toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
  }
  .top__toggle span { position: relative; }
  .top__toggle span::before,
  .top__toggle span::after { content: ""; position: absolute; left: 0; }
  .top__toggle span::before { top: -6px; }
  .top__toggle span::after { top: 6px; }

  .top__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--pad) 1rem;
    background: var(--black);
    border-bottom: 2px solid var(--red);
  }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

  .blk { scroll-margin-top: 46px; }
  .blk__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blk h2, .blk__body, .blk__full, .panels, .crew, .tiers, .cgrid { grid-column: auto; }
  .blk h2::after { margin-top: 1rem; }
  .panels { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .tier { grid-template-columns: 1fr; gap: 1rem; }
  .cgrid { grid-template-columns: 1fr; }
  .issue { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .figs { grid-template-columns: repeat(2, 1fr); }
  .figs > div { border-left: 2px solid rgba(14, 14, 14, 0.22); }
  .figs > div:nth-child(odd) { border-left: 0; }
  .figs > div:nth-child(n + 3) { border-top: 2px solid rgba(14, 14, 14, 0.22); }
}
