#o-caminho.leve-section {
  padding: clamp(1.35rem, 2.7vh, 1.7rem) clamp(2.4rem, 4vw, 5rem) clamp(1.35rem, 2.7vh, 1.7rem);
  overflow: hidden;
}

#o-caminho .leve-section__content {
  width: min(1280px, 100%);
}

.page-one-editorial {
  display: grid;
  gap: 2.6rem;
}

.page-one-editorial__intro {
  display: grid;
  justify-items: center;
  gap: clamp(.42rem, .75vw, .65rem);
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.page-one-editorial__intro .eyebrow {
  margin: 0 !important;
  color: var(--muted) !important;
}

.page-one-editorial__intro h1 {
  max-width: none;
  color: var(--violet);
  font-family: var(--leve-display, Georgia, "Times New Roman", serif);
  font-size: clamp(2.05rem, 3.45vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .99;
}

.page-one-editorial__intro > p:last-child {
  max-width: 88ch;
  color: var(--muted);
  font-size: clamp(.84rem, .92vw, .94rem);
  line-height: 1.45;
}

.editorial-worlds {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: center;
  gap: clamp(3.2rem, 6vw, 7rem);
  width: min(1210px, 100%);
  margin: clamp(1rem, 1.65vw, 1.5rem) auto 0;
}

.editorial-label {
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr);
  align-items: center;
  gap: .75rem;
  margin-bottom: .68rem;
}

.editorial-label p {
  color: var(--violet);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.editorial-label > span {
  height: 1px;
  border-top: 1px dashed rgb(129 105 156 / 26%);
}

.code-paper {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: clamp(1.1rem, 1.7vw, 2rem);
  border: 1px solid rgb(129 105 156 / 7%);
  border-radius: 31px 43px 35px 48px / 39px 31px 45px 36px;
  background:
    linear-gradient(rgb(255 255 252 / 88%), rgb(255 255 252 / 88%)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgb(129 105 156 / 4%) 26px 27px);
  box-shadow: var(--shadow-md);
  transform: rotate(-.7deg);
}

.code-paper__tape {
  position: absolute;
  z-index: 3;
  width: 58px;
  height: 17px;
  background: rgb(215 202 235 / 66%);
  box-shadow: 0 2px 3px rgb(69 47 87 / 4%);
}

.code-paper__tape--top {
  top: -9px;
  left: 42%;
  transform: rotate(-3deg);
}

.code-paper__tape--corner {
  right: 11%;
  bottom: -6px;
  width: 43px;
  transform: rotate(8deg);
}

.code-paper__lead,
.teacher-cloud__lead {
  max-width: none !important;
  color: var(--ink);
  font-size: clamp(.96rem, 1.2vw, 0.8rem) !important;
  line-height: 1.32 !important;
}

.code-paper__lead strong {
  color: var(--violet);
  font-weight: 700;
}

.dev-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .3rem;
  margin: .78rem 0 .72rem;
  padding: 0;
  list-style: none;
}

.dev-flow::before {
  position: absolute;
  z-index: 0;
  top: 28px;
  right: 10%;
  left: 10%;
  border-top: 1.5px dashed rgb(129 105 156 / 48%);
  content: "";
}

.dev-flow li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .35rem;
  min-width: 0;
  color: var(--violet);
  text-align: center;
}

.dev-flow__node {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 4px solid rgb(255 255 255 / 86%);
  border-radius: 50%;
  background: var(--violet-soft);
  box-shadow: 0 7px 17px rgb(81 61 103 / 7%);
}

.dev-flow__node small {
  position: absolute;
  top: 3px;
  font-size: .55rem;
  font-weight: 850;
}

.dev-flow__node svg {
  width: 22px;
  height: 22px;
  margin-top: 8px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev-flow li b {
  font-family: var(--leve-display, Georgia, serif);
  font-size: clamp(.61rem, .7vw, .7rem);
  font-weight: 650;
}

.code-paper__accent {
  position: relative;
  max-width: none !important;
  width: fit-content;
  margin: .15rem 0 .65rem !important;
  padding: .45rem .8rem .42rem 1.4rem;
  border-radius: 999px;
  color: var(--coral) !important;
  font-family: var(--leve-display, Georgia, serif);
  background: var(--coral-soft);
  font-size: clamp(.8rem, 1.15vw, 0.5rem) !important;
  font-weight: 600;
  line-height: 1.18 !important;
}

.paper-note {
  position: relative;
  margin: 0;
  padding: .68rem .95rem .65rem;
  border: 0;
  border-radius: 10px 15px 12px 17px;
  background: var(--amber-soft);
  box-shadow: var(--shadow-sm);
  transform: rotate(-.45deg);
  width: 340px;
  justify-self: center;
}

.paper-note > span {
  position: absolute;
  top: -8px;
  left: 17%;
  width: 52px;
  height: 15px;
  background: rgb(241 213 123 / 58%);
  transform: rotate(-4deg);
}

.paper-note p {
  max-width: none !important;
  color: var(--ink);
  font-size: .76rem !important;
  line-height: 1.34 !important;
}

.code-paper__microcopy {
  max-width: none !important;
  margin-top: .65rem !important;
  color: var(--muted) !important;
  font-size: .69rem !important;
  line-height: 1.38 !important;
}

.editorial-bridge {
  position: absolute;
  z-index: 4;
  top: -3.75rem;
  left: 50%;
  display: grid;
  width: clamp(210px, 24vw, 260px);
  justify-items: center;
  color: var(--violet);
  text-align: center;
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
}

.editorial-bridge svg {
  width: 100%;
  overflow: visible;
}

.editorial-bridge path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .68;
}

.editorial-bridge span {
  position: absolute;
  top: 1rem;
  width: 18ch;
  padding: .15rem .4rem;
  background: rgb(244 240 249 / 72%);
  font-family: var(--leve-display, Georgia, serif);
  font-size: clamp(.64rem, .85vw, .76rem);
  font-style: italic;
  line-height: 1.23;
}

.teacher-cloud {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: clamp(1.1rem, 1.7vw, 2rem);
  border: 1px solid rgb(129 105 156 / 7%);
  border-radius: 31px 43px 35px 48px / 39px 31px 45px 36px;
  background:
    linear-gradient(rgb(255 255 252 / 88%), rgb(255 255 252 / 88%)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgb(129 105 156 / 4%) 26px 27px);
  box-shadow: var(--shadow-md);
  transform: rotate(.7deg);
}

.editorial-label--soft {
  margin-bottom: .52rem;
}

.teacher-cloud__lead {
  color: var(--muted);
}

.bubble-cascade {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: .65rem;
  isolation: isolate;
}

.bubble-cascade__thread {
  position: absolute;
  z-index: -1;
  inset: 0 3% 0 4%;
  width: 93%;
  height: 100%;
  overflow: visible;
}

.bubble-cascade__thread path {
  fill: none;
  stroke: rgb(129 105 156 / 56%);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.bubble-cascade blockquote {
  position: relative;
  width: fit-content;
  max-width: 79%;
  margin: 0;
  padding: .46rem .7rem;
  border: 1px solid rgb(129 105 156 / 7%);
  border-radius: 19px 19px 19px 6px;
  color: var(--muted);
  background: rgb(242 234 248 / 94%);
  box-shadow: 0 8px 18px rgb(81 61 103 / 7%);
  font-size: clamp(.66rem, .75vw, .74rem);
  font-weight: 500;
  line-height: 1.26;
}

.bubble-cascade blockquote::after {
  position: absolute;
  bottom: -5px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 0 0 8px;
  background: inherit;
  content: "";
  transform: rotate(34deg);
}

.bubble-cascade blockquote:nth-of-type(2) {
  justify-self: end;
  max-width: 76%;
  border-radius: 19px 19px 6px;
  background: rgb(242 234 248 / 94%);
}

.bubble-cascade blockquote:nth-of-type(2)::after,
.bubble-cascade blockquote:nth-of-type(4)::after {
  right: 16px;
  left: auto;
  transform: rotate(56deg);
}

.bubble-cascade blockquote:nth-of-type(3) {
  margin-left: 12%;
  max-width: 66%;
}

.bubble-cascade blockquote:nth-of-type(4) {
  justify-self: end;
  max-width: 74%;
  border-radius: 19px 19px 6px;
}

.teacher-cloud__closing {
  display: grid;
  gap: .27rem;
  margin-top: .7rem;
  padding-top: .58rem;
  border-top: 1px dashed rgb(129 105 156 / 17%);
}

.teacher-cloud__closing > p {
  max-width: none !important;
  color: var(--muted);
  font-size: .8rem !important;
  line-height: 1.32 !important;
}

.teacher-cloud__closing h2 {
  width: fit-content;
  max-width: 100%;
  padding: .38rem .72rem .35rem;
  border-radius: 999px;
  color: var(--violet);
  font-family: var(--leve-display, Georgia, serif);
  background: rgb(218 202 239 / 72%);
  font-size: clamp(1rem, 1.75vw, 1rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.page-one-conclusion {
  width: min(1100px, 94%);
  margin-inline: auto;
  color: var(--muted);
  text-align: center;
}

.page-one-conclusion p {
  max-width: none !important;
  margin: 0 !important;
  font-size: clamp(.74rem, .82vw, .84rem) !important;
  line-height: 1.45 !important;
}

.page-one-conclusion strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(1.08rem, 1.75vw, 1rem);
}

.page-one-conclusion span {
  display: block;
}

.evidence-scene__reflection {
  max-width: 60ch !important;
  margin: 1.5rem auto !important;
  color: var(--violet) !important;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(.9rem, 1.15vw, 1.08rem) !important;
  font-weight: 700;
  line-height: 1.5 !important;
  text-align: center;
}

.evidence-islands .island p {
  max-width: none;
}

.evidence-islands .island h3 {
  max-width: 30ch;
  margin-inline: auto;
}

.evidence-islands .island small {
  display: block;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.matheus-scene__pause-button.pausa-intro-scene__example-button {
  border-color: var(--violet);
  color: var(--violet);
  background: transparent;
  box-shadow: none;
}

.matheus-scene__pause-button.pausa-intro-scene__example-button:hover,
.matheus-scene__pause-button.pausa-intro-scene__example-button:focus-visible {
  color: var(--violet);
  background: rgb(129 105 156 / 8%);
  box-shadow: none;
}

@media (max-width: 900px) {
  .editorial-worlds {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.4rem;
    margin-top: 1rem;
  }

  .code-paper {
    transform: rotate(-.35deg);
  }

  .editorial-bridge {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 2;
    width: 220px;
    margin: -1.1rem auto -1.45rem;
    transform: rotate(2deg);
  }

  .editorial-bridge svg {
    transform: rotate(90deg) scale(.7);
  }

  .editorial-bridge span {
    top: .55rem;
    background: rgb(244 240 249 / 88%);
  }

  .teacher-cloud {
    grid-row: 3;
    width: min(620px, 94%);
    margin-inline: auto;
  }

}

@media (max-width: 560px) {
  #o-caminho.leve-section {
    padding-inline: 1rem;
    padding-block: 4rem 4.6rem;
  }

  .page-one-editorial {
    gap: 1.55rem;
  }

  .page-one-editorial__intro h1 {
    max-width: 18ch;
    font-size: clamp(1.9rem, 8.9vw, 2.5rem);
    line-height: 1.01;
  }

  .page-one-editorial__intro > p:last-child {
    max-width: 38ch;
    font-size: .86rem;
  }

  .code-paper {
    padding: 1.15rem;
  }

  .dev-flow__node {
    width: 51px;
    height: 51px;
  }

  .dev-flow::before {
    top: 26px;
  }

  .dev-flow__node small {
    top: 3px;
  }

  .dev-flow__node svg {
    width: 18px;
    height: 18px;
    margin-top: 8px;
  }

  .dev-flow li b {
    font-size: .57rem;
  }

  .teacher-cloud {
    width: 100%;
    padding: 1.15rem .95rem 1.25rem;
  }

  .bubble-cascade blockquote {
    max-width: 86%;
  }

  .page-one-conclusion {
    width: 94%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-paper,
  .editorial-bridge,
  .teacher-cloud {
    transform: none;
  }
}

/* Pages 7–8: reuse the established Tami dialogue and polaroid language. */
.difference-scene__intro {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.difference-scene__intro h2 {
  max-width: 24ch;
  margin-inline: auto;
}

.difference-scene__intro p {
  margin-inline: auto;
}

.difference-dialogues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: min(1100px, 100%);
  margin-inline: auto;
}

.difference-dialogue {
  min-width: 0;
  padding: .8rem .45rem;
}

.difference-dialogue:nth-child(1) {
  transform: rotate(-1.25deg);
}

.difference-dialogue:nth-child(2) {
  transform: translateY(.7rem) rotate(.8deg);
}

.difference-dialogue:nth-child(3) {
  transform: rotate(-.55deg);
}

.difference-dialogue .tami-sticker {
  width: clamp(86px, 8.5vw, 112px);
  flex: 0 0 auto;
}

.difference-dialogue .matheus-conversation__halo {
  width: 112px;
  height: 112px;
}

.difference-dialogue .speech-bubble {
  max-width: 220px;
  padding: .72rem .85rem;
  font-size: clamp(.7rem, .95vw, .84rem);
  line-height: 1.38;
}

@media (min-width: 901px) {
  .memories-scene {
    grid-template-columns: minmax(430px, 1fr) minmax(360px, .9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    max-width: 1160px;
  }
}

.memory-clippings {
  width: min(460px, 100%);
  min-height: 410px;
  isolation: isolate;
}

.memory-clippings__photos {
  position: absolute;
  z-index: 0;
  inset: -18px -24px -12px;
  pointer-events: none;
}

.memory-clippings__photos .photo-placeholder {
  position: absolute !important;
  inset: auto !important;
  display: block;
  margin: 0;
  padding: 4px;
  border: 3px solid white;
  border-radius: 9px;
  opacity: .78;
  box-shadow: 0 8px 18px rgb(69 47 87 / 16%);
  filter: saturate(.86);
}

.memory-clippings__photos .photo-placeholder--portrait {
  width: 88px;
  height: 124px;
}

.memory-clippings__photos .photo-placeholder--landscape {
  width: 124px;
  height: 88px;
}

.memory-clippings__photos .photo-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.memory-clippings__photos .photo-placeholder figcaption {
  display: none;
}

.memory-clippings__photos .photo-placeholder:nth-child(1) { top: 6px !important; left: 2px !important; transform: rotate(-10deg); }
.memory-clippings__photos .photo-placeholder:nth-child(2) { top: -4px !important; right: 10px !important; transform: rotate(8deg); }
.memory-clippings__photos .photo-placeholder:nth-child(3) { top: 100px !important; left: -18px !important; transform: rotate(6deg); }
.memory-clippings__photos .photo-placeholder:nth-child(4) { top: 94px !important; right: -10px !important; transform: rotate(-7deg); }
.memory-clippings__photos .photo-placeholder:nth-child(5) { bottom: 84px !important; left: -12px !important; transform: rotate(-6deg); }
.memory-clippings__photos .photo-placeholder:nth-child(6) { right: -18px !important; bottom: 72px !important; transform: rotate(7deg); }
.memory-clippings__photos .photo-placeholder:nth-child(7) { bottom: -2px !important; left: 58px !important; transform: rotate(5deg); }
.memory-clippings__photos .photo-placeholder:nth-child(8) { right: 48px !important; bottom: 0 !important; transform: rotate(-5deg); }
.memory-clippings__photos .photo-placeholder:nth-child(9) { top: 54px !important; left: 106px !important; transform: rotate(3deg); }
.memory-clippings__photos .photo-placeholder:nth-child(10) { top: 52px !important; right: 104px !important; transform: rotate(-3deg); }

.memory-clippings__photo {
  z-index: 1;
}

@media (max-width: 720px) {
  .difference-dialogues {
    grid-template-columns: 1fr;
    gap: .45rem;
    width: min(390px, 100%);
  }

  .difference-dialogue,
  .difference-dialogue:nth-child(2) {
    padding-block: .25rem;
    transform: none;
  }

  .difference-dialogue .speech-bubble {
    max-width: 245px;
  }

  .memory-clippings {
    min-height: 360px;
  }

  .memory-clippings__photos {
    inset: -8px 0 0;
    transform: scale(.88);
    transform-origin: center;
  }
}

/* Memories collage: smaller notes, wider photographic constellation. */
.memory-clippings {
  min-height: 430px;
}

.memory-clippings__photos {
  inset: 0;
}

.memory-clippings__photos .photo-placeholder {
  inset: auto !important;
}

.memory-clippings__photos .photo-placeholder--portrait {
  width: 84px;
  height: 118px;
}

.memory-clippings__photos .photo-placeholder--landscape {
  width: 118px;
  height: 84px;
}

.memory-clippings__photos .photo-placeholder:nth-child(1) { top: 0 !important; right: auto !important; bottom: auto !important; left: 0 !important; }
.memory-clippings__photos .photo-placeholder:nth-child(2) { top: 0 !important; right: auto !important; bottom: auto !important; left: 92px !important; }
.memory-clippings__photos .photo-placeholder:nth-child(3) { top: 0 !important; right: 92px !important; bottom: auto !important; left: auto !important; }
.memory-clippings__photos .photo-placeholder:nth-child(4) { top: 0 !important; right: 0 !important; bottom: auto !important; left: auto !important; }
.memory-clippings__photos .photo-placeholder:nth-child(5) { top: 132px !important; right: auto !important; bottom: auto !important; left: 0 !important; }
.memory-clippings__photos .photo-placeholder:nth-child(6) { top: 132px !important; right: 0 !important; bottom: auto !important; left: auto !important; }
.memory-clippings__photos .photo-placeholder:nth-child(7) { top: auto !important; right: auto !important; bottom: 0 !important; left: 0 !important; }
.memory-clippings__photos .photo-placeholder:nth-child(8) { top: auto !important; right: auto !important; bottom: 0 !important; left: 94px !important; }
.memory-clippings__photos .photo-placeholder:nth-child(9) { top: auto !important; right: 92px !important; bottom: 0 !important; left: auto !important; }
.memory-clippings__photos .photo-placeholder:nth-child(10) { top: auto !important; right: 0 !important; bottom: 0 !important; left: auto !important; }

.memory-clippings__photo {
  top: 150px;
  left: 155px;
  width: 150px;
  height: 108px;
}

.memory-clippings .memory {
  padding: .7rem;
}

.memory-clippings .memory strong {
  font-size: .86rem;
  line-height: 1.12;
}

.memory-clippings .memory--polaroid {
  top: 62px;
  left: 88px;
  width: 138px;
  height: 164px;
}

.memory-clippings .memory--note {
  top: 48px;
  right: 68px;
  width: 142px;
  min-height: 94px;
}

.memory-clippings .memory--message {
  right: auto;
  bottom: 72px;
  left: 145px;
  width: 172px;
  min-height: 104px;
}

.memory-clippings .memory--message strong {
  font-size: .78rem;
}

@media (max-width: 720px) {
  .memory-clippings {
    min-height: 370px;
  }

  .memory-clippings__photos {
    inset: 0;
    transform: none;
  }

  .memory-clippings__photos .photo-placeholder--portrait {
    width: 62px;
    height: 88px;
  }

  .memory-clippings__photos .photo-placeholder--landscape {
    width: 88px;
    height: 62px;
  }

  .memory-clippings__photos .photo-placeholder:nth-child(1) { top: 0 !important; right: auto !important; bottom: auto !important; left: 0 !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(2) { top: 0 !important; right: auto !important; bottom: auto !important; left: 66px !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(3) { top: 0 !important; right: 66px !important; bottom: auto !important; left: auto !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(4) { top: 0 !important; right: 0 !important; bottom: auto !important; left: auto !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(5) { top: 102px !important; right: auto !important; bottom: auto !important; left: 0 !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(6) { top: 102px !important; right: 0 !important; bottom: auto !important; left: auto !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(7) { top: auto !important; right: auto !important; bottom: 0 !important; left: 0 !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(8) { top: auto !important; right: auto !important; bottom: 0 !important; left: 66px !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(9) { top: auto !important; right: 66px !important; bottom: 0 !important; left: auto !important; }
  .memory-clippings__photos .photo-placeholder:nth-child(10) { top: auto !important; right: 0 !important; bottom: 0 !important; left: auto !important; }

  .memory-clippings__photo {
    top: 126px;
    left: 94px;
    width: 128px;
    height: 92px;
  }

  .memory-clippings .memory--polaroid {
    top: 52px;
    left: 48px;
    width: 118px;
    height: 142px;
  }

  .memory-clippings .memory--note {
    top: 42px;
    right: 30px;
    width: 124px;
    min-height: 84px;
  }

  .memory-clippings .memory--message {
    bottom: 62px;
    left: 78px;
    width: 152px;
    min-height: 94px;
  }
}

/* Page 9: permission first, then a smaller question. */
.middle-way-scene__copy .eyebrow {
  margin: 0 !important;
}

.middle-way-scene__copy h2 {
  max-width: 16ch;
}

.middle-way-scene__question {
  max-width: 25ch;
  margin: .35rem 0 -.4rem;
  color: #f3eafe;
  font-family: var(--leve-display);
  font-size: clamp(.9rem, 1.35vw, 1.15rem);
  font-weight: 700;
  line-height: 1.15;
}
