/* ============================================================
   KINETIC — 02 — Vibe Code News AI
   Swiss rigor broken by type in motion.
   Palette: #f2f0eb (off-white) | #0a0a0a (ink) | #002fa7 (KIB) | #e34234 (vermilion)
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --off-white: #f2f0eb;
  --ink: #0a0a0a;
  --kib: #002fa7;
  --vermilion: #e34234;
  --grid-col: rgba(10, 10, 10, 0.07);
  --baseline: rgba(10, 10, 10, 0.055);
  --baseline-h: 28px;

  /* Messenger gradient */
  --messenger-grad: linear-gradient(135deg, #0099FF 0%, #A033FF 100%);

  /* spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', sans-serif;
  background: var(--off-white);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: hidden;
  direction: rtl;
}

/* ---- Baseline Grid ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(var(--baseline-h) - 1px),
    var(--baseline) calc(var(--baseline-h) - 1px),
    var(--baseline) var(--baseline-h)
  );
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* ---- Column guides ---- */
.grid-wrapper {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.grid-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-col) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-col) 1px, transparent 1px);
  background-size: 12.5% 100%, 25% 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography Utilities ---- */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.kib { color: var(--kib); }
.vermilion { color: var(--vermilion); }

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--kib);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--kib);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   TICKER BASELINE STRIP
   ============================================================ */
.ticker-strip {
  position: relative;
  width: 100%;
  background: var(--ink);
  color: var(--off-white);
  overflow: hidden;
  padding: 14px 0;
  z-index: 10;
  border-bottom: 2px solid var(--kib);
}

.ticker-track-wrapper {
  display: flex;
  align-items: center;
  direction: ltr; /* RTL marquee fix */
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  direction: ltr;
  white-space: nowrap;
  gap: 0;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}

.ticker-strip:hover .ticker-track,
.ticker-strip.paused .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 48px;
  font-size: clamp(14px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  transition: font-weight 0.15s ease;
  flex-shrink: 0;
}

.ticker-item.center-pulse {
  font-weight: 700;
}

.ticker-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.45em;
  opacity: 0.55;
  color: var(--kib);
  vertical-align: middle;
}

.ticker-sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--kib);
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
  vertical-align: middle;
}

.ticker-pause-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
  letter-spacing: 0.1em;
  z-index: 2;
  transition: all 0.15s ease;
}

.ticker-pause-btn:hover {
  color: white;
  border-color: rgba(255,255,255,0.6);
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  overflow: hidden;
  z-index: 1;
}

/* KIB rule lines */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--kib);
}

.hero-kib-rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--kib);
  opacity: 0.2;
}

.hero-kib-rule--1 { top: 33.333%; }
.hero-kib-rule--2 { top: 66.666%; }

/* SVG logo mark — morphing strokes */
.hero-logo-svg {
  position: absolute;
  top: var(--sp-6);
  left: var(--sp-6);
  width: 80px;
  height: 80px;
  opacity: 0.85;
}

/* Masthead — base weight 400, JS proximity raises individual letters to 900 */
.masthead {
  position: relative;
  z-index: 2;
  font-size: clamp(48px, 14vw, 200px);
  font-weight: 400;
  font-variation-settings: 'wght' 400;
  line-height: 0.88;
  letter-spacing: -0.04em;
  user-select: none;
  cursor: default;
}

.masthead-word {
  display: block;
  white-space: nowrap;
  overflow: visible;
}

.masthead-letter {
  display: inline-block;
  /* Base weight 400 in CSS — JS proximity effect raises to 900 on hover.
     Static state looks intentional even before JS fires. */
  font-variation-settings: 'wght' 400;
  transition: none; /* JS handles via rAF */
}

/* Grid-escaping element on hero */
.hero-escape {
  position: absolute;
  bottom: var(--sp-5);
  left: -20px;
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 100;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,47,167,0.18);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.06em;
  rotate: -3deg;
  white-space: nowrap;
}

/* Rotating word slot */
.hero-slot {
  position: relative;
  margin-top: var(--sp-5);
  z-index: 2;
}

.hero-slot-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--kib);
  margin-bottom: var(--sp-2);
  opacity: 0.7;
  text-transform: uppercase;
}

.hero-slot-word {
  font-size: clamp(28px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  height: 1.1em;
  overflow: hidden;
  position: relative;
}

.hero-slot-word-inner {
  display: block;
}

/* Hero tagline */
.hero-tagline {
  margin-top: var(--sp-4);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 300;
  max-width: 480px;
  color: rgba(10,10,10,0.65);
  line-height: 1.5;
  z-index: 2;
  position: relative;
}

/* Proofreading marks SVG (decorative) */
.proof-marks {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.section-title {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--kib);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: letter-spacing 0.2s ease;
}

.section-link:hover {
  letter-spacing: 0.2em;
}

/* ============================================================
   NEWS TIMELINE — עכשיו
   ============================================================ */
.section-news {
  position: relative;
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  background: var(--off-white);
  z-index: 1;
}

.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-4);
  align-items: start;
  border-bottom: 1px solid rgba(10,10,10,0.1);
  padding: var(--sp-4) 0;
  position: relative;
}

.news-item:first-child {
  border-top: 1px solid rgba(10,10,10,0.1);
}

.news-numeral {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(10,10,10,0.12);
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vermilion proofread circle for urgent */
.news-numeral--urgent {
  color: var(--vermilion);
}

.news-numeral--urgent::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--vermilion);
  border-radius: 50%;
  opacity: 0.7;
}

.news-content {
  padding-top: 8px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.news-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(10,10,10,0.45);
  letter-spacing: 0.08em;
}

.news-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border: 1px solid rgba(10,10,10,0.2);
  color: rgba(10,10,10,0.5);
  text-transform: uppercase;
}

.news-category--urgent {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: white;
}

.news-headline {
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--sp-2);
  /* assembles via JS */
}



/* Grid-escape rotated element */
.news-escape {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--kib);
  opacity: 0.35;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================
   ARTICLES SECTION — לקרוא
   ============================================================ */
.section-articles {
  position: relative;
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  background: var(--ink);
  color: var(--off-white);
  overflow: hidden;
  z-index: 1;
}

.section-articles .section-header {
  border-top-color: rgba(242,240,235,0.2);
}

.section-articles .section-title {
  color: var(--off-white);
}

.section-articles .section-link {
  color: var(--kib);
}

/* Featured article display */
.article-feature {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-6);
  align-items: center;
  min-height: 40vh;
  position: relative;
}

.article-feature-main {
  position: relative;
}

.article-feature-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--kib);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  display: block;
}

.article-feature-title {
  font-size: clamp(32px, 5.5vw, 84px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin-bottom: var(--sp-4);
  cursor: default;
  /* Ensure title is always visible on the dark background */
  color: var(--off-white);
  opacity: 1 !important;
}

.article-feature-excerpt {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(242,240,235,0.65);
  max-width: 560px;
  margin-bottom: var(--sp-5);
}

.article-feature-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.article-feature-meta .mono {
  color: rgba(242,240,235,0.4);
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--kib);
  color: white;
  padding: var(--sp-2) var(--sp-4);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.article-read-btn:hover {
  background: #003fd0;
  transform: translateX(-2px);
  color: white;
}

/* Navigation side panel */
.article-nav-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.article-nav-btn {
  background: transparent;
  border: 1px solid rgba(242,240,235,0.15);
  color: var(--off-white);
  cursor: pointer;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.article-nav-btn:hover {
  border-color: rgba(242,240,235,0.5);
  background: rgba(242,240,235,0.05);
}

.article-nav-btn svg {
  flex-shrink: 0;
  stroke: rgba(242,240,235,0.5);
}

.article-nav-btn:hover svg {
  stroke: var(--off-white);
}

/* Article index list */
.article-index {
  margin-top: var(--sp-6);
  border-top: 1px solid rgba(242,240,235,0.1);
}

.article-index-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(242,240,235,0.06);
  cursor: pointer;
  transition: padding-right 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.article-index-item:hover {
  padding-right: var(--sp-3);
}

.article-index-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(242,240,235,0.25);
  flex-shrink: 0;
}

.article-index-title {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  color: rgba(242,240,235,0.55);
  line-height: 1.3;
  transition: font-weight 0.2s ease, color 0.2s ease;
}

.article-index-item:hover .article-index-title {
  font-weight: 800;
  color: var(--off-white);
}

.article-index-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--kib);
  flex-shrink: 0;
  margin-right: auto;
}

/* Articles escape element */
.articles-escape {
  position: absolute;
  top: var(--sp-6);
  left: -30px;
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 100;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,240,235,0.08);
  line-height: 1;
  pointer-events: none;
  rotate: 15deg;
  transform-origin: center;
}

/* ============================================================
   CHANNEL SECTION — הערוץ
   ============================================================ */
.section-channel {
  position: relative;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  background: var(--off-white);
  z-index: 1;
  overflow: hidden;
}

.channel-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-7);
  align-items: start;
}

.channel-desc {
  padding-top: var(--sp-5);
}

.channel-desc-headline {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.channel-desc-body {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(10,10,10,0.6);
  max-width: 420px;
  margin-bottom: var(--sp-5);
}

/* Skin switcher chips */
.skin-switcher {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.skin-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
  font-weight: 700;
}

.skin-chip.active {
  background: var(--ink);
  color: var(--off-white);
}

.skin-chip:hover:not(.active) {
  background: rgba(10,10,10,0.08);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 320px;
  margin: 0 auto;
}

.phone-frame {
  border: 1.5px solid var(--ink);
  border-radius: 36px;
  overflow: hidden;
  background: #f8f7f3;
  position: relative;
}

.phone-notch {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid;
  position: relative;
}

.phone-notch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid;
}

.phone-header {
  padding: 10px 16px;
  border-bottom: 1.5px solid;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.phone-header-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1.5px solid;
  border-radius: 99px;
}

.phone-header-name {
  font-size: 13px;
  font-weight: 700;
}

.phone-messages {
  padding: 12px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  direction: rtl;
}

.phone-msg {
  max-width: 88%;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  direction: rtl;
  position: relative;
  /* Visible by default — JS/IntersectionObserver adds type-on enhancement only */
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

/* JS type-on: hide initially only when JS is ready to animate */
.phone-msg.js-pending {
  opacity: 0;
  transform: translateY(8px);
}

.phone-msg.js-pending.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.phone-msg-channel {
  align-self: flex-start;
}

.phone-msg-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  opacity: 0.5;
  margin-top: 4px;
  display: block;
}

.phone-msg-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ---- Skin: WhatsApp ---- */
.skin-wa .phone-notch { border-color: #25D366; }
.skin-wa .phone-notch-dot { border-color: #25D366; }
.skin-wa .phone-header { border-color: #25D366; }
.skin-wa .phone-header-chip { border-color: #25D366; color: #25D366; }
.skin-wa .phone-msg { border-radius: 0 14px 14px 14px; background: #e9fde3; border: 1.5px solid #25D366; }
.skin-wa .phone-msg-tag { background: rgba(37,211,102,0.15); color: #25D366; }
.skin-wa .phone-msg--urgent { border-color: var(--vermilion); }

/* ---- Skin: Telegram ---- */
.skin-tg .phone-notch { border-color: #2AABEE; }
.skin-tg .phone-notch-dot { border-color: #2AABEE; }
.skin-tg .phone-header { border-color: #2AABEE; }
.skin-tg .phone-header-chip { border-color: #2AABEE; color: #2AABEE; }
.skin-tg .phone-msg { border-radius: 0 18px 18px 18px; background: #f0f9ff; border: 1.5px solid #2AABEE; }
.skin-tg .phone-msg-tag { background: rgba(42,171,238,0.15); color: #2AABEE; }
.skin-tg .phone-msg--urgent { border-color: var(--vermilion); }

/* ---- Skin: Messenger ---- */
.skin-ms .phone-notch { border-color: #0099FF; }
.skin-ms .phone-notch-dot { background: linear-gradient(135deg, #0099FF, #A033FF); border: none; }
.skin-ms .phone-header { border-color: #0099FF; }
.skin-ms .phone-header-chip {
  background: linear-gradient(135deg, #0099FF, #A033FF);
  border: none;
  color: white;
}
.skin-ms .phone-msg { border-radius: 0 8px 8px 8px; background: #f5f0ff; border: 1.5px solid #A033FF; }
.skin-ms .phone-msg-tag { background: var(--messenger-grad); color: white; }
.skin-ms .phone-msg--urgent { border-color: var(--vermilion); }

/* ============================================================
   DRAGGABLE NOTES — פתקים
   ============================================================ */
.section-notes {
  position: relative;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  background: var(--off-white);
  z-index: 1;
  min-height: 520px;
}

.notes-headline {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-7);
}

.notes-field {
  position: relative;
  min-height: 400px;
  /* Wide enough for 4 notes side by side */
  overflow: visible;
}

.note-ghost {
  position: absolute;
  border: 2px dashed rgba(10,10,10,0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.note-ghost.visible {
  opacity: 1;
}

.note-block {
  position: absolute;
  border: 2px solid var(--ink);
  background: var(--off-white);
  padding: var(--sp-4) var(--sp-4);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.15s ease;
}

.note-block:active {
  cursor: grabbing;
}

.note-block.dragging {
  box-shadow: 8px 8px 0 rgba(10,10,10,0.15);
  z-index: 100;
}

/* Notes positioned as % of grid — predictable across viewport widths */
.note-block--1 { rotate: -2.5deg; top: 40px;  left: 2%;  width: 200px; }
.note-block--2 { rotate:  1.8deg; top: 160px; left: 20%; width: 220px; }
.note-block--3 { rotate: -1.2deg; top: 30px;  left: 40%; width: 190px; }
.note-block--4 { rotate:  3deg;   top: 200px; left: 60%; width: 210px; }

.note-word {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

.note-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--kib);
  margin-top: var(--sp-2);
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--off-white);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  overflow: hidden;
  z-index: 1;
}

.footer-masthead {
  font-size: clamp(48px, 10vw, 160px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,240,235,0.25);
  pointer-events: none;
  margin-bottom: var(--sp-6);
}

.footer-divider {
  height: 1px;
  background: rgba(242,240,235,0.1);
  margin-bottom: var(--sp-6);
}

.footer-quote {
  max-width: 800px;
  margin-bottom: var(--sp-6);
}

.footer-quote-text {
  font-size: clamp(24px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--off-white);
  margin-bottom: var(--sp-3);
}

.footer-quote-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--kib);
}

.footer-colophon {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(242,240,235,0.08);
  padding-top: var(--sp-4);
}

.footer-colophon-left {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(242,240,235,0.3);
  line-height: 1.7;
}

.footer-colophon-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(242,240,235,0.3);
  text-align: left;
}

/* ============================================================
   ARTICLE PAGE (article.html)
   ============================================================ */
.article-page {
  padding-top: 0;
}

.article-hero {
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  border-bottom: 4px solid var(--kib);
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ink);
}

.article-cat-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.article-cat-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--kib);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--kib);
}

.article-headline-page {
  font-size: clamp(36px, 7vw, 112px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  max-width: 900px;
  margin-bottom: var(--sp-5);
}



.article-meta-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(10,10,10,0.1);
  border-bottom: 1px solid rgba(10,10,10,0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(10,10,10,0.45);
  flex-wrap: wrap;
}

.article-meta-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(10,10,10,0.2);
}

/* TLDR block */
.article-tldr {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border: 2px solid var(--kib);
  background: rgba(0,47,167,0.04);
  max-width: 720px;
  position: relative;
}

.article-tldr-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--kib);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  display: block;
}

.article-tldr-text {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* Article body */
.article-body {
  padding: var(--sp-6) var(--sp-6);
  max-width: 760px;
  margin: 0 auto;
}

.article-paragraph {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10,10,10,0.85);
  margin-bottom: var(--sp-5);
}

/* Takeaways */
.article-takeaways {
  padding: var(--sp-6) var(--sp-6);
  background: var(--ink);
  color: var(--off-white);
}

.article-takeaways-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--kib);
  margin-bottom: var(--sp-4);
  display: block;
}

.article-takeaway-item {
  display: flex;
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(242,240,235,0.08);
}

.article-takeaway-num {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(242,240,235,0.12);
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.article-takeaway-text {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-top: 8px;
}

/* Sources */
.article-sources {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid rgba(10,10,10,0.08);
}

.article-sources-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(10,10,10,0.4);
  margin-bottom: var(--sp-3);
  display: block;
  text-transform: uppercase;
}

.article-source-link {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--kib);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  padding-bottom: 2px;
  width: fit-content;
}

.article-source-link:hover {
  border-color: var(--kib);
}

/* Article prev/next nav */
.article-nav-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
  background: var(--off-white);
}

.article-nav-prev,
.article-nav-next {
  padding: var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: background 0.15s ease;
  cursor: pointer;
}

.article-nav-prev:hover,
.article-nav-next:hover {
  background: rgba(10,10,10,0.03);
}

.article-nav-next {
  border-right: 1px solid rgba(10,10,10,0.1);
}

.article-nav-direction {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(10,10,10,0.35);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.article-nav-arrow {
  font-size: 32px;
  font-weight: 100;
  color: var(--kib);
  line-height: 1;
}

.article-nav-title {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

/* ============================================================
   NEWS PAGE (news.html)
   ============================================================ */
.news-page-hero {
  padding: var(--sp-7) var(--sp-6) var(--sp-5);
  border-bottom: 4px solid var(--kib);
  position: relative;
  overflow: hidden;
}

.news-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ink);
}

.news-page-title {
  font-size: clamp(64px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.news-page-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(10,10,10,0.45);
}

.news-page-hero-escape {
  position: absolute;
  bottom: -20px;
  left: var(--sp-6);
  font-size: clamp(80px, 15vw, 220px);
  font-weight: 100;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,47,167,0.1);
  line-height: 1;
  pointer-events: none;
  rotate: -5deg;
  z-index: 0;
}

.news-timeline {
  padding: var(--sp-5) var(--sp-6);
}

.news-timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  position: relative;
}

.news-tl-numeral {
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(10,10,10,0.1);
  text-align: center;
  position: relative;
}

.news-tl-numeral--urgent {
  color: var(--vermilion);
}

.news-tl-numeral--urgent::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--vermilion);
  border-radius: 50%;
  opacity: 0.6;
}

.news-tl-content {
  padding-top: 12px;
}

.news-tl-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.news-tl-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(10,10,10,0.35);
  letter-spacing: 0.08em;
}

.news-tl-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(10,10,10,0.35);
  padding: 2px 6px;
  border: 1px solid rgba(10,10,10,0.15);
}

.news-tl-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  background: var(--vermilion);
  color: white;
  font-weight: 700;
}

.news-tl-headline {
  font-size: clamp(22px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}



.news-tl-dek {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(10,10,10,0.6);
}

.news-tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(10,10,10,0.3);
  margin-top: var(--sp-2);
  display: block;
  letter-spacing: 0.08em;
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sp-6: 32px;
    --sp-7: 64px;
    --sp-8: 80px;
  }

  .masthead {
    font-size: clamp(40px, 12vw, 100px);
  }

  .article-feature {
    grid-template-columns: 1fr;
  }

  .article-nav-panel {
    flex-direction: row;
    overflow-x: auto;
  }

  .channel-inner {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    max-width: 300px;
  }

  .news-item {
    grid-template-columns: 56px 1fr;
  }

  .news-numeral {
    font-size: clamp(32px, 8vw, 72px);
  }

  .news-timeline-item {
    grid-template-columns: 72px 1fr;
  }

  .notes-field {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-bottom: var(--sp-4);
  }
  .note-block--1, .note-block--2, .note-block--3, .note-block--4 {
    position: static !important;
    rotate: none !important;
    margin-bottom: 0;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
  }
  .note-ghost { display: none; }

  .article-nav-footer {
    grid-template-columns: 1fr;
  }

  .article-nav-next {
    border-right: none;
    border-top: 1px solid rgba(10,10,10,0.1);
  }

  .article-feature-title {
    font-size: clamp(28px, 8vw, 60px);
  }

  .hero-escape {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE — 390px
   ============================================================ */
@media (max-width: 430px) {
  :root {
    --sp-6: 20px;
    --sp-7: 48px;
    --sp-8: 60px;
  }

  .masthead {
    font-size: clamp(32px, 14vw, 80px);
  }

  .section-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .news-item {
    grid-template-columns: 44px 1fr;
    gap: var(--sp-2);
  }

  .ticker-item {
    padding: 0 24px;
  }

  .news-timeline-item {
    grid-template-columns: 56px 1fr;
    gap: var(--sp-3);
  }

  .article-body {
    padding: var(--sp-4) var(--sp-3);
  }

  .article-tldr {
    padding: var(--sp-3) var(--sp-3);
  }

  .footer-masthead {
    font-size: clamp(36px, 12vw, 80px);
  }

  /* Notes: static stacking on very small screens */
  .notes-field {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-bottom: var(--sp-4);
  }
  .note-block--1, .note-block--2, .note-block--3, .note-block--4 {
    position: static !important;
    rotate: none !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
  }
  .note-ghost { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
  }

  .masthead-letter {
    /* no proximity effect */
  }

  .news-headline .char,
  .news-tl-headline .char,
  .article-headline-page .char {
    opacity: 1 !important;
    transform: none !important;
  }

  .phone-msg {
    opacity: 1 !important;
    transform: none !important;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   GSAP animation helpers
   ============================================================ */
.gsap-hidden {
  opacity: 0;
}

/* Article page-specific override for body bg */
body.article-page-body {
  background: var(--off-white);
}

/* Morph SVG styles */
.morph-svg path {
  stroke: var(--kib);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
