@font-face {
  font-family: "KARYO Readex Stable";
  src: url("/assets/fonts/readex-pro-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
}

@font-face {
  font-family: "KARYO Plex Stable";
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
}

html[lang="ar"] body,
html[lang="ar"] .hero-section,
html[lang="ar"] .primary-nav a,
html[lang="ar"] .button {
  font-family: "KARYO Readex Stable", system-ui, sans-serif;
}

html[lang="en"] body,
html[lang="en"] .hero-section,
html[lang="en"] .primary-nav a,
html[lang="en"] .button,
html[lang="en"] .hero-pathway span,
html[lang="en"] .hero-pathway small {
  font-family: "KARYO Plex Stable", system-ui, sans-serif;
}

.hero-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  contain: layout paint;
  display: block;
}

.hero-photo > img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 760px) {
  .hero-section,
  .hero-layout {
    min-height: 47rem;
  }

  .hero-photo {
    min-height: 47rem;
  }

  .brand-link {
    width: 7.35rem;
    min-width: 7.35rem;
    height: 3.05rem;
    background: url("/assets/karyo-logo-horizontal.webp") center / contain no-repeat;
  }

  .brand-link picture {
    width: 100%;
    height: 100%;
    opacity: 0;
  }

  .brand-link img {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .brand-zone {
    gap: 0.5rem;
  }

  html[lang="ar"] .hero-meta {
    direction: rtl;
    column-gap: 1.2rem;
    row-gap: 0.8rem;
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .hero-section,
  .hero-layout,
  .hero-photo {
    min-height: 53rem;
  }

  html[lang="ar"] .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 4.1rem;
  }

  html[lang="ar"] .hero-meta span {
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .brand-link {
    width: 6.8rem;
    min-width: 6.8rem;
  }
}

/* Update 23 Aug: content additions using the existing KARYO visual system. */
.hero-meta-wide {
  flex-basis: 100%;
}

.hero-current-program {
  width: fit-content;
  max-width: 100%;
  margin-top: 0.8rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid #d8d2fb;
  border-radius: 0.55rem;
  color: var(--purple-deep);
  background: var(--purple-pale);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.55;
}

.pathway-recommendation {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--purple);
  border-radius: 0.9rem;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.pathway-recommendation .eyebrow {
  margin-bottom: 0.45rem;
}

.pathway-recommendation h3 {
  font-size: 1.22rem;
  line-height: 1.45;
}

.pathway-recommendation > p:last-child {
  max-width: 860px;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.8;
}

.start-section {
  background: var(--cream);
}

.start-intro {
  max-width: 820px;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.start-card {
  min-width: 0;
  min-height: 255px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--white);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.start-card::after {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  inset-block-end: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--orange));
}

.start-number {
  color: var(--purple);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.start-label {
  margin-top: 1.25rem;
  color: #b45309;
  font-size: 0.77rem;
  font-weight: 800;
}

.start-card h3 {
  margin-top: 0.35rem;
  font-size: 1.08rem;
  line-height: 1.5;
}

.start-card > p:last-child {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.tech-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid #ffffff38;
  border-radius: 0.85rem;
  background: #ffffff0d;
}

.tech-note > svg {
  flex: none;
  color: var(--orange);
}

.tech-note h3 {
  color: var(--orange);
  font-size: 1.05rem;
  line-height: 1.45;
}

.tech-note p {
  max-width: 920px;
  margin-top: 0.35rem;
  color: #e3e0f0;
  font-size: 0.88rem;
  line-height: 1.75;
}

.mission-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.delivery-cards article > p + p {
  margin-top: 0.7rem;
}

.flexible-copy > p + p {
  margin-top: 0.7rem;
}

.delivery-note {
  color: var(--purple-deep) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
}

.parent-stages {
  grid-template-columns: 1fr;
}

.team-section {
  background: var(--soft);
}

.team-intro {
  max-width: 900px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.team-card {
  min-width: 0;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.think-profile {
  border-block-start: 5px solid var(--purple);
}

.build-profile {
  border-block-start: 5px solid var(--orange);
}

.team-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.team-card-heading > div {
  min-width: 0;
}

.team-card h3 {
  font-size: 1.24rem;
  line-height: 1.45;
}

.team-tags {
  margin-top: 0.3rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
}

.team-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.82;
}

.team-card > p + p {
  margin-top: 0.8rem;
}

.story-question {
  color: var(--purple-deep) !important;
  font-size: 1.1rem !important;
  font-weight: 800;
}

.faq-symbol {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.interest-actions {
  display: grid;
  gap: 0.75rem;
}

.button-whatsapp {
  color: var(--purple-deep);
  background: var(--purple-pale);
  border-color: #5b3fd12e;
}

.button-whatsapp:hover {
  background: #e4deff;
}

.interest-actions .form-note {
  margin-top: 0.1rem;
}

@media (hover: hover) and (pointer: fine) {
  .start-card,
  .team-card {
    transition: transform 0.19s var(--ease-out), box-shadow 0.19s var(--ease-out), border-color 0.19s var(--ease-out);
  }

  .start-card:hover,
  .team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 1020px) {
  .start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mission-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-stat-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .hero-section,
  .hero-layout,
  .hero-photo {
    min-height: 55rem;
  }

  .hero-meta-wide {
    flex-basis: auto;
  }

  .start-card {
    min-height: 225px;
  }

  .team-card {
    padding: 1.25rem;
  }

  .team-card-heading {
    align-items: center;
  }

  .tech-note {
    padding: 1rem;
  }
}

@media (max-width: 520px) {
  .start-grid,
  .mission-stat-grid {
    grid-template-columns: 1fr;
  }

  .mission-stat-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .hero-section,
  .hero-layout,
  .hero-photo {
    min-height: 58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-card,
  .team-card {
    transition: none !important;
    transform: none !important;
  }
}
