/* mainpageG-styles.css */

/* General Reset & Basics */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

body {
  background: var(--page-bg, #f9f9f9);
  transition: none;
}

html {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

body[data-active-panel="hero"] {
  --page-bg: linear-gradient(141deg, #e6cf76 0%, #ffffff 50%, #b3d1f1 100%);
}

.mainpage-page .navbar {
  transition: transform 0.28s ease, background 0.2s ease, border-color 0.2s ease;
}

.mainpage-page.mainpage-nav-hidden .navbar {
  transform: translateY(calc(-100% - 4px));
}

.hero,
.grade-panel-p,
.grade-panel-m,
.grade-panel-h,
.grade-panel-esslce {
  min-height: 100vh;
}

.panel-section {
  position: relative;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.mainpage-sequence,
.mainpage-sequence-stage {
  position: relative;
  width: 100%;
}

.mainpage-sequence-stage {
  min-height: 100vh;
}

@media (min-width: 1001px) {
  .mainpage-sequence--intro-active {
    --mainpage-intro-steps: 4;
    height: calc(var(--mainpage-intro-steps) * 100vh);
    height: calc(var(--mainpage-intro-steps) * 100dvh);
  }

  .mainpage-sequence--intro-active .mainpage-sequence-stage {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .mainpage-sequence--intro-active .mainpage-sequence-stage .panel-section {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.93);
    pointer-events: none;
    will-change: opacity, transform;
    backface-visibility: hidden;
  }

  .mainpage-sequence--intro-active .mainpage-sequence-stage .panel-section.is-active {
    pointer-events: auto;
  }
}

.mainpage-page.mainpage-gsap-active .mainpage-sequence {
  isolation: isolate;
}

.mainpage-page.mainpage-gsap-active .mainpage-sequence-stage .panel-section {
  overflow: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

@media (max-width: 1999px) {
  .mainpage-page.mainpage-gsap-active .mainpage-sequence {
    height: auto !important;
  }

  .mainpage-page.mainpage-gsap-active .mainpage-sequence-stage {
    position: static !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  .mainpage-page.mainpage-gsap-active .mainpage-sequence-stage .panel-section {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    z-index: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 1000px) and (min-height: 760px) {
  .panel-section {
    height: auto;
    min-height: 100vh;
    box-sizing: border-box;
  }
}

.sequence-content {
  opacity: 1;
  transform: none;
  transition: none;
}

.grade-card-p,
.grade-card-m,
.grade-card-h,
.esslce-pillars__item {
  opacity: 1;
  transform: none;
  transition: none;
}

/*  Hero Section                         */
/* ===================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(90deg, #efe6b3 0%, #f7f0cf 33%, #edf1f8 66%, #dce8f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h-desktop);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  pointer-events: none;
  z-index: 0;
}

.hero-backdrop__panel--left {
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 220, 71, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 247, 209, 0.56), rgba(241, 234, 196, 0.92));
}

.hero-backdrop__panel--right {
  background:
    radial-gradient(circle at 76% 72%, rgba(200, 218, 246, 0.44), transparent 24%),
    linear-gradient(180deg, rgba(244, 247, 252, 0.92), rgba(224, 233, 248, 0.96));
}

.hero-content,
.panel-content-p,
.panel-content-m,
.panel-content-h,
.panel-content-esslce {
  padding-inline: var(--bf-gutter);
}

@media (max-width: 839px) {
  .hero {
    padding-top: var(--nav-h-mobile);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: clamp(5rem, 10vw, 6.5rem);
  padding-bottom: clamp(9rem, 12vw, 12rem);
  text-align: center;
}

.hero-visual {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: clamp(374px, 33vw, 462px);
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-visual--left {
  left: clamp(1rem, 4vw, 4rem);
  bottom: clamp(-8.5rem, -7vw, -4.75rem);
  width: min(39.6vw, 638px);
}

.hero-visual--right {
  right: clamp(0.5rem, 2vw, 2.5rem);
  bottom: clamp(-9rem, -7vw, -5rem);
  width: min(39.6vw, 643px);
}

.hero-text-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: clamp(360px, 30vw, 520px);
}

.hero-title {
  font-family: 'Krona One', sans-serif;
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  line-height: 1.06;
  color: #0f172a;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-title__intro {
  font-size: clamp(1.05rem, 1.18vw, 1.32rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(74, 85, 104, 0.78);
  line-height: 1.2;
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

.hero-title__joiner {
  font-size: clamp(1rem, 1.1vw, 1.24rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(74, 85, 104, 0.74);
}

.hero-title__phrase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: #0f172a;
  min-height: calc(1.06em * 2);
  text-align: center;
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-title__phrase--animated {
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.hero-title__phrase--animated:not(.is-visible) {
  opacity: 0;
  transform: translateY(10px);
}

.hero-title__phrase.is-visible {
  opacity: 1;
  transform: none;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.1vw, 1.95rem);
  margin: 0;
  font-family: 'Krona One', sans-serif;
  color: rgba(74, 85, 104, 0.92);
  line-height: 1.45;
  max-width: 17ch;
}

.hero-sphere {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 20px 35px rgba(15, 23, 42, 0.2));
  opacity: 0.85;
  animation: none;
}

.hero-sphere--yellow {
  width: clamp(190px, 20vw, 300px);
  height: clamp(190px, 20vw, 300px);
  top: clamp(9rem, 16vw, 14rem);
  left: clamp(18%, 22vw, 28%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, #f9e17a 38%, #facc15 100%);
}

.hero-sphere--blue {
  width: clamp(210px, 24vw, 340px);
  height: clamp(210px, 24vw, 340px);
  bottom: clamp(6rem, 11vw, 9rem);
  right: clamp(9%, 15vw, 18%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, #d7e4fb 34%, #bdd2f3 100%);
  opacity: 0.7;
}

@keyframes hero-sphere-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-16px, -12px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(18px, 16px, 0) scale(0.97);
  }
}

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    padding-top: var(--nav-h-mobile);
    align-items: stretch;
  }
  .hero-backdrop {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hero-content {
    width: min(92vw, 560px);
    padding-top: clamp(4.5rem, 14vw, 6.5rem);
    padding-bottom: clamp(16rem, 40vw, 21rem);
  }
  .hero-text-content {
    gap: 1.15rem;
    max-width: min(92vw, 440px);
  }
  .hero-title {
    font-size: clamp(2.35rem, 9vw, 3.45rem);
  }
  .hero-title__intro,
  .hero-title__joiner {
    letter-spacing: 0.18em;
  }
  .hero-subtitle {
    font-size: clamp(1.05rem, 4.2vw, 1.45rem);
  }
  .hero-visual {
    display: flex;
    width: min(58vw, 320px);
  }
  .hero-visual--left {
    left: -0.75rem;
    bottom: -2.5rem;
    transform: none;
  }
  .hero-visual--right {
    right: -0.85rem;
    bottom: -2.75rem;
  }
  .hero-sphere--yellow {
    width: clamp(148px, 32vw, 200px);
    height: clamp(148px, 32vw, 200px);
    top: clamp(7rem, 18vw, 9rem);
    left: 12%;
  }
  .hero-sphere--blue {
    width: clamp(170px, 36vw, 240px);
    height: clamp(170px, 36vw, 240px);
    right: 8%;
    bottom: clamp(8rem, 21vw, 10rem);
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-bottom: clamp(14rem, 44vw, 18rem);
  }
  .hero-visual {
    width: min(54vw, 250px);
  }
  .hero-visual--left {
    left: -2rem;
    bottom: -1.75rem;
  }
  .hero-visual--right {
    right: -2rem;
    bottom: -2rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .hero-subtitle {
    font-size: clamp(1.1rem, 5.5vw, 1.45rem);
  }
  .hero-title__intro {
    max-width: none;
  }
}

/* =============== Grade Panel Section =============== */
.grade-panel-p {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(120% 150% at 0% 0%, #fac351 0%, #ffffff 60%, #ffffff 100%);
}

.panel-p-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, 1100px);
  margin: 0 auto;
  min-height: min(100vh, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-content-p {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  animation: popIn 0.8s ease forwards;
  transform-origin: center;
  z-index: 2;
}

.panel-content-p::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 243, 219, 0.96) 56%, rgba(255, 226, 195, 0.96) 100%);
  border: 1px solid rgba(251, 146, 60, 0.36);
  box-shadow: 0 28px 60px rgba(249, 115, 22, 0.22);
  z-index: 0;
}

.panel-content-p > * {
  position: relative;
  z-index: 3;
}

.panel-content-p::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(251, 146, 60, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* Keyframes for the pop-in effect */
@keyframes popIn {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.panel-visuals-p {
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.75rem);
  border: none;
  background: none;
  z-index: 10;
  pointer-events: none;
}

.panel-visuals-p__img {
  position: absolute;
  width: clamp(160px, 20vw, 300px);
  height: auto;
  display: block;
  z-index: 11;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(113, 63, 18, 0.25));
  opacity: 0;
  --visual-delay: 0s;
  --visual-base-transform: translate3d(0, 0, 0);
  transform: var(--visual-base-transform);
}

body:not(.mainpage-gsap-active) .panel-section.is-active .panel-visuals-p__img {
  animation:
    panel-visual-enter 0.55s ease forwards,
    panel-visual-hover 6s ease-in-out infinite alternate;
  animation-delay: calc(0.55s + var(--visual-delay, 0s)), calc(1.2s + var(--visual-delay, 0s));
}

.panel-visuals-p__img--bird {
  --start-rot: -6deg;
  top: -15%;
  left: clamp(-13em, 0vw, -13rem);
  --visual-base-transform: rotate(-6deg);
  --visual-delay: 0.1s;
}

.panel-visuals-p__img--bulb {
  --start-rot: 8deg;
  top: 75%;
  right:clamp(-15em, 0vw, -12rem);
  --visual-base-transform: translateY(-50%) rotate(8deg);
  --visual-delay: 0.35s;
}


@keyframes panel-visual-enter {
  0% {
    opacity: 0;
    transform: var(--visual-base-transform) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: var(--visual-base-transform);
  }
}

@keyframes panel-visual-hover {
  0% { transform: var(--visual-base-transform) translate3d(0, 0, 0); }
  50% { transform: var(--visual-base-transform) translate3d(4px, -14px, 0); }
  100% { transform: var(--visual-base-transform) translate3d(-6px, 10px, 0); }
}

/* Heading Styles */
.grade-panel-p h2 {
  font-family: 'Krona One', sans-serif;
  font-size: 2em;
  margin-bottom: 1rem;
}

/* Subtitle */
.panel-subtitle-p {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.15em;
  color: #a16207;
}

/* Paragraph Description */
.panel-description-p {
  margin-bottom: 2.25rem;
  line-height: 1.7;
  font-size: 1.12em;
  color: #713f12;
}

/* Grade Cards Container */
.grade-cards-p {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  justify-content: stretch;
  margin-top: 1rem;
  align-items: stretch;
}

.grade-cards-p,
.grade-cards-m,
.grade-cards-h {
  grid-auto-rows: 1fr;
}

/* =============== Grade Panel Section 2 =============== */

/* Individual Grade Card */
.grade-card-p {
  background: linear-gradient(164deg, #ffefcf 0%, #ffd9b0 56%, #ffc48a 100%);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(251, 146, 60, 0.22);
  padding: 1.25rem 1.3rem 1.4rem;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.72rem;
  min-height: 190px;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
}

/* Hover Effect on Cards */
.grade-card-p:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Card Title */
.grade-card-p h3,
.grade-card-m h3,
.grade-card-h h3 {
  font-family: 'Krona One', sans-serif;
  margin: 0;
  width: 100%;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  text-align: center;
}

.grade-card-p h3 {
  color: #9a3412;
}

/* Card Button */
.grade-card-p button,
.grade-card-m button,
.grade-card-h__cta {
  --cta-accent: #f59e0b;
  --cta-accent-soft: #fde68a;
  --cta-accent-deep: #b45309;
  --cta-glow: rgba(245, 158, 11, 0.44);
  --cta-text: #2c1700;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: auto 0 0;
  width: 100%;
  min-width: 100%;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(138deg, var(--cta-accent-soft) 0%, var(--cta-accent) 56%, var(--cta-accent-deep) 100%);
  box-shadow:
    0 18px 32px -18px var(--cta-glow),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 4px 0 rgba(255, 255, 255, 0.22) inset;
  color: var(--cta-text);
  font-family: 'Krona One', sans-serif;
  font-size: 0.74em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.grade-card-m button {
  --cta-accent: #2563eb;
  --cta-accent-soft: #93c5fd;
  --cta-accent-deep: #1e3a8a;
  --cta-glow: rgba(37, 99, 235, 0.42);
  --cta-text: #041938;
}

.grade-card-h__cta {
  --cta-accent: #7e22ce;
  --cta-accent-soft: #c4b5fd;
  --cta-accent-deep: #4c1d95;
  --cta-glow: rgba(126, 34, 206, 0.42);
  --cta-text: #f8f5ff;
}

.grade-card-p button:hover,
.grade-card-m button:hover,
.grade-card-h__cta:hover {
  background: linear-gradient(138deg, #ffffff 0%, var(--cta-accent-soft) 22%, var(--cta-accent) 58%, var(--cta-accent-deep) 100%);
}

@media (max-width: 1000px) {
  .panel-content-p {
    max-width: 100%;
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2.25rem);
    border-radius: 24px;
  }
  .panel-content-p::after {
    inset: 12px;
    border-radius: 18px;
  }
  .grade-cards-p {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-visuals-p,
  .panel-visuals-p__img {
    display: none;
  }
  .panel-content-m {
    max-width: 100%;
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2.25rem);
    border-radius: 24px;
  }
  .panel-content-m::after {
    inset: 12px;
    border-radius: 18px;
  }
  .grade-cards-m {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-visuals-m,
  .panel-visuals-m__img {
    display: none;
  }
  .grade-cards-h {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-content-h {
    max-width: 100%;
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2.25rem);
    border-radius: 24px;
  }
  .panel-content-h::after {
    inset: 12px;
    border-radius: 18px;
  }
  .panel-visuals-h,
  .panel-visuals-h__img {
    display: none;
  }
}

@media (max-width: 640px) {
  .grade-cards-p,
  .grade-cards-m,
  .grade-cards-h {
    grid-template-columns: 1fr;
  }
}



.grade-panel-m {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(140% 150% at 100% 100%, #214aae 0%, #ffffff 60%, #ffffff 100%);
}

.panel-m-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, 1100px);
  margin: 0 auto;
  min-height: min(100vh, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}


.panel-content-m {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  animation: popIn 0.8s ease forwards;
  transform-origin: center;
  z-index: 2;
}

.panel-content-m::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.95) 56%, rgba(219, 234, 254, 0.95) 100%);
  border: 1px solid rgba(37, 99, 235, 0.24);
  box-shadow: 0 26px 62px rgba(37, 99, 235, 0.22);
  z-index: 0;
}

.panel-content-m > * {
  position: relative;
  z-index: 3;
}

.panel-content-m::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(37, 99, 235, 0.26);
  pointer-events: none;
  z-index: 2;
}

.panel-visuals-m {
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.75rem);
  border-radius: 26px;
  pointer-events: none;
  z-index: 10;
}

.panel-visuals-m__img {
  position: absolute;
  width: clamp(160px, 20vw, 200px);
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(14, 116, 144, 0.25));
  opacity: 0;
  z-index: 11;
  --visual-delay: 0.35s;
  --visual-base-transform: translate3d(0, 0, 0);
  transform: var(--visual-base-transform);
}

body:not(.mainpage-gsap-active) .panel-section.is-active .panel-visuals-m__img {
  animation:
    panel-visual-enter 0.55s ease forwards,
    panel-visual-hover 6s ease-in-out infinite alternate;
  animation-delay: calc(0.55s + var(--visual-delay, 0s)), calc(1.2s + var(--visual-delay, 0s));
}

.panel-visuals-m__img--gear {
  top: -40px;
  left: clamp(-13em, 0vw, -9rem);
  --visual-delay: 0.1s;
  width: 270px;
  --visual-base-transform: translate3d(0, 0, 0);
}

.panel-visuals-m__img--math {
 top: 30%;
 right: clamp(-15.5rem, 3vw, -14rem);
 --visual-base-transform: rotate(46deg);
 --visual-delay: 0.4s;
 width: 300px;
}

.panel-visuals-m__img--artbook {
  top: 76%;
  right: clamp(40rem, 16vw, 29rem);
  --visual-base-transform: rotate(-4deg);
  --visual-delay: 0.7s;
  width: 260px;
}

.grade-panel-m h2 {
  font-family: 'Krona One', sans-serif;
  font-size: 2em;
  margin-bottom: 1rem;
  color: #0f172a;
}

.panel-subtitle-m {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.2em;
  color: rgba(15, 23, 42, 0.8);
}

.panel-description-m {
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.1em;
  color: rgba(15, 23, 42, 0.75);
}

.grade-cards-m {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  justify-content: stretch;
  margin-top: 1rem;
  align-items: stretch;
}

.grade-card-m {
  background: linear-gradient(162deg, rgba(219, 234, 254, 0.95) 0%, rgba(191, 219, 254, 0.95) 54%, rgba(147, 197, 253, 0.9) 100%);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.2);
  padding: 1.25rem 1.3rem 1.4rem;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.72rem;
  min-height: 190px;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
}

.grade-card-m:hover {
  transform: translateY(-6px) scale(1.02);
}

.grade-card-m h3 {
  color: #0f172a;
}

.grade-panel-h {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(86% 135% at 50% 0%, #5c1fa8 0%, #ffffff 60%, #ffffff 100%);
}

.panel-h-frame {
  position: relative;
  isolation: isolate;
  width: min(1100px, 100%);
  margin: 0 auto;
  min-height: min(100vh, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-content-h {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 32px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  text-align: center;
  overflow: hidden;
  animation: popIn 0.8s ease forwards;
  transform-origin: center;
  z-index: 2;
}

.panel-content-h::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 235, 255, 0.95) 58%, rgba(238, 210, 255, 0.94) 100%);
  border: 1px solid rgba(109, 40, 217, 0.28);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.18);
  z-index: 0;
}

.panel-content-h::after {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 1.75rem);
  border-radius: 26px;
  border: 1px dashed rgba(109, 40, 217, 0.25);
  pointer-events: none;
  z-index: 2;
}

.panel-content-h > * {
  position: relative;
  z-index: 3;
}

.panel-visuals-h {
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.75rem);
  border-radius: 28px;
  pointer-events: none;
  z-index: 10;
}

.panel-visuals-h__img {
  position: absolute;
  width: clamp(150px, 24vw, 260px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(14, 116, 144, 0.22));
  opacity: 0;
  z-index: 11;
  --visual-delay: 0s;
  --visual-base-transform: translate3d(0, 0, 0);
  transform: var(--visual-base-transform);
}

body:not(.mainpage-gsap-active) .panel-section.is-active .panel-visuals-h__img {
  animation:
    panel-visual-enter 0.55s ease forwards,
    panel-visual-hover 7s ease-in-out infinite alternate;
  animation-delay: calc(0.55s + var(--visual-delay, 0s)), calc(1.2s + var(--visual-delay, 0s));
}

.panel-visuals-h__img--atom {
  --start-rot: -6deg;
  top: -40px;
  left: clamp(-13em, -2vw, -8rem);
  --visual-delay: 0.05s;
  --visual-base-transform: rotate(-6deg);
}

.panel-visuals-h__img--cell {
  --start-rot: 100deg;
  bottom: -130px;
  left: clamp(-14em, -1vw, -18rem);
  width: 350px;
  --visual-delay: 0.2s;
  --visual-base-transform: rotate(100deg);
}

.panel-visuals-h__img--rocket {
  --start-rot: -20deg;
  top: -14%;
  right: clamp(-13rem, 14vw, -10rem);
  --visual-delay: 0.35s;
  --visual-base-transform: rotate(-20deg);
}

.panel-visuals-h__img--calc {
  --start-rot: -19deg;
  bottom: -130px;
  right: clamp(-26em, 4vw, -16rem);
  width: 414px;
  --visual-delay: 0.5s;
  --visual-base-transform: rotate(-19deg);
}

.grade-panel-h h2 {
  position: relative;
  font-family: 'Krona One', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: #0f172a;
}

.panel-subtitle-h {
  position: relative;
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.2em;
  color: #7e22ce;
}

.panel-description-h {
  position: relative;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.05em;
  color: #334155;
}

.grade-cards-h {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  justify-content: stretch;
  align-items: stretch;
  margin-top: 1rem;
}

.grade-card-h {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 220, 255, 0.92) 48%, rgba(224, 191, 255, 0.9) 100%);
  border-radius: 22px;
  border: 1px solid rgba(109, 40, 217, 0.24);
  box-shadow: 0 18px 35px rgba(109, 40, 217, 0.2);
  padding: 1.25rem 1.3rem 1.4rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.72rem;
  min-height: 190px;
  box-sizing: border-box;
  height: 100%;
}

.grade-card-h:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(109, 40, 217, 0.26);
}

.grade-card-h h3 {
  color: #0f172a;
}

.grade-card-h--streams {
  position: relative;
  display: grid;
  gap: 0.62rem;
  text-align: left;
  align-items: stretch;
  justify-content: space-between;
}

.grade-card-h--streams h3 {
  justify-content: flex-start;
  min-height: auto;
}

.grade-card-h__header p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.32;
  color: rgba(15, 23, 42, 0.72);
}

.grade-stream-list-h {
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 0.42rem;
}

.grade-stream-list-h__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
}

.grade-card-h__cta--stream {
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.58rem;
}

.grade-stream-list-h__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-family: 'Krona One', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c1d95;
  background: rgba(221, 214, 254, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

/***********************************************/
/* Grade 12 - Final Ascent: Conquer the ESSLCE */
/***********************************************/
.grade-panel-esslce {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(90% 140% at 50% 100%, #157539 0%, #ffffff 60%, #ffffff 100%);
}

.panel-esslce-frame {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  min-height: min(100vh, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-content-esslce {
  position: relative;
  isolation: isolate;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 253, 245, 0.92));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 36px;
  padding: clamp(2rem, 5vw, 3.8rem);
  box-shadow: 0 35px 80px rgba(15, 118, 110, 0.22);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(16px);
  animation: popIn 0.8s ease forwards;
  transform-origin: center;
  transition: box-shadow 0.32s ease, transform 0.32s ease, border-color 0.32s ease;
}

.panel-content-esslce:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 40px 96px rgba(15, 118, 110, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.36),
    0 0 32px rgba(16, 185, 129, 0.28);
}

.panel-content-esslce > * {
  position: relative;
  z-index: 2;
}

.esslce-sphere {
  position: absolute;
  border-radius: 50%;
  width: clamp(220px, 28vw, 340px);
  height: clamp(220px, 28vw, 340px);
  filter: drop-shadow(0 25px 45px rgba(16, 185, 129, 0.35));
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
  animation: esslce-sphere-float 18s ease-in-out infinite alternate;
}

.esslce-sphere--one {
  top: -14%;
  left: -6%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, #bbf7d0 36%, #34d399 74%, #059669 100%);
  animation-delay: 0.1s;
  z-index: -1;
}

.esslce-sphere--two {
  bottom: -20%;
  right: -10%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86) 0%, #a7f3d0 40%, #22c55e 78%, #065f46 100%);
  animation-delay: 0.35s;
}

.esslce-sphere--three {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(187, 247, 208, 0.88) 60%, rgba(52, 211, 153, 0.8) 100%);
  filter: drop-shadow(0 18px 40px rgba(5, 150, 105, 0.3));
  animation-delay: 0.6s;
}

@keyframes esslce-sphere-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-14px, -18px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(18px, 16px, 0) scale(0.98);
  }
}

.panel-content-esslce h2 {
  font-family: 'Krona One', sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
  color: #064e3b;
}

.panel-subtitle-esslce {
  font-style: italic;
  font-size: 1.2em;
  color: #047857;
  margin-bottom: 1.25rem;
}

.panel-description-esslce {
  margin-bottom: 2rem;
  line-height: 1.75;
  font-size: 1.05em;
  color: rgba(6, 78, 59, 0.85);
}

.esslce-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.esslce-pillars__item {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: 0 12px 26px rgba(45, 212, 191, 0.2);
  backdrop-filter: blur(12px);
}

.esslce-pillars__title {
  display: block;
  font-family: 'Krona One', sans-serif;
  font-size: 0.9rem;
  color: #065f46;
  margin-bottom: 0.35rem;
}

.esslce-pillars__meta {
  font-size: 0.85rem;
  color: rgba(6, 78, 59, 0.75);
}

.panel-finalnote-esslce {
  margin-bottom: 2.2rem;
  font-size: 1.05em;
  font-weight: 600;
  color: #064e3b;
}

.fa-crown {
  color: #10b981;
  margin-right: 0.5rem;
}

.esslce-cta {
  margin-top: 0.5rem;
}

.esslce-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.esslce-cta-group .esslce-cta {
  margin-top: 0;
}

/* Glow button styles borrowed from home page */
.glow-button {
  --glow-accent: #22c55e;
  --glow-accent-soft: rgba(134, 239, 172, 0.92);
  --glow-accent-deep: #15803d;
  --glow-shadow-main: rgba(34, 197, 94, 0.6);
  --glow-shadow-outer: rgba(134, 239, 172, 0.85);
  --glow-ring: rgba(236, 253, 245, 0.32);
  --glow-text: #052e16;
  --glow-icon-color: #052e16;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2.8vw, 0.95rem);
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--glow-text);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  min-width: max-content;
  touch-action: manipulation;
  transition: filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.glow-button:focus {
  outline: none;
}

.glow-button__halo {
  position: absolute;
  inset: -28%;
  border-radius: inherit;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(300deg, rgba(74, 222, 128, 0.32) 0%, rgba(74, 222, 128, 0) 55%);
  opacity: 0.55;
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.glow-button__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 0.95rem);
  padding: clamp(0.9rem, 2vw, 1.15rem) clamp(1.65rem, 5vw, 2.6rem);
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95) 0%, var(--glow-accent-soft) 26%, var(--glow-accent) 62%, var(--glow-accent-deep) 100%);
  box-shadow:
    0 24px 50px -14px var(--glow-shadow-main),
    0 0 52px -6px var(--glow-shadow-outer),
    0 0 0 1px rgba(255, 255, 255, 0.42);
  color: var(--glow-text);
  transition:
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.22s ease;
}

.glow-button__ring {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid var(--glow-ring);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.glow-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.85rem, 5vw, 2.25rem);
  height: clamp(1.85rem, 5vw, 2.25rem);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.2) 62%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, var(--glow-accent-soft), var(--glow-accent));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 20px rgba(255, 255, 255, 0.28),
    0 0 32px -12px var(--glow-shadow-outer);
  color: var(--glow-icon-color);
  font-size: clamp(1.05rem, 3.6vw, 1.2rem);
}

.glow-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
}

.glow-button__label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
}

.glow-button__main {
  font-size: clamp(0.94rem, 2.5vw, 1.08rem);
  line-height: 1.32;
  color: inherit;
}

.glow-button:hover .glow-button__inner,
.glow-button:focus-visible .glow-button__inner {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 24px 50px -14px var(--glow-shadow-main),
    0 0 52px -4px var(--glow-shadow-outer),
    0 0 0 1px rgba(255, 255, 255, 0.55);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, var(--glow-accent-soft) 24%, var(--glow-accent) 56%, var(--glow-accent-deep) 100%);
}

.glow-button:hover .glow-button__halo,
.glow-button:focus-visible .glow-button__halo {
  opacity: 0.85;
  transform: scale(1.08);
}

.glow-button:active .glow-button__inner {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 12px 28px -10px var(--glow-shadow-main),
    0 0 32px -10px var(--glow-shadow-outer),
    0 0 0 1px rgba(255, 255, 255, 0.55);
}

.glow-button:focus-visible .glow-button__inner {
  box-shadow:
    0 0 0 2px #f8fafc,
    0 0 0 4px var(--glow-accent),
    0 24px 46px -14px var(--glow-shadow-main),
    0 0 48px -6px var(--glow-shadow-outer);
}

.glow-button:focus-visible .glow-button__ring {
  border-color: rgba(255, 255, 255, 0.6);
}

.glow-button--emerald {
  --glow-accent: #15803d;
  --glow-accent-soft: rgba(74, 222, 128, 0.82);
  --glow-accent-deep: #166534;
  --glow-shadow-main: rgba(22, 163, 74, 0.55);
  --glow-shadow-outer: rgba(74, 222, 128, 0.62);
  --glow-ring: rgba(236, 253, 245, 0.32);
  --glow-text: #052e16;
  --glow-icon-color: #052e16;
}

.glow-button--teal {
  --glow-accent: #0f766e;
  --glow-accent-soft: rgba(94, 234, 212, 0.78);
  --glow-accent-deep: #115e59;
  --glow-shadow-main: rgba(15, 118, 110, 0.48);
  --glow-shadow-outer: rgba(45, 212, 191, 0.5);
  --glow-ring: rgba(204, 251, 241, 0.4);
  --glow-text: #052e2b;
  --glow-icon-color: #052e2b;
}

@media (max-width: 1000px) {
  .grade-cards-p,
  .grade-cards-m,
  .grade-cards-h {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-content-p,
  .panel-content-m,
  .panel-content-h,
  .panel-content-esslce {
    max-width: 100%;
    padding: clamp(1.25rem, 3.4vw, 2rem) clamp(1rem, 3.5vw, 2.15rem);
    border-radius: 24px;
  }

  .panel-content-p::after,
  .panel-content-m::after,
  .panel-content-h::after {
    inset: 12px;
    border-radius: 18px;
  }

  .panel-visuals-p,
  .panel-visuals-p__img,
  .panel-visuals-m,
  .panel-visuals-m__img,
  .panel-visuals-h,
  .panel-visuals-h__img {
    display: none;
  }

  .grade-panel-p h2,
  .grade-panel-m h2,
  .grade-panel-h h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.58rem);
    line-height: 1.34;
  }

  .panel-subtitle-p,
  .panel-subtitle-m,
  .panel-subtitle-h {
    font-size: clamp(0.92rem, 1.55vw, 1.02rem);
    line-height: 1.38;
  }

  .panel-description-p,
  .panel-description-m,
  .panel-description-h {
    font-size: clamp(0.88rem, 1.45vw, 0.98rem);
    line-height: 1.48;
  }

  .grade-card-p h3,
  .grade-card-m h3,
  .grade-card-h h3 {
    font-size: clamp(0.9rem, 1.65vw, 1.02rem);
    line-height: 1.24;
    min-height: auto;
  }

  .grade-card-h__header p {
    font-size: clamp(0.76rem, 1.25vw, 0.86rem);
    line-height: 1.3;
  }

  .grade-card-p button,
  .grade-card-m button,
  .grade-card-h__cta {
    min-height: 36px;
    padding: 0.45rem 0.6rem;
    font-size: clamp(0.62rem, 1.05vw, 0.72rem);
    letter-spacing: 0.06em;
  }

  .grade-card-h__cta--stream {
    font-size: clamp(0.58rem, 0.96vw, 0.68rem);
  }

  .grade-stream-list-h__status {
    min-height: 26px;
    padding: 0.16rem 0.46rem;
    font-size: clamp(0.48rem, 0.9vw, 0.58rem);
  }
}

@media (max-width: 640px) {
  .grade-cards-p,
  .grade-cards-m,
  .grade-cards-h {
    grid-template-columns: 1fr;
  }

  .grade-stream-list-h__item {
    grid-template-columns: 1fr;
    gap: 0.32rem;
  }

  .grade-stream-list-h__status {
    width: fit-content;
  }
}

.mainpage-page.mainpage-gsap-active .panel-content-p,
.mainpage-page.mainpage-gsap-active .panel-content-m,
.mainpage-page.mainpage-gsap-active .panel-content-h,
.mainpage-page.mainpage-gsap-active .panel-content-esslce {
  animation: none;
}

.mainpage-page.mainpage-reduced-motion .hero-sphere,
.mainpage-page.mainpage-reduced-motion .esslce-sphere,
.mainpage-page.mainpage-reduced-motion .panel-visuals-p__img,
.mainpage-page.mainpage-reduced-motion .panel-visuals-m__img,
.mainpage-page.mainpage-reduced-motion .panel-visuals-h__img,
.mainpage-page.mainpage-reduced-motion .hero-title__phrase--animated {
  animation: none !important;
  transition: none !important;
}

.mainpage-page.mainpage-reduced-motion .panel-visuals-p__img,
.mainpage-page.mainpage-reduced-motion .panel-visuals-m__img,
.mainpage-page.mainpage-reduced-motion .panel-visuals-h__img,
.mainpage-page.mainpage-reduced-motion .esslce-sphere {
  opacity: 1 !important;
  transform: var(--visual-base-transform, none) !important;
}

@media (max-width: 768px) and (min-width: 425px) {
  .panel-section,
  .hero,
  .grade-panel-p,
  .grade-panel-m,
  .grade-panel-esslce {
    min-height: 100svh;
    height: 100svh;
  }

  .grade-panel-h {
    min-height: 100svh;
    height: auto;
    padding-bottom: 2rem;
  }

  .hero-content {
    margin-bottom: 0;
    padding-bottom: clamp(0.75rem, 2.1vh, 1.15rem);
  }

  .hero-text-content {
    gap: 0.6rem;
  }

  .hero-title {
    font-size: clamp(1.95rem, 5.8vw, 2.45rem);
    gap: 0.4rem;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3.4vw, 1.24rem);
  }

  .grade-panel-p,
  .grade-panel-m,
  .grade-panel-h,
  .grade-panel-esslce {
    padding: calc(var(--nav-h-mobile) + 0.55rem) clamp(0.65rem, 2.4vw, 1.1rem) 0.85rem;
  }

  .panel-p-frame,
  .panel-m-frame,
  .panel-h-frame,
  .panel-esslce-frame {
    min-height: 100%;
    height: 100%;
  }

  .panel-content-p,
  .panel-content-m,
  .panel-content-h,
  .panel-content-esslce {
    max-width: 100%;
    height: auto;
    max-height: none;
    padding: clamp(0.8rem, 1.9vh, 1.1rem) clamp(0.75rem, 2.2vw, 1rem);
    border-radius: 18px;
    overflow: hidden;
  }

  .grade-panel-p h2,
  .grade-panel-m h2,
  .grade-panel-h h2,
  .panel-content-esslce h2 {
    font-size: clamp(1.16rem, 2.7vw, 1.4rem);
    line-height: 1.35;
    margin-bottom: 0.45rem;
  }

  .panel-subtitle-p,
  .panel-subtitle-m,
  .panel-subtitle-h,
  .panel-subtitle-esslce {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.52rem;
  }

  .panel-description-p,
  .panel-description-m,
  .panel-description-h,
  .panel-description-esslce {
    font-size: 0.9rem;
    line-height: 1.42;
    margin-bottom: 0.8rem;
  }

  .grade-cards-p,
  .grade-cards-m,
  .grade-cards-h {
    gap: 0.6rem;
    margin-top: 0.65rem;
  }

  .grade-card-p,
  .grade-card-m,
  .grade-card-h {
    min-height: 108px;
    padding: 0.72rem 0.62rem 0.76rem;
    gap: 0.42rem;
    border-radius: 16px;
  }

  .grade-card-h--streams h3 {
    font-size: 0.86rem;
  }

  .grade-card-h__header p {
    font-size: 0.78rem;
  }

  .grade-card-p h3,
  .grade-card-m h3,
  .grade-card-h h3 {
    min-height: auto;
    font-size: 0.9rem;
    line-height: 1.22;
  }

  .grade-card-p button,
  .grade-card-m button,
  .grade-card-h__cta {
    min-height: 36px;
    padding: 0.44rem 0.56rem;
    font-size: 0.68rem;
    letter-spacing: 0.055em;
  }

  .grade-card-h__cta--stream {
    font-size: 0.62rem;
  }

  .grade-stream-list-h__status {
    min-height: 24px;
    width: fit-content;
    padding: 0.16rem 0.42rem;
    font-size: 0.56rem;
  }

  .esslce-pillars {
    gap: 0.55rem;
    margin-bottom: 0.9rem;
  }

  .esslce-pillars__item {
    padding: 0.65rem 0.7rem;
    border-radius: 14px;
  }

  .esslce-pillars__title {
    font-size: 0.66rem;
    margin-bottom: 0.2rem;
  }

  .esslce-pillars__meta {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .panel-finalnote-esslce {
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
  }

  .glow-button__inner {
    padding: 0.72rem 1.25rem;
  }

  .esslce-cta-group {
    flex-direction: column;
    gap: 0.56rem;
  }

  .esslce-cta-group .glow-button {
    width: 100%;
  }

  .esslce-cta-group .glow-button__text {
    align-items: flex-start;
  }
}

@media (max-width: 424px) {
  .grade-panel-p,
  .grade-panel-m,
  .grade-panel-esslce {
    padding: calc(var(--nav-h-mobile) + 0.45rem) 0.55rem 0.7rem;
  }

  .grade-panel-h {
    padding: calc(var(--nav-h-mobile) + 0.45rem) 0.55rem 0.7rem;
    min-height: auto;
    height: auto;
  }

  .panel-content-p,
  .panel-content-m,
  .panel-content-h,
  .panel-content-esslce {
    padding: 0.76rem 0.62rem 0.82rem;
    border-radius: 15px;
  }

  .grade-panel-p h2,
  .grade-panel-m h2,
  .grade-panel-h h2,
  .panel-content-esslce h2 {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }

  .panel-subtitle-p,
  .panel-subtitle-m,
  .panel-subtitle-h,
  .panel-subtitle-esslce {
    font-size: 0.8rem;
  }

  .panel-description-p,
  .panel-description-m,
  .panel-description-h,
  .panel-description-esslce {
    font-size: 0.78rem;
    line-height: 1.34;
    margin-bottom: 0.66rem;
  }

  .grade-cards-p,
  .grade-cards-m,
  .grade-cards-h {
    margin-top: 0.5rem;
    gap: 0.48rem;
  }

  .grade-card-p,
  .grade-card-m,
  .grade-card-h {
    min-height: 96px;
    border-radius: 14px;
    padding: 0.58rem 0.52rem 0.62rem;
    gap: 0.35rem;
  }

  .grade-card-p h3,
  .grade-card-m h3,
  .grade-card-h h3 {
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .grade-card-h__header p {
    font-size: 0.68rem;
    line-height: 1.26;
  }

  .grade-stream-list-h {
    gap: 0.28rem;
  }

  .grade-stream-list-h__item {
    gap: 0.22rem;
  }

  .grade-card-h__cta {
    min-height: 30px;
    font-size: 0.56rem;
    padding: 0.3rem 0.45rem;
  }

  .grade-card-h__cta--stream {
    font-size: 0.52rem;
  }

  .grade-stream-list-h__status {
    min-height: 20px;
    padding: 0.12rem 0.36rem;
    font-size: 0.46rem;
  }
}
