:root {
  --blood: #b80d0d;
  --red: #e01919;
  --ash: #c8c1b6;
  --black: #050505;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--black); }

body {
  color: var(--ash);
  font-family: "Barlow Condensed", Arial, sans-serif;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

.backdrop {
  position: fixed;
  inset: -3%;
  z-index: -4;
  background: #080808 url("assets/war-is-hell-logo.jpeg") center/cover no-repeat;
  filter: brightness(.28) saturate(.65) contrast(1.18);
  transform: scale(1.04);
  animation: breathe 16s ease-in-out infinite alternate;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.08) 15%, rgba(0,0,0,.72) 82%),
    linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.08) 35%, rgba(0,0,0,.82));
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 8;
  pointer-events: none;
  opacity: .10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain .22s steps(2) infinite;
}

.embers { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.ember { position: absolute; bottom: -10px; width: 2px; height: 2px; border-radius: 50%; background: #ff2b16; box-shadow: 0 0 7px #df160c; opacity: 0; animation: rise var(--duration) linear var(--delay) infinite; }

.content {
  width: min(900px, 92vw);
  margin: auto;
  padding: clamp(34px, 6vh, 78px) 0 32px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0 0 20px;
  color: #8e8982;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .25em;
}
.eyebrow span { width: 42px; height: 1px; background: #6e1111; }

.logo-video-wrap {
  position: relative;
  display: block;
  width: min(550px, 80vw);
  aspect-ratio: 1;
  margin: clamp(-75px, -6vw, -42px) auto clamp(-35px, -3vw, -20px);
}

.logo-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  mix-blend-mode: screen;
  filter: contrast(1.28) brightness(1.05) saturate(1.14) drop-shadow(0 18px 35px #000);
}

.sound-toggle {
  position: absolute;
  left: 50%;
  bottom: 14%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  padding: 8px 11px;
  border: 1px solid rgba(179,25,20,.65);
  background: rgba(0,0,0,.72);
  color: #c8bdb3;
  font: 600 9px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .16em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.sound-toggle:hover { color: #fff; border-color: var(--red); }
.sound-toggle svg { width: 14px; height: 14px; fill: var(--red); }
.sound-toggle.sound-on { opacity: .7; }

.countdown-shell {
  position: relative;
  width: min(670px, 100%);
  margin: 0 auto;
  padding: 18px clamp(10px, 3vw, 28px) 21px;
  border: 1px solid rgba(173, 29, 24, .45);
  background: linear-gradient(180deg, rgba(10,10,10,.78), rgba(4,4,4,.92));
  box-shadow: inset 0 0 30px #000, 0 12px 50px rgba(0,0,0,.65);
}

.stamp {
  position: absolute;
  right: -10px;
  top: -12px;
  padding: 3px 10px 2px;
  border: 2px solid var(--blood);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  transform: rotate(2deg);
  background: #080808;
}

.countdown-label { margin: 0 0 10px; color: #8d8881; font-size: 11px; font-weight: 600; letter-spacing: .26em; }
.countdown { display: flex; align-items: flex-start; justify-content: center; gap: clamp(5px, 2.2vw, 20px); }
.unit { min-width: clamp(48px, 11vw, 88px); }
.unit strong { display: block; color: #ede8df; font-size: clamp(32px, 7.5vw, 62px); line-height: .92; font-weight: 600; letter-spacing: .03em; text-shadow: 0 0 18px rgba(222, 25, 20, .2); }
.unit span { display: block; margin-top: 8px; color: #817b73; font-size: clamp(8px, 1.7vw, 11px); letter-spacing: .17em; }
.countdown i { color: var(--blood); font-size: clamp(27px, 6vw, 50px); font-style: normal; line-height: .8; opacity: .75; animation: pulse 2s infinite; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 13px;
  border: 1px solid rgba(150, 32, 27, .42);
  background: rgba(4, 4, 4, .62);
  color: #8d8780;
  font-size: 11px;
  letter-spacing: .13em;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.social-link:hover,
.social-link:focus-visible { color: #e8e1d8; border-color: #ad211c; background: rgba(30, 5, 4, .78); }
.social-link strong { color: #bc2923; font-weight: 700; }
.x-mark { color: #eee7df; font-size: 15px; line-height: 1; }

footer { padding: 16px 24px 22px; text-align: center; color: #68635c; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
footer p { margin: 4px 0; }
footer .anti-war { color: #8d2925; }

@keyframes breathe { to { transform: scale(1.08); filter: brightness(.34) saturate(.72) contrast(1.22); } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(3%, -2%); } 50% { transform: translate(-2%, 3%); } 75% { transform: translate(2%, 2%); } 100% { transform: translate(-3%, -3%); } }
@keyframes rise { 0% { opacity: 0; transform: translate3d(0,0,0); } 12% { opacity: .75; } 100% { opacity: 0; transform: translate3d(var(--drift), -105vh, 0); } }

@media (max-width: 560px) {
  .content { padding-top: 28px; }
  .logo-video-wrap { width: min(430px, 96vw); margin-top: -56px; margin-bottom: -28px; }
  .eyebrow { font-size: 9px; gap: 8px; }
  .eyebrow span { width: 22px; }
  .countdown-shell { padding-top: 20px; }
  .countdown { gap: 4px; }
  .unit { min-width: 51px; }
  .stamp { right: 6px; font-size: 9px; }
  footer { font-size: 8px; }
}

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