/* Home-only image layer: raster cinematic assets, no generated diagrams. */
.dead-reference-home {
  background:
    linear-gradient(180deg, rgba(4, 4, 4, .32), rgba(4, 4, 4, .94) 74%, rgba(4, 4, 4, 1)),
    radial-gradient(circle at 78% 10%, rgba(191, 58, 52, .2), transparent 30%),
    var(--ref-bg) center top / cover no-repeat !important;
}

.dead-reference-home::before {
  opacity: .72 !important;
  background:
    repeating-linear-gradient(0deg, rgba(238, 232, 224, .018) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(4, 4, 4, .72), transparent 44%, rgba(4, 4, 4, .7)) !important;
}

.dead-reference .dead-protocol,
.dead-reference .dead-brief,
.dead-reference .dead-side article,
.dead-reference-home .dead-modules a {
  border-color: rgba(238, 232, 224, .16) !important;
  background:
    linear-gradient(135deg, rgba(22, 16, 16, .52), rgba(5, 5, 5, .34)),
    rgba(5, 5, 5, .26) !important;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(238, 232, 224, .05), 0 26px 90px rgba(0, 0, 0, .38) !important;
}

.dead-reference .dead-protocol {
  background:
    linear-gradient(180deg, rgba(20, 15, 15, .62), rgba(5, 5, 5, .42)),
    var(--ref-side) center / cover no-repeat !important;
}

.dead-reference .dead-protocol::before {
  background:
    linear-gradient(180deg, rgba(4, 4, 4, .72), rgba(4, 4, 4, .88)),
    radial-gradient(circle at 50% 0%, rgba(191, 58, 52, .2), transparent 42%) !important;
}

.dead-reference .dead-brief {
  background:
    linear-gradient(90deg, rgba(4, 4, 4, .94) 0%, rgba(4, 4, 4, .7) 38%, rgba(4, 4, 4, .18) 66%, rgba(4, 4, 4, .64) 100%),
    linear-gradient(0deg, rgba(4, 4, 4, .84), transparent 48%),
    var(--ref-hero) center / cover no-repeat !important;
}

.dead-reference .dead-brief::before {
  background:
    repeating-linear-gradient(0deg, rgba(238, 232, 224, .018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 76% 24%, rgba(191, 58, 52, .22), transparent 30%) !important;
}

.dead-reference .dead-brief h1 {
  text-shadow: 0 5px 0 rgba(0, 0, 0, .46), 0 24px 70px rgba(0, 0, 0, .72) !important;
}

.dead-reference .dead-authbar a:first-child {
  background: rgba(238, 232, 224, .92) !important;
  color: rgba(9, 8, 8, .94) !important;
}

.dead-reference .dead-authbar button,
.dead-reference .dead-authbar a + a {
  background: rgba(58, 14, 13, .42) !important;
  border-color: rgba(191, 58, 52, .42) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dead-current i {
  background:
    linear-gradient(90deg, rgba(238, 232, 224, .8) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(238, 232, 224, .8) 0 1px, transparent 1px),
    rgba(238, 232, 224, .08) !important;
  background-size: 50% 100%, 100% 50%, auto !important;
}

.dead-reference-home .dead-modules a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--module-img) center / cover no-repeat;
  filter: saturate(.78) contrast(1.1) brightness(.56);
  transition: transform .45s ease, filter .25s ease;
}

.dead-reference-home .dead-modules a:hover::before {
  transform: scale(1.045);
  filter: saturate(.92) contrast(1.12) brightness(.68);
}

.dead-reference-home .dead-modules a::after {
  background:
    linear-gradient(0deg, rgba(3, 3, 3, .92), rgba(3, 3, 3, .5) 54%, rgba(3, 3, 3, .18)),
    repeating-linear-gradient(0deg, rgba(238, 232, 224, .018) 0 1px, transparent 1px 5px) !important;
}

.dead-lower.dead-cinema-lower {
  padding: clamp(74px, 7.5vw, 124px) 0 clamp(88px, 8vw, 132px) !important;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, .78), rgba(4, 4, 4, .98) 48%, rgba(4, 4, 4, 1)),
    radial-gradient(circle at 86% 10%, rgba(161, 43, 38, .2), transparent 30%) !important;
}

.dead-lower.dead-cinema-lower::before {
  background:
    linear-gradient(90deg, rgba(236, 232, 222, .022) 1px, transparent 1px),
    linear-gradient(0deg, rgba(236, 232, 222, .018) 1px, transparent 1px) !important;
  background-size: 58px 58px !important;
  opacity: .55 !important;
  filter: none !important;
}

.dead-lower.dead-cinema-lower::after {
  display: none !important;
}

.dead-lower.dead-cinema-lower .dead-lower-inner {
  width: min(1740px, calc(100% - 48px)) !important;
  display: grid !important;
  gap: clamp(16px, 1.45vw, 24px) !important;
}

.dead-cinema-stage,
.dead-image-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(236, 232, 222, .14);
  background: rgba(5, 5, 5, .72);
  box-shadow: inset 0 1px 0 rgba(236, 232, 222, .035), 0 30px 96px rgba(0, 0, 0, .34);
  isolation: isolate;
}

.dead-cinema-stage {
  min-height: clamp(560px, 45vw, 760px);
  display: grid;
  align-items: end;
  padding: clamp(34px, 5vw, 82px);
}

.dead-cinema-stage > img,
.dead-image-tile > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dead-cinema-stage > img {
  object-position: center;
  filter: saturate(.82) contrast(1.08) brightness(.74);
}

.dead-cinema-stage::before,
.dead-cinema-stage::after,
.dead-image-tile::before,
.dead-image-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dead-cinema-stage::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, .92) 0%, rgba(4, 4, 4, .72) 32%, rgba(4, 4, 4, .14) 68%, rgba(4, 4, 4, .6) 100%),
    linear-gradient(0deg, rgba(4, 4, 4, .82), transparent 48%);
}

.dead-cinema-stage::after,
.dead-image-tile::after {
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(236, 232, 222, .018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 74% 18%, rgba(177, 49, 43, .2), transparent 28%);
}

.dead-cinema-copy {
  max-width: 760px;
}

.dead-cinema-copy span,
.dead-image-tile span {
  color: rgba(218, 63, 55, .94);
  font-family: var(--dead-mono);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.dead-cinema-copy h2 {
  max-width: 740px;
  margin: 18px 0 0;
  color: rgba(238, 233, 224, .94);
  font-family: var(--dead-title);
  font-size: clamp(4.6rem, 7vw, 9.2rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 0, 0, .5);
}

.dead-cinema-copy p {
  max-width: 52ch;
  margin: 26px 0 0;
  color: rgba(238, 233, 224, .74);
  font-size: clamp(1rem, 1vw, 1.16rem);
  font-weight: 800;
  line-height: 1.58;
}

.dead-cinema-actions {
  margin-top: clamp(30px, 3.2vw, 46px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dead-cinema-actions a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 233, 224, .18);
  padding: 0 30px;
  background: rgba(238, 233, 224, .92);
  color: rgba(7, 7, 7, .94);
  font-family: var(--dead-mono);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.dead-cinema-actions a + a {
  background: rgba(58, 14, 13, .4);
  color: rgba(238, 233, 224, .9);
  border-color: rgba(177, 49, 43, .46);
}

.dead-cinema-actions a:hover,
.dead-image-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 233, 224, .34);
}

.dead-image-tiles {
  display: grid;
  grid-template-columns: 1.18fr .91fr .91fr;
  gap: clamp(14px, 1.35vw, 22px);
}

.dead-image-tile {
  min-height: clamp(280px, 25vw, 420px);
  display: grid;
  align-content: end;
  padding: clamp(24px, 2.6vw, 42px);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, filter .2s ease;
}

.dead-image-tile.is-large {
  min-height: clamp(340px, 28vw, 480px);
}

.dead-image-tile > img {
  object-position: center;
  filter: saturate(.78) contrast(1.08) brightness(.62);
  transition: transform .45s ease, filter .25s ease;
}

.dead-image-tile::before {
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(3, 3, 3, .94) 0%, rgba(3, 3, 3, .72) 34%, rgba(3, 3, 3, .1) 72%),
    linear-gradient(90deg, rgba(5, 5, 5, .58), transparent 68%);
}

.dead-image-tile:hover > img {
  transform: scale(1.045);
  filter: saturate(.9) contrast(1.1) brightness(.72);
}

.dead-image-tile strong {
  display: block;
  margin-top: 12px;
  color: rgba(238, 233, 224, .94);
  font-family: var(--dead-title);
  font-size: clamp(2.25rem, 3.1vw, 4.2rem);
  font-weight: 700;
  line-height: .9;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .5);
}

.dead-image-tile small {
  display: block;
  margin-top: 10px;
  color: rgba(238, 233, 224, .64);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .dead-lower.dead-cinema-lower .dead-lower-inner {
    width: calc(100% - 28px) !important;
  }

  .dead-image-tiles {
    grid-template-columns: 1fr;
  }

  .dead-image-tile,
  .dead-image-tile.is-large {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .dead-lower.dead-cinema-lower {
    padding: 58px 0 76px !important;
  }

  .dead-lower.dead-cinema-lower .dead-lower-inner {
    width: calc(100% - 24px) !important;
  }

  .dead-cinema-stage {
    min-height: 520px;
    padding: 26px;
  }

  .dead-cinema-stage > img {
    object-position: 60% center;
  }

  .dead-cinema-stage::before {
    background:
      linear-gradient(0deg, rgba(4, 4, 4, .94) 0%, rgba(4, 4, 4, .72) 54%, rgba(4, 4, 4, .2) 100%),
      linear-gradient(90deg, rgba(4, 4, 4, .76), rgba(4, 4, 4, .2));
  }

  .dead-cinema-copy h2 {
    font-size: clamp(2.85rem, 12.4vw, 3.3rem);
  }

  .dead-cinema-copy p {
    max-width: 100%;
    font-size: .95rem;
  }

  .dead-cinema-actions a {
    width: 100%;
    min-width: 0;
  }

  .dead-image-tile,
  .dead-image-tile.is-large {
    min-height: 240px;
    padding: 22px;
  }
}

.dead-current img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(238, 232, 224, .22);
  background:
    linear-gradient(135deg, rgba(238, 232, 224, .07), rgba(191, 58, 52, .08)),
    rgba(5, 5, 5, .62);
  box-shadow:
    inset 0 1px 0 rgba(238, 232, 224, .06),
    0 10px 26px rgba(0, 0, 0, .34);
}

.dead-current i {
  display: none !important;
}
