@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fredoka:wght@500;600;700&display=swap");

:root {
  --cream: #f6efe3;
  --paper: #fffaf2;
  --ink: #173b25;
  --ink-soft: #355442;
  --blue: #9bc9e7;
  --blue-dark: #2d63ae;
  --sky: #43b3cf;
  --green: #1e5a31;
  --green-soft: #4f8758;
  --red: #ed332f;
  --orange: #f47622;
  --yellow: #ffd225;
  --pink: #ec86a6;
  --white: #fffdf8;
  --radius-lg: 3rem;
  --radius-md: 1.8rem;
  --shadow: 0 1.2rem 3.2rem rgba(23, 59, 37, 0.12);
  --content: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.26;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 3rem), var(--content));
  align-items: center;
  justify-content: flex-end;
  padding: 1.4rem 0;
  transform: translateX(-50%);
}

.csslaval-logo {
  width: clamp(10rem, 17vw, 13rem);
  height: auto;
  object-fit: contain;
}

.hero {
  position: relative;
  display: grid;
  min-height: 820px;
  grid-template-columns: minmax(0, 0.93fr) minmax(480px, 1.07fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: 8.5rem max(1.5rem, calc((100vw - var(--content)) / 2)) 5rem;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: -12vw;
  bottom: -18rem;
  z-index: -2;
  width: 62vw;
  height: 38rem;
  border-radius: 50%;
  background: rgba(237, 134, 166, 0.17);
  content: "";
  transform: rotate(-8deg);
}

.paper-grain {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 210, 37, 0.23), transparent 18rem),
    radial-gradient(circle at 95% 15%, rgba(67, 179, 207, 0.15), transparent 23rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  display: inline-block;
  width: 1.8rem;
  height: 0.16rem;
  margin-right: 0.6rem;
  border-radius: 99px;
  background: currentColor;
  vertical-align: 0.22rem;
  content: "";
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: "Fredoka", "Cooper Black", serif;
  line-height: 0.98;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 7.6vw, 8.3rem);
  letter-spacing: -0.075em;
}

h1 span {
  display: block;
  width: max-content;
  max-width: 100%;
}

h1 span:first-child {
  transform: rotate(-2deg);
}

h1 span:nth-child(2) {
  margin-left: 0.38em;
  color: var(--green);
  transform: rotate(1deg);
}

h1 span:last-child {
  margin-left: 0.03em;
  color: var(--blue-dark);
  transform: rotate(-1deg);
}

.hero-intro {
  max-width: 610px;
  margin: 2rem 0 2.2rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.primary-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.88rem 1.15rem 0.88rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  color: white;
  background: var(--ink);
  box-shadow: 0.35rem 0.4rem 0 var(--yellow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-link span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
}

.primary-link:hover,
.primary-link:focus-visible {
  box-shadow: 0.16rem 0.18rem 0 var(--yellow);
  transform: translate(0.18rem, 0.18rem);
}

.hero-scene {
  position: relative;
  min-height: 650px;
  border: 3px solid var(--ink);
  border-radius: 3.6rem 3.6rem 8rem 3.6rem;
  background: var(--blue);
  box-shadow: 1.15rem 1.15rem 0 var(--ink);
  overflow: hidden;
  transform: rotate(1.4deg);
}

.hero-scene::before {
  position: absolute;
  top: 3.3rem;
  left: 2.4rem;
  width: 7rem;
  height: 3.8rem;
  border-radius: 50%;
  background: white;
  content: "";
  filter: drop-shadow(3rem 0 0 white) drop-shadow(1.5rem -1rem 0 white);
  opacity: 0.84;
}

.scene-sky {
  position: absolute;
  inset: 0;
}

.scene-plane {
  position: absolute;
  top: 5.5rem;
  left: 29%;
  width: 10rem;
  transform: rotate(-5deg);
}

.scene-lemon {
  position: absolute;
  top: 10.5rem;
  right: 2.5%;
  width: 8.5rem;
  transform: rotate(7deg);
}

.scene-sun {
  position: absolute;
  top: 3rem;
  right: 6%;
  width: 5.5rem;
  transform: rotate(6deg);
}

.scene-art {
  position: absolute;
  top: 10.8rem;
  left: 2%;
  width: 7.5rem;
  transform: rotate(-8deg);
}

.hero-characters {
  position: absolute;
  right: 2%;
  bottom: 3.8rem;
  left: 2%;
  z-index: 3;
  display: flex;
  height: 64%;
  align-items: flex-end;
  justify-content: center;
}

.hero-characters img {
  width: 28%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 1rem 0.65rem rgba(22, 50, 27, 0.15));
}

.hero-characters img + img {
  margin-left: -5%;
}

.hero-characters img:nth-child(2) {
  height: 93%;
}

.hero-characters img:nth-child(3) {
  position: relative;
  z-index: 2;
  height: 96%;
}

.scene-ground {
  position: absolute;
  right: -12%;
  bottom: -9rem;
  left: -12%;
  height: 19rem;
  border-radius: 50% 50% 0 0;
  background: var(--green);
  transform: rotate(-2deg);
}

.scene-ground::after {
  position: absolute;
  top: -3rem;
  right: 25%;
  width: 74%;
  height: 11rem;
  border-radius: 50%;
  background: var(--blue-dark);
  content: "";
  transform: rotate(-9deg);
}

.scene-caption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.25rem;
  z-index: 4;
  padding: 0.45rem 0.8rem;
  border-radius: 99px;
  color: white;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: rotate(-1.5deg);
}

.doodle {
  position: absolute;
  z-index: 3;
  font-family: "Fredoka", sans-serif;
  line-height: 1;
}

.doodle-heart {
  top: 16%;
  right: 47%;
  color: var(--red);
  font-size: 2.2rem;
  transform: rotate(12deg);
}

.doodle-star {
  bottom: 12%;
  left: 44%;
  color: var(--orange);
  font-size: 3rem;
  transform: rotate(-8deg);
}

.doodle-spark {
  top: 13%;
  left: 44%;
  color: var(--sky);
  font-size: 2.4rem;
}

.section-shell {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
}

.journey {
  padding-block: 8rem 7rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 4.2rem;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 5.3rem);
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  margin: 1.3rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.timeline {
  position: relative;
  display: grid;
  min-height: 530px;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding-top: 1rem;
}

.timeline-track {
  position: absolute;
  top: 339px;
  right: 5%;
  left: 5%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 15px, transparent 15px 26px);
  transform: rotate(-0.7deg);
}

.timeline-track::after {
  position: absolute;
  right: -0.7rem;
  top: -0.53rem;
  width: 1.2rem;
  height: 1.2rem;
  border-width: 4px 4px 0 0;
  border-style: solid;
  border-color: var(--ink);
  content: "";
  transform: rotate(45deg);
}

.character {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 270px 26px auto auto;
  width: 100%;
  margin-top: 2.8rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  text-align: left;
  cursor: pointer;
}

.character-number {
  position: absolute;
  top: 0;
  left: 4%;
  z-index: 3;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}

.character-picture {
  display: grid;
  height: 270px;
  align-items: end;
  justify-items: center;
}

.character-picture img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 1.2rem 0.85rem rgba(23, 59, 37, 0.1));
  transform-origin: 50% 100%;
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 280ms ease;
}

.character:hover .character-picture img,
.character:focus-visible .character-picture img {
  filter: drop-shadow(0 1.6rem 1rem rgba(23, 59, 37, 0.18));
  transform: translateY(-0.65rem) rotate(-1deg) scale(1.03);
}

.character:focus-visible {
  border-radius: 1.5rem;
  outline: 3px solid var(--blue-dark);
  outline-offset: 8px;
}

.timeline-dot {
  align-self: center;
  justify-self: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--ink);
}

.character-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.65rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

.character-name i {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-style: normal;
}

.character-topic {
  display: block;
  max-width: 16.5rem;
  justify-self: center;
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.journey-invitation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 1.65rem 2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0.55rem 0.55rem 0 var(--pink);
  transform: rotate(-0.5deg);
}

.journey-invitation h3 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.journey-invitation p {
  margin: 0;
  color: var(--ink-soft);
}

.journey-boots {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  filter: drop-shadow(0.25rem 0.3rem 0 rgba(23, 59, 37, 0.14));
}

.toolkit {
  position: relative;
  padding-block: 7rem 8rem;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.toolkit::before {
  position: absolute;
  top: -18rem;
  right: -12rem;
  width: 46rem;
  height: 46rem;
  border: 6rem solid rgba(155, 201, 231, 0.08);
  border-radius: 50%;
  content: "";
}

.toolkit::after {
  position: absolute;
  bottom: -13rem;
  left: -13rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: rgba(236, 134, 166, 0.08);
  content: "";
}

.section-heading-light {
  position: relative;
  z-index: 2;
}

.section-heading-light > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.toolkit .section-shell {
  width: min(calc(100% - 3rem), 1380px);
}

.toolkit-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(340px, 0.95fr) minmax(290px, 1fr);
  gap: 2rem;
  align-items: center;
}

.info-stack {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.55rem;
  color: var(--ink);
  background: var(--paper);
  overflow: clip;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.info-card[open] {
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.24);
  transform: translateY(-0.2rem);
}

.info-card summary {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.55rem;
  gap: 0.85rem;
  align-items: center;
  min-height: 6.6rem;
  padding: 1.15rem 1.35rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
}

.info-card summary::-webkit-details-marker {
  display: none;
}

.info-card summary:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: -5px;
}

.info-index {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.info-card summary i {
  position: relative;
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
}

.info-card summary i::before,
.info-card summary i::after {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 0.42rem);
  width: 0.84rem;
  height: 2px;
  background: white;
  content: "";
  transition: transform 180ms ease;
}

.info-card summary i::after {
  transform: rotate(90deg);
}

.info-card[open] summary i::after {
  transform: rotate(0deg);
}

.info-objectives summary {
  background: var(--yellow);
}

.info-audience summary {
  background: var(--pink);
}

.info-learning summary {
  background: var(--blue);
}

.info-support summary {
  background: #f3a04a;
}

.info-content {
  padding: 1.35rem 1.5rem 1.65rem;
  border-top: 1px dashed rgba(23, 59, 37, 0.25);
  font-size: 1rem;
  line-height: 1.65;
}

.info-content p {
  margin: 0 0 0.9rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content ul {
  margin: 0.6rem 0 1rem;
  padding-left: 1.2rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  padding: 0 !important;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
}

.check-list li::before {
  position: absolute;
  top: 0.08rem;
  left: 0;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.learning-list p + p {
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(23, 59, 37, 0.2);
}

.toolkit-visual {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
  margin: 0;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.orbit-one {
  width: 96%;
  aspect-ratio: 1;
  transform: rotate(15deg);
}

.orbit-two {
  width: 72%;
  aspect-ratio: 1;
  transform: rotate(-24deg);
}

.orbit-one::after,
.orbit-two::after {
  position: absolute;
  top: 16%;
  right: 3%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 210, 37, 0.16);
  content: "";
}

.orbit-two::after {
  top: auto;
  right: auto;
  bottom: 6%;
  left: 8%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(236, 134, 166, 0.15);
}

.visual-badge {
  position: absolute;
  top: 3.8rem;
  z-index: 4;
  display: grid;
  width: 12.25rem;
  height: 12.25rem;
  place-content: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0.5rem 0.5rem 0 var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.visual-badge strong {
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  text-transform: lowercase;
}

.visual-characters {
  position: absolute;
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  height: 58%;
  align-items: flex-end;
  justify-content: center;
}

.visual-characters img {
  width: 29%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.visual-characters img + img {
  margin-left: -7%;
}

.toolkit-visual figcaption {
  position: absolute;
  bottom: 0;
  z-index: 4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.closing {
  padding-block: 8rem;
}

.closing-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 500px;
  border: 3px solid var(--ink);
  border-radius: 3rem;
  background: var(--blue);
  box-shadow: 1rem 1rem 0 var(--ink);
  overflow: hidden;
}

.closing-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(2rem, 6vw, 5.5rem);
}

.closing-copy h2 {
  max-width: 780px;
}

.closing-copy > p:not(.kicker) {
  max-width: 650px;
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
}

.closing-actions {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.button-dark {
  border: 2px solid var(--ink);
  color: white;
  background: var(--ink);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button-dark:hover,
.button-dark:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-2px);
}

.button-placeholder,
.button-placeholder:hover,
.button-placeholder:focus-visible {
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
  cursor: not-allowed;
  opacity: 0.78;
  transform: none;
}

.button-placeholder > span:last-child {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding-block: 0.35rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--red);
}

.closing-art {
  position: relative;
  min-height: 100%;
}

.closing-heart {
  position: absolute;
  top: 16%;
  right: 17%;
  z-index: 2;
  color: var(--red);
  font-family: "Fredoka", sans-serif;
  font-size: 5rem;
  transform: rotate(10deg);
}

.closing-boots {
  position: absolute;
  right: 0.5rem;
  bottom: -0.5rem;
  z-index: 3;
  width: min(28rem, 90%);
  height: auto;
  filter: drop-shadow(0.8rem 0.9rem 0 rgba(23, 59, 37, 0.16));
  transform: rotate(2deg);
}

.closing-step {
  position: absolute;
  z-index: 3;
  width: 2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.62;
}

.step-one {
  top: 16%;
  left: 17%;
  transform: rotate(38deg);
}

.step-two {
  top: 28%;
  left: 34%;
  transform: rotate(17deg);
}

footer {
  display: flex;
  width: min(calc(100% - 3rem), var(--content));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
  padding: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.character-dialog {
  width: min(calc(100% - 2rem), 900px);
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 2rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 1rem 1rem 0 var(--ink);
  overflow: visible;
}

.character-dialog::backdrop {
  background: rgba(23, 59, 37, 0.68);
  backdrop-filter: blur(6px);
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) 1.22fr;
  min-height: 540px;
  overflow: hidden;
  border-radius: 1.8rem;
}

.dialog-portrait {
  position: relative;
  display: grid;
  align-items: end;
  padding: 3rem 1rem 0;
  background: var(--dialog-color, var(--blue));
}

.dialog-portrait::before {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 76%;
  aspect-ratio: 1;
  border: 2px dashed rgba(23, 59, 37, 0.48);
  border-radius: 50%;
  content: "";
}

.dialog-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  object-position: bottom;
}

.dialog-number {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}

.dialog-content {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.2rem);
}

.dialog-content h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.2rem);
  letter-spacing: -0.055em;
}

.dialog-theme {
  margin: 0.8rem 0 1.2rem;
  color: var(--green);
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.dialog-content > p:not(.kicker):not(.dialog-theme) {
  color: var(--ink-soft);
}

.dialog-resources {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.dialog-close {
  position: absolute;
  top: -1.1rem;
  right: -1.1rem;
  z-index: 10;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: white;
  transform: rotate(5deg);
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline .reveal:nth-child(3),
.info-stack .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.timeline .reveal:nth-child(4) {
  transition-delay: 180ms;
}

.timeline .reveal:nth-child(5) {
  transition-delay: 270ms;
}

@media (max-width: 1100px) {
  .hero {
    min-height: 720px;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
  }

  h1 {
    font-size: clamp(3.9rem, 7.5vw, 6.3rem);
  }

  .hero-scene {
    min-height: 540px;
  }

  .timeline {
    min-height: 490px;
  }

  .character {
    grid-template-rows: 230px 26px auto auto;
  }

  .character-picture {
    height: 230px;
  }

  .timeline-track {
    top: 299px;
  }

  .toolkit-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .toolkit-visual {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 500px;
    order: -1;
  }

  .visual-characters {
    width: min(500px, 72%);
  }

  .visual-badge {
    top: 1.5rem;
  }

  .orbit-one {
    width: 480px;
  }

  .orbit-two {
    width: 360px;
  }
}

@media (max-width: 780px) {
  .masthead {
    width: min(calc(100% - 2rem), var(--content));
  }

  .csslaval-logo {
    width: 8rem;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 7.8rem 1rem 5rem;
  }

  .hero-copy {
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  h1 span:nth-child(2) {
    margin-left: 0.12em;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-scene {
    min-height: 500px;
    margin: 4rem 0.4rem 0 0;
    border-radius: 2.5rem 2.5rem 5rem 2.5rem;
    box-shadow: 0.65rem 0.65rem 0 var(--ink);
  }

  .hero-characters {
    height: 61%;
  }

  .scene-plane {
    left: 25%;
  }

  .doodle {
    display: none;
  }

  .section-shell {
    width: min(calc(100% - 2rem), var(--content));
  }

  .journey {
    padding-block: 6rem;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .section-heading h2,
  .closing h2 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .timeline {
    display: grid;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.8rem;
    padding-left: 3rem;
  }

  .timeline-track {
    top: 2rem;
    right: auto;
    bottom: 2rem;
    left: 1.2rem;
    width: 4px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--ink) 0 15px, transparent 15px 26px);
    transform: rotate(0.5deg);
  }

  .timeline-track::after {
    top: auto;
    right: -0.48rem;
    bottom: -0.3rem;
    transform: rotate(135deg);
  }

  .character,
  .character:nth-of-type(2),
  .character:nth-of-type(4) {
    display: grid;
    grid-template-columns: minmax(120px, 42%) 1fr;
    grid-template-rows: auto auto;
    margin-top: 0;
    align-items: center;
    column-gap: 1rem;
  }

  .character-number {
    left: -0.5rem;
  }

  .character-picture {
    grid-row: 1 / 3;
    height: 230px;
  }

  .timeline-dot {
    position: absolute;
    top: 50%;
    left: -2.37rem;
    transform: translateY(-50%);
  }

  .character-name {
    align-self: end;
    justify-self: start;
    justify-content: flex-start;
    margin: 0;
    text-align: left;
  }

  .character-topic {
    align-self: start;
    justify-self: start;
    margin-top: 0.55rem;
    text-align: left;
  }

  .journey-invitation {
    grid-template-columns: 1fr;
    margin-top: 4rem;
    padding: 1.5rem;
  }

  .toolkit {
    padding-block: 6rem;
  }

  .toolkit-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .toolkit-visual {
    grid-column: auto;
    min-height: 440px;
  }

  .visual-characters {
    width: min(430px, 88%);
  }

  .orbit-one {
    width: min(430px, 94vw);
  }

  .orbit-two {
    width: min(330px, 72vw);
  }

  .info-stack {
    grid-column: auto;
  }

  .closing {
    padding-block: 6rem;
  }

  .closing-card {
    grid-template-columns: 1fr;
    box-shadow: 0.65rem 0.65rem 0 var(--ink);
  }

  .closing-copy {
    padding: 2.2rem 1.5rem 1rem;
  }

  .closing-art {
    min-height: 300px;
  }

  .closing-boots {
    right: 0;
    width: min(24rem, 94%);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1.5rem;
  }

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

  .dialog-portrait {
    min-height: 320px;
    padding-top: 2rem;
  }

  .dialog-portrait img {
    height: 300px;
  }

  .dialog-content {
    padding: 2rem 1.35rem;
  }
}

@media (max-width: 420px) {
  .csslaval-logo {
    width: 7rem;
  }

  .hero-scene {
    min-height: 420px;
  }

  .hero-characters {
    bottom: 3rem;
    height: 56%;
  }

  .scene-plane {
    top: 5.8rem;
    width: 7.2rem;
  }

  .scene-lemon,
  .scene-sun,
  .scene-art {
    transform: scale(0.76) rotate(7deg);
  }

  .scene-lemon {
    top: 9.6rem;
    right: -1%;
  }

  .scene-sun {
    top: 3.5rem;
    right: 3%;
  }

  .scene-art {
    top: 10rem;
    left: -1%;
  }

  .character,
  .character:nth-of-type(2),
  .character:nth-of-type(4) {
    grid-template-columns: 42% 1fr;
  }

  .character-picture {
    height: 190px;
  }

  .character-name {
    font-size: 1.48rem;
  }

  .character-topic {
    font-size: 0.8rem;
  }

  .visual-characters {
    width: 95%;
  }

  .orbit-one {
    width: 330px;
  }

  .orbit-two {
    width: 250px;
  }

  .dialog-resources,
  .closing-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Rétroaction des milieux participants */
.feedback {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.feedback-copy {
  max-width: 900px;
  margin-inline: auto;
}

.feedback-copy > p:not(.kicker),
.feedback-copy > ul {
  margin-block: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
