/* Resilience Asset Mapping Tool — 10-slide deck
   Paper Giant brand (Sectra → Fraunces, America → Inter).
*/

:root {
  --magenta: #db1b5c;
  --magenta-deep: #c2174f;
  --ink: #18181B;
  --ink-soft: #292a2c;
  --paper: #f8f8f8;
  --paper-pink: #fef5f8;
  --text-2: #555;
  --text-3: #999;
  --border: #e8e8e8;
  --border-dark: rgba(255,255,255,0.12);
  --shadow-lg: 0 28px 60px -20px rgba(24,24,27,0.30), 0 8px 18px -8px rgba(24,24,27,0.15);
  --shadow-soft: 0 12px 32px -10px rgba(24,24,27,0.18);
  --serif: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* ---------- Layout primitives ---------- */
.deck { display: flex; flex-direction: column; }

.slide {
  min-height: 100vh;
  padding: 96px 80px 64px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slide-body { flex: 1; display: flex; flex-direction: column; gap: 48px; max-width: 1280px; margin: 0 auto; width: 100%; }

.slide-foot {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 64ch) 1fr;
  gap: 48px;
  align-items: start;
}
.commentary { color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 64ch; }
.slide-meta { text-align: right; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }

/* Dark slide variant */
.slide--dark { background: var(--ink); color: #fff; }
.slide--dark .slide-foot { border-top-color: var(--border-dark); }
.slide--dark .commentary { color: rgba(255,255,255,0.78); }
.slide--dark .slide-meta { color: rgba(255,255,255,0.40); }

.slide--paper-pink { background: var(--paper-pink); }

/* ---------- Top label / eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--magenta);
  margin: 0 0 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--magenta);
}
.slide--dark .eyebrow { color: var(--magenta); }
.slide--dark .eyebrow::before { background: var(--magenta); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
h1 {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1.02;
  font-weight: 300;
}
h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 300;
}
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.45; color: var(--text-2); max-width: 50ch; font-weight: 400; }
.slide--dark .lead { color: rgba(255,255,255,0.78); }
.accent { color: var(--magenta); }
em { font-style: italic; color: var(--magenta); font-family: var(--serif); }

/* ---------- Slide 1: Title ---------- */
.title-stage { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 32px 0; }
.title-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark .dot { width: 10px; height: 10px; background: var(--magenta); border-radius: 50%; }
.title-headline { display: flex; flex-direction: column; gap: 24px; }
.title-headline h1 { font-size: clamp(64px, 9vw, 140px); line-height: 0.96; max-width: 18ch; }
.title-headline h1 .accent { color: var(--magenta); font-style: italic; }
.title-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; color: rgba(255,255,255,0.65); font-size: 14px; }
.title-foot .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.40); margin-bottom: 6px; }

/* ---------- Slide 2: typographic tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.tile {
  padding: 36px 32px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
}
.tile .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); font-weight: 600; }
.tile h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.tile p { font-size: 15px; color: var(--text-2); margin: 0; }

/* ---------- Slide 3: split (list vs network) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
  margin-top: 32px;
}
.split-col { display: flex; flex-direction: column; gap: 20px; }
.split-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin: 0; }
.fake-list { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 0; box-shadow: var(--shadow-soft); }
.fake-list .row { padding: 11px 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.fake-list .row:last-child { border-bottom: none; }
.fake-list .row strong { color: var(--ink); font-weight: 500; }

.fake-network {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 32px;
  position: relative; min-height: 280px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Slide 4: approach (chips + asset card) ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 24px; }
.crf-chips { display: flex; flex-direction: column; gap: 12px; }
.crf-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
}
.crf-chip .num { font-family: var(--serif); font-size: 13px; color: var(--magenta); width: 18px; }

.asset-card {
  background: var(--ink-soft);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 28px;
}
.asset-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.asset-card-title { font-family: var(--serif); font-size: 24px; color: #fff; line-height: 1.15; }
.asset-card-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: rgba(219,27,92,0.18); color: var(--magenta); font-weight: 600; }
.asset-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; font-size: 13px; color: rgba(255,255,255,0.65); }
.asset-fields > div > .label { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.asset-fields .value { color: rgba(255,255,255,0.9); font-weight: 500; }
.asset-scores { display: flex; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border-dark); }
.score-pill { flex: 1; text-align: center; }
.score-pill .num { font-family: var(--serif); font-size: 22px; color: #fff; line-height: 1; }
.score-pill .lbl { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* ---------- Slides 5–9: screenshot heroes ---------- */
.shot-wrap { margin-top: 24px; }
.shot {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.shot--dark { border-color: rgba(255,255,255,0.06); }
.shot img { display: block; width: 100%; height: auto; }

.caption-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--text-2); font-size: 13px; }
.caption-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.slide--dark .caption-tag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.75); }
.caption-tag .dot { width: 6px; height: 6px; background: var(--magenta); border-radius: 50%; }

/* ---------- Slide 10: outcomes ---------- */
.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.outcome { display: flex; flex-direction: column; gap: 16px; }
.outcome .num { font-family: var(--serif); font-size: 14px; color: var(--magenta); letter-spacing: 0.08em; }
.outcome h3 { font-family: var(--serif); color: #fff; font-size: 32px; line-height: 1.15; max-width: 12ch; }
.outcome p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.6; }

.signoff {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.signoff .contact { color: rgba(255,255,255,0.85); }

/* ---------- Fade-in on scroll (enhanced only when JS marks <html>) ---------- */
html.js .slide { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 700ms ease; }
html.js .slide.is-visible { opacity: 1; transform: none; }

/* ---------- Sticky deck nav (tiny) ---------- */
.nav {
  position: fixed; top: 50%; right: 24px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 50;
}
.nav a {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(24,24,27,0.18);
  transition: all 200ms ease;
}
.nav a.is-active { background: var(--magenta); transform: scale(1.4); }
.nav a:hover { background: var(--magenta); }
.nav.is-on-dark a { background: rgba(255,255,255,0.20); }
.nav.is-on-dark a.is-active { background: var(--magenta); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .slide { padding: 64px 32px 48px; }
  .tile-grid, .split, .approach-grid, .outcomes-grid { grid-template-columns: 1fr; }
  .slide-foot { grid-template-columns: 1fr; }
  .nav { display: none; }
}
