@font-face {
  font-family: "Amiri School";
  src: url("../assets/fonts/Amiri-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0d0d0d;
  --ink-soft: #355166;
  --teal: #0568a6;
  --teal-deep: #055ba6;
  --teal-bright: #18a2d9;
  --mint: #18a2d9;
  --mint-pale: #e8f5fb;
  --paper: #f2f2f2;
  --paper-warm: #f7f3e9;
  --paper-white: #fffefa;
  --gold: #f28c0f;
  --gold-pale: #fff0d9;
  --coral: #18a2d9;
  --muted: #637583;
  --line: #d9e2df;
  --success: #287b5f;
  --danger: #a84239;
  --content: 1200px;
  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 34px;
  --shadow-paper: 0 8px 28px rgba(3, 35, 64, 0.07);
  --shadow-lift: 0 18px 38px rgba(3, 35, 64, 0.12);
  --motion-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}
html {
  .whatsapp-link {
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 16px;
    color: #055ba6;
    background: #fff;
    border: 1px solid #cfe4f0;
    border-radius: 14px 5px 14px 14px;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
    transition:
      background 170ms ease,
      border-color 170ms ease,
      box-shadow 170ms ease,
      transform 170ms ease;
  }
  .whatsapp-link:hover {
    color: #055ba6;
    background: #f2f9fc;
    border-color: #18a2d9;
    box-shadow: 0 8px 20px rgba(5, 91, 166, 0.1);
    transform: translateY(-2px);
  }
  .whatsapp-link:active {
    transform: scale(0.98);
  }
  .whatsapp-link > .lucide:first-child {
    width: 20px;
    height: 20px;
    color: #0568a6;
  }
  .whatsapp-link__arrow {
    width: 15px;
    height: 15px;
    margin-inline-start: auto;
    color: #f28c0f;
  }
  .whatsapp-link__art {
    position: absolute;
    top: -12px;
    left: 8px;
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.76;
    pointer-events: none;
  }
  .whatsapp-link.is-unavailable {
    cursor: not-allowed;
    opacity: 0.68;
  }
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar, "Segoe UI", Tahoma, sans-serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body,
button,
input {
  font-family: var(--font-ar, "Segoe UI", Tahoma, sans-serif);
}
button,
input {
  font-size: inherit;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
::selection {
  color: var(--ink);
  background: var(--mint);
}
.container {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}
.section-space {
  padding-block: clamp(76px, 9vw, 132px);
}
.lucide {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

/* Shared motion and type */
.eyebrow,
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-deep);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(231, 185, 78, 0.2);
}
.section-index {
  color: var(--muted);
  text-transform: uppercase;
}
.section-index > span {
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.eyebrow--light {
  color: var(--mint);
}
.section-heading h2,
.story__copy h2,
.journey__copy h2,
.faq__heading h2 {
  margin: 14px 0 0;
  font-family: var(--font-ar, sans-serif);
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-heading h2 em,
.story__copy h2 em,
.journey__copy h2 em,
.faq__heading h2 em {
  color: var(--teal);
  font-style: normal;
}
[data-reveal] {
  opacity: 1;
  transform: none;
}
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms var(--motion-ease),
    transform 650ms var(--motion-ease);
  transition-delay: calc(var(--entry-index, 0) * 80ms);
}
.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes page-enter {
  from {
    opacity: 0.78;
    translate: 0 7px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.public-page,
.login-page,
.student-shell {
  animation: page-enter 360ms var(--motion-ease) both;
}

/* Header and buttons */
.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(242, 242, 242, 0.94);
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(255, 254, 250, 0.97);
  border-color: var(--line);
  box-shadow: 0 5px 20px rgba(3, 35, 64, 0.06);
}
.header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand img {
  width: 49px;
  height: 49px;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(50%);
}
.brand__words {
  display: grid;
  line-height: 1.25;
}
.brand__words strong {
  color: var(--ink);
  font-size: 1rem;
}
.brand__words small {
  color: var(--muted);
  font-size: 0.7rem;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}
.main-nav a {
  position: relative;
  padding-block: 9px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  transition: color 180ms ease;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transition: width 220ms var(--motion-ease);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--teal-deep);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}
.button,
.icon-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms var(--motion-ease),
    box-shadow 180ms ease;
}
.button {
  padding: 0 21px;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0) scale(0.98);
}
.button .lucide {
  width: 18px;
  height: 18px;
}
.button--primary {
  color: var(--paper-white);
  background: var(--teal);
  box-shadow: 0 6px 0 rgba(8, 108, 99, 0.16);
}
.button--primary:hover {
  background: var(--teal-deep);
  box-shadow: 0 9px 18px rgba(13, 129, 119, 0.2);
}
.button--quiet {
  color: var(--ink);
  background: transparent;
  border-color: rgba(3, 35, 64, 0.18);
}
.button--quiet:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: rgba(255, 254, 250, 0.72);
}
.button--gold {
  color: var(--ink);
  background: var(--gold);
}
.button--gold:hover {
  background: #f0c75e;
  box-shadow: 0 10px 22px rgba(231, 185, 78, 0.2);
}
.icon-button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  color: var(--ink);
  background: var(--paper-white);
  border-color: var(--line);
}
.icon-button:hover {
  color: var(--teal-deep);
  border-color: var(--teal);
}
.nav-toggle {
  display: none;
}

.icon-constellation {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon-constellation__icon {
  position: absolute;
  left: var(--icon-left);
  top: var(--icon-top);
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  opacity: 0.22;
  filter: drop-shadow(0 4px 7px rgb(3 35 64 / 12%));
  transform: rotate(var(--icon-rotate));
  animation: icon-constellation-drift 8s ease-in-out infinite;
  animation-delay: var(--icon-delay);
}

@keyframes icon-constellation-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

/* Public hero — an editorial welcome with the school's student community */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 7vw, 96px) 0 86px;
  background: var(--paper);
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: var(--paper-warm);
  clip-path: polygon(15% 0, 100% 0, 82% 76%, 100% 100%, 0 100%);
  content: "";
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  align-items: center;
  gap: clamp(25px, 5vw, 74px);
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding-block: 20px;
}
.hero__copy h1 {
  margin: 22px 0 18px;
  color: var(--ink);
  font-family: var(--font-ar, sans-serif);
  font-size: clamp(2.8rem, 5vw, 5.15rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hero__copy h1 em {
  color: var(--teal);
  font-style: normal;
}
.hero__lead {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.9;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.button--hero {
  min-height: 54px;
  padding-inline: 24px;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.hero__note-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: var(--mint-pale);
  border-radius: 50%;
}
.hero__note p {
  display: grid;
  gap: 1px;
  margin: 0;
}
.hero__note strong {
  font-size: 0.84rem;
}
.hero__note p span {
  color: var(--muted);
  font-size: 0.75rem;
}
.hero-scene {
  --pointer-x: 0;
  --pointer-y: 0;
  position: relative;
  min-height: clamp(430px, 45vw, 590px);
  display: grid;
  place-items: end center;
  padding: 18px 12px 12px;
  isolation: isolate;
}
.hero-scene__paper {
  position: absolute;
  z-index: -2;
  inset: 10% 2% 5% 5%;
  background: linear-gradient(145deg, #e8f5fb 0%, #d9edf7 58%, #fff1dc 100%);
  border: 1px solid rgb(5 91 166 / 8%);
  border-radius: 44% 56% 36% 64% / 40% 40% 60% 60%;
  transform: rotate(-2deg);
}
.hero-scene__paper::after {
  position: absolute;
  inset: 7% 8%;
  border: 1px dashed rgb(5 91 166 / 16%);
  border-radius: inherit;
  content: "";
}
.hero-scene::before {
  position: absolute;
  z-index: -1;
  top: 13%;
  right: 13%;
  width: min(68%, 330px);
  aspect-ratio: 1;
  border: 1px solid rgb(24 162 217 / 22%);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgb(255 255 255 / 32%);
  content: "";
  pointer-events: none;
}
.hero-scene__sun {
  position: absolute;
  z-index: -1;
  top: 3%;
  right: 40%;
  width: clamp(86px, 11vw, 138px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
}
.hero-scene__character {
  position: absolute;
  z-index: 2;
  bottom: 4%;
  width: auto;
  height: clamp(310px, 34vw, 450px);
  max-height: 84%;
  max-width: 58%;
  object-fit: contain;
  object-position: center bottom;
  transform: translate(
    calc(var(--pointer-x) * -8px),
    calc(var(--pointer-y) * -7px)
  );
  transition: transform 180ms ease-out;
  filter: drop-shadow(0 16px 16px rgba(3, 35, 64, 0.08));
}
.hero-scene__character--boy {
  right: 12%;
  left: auto;
}
.hero-scene__character--girl {
  right: auto;
  left: 12%;
  height: clamp(320px, 36vw, 470px);
}
.hero-scene.is-visible .hero-scene__character--boy {
  animation: hero-character-arrive 520ms var(--motion-ease) both;
}
.hero-scene.is-visible .hero-scene__character--girl {
  animation: hero-character-arrive 520ms 130ms var(--motion-ease) both;
}
@keyframes hero-character-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hero-scene__label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper-white);
  border: 1px solid rgba(3, 35, 64, 0.08);
  border-radius: 8px 16px 16px 16px;
  box-shadow: var(--shadow-paper);
  font-size: 0.76rem;
  font-weight: 700;
}
.hero-scene__label .lucide {
  width: 17px;
  height: 17px;
  color: var(--teal);
}
.hero-scene__label--top {
  top: 3%;
  left: 1%;
  transform: rotate(-4deg)
    translate(calc(var(--pointer-x) * 9px), calc(var(--pointer-y) * 6px));
}
.hero-scene__label--bottom {
  top: 3%;
  right: 1%;
  bottom: auto;
  transform: rotate(3deg)
    translate(calc(var(--pointer-x) * -8px), calc(var(--pointer-y) * -5px));
}
.scene-caption {
  position: absolute;
  right: 12%;
  bottom: 2%;
  color: var(--muted);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
}
.sticker {
  position: absolute;
  z-index: 4;
  width: 58px;
  height: 58px;
  object-fit: contain;
  pointer-events: none;
}
.hero-scene .sticker {
  z-index: 1;
}
.sticker--sun {
  top: 10%;
  left: 19%;
  width: 61px;
}
.sticker--heart {
  top: 41%;
  right: 2%;
  width: 43px;
}
.sticker--flower {
  bottom: 12%;
  left: 9%;
  width: 48px;
}
.hero-scene.is-visible .sticker--sun {
  animation: sticker-drift 5.8s ease-in-out infinite;
}
.hero-scene.is-visible .sticker--heart {
  animation: sticker-drift 6.8s ease-in-out -1.7s infinite;
}
@keyframes sticker-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-9px) rotate(5deg);
  }
}
.scroll-cue {
  position: absolute;
  bottom: 17px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  transform: translateX(-50%);
}
.scroll-cue .lucide {
  width: 15px;
  height: 15px;
  color: var(--teal);
  animation: cue-down 1.7s ease-in-out infinite;
}
@keyframes cue-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* Editorial school story */
.school-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper-white);
  background: var(--ink);
}
.story__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 5vw, 75px);
}
.section-index > span {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--teal);
}
.story__index {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.story__index .section-index {
  color: #a8c1cf;
}
.story__seal {
  width: min(100%, 205px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(119, 217, 207, 0.42);
  border-radius: 50%;
}
.story__seal img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(50%);
}
.story__copy h2 {
  color: var(--paper-white);
}
.story__copy h2 em {
  color: var(--mint);
}
.story__copy > p:not(.eyebrow) {
  max-width: 510px;
  color: #cad7df;
  font-size: 1rem;
  line-height: 2;
}
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}
.value-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2ecee;
  font-size: 0.82rem;
}
.value-list li span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.story__aside {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px 0 5px 20px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.17);
}
.story__aside-mark {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(119, 217, 207, 0.17);
  font-family: "Amiri School", var(--font-ar, sans-serif);
  font-size: clamp(7rem, 11vw, 12rem);
  line-height: 0.9;
}
.story__aside p {
  position: relative;
  color: #c3d1da;
  font-size: 0.92rem;
}
.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--teal-deep);
  background: transparent;
  border: 0;
  font-weight: 750;
  font-size: 0.85rem;
}
.text-link:hover {
  color: var(--ink);
}
.text-link .lucide {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}
.text-link:hover .lucide {
  transform: translate(-3px, -2px);
}
.text-link--light {
  color: var(--mint);
}
.text-link--light:hover {
  color: var(--paper-white);
}

/* Feature explorer: one view, five real areas */
.portal-tour {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper-warm);
}
.portal-tour > .container {
  position: relative;
  z-index: 1;
}
.section-heading--split {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 0.6fr);
  align-items: end;
  gap: 35px;
  margin-bottom: 42px;
}
.section-heading--split h2 {
  margin-top: 12px;
}
.section-heading--split > p {
  max-width: 430px;
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.9;
}
.feature-explorer {
  display: grid;
  grid-template-columns: minmax(255px, 0.7fr) minmax(0, 1.3fr);
  align-items: stretch;
  gap: clamp(25px, 5vw, 75px);
}
.feature-tabs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-block: 1px solid var(--line);
}
.feature-tab {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  color: var(--ink-soft);
  text-align: right;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  transition:
    color 170ms ease,
    padding 190ms var(--motion-ease);
}
.feature-tab:last-child {
  border-bottom: 0;
}
.feature-tab:hover,
.feature-tab.is-active {
  color: var(--ink);
  padding-inline: 12px 4px;
}
.feature-tab__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: rgba(23, 166, 151, 0.1);
  border-radius: 50%;
}
.feature-tab__arrow {
  width: 17px;
  height: 17px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}
.feature-tab.is-active .feature-tab__arrow,
.feature-tab:hover .feature-tab__arrow {
  opacity: 1;
  transform: none;
}
.feature-preview {
  min-height: 440px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--mint-pale);
  border-radius: 48% 7% 7% 7% / 12% 7% 7% 7%;
}
.feature-preview__topline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}
.feature-preview__rule {
  flex: 1;
  height: 1px;
  background: #bfded8;
}
.feature-preview__topline > .lucide {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.preview-window {
  width: min(100%, 520px);
  margin: 30px auto 26px;
  background: var(--paper-white);
  border: 1px solid rgba(3, 35, 64, 0.08);
  border-radius: 13px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.3deg);
}
.preview-window__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-inline: 12px;
  border-bottom: 1px solid #e8eeeb;
}
.preview-window__bar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5e0dc;
}
.preview-window__bar > .lucide {
  width: 15px;
  height: 15px;
  margin-inline-start: auto;
  color: var(--muted);
}
.preview-window__content {
  min-height: 178px;
  display: grid;
  grid-template-columns: 0.6fr 1fr 0.35fr;
  align-items: center;
  gap: 22px;
  padding: 22px clamp(14px, 4vw, 40px);
}
.preview-glyph {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: var(--mint-pale);
  border-radius: 24px 24px 24px 8px;
}
.preview-glyph .lucide {
  width: 33px;
  height: 33px;
}
.preview-lines {
  display: grid;
  gap: 12px;
}
.preview-lines span {
  height: 8px;
  background: #dce6e2;
  border-radius: 20px;
}
.preview-lines span:nth-child(1) {
  width: 84%;
  background: #badfd8;
}
.preview-lines span:nth-child(2) {
  width: 100%;
}
.preview-lines span:nth-child(3) {
  width: 63%;
}
.preview-stamp {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  border: 1px solid #b9ddd6;
  border-radius: 50%;
}
.feature-preview__note {
  color: var(--teal-deep);
  font-size: 0.73rem;
  font-weight: 750;
}
.feature-preview__copy h3 {
  margin: 5px 0 3px;
  font-family: var(--font-ar, sans-serif);
  font-size: 2rem;
  font-weight: 400;
}
.feature-preview__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 16px;
}
.feature-preview__text {
  min-width: 0;
}
.feature-preview__character {
  width: clamp(62px, 8vw, 94px);
  height: clamp(110px, 13vw, 150px);
  display: block;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.feature-preview__copy p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

/* Student journey */
.journey {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
}
.journey__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(38px, 7vw, 100px);
}
.journey__art {
  position: relative;
  min-height: 450px;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.journey__frame {
  position: absolute;
  z-index: -1;
  inset: 2% 5% 6% 0;
  background: #f1deac;
  border-radius: 11% 50% 10% 42% / 11% 29% 10% 45%;
  transform: rotate(3deg);
}
.journey__art > img:first-of-type {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  object-position: center bottom;
  transform: translate(
    calc(var(--pointer-x, 0) * -3px),
    calc(var(--pointer-y, 0) * -2px)
  );
}
.sticker--journey {
  top: 7%;
  left: 10%;
  width: 58px;
}
.journey__caption {
  position: absolute;
  right: 2%;
  bottom: 7%;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--paper-white);
  border-radius: 5px 12px 12px 12px;
  font-size: 0.73rem;
}
.journey__copy h2 {
  margin-bottom: 12px;
}
.journey__intro {
  max-width: 490px;
  color: var(--muted);
}
.journey-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.journey-list::before {
  position: absolute;
  top: 22px;
  bottom: 30px;
  right: 21px;
  width: 1px;
  background: #bfdbd4;
  content: "";
}
.journey-list li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-block: 14px;
}
.journey-list__number {
  z-index: 1;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: var(--paper);
  border: 1px solid #b6dcd5;
  border-radius: 50%;
  font-family: var(--font-ar, sans-serif);
  font-size: 1.15rem;
}
.journey-list strong {
  display: block;
  margin-top: 1px;
  font-size: 0.94rem;
}
.journey-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Stages are a path, not a row of cards */
.stages-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper-white);
}
.stages-section > .container {
  position: relative;
  z-index: 1;
}
.section-heading--center {
  max-width: 600px;
  margin: 0 auto 68px;
  text-align: center;
}
.section-heading--center h2 {
  margin-bottom: 12px;
}
.section-heading--center > p {
  margin: 0;
  color: var(--muted);
}
.stage-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 38px);
}
.stage-path__line {
  position: absolute;
  z-index: 0;
  top: 46px;
  right: 8%;
  left: 8%;
  height: 1px;
  border-top: 1px dashed #a8d2ca;
}
.stage-heading__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  margin: 8px auto 12px;
}
.stage-heading__lockup h2 {
  margin: 0;
}
.stage-heading__character {
  width: clamp(64px, 9vw, 104px);
  height: clamp(118px, 15vw, 174px);
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 9px 12px rgb(5 55 96 / 12%));
}
.stage-entry {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 5px 10px;
  text-align: center;
}
.stage-entry__code {
  display: block;
  margin-bottom: 18px;
  color: #8a999f;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.stage-entry__marker {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: var(--ink);
  background: var(--gold-pale);
  border: 5px solid var(--paper-white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e8d79f;
  transition:
    transform 220ms var(--motion-ease),
    background 220ms ease;
}
.stage-entry:nth-child(2) .stage-entry__marker {
  background: #d9eeea;
}
.stage-entry:nth-child(3) .stage-entry__marker {
  background: #dcecf2;
}
.stage-entry:nth-child(4) .stage-entry__marker {
  background: #f1d6c9;
}
.stage-entry:hover .stage-entry__marker {
  transform: translateY(-5px) rotate(-6deg);
  background: var(--mint);
}
.stage-entry__marker .lucide {
  width: 22px;
  height: 22px;
}
.stage-entry h3 {
  margin: 0 0 6px;
  font-family: var(--font-ar, sans-serif);
  font-size: 1.65rem;
  font-weight: 400;
}
.stage-entry p {
  max-width: 230px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

/* FAQ and closing footer */
.faq-section {
  background: var(--paper-warm);
}
.faq__layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(35px, 8vw, 120px);
}
.faq__heading h2 {
  margin-bottom: 16px;
}
.faq__heading > p {
  max-width: 300px;
  color: var(--muted);
}
.faq__heading .text-link {
  margin-top: 12px;
}
.faq__heading .whatsapp-link--section {
  min-height: 54px;
  margin-top: 16px;
}
.faq-list {
  border-top: 1px solid #d9dfd8;
}
.faq-item {
  border-bottom: 1px solid #d9dfd8;
}
.faq-item summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .lucide {
  width: 20px;
  height: 20px;
  color: var(--teal-deep);
  transition: transform 200ms ease;
}
.faq-item[open] summary .lucide {
  transform: rotate(45deg);
}
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease;
}
.faq-item[open] .faq-item__answer {
  grid-template-rows: 1fr;
}
.faq-item__answer p {
  overflow: hidden;
  max-width: 650px;
  margin: 0;
  padding: 0 24px 20px 0;
  color: var(--muted);
  line-height: 1.9;
}
.closing {
  position: relative;
  overflow: hidden;
  color: var(--paper-white);
  background: var(--teal-deep);
}
.closing::after {
  position: absolute;
  top: -150px;
  left: 0;
  width: min(370px, 100%);
  height: 370px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.035),
    0 0 0 64px rgba(255, 255, 255, 0.025);
  content: "";
}
.closing__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.closing__copy,
.closing__contact {
  position: relative;
  z-index: 1;
}
.closing__copy h2 {
  margin: 18px 0 5px;
  font-family: var(--font-ar, sans-serif);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 1.1;
}
.closing__copy p {
  max-width: 470px;
  margin: 0 0 22px;
  color: #d7efea;
}
.closing__characters {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
}
.closing__character {
  width: clamp(76px, 8vw, 106px);
  height: clamp(126px, 15vw, 176px);
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 12px rgb(0 30 57 / 18%));
}
.closing__character--ball {
  width: clamp(70px, 7vw, 92px);
  height: clamp(118px, 13vw, 156px);
}
.closing__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px 40px 18px 18px;
}
.closing__contact img {
  grid-row: span 3;
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 5px;
  border-radius: 50%;
  clip-path: circle(50%);
}
.closing__contact span {
  grid-column: 2;
  color: #d7efea;
  font-size: 0.8rem;
}
.closing__contact a {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--paper-white);
  font-size: 0.82rem;
}
.closing__contact a:hover {
  color: var(--gold-pale);
}
.closing__contact a .lucide {
  width: 16px;
  height: 16px;
  color: var(--mint);
}
.closing__contact .whatsapp-link--closing {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  padding-inline: 15px;
  color: #055ba6;
  background: #fff;
  border-color: #d5e8f1;
  font-size: 0.86rem;
}
.closing__contact .whatsapp-link--closing > .lucide:first-child {
  width: 22px;
  height: 22px;
}
.closing__contact .whatsapp-link--closing:hover {
  color: #055ba6;
  background: #eff8fc;
}
.closing__contact .whatsapp-link--closing .whatsapp-link__arrow {
  margin-inline-start: auto;
}
.closing__seal {
  position: absolute;
  right: 48%;
  bottom: -150px;
  color: rgba(255, 255, 255, 0.055);
  font:
    400 20rem/1 "Amiri School",
    var(--font-ar),
    serif;
  pointer-events: none;
}
.site-footer {
  padding-block: 20px 24px;
  color: #c8d6dc;
  background: var(--ink);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px clamp(18px, 3vw, 38px);
}
.footer__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-white);
  font-size: 0.77rem;
}
.footer__brand span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.footer__brand img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(50%);
}
.footer__inner p {
  margin: 0;
  color: #9fb3bd;
  font-size: 0.76rem;
  text-align: center;
}
.footer__top {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
}
.footer__inner small {
  grid-column: 1 / -1;
  padding-top: 0;
  color: #879ca7;
  font-size: 0.69rem;
  text-align: center;
}
.footer__developer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 16px;
  padding-top: 12px;
  color: #9fb3bd;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.72rem;
}
.footer__developer strong {
  margin-inline-start: 4px;
  color: var(--paper-white);
  font-weight: 700;
}
.footer__developer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c8d6dc;
  overflow-wrap: anywhere;
}
.footer__developer a:hover {
  color: var(--gold-pale);
}
.footer__developer .lucide {
  width: 15px;
  height: 15px;
  color: var(--mint);
}

@media (max-width: 880px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
  }
  .footer__inner p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: start;
  }
  .footer__top {
    grid-column: 2;
    grid-row: 1;
  }
  .footer__developer {
    justify-content: center;
  }
}

/* Login — student identity and actual sign-in only */
.login-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-bottom: 18px;
  background:
    radial-gradient(ellipse at 90% 12%, rgb(24 162 217 / 10%), transparent 34%),
    linear-gradient(180deg, #f5f9fc 0%, #eef5f9 100%);
}
.login-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.login-header .button {
  min-height: 42px;
  font-size: 0.82rem;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
  padding-block: 20px 38px;
}
.login-card {
  align-self: center;
  padding: clamp(27px, 4.2vw, 54px);
  background: #fff;
  border: 1px solid #dce9f0;
  border-radius: 22px 6px 22px 22px;
  box-shadow: 0 22px 60px rgb(5 55 96 / 9%);
}
.login-card > .section-index {
  color: var(--teal-deep);
}
.login-card h1 {
  margin: 14px 0 2px;
  font-family: var(--font-ar, sans-serif);
  font-size: clamp(2.45rem, 4.3vw, 3.9rem);
  font-weight: 400;
  line-height: 1.15;
}
.login-card__intro {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 0.91rem;
}
.login-form {
  display: grid;
  gap: 10px;
}
.field-label {
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}
.input-shell {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-inline: 15px;
  color: var(--teal-deep);
  background: #f5f9fc;
  border: 1px solid #d8e5ed;
  border-radius: 13px 5px 13px 13px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}
.input-shell:focus-within {
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgb(24 162 217 / 12%);
}
.input-shell.is-invalid {
  border-color: rgba(168, 66, 57, 0.7);
  box-shadow: 0 0 0 4px rgba(168, 66, 57, 0.08);
}
.input-shell > .lucide {
  width: 19px;
  height: 19px;
}
.input-shell input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}
.input-shell input::placeholder {
  color: #87959b;
  font-size: 0.84rem;
}
.input-shell input:focus-visible {
  outline: 0;
}
.password-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.74rem;
  cursor: pointer;
}
.password-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.login-form__help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 9px 3px;
  color: var(--muted);
  font-size: 0.75rem;
}
.login-form__help .lucide {
  width: 16px;
  height: 16px;
  color: var(--teal-deep);
}
.login-submit {
  width: 100%;
  min-height: 53px;
  margin-top: 4px;
}
.login-submit:disabled {
  opacity: 0.8;
  cursor: wait;
}
.login-submit__logo {
  display: none;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
}
.login-submit.is-loading .login-submit__icon {
  display: none;
}
.login-submit.is-loading .login-submit__logo {
  display: block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-feedback {
  min-height: 32px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}
.form-feedback[data-state="error"] {
  color: var(--danger);
}
.form-feedback[data-state="info"] {
  color: var(--ink-soft);
}
.login-support {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}
.login-support a {
  color: var(--teal-deep);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-support .whatsapp-link--login {
  min-height: 42px;
  padding-inline: 11px;
  color: #055ba6;
  border-color: #cfe4f0;
  font-size: 0.76rem;
  text-decoration: none;
}
.login-support .whatsapp-link--login > .lucide:first-child {
  width: 18px;
  height: 18px;
}
.login-scene {
  --pointer-x: 0;
  --pointer-y: 0;
  position: relative;
  align-self: stretch;
  min-height: clamp(440px, 42vw, 550px);
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 79% 19%, rgb(242 140 15 / 22%), transparent 22%),
    radial-gradient(circle at 18% 80%, rgb(24 162 217 / 25%), transparent 31%),
    linear-gradient(145deg, #0871bd 0%, #055ba6 56%, #03477f 100%);
  border: 1px solid rgb(255 255 255 / 44%);
  border-radius: 28px 7px 28px 28px;
  box-shadow: 0 22px 55px rgb(5 55 96 / 16%);
}
.login-scene__orbit {
  position: absolute;
  z-index: -1;
  top: 11%;
  left: 10%;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 29%);
  border-radius: 50%;
}
.login-scene__orbit::before,
.login-scene__orbit::after {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgb(255 255 255 / 22%);
  border-radius: 50%;
  content: "";
}
.login-scene__orbit::after {
  inset: 19%;
  border-style: solid;
}
.login-scene__tag {
  position: absolute;
  z-index: 3;
  top: 11%;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--teal-deep);
  background: #fff;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 12px 5px 12px 12px;
  box-shadow: 0 10px 25px rgb(0 31 59 / 16%);
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(3deg);
}
.login-scene__tag .lucide {
  width: 17px;
  height: 17px;
  color: var(--gold);
}
.login-scene__girl {
  position: absolute;
  z-index: 2;
  right: 22%;
  bottom: 0;
  width: auto;
  height: clamp(300px, 34vw, 430px);
  max-width: 46%;
  object-fit: contain;
  transform: translate(
    calc(var(--pointer-x) * -6px),
    calc(var(--pointer-y) * -5px)
  );
  transition: transform 180ms ease-out;
}
.login-scene__boy {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 7%;
  width: auto;
  height: clamp(300px, 34vw, 430px);
  max-width: 46%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 18px rgb(5 55 96 / 12%));
  animation: sticker-drift 7.5s ease-in-out -1s infinite;
}
.sticker--login {
  top: 40%;
  left: 7%;
  width: 48px;
}
.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}
.login-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.login-footer .lucide {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

/* Authenticated student styles live in css/student-portal.css. */

/* Login utility and small details */

@media (max-width: 1080px) {
  .container {
    width: min(var(--content), calc(100% - 38px));
  }
  .main-nav {
    gap: 12px;
  }
  .main-nav a {
    font-size: 0.79rem;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
    gap: 22px;
  }
  .story__layout {
    grid-template-columns: 0.45fr 1.1fr 0.8fr;
    gap: 28px;
  }
}

@media (max-width: 880px) {
  .header__inner {
    min-height: 74px;
  }
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }
  .header__login {
    margin-inline-start: auto;
  }
  .main-nav {
    position: absolute;
    top: calc(100% + 7px);
    right: 19px;
    left: 19px;
    display: grid;
    gap: 2px;
    padding: 10px;
    background: var(--paper-white);
    border: 1px solid var(--line);
    border-radius: 10px 22px 10px 10px;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 170ms ease,
      transform 170ms ease,
      visibility 170ms;
  }
  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav a {
    padding: 12px;
    border-radius: 7px;
  }
  .main-nav a:hover {
    background: var(--mint-pale);
  }
  .main-nav a::after {
    display: none;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  }
  .hero-scene {
    min-height: 430px;
  }
  .hero-scene__character {
    height: clamp(280px, 40vw, 390px);
    max-height: 84%;
    max-width: 58%;
  }
  .hero-scene__character--girl {
    height: clamp(290px, 42vw, 410px);
  }
  .login-scene__girl,
  .login-scene__boy {
    bottom: 0;
    height: clamp(280px, 40vw, 390px);
    max-height: 86%;
  }
  .login-scene__boy {
    left: 5%;
    max-width: 42%;
  }
  .story__layout {
    grid-template-columns: 0.4fr 1.15fr;
  }
  .story__aside {
    grid-column: 2;
    min-height: 140px;
    padding-top: 10px;
  }
  .feature-explorer {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
  }
  .journey__layout {
    gap: 34px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 74px;
  }
  .container {
    width: min(var(--content), calc(100% - 32px));
  }
  .section-space {
    padding-block: 68px;
  }
  .header__inner {
    min-height: 68px;
    gap: 9px;
  }
  .brand {
    gap: 7px;
  }
  .brand img {
    width: 41px;
    height: 41px;
  }
  .brand__words strong {
    font-size: 0.85rem;
  }
  .brand__words small {
    font-size: 0.62rem;
  }
  .header__login {
    min-height: 40px;
    gap: 6px;
    padding-inline: 12px;
    font-size: 0.74rem;
  }
  .header__login .lucide {
    width: 16px;
    height: 16px;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    order: initial;
  }
  .hero {
    padding: 43px 0 72px;
  }
  .hero::before {
    left: 0;
    width: 90%;
    opacity: 0.75;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero__copy {
    padding: 4px 0 0;
  }
  .hero__copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.55rem, 10.4vw, 4rem);
  }
  .hero__lead {
    max-width: 520px;
    font-size: 0.94rem;
  }
  .hero__actions {
    gap: 8px;
    margin-top: 22px;
  }
  .button--hero {
    min-height: 50px;
  }
  .button--quiet {
    padding-inline: 14px;
    font-size: 0.78rem;
  }
  .hero__note {
    margin-top: 22px;
  }
  .hero-scene {
    min-height: 330px;
    width: min(100%, 510px);
    margin-inline: auto;
  }
  .hero-scene__character {
    height: clamp(185px, 57vw, 245px);
    max-height: 78%;
    max-width: 58%;
  }
  .hero-scene__character--girl {
    height: clamp(195px, 60vw, 255px);
  }
  .hero-scene__paper {
    inset: 9% 4% 5%;
  }
  .hero-scene::before {
    top: 12%;
    right: 17%;
    width: 65%;
  }
  .hero-scene__sun {
    width: 76px;
  }
  .hero-scene__label {
    gap: 6px;
    padding: 8px 10px;
    font-size: 0.67rem;
  }
  .hero-scene__label--top {
    top: 4%;
    left: 0;
  }
  .hero-scene__label--bottom {
    top: 4%;
    right: 0;
    bottom: auto;
  }
  .scene-caption {
    right: 8%;
    bottom: 1%;
    font-size: 0.63rem;
  }
  .sticker {
    width: 44px;
    height: 44px;
  }
  .sticker--sun {
    top: 8%;
    left: 14%;
    width: 46px;
  }
  .sticker--heart {
    width: 34px;
  }
  .sticker--flower {
    width: 38px;
  }
  .scroll-cue {
    bottom: 13px;
  }
  .story__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story__index {
    flex-direction: row;
    align-items: center;
  }
  .story__seal {
    width: 77px;
  }
  .story__copy h2,
  .journey__copy h2,
  .faq__heading h2 {
    font-size: clamp(2.7rem, 11vw, 3.7rem);
  }
  .story__copy > p:not(.eyebrow) {
    font-size: 0.9rem;
  }
  .value-list {
    gap: 8px 13px;
    margin-top: 20px;
  }
  .value-list li {
    font-size: 0.74rem;
  }
  .story__aside {
    grid-column: auto;
    min-height: auto;
    padding: 10px 15px 4px;
  }
  .story__aside-mark {
    top: -17px;
    font-size: 7rem;
  }
  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 26px;
  }
  .section-heading--split h2 {
    font-size: clamp(2.65rem, 11vw, 3.7rem);
  }
  .section-heading--split > p {
    max-width: none;
    font-size: 0.85rem;
  }
  .feature-explorer {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .feature-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 0;
  }
  .feature-tab {
    min-height: 59px;
    grid-template-columns: 32px 1fr 16px;
    gap: 8px;
    padding: 7px 6px;
    border: 1px solid var(--line);
    font-size: 0.75rem;
  }
  .feature-tab:nth-child(odd) {
    border-radius: 7px 0 0 7px;
  }
  .feature-tab:nth-child(even) {
    border-radius: 0 7px 7px 0;
  }
  .feature-tab__icon {
    width: 31px;
    height: 31px;
  }
  .feature-tab__icon .lucide {
    width: 16px;
    height: 16px;
  }
  .feature-tab__arrow {
    width: 13px;
    height: 13px;
  }
  .feature-preview {
    min-height: 350px;
    padding: 22px 17px;
    border-radius: 36% 7% 7% 7% / 9% 7% 7% 7%;
  }
  .preview-window {
    margin: 22px auto 20px;
  }
  .preview-window__content {
    min-height: 145px;
    grid-template-columns: 60px 1fr 30px;
    gap: 13px;
    padding: 16px 12px;
  }
  .preview-glyph {
    width: 56px;
    height: 56px;
    border-radius: 17px 17px 17px 6px;
  }
  .preview-glyph .lucide {
    width: 26px;
    height: 26px;
  }
  .preview-stamp {
    width: 30px;
    height: 30px;
  }
  .feature-preview__copy h3 {
    font-size: 1.7rem;
  }
  .feature-preview__copy {
    gap: 8px;
  }
  .feature-preview__character {
    width: 58px;
    height: 102px;
  }
  .feature-preview__copy p {
    font-size: 0.81rem;
  }
  .journey__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .journey__art {
    min-height: 260px;
    grid-row: 2;
  }
  .journey__art > img:first-of-type {
    max-height: 300px;
  }
  .journey__frame {
    inset: 2% 6% 7% 0;
  }
  .journey__copy {
    grid-row: 1;
  }
  .journey-list {
    margin-top: 17px;
  }
  .journey-list li {
    grid-template-columns: 39px 1fr;
    gap: 12px;
    padding-block: 11px;
  }
  .journey-list__number {
    width: 38px;
    height: 38px;
  }
  .journey-list::before {
    right: 18px;
  }
  .section-heading--center {
    margin-bottom: 34px;
  }
  .section-heading--center h2 {
    font-size: clamp(2.7rem, 11vw, 3.8rem);
  }
  .stage-heading__lockup {
    gap: 8px;
  }
  .stage-heading__character {
    width: 56px;
    height: 108px;
  }
  .section-heading--center > p {
    font-size: 0.82rem;
  }
  .stage-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 13px;
  }
  .stage-path__line {
    top: 36px;
    right: 23%;
    left: 23%;
    height: 60%;
    border: 0;
    border-right: 1px dashed #a8d2ca;
  }
  .stage-entry__code {
    margin-bottom: 12px;
  }
  .stage-entry__marker {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .stage-entry h3 {
    font-size: 1.45rem;
  }
  .stage-entry p {
    font-size: 0.74rem;
  }
  .faq__layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .faq__heading h2 {
    margin-top: 7px;
  }
  .faq__heading > p {
    margin-block: 8px;
  }
  .faq-item summary {
    min-height: 65px;
    font-size: 0.85rem;
  }
  .faq-item__answer p {
    font-size: 0.8rem;
  }
  .closing__inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .closing__copy h2 {
    font-size: 3.2rem;
  }
  .closing__characters {
    margin-top: 8px;
  }
  .closing__character {
    width: 74px;
    height: 122px;
  }
  .closing__character--ball {
    width: 66px;
    height: 110px;
  }
  .closing__contact {
    width: 100%;
    grid-template-columns: 72px 1fr;
    gap: 9px 13px;
    padding: 16px;
  }
  .closing__contact img {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 66px;
    height: 66px;
  }
  .closing__contact span,
  .closing__contact a {
    grid-column: 2;
    overflow-wrap: anywhere;
    font-size: 0.74rem;
  }
  .closing__seal {
    right: 35%;
    bottom: -90px;
    font-size: 12rem;
  }
  .footer__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .footer__inner p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: right;
  }
  .footer__top {
    grid-column: 2;
    grid-row: 1;
  }
  .footer__inner small {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  .footer__developer {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
  }
  .login-header {
    min-height: 69px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding-top: 9px;
  }
  .login-card {
    grid-row: 1;
    padding: 25px 20px;
    border-radius: 7px 24px 7px 7px;
  }
  .login-card h1 {
    font-size: 2.65rem;
  }
  .login-scene {
    grid-row: 2;
    min-height: 290px;
    height: 290px;
    border-radius: 22px 6px 22px 22px;
  }
  .login-scene__girl {
    right: 21%;
    bottom: 0;
    height: clamp(230px, 64vw, 270px);
    max-width: 48%;
  }
  .login-scene__boy {
    left: 4%;
    bottom: 0;
    height: clamp(230px, 64vw, 270px);
    max-width: 40%;
  }
  .login-scene__tag {
    top: 9%;
    right: 5%;
    font-size: 0.66rem;
  }
  .login-scene__orbit {
    top: 7%;
    width: 82%;
  }
  .login-scene__tag {
    z-index: 4;
  }
  .sticker--login {
    top: 34%;
    left: 4%;
    width: 39px;
  }
  .login-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 15px;
  }
}

@media (max-width: 375px) {
  .container {
    width: calc(100% - 26px);
  }
  .brand__words small {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header__login {
    padding-inline: 9px;
  }
  .header__login span {
    font-size: 0.68rem;
  }
  .hero__copy h1 {
    font-size: 2.45rem;
  }
  .hero-scene {
    min-height: 300px;
  }
  .hero-scene__character {
    height: clamp(175px, 58vw, 195px);
    max-height: 78%;
    max-width: 58%;
  }
  .hero-scene__character--girl {
    height: clamp(185px, 61vw, 205px);
  }
  .hero-scene__label {
    font-size: 0.61rem;
  }
  .feature-tab {
    grid-template-columns: 29px 1fr 13px;
    gap: 6px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
