/* ════════════════════════════════════════════════════════════════
   19-PUZZLE — וייב קוד ניוז · פאזל
   Interactive drag-to-assemble puzzle prototype.
   Signature: Vanilla Pointer Events drag API + GSAP tween on release.
   Palette: soft pastels (peach / mint / lavender / butter / sky) on cream
            substrate, with thick black outlines (3-4px) and a friendly
            rounded typography stack.
   Chat: appears as puzzle tiles that snap together to form the chat UI.
   ════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Cream substrate */
  --cream:        #fef9ef;
  --cream-soft:   #fdf3df;
  --cream-dim:    #f5e9c8;

  /* Pastel palette */
  --peach:        #ffd6a5;
  --mint:         #caffbf;
  --lavender:     #bdb2ff;
  --butter:       #fdffb6;
  --sky:          #a0c4ff;

  /* Pastel deeper variants for hover/active */
  --peach-deep:   #ffc285;
  --mint-deep:    #b0f0a0;
  --lavender-deep:#a39aff;
  --butter-deep:  #f5f790;
  --sky-deep:     #80adff;

  /* Black outline */
  --ink:          #1a1a1a;
  --ink-soft:     #2a2a2a;
  --ink-mute:     #4a4a4a;

  /* Chat skin brand colors (kept from spec) */
  --wa-green:     #25D366;
  --wa-green-d:   #128C7E;
  --wa-bg:        #0f1a14;
  --tg-blue:      #2AABEE;
  --tg-blue-d:    #229ED9;
  --tg-bg:        #0d141d;
  --ms-blue:      #0099FF;
  --ms-purple:    #A033FF;
  --ms-bg:        #150f1f;

  /* Outline widths */
  --stroke-thin:  2px;
  --stroke:       3px;
  --stroke-thick: 4px;

  /* Typography */
  --font-display: 'Quicksand', 'Heebo', 'Nunito', 'Comic Sans MS', system-ui, sans-serif;
  --font-body:    'Quicksand', 'Heebo', 'Nunito', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --container:    1280px;
  --gutter:       32px;

  /* Timing */
  --t-quick:      0.18s;
  --t-base:       0.32s;
  --t-slow:       0.6s;
  --easing:       cubic-bezier(0.34, 1.56, 0.64, 1);
  --easing-soft:  cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ─── Reset (scoped) ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Paper grain overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ─── Selection ─── */
::selection {
  background: var(--ink);
  color: var(--cream);
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────
   MASTHEAD — sticky top with thick border
───────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--stroke-thick) solid var(--ink);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--sky);
  border: var(--stroke) solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.masthead-nav {
  display: flex;
  gap: 0;
  align-items: center;
  border: var(--stroke) solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.masthead-nav a {
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  border-inline-start: var(--stroke) solid var(--ink);
  transition: background var(--t-quick) var(--easing-soft);
}

.masthead-nav a:first-child {
  border-inline-start: none;
}

.masthead-nav a[aria-current="page"] {
  background: var(--butter);
}

.masthead-nav a:hover {
  background: var(--peach);
}

.masthead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.masthead-side .num {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

@media (max-width: 720px) {
  .masthead-nav { display: none; }
  .masthead-side { display: none; }
}

/* ─────────────────────────────────────────
   TICKER — top marquee (replaces typical ticker
   with horizontal scrolling puzzle pieces)
───────────────────────────────────────── */
.ticker {
  position: relative;
  z-index: 5;
  background: var(--ink);
  color: var(--cream);
  border-bottom: var(--stroke-thick) solid var(--ink);
  overflow: hidden;
  font-family: var(--font-mono);
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  padding: 10px 0;
  animation: tickerScroll 38s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-item::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--peach);
  border: 2px solid var(--cream);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ticker-item .time {
  font-weight: 700;
  color: var(--butter);
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   HERO — Drag-to-assemble the headline
───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 32px;
  z-index: 2;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-eyebrow .dot {
  width: 12px;
  height: 12px;
  background: var(--peach);
  border: 2px solid var(--ink);
  display: inline-block;
  transform: rotate(45deg);
}

.hero-eyebrow .line {
  flex: 1;
  min-width: 40px;
  height: 2px;
  background: var(--ink);
  opacity: 0.4;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.hero h1 .accent { color: var(--lavender-deep); }

.hero-sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--butter);
  border: var(--stroke) solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--ink);
  cursor: pointer;
  transition: transform var(--t-quick) var(--easing-soft), box-shadow var(--t-quick) var(--easing-soft);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 0 var(--ink);
}

.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 0 var(--ink);
}

.btn.btn-alt {
  background: var(--sky);
}

.btn.btn-ghost {
  background: var(--cream);
}

/* ─────────────────────────────────────────
   PUZZLE CANVAS — drag-to-assemble board
───────────────────────────────────────── */
.puzzle-wrap {
  margin: 24px 0 64px;
  position: relative;
  z-index: 2;
}

.puzzle-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.puzzle-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 0;
}

.puzzle-title .num {
  display: inline-block;
  background: var(--mint);
  border: var(--stroke) solid var(--ink);
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.7em;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-inline-end: 10px;
  box-shadow: 3px 3px 0 0 var(--ink);
}

.puzzle-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 16px;
  align-items: center;
}

.puzzle-meta strong {
  color: var(--ink);
  font-weight: 700;
}

/* The full board: scattered pieces on top, slots on bottom (or side-by-side) */
.puzzle-board {
  position: relative;
  background: var(--cream-soft);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  min-height: 540px;
  padding: 24px;
  overflow: hidden;
}

.puzzle-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ─── Slots: target drop positions for each puzzle piece ─── */
.puzzle-slots {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
  min-height: 460px;
}

.puzzle-slot {
  position: relative;
  min-height: 180px;
  background: var(--cream);
  border: var(--stroke) dashed var(--ink);
  display: flex;
  flex-direction: column;
  padding: 14px;
  transition: background var(--t-quick) var(--easing-soft), border-color var(--t-quick) var(--easing-soft);
}

.puzzle-slot[data-bg="peach"]    { background: #fff3e2; }
.puzzle-slot[data-bg="mint"]     { background: #e5fbe0; }
.puzzle-slot[data-bg="lavender"] { background: #eae6ff; }
.puzzle-slot[data-bg="butter"]   { background: #fffee0; }
.puzzle-slot[data-bg="sky"]      { background: #dde8ff; }

.puzzle-slot.is-over {
  border-style: solid;
  background: var(--butter);
}

.puzzle-slot.is-snapped {
  border-style: solid;
  background: transparent;
  border-color: var(--ink);
  padding: 0;
}

.puzzle-slot-num {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.puzzle-slot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: auto;
}

.puzzle-slot.is-snapped .puzzle-slot-label,
.puzzle-slot.is-snapped .puzzle-slot-num {
  display: none;
}

/* ─── Pieces: draggable puzzle tiles ─── */
.puzzle-piece {
  position: absolute;
  z-index: 30;
  min-width: 180px;
  min-height: 180px;
  padding: 16px;
  background: var(--peach);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 8px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow var(--t-quick) var(--easing-soft);
}

.puzzle-piece[data-bg="peach"]    { background: var(--peach); }
.puzzle-piece[data-bg="mint"]     { background: var(--mint); }
.puzzle-piece[data-bg="lavender"] { background: var(--lavender); }
.puzzle-piece[data-bg="butter"]   { background: var(--butter); }
.puzzle-piece[data-bg="sky"]      { background: var(--sky); }

.puzzle-piece.is-dragging {
  cursor: grabbing;
  z-index: 100;
  box-shadow: 12px 12px 0 0 var(--ink);
  transition: none;
}

.puzzle-piece.is-snapped {
  cursor: default;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
}

.puzzle-piece-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  align-self: flex-start;
  padding: 2px 8px;
}

.puzzle-piece-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.puzzle-piece-excerpt {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.puzzle-piece-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.puzzle-piece.is-snapped .puzzle-piece-tag,
.puzzle-piece.is-snapped .puzzle-piece-excerpt,
.puzzle-piece.is-snapped .puzzle-piece-meta {
  display: none;
}

.puzzle-piece.is-snapped .puzzle-piece-title {
  font-size: 18px;
  line-height: 1.25;
}

/* Piece tab/knob (visual puzzle piece detail) */
.puzzle-piece::before,
.puzzle-piece::after {
  content: '';
  position: absolute;
  background: inherit;
  border: var(--stroke-thick) solid var(--ink);
  width: 24px;
  height: 24px;
  z-index: 0;
}

.puzzle-piece::before {
  top: -14px;
  inset-inline-start: 22px;
  border-radius: 50%;
  background: inherit;
  border-bottom: none;
  border-inline-end: none;
  border-inline-start: none;
  width: 28px;
  height: 14px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.puzzle-piece::after {
  bottom: -14px;
  inset-inline-end: 22px;
  border-top: none;
  border-inline-start: none;
  border-inline-end: none;
  width: 28px;
  height: 14px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Puzzle controls */
.puzzle-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.puzzle-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--cream);
}

.puzzle-status .count {
  font-weight: 700;
  color: var(--ink);
}

.puzzle-status .count::after { content: ' / '; opacity: 0.5; }
.puzzle-status .total { color: var(--ink); font-weight: 700; }

.puzzle-status .check {
  width: 10px;
  height: 10px;
  background: var(--mint);
  border: 2px solid var(--ink);
  display: inline-block;
}

@media (max-width: 880px) {
  .puzzle-slots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .puzzle-slots { grid-template-columns: 1fr; }
  .puzzle-board { padding: 16px; }
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.section {
  position: relative;
  padding: 80px 0;
  z-index: 2;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: var(--stroke) dashed var(--ink);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.section-title .accent { color: var(--lavender-deep); }

.section-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.section-aside a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   CHAT — as puzzle tiles snapping together
───────────────────────────────────────── */
.chat-section {
  position: relative;
  z-index: 2;
  background: var(--cream-soft);
  border-top: var(--stroke-thick) solid var(--ink);
  border-bottom: var(--stroke-thick) solid var(--ink);
  padding: 80px 0;
}

.chat-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.chat-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 8px 0 12px;
}

.chat-text p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.chat-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.chat-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.chat-points li::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--mint);
  border: 2px solid var(--ink);
  flex-shrink: 0;
  transform: rotate(45deg);
}

.chat-points li:nth-child(2)::before { background: var(--peach); }
.chat-points li:nth-child(3)::before { background: var(--lavender); }
.chat-points li:nth-child(4)::before { background: var(--butter); }
.chat-points li:nth-child(5)::before { background: var(--sky); }

@media (min-width: 980px) {
  .chat-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }
}

/* ─── Chat as puzzle tiles: 4 tiles that snap to form the chat frame ─── */
.chat-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 720px;
}

.chat-tiles {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 720px;
}

/* When the chat is assembled, position it absolutely over the tiles' top area */
.chat-stage .chat-assembled {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 540px;
  margin: 0;
  max-width: none;
  z-index: 20;
}

.chat-tile {
  position: absolute;
  z-index: 5;
  padding: 14px 16px;
  background: var(--cream);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 80px;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow var(--t-quick) var(--easing-soft);
}

.chat-tile.is-dragging {
  cursor: grabbing;
  z-index: 50;
  box-shadow: 10px 10px 0 0 var(--ink);
  transition: none;
}

.chat-tile.is-snapped {
  cursor: default;
  box-shadow: none;
  z-index: 18;
}

/* The 4 tile positions when scattered (tray area at the bottom) */
.chat-tile.t-header {
  bottom: 4px;
  inset-inline-start: 20px;
  width: calc(50% - 26px);
  min-height: 96px;
  background: var(--lavender);
  transform: rotate(-3deg);
}

.chat-tile.t-messages {
  bottom: 4px;
  inset-inline-end: 20px;
  width: calc(50% - 26px);
  min-height: 96px;
  background: var(--mint);
  transform: rotate(2deg);
}

.chat-tile.t-input {
  bottom: 110px;
  inset-inline-start: 30px;
  width: calc(50% - 26px);
  min-height: 96px;
  background: var(--butter);
  transform: rotate(2.5deg);
}

.chat-tile.t-skin {
  bottom: 110px;
  inset-inline-end: 30px;
  width: calc(50% - 26px);
  min-height: 96px;
  background: var(--sky);
  transform: rotate(-2deg);
}

.chat-tile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  align-self: flex-start;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.chat-tile-preview {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin: 0;
}

.chat-tile.t-header .chat-tile-preview { color: var(--ink-soft); }

@media (min-width: 980px) {
  .chat-tiles {
    min-height: 740px;
  }
}

/* When chat is assembled, the tiles form the actual chat frame */
.chat-assembled {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--wa-bg);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 540px;
  color: #fff;
  font-family: var(--font-body);
  overflow: hidden;
  position: relative;
}

.chat-assembled.is-hidden {
  display: none;
}

.chat-assembled.skin-wa { background: var(--wa-bg); }
.chat-assembled.skin-tg { background: var(--tg-bg); }
.chat-assembled.skin-ms { background: var(--ms-bg); }

.chat-assembled .chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-assembled.skin-wa .chat-header { background: var(--wa-green-d); }
.chat-assembled.skin-tg .chat-header { background: var(--tg-blue-d); }
.chat-assembled.skin-ms .chat-header { background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple)); }

.chat-avatar {
  width: 36px; height: 36px;
  background: var(--cream);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  border: var(--stroke) solid var(--ink);
  flex-shrink: 0;
}

.chat-head-info { flex: 1; line-height: 1.2; min-width: 0; }
.chat-head-name { font-weight: 700; font-size: 14px; color: #fff; }
.chat-head-status {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.chat-head-status .typing-dot-mini {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

.chat-head-actions {
  font-family: var(--font-mono);
  font-size: 18px;
  color: rgba(255,255,255,0.5);
}

.chat-assembled .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-assembled .msg-date-sep {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.chat-assembled .bubble {
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px 10px 6px;
  border-radius: 8px;
  max-width: 88%;
  align-self: flex-start;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}

.chat-assembled.skin-wa .bubble { background: #fff; color: #111; }
.chat-assembled.skin-tg .bubble { background: rgba(42,171,238,0.18); }
.chat-assembled.skin-ms .bubble { background: rgba(255,255,255,0.1); }

.bubble-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.bubble.urgent .bubble-top { color: var(--red); }

.bubble.urgent {
  border-color: rgba(230, 57, 70, 0.45);
  animation: flashRed 2.4s ease-in-out infinite;
}

@keyframes flashRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.18); }
}

.bubble-tag {
  color: var(--red);
  font-weight: 700;
}

.urgent-badge {
  background: var(--red);
  color: #fff;
  padding: 1px 6px;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.16em;
}

.bubble-text { display: block; }

.bubble-time {
  display: block;
  text-align: end;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.chat-assembled.skin-wa .bubble-time { color: rgba(0,0,0,0.5); }

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  align-self: flex-start;
  margin-top: 4px;
}

.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.4);
}

.chat-assembled.skin-wa .chat-input { background: var(--wa-green-d); }
.chat-assembled.skin-tg .chat-input { background: var(--tg-blue-d); }
.chat-assembled.skin-ms .chat-input { background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple)); }

.chat-input-field {
  flex: 1;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.18);
}

.chat-assembled.skin-wa .chat-input-field { background: rgba(255,255,255,0.95); color: #111; }

.chat-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: var(--stroke-thin) solid var(--ink);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
}

.chat-assembled.skin-wa .chat-send { background: #fff; color: var(--wa-green-d); }

/* Skin switcher */
.skin-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.4);
  justify-content: center;
}

.skin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-inline-end: 4px;
}

.skin-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.55);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.skin-btn[data-skin="wa"] { border-color: rgba(37, 211, 102, 0.6); }
.skin-btn[data-skin="tg"] { border-color: rgba(42, 171, 238, 0.6); }
.skin-btn[data-skin="ms"] { border-color: rgba(160, 51, 255, 0.6); }

.skin-btn:hover { background: #fff; color: #000; }

.skin-btn.active[data-skin="wa"] { background: var(--wa-green); border-color: var(--wa-green); color: #fff; }
.skin-btn.active[data-skin="tg"] { background: var(--tg-blue); border-color: var(--tg-blue); color: #fff; }
.skin-btn.active[data-skin="ms"] { background: var(--ms-blue); border-color: var(--ms-blue); color: #fff; }

.chat-reset {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* ─── Hit zones for chat tile drops ─── */
.assembled-zone {
  position: absolute;
  border: var(--stroke) dashed rgba(26, 26, 26, 0.25);
  background: rgba(254, 249, 239, 0.4);
  pointer-events: none;
  z-index: 1;
  transition: background var(--t-quick) var(--easing-soft), border-color var(--t-quick) var(--easing-soft);
}

.assembled-zone.is-target { background: var(--butter); border-color: var(--ink); }

.assembled-zone[data-zone="header"]   { top: 0;    inset-inline-start: 0; inset-inline-end: 0; height: 64px; }
.assembled-zone[data-zone="messages"] { top: 80px; inset-inline-start: 0; inset-inline-end: 0; height: 280px; }
.assembled-zone[data-zone="skin"]     { top: 376px; inset-inline-start: 0; inset-inline-end: 0; height: 50px; }
.assembled-zone[data-zone="input"]    { top: 442px; inset-inline-start: 0; inset-inline-end: 0; height: 56px; }

/* ─────────────────────────────────────────
   FEATURED ARTICLES — puzzle tile grid
───────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.feature-card {
  background: var(--cream);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--ink);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.feature-card[data-bg="peach"]    { background: var(--peach); }
.feature-card[data-bg="mint"]     { background: var(--mint); }
.feature-card[data-bg="lavender"] { background: var(--lavender); }
.feature-card[data-bg="butter"]   { background: var(--butter); }
.feature-card[data-bg="sky"]      { background: var(--sky); }

.feature-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  align-self: flex-start;
  padding: 4px 10px;
}

.feature-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.feature-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 10px;
  border-top: 2px dashed var(--ink);
}

.feature-card-meta b {
  color: var(--ink);
  font-weight: 700;
}

.feature-card-rotate {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 30px;
  height: 30px;
  border: var(--stroke) solid var(--ink);
  background: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

@media (min-width: 600px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────
   NEWS HIGHLIGHTS
───────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.news-card {
  background: var(--cream);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--ink);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.news-card[data-bg="peach"]    { background: var(--peach); }
.news-card[data-bg="mint"]     { background: var(--mint); }
.news-card[data-bg="lavender"] { background: var(--lavender); }
.news-card[data-bg="butter"]   { background: var(--butter); }
.news-card[data-bg="sky"]      { background: var(--sky); }

.news-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.news-card-head .time { font-weight: 700; color: var(--ink); }

.news-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.news-card-dek {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: auto;
}

.news-card-urgency {
  position: absolute;
  top: -8px;
  inset-inline-end: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: var(--stroke) solid var(--ink);
  background: var(--cream);
  color: var(--ink);
}

.news-card.urgency-breaking { animation: newsPulse 2.4s ease-in-out infinite; }
.news-card.urgency-breaking .news-card-urgency { background: var(--ink); color: var(--butter); }
.news-card.urgency-high .news-card-urgency { background: var(--peach); }

@keyframes newsPulse {
  0%, 100% { box-shadow: 5px 5px 0 0 var(--ink); }
  50%      { box-shadow: 5px 5px 0 0 var(--ink), 0 0 0 6px rgba(255,214,165,0.5); }
}

@media (min-width: 700px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────
   QUOTE
───────────────────────────────────────── */
.quote-section {
  background: var(--mint);
  border-top: var(--stroke-thick) solid var(--ink);
  border-bottom: var(--stroke-thick) solid var(--ink);
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.quote-section .container {
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--ink);
  display: block;
  margin-bottom: 24px;
  font-weight: 800;
}

.quote-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 auto 18px;
  max-width: 720px;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

.quote-role {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-section .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 12px;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
}

.cta-section h2 .accent { color: var(--lavender-deep); }

.cta-section p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 24px;
}

/* ─────────────────────────────────────────
   ARTICLE LIST (article.html)
───────────────────────────────────────── */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.article-row {
  background: var(--cream);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  padding: 24px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  position: relative;
}

.article-row[data-bg="peach"]    { background: var(--peach); }
.article-row[data-bg="mint"]     { background: var(--mint); }
.article-row[data-bg="lavender"] { background: var(--lavender); }
.article-row[data-bg="butter"]   { background: var(--butter); }
.article-row[data-bg="sky"]      { background: var(--sky); }

.article-num {
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  border: var(--stroke) solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink-mute);
  align-self: start;
}

.article-num::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed var(--cream);
  pointer-events: none;
}

.article-body { display: flex; flex-direction: column; gap: 10px; }

.article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.article-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
  padding-top: 10px;
  border-top: 2px dashed var(--ink);
}

.article-meta .cat {
  background: var(--cream);
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 2px 8px;
  font-weight: 700;
}

.article-meta b {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 720px) {
  .article-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .article-list { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .article-row { grid-template-columns: 64px 1fr; }
}

/* ─────────────────────────────────────────
   NEWS LIST (news.html)
───────────────────────────────────────── */
.urgency-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.urgency-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--cream);
  border: var(--stroke) solid var(--ink);
  font-weight: 700;
  color: var(--ink);
}

.urgency-legend .swatch {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  display: inline-block;
}

.urgency-legend .swatch.breaking { background: var(--ink); }
.urgency-legend .swatch.breaking::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--peach);
  margin: 2px;
  animation: pulse 1.6s ease-in-out infinite;
}

.urgency-legend .swatch.high { background: var(--peach); }
.urgency-legend .swatch.normal { background: var(--cream); }

.news-row-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.news-row-full {
  background: var(--cream);
  border: var(--stroke-thick) solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--ink);
  padding: 20px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: start;
  position: relative;
}

.news-row-full[data-bg="peach"]    { background: var(--peach); }
.news-row-full[data-bg="mint"]     { background: var(--mint); }
.news-row-full[data-bg="lavender"] { background: var(--lavender); }
.news-row-full[data-bg="butter"]   { background: var(--butter); }
.news-row-full[data-bg="sky"]      { background: var(--sky); }

.news-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-weight: 700;
  border: 2px solid var(--ink);
}

.news-time-block .time { font-size: 18px; letter-spacing: 0.05em; }
.news-time-block .date { font-size: 9px; letter-spacing: 0.1em; margin-top: 4px; opacity: 0.8; }

.news-row-full h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}

.news-row-full .dek {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.news-row-full .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 2px dashed var(--ink);
}

.news-row-full .cat {
  background: var(--ink);
  color: var(--cream);
  padding: 2px 8px;
  font-weight: 700;
}

.urgency-flag {
  align-self: start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: var(--stroke) solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  white-space: nowrap;
}

.news-row-full.urgency-breaking { animation: newsPulse 2.4s ease-in-out infinite; }
.news-row-full.urgency-breaking .urgency-flag { background: var(--ink); color: var(--butter); }
.news-row-full.urgency-high .urgency-flag { background: var(--peach); }

@media (max-width: 600px) {
  .news-row-full { grid-template-columns: 60px 1fr; }
  .news-row-full .urgency-flag {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ─────────────────────────────────────────
   LISTING HERO (article.html / news.html)
───────────────────────────────────────── */
.listing-hero {
  padding: 56px 0 24px;
  position: relative;
  z-index: 2;
}

.listing-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

.listing-hero .eyebrow .count {
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  padding: 2px 10px;
  font-weight: 800;
}

.listing-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}

.listing-hero p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 40px;
  position: relative;
  z-index: 2;
  border-top: var(--stroke-thick) solid var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}

.footer-meta a {
  color: var(--butter);
  text-decoration: none;
  border-bottom: 2px solid var(--butter);
  align-self: flex-start;
}

.footer-meta code {
  background: rgba(255,255,255,0.1);
  padding: 1px 6px;
  border: 1px solid rgba(255,255,255,0.2);
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .puzzle-piece, .chat-tile {
    transition: none;
  }
}

/* ─────────────────────────────────────────
   MOBILE TWEAKS
───────────────────────────────────────── */
@media (max-width: 520px) {
  .hero { padding: 36px 0 16px; }
  .section { padding: 56px 0; }
  .article-row {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }
  .article-num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
