:root {
  color: #173b39;
  background: #f7f8f2;
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(220, 239, 226, 0.65), transparent 26rem),
    radial-gradient(circle at 92% 80%, rgba(255, 229, 205, 0.6), transparent 28rem),
    #f7f8f2;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0 26px;
}

.intro {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.intro-kicker,
.project-label {
  color: #e98643;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.intro h1,
.project-card h2 {
  font-family: "Nunito", "DM Sans", sans-serif;
  letter-spacing: -0.045em;
}

.intro h1 {
  margin: 13px 0 8px;
  color: #173b39;
  font-size: clamp(2.8rem, 6vw, 5.15rem);
  font-weight: 900;
  line-height: 0.98;
}

.intro h1 em {
  color: #e98643;
  font-style: normal;
}

.intro p {
  margin: 18px 0 0;
  color: #69827d;
  font-size: 1rem;
}

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

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: 280px auto;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(37, 82, 73, 0.08);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(26, 61, 57, 0.09);
}

.speech-card {
  background: #e1f0e3;
}

.logic-card {
  background: #ffead8;
}

.illustration {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.soft-circle {
  position: absolute;
  width: min(55%, 265px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.owl-illustration .soft-circle {
  background: rgba(255, 255, 255, 0.45);
}

.owl-illustration img {
  position: relative;
  z-index: 2;
  width: min(43%, 205px);
  height: auto;
  filter: drop-shadow(0 18px 14px rgba(26, 61, 57, 0.14));
}

.sound {
  position: absolute;
  z-index: 3;
  display: grid;
  width: var(--sound-size);
  height: var(--sound-size);
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--sound-color);
  font-family: "Nunito", sans-serif;
  font-size: var(--sound-font-size);
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(30, 80, 67, 0.12);
}

.sound-one {
  --sound-size: 50px;
  --sound-font-size: 1.95rem;
  --sound-color: #285f54;
  top: 4%;
  left: 5%;
  transform: rotate(-11deg);
}

.sound-two {
  --sound-size: 32px;
  --sound-font-size: 1.4rem;
  --sound-color: #657654;
  top: 10%;
  left: 23%;
  transform: rotate(7deg);
}

.sound-three {
  --sound-size: 44px;
  --sound-font-size: 1.8rem;
  --sound-color: #397361;
  top: 3%;
  right: 7%;
  transform: rotate(-4deg);
}

.sound-four {
  --sound-size: 36px;
  --sound-font-size: 1.5rem;
  --sound-color: #7b7550;
  top: 29%;
  right: 2%;
  transform: rotate(12deg);
}

.sound-five {
  --sound-size: 54px;
  --sound-font-size: 2.1rem;
  --sound-color: #4d6947;
  right: 8%;
  bottom: 2%;
  transform: rotate(-9deg);
}

.sound-six {
  --sound-size: 38px;
  --sound-font-size: 1.6rem;
  --sound-color: #6e8264;
  right: 37%;
  bottom: 1%;
  transform: rotate(5deg);
}

.sound-seven {
  --sound-size: 46px;
  --sound-font-size: 1.9rem;
  --sound-color: #326a5b;
  bottom: 4%;
  left: 10%;
  transform: rotate(-13deg);
}

.sound-eight {
  --sound-size: 34px;
  --sound-font-size: 1.45rem;
  --sound-color: #75805d;
  top: 49%;
  left: 2%;
  transform: rotate(8deg);
}

.kangaroo-illustration .soft-circle {
  background: rgba(255, 255, 255, 0.5);
}

.kangaroo {
  position: relative;
  z-index: 2;
  font-size: clamp(8.5rem, 17vw, 11.5rem);
  line-height: 1;
  transform: rotate(-8deg) translateY(4px);
  filter: drop-shadow(0 18px 10px rgba(111, 68, 34, 0.18));
}

.card-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 30px 34px 34px;
  border-radius: 30px 30px 0 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-soon {
  background: #edf2eb;
  color: #6e837c;
}

.status-live {
  background: #e1f3e7;
  color: #2d7758;
}

.project-card h2 {
  margin: 15px 0 9px;
  color: #183e3b;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.03;
}

.project-card p {
  margin: 0 0 24px;
  color: #647f79;
  font-size: 0.97rem;
  line-height: 1.65;
}

.clinical-note {
  color: #3f7065;
  font-weight: 800;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.speech-actions {
  justify-content: space-between;
}

.logic-actions {
  justify-content: flex-start;
}

.soon-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #50736a;
  font-size: 0.85rem;
  font-weight: 700;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #73ad90;
  box-shadow: 0 0 0 6px rgba(115, 173, 144, 0.15);
}

.project-button {
  align-self: flex-start;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  background: #f18946;
  box-shadow: 0 10px 20px rgba(241, 137, 70, 0.25);
  color: white;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-button:hover {
  transform: translateY(-2px);
  background: #e77b38;
  box-shadow: 0 14px 26px rgba(241, 137, 70, 0.32);
}

.project-button:focus-visible {
  outline: 3px solid #2d7758;
  outline-offset: 4px;
}

.project-button-preview {
  min-width: 112px;
  background: #244a42;
  box-shadow: 0 10px 20px rgba(36, 74, 66, 0.24);
}

.project-button-preview:hover {
  background: #193b35;
  box-shadow: 0 14px 26px rgba(36, 74, 66, 0.3);
}

.preview-dialog {
  width: min(420px, calc(100% - 30px));
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #f4f3ec;
  box-shadow: 0 30px 90px rgba(17, 42, 38, 0.35);
}

.preview-dialog::backdrop {
  background: rgba(16, 32, 29, 0.72);
  backdrop-filter: blur(5px);
}

.preview-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px 22px;
}

.preview-dialog-head h2 {
  margin: 0;
  color: #183e3b;
  font-family: "Nunito", "DM Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.preview-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #deebe2;
  color: #244a42;
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.preview-close:focus-visible {
  outline: 3px solid #f18946;
  outline-offset: 3px;
}

.preview-dialog img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 70px);
  object-fit: contain;
  background: #1b2a27;
}

body:has(.preview-dialog[open]) {
  overflow: hidden;
}

.decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.decor-one {
  width: 260px;
  height: 260px;
  top: -130px;
  right: -80px;
  background: rgba(186, 222, 196, 0.62);
}

.decor-two {
  width: 180px;
  height: 180px;
  top: 150px;
  left: -100px;
  border: 28px solid rgba(255, 255, 255, 0.24);
}

.decor-three {
  width: 260px;
  height: 260px;
  top: -125px;
  left: -70px;
  background: rgba(255, 211, 173, 0.8);
}

.decor-four {
  width: 150px;
  height: 150px;
  top: 120px;
  right: -80px;
  border: 25px solid rgba(255, 255, 255, 0.28);
}

.kindergarten-section {
  max-width: 980px;
  margin: clamp(64px, 8vw, 96px) auto 0;
}

.kindergarten-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 38px 42px 34px;
  overflow: hidden;
  border: 1px solid rgba(23, 59, 57, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(26, 61, 57, 0.08);
  color: #173b39;
  text-align: center;
  text-decoration: none;
}

.school-brand {
  display: block;
  min-width: 0;
}

.school-logo-wordmark {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.6vw, 7px);
}

.school-logo-letter {
  display: grid;
  width: clamp(28px, 4.2vw, 48px);
  height: clamp(32px, 4.8vw, 54px);
  place-items: center;
  border-radius: 9px;
  color: white;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 6px 13px rgba(15, 30, 92, 0.12);
}

.school-logo-letter:nth-child(odd) { transform: rotate(-3deg); }
.school-logo-letter:nth-child(even) { transform: rotate(3deg); }
.school-letter-red { background: #fe433d; }
.school-letter-ochre { background: #fea912; }
.school-letter-turquoise { background: #01b5cc; }
.school-letter-green { background: #43ad46; }
.school-letter-purple { background: #9261af; }
.school-letter-pink { background: #fe6595; }
.school-letter-blue { background: #0199fc; }

.school-logo-subtitle {
  display: block;
  margin-top: 17px;
  color: #62708d;
  font-size: clamp(0.8rem, 1.7vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.school-link-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: min(250px, 100%);
  padding: 12px 28px;
  border: 1px solid rgba(216, 117, 59, 0.14);
  border-radius: 999px;
  background: #fff1e8;
  color: #d8753b;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.school-link-cta b {
  font-size: 1.3rem;
}

footer {
  padding: 28px 0 0;
  color: #91a19e;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 560px);
    padding-top: 42px;
  }

  .intro {
    margin-bottom: 28px;
  }

  .intro h1 {
    font-size: clamp(2.65rem, 13vw, 4.3rem);
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    grid-template-rows: 250px auto;
    min-height: 570px;
    border-radius: 28px;
  }

  .illustration {
    min-height: 250px;
  }

  .kangaroo {
    font-size: 9.2rem;
  }

  .card-content {
    min-height: 300px;
    padding: 26px 24px 28px;
    border-radius: 25px 25px 0 0;
  }

  .project-card h2 {
    font-size: 2.1rem;
  }

  .project-card p {
    font-size: 0.91rem;
  }

  .kindergarten-link {
    padding: 30px 20px 26px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  .card-heading {
    align-items: flex-start;
  }

  .project-label {
    max-width: 145px;
  }

  .logic-actions .project-button {
    width: 100%;
  }

  .card-actions {
    gap: 10px;
  }

  .project-button-preview {
    min-width: 102px;
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-button {
    transition: none;
  }
}
