/* ════════════════════════════════════════════════════════════════
   18-MIRROR — וייב קוד ניוז · מראה
   Editorial typography with word-level interactivity.
   Signature: GSAP SplitText + ScrollTrigger Pin for per-word hover.
   Pure black background + pure white text + single signal red accent.
   ════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --black:         #000000;
  --black-soft:    #0a0a0a;
  --black-raise:   #141414;
  --black-line:    #1f1f1f;
  --white:         #ffffff;
  --white-soft:    #f4f4f4;
  --white-dim:     #c8c8c8;
  --white-mute:    #8a8a8a;
  --red:           #e63946;
  --red-deep:      #b8202d;
  --red-glow:      rgba(230, 57, 70, 0.22);
  --red-flash:     rgba(230, 57, 70, 0.55);

  /* 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;

  /* Typography */
  --font-serif:    'Playfair Display', 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body:     'Heebo', 'Arial Hebrew', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --font-display:  'Playfair Display', 'Frank Ruhl Libre', serif;

  --container:     1280px;
  --gutter:        32px;
  --rule:          1px;
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Mono numerals */
.mono, time, .num, .lab {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
}

/* Selection */
::selection {
  background: var(--red);
  color: var(--white);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─────────────────────────────────────────
   GLOBAL TYPOGRAPHY
───────────────────────────────────────── */

/* Massive editorial headlines */
.mega {
  font-family: var(--font-serif);
  font-weight: 900;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-size: clamp(3.6rem, 13vw, 16rem);
  color: var(--white);
  margin: 0;
  word-break: break-word;
  hyphens: auto;
}

.big {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 7vw, 8rem);
  color: var(--white);
  margin: 0;
}

.serif {
  font-family: var(--font-serif);
}

/* Tokenized word spans (filled by SplitText) */
.split-word {
  display: inline-block;
  white-space: pre;
  transition: color 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, color, opacity;
  cursor: pointer;
}

.split-word.char {
  display: inline-block;
  white-space: pre;
}

.split-word:hover {
  color: var(--red);
}

.split-word.invert {
  background: var(--white);
  color: var(--black);
  padding: 0 0.08em;
  margin: 0 -0.04em;
}

.split-word.refract {
  transform: scaleY(-1);
  color: var(--red);
}

.split-word.dim {
  opacity: 0.35;
}

/* Subheads */
.h-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin: 0 0 18px;
  display: block;
}

.h-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
  margin-left: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}

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

/* ─────────────────────────────────────────
   MASTHEAD
───────────────────────────────────────── */
.masthead {
  position: relative;
  z-index: 50;
  border-bottom: var(--rule) solid var(--white);
  background: var(--black);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--white);
  position: relative;
}

.brand-mark::before {
  content: '';
  width: 14px; height: 14px;
  border: 1px solid var(--white);
  position: absolute;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  transform: scaleY(-1);
}

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

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

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

.masthead-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead-nav a {
  color: var(--white);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.masthead-nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.masthead-nav a:hover::after,
.masthead-nav a[aria-current="page"]::after {
  width: 100%;
}

.masthead-nav a:hover {
  color: var(--red);
}

.masthead-side {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead-side .num {
  color: var(--white);
  padding: 4px 8px;
  border: 1px solid var(--white);
}

@media (max-width: 720px) {
  .masthead-inner { flex-wrap: wrap; gap: 14px; padding: 16px 20px; }
  .masthead-nav { width: 100%; justify-content: flex-start; gap: 18px; order: 3; }
  .masthead-side { order: 2; }
}

/* ─────────────────────────────────────────
   TICKER — top marquee (cinema-style marquee repurposed as live ticker)
───────────────────────────────────────── */
.ticker {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: var(--rule) solid var(--black);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 36px;
  padding: 10px 0;
  animation: ticker 60s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

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

/* ─────────────────────────────────────────
   HERO — pinned massive headline
───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 60px 0 80px;
  border-bottom: var(--rule) solid var(--white);
  overflow: hidden;
}

.hero-inner {
  position: relative;
}

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

.hero-eyebrow .red {
  color: var(--red);
}

.hero-eyebrow .line {
  display: inline-block;
  flex: 1;
  height: 1px;
  background: var(--white);
  min-width: 60px;
  max-width: 240px;
  opacity: 0.5;
}

.hero-title {
  position: relative;
  z-index: 2;
}

.hero-title .meta-row {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
  flex-wrap: wrap;
}

.hero-title .meta-row b {
  color: var(--white);
  font-weight: 700;
}

/* Mirror ghost headline (the "refract" effect) */
.hero-mirror {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.hero-mirror .mega {
  color: var(--white);
  font-size: clamp(2.2rem, 8vw, 10rem);
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent 80%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent 80%);
  transform: scaleY(-1);
}

/* ─────────────────────────────────────────
   SECTION COMMONS
───────────────────────────────────────── */
.section {
  padding: 96px 0;
  border-bottom: var(--rule) solid var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: var(--rule) solid var(--white);
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; }
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin: 8px 0 0;
}

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

.section-aside {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
  text-align: end;
}

.section-aside a {
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--white);
  padding: 12px 16px;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.section-aside a:hover {
  background: var(--white);
  color: var(--black);
}

.section-aside a.red {
  border-color: var(--red);
  color: var(--red);
}

.section-aside a.red:hover {
  background: var(--red);
  color: var(--white);
}

/* ─────────────────────────────────────────
   PINNED HEADLINE — ScrollTrigger Pin section
───────────────────────────────────────── */
.pin-stage {
  position: relative;
  height: 220vh;
  border-bottom: var(--rule) solid var(--white);
}

.pin-stage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}

.pin-headline {
  font-family: var(--font-serif);
  font-weight: 900;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-size: clamp(3rem, 11vw, 14rem);
  color: var(--white);
  margin: 0;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.pin-headline .split-word {
  white-space: nowrap;
}

.pin-meta {
  position: absolute;
  inset-inline-start: 32px;
  bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-mute);
  text-align: start;
}

.pin-meta b { color: var(--red); }

.pin-counter {
  position: absolute;
  inset-inline-end: 32px;
  bottom: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--white-mute);
}

.pin-counter b { color: var(--white); font-size: 28px; }

/* floating ticker on left of pin stage */
.pin-progress {
  position: absolute;
  inset-inline-end: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 30vh;
  background: rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.pin-progress-fill {
  width: 100%;
  height: 0%;
  background: var(--red);
}

/* ─────────────────────────────────────────
   FEATURED ARTICLES — home grid
───────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  border-top: var(--rule) solid var(--white);
}

@media (max-width: 960px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.feature-card {
  position: relative;
  padding: 32px 28px;
  border-bottom: var(--rule) solid var(--white);
  border-inline-start: var(--rule) solid var(--white);
  background: var(--black);
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
}

.feature-card:first-child {
  border-inline-start: none;
  grid-row: span 2;
  background: var(--black);
}

.feature-card:hover {
  background: var(--white);
  color: var(--black);
}

.feature-card:hover .feature-cat,
.feature-card:hover .feature-author,
.feature-card:hover .feature-time,
.feature-card:hover .feature-date,
.feature-card:hover .feature-tag { color: var(--black); }

.feature-card:hover .feature-title { color: var(--black); }

.feature-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-cat .pip {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.feature-tag {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}

.feature-card:first-child .feature-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.96;
  font-weight: 900;
}

.feature-excerpt {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--white-dim);
  margin: 0;
}

.feature-card:first-child .feature-excerpt {
  font-size: 18px;
  max-width: 90%;
}

.feature-meta {
  margin-top: auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white-mute);
}

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

.feature-card:hover .feature-meta span b { color: var(--black); }

/* ─────────────────────────────────────────
   CHAT — Mirror: HUGE "CHAT" letters + sliding side panel
───────────────────────────────────────── */
.chat-mirror {
  position: relative;
  background: var(--black);
  color: var(--white);
  border-bottom: var(--rule) solid var(--white);
  overflow: hidden;
}

.chat-mirror-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  min-height: 720px;
}

@media (max-width: 960px) {
  .chat-mirror-inner { grid-template-columns: 1fr; }
}

.chat-mirror-text {
  padding: 80px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-inline-end: var(--rule) solid var(--white);
}

@media (max-width: 960px) {
  .chat-mirror-text { border-inline-end: none; border-bottom: var(--rule) solid var(--white); }
}

/* HUGE "CHAT" letters */
.chat-huge {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--white);
}

.chat-huge .split-word {
  display: inline-block;
  margin-inline-end: 0.04em;
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-huge .split-word:hover {
  color: var(--red);
  transform: translateY(-8px);
}

.chat-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.2;
  margin: 24px 0 32px;
  color: var(--white-dim);
  max-width: 36ch;
}

.chat-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--white);
}

.chat-points li::before {
  content: '— ';
  color: var(--red);
}

/* Open chat button */
.chat-open-btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  padding: 18px 28px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chat-open-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Side panel */
.chat-panel {
  background: var(--black);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.chat-frame {
  background: var(--wa-bg);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  height: 560px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.chat-frame.skin-wa { background: var(--wa-bg); border-color: rgba(37, 211, 102, 0.4); }
.chat-frame.skin-tg { background: var(--tg-bg); border-color: rgba(42, 171, 238, 0.4); }
.chat-frame.skin-ms { background: var(--ms-bg); border-color: rgba(160, 51, 255, 0.35); }

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

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

.chat-avatar {
  width: 36px; height: 36px;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  border-radius: 50%;
  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: var(--white);
}

.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: var(--white);
  animation: pulse 1.4s ease-in-out infinite;
}

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

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

.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;
}

.bubble {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  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-frame.skin-wa .bubble.in { background: var(--white); color: #111; }
.chat-frame.skin-tg .bubble.in { background: rgba(42,171,238,0.18); }
.chat-frame.skin-ms .bubble.in { 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: var(--white);
  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-frame.skin-wa .bubble-time { color: rgba(0,0,0,0.5); }

/* Typing indicator */
.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-frame.skin-wa .chat-input { background: var(--wa-green-d); }
.chat-frame.skin-tg .chat-input { background: var(--tg-blue-d); }
.chat-frame.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: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  min-width: 0;
}

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

.chat-input-field::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,0.55);
}

.chat-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-frame.skin-wa .chat-send { background: var(--white); color: var(--wa-green-d); }

/* Skin switcher */
.skin-switcher {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.skin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
  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: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  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: var(--white); color: var(--black); }

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

/* Sliding chat overlay panel */
.chat-overlay {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(440px, 100vw);
  background: var(--black);
  border-inline-start: 1px solid var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 22px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}

.chat-overlay.open { transform: translateX(0); }

.chat-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--white);
  margin-bottom: 16px;
}

.chat-overlay-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0;
}

.chat-overlay-close {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.chat-overlay-close:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.chat-overlay-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

@media (max-width: 720px) {
  .chat-overlay { width: 100vw; }
}

.chat-overlay-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chat-overlay-scrim.open { opacity: 1; pointer-events: auto; }

/* ─────────────────────────────────────────
   NEWS HIGHLIGHTS — home mini list
───────────────────────────────────────── */
.news-mirror {
  padding: 96px 0;
  border-bottom: var(--rule) solid var(--white);
}

.news-list {
  display: flex;
  flex-direction: column;
  border-top: var(--rule) solid var(--white);
}

.news-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: var(--rule) solid var(--white);
  align-items: start;
  text-decoration: none;
  color: var(--white);
  transition: background 0.25s, color 0.25s, padding 0.25s;
}

.news-row:hover {
  background: var(--white);
  color: var(--black);
  padding-inline-start: 16px;
}

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

.news-time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.news-row:hover .news-time { color: var(--red); }

.news-body { min-width: 0; }

.news-headline {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--white);
}

.news-row:hover .news-headline { color: var(--black); }

.news-dek {
  font-weight: 300;
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.5;
  margin: 0 0 8px;
}

.news-row:hover .news-dek { color: #222; }

.news-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.news-row:hover .news-meta { color: #444; }

.news-meta .cat { color: var(--red); font-weight: 700; }
.news-row:hover .news-meta .cat { color: var(--red); }

.urgency-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--white);
  white-space: nowrap;
  align-self: center;
  font-weight: 700;
}

.news-row:hover .urgency-flag { border-color: var(--black); }

.news-row.urgency-breaking .urgency-flag,
.news-row-full.urgency-breaking .urgency-flag {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  animation: flashRed 2.4s ease-in-out infinite;
}

.news-row.urgency-high .urgency-flag,
.news-row-full.urgency-high .urgency-flag {
  border-color: var(--red);
  color: var(--red);
}

.news-row.urgency-high .urgency-flag::before,
.news-row-full.urgency-high .urgency-flag::before {
  content: '●';
  margin-inline-end: 6px;
  color: var(--red);
}

.news-row.urgency-normal .urgency-flag,
.news-row-full.urgency-normal .urgency-flag {
  color: var(--white-mute);
}

.news-row:hover .urgency-flag { color: var(--black); }

/* ─────────────────────────────────────────
   LISTING — article.html hero / news.html hero
───────────────────────────────────────── */
.listing-hero {
  position: relative;
  padding: 60px 0 80px;
  border-bottom: var(--rule) solid var(--white);
}

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

.listing-hero .eyebrow .red { color: var(--red); }

.listing-hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--white);
}

.listing-hero p {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--white-dim);
  margin: 24px 0 0;
  max-width: 60ch;
}

/* ─────────────────────────────────────────
   ARTICLE LIST — article.html
───────────────────────────────────────── */
.article-list {
  display: flex;
  flex-direction: column;
  border-top: var(--rule) solid var(--white);
}

.article-row {
  display: grid;
  grid-template-columns: 90px 1fr 220px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: var(--rule) solid var(--white);
  align-items: start;
  color: var(--white);
  transition: background 0.25s, color 0.25s;
}

.article-row:hover {
  background: var(--white);
  color: var(--black);
}

.article-row:hover .article-num,
.article-row:hover .article-cat,
.article-row:hover .article-author,
.article-row:hover .article-time,
.article-row:hover .article-date { color: var(--black); }

.article-row:hover .article-title { color: var(--black); }

@media (max-width: 760px) {
  .article-row { grid-template-columns: 70px 1fr; }
  .article-row .article-readtime { grid-column: 1 / -1; justify-self: start; }
}

.article-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}

.article-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--white);
}

.article-excerpt {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--white-dim);
  margin: 0 0 14px;
  max-width: 70ch;
}

.article-row:hover .article-excerpt { color: #333; }

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.article-meta b { color: var(--white); font-weight: 700; }
.article-row:hover .article-meta b { color: var(--black); }

.article-cat {
  color: var(--red) !important;
  font-weight: 700;
}

.article-readtime {
  text-align: end;
  font-family: var(--font-mono);
}

.article-readtime .num {
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.article-row:hover .article-readtime .num { color: var(--black); }

.article-readtime .lab {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
}

/* ─────────────────────────────────────────
   NEWS LIST — news.html
───────────────────────────────────────── */
.news-row-full {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  gap: 32px;
  padding: 40px 0;
  border-bottom: var(--rule) solid var(--white);
  align-items: start;
}

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

.news-time-block {
  font-family: var(--font-mono);
  text-align: start;
}

.news-time-block .time {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.01em;
}

.news-time-block .date {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-top: 8px;
}

.news-row-full h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--white);
}

.news-row-full .dek {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--white-dim);
  margin: 0 0 12px;
  max-width: 70ch;
}

.news-row-full .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.news-row-full .meta .cat {
  color: var(--red);
  font-weight: 700;
}

/* ─────────────────────────────────────────
   QUOTE
───────────────────────────────────────── */
.quote-section {
  padding: 120px 0;
  border-bottom: var(--rule) solid var(--white);
  text-align: center;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 200px;
  line-height: 0.5;
  color: var(--red);
  display: block;
  margin-bottom: 24px;
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 28ch;
  color: var(--white);
}

.quote-text .split-word {
  display: inline-block;
  white-space: pre;
}

.quote-text .split-word:hover {
  color: var(--red);
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 36px;
}

.quote-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--white-mute);
  margin-top: 6px;
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  border-bottom: var(--rule) solid var(--white);
  text-align: center;
}

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

.cta-section h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--white);
}

.cta-section p {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--white-dim);
  max-width: 50ch;
  margin: 0 auto 36px;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  padding: 18px 28px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.cta-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.cta-btn.red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.cta-btn.red:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  padding: 60px 0 100px;
  background: var(--black);
}

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

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

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-top: 8px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
  text-align: end;
  line-height: 2;
}

.footer-meta a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.footer-meta a:hover {
  color: var(--red);
}

.footer-meta code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  font-size: 10px;
  color: var(--white);
}

/* ─────────────────────────────────────────
   SIDE PANEL — word hover article panel
───────────────────────────────────────── */
.word-panel {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 100vw);
  background: var(--white);
  color: var(--black);
  z-index: 180;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-inline-start: 4px solid var(--red);
  box-shadow: -10px 0 30px rgba(0,0,0,0.6);
}

.word-panel.open { transform: translateX(0); }

.word-panel-head {
  padding: 24px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.word-panel-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1;
}

.word-panel-title .red {
  color: var(--red);
}

.word-panel-close {
  background: transparent;
  border: 1px solid var(--black);
  color: var(--black);
  width: 32px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
}

.word-panel-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.word-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px 24px;
}

.word-panel-intro {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
  margin: 8px 0 16px;
}

.word-panel-item {
  display: block;
  text-decoration: none;
  color: var(--black);
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.word-panel-item:hover {
  background: var(--black);
  color: var(--white);
  padding-inline-start: 8px;
  padding-inline-end: 8px;
}

.word-panel-item .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

.word-panel-item .ttl {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.word-panel-item .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #555;
}

.word-panel-item:hover .meta { color: var(--white-dim); }

/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
}

/* ─────────────────────────────────────────
   MOBILE FONT TWEAKS
───────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .hero { padding: 40px 0 50px; }
  .chat-mirror-text { padding: 56px 20px; }
  .chat-frame { height: 480px; }
}
