/* CHIKA.STREAM — clandestine cellar broadcast
   Palette: #1a1108 Cellar Black, #2c1f15 Bitumen, #5e3a1c Burnt Sienna,
   #a86a2e Aerosol Umber, #d4a052 Beeswax Amber, #e8d4a8 Vellum,
   #7a5a3a Tobacco, #3d2818 Walnut Stain */

:root {
  --cellar-black: #1a1108;
  --bitumen: #2c1f15;
  --burnt-sienna: #5e3a1c;
  --aerosol-umber: #a86a2e;
  --beeswax-amber: #d4a052;
  --vellum: #e8d4a8;
  --tobacco: #7a5a3a;
  --walnut-stain: #3d2818;
  --display: 'Bebas Neue', 'Big Shoulders Stencil Display', sans-serif;
  --stencil: 'Big Shoulders Stencil Display', 'Bebas Neue', sans-serif;
  --mono: 'JetBrains Mono', 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  background: var(--cellar-black);
}

body {
  font-family: var(--mono);
  color: var(--vellum);
  background-color: var(--cellar-black);
  background-image:
    repeating-linear-gradient(0deg,
      rgba(122,90,58,0.04) 0px, rgba(122,90,58,0.04) 1px,
      transparent 1px, transparent 38px),
    repeating-linear-gradient(90deg,
      rgba(61,40,24,0.05) 0px, rgba(61,40,24,0.05) 1px,
      transparent 1px, transparent 86px);
  background-attachment: fixed;
  cursor: none;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* extra ragged brick pseudo-layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent 0px, transparent 76px,
      rgba(61,40,24,0.06) 76px, rgba(61,40,24,0.06) 77px),
    repeating-linear-gradient(90deg,
      transparent 43px, transparent 86px,
      rgba(94,58,28,0.05) 86px, rgba(94,58,28,0.05) 130px);
  background-attachment: fixed;
}

.svg-defs { position: absolute; }

/* ---------- Bokeh field ---------- */
.bokeh-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bokeh-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.bokeh-field.intense .bokeh-orb { opacity: 1; }

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(0.9); }
  25%  { transform: translate3d(3vw,-4vh,0) scale(1.0); }
  50%  { transform: translate3d(-2vw,3vh,0) scale(0.95); }
  75%  { transform: translate3d(4vw,2vh,0) scale(1.05); }
  100% { transform: translate3d(0,0,0) scale(0.9); }
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  filter: url(#grain-noise);
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* ---------- Custom cursor ---------- */
.cursor-can {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  margin-left: -12px; margin-top: -12px;
  pointer-events: none;
  z-index: 9999;
  transition: transform 60ms linear;
}
.cursor-can.press { transform: scale(0.82); }
.dot-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.spray-dot {
  position: fixed;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--aerosol-umber);
  margin-left: -2px; margin-top: -2px;
  opacity: var(--o, 0.7);
}

/* ---------- Headlines / stencil-spray ---------- */
.headline {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--vellum);
  text-shadow: 1px 1px 0 var(--bitumen);
}
.headline[data-spray] { will-change: filter; }
.headline.sf-a { filter: url(#spray-stencil-a); }
.headline.sf-b { filter: url(#spray-stencil-b); }
.headline.sf-c { filter: url(#spray-stencil-c); }

.serial {
  font-family: var(--stencil);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.6vw, 1.4rem);
  letter-spacing: 0.18em;
  color: var(--burnt-sienna);
  display: inline-block;
  border: 1px solid var(--burnt-sienna);
  padding: 0.2em 0.6em 0.1em;
  transform: rotate(-1.6deg) skewX(-1.2deg);
  margin-bottom: 0.9rem;
  background: rgba(44,31,21,0.35);
}

section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  scroll-snap-align: start;
  padding: clamp(2.5rem, 6vw, 6rem);
  display: flex;
}

/* ---------- Section 1: Hero ---------- */
.s-hero { align-items: center; }
.hero-content {
  position: relative;
  width: 57%;
  max-width: 1100px;
  z-index: 3;
}
.candle-zone {
  position: absolute;
  right: 0; top: 0;
  width: 43%; height: 100%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 70% 35%, rgba(212,160,82,0.16), transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 60%, rgba(168,106,46,0.14), transparent 70%),
    radial-gradient(circle 30% at 60% 80%, rgba(212,160,82,0.10), transparent 70%);
  filter: blur(8px);
}
.on-air-mark {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aerosol-umber);
  margin-bottom: 1.5rem;
}
.domain-mark {
  font-size: clamp(6rem, 16vw, 14rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.05em;
  margin-bottom: 1.6rem;
}
.dm-word { display: inline-block; }
.dm-flame {
  display: inline-flex;
  align-items: flex-end;
  width: clamp(2.2rem, 5.5vw, 5rem);
  height: clamp(3.5rem, 9vw, 8rem);
  margin: 0 0.06em;
  transform-origin: 50% 100%;
}
.dm-flame svg { width: 100%; height: 100%; transform-origin: 50% 100%; animation: flicker 0.9s steps(4, end) infinite; }
@keyframes flicker {
  0%   { transform: skewX(-3deg) scaleY(1.0);  filter: brightness(1.05); }
  27%  { transform: skewX(4deg)  scaleY(1.12); filter: brightness(1.25); }
  63%  { transform: skewX(-2deg) scaleY(0.92); filter: brightness(0.9);  }
  100% { transform: skewX(3deg)  scaleY(1.04); filter: brightness(1.1);  }
}
.hero-stamp {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  color: var(--tobacco);
  letter-spacing: 0.06em;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}
.hs-indent { padding-left: 3.5ch; display: inline-block; color: var(--aerosol-umber); }
.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  color: var(--vellum);
  max-width: 46ch;
  line-height: 1.7;
}
.on-air-corner {
  position: absolute;
  left: 0; bottom: -2.5rem;
  font-family: var(--stencil);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.6rem);
  letter-spacing: 0.3em;
  color: var(--burnt-sienna);
  border: 1px solid var(--burnt-sienna);
  padding: 0.15em 0.7em;
  transform: rotate(-2.4deg);
}

/* ---------- Section 2: Manifesto Wall ---------- */
.s-wall { align-items: stretch; }
.wall-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
  gap: 1.2rem;
  width: 100%;
}
.block {
  background: linear-gradient(180deg, rgba(44,31,21,0.92), rgba(26,17,8,0.94));
  border: 1px solid rgba(94,58,28,0.45);
  border-bottom: none;
  padding: 1.6rem 1.8rem 2.6rem;
  transform: rotate(var(--rot, 0deg));
  position: relative;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}
.block::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 8%;
  background: inherit;
}
.block.b1 { grid-column: 1 / 6;  grid-row: 1 / 4; clip-path: url(#torn-1); }
.block.b2 { grid-column: 7 / 13; grid-row: 1 / 3; margin-right: -5%; clip-path: url(#torn-2); }
.block.b3 { grid-column: 2 / 7;  grid-row: 4 / 7; clip-path: url(#torn-3); }
.block.b4 { grid-column: 8 / 12; grid-row: 3 / 6; clip-path: url(#torn-1); }
.block.b5 { grid-column: 1 / 4;  grid-row: 7 / 10; margin-left: -4%; clip-path: url(#torn-2); }
.block.b6 { grid-column: 5 / 10; grid-row: 6 / 9; clip-path: url(#torn-3); }
.block.b7 { grid-column: 9 / 13; grid-row: 7 / 10; clip-path: url(#torn-1); }
.block .headline { font-size: clamp(2.4rem, 5vw, 5.6rem); margin-bottom: 0.7rem; }
.block .prose {
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--tobacco);
}
.block .prose-meta {
  font-family: var(--mono);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--burnt-sienna);
  margin-top: 0.8rem;
}

/* ---------- Section 3: Drip ---------- */
.s-drip { flex-direction: column; justify-content: center; align-items: center; gap: 2rem; overflow: hidden; }
.drip-label, .drip-foot {
  font-family: var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--aerosol-umber);
}
.drip-foot { color: var(--tobacco); letter-spacing: 0.12em; }
.drip-band {
  display: flex;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: flex-start;
  width: 100%;
  justify-content: center;
  min-height: 40vh;
  position: relative;
}
.drip-glyph {
  font-size: clamp(4rem, 13vw, 13rem);
  color: var(--vellum);
  will-change: transform;
  transform: translate3d(0,0,0);
}
.drip-glyph[data-drip="0"], .drip-glyph[data-drip="2"], .drip-glyph[data-drip="4"] { color: var(--beeswax-amber); }
.drip-glyph[data-drip="1"], .drip-glyph[data-drip="3"], .drip-glyph[data-drip="5"] { color: var(--aerosol-umber); }

/* ---------- Section 4: Reading Room ---------- */
.s-read { align-items: center; }
.read-col {
  width: 33%;
  min-width: 38ch;
  max-width: 52ch;
  position: relative;
  z-index: 3;
}
.read-bokeh {
  position: absolute;
  right: 0; top: 0;
  width: 67%; height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle 18vw at 75% 30%, rgba(212,160,82,0.13), transparent 70%),
    radial-gradient(circle 12vw at 88% 55%, rgba(168,106,46,0.12), transparent 70%),
    radial-gradient(circle 22vw at 60% 78%, rgba(212,160,82,0.09), transparent 70%),
    radial-gradient(circle 8vw at 80% 88%, rgba(232,212,168,0.07), transparent 70%);
  filter: blur(10px);
}
.read-head { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 1.4rem; }
.read-body {
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--vellum);
  margin-bottom: 1.3rem;
  max-width: 38ch;
}
.read-body em { color: var(--beeswax-amber); font-style: italic; }
.drop-quote {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.95;
  color: var(--aerosol-umber);
  text-shadow: 1px 1px 0 var(--bitumen);
  transform: rotate(1.6deg);
  margin: 1.8rem 0;
}
.read-meta {
  font-family: var(--mono);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--burnt-sienna);
  margin-top: 0.5rem;
}

/* ---------- Section 5: Frequencies ---------- */
.s-freq { flex-direction: column; justify-content: center; gap: 2rem; }
.freq-title { font-size: clamp(2.5rem, 6vw, 6rem); }
.freq-list { list-style: none; width: 100%; max-width: 1000px; }
.freq-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  margin-left: var(--indent, 0px);
  position: relative;
  font-family: var(--mono);
}
.freq-row::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--indent, 0px));
  right: 0;
  top: -3px;
  height: 1px;
  background: var(--burnt-sienna);
  opacity: 0.5;
  transform: translateY(var(--div-off, 0px));
}
.freq-row:nth-child(1) { --div-off: 4px; }
.freq-row:nth-child(2) { --div-off: -6px; }
.freq-row:nth-child(3) { --div-off: 9px; }
.freq-row:nth-child(4) { --div-off: -3px; }
.freq-row:nth-child(5) { --div-off: 7px; }
.freq-row:nth-child(6) { --div-off: -8px; }
.freq-row:nth-child(7) { --div-off: 5px; }
.fr-num {
  font-family: var(--stencil);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  color: var(--aerosol-umber);
  letter-spacing: 0.05em;
}
.fr-name {
  flex: 1;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vellum);
}
.fr-meta { font-size: 0.8rem; color: var(--tobacco); letter-spacing: 0.06em; }

/* ---------- Section 6: Sign-Off ---------- */
.s-end { align-items: center; justify-content: center; }
.end-content { text-align: center; position: relative; z-index: 3; }
.wax-puddle { display: block; margin: 0 auto 1.5rem; opacity: 0.85; }
.end-head {
  font-size: clamp(3rem, 9vw, 9rem);
  transform: rotate(-1.2deg);
  color: var(--vellum);
}
.end-tone {
  font-family: var(--mono);
  letter-spacing: 0.5em;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  color: var(--aerosol-umber);
  margin: 1.5rem 0;
}
.end-foot {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tobacco);
}

@media (max-width: 860px) {
  .hero-content, .read-col { width: 100%; min-width: 0; }
  .candle-zone, .read-bokeh { width: 100%; opacity: 0.5; }
  .wall-grid { display: flex; flex-direction: column; }
  .block { margin: 0 !important; }
  .domain-mark { font-size: clamp(3.5rem, 18vw, 8rem); }
  section { padding: 2rem 1.2rem; }
}
