/*
Theme Name: Charcoal
Theme URI: https://charcoal.click
Author: CL!CK
Description: Landing page that opens with the CHARCOAL title glowing like an ember while the film loads, then fades up the film (watch on the page or full screen) and six tiles: four squares, then two wide boxes. A tile can loop a silent video. A page with its own film and pages under it (e.g. Black and White) looks like the home page. Other pages are square tiles that swap places, as on Complicit. Part of the CL!CK family.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: charcoal
*/

:root {
  --ground: #FAF7EE;
  --charcoal: #333436;
  --ink: #2A2B2D;
  --muted: #55565A;
  --font: 'Antonio', 'Arial Narrow', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --word-shadow: -0.022em 0.016em 0.012em rgba(30,30,32,0.28), -0.05em 0.04em 0.07em rgba(30,30,32,0.14);
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--charcoal);
  font-family: var(--font);
}
a { color: var(--charcoal); }
a:hover { color: #111111; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Copyright, bottom right on every page ---------- */
.cx-foot {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(12px, 2.5vh, 28px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--charcoal);
  pointer-events: none;
}
.cx-foot svg { height: 12px; width: auto; display: block; }
.cx-foot .cx-c { align-self: flex-start; font-size: 10px; line-height: 1; margin-top: -1px; }
/* Year digits sized and placed to match the K in the 12px CL!CK graphic. */
.cx-foot .cx-y { align-self: flex-start; font-size: 11.5px; line-height: 1; margin-top: -1.1px; }

/* ---------- Tile pages (topics, About, News, any page) ---------- */
.cx-page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.cx-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  box-sizing: border-box;
}
.cx-title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-shadow: var(--word-shadow);
}
.cx-brand {
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;
}
.cx-area {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: clamp(76px, 11vh, 104px);
}
.cx-box {
  --t: 190,172,232;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  margin: 0;
  padding: clamp(16px, 3vmin, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid rgba(var(--t), 0.45);
  border-radius: 2px;
  box-shadow: -14px 18px 44px rgba(var(--t), 0.55), -4px 6px 14px rgba(var(--t), 0.5);
  font: inherit;
}
.cx-ready .cx-box {
  transition: scale .25s ease, box-shadow .25s ease, opacity 1.4s ease, transform 1.4s ease,
    left 2.4s cubic-bezier(.65,0,.35,1), top 2.4s cubic-bezier(.65,0,.35,1);
}
.cx-box:hover, .cx-box:focus-visible { z-index: 20 !important; scale: 1.03; }
.cx-box:focus-visible, .cx-x:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 4px; }
.cx-box-title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(20px, 3.4vmin, 34px);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cx-box-sum {
  font-family: var(--serif);
  font-size: clamp(13px, 1.7vmin, 16px);
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Opened tile ---------- */
.cx-overlay[hidden] { display: none; }
.cx-overlay { position: fixed; inset: 0; z-index: 40; }
.cx-backdrop {
  position: absolute;
  inset: 0;
  margin: 0; padding: 0; border: 0;
  cursor: pointer;
  background: rgba(250,247,238,0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: cx-fade .25s ease both;
}
.cx-sheet {
  --t: 190,172,232;
  position: absolute;
  inset: clamp(12px, 3vmin, 40px);
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid rgba(var(--t), 0.45);
  border-radius: 2px;
  box-shadow: -24px 30px 80px rgba(var(--t), 0.6), -6px 8px 22px rgba(var(--t), 0.5);
  animation: cx-grow .35s cubic-bezier(.2,.8,.2,1) both;
}
.cx-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 4vmin, 48px) clamp(20px, 4vmin, 48px) 0;
}
.cx-sheet-head h2 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(34px, 6vmin, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.cx-x {
  flex: none;
  width: 48px; height: 48px;
  margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--charcoal);
  border: 1px solid rgba(51,52,54,0.3);
  border-radius: 50%;
}
.cx-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(20px, 3vmin, 32px) clamp(20px, 4vmin, 48px) clamp(24px, 4vmin, 48px);
}
.cx-content {
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw + 8px, 20px);
  line-height: 1.6;
}
.cx-content > *:first-child { margin-top: 0; }
.cx-content h2, .cx-content h3, .cx-content h4 {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--charcoal);
}
.cx-content img, .cx-content video, .cx-content iframe { max-width: 100%; height: auto; }
.cx-content input, .cx-content textarea, .cx-content select, .cx-content button { font: inherit; }
.cx-store { display: none; }

@keyframes cx-grow { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }
@keyframes cx-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .cx-sheet, .cx-backdrop { animation: none; }
}


/* =========================================================
   Charcoal landing page
   ========================================================= */
body.ch-landing-body {
  --ch-ground: #0B0B0C;
  --ch-text: #D9D6CF;
  --ch-dim: #8E8B85;
  --ch-line: rgba(255,255,255,0.12);
  --ch-ember: 255,94,0;
  background: var(--ch-ground);
  color: var(--ch-text);
}
body.ch-landing-body .cx-foot {
  position: static;
  justify-content: flex-end;
  padding: 0 clamp(16px, 4vw, 56px) clamp(16px, 3vh, 28px);
  color: var(--ch-dim);
}
html.ch-locked, html.ch-locked body { overflow: hidden; }

.ch-landing {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 clamp(16px, 4vw, 56px) clamp(40px, 7vh, 80px);
  box-sizing: border-box;
  overflow-x: hidden;
}
.ch-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.2;
  animation: ch-flicker 0.15s infinite;
}
.ch-head, .ch-film, .ch-tiles { position: relative; z-index: 1; }
.ch-landing .cx-overlay { z-index: 60; }

/* ---------- Title: glows like an ember, then cools to charcoal ---------- */
.ch-head {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 9vh, 110px) 0 clamp(28px, 6vh, 72px);
}
.ch-word {
  position: relative;
  margin: 0;
  padding-left: 0.18em; /* balances the letter-spacing after the last letter */
  font-family: var(--font);
  font-weight: 100;
  font-size: clamp(48px, 11vw, 168px);
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #4A4A4D;
  text-shadow: 0 0 1px rgba(255,255,255,0.06);
}

/* ---------- Intro: the title plays full screen first ---------- */
.ch-intro-layer { display: none; }
html.ch-intro .ch-intro-layer,
html.ch-intro-out .ch-intro-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  transition: opacity 1.6s ease;
}
html.ch-intro-out .ch-intro-layer { opacity: 0; pointer-events: none; }
html.ch-intro, html.ch-intro body { overflow: hidden; }
.ch-intro-layer .ch-grain { position: absolute; }
.ch-intro-word {
  position: relative;
  padding-left: 0.18em;
  font-family: var(--font);
  font-weight: 100;
  font-size: 9vw;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #2a0000;
  user-select: none;
  animation: ch-heat 14s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.ch-intro-word::before,
.ch-intro-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding-left: inherit;
  pointer-events: none;
  opacity: 0;
}
.ch-intro-word::before {
  color: rgba(255, 0, 0, 0.95);
  filter: blur(24px);
  animation: ch-glow 14s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.ch-intro-word::after {
  color: rgba(255, 255, 255, 0.95);
  filter: blur(2px);
  animation: ch-core 8s ease-in-out forwards;
}
.ch-skip {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vh, 32px);
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

/* The page waits behind the intro, then fades up: title, film, then tiles. */
.ch-head, .ch-film, .ch-tiles, body.ch-landing-body .cx-foot {
  transition: opacity 1.4s ease, transform 1.4s ease;
}
html.ch-intro .ch-head,
html.ch-intro .ch-film,
html.ch-intro .ch-tiles,
html.ch-intro body.ch-landing-body .cx-foot {
  opacity: 0;
  transform: translateY(14px);
}
/* Delays only apply on the way in, after the title has faded away. */
html:not(.ch-intro) .ch-head { transition-delay: 1.1s; }
html:not(.ch-intro) .ch-film { transition-delay: 1.35s; }
html:not(.ch-intro) .ch-tiles { transition-delay: 1.7s; }
html:not(.ch-intro) body.ch-landing-body .cx-foot { transition-delay: 2s; }

/* ---------- Film ---------- */
.ch-film { max-width: 1280px; margin: 0 auto; }
.ch-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--ch-line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.6);
  overflow: hidden;
}
.ch-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.ch-screen.is-full { border: 0; box-shadow: none; }
.ch-screen.is-full .ch-video { object-fit: contain; }
.ch-play {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #F4EFE6;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%), var(--poster, none) center / cover no-repeat #000;
  transition: background .3s ease;
}
.ch-play svg {
  width: clamp(64px, 11vw, 112px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55));
  transition: transform .25s ease, color .25s ease, filter .25s ease;
}
.ch-play:hover svg, .ch-play:focus-visible svg {
  transform: scale(1.06);
  color: #FFD9B8;
  filter: drop-shadow(0 0 22px rgba(var(--ch-ember),0.65));
}
.ch-play:focus-visible { outline: 3px solid #F4EFE6; outline-offset: -6px; }
.ch-screen.is-started .ch-play { display: none; }
.ch-nofilm {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 14px 18px;
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F4EFE6;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.ch-film-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}
.ch-note {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ch-dim);
}
.ch-full {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ch-text);
  background: transparent;
  border: 1px solid var(--ch-line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.ch-full:hover, .ch-full:focus-visible {
  color: #FFFFFF;
  border-color: rgba(var(--ch-ember),0.7);
  box-shadow: 0 0 18px rgba(var(--ch-ember),0.25);
}
.ch-full:focus-visible { outline: 2px solid #F4EFE6; outline-offset: 3px; }

/* ---------- Full HD download line ---------- */
.ch-dl {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ch-line);
}
.ch-dl-text {
  flex: 1 1 360px;
  max-width: 680px;
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ch-dim);
}
.ch-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #F2B48A;
  border: 1px solid rgba(var(--ch-ember),0.45);
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ch-dl-link:hover, .ch-dl-link:focus-visible {
  color: #FFFFFF;
  border-color: rgba(var(--ch-ember),0.8);
  box-shadow: 0 0 18px rgba(var(--ch-ember),0.3);
}
.ch-dl-link:focus-visible { outline: 2px solid #F4EFE6; outline-offset: 3px; }
.ch-dl-btns { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; max-width: 100%; }
.ch-donate { color: var(--ch-text); border-color: var(--ch-line); }

/* ---------- Tiles: four squares, then two slim wide boxes ---------- */
.ch-tiles {
  max-width: 1280px;
  margin: clamp(36px, 7vh, 80px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}
.ch-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(16px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  color: var(--ch-text);
  background: #151517;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--ch-line);
  border-radius: 2px;
  box-shadow: -10px 14px 34px rgba(0,0,0,0.55);
  cursor: pointer;
  overflow: hidden;
  transition: scale .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ch-tile.has-img {
  background-image: linear-gradient(to top, rgba(8,8,9,0.92) 0%, rgba(8,8,9,0.35) 55%, rgba(8,8,9,0.15) 100%), var(--img);
}

/* Tiles 5 and 6: slim boxes, each as wide as two squares. The second sits right. */
.ch-tile.is-wide {
  grid-column: span 2;
  aspect-ratio: 4 / 1;
  gap: 4px;
}
.ch-tile.is-wide .ch-tile-title {
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: 0.14em;
}
.ch-tile.is-wide .ch-tile-sum { max-width: 34em; }
.ch-tile.is-wide.has-img {
  background-image: linear-gradient(to right, rgba(8,8,9,0.9) 0%, rgba(8,8,9,0.35) 70%), var(--img);
}
.ch-tile.is-wide.is-right { align-items: flex-end; text-align: right; }
.ch-tile.is-wide.is-right.has-img {
  background-image: linear-gradient(to left, rgba(8,8,9,0.9) 0%, rgba(8,8,9,0.35) 70%), var(--img);
}
.ch-tile:hover, .ch-tile:focus-visible {
  scale: 1.03;
  color: #FFFFFF;
  border-color: rgba(var(--ch-ember),0.55);
  box-shadow: -10px 14px 34px rgba(0,0,0,0.55), 0 0 28px rgba(var(--ch-ember),0.22);
}
.ch-tile:focus-visible { outline: 3px solid #F4EFE6; outline-offset: 4px; }
.ch-tile.is-empty { cursor: default; opacity: 0.55; }
.ch-tile.is-empty:hover { scale: 1; border-color: var(--ch-line); box-shadow: -10px 14px 34px rgba(0,0,0,0.55); color: var(--ch-text); }
.ch-tile-title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ch-tile-sum {
  font-family: var(--serif);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.4;
  color: var(--ch-dim);
}
.ch-tile.has-img .ch-tile-sum { color: #C9C5BD; }

/* A tile that loops a silent video (e.g. Black and White). */
.ch-tile.has-video { background-color: #000; }
.ch-tile-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.ch-tile.has-video:not(.no-words)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8,8,9,0.92) 0%, rgba(8,8,9,0.2) 55%, rgba(8,8,9,0) 100%);
}
.ch-tile.has-video .ch-tile-title, .ch-tile.has-video .ch-tile-sum { position: relative; z-index: 2; }
/* Words hidden on the tile (still read out by screen readers). */
.ch-tile.no-words .ch-tile-title, .ch-tile.no-words .ch-tile-sum {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Film pages (e.g. Black and White) ---------- */
.ch-head-page {
  position: relative;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(64px, 11vh, 120px);
}
.ch-word.ch-word-page {
  font-size: clamp(30px, 6.4vw, 104px);
  white-space: normal;
  text-align: center;
  color: #6A6A6E;
}
.ch-back {
  position: absolute;
  top: clamp(18px, 3vh, 32px);
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ch-dim);
  transition: color .2s ease;
}
.ch-back:hover, .ch-back:focus-visible { color: #FFFFFF; }
.ch-page-text {
  max-width: 720px;
  margin: clamp(20px, 4vh, 40px) auto 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.2vw + 8px, 19px);
  line-height: 1.6;
  color: var(--ch-text);
}
.ch-page-text a { color: #F2B48A; }
.ch-full { white-space: nowrap; }

/* Opened tile on the landing page: dark version of Complicit's sheet. */
.ch-overlay .cx-backdrop { background: rgba(6,6,7,0.7); }
.ch-overlay .cx-sheet {
  background: #141416;
  color: var(--ch-text);
  border-color: var(--ch-line);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 40px rgba(var(--ch-ember),0.12);
  animation: cx-fade .3s ease both;
}
.ch-overlay .cx-sheet-head h2 { color: var(--ch-text); font-weight: 300; letter-spacing: 0.08em; }
.ch-overlay .cx-x { background: transparent; color: var(--ch-text); border-color: var(--ch-line); }
.ch-overlay .cx-content h2, .ch-overlay .cx-content h3, .ch-overlay .cx-content h4 { color: var(--ch-text); }
.ch-overlay .cx-content a { color: #F2B48A; }

@media (max-width: 900px) {
  .ch-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-tile.is-wide { aspect-ratio: 3 / 1; }
  .ch-tile.is-wide .ch-tile-title { font-size: clamp(20px, 4.4vw, 30px); }
  .ch-tile-title { font-size: clamp(20px, 4.4vw, 30px); }
  .ch-tile-sum { font-size: 14px; }
}
@media (max-width: 420px) {
  .ch-tiles { gap: 12px; }
  .ch-tile.is-wide { aspect-ratio: 5 / 2; }
  .ch-tile.is-wide .ch-tile-title { font-size: 21px; }
  .ch-tile { padding: 14px; }
  .ch-tile-title { font-size: 19px; }
  .ch-tile-sum { display: none; }
  .ch-full { padding: 9px 13px; font-size: 14px; }
}

@keyframes ch-heat {
  0%   { color: #120000; text-shadow: 0 0 2px #200, 0 0 6px #300; }
  18%  { color: #aa2200; text-shadow: 0 0 10px #f40, 0 0 20px #f60, 0 0 35px #f80; }
  32%  { color: #7a0000; text-shadow: 0 0 8px #900, 0 0 18px #c00, 0 0 28px #f00; }
  46%  { color: #fff5dd; text-shadow: 0 0 8px #fff, 0 0 18px #ffb347, 0 0 35px #ff5e00, 0 0 60px #ff2a00, 0 0 120px #ff0000, 0 0 220px #ffffff; }
  58%  { color: #990000; text-shadow: 0 0 10px #b00, 0 0 25px #f00, 0 0 40px #f00; }
  68%  { color: #d04000; text-shadow: 0 0 12px #ff4d00, 0 0 25px #ff6a00; }
  82%  { color: #2a2a2a; text-shadow: 0 0 3px rgba(255,255,255,0.03), 0 0 6px rgba(120,120,120,0.02); }
  100% { color: #1a1a1a; text-shadow: 0 0 1px rgba(255,255,255,0.02); }
}
@keyframes ch-glow {
  0%   { opacity: 0.05; transform: scale(1); }
  50%  { opacity: 1; transform: scale(1.01); }
  82%  { opacity: 0.08; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes ch-core {
  0%, 30%, 100% { opacity: 0; }
  44%, 64% { opacity: 1; }
  70% { opacity: 0.25; }
}
@keyframes ch-flicker {
  0% { opacity: 0.18; } 50% { opacity: 0.23; } 100% { opacity: 0.19; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-grain { animation: none; }
  .ch-head, .ch-film, .ch-tiles, body.ch-landing-body .cx-foot { transition: none; }
}
