.code-slides-page {
  margin: 0;
  color: #f7f2e8;
  background:
    linear-gradient(135deg, rgba(8, 10, 13, 0.96), rgba(19, 27, 30, 0.98)),
    url("../assets/images/boardsports-mix.jpg") center / cover fixed;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.code-slides {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.code-slide {
  min-height: min(760px, calc(100vh - 64px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(28px, 5vw, 64px);
  margin: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 13, 16, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  scroll-margin-top: 24px;
}

.code-slide--cover,
.code-slide--summary {
  background:
    linear-gradient(135deg, rgba(9, 14, 17, 0.78), rgba(7, 9, 12, 0.92)),
    url("../assets/images/do-mar-a-tua-rua.jpg") center / cover;
}

.code-slide--cover {
  min-height: min(820px, calc(100vh - 64px));
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(7, 10, 13, 0.08), rgba(7, 10, 13, 0.16) 44%, rgba(7, 10, 13, 0.88)),
    url("../assets/images/do-mar-a-tua-rua.jpg") center / cover;
}

.cover-title {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 760px;
  padding: 24px;
  border-left: 3px solid #78d6c6;
  background: rgba(5, 8, 11, 0.62);
  backdrop-filter: blur(10px);
}

.code-slide__kicker {
  margin: 0;
  color: #78d6c6;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.code-slide h1,
.code-slide h2 {
  max-width: 920px;
  margin: 0;
  color: #fffaf0;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.code-slide h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.code-slide h2 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.code-slide p {
  max-width: 840px;
  margin: 0;
  color: rgba(247, 242, 232, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.line-notes {
  display: grid;
  gap: 8px;
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.line-notes li {
  padding: 10px 12px;
  border-left: 3px solid #78d6c6;
  border-radius: 6px;
  color: rgba(247, 242, 232, 0.86);
  background: rgba(255, 255, 255, 0.055);
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.45;
}

.line-notes strong {
  color: #a8efe3;
}

.slide-print,
.slide-print-grid {
  width: 100%;
  margin: 0;
}

.slide-print {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}

.slide-print img {
  display: block;
  width: 100%;
  max-height: 235px;
  object-fit: cover;
  object-position: top center;
}

.slide-print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.timeline-flow,
.architecture-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 980px;
}

.timeline-flow span,
.architecture-flow span {
  position: relative;
  flex: 1 1 120px;
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(120, 214, 198, 0.28);
  border-radius: 8px;
  color: #fffaf0;
  background: rgba(120, 214, 198, 0.08);
  font-weight: 850;
  text-align: center;
}

.timeline-flow span:not(:last-child)::after,
.architecture-flow span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -10px;
  color: #78d6c6;
}

.timeline-flow--wide span {
  flex-basis: 135px;
}

.code-slide code {
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
}

.code-slide pre {
  width: 100%;
  max-height: 430px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(120, 214, 198, 0.22);
  border-radius: 8px;
  background: rgba(2, 5, 8, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.code-slide pre code {
  display: block;
  min-width: max-content;
  padding: 18px 20px;
  color: #e8f7ee;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.55;
  white-space: pre;
}

.code-slide p code {
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(120, 214, 198, 0.22);
  border-radius: 5px;
  background: rgba(120, 214, 198, 0.08);
  color: #a8efe3;
  font-size: 0.95em;
}

.code-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.code-slide__actions a,
.slide-nav a {
  color: #071014;
  background: #78d6c6;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.code-slide__actions a {
  padding: 12px 16px;
}

.slide-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  display: flex;
  gap: 8px;
  width: min(720px, calc(100% - 24px));
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 10, 13, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.slide-nav a {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.82rem;
}

.project-slider-page {
  overflow: hidden;
}

.project-slider-page .code-slides {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 24px 0 96px;
}

.project-slider-page .code-slide {
  min-height: min(760px, calc(100vh - 148px));
  max-height: calc(100vh - 148px);
  margin: 0;
  overflow: auto;
}

.project-slider-page.is-slider-ready .code-slide {
  display: none;
}

.project-slider-page.is-slider-ready .code-slide.is-active {
  display: flex;
}

.project-slider-page .slide-nav {
  bottom: 16px;
  width: min(560px, calc(100% - 280px));
}

.project-slider-page .slide-nav a.is-active {
  background: #fffaf0;
}

.timeline-nav {
  width: min(1080px, calc(100% - 300px));
}

.timeline-nav a {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 8px 6px;
  color: rgba(247, 242, 232, 0.78);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.timeline-nav a span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  color: #071014;
  background: #78d6c6;
  font-size: 0.68rem;
}

.timeline-nav a.is-active {
  color: #071014;
}

.slider-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 10, 13, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.slider-button {
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #071014;
  background: #78d6c6;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.slider-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.slider-counter {
  min-width: 56px;
  color: rgba(247, 242, 232, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 760px) {
  .code-slides {
    width: min(100% - 18px, 1180px);
    padding-top: 12px;
  }

  .code-slide {
    min-height: auto;
    padding: 24px 16px;
  }

  .code-slide pre {
    max-height: 360px;
  }

  .slide-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .slide-nav a {
    flex: 0 0 auto;
    min-width: 92px;
  }

  .project-slider-page {
    overflow: auto;
  }

  .project-slider-page .code-slides {
    min-height: auto;
    padding-bottom: 152px;
  }

  .project-slider-page .code-slide {
    max-height: none;
  }

  .project-slider-page .slide-nav {
    bottom: 72px;
    width: min(100% - 24px, 720px);
  }

  .slider-controls {
    left: 12px;
    right: 12px;
    justify-content: space-between;
  }

  .slider-button {
    min-width: 88px;
  }
}

.pap-fullscreen-page {
  overflow: hidden;
  background: #070a0d;
}

.pap-fullscreen-page .pap-deck {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
}

.pap-fullscreen-page .pap-slide {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: clamp(56px, 7vw, 104px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(135deg, rgba(7, 10, 13, 0.96), rgba(16, 24, 32, 0.98)),
    url("../assets/images/boardsports-mix.jpg") center / cover;
}

.pap-fullscreen-page .pap-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 68%, rgba(120, 214, 198, 0.08) 68% 69%, transparent 69%),
    radial-gradient(circle at 84% 18%, rgba(240, 123, 37, 0.14), transparent 26rem);
}

.pap-fullscreen-page .pap-slide > * {
  position: relative;
  z-index: 1;
}

.pap-fullscreen-page .pap-cover {
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(4, 7, 10, 0.08), rgba(4, 7, 10, 0.18) 40%, rgba(4, 7, 10, 0.88)),
    url("../assets/images/do-mar-a-tua-rua.jpg") center / cover;
}

.pap-fullscreen-page .pap-cover::after {
  display: none;
}

.pap-cover__content {
  width: min(760px, 82vw);
  padding-left: 28px;
  border-left: 4px solid #78d6c6;
}

.pap-cover h1 {
  font-size: clamp(4.2rem, 9vw, 8rem);
}

.pap-subtitle {
  color: #fffaf0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 750;
}

.pap-meta {
  color: rgba(247, 242, 232, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.pap-fullscreen-page .pap-slide h2 {
  max-width: 1040px;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
}

.pap-points {
  max-width: 1040px;
  gap: 14px;
}

.pap-points li {
  padding: 14px 18px;
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  line-height: 1.36;
  background: rgba(255, 255, 255, 0.07);
}

.pap-points--compact {
  margin-top: 12px;
}

.pap-tech-grid,
.pap-feature-grid,
.pap-process,
.pap-talk-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1080px;
}

.pap-tech-grid span,
.pap-feature-grid span,
.pap-process span,
.pap-talk-grid span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(216, 199, 159, 0.35);
  border-radius: 8px;
  color: #fffaf0;
  background: rgba(16, 24, 32, 0.82);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 850;
  text-align: center;
}

.pap-talk-grid span {
  flex: 1 1 240px;
  min-height: 88px;
  font-size: clamp(1.12rem, 1.7vw, 1.65rem);
}

.pap-talk-grid--wide span {
  flex-basis: 210px;
}

.pap-tech-grid span {
  flex: 1 1 160px;
  min-height: 170px;
  gap: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pap-tech-grid img {
  width: min(104px, 70%);
  height: 92px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.pap-feature-grid span {
  flex: 1 1 210px;
}

.pap-process {
  margin-top: 20px;
}

.pap-process span {
  position: relative;
  flex: 1 1 170px;
  border-color: rgba(120, 214, 198, 0.38);
  background: rgba(120, 214, 198, 0.09);
}

.pap-process span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -13px;
  color: #78d6c6;
}

.pap-summary {
  background:
    linear-gradient(135deg, rgba(7, 10, 13, 0.9), rgba(7, 10, 13, 0.96)),
    url("../assets/images/do-mar-a-tua-rua.jpg") center / cover;
}

.pap-speaker-note {
  max-width: 960px;
  padding-left: 18px;
  border-left: 4px solid #78d6c6;
  color: rgba(247, 242, 232, 0.74);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.pap-slide-nav {
  left: 16px;
  right: auto;
  bottom: 16px;
  width: min(820px, calc(100% - 360px));
  transform: none;
}

.pap-slide-nav a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 6px;
  color: rgba(247, 242, 232, 0.78);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
}

.pap-slide-nav a span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  color: #071014;
  background: #78d6c6;
  font-size: 0.68rem;
}

.pap-slide-nav a.is-active {
  color: #071014;
  background: #fffaf0;
}

.pap-controls {
  left: 50%;
  right: auto;
  bottom: 18px;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .pap-fullscreen-page {
    overflow: auto;
  }

  .pap-fullscreen-page .pap-deck {
    height: auto;
  }

  .pap-fullscreen-page .pap-slide {
    min-height: 100svh;
    height: auto;
    padding: 32px 18px 156px;
    overflow: visible;
  }

  .pap-fullscreen-page .pap-slide h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .pap-points li {
    font-size: 1rem;
  }

  .pap-slide-nav {
    left: 12px;
    right: 12px;
    bottom: 72px;
    width: auto;
    overflow-x: auto;
  }
}
