.project-section {
  --project-mint: #27D6B5;
  --project-blue: #69AFE7;
  --project-purple: #A98BEF;
  width: 100%;
  padding: clamp(64px, 8vw, 100px) 20px 110px;
  overflow: hidden;
  background: #0D2329;
  color: #fff;
  font-family: 'Nunito', sans-serif;
}

.project-section,
.project-section *,
.project-section *::before,
.project-section *::after {
  box-sizing: border-box;
}

.project-container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.project-hero {
  max-width: 760px;
  margin-bottom: 76px;
}

.project-section-label {
  margin: 0 0 13px;
  color: var(--project-mint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.project-hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  color: #fff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.project-hero h1 span {
  color: var(--project-mint);
}

.project-hero > p:last-child {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.75;
}

.project-modes {
  margin-bottom: 78px;
}

.project-modes-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}

.project-modes-header .project-section-label {
  color: var(--project-purple);
}

.project-modes-header h2 {
  margin: 0;
  color: #fff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: clamp(27px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.project-modes-description {
  max-width: 300px;
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.65;
}

.project-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  isolation: isolate;
  border: 0;
  border-radius: 19px 24px 20px 26px;
  background: #102A30;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.project-card:hover {
  filter: brightness(1.06);
  transform: translateY(-4px) rotate(0);
}

.project-card:nth-child(odd) {
  transform: rotate(-0.4deg);
}

.project-card:nth-child(even) {
  transform: rotate(0.4deg);
}

.project-card:nth-child(odd):hover,
.project-card:nth-child(even):hover {
  transform: translateY(-4px) rotate(0);
}

.project-card::before,
.project-card::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.project-card::before {
  inset: -3px 4px 2px -4px;
  border: 2px solid var(--project-card-accent);
  border-radius: 22px 17px 26px 19px;
  transform: rotate(-0.8deg);
}

.project-card::after {
  inset: 3px -4px -3px 5px;
  border: 1px solid var(--project-card-outline);
  border-radius: 17px 27px 19px 24px;
  transform: rotate(0.8deg);
}

.project-card-survival {
  --project-card-accent: #E8A9B7;
  --project-card-outline: rgba(232, 169, 183, 0.34);
  --project-card-number-bg: rgba(232, 169, 183, 0.13);
}

.project-card-creative {
  --project-card-accent: #A98BEF;
  --project-card-outline: rgba(169, 139, 239, 0.34);
  --project-card-number-bg: rgba(169, 139, 239, 0.13);
}

.project-card-body,
.project-mode-link {
  position: relative;
  z-index: 2;
}

.project-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.project-card-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 13px 17px 12px 16px;
  background: var(--project-card-number-bg);
  color: var(--project-card-accent);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.project-card-category {
  color: var(--project-card-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.project-card h3 {
  margin: 0 0 11px;
  color: #fff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.15;
}

.project-card p {
  max-width: 470px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 15px;
  line-height: 1.75;
}

.project-mode-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.project-mode-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 3px;
}

.project-mode-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0D2329;
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.project-mode-survival .project-mode-icon {
  background: #E8A9B7;
}

.project-mode-creative .project-mode-icon {
  background: #A98BEF;
}

.project-mode-link:hover .project-mode-icon {
  transform: translate(2px, -2px) rotate(7deg);
}

.project-commitment {
  margin-bottom: 70px;
  padding: 36px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-commitment-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.project-commitment-heading .project-section-label {
  color: var(--project-blue);
}

.project-commitment-heading h2 {
  margin: 0;
  color: #fff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
}

.project-forecast {
  display: inline-block;
  flex: none;
  margin-bottom: 3px;
  padding: 7px 0 7px 13px;
  border-left: 2px solid var(--project-mint);
  color: var(--project-mint);
  font-size: 13px;
  font-weight: 800;
}

.project-commitment-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
}

.project-commitment-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.75;
}

.project-commitment-copy strong {
  color: #fff;
  font-weight: 900;
}

.project-purple {
  color: var(--project-purple) !important;
}

.project-commitment > .project-signature {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-align: right;
}

.project-signature strong {
  margin-left: 4px;
}

.project-album {
  margin-bottom: 20px;
}

.project-album-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.project-album-header .project-section-label {
  color: var(--project-blue);
}

.project-album-header h2 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

.project-album-header > p {
  max-width: 270px;
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.65;
}

.project-album-book {
  padding: 24px;
  border-radius: 12px;
  background: #e8e7df;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.project-album-page[hidden] {
  display: none;
}

.project-album-page {
  min-width: 0;
  padding: 24px;
  border-radius: 7px;
  background: #f5f4ee;
  box-shadow: inset 0 0 0 1px rgba(35, 48, 46, 0.06);
}

.project-album-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(35, 48, 46, 0.14);
  color: #455451;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.project-album-page-heading span:last-child {
  color: #89918c;
  font-size: 10px;
}

.project-album-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.project-album-entry {
  min-width: 0;
  margin: 0;
}

.project-album-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 7px solid #fff;
  outline: 1px solid rgba(35, 48, 46, 0.1);
  box-shadow: 0 2px 7px rgba(35, 48, 46, 0.1);
  object-fit: cover;
}

.project-album-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.project-album-arrow {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px 17px 12px 16px;
  background: #102A30;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.project-album-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #17343B;
}

.project-album-arrow:focus-visible {
  outline: 2px solid var(--project-mint);
  outline-offset: 3px;
}

.project-album-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.project-album-page-count {
  min-width: 52px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
}

.project-album-entry figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 2px 0;
  color: #34413e;
  font-size: 12px;
  line-height: 1.4;
}

.project-album-entry figcaption strong {
  font-weight: 900;
}

.project-album-entry figcaption span {
  color: #78817c;
  font-size: 11px;
}

@media (max-width: 760px) {
  .project-section {
    padding-right: 20px;
    padding-bottom: 75px;
    padding-left: 20px;
  }

  .project-hero {
    margin-bottom: 58px;
  }

  .project-modes-header {
    display: block;
  }

  .project-modes-description {
    margin-top: 12px;
  }

  .project-modes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-commitment {
    margin-bottom: 55px;
  }

  .project-commitment-copy {
    gap: 18px 28px;
  }

  .project-album-header {
    display: block;
  }

  .project-album-header > p {
    margin-top: 12px;
  }

  .project-album-book {
    padding: 16px;
  }

}

@media (max-width: 480px) {
  .project-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .project-hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .project-hero > p:last-child {
    font-size: 15px;
  }

  .project-card {
    padding: 24px;
  }

  .project-card:nth-child(odd),
  .project-card:nth-child(even) {
    transform: none;
  }

  .project-card h3 {
    font-size: 26px;
  }

  .project-commitment-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .project-commitment-copy {
    grid-template-columns: 1fr;
  }

  .project-album-book {
    padding: 10px;
  }

  .project-album-page {
    padding: 16px 12px;
  }

  .project-album-entries {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-mode-icon,
  .project-album-arrow {
    transition: none;
  }
}
