:root {
      --bg: #faf9f7;
      --bg-warm: #f8f4ec;
      --bg-muted: #f1eee7;
      --ink: #0a0a0f;
      --ink-soft: #161616;
      --ink-muted: rgba(22, 22, 22, 0.62);
      --line: rgba(167, 167, 159, 0.35);
      --line-strong: rgba(167, 167, 159, 0.55);
      --white: #ffffff;
      --accent: #161616;
      --slide-w: min(1120px, 94vw);
      --slide-h: min(630px, calc(94vw * 0.5625), 78vh);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      background: #101010;
      color: var(--ink);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 16px 48px;
    }

    .chrome {
      width: var(--slide-w);
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: rgba(241, 238, 231, 0.7);
      font-size: 13px;
      margin-bottom: 14px;
      letter-spacing: 0.02em;
    }

    .chrome strong { color: var(--bg-muted); font-weight: 500; }

    .deck-nav {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .deck-nav button {
      appearance: none;
      border: 1px solid rgba(167, 167, 159, 0.35);
      background: transparent;
      color: var(--bg-muted);
      padding: 6px 12px;
      border-radius: 999px;
      cursor: pointer;
      font: inherit;
      font-size: 12px;
    }

    .deck-nav button:hover { background: rgba(255,255,255,0.06); }

    .stage {
      width: var(--slide-w);
      height: var(--slide-h);
      position: relative;
    }

    .slide {
      position: absolute;
      inset: 0;
      background: var(--bg);
      border-radius: 18px;
      overflow: hidden;
      display: none;
      flex-direction: column;
      padding: 40px 48px 32px;
      box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    }

    .slide.active { display: flex; }

    .slide.dark {
      background: var(--ink);
      color: var(--bg);
    }

    .slide.warm { background: var(--bg-warm); }

    .slide-header {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      margin-bottom: 18px;
      flex-shrink: 0;
    }

    .title-slide .slide-header {
      justify-content: space-between;
    }

    .slide-title {
      font-size: clamp(26px, 3vw, 36px);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin: 0 0 14px;
      max-width: none;
      flex-shrink: 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .brand-mark {
      width: auto;
      min-width: 28px;
      height: 28px;
      padding: 0 8px;
      border-radius: 7px;
      background: var(--ink);
      color: var(--bg);
      display: grid;
      place-items: center;
      font-weight: 500;
      font-size: 10px;
      letter-spacing: 0.06em;
      white-space: nowrap;
    }

    .slide.dark .brand-mark {
      background: var(--bg);
      color: var(--ink);
    }

    .brand-word {
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.04em;
    }

    .brand-sub {
      font-size: 11px;
      color: var(--ink-muted);
      letter-spacing: 0.02em;
      margin-left: 2px;
    }

    .slide.dark .brand-sub { color: rgba(241, 238, 231, 0.45); }

    .meta {
      font-size: 12px;
      color: var(--ink-muted);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .slide.dark .meta { color: rgba(241, 238, 231, 0.55); }

    h1 {
      font-size: clamp(28px, 3.4vw, 42px);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.12;
      max-width: 18ch;
    }

    h2 {
      font-size: clamp(24px, 2.8vw, 34px);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 10px;
    }

    .tagline {
      font-size: clamp(14px, 1.5vw, 17px);
      font-weight: 400;
      letter-spacing: -0.01em;
      line-height: 1.4;
      max-width: 62ch;
      color: var(--ink-muted);
      margin: 0 0 14px;
      flex-shrink: 0;
    }

    .slide.warm .tagline { color: rgba(22, 22, 22, 0.7); }

    .lede {
      font-size: 15px;
      line-height: 1.55;
      color: var(--ink-muted);
      max-width: 62ch;
      margin-bottom: 22px;
    }

    .slide.dark .lede { color: rgba(241, 238, 231, 0.65); }

    .points {
      list-style: none;
      display: grid;
      gap: 12px;
      margin-top: 0;
      flex: 1;
      align-content: start;
    }

    .points li {
      display: grid;
      grid-template-columns: 28px 1fr;
      gap: 14px;
      padding: 14px 16px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 12px;
    }

    .slide.warm .points li { background: rgba(255,255,255,0.65); }

    .points .num {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: var(--ink);
      color: var(--bg);
      display: grid;
      place-items: center;
      font-size: 12px;
      font-weight: 500;
    }

    .points strong {
      display: block;
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 4px;
    }

    .points p {
      font-size: 13px;
      line-height: 1.45;
      color: var(--ink-muted);
    }

    .letter-layout {
      display: grid;
      grid-template-columns: 1fr 150px;
      gap: 20px;
      flex: 1;
      min-height: 0;
      align-items: start;
      overflow: hidden;
    }

    .letter-aside {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding-top: 2px;
      flex-shrink: 0;
    }

    .letter-aside img {
      width: 132px;
      height: 132px;
      object-fit: cover;
      border-radius: 12px;
      border: 1px solid var(--line);
      display: block;
    }

    .letter-aside a {
      font-size: 11px;
      color: #0d6e4f;
      font-weight: 500;
      text-decoration: underline;
      text-underline-offset: 3px;
      letter-spacing: 0.02em;
    }

    .letter-aside a:hover {
      color: #085639;
    }

    .resume {
      display: grid;
      grid-template-columns: 1fr;
      gap: 6px;
      flex: 1;
      min-height: 0;
      overflow: hidden;
      font-size: 9.5px;
      line-height: 1.32;
      color: var(--ink-soft);
    }

    .resume.two-col {
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .resume-col {
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-height: 0;
      overflow: hidden;
    }

    .resume h3 {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin: 2px 0 0;
    }

    .resume-job {
      margin-bottom: 1px;
    }

    .resume-job .role {
      font-weight: 500;
      color: var(--ink);
      font-size: 10px;
    }

    .resume-job .meta {
      font-size: 9px;
      color: var(--ink-muted);
      text-transform: none;
      letter-spacing: 0;
      margin: 1px 0 2px;
    }

    .resume-job ul {
      list-style: none;
      display: grid;
      gap: 2px;
    }

    .resume-job li {
      padding-left: 8px;
      position: relative;
    }

    .resume-job li::before {
      content: "·";
      position: absolute;
      left: 0;
      top: 0;
      color: var(--ink-muted);
    }

    .resume-job .label {
      font-weight: 500;
      color: var(--ink);
      font-size: 9px;
      margin-top: 2px;
      padding-left: 0;
    }

    .resume-job .label::before {
      content: none;
    }

    .resume-contact {
      font-size: 11px;
      color: var(--ink-muted);
      margin-bottom: 4px;
    }

    .resume-contact a {
      color: #0d6e4f;
      font-weight: 500;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .slide[data-title="Resume"],
    .slide[data-title="Resume 2"] {
      padding-top: 28px;
      padding-bottom: 24px;
    }

    .slide[data-title="Resume"] .slide-title,
    .slide[data-title="Resume 2"] .slide-title {
      margin-bottom: 4px;
      font-size: clamp(20px, 2.4vw, 28px);
    }

    .letter {
      font-size: 11.5px;
      line-height: 1.42;
      color: var(--ink-soft);
      max-width: none;
      display: grid;
      gap: 8px;
      overflow: hidden;
      min-height: 0;
      padding-right: 4px;
      padding-bottom: 4px;
    }

    .slide[data-title="Cover letter"] {
      padding-bottom: 28px;
    }

    .slide[data-title="Cover letter"] .slide-title {
      margin-bottom: 10px;
    }

    .slide[data-title="Cover letter"] .signoff {
      margin-top: 2px;
      padding-bottom: 2px;
    }

    .letter p strong { font-weight: 500; color: var(--ink); }

    .signoff {
      margin-top: 8px;
      font-size: 13px;
      color: var(--ink-muted);
    }

    .phase-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      flex: 1;
      min-height: 0;
      margin-top: 0;
      align-content: stretch;
    }

    .phase {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 10px 8px;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }

    .phase-label {
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 3px;
    }

    .phase h3 {
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 4px;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    .phase-desc {
      font-size: 10px;
      line-height: 1.3;
      color: var(--ink-muted);
      margin-bottom: 7px;
    }

    .check {
      list-style: none;
      display: grid;
      gap: 5px;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    .check li {
      font-size: 10px;
      line-height: 1.3;
      color: var(--ink-muted);
      padding-left: 12px;
      position: relative;
    }

    .check li::before {
      content: "";
      width: 7px;
      height: 7px;
      border: 1.5px solid var(--ink);
      border-radius: 2px;
      position: absolute;
      left: 0;
      top: 2px;
    }

    .check li strong {
      color: var(--ink);
      font-weight: 500;
      display: block;
      margin-bottom: 0;
      font-size: 10.5px;
      line-height: 1.25;
    }

    .footer-note {
      margin-top: 8px;
      font-size: 11px;
      color: var(--ink-muted);
      border-top: 1px solid var(--line);
      padding-top: 7px;
      flex-shrink: 0;
    }

    .slide[data-title="90 days"] {
      padding-top: 28px;
      padding-bottom: 22px;
    }

    .slide[data-title="90 days"] .slide-title {
      font-size: clamp(20px, 2.4vw, 28px);
      margin-bottom: 8px;
    }

    .slide[data-title="90 days"] .slide-header {
      margin-bottom: 10px;
    }

    /* Lifecycle flowchart */
    .lifecycle {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: auto auto auto;
      gap: 10px;
      flex: 1;
      min-height: 0;
      margin-top: 0;
      align-content: start;
    }

    .lifecycle .box.span-2 {
      grid-column: span 2;
    }

    .lifecycle .box.span-3 {
      grid-column: 1 / -1;
    }

    .lifecycle .flow-label {
      font-size: 10px;
      color: var(--ink-muted);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .slide-title.compact {
      font-size: clamp(18px, 2.2vw, 26px);
      margin-bottom: 10px;
    }

    .box {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--white);
      padding: 10px;
      min-height: 0;
      overflow: auto;
    }

    .box h3 {
      font-size: 11px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 8px;
      color: var(--ink-muted);
    }

    .cols {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .cols.cols-2 {
      grid-template-columns: 1fr 1fr;
    }

    .col-title {
      font-size: 11px;
      font-weight: 500;
      margin-bottom: 6px;
      color: var(--ink);
    }

    .node {
      background: var(--bg-muted);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 6px 8px;
      font-size: 10px;
      line-height: 1.3;
      color: var(--ink-soft);
      margin-bottom: 4px;
    }

    .node.emphasis {
      background: var(--ink);
      color: var(--bg);
      border-color: var(--ink);
    }

    .flow-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }

    .pill {
      background: var(--bg-muted);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 10px;
      color: var(--ink-soft);
    }

    .arrow {
      color: var(--ink-muted);
      font-size: 12px;
    }

    .tools {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
    }

    .tool-card {
      background: var(--bg-warm);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px;
    }

    .tool-card strong {
      display: block;
      font-size: 11px;
      font-weight: 500;
      margin-bottom: 4px;
    }

    .tool-card p {
      font-size: 10px;
      line-height: 1.35;
      color: var(--ink-muted);
    }

    .title-slide {
      justify-content: space-between;
    }

    .title-slide .hero {
      margin-top: 48px;
    }

    .eyebrow {
      font-size: 13px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 14px;
    }

    .slide.dark .eyebrow { color: rgba(241, 238, 231, 0.5); }

    .title-slide h1 {
      max-width: none;
      width: 100%;
      font-size: clamp(22px, 2.9vw, 34px);
      margin-bottom: 18px;
      white-space: nowrap;
    }

    .title-slide .sub {
      font-size: 16px;
      line-height: 1.5;
      color: rgba(241, 238, 231, 0.65);
      max-width: 36ch;
    }

    .title-footer {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      border-top: 1px solid rgba(167, 167, 159, 0.25);
      padding-top: 18px;
      font-size: 13px;
      color: rgba(241, 238, 231, 0.55);
    }

    .dots {
      display: flex;
      gap: 6px;
      margin-top: 16px;
    }

    .dots span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(167, 167, 159, 0.35);
    }

    .dots span.on { background: var(--bg-muted); }

    .hint {
      margin-top: 10px;
      color: rgba(241, 238, 231, 0.4);
      font-size: 12px;
    }

    @media screen and (max-width: 900px) {
      .slide { padding: 28px 24px 24px; }
      .phase-grid { grid-template-columns: 1fr; }
      .lifecycle { grid-template-columns: 1fr; }
      .tools { grid-template-columns: 1fr 1fr; }
      .stage { height: auto; min-height: 70vh; }
      .slide {
        position: relative;
        display: none;
        height: auto;
        min-height: 70vh;
      }
      .slide.active { display: flex; }
    }

    @media print {
      .phase-grid {
        grid-template-columns: repeat(3, 1fr) !important;
      }
      .lifecycle {
        grid-template-columns: repeat(3, 1fr) !important;
      }
      .phase {
        overflow: hidden;
      }
      .slide[data-title="90 days"] .phase-desc {
        font-size: 9px !important;
        line-height: 1.25 !important;
        margin-bottom: 5px !important;
      }
      .slide[data-title="90 days"] .check li {
        font-size: 9px !important;
        line-height: 1.25 !important;
      }
      .slide[data-title="90 days"] .check li strong {
        font-size: 9.5px !important;
      }
      .slide[data-title="90 days"] .check {
        gap: 4px !important;
      }
      .slide[data-title="90 days"] .phase h3 {
        font-size: 12px !important;
      }
    }
