/* ================================================================
   FRÉQUENCE — Design System V3
   Dark · Signal rouge · Cabinet Grotesk · JetBrains Mono · Inter
   border-radius:0 · zéro box-shadow · zéro gradient
   ================================================================ */

/* === VARIABLES === */
:root {
  --bg: #0D0D0D;
  --surface: #141414;
  --surface-2: #1A1A1A;
  --border: #1E1E1E;
  --border-2: #2E2E2E;
  --text: #E8E8E4;
  --muted: #999999;
  --text-secondary: #B0B0AE;
  --log: #8BA889;
  --signal: #E8352A;
  --signal-mid: #E87A2A;
  --white: #FFFFFF;

  --font-display: 'Cabinet Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === SCROLL PROGRESS === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--signal);
  width: 0%;
  z-index: 9999;
  pointer-events: none;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.header.visible {
  opacity: 1;
  pointer-events: auto;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo svg {
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.15s;
}

.header__nav a:hover { color: var(--text); }

/* === BUTTONS === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  border: none;
  border-radius: 0;
  background: var(--signal);
  color: var(--white);
  transition: opacity 0.15s;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}

.cta-btn:hover { opacity: 0.85; }

.cta-btn--lg {
  font-weight: 600;
  font-size: 13px;
  padding: 20px 48px;
}

.cta-btn--outline {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--muted);
  font-size: 11px;
  padding: 14px 32px;
}

.cta-btn--outline:hover {
  border-color: var(--text);
  color: var(--text);
  opacity: 1;
}

/* === FOOTER === */
.footer {
  background: var(--surface);
  padding: 48px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer__logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.footer__links a:hover { color: var(--text); }

.footer__right { text-align: right; }

.footer__stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

/* Globe container */
#globe-container {
  position: absolute;
  top: 0;
  right: -15%;
  width: 70vw;
  height: 100vh;
  z-index: 1;
  opacity: 0;
  transform-origin: center center;
}

/* Globe labels */
.globe-label {
  background: rgba(13, 13, 13, 0.96);
  border: 1px solid var(--border-2);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%) translateY(-120%);
}

.globe-label__score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--signal);
}

.globe-label__cat {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  line-height: 1;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.globe-label__title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text);
  max-width: 200px;
  white-space: normal;
}

/* Cinematic globe card — signal interception */
#cine-card {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 380px;
  background: rgba(10, 10, 10, 0.96);
  border: none;
  border-left: 2px solid var(--signal);
  box-shadow: -4px 0 20px rgba(232, 53, 42, 0.15);
  z-index: 201;
  opacity: 0;
  pointer-events: none;
  /* No CSS transition — GSAP handles opacity/transform */
  overflow: hidden;
}

#cine-card.active {
  /* opacity handled by GSAP inline styles */
  pointer-events: auto;
  animation: scanner-pulse 2s ease-in-out infinite;
}

/* Exit/enter animations handled by GSAP — no CSS keyframes needed */

@keyframes scanner-pulse {
  0%, 100% { border-left-color: var(--signal); }
  50% { border-left-color: rgba(232, 53, 42, 0.35); }
}

/* Scanner line — extends left to right, then fades */
#cine-scanner {
  height: 2px;
  background: var(--signal);
  width: 0;
  opacity: 1;
  transition: width 0.4s ease-out 0s, opacity 0.3s ease 0.5s;
}

#cine-card.active #cine-scanner { width: 100%; opacity: 0; }

/* Header */
#cine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}

#cine-card.active #cine-header { opacity: 1; }

#cine-intercept {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--signal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#cine-close {
  font-size: 18px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  transition: color 0.15s;
}

#cine-close:hover { color: var(--text); }

/* Score row */
#cine-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 8px;
  opacity: 0;
  transition: opacity 0.2s ease 0.2s;
}

#cine-card.active #cine-score-row { opacity: 1; }

#cine-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--signal);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Richter bars */
#cine-richter {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

#cine-richter span {
  flex: 1;
  background: var(--border-2);
  transition: background 0.3s ease;
}

#cine-richter span:nth-child(1)  { height: 20%; }
#cine-richter span:nth-child(2)  { height: 29%; }
#cine-richter span:nth-child(3)  { height: 38%; }
#cine-richter span:nth-child(4)  { height: 47%; }
#cine-richter span:nth-child(5)  { height: 56%; }
#cine-richter span:nth-child(6)  { height: 65%; }
#cine-richter span:nth-child(7)  { height: 74%; }
#cine-richter span:nth-child(8)  { height: 83%; }
#cine-richter span:nth-child(9)  { height: 92%; }
#cine-richter span:nth-child(10) { height: 100%; }

/* Category */
#cine-cat {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--signal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 16px 8px;
  opacity: 0;
  transition: opacity 0.2s ease 0.3s;
}

#cine-card.active #cine-cat { opacity: 1; }

/* Title */
#cine-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  padding: 0 16px 8px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.2s ease 0.4s;
}

#cine-card.active #cine-title { opacity: 1; }

/* Body */
#cine-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 0 16px 12px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.2s ease 0.5s;
  overflow-y: auto;
  max-height: 100px;
  scrollbar-width: thin;
  scrollbar-color: var(--signal) transparent;
}
#cine-body::-webkit-scrollbar { width: 3px; }
#cine-body::-webkit-scrollbar-track { background: transparent; }
#cine-body::-webkit-scrollbar-thumb { background: var(--signal); border-radius: 2px; }

#cine-card.active #cine-body { opacity: 1; }

/* Footer */
#cine-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.2s ease 0.6s;
}

#cine-card.active #cine-footer { opacity: 1; }

#cine-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

#cine-hint {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Progress bar — depletes during carousel */
#cine-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(1);
  opacity: 0;
}

/* Backdrop — hidden on desktop, used by mobile bottom sheet */
#cine-backdrop {
  display: none;
}

/* Terminal logs */
.hero__terminal {
  position: absolute;
  bottom: 24px;
  left: 48px;
  width: 45%;
  max-height: 160px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  mask-image: linear-gradient(to top, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 40%);
}

.log-line {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--log);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s;
}

.log-line--system { color: var(--muted); }
.log-line--ok { color: #7B9B7A; }
.log-line--richter-high { color: var(--signal); font-weight: 600; }
.log-line--richter-mid { color: var(--signal-mid); font-weight: 500; }
.log-line--richter-low { color: var(--muted); }
.log-line--fading { opacity: 0; }

/* Hero content */
.hero__content {
  position: absolute;
  top: 56px;
  left: 0;
  bottom: 200px;
  padding: 0 0 0 48px;
  width: 45%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  opacity: 1;
}

.hero__surtitre {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 32px;
}

.hero__cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  border-radius: 0;
  background: var(--signal);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  transition: opacity 0.15s;
}

.hero__cta-btn:hover { opacity: 0.85; }


/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 3;
  opacity: 0.5;
}

/* ================================================================
   SECTION PROCESS — Pipeline Scrollytelling
   ================================================================ */
.section-process {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 10;
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.process-header {
  margin-bottom: 48px;
}

.process-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.process-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Split layout — terminal left, steps right */
.pipeline-split {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* LEFT — Sticky terminal */
.pipeline-terminal-col {
  flex: 0 0 45%;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.pipeline-terminal {
  background: #111111;
  border: 1px solid var(--border-2);
  overflow: hidden;
}

.pipeline-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0A0A0A;
  border-bottom: 1px solid var(--border);
}

.pipeline-terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}

.pipeline-terminal__dot:first-child { background: #E8352A; }
.pipeline-terminal__dot:nth-child(2) { background: #E8A02A; }
.pipeline-terminal__dot:nth-child(3) { background: #7B9B7A; }

.pipeline-terminal__name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 0.05em;
}

.pipeline-terminal__body {
  padding: 16px;
  min-height: 400px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: none;
}

.pipeline-terminal__body::-webkit-scrollbar { display: none; }

/* Pipeline terminal lines */
.pl-line {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pl-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.pl-line--prompt {
  color: var(--muted);
  opacity: 1;
  transform: none;
}

.pl-line--system {
  color: var(--muted);
}

.pl-line--source {
  color: #CCCCCC;
}

.pl-line--ok {
  color: #9BC09A;
}

.pl-line--rejected {
  color: rgba(232, 53, 42, 0.6);
  text-decoration: line-through;
}

.pl-line--kept {
  color: #FFFFFF;
  font-weight: 500;
}

.pl-line--richter-high {
  color: var(--signal);
  font-weight: 600;
}

.pl-line--richter-mid {
  color: var(--signal-mid);
  font-weight: 500;
}

.pl-line--richter-low {
  color: var(--muted);
}

.pl-line--publish {
  color: #9BC09A;
}

.pl-line--separator {
  color: var(--border-2);
  margin: 4px 0;
}

.pl-line--metric {
  color: var(--signal);
  font-weight: 500;
  margin-top: 2px;
}

/* RIGHT — Scrollable steps */
.pipeline-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pipeline-step {
  min-height: 65vh;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.pipeline-step:last-child {
  border-bottom: none;
}

.pipeline-step.active {
  opacity: 1;
}

.pipeline-step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.02em;
  transition: color 0.5s ease;
}

.pipeline-step.active .pipeline-step__num {
  color: rgba(232, 53, 42, 0.15);
}

.pipeline-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #FFFFFF;
}

.pipeline-step__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.pipeline-step__metric {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ================================================================
   SECTION FEED — scroll horizontal
   ================================================================ */
.section-feed {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.feed-track-wrapper {
  padding-top: 80px;
}

.feed-header-sticky {
  position: sticky;
  top: 56px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.feed-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.feed-instructions {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.feed-track {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  gap: 1px;
  padding-right: 48px;
  background: var(--border);
}

.feed-track::-webkit-scrollbar { display: none; }
.feed-track.dragging { cursor: grabbing; }

.feed-card {
  flex: 0 0 calc(50vw - 1px);
  height: 70vh;
  scroll-snap-align: start;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
  border-left: 2px solid transparent;
}

.feed-card:hover,
.feed-card--hovered {
  background: var(--surface);
}

.feed-card--active {
  background: var(--surface-2) !important;
  border-left-color: var(--signal) !important;
}

.feed-card--hovered {
  border-left-color: var(--signal-mid) !important;
}

/* Watermark score */
.card-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 18vw, 220px);
  line-height: 1;
  color: var(--white);
  opacity: 0.025;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.feed-card:hover .card-watermark,
.feed-card--hovered .card-watermark { opacity: 0.05; }

.card-inner {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.card-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.card-score-unit {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-cat {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  color: var(--signal);
  letter-spacing: 0.2em;
}

.card-time {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}

.card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Score color classes */
.score--high { color: var(--signal); }
.score--mid { color: var(--signal-mid); }
.score--low { color: var(--muted); }

/* ================================================================
   CTA / PROMISE
   ================================================================ */
.section-cta {
  position: relative;
  z-index: 10;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 120px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-stats {
  display: flex;
  gap: 1px;
  background: var(--border);
  margin-bottom: 48px;
  width: 100%;
  max-width: 600px;
}

.cta-stat {
  flex: 1;
  background: var(--surface);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cta-stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--white);
  line-height: 1;
}

.cta-stat__label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 24px;
}

.cta-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.cta-topics {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-topic {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: 8px 16px;
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.cta-topic:hover { opacity: 1; }

.cta-stack {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.cta-stack__label {
  color: var(--muted);
}

/* ================================================================
   PAGE — MANIFESTE (terminal CLI)
   ================================================================ */
.page-manifeste {
  padding-top: 56px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.terminal {
  width: 100%;
  max-width: 760px;
  margin: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red { background: #FF5F56; }
.terminal__dot--yellow { background: #FFBD2E; }
.terminal__dot--green { background: #27C93F; }

.terminal__bar-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.terminal__body {
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.terminal__cmd {
  color: var(--signal);
  display: block;
  margin-bottom: 24px;
}

.terminal__line {
  display: block;
  opacity: 1;
}

.terminal__empty {
  display: block;
  height: 1.8em;
}

.terminal__highlight {
  color: var(--white);
  font-weight: 600;
}

.terminal__cursor {
  color: var(--signal);
  animation: blink 1s step-end infinite;
  display: block;
  margin-top: 24px;
}

@keyframes blink { 50% { opacity: 0; } }

/* ================================================================
   PAGE — PIPELINE (comment.html)
   ================================================================ */
.page-pipeline {
  padding-top: 56px;
  background: var(--bg);
}

.pipe-section {
  min-height: 60vh;
  position: relative;
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.pipe-section__bg {
  position: absolute;
  right: 48px;
  bottom: -20px;
  font-family: var(--font-mono);
  font-size: clamp(180px, 25vw, 360px);
  font-weight: 700;
  color: var(--text);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pipe-section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pipe-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.pipe-section__desc {
  max-width: 520px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pipe-section__metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: inline-block;
  letter-spacing: 0.02em;
}

.pipe-section--highlight {
  border-left: 2px solid var(--signal);
}

/* ================================================================
   PAGE — SOURCES
   ================================================================ */
.page-sources {
  padding-top: 56px;
  background: var(--bg);
  min-height: 100vh;
}

.sources__inner {
  padding: 64px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.sources__stats {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.sources__filters {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.sources__filter {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}

.sources__filter:hover,
.sources__filter.active {
  border-color: var(--signal);
  color: var(--signal);
}

.sources__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  transition: border-color 0.15s;
}

.source-badge:hover { border-color: var(--border-2); }
.source-badge.hidden { display: none; }

/* ================================================================
   PAGE — ÉCHELLE
   ================================================================ */
.page-echelle {
  padding-top: 56px;
  background: var(--bg);
  min-height: 100vh;
}

.echelle__inner {
  padding: 64px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.echelle__header { margin-bottom: 48px; }

.echelle__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--white);
  margin-bottom: 12px;
}

.echelle__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

.echelle-list {
  border-top: 1px solid var(--border);
}

.echelle-row {
  display: grid;
  grid-template-columns: 60px 160px 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0 20px 16px;
  border-bottom: 1px solid var(--border);
}

.echelle-row--critical { border-left: 2px solid var(--signal); }
.echelle-row--major { border-left: 2px solid var(--signal-mid); }
.echelle-row--notable { border-left: 2px solid var(--text); }
.echelle-row--minor { border-left: 2px solid var(--border-2); }

.echelle-row__score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.echelle-row__score--critical { color: var(--signal); }
.echelle-row__score--major { color: var(--signal-mid); }
.echelle-row__score--notable { color: var(--text); }
.echelle-row__score--minor { color: var(--muted); }

.echelle-row__level {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.echelle-row__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.echelle-row__example {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  opacity: 0.8;
}

/* ================================================================
   PAGE — BLOG (list)
   ================================================================ */
.page-blog {
  padding-top: 56px;
  background: var(--bg);
  min-height: 100vh;
}

.blog__inner {
  padding: 64px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog__header {
  margin-bottom: 48px;
}

.blog__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.blog__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.blog__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--bg);
  text-decoration: none;
  transition: background 0.2s;
}

.blog-card:hover {
  background: var(--surface);
}

.blog-card--compact {
  padding: 24px;
  gap: 8px;
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.blog-card__tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--signal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.blog-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  line-height: 1.3;
}

.blog-card--compact .blog-card__title {
  font-size: 16px;
}

.blog-card__excerpt {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ================================================================
   PAGE — BLOG ARTICLE
   ================================================================ */
.page-article {
  padding-top: 56px;
  background: var(--bg);
  min-height: 100vh;
}

.article__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px;
}

.article__back {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.article__back:hover {
  color: var(--text);
}

.article__header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.article__date,
.article__reading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.article__sep {
  color: var(--border-2);
  font-size: 11px;
}

.article__tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--signal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.article__lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

/* Article body */
.article__content {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article__content p {
  margin-bottom: 24px;
}

.article__content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 16px;
}

.article__content ul,
.article__content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.article__content li {
  margin-bottom: 8px;
  list-style: disc;
  color: var(--text-secondary);
}

.article__content li::marker {
  color: var(--signal);
}

.article__content blockquote {
  border-left: 2px solid var(--signal);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text);
}

.article__content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface);
  padding: 2px 6px;
  border: 1px solid var(--border);
}

.article__content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.article__content pre code {
  background: none;
  border: none;
  padding: 0;
}

.article__content a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__content a:hover {
  opacity: 0.8;
}

/* Article footer */
.article__footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Related articles */
.article__related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article__related-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}

.article__related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  /* Header — hidden initially, revealed by mobile.js boot */
  .header { opacity: 0; pointer-events: none; }
  .header__nav a:not(.cta-btn) { display: none; }
  .header__inner { padding: 0 24px; }
  .header__logo svg { width: 130px; height: auto; }

  /* Hero — flex column: terminal on top, content below */
  .hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  #globe-container { display: none; }

  .hero__terminal {
    display: flex !important;
    position: relative !important;
    top: auto; bottom: auto; left: auto;
    width: 100% !important;
    min-height: 35vh;
    max-height: 45vh;
    padding: 72px 20px 16px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }

  .hero__scroll-hint {
    display: block !important;
    position: relative;
    text-align: center;
    padding: 0 0 24px;
    opacity: 0.5;
  }

  .hero__content {
    position: relative;
    top: auto; bottom: auto; left: auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 24px 48px;
    opacity: 1;
  }

  .hero__title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero__sub {
    font-size: 15px;
    max-width: none;
  }

  .log-line {
    font-size: 10px;
    line-height: 1.5;
  }

  /* Section Process — Pipeline stacked on mobile */
  .process-inner {
    padding: 48px 24px;
  }

  .pipeline-split {
    flex-direction: column;
    gap: 0;
  }

  .pipeline-terminal-col {
    position: relative;
    top: auto;
    flex: none;
    width: 100%;
    display: none;
  }

  .pipeline-steps {
    gap: 0;
  }

  .pipeline-step {
    min-height: auto;
    padding: 32px 0;
    opacity: 1;
  }

  .pipeline-step__num {
    font-size: 36px;
  }

  .pipeline-step__desc {
    max-width: none;
  }

  /* Feed */
  .feed-track-wrapper {
    padding-top: 48px;
  }

  .feed-header-sticky {
    padding: 0 24px 16px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .feed-card {
    flex: 0 0 85vw;
    height: 60vh;
  }

  .feed-card:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }

  .card-inner {
    padding: 24px;
  }

  .card-score {
    font-size: clamp(36px, 8vw, 56px);
  }

  .card-watermark {
    font-size: clamp(80px, 30vw, 160px);
  }

  /* Cine-card — bottom sheet */
  #cine-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 75vh;
    border-left: none;
    border-top: 2px solid var(--signal);
    box-shadow: 0 -4px 20px rgba(232, 53, 42, 0.15);
    border-radius: 0;
    transform: translateY(100%);
    opacity: 1;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  }

  #cine-card.active {
    transform: translateY(0);
    pointer-events: auto;
    animation: none;
  }

  #cine-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-2);
    border-radius: 2px;
    margin: 8px auto 0;
  }

  #cine-card.active #cine-header,
  #cine-card.active #cine-score-row,
  #cine-card.active #cine-cat,
  #cine-card.active #cine-title,
  #cine-card.active #cine-body,
  #cine-card.active #cine-footer {
    opacity: 1;
    transition: none;
  }

  #cine-score { font-size: 40px; }
  #cine-body { max-height: 150px; }
  #cine-hint { display: none; }
  #cine-close { font-size: 24px; padding: 8px; }

  /* Backdrop */
  #cine-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  #cine-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* CTA */
  .section-cta { padding: 64px 24px; }
  .cta-title { font-size: clamp(36px, 10vw, 56px); }
  .cta-stats { flex-direction: column; }
  .cta-stack { display: none; }

  /* Footer */
  .footer { padding: 32px 24px; }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer__right { text-align: left; }

  /* Manifeste */
  .terminal { margin: 24px; }
  .terminal__body { padding: 24px; font-size: 12px; }

  /* Pipeline */
  .pipe-section { padding: 48px 24px; min-height: auto; }
  .pipe-section__bg { display: none; }

  /* Sources */
  .sources__inner { padding: 48px 24px; }

  /* Echelle */
  .echelle__inner { padding: 48px 24px; }
  .echelle-row {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }
  .echelle-row__desc,
  .echelle-row__example {
    grid-column: 1 / -1;
    padding-left: 16px;
  }

  /* Blog */
  .blog__inner { padding: 48px 24px; }
  .blog__grid { grid-template-columns: 1fr; }
  .blog-card { padding: 24px; }

  /* Article */
  .article__inner { padding: 48px 24px; }
  .article__related-grid { grid-template-columns: 1fr; }
}
