/* ============================================
   DELEGATE — THE NEWSPAPER
   Direction B: Editorial Authority
   ============================================ */

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

:root {
  --paper: #FDF6EC;
  --ink: #121212;
  --rule: #B8B0A4;
  --crimson: #8B1A1A;
  --forest: #2D5016;
  --font-masthead: 'Playfair Display', serif;
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Source Serif 4', serif;
  --font-ui: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Scroll Snap Container --- */
.deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* --- Slide Base --- */
.slide {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.slide-inner {
  width: 90%;
  max-width: 1200px;
  position: relative;
}

/* --- Navigation Dots --- */
.slide-dots {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: scale(1.5);
}

.dot:hover {
  border-color: var(--crimson);
}

/* --- Slide Counter --- */
.slide-counter {
  position: fixed;
  bottom: 32px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rule);
  z-index: 1000;
  letter-spacing: 0.05em;
}

.counter-current {
  color: var(--ink);
}

/* --- Nav Hint --- */
.nav-hint {
  position: fixed;
  bottom: 32px;
  left: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rule);
  z-index: 1000;
  letter-spacing: 0.03em;
  transition: opacity 0.5s ease;
}

/* --- Section Kicker --- */
.section-kicker {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 32px;
}

.section-kicker.crimson {
  color: var(--crimson);
}

/* ============================================
   SLIDE 1 — MASTHEAD
   ============================================ */
.slide-masthead .slide-inner {
  text-align: center;
}

.masthead-title {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.masthead-letter {
  font-family: var(--font-masthead);
  font-weight: 900;
  font-size: clamp(80px, 18vw, 220px);
  line-height: 1;
  color: var(--ink);
  display: inline-block;
  clip-path: inset(100% 0 0 0);
}

.masthead-rule {
  height: 1px;
  background: var(--rule);
  margin: 24px auto;
  max-width: 800px;
  transform: scaleX(0);
  transform-origin: left;
}

.masthead-edition {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--rule);
  text-transform: uppercase;
  opacity: 0;
}

.masthead-subtitle {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(20px, 3vw, 36px);
  color: var(--ink);
  margin-top: 8px;
  opacity: 0;
}

/* ============================================
   SLIDE 2 — HEADLINE
   ============================================ */
.slide-headline .slide-inner {
  text-align: center;
  max-width: 1000px;
}

.dateline {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rule);
  margin-bottom: 40px;
  opacity: 0;
}

.headline-main {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 100px);
  line-height: 1.05;
  color: var(--ink);
  clip-path: inset(-10% 0 100% 0);
}

.headline-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--ink);
  margin-top: 32px;
  opacity: 0;
}

/* ============================================
   SLIDE 3 — THE PROBLEM
   ============================================ */
.slide-problem .slide-inner {
  text-align: center;
}

.problem-number {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(100px, 20vw, 280px);
  line-height: 1;
  color: var(--crimson);
}

.problem-label {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--ink);
  margin-top: 16px;
  opacity: 0;
}

.problem-rule {
  height: 1px;
  background: var(--rule);
  margin: 32px auto;
  max-width: 400px;
  transform: scaleX(0);
  transform-origin: left;
}

.problem-punchline {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
}

/* ============================================
   SLIDE 4 — EDITORIAL
   ============================================ */
.slide-editorial .slide-inner {
  max-width: 960px;
}

.editorial-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-bottom: 48px;
}

.editorial-col {
  padding: 0 28px;
  border-right: 1px solid var(--rule);
  opacity: 0;
}

.editorial-col:first-child {
  padding-left: 0;
}

.editorial-col:last-child {
  border-right: none;
  padding-right: 0;
}

.editorial-col p {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.7;
  color: var(--ink);
}

.editorial-pullquote {
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
}

.pullquote-rule {
  height: 1px;
  background: var(--rule);
  margin: 24px auto;
  max-width: 200px;
}

.editorial-pullquote blockquote {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1.3;
  color: var(--ink);
  padding: 16px 0;
}

/* ============================================
   SLIDE 5 — BREAKING NEWS
   ============================================ */
.slide-breaking .slide-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 70vh;
  justify-content: center;
}

.breaking-banner {
  background: var(--crimson);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 10px 40px;
  margin-bottom: 48px;
  display: inline-block;
  transform: translateX(-120%);
}

.breaking-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(36px, 7vw, 90px);
  line-height: 1.05;
  color: var(--ink);
  max-width: 1000px;
  min-height: 1.2em;
}

.ticker-bar {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  align-items: center;
  opacity: 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  animation-play-state: paused;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rule);
  letter-spacing: 0.05em;
}

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

/* ============================================
   SLIDE 6 — THE PRODUCT
   ============================================ */
.slide-product .slide-inner {
  text-align: center;
}

.product-name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(80px, 18vw, 240px);
  line-height: 1;
  color: var(--ink);
  opacity: 0;
}

.product-double-rule {
  margin: 24px auto;
  max-width: 600px;
}

.product-double-rule .rule-line {
  height: 1px;
  background: var(--rule);
  margin: 4px 0;
  transform: scaleX(0);
  transform-origin: left;
}

.product-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--ink);
  opacity: 0;
}

/* ============================================
   SLIDE 7 — CLASSIFIEDS
   ============================================ */
.slide-classifieds .slide-inner {
  max-width: 900px;
}

.classifieds-header {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.classifieds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.classified-ad {
  padding: 24px;
  border: 1px solid var(--rule);
  opacity: 0;
  transform: scale(1.05);
}

.classified-ad.featured {
  border-color: var(--crimson);
  border-width: 2px;
}

.ad-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.ad-name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.1em;
}

.featured .ad-name {
  color: var(--crimson);
}

.ad-rating {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rule);
}

.ad-rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 12px;
}

.ad-specialty {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.ad-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}

.ad-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rule);
}

.ad-price {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================
   SLIDE 8 — PROFILE: ELLE
   ============================================ */
.slide-profile .slide-inner {
  max-width: 960px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.profile-main {
  opacity: 0;
  transform: translateX(80px);
}

.profile-name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--ink);
  margin-bottom: 16px;
}

.profile-rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 24px;
}

.profile-quote {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--crimson);
}

.profile-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 24px;
}

.profile-byline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rule);
  letter-spacing: 0.05em;
}

.profile-sidebar {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px);
}

.sidebar-stat {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.stat-value {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 36px;
  color: var(--ink);
}

.stat-value.success {
  color: var(--forest);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--rule);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.sidebar-rule {
  height: 1px;
  background: var(--rule);
}

/* ============================================
   SLIDE 9 — ANALYSIS
   ============================================ */
.slide-analysis .slide-inner {
  max-width: 800px;
}

.analysis-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 48px;
}

.analysis-item {
  opacity: 0;
  transform: translateY(20px);
}

.analysis-rule {
  height: 1px;
  background: var(--rule);
}

.analysis-content {
  padding: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.protocol-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--ink);
}

.protocol-dash {
  color: var(--rule);
  font-size: 24px;
}

.protocol-role {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--ink);
}

.protocol-stat {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rule);
}

/* ============================================
   SLIDE 10 — MARKET DATA
   ============================================ */
.slide-markets .slide-inner {
  text-align: center;
  max-width: 900px;
}

.markets-hero {
  margin: 24px 0;
}

.markets-dollar,
.markets-unit {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(60px, 12vw, 160px);
  color: var(--crimson);
  line-height: 1;
}

.markets-number {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(80px, 16vw, 220px);
  color: var(--crimson);
  line-height: 1;
}

.markets-source {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 32px;
  opacity: 0;
}

.markets-rule {
  height: 1px;
  background: var(--rule);
  margin: 0 auto 40px;
  max-width: 600px;
  transform: scaleX(0);
  transform-origin: center;
}

.markets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.market-box {
  padding: 32px 16px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
}

.market-box:first-child {
  border-left: none;
}

.market-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--ink);
}

.market-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--rule);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   SLIDE 11 — OP-ED
   ============================================ */
.slide-oped .slide-inner {
  max-width: 720px;
}

.oped-content {
  position: relative;
}

.drop-cap {
  float: left;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 96px;
  line-height: 0.75;
  color: var(--crimson);
  margin-right: 12px;
  margin-top: 8px;
  opacity: 0;
}

.oped-lead {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 32px;
  opacity: 0;
}

.oped-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0;
}

.oped-body {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 32px;
  opacity: 0;
}

.oped-sig {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 20px;
  color: var(--rule);
  opacity: 0;
}

/* ============================================
   SLIDE 12 — EVENTS
   ============================================ */
.slide-events .slide-inner {
  max-width: 720px;
  text-align: center;
}

.events-title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.events-rule {
  height: 1px;
  background: var(--rule);
  margin: 0 auto 40px;
  max-width: 400px;
}

.events-box {
  border: 1px solid var(--rule);
  padding: 32px;
  text-align: left;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.events-box-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.events-conf {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 24px;
  color: var(--ink);
}

.events-year {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--rule);
}

.events-box-rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 20px;
}

.events-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(184, 176, 164, 0.3);
}

.events-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rule);
}

.events-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}

.events-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 20px;
}

/* ============================================
   SLIDE 13 — SUBSCRIBE
   ============================================ */
.slide-subscribe .slide-inner {
  max-width: 700px;
  text-align: center;
}

.subscribe-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  opacity: 0;
}

.subscribe-sub {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--crimson);
  margin-bottom: 48px;
  opacity: 0;
}

.subscribe-box {
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
}

.subscribe-box-rule {
  height: 1px;
  background: var(--rule);
  margin: 16px 0;
}

.subscribe-box-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.subscribe-box-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 0;
}

.subscribe-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}

.subscribe-input::placeholder {
  color: var(--rule);
}

.subscribe-input:focus {
  border-color: var(--ink);
}

.subscribe-btn {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.3s;
}

.subscribe-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

/* ============================================
   SLIDE 14 — COLOPHON
   ============================================ */
.slide-colophon .slide-inner {
  text-align: center;
}

.colophon-tagline {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.15;
  color: var(--ink);
  opacity: 0;
}

.colophon-rule {
  height: 1px;
  background: var(--rule);
  margin: 32px auto;
  max-width: 200px;
  opacity: 0;
}

.colophon-url {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--rule);
  letter-spacing: 0.1em;
  opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .slide-inner {
    width: 85%;
  }

  .slide-dots {
    right: 16px;
    gap: 10px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .slide-counter {
    bottom: 16px;
    right: 16px;
    font-size: 12px;
  }

  .nav-hint {
    display: none;
  }

  .editorial-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .editorial-col {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 24px;
  }

  .editorial-col:last-child {
    border-bottom: none;
  }

  .classifieds-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-sidebar {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .sidebar-rule {
    display: none;
  }

  .markets-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .market-box {
    border-left: none;
    border-bottom: 1px solid var(--rule);
    padding: 24px 0;
  }

  .market-box:last-child {
    border-bottom: none;
  }
}
