:root {
  color-scheme: light;
  --primary: #12af6b;
  --primary-strong: #0e945a;
  --secondary: #0996b9;
  --tertiary: #6543d6;
  --surface: #faf4f2;
  --background: #ede7e5;
  --text: #29242a;
  --muted: #696364;
  --hint: #a59fa0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(41, 36, 42, 0.1);
  --radius: 20px;
  --max: 1120px;
  --font-display:
    'Outfit', 'Noto Sans SC', 'Noto Sans Khmer', system-ui, sans-serif;
  --font-body:
    'Manrope', 'Noto Sans SC', 'Noto Sans Khmer', system-ui, sans-serif;
  --btn-on-gradient: #ffffff;
}

html.dark {
  color-scheme: dark;
  --primary: #a6ed64;
  --primary-strong: #a6ed64;
  --secondary: #68e9f8;
  --tertiary: #a490fd;
  --surface: #2c2a2e;
  --background: #211f22;
  --text: #f4f4f2;
  --muted: #a8a4a6;
  --hint: #727072;
  --white: #f4f4f2;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --btn-on-gradient: #211f22;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(
      ellipse 80% 50% at 10% -10%,
      color-mix(in srgb, var(--primary) 18%, transparent),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 45% at 95% 5%,
      color-mix(in srgb, var(--secondary) 16%, transparent),
      transparent 50%
    ),
    var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand span {
  color: var(--primary-strong);
}

html[lang='km'] body,
html[lang='zh-Hans'] body {
  line-height: 1.7;
}

html[lang='km'] h1,
html[lang='km'] h2,
html[lang='km'] h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

.nav-links {
  display: none;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--text);
  color: var(--surface);
}

.icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.icon-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

html.dark .theme-icon-moon,
html:not(.dark) .theme-icon-sun {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--btn-on-gradient);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 28%, transparent);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px color-mix(in srgb, var(--secondary) 30%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

.btn-icon-only {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
}

.btn-icon-only svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hero {
  padding: 2.75rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-copy {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent);
  align-self: center;
}

.eyebrow-city {
  font-family: var(--font-display);
  font-size: 1.25em;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--secondary);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.motif-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.75rem;
  max-width: 34rem;
}

.motif-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: 1rem;
  color: var(--primary-strong);
  min-height: 5.2rem;
}

.motif-tile img {
  width: 2rem;
  height: 2rem;
}

.motif-tile .icon {
  width: 2rem;
  height: 2rem;
}

.motif-tile span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.icon {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-tech {
  -webkit-mask-image: url('../images/subjects/tech.svg');
  mask-image: url('../images/subjects/tech.svg');
}
.icon-ai {
  -webkit-mask-image: url('../images/subjects/ai.svg');
  mask-image: url('../images/subjects/ai.svg');
}
.icon-apps {
  -webkit-mask-image: url('../images/subjects/apps.svg');
  mask-image: url('../images/subjects/apps.svg');
}
.icon-maths {
  -webkit-mask-image: url('../images/subjects/maths.svg');
  mask-image: url('../images/subjects/maths.svg');
}
.icon-science {
  -webkit-mask-image: url('../images/subjects/science.svg');
  mask-image: url('../images/subjects/science.svg');
}
.icon-biology {
  -webkit-mask-image: url('../images/subjects/biology.svg');
  mask-image: url('../images/subjects/biology.svg');
}
.icon-chemistry {
  -webkit-mask-image: url('../images/subjects/chemistry.svg');
  mask-image: url('../images/subjects/chemistry.svg');
}
.icon-english {
  -webkit-mask-image: url('../images/subjects/english.svg');
  mask-image: url('../images/subjects/english.svg');
}

.portrait-card {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--radius) + 8px);
  padding: 1rem;
  box-shadow: var(--shadow);
  max-width: 360px;
  width: 100%;
  margin-inline: auto;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  animation: rise 0.7s ease 0.12s both;
}

.portrait-frame {
  position: relative;
}

.portrait-photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--background);
}

.portrait-placeholder {
  display: block;
  overflow: hidden;
}

.portrait-placeholder .ph-bg-a {
  stop-color: color-mix(in srgb, var(--primary) 18%, var(--background));
}

.portrait-placeholder .ph-bg-b {
  stop-color: var(--background);
}

.portrait-placeholder .ph-bg-c {
  stop-color: color-mix(in srgb, var(--secondary) 16%, var(--background));
}

.portrait-placeholder .ph-ring-a {
  stop-color: var(--primary);
}

.portrait-placeholder .ph-ring-b {
  stop-color: var(--secondary);
}

.portrait-placeholder .ph-glow-a {
  stop-color: var(--primary);
  stop-opacity: 0.16;
}

.portrait-placeholder .ph-glow-b {
  stop-color: var(--secondary);
  stop-opacity: 0.06;
}

.portrait-placeholder .ph-glow-c {
  stop-color: var(--secondary);
  stop-opacity: 0;
}

.portrait-placeholder .ph-blob {
  fill: var(--primary);
  fill-opacity: 0.1;
}

.portrait-placeholder .ph-blob-alt {
  fill: var(--secondary);
  fill-opacity: 0.1;
}

.portrait-placeholder .ph-face {
  fill: var(--surface);
}

.portrait-placeholder .ph-ring-wide {
  stroke-opacity: 0.2;
}

.portrait-placeholder .ph-ring-mid {
  stroke-opacity: 0.32;
}

.portrait-placeholder .ph-ring-inner {
  stroke-opacity: 0.5;
}

.portrait-placeholder .ph-sil {
  fill: var(--hint);
  fill-opacity: 0.7;
}

.portrait-placeholder .ph-motif {
  stroke: var(--primary);
  stroke-opacity: 0.55;
}

.portrait-placeholder .ph-motif-alt {
  stroke: var(--secondary);
  stroke-opacity: 0.5;
}

html.dark .portrait-placeholder .ph-bg-a {
  stop-color: color-mix(in srgb, var(--primary) 10%, var(--background));
}

html.dark .portrait-placeholder .ph-bg-b {
  stop-color: var(--background);
}

html.dark .portrait-placeholder .ph-bg-c {
  stop-color: color-mix(in srgb, var(--secondary) 10%, var(--background));
}

html.dark .portrait-placeholder .ph-glow-a {
  stop-opacity: 0.08;
}

html.dark .portrait-placeholder .ph-glow-b {
  stop-opacity: 0.04;
}

html.dark .portrait-placeholder .ph-blob,
html.dark .portrait-placeholder .ph-blob-alt {
  fill-opacity: 0.07;
}

html.dark .portrait-placeholder .ph-face {
  fill: color-mix(in srgb, var(--surface) 85%, var(--background));
}

html.dark .portrait-placeholder .ph-sil {
  fill: var(--muted);
  fill-opacity: 0.45;
}

html.dark .portrait-placeholder .ph-motif {
  stroke-opacity: 0.65;
}

html.dark .portrait-placeholder .ph-motif-alt {
  stroke-opacity: 0.6;
}

.flag-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 5rem;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  z-index: 1;
}

html.dark .flag-badge {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.portrait-meta {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.portrait-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.portrait-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.benefit-grid,
.subject-grid {
  display: grid;
  gap: 1rem;
}

.benefit-card,
.subject-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
}

.subject-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-strong);
}

.subject-icon .icon {
  width: 1.7rem;
  height: 1.7rem;
}

.benefit-card h3,
.subject-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.benefit-card p,
.subject-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.benefit-index {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.about-panel {
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 10%, var(--surface)),
    var(--surface) 45%,
    color-mix(in srgb, var(--secondary) 10%, var(--surface))
  );
  border-radius: calc(var(--radius) + 6px);
  padding: 1.6rem;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.about-body {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cred-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
}

.cred-list li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--secondary);
}

.org-badges {
  display: grid;
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: 1rem;
  background: var(--background);
  border-radius: var(--radius);
  padding: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.org-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.65rem 0.5rem;
  min-height: 150px;
}

.org-badge + .org-badge {
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  padding-top: 1rem;
}

.org-badge img {
  width: min(96px, 36vw);
  height: auto;
}

.org-badge .unicef-logo {
  width: min(150px, 55vw);
}

.org-badge strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.studio-section {
  padding-top: 1rem;
}

.studio-panel {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
}

.studio-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.studio-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.studio-body {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

.studio-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hint);
}

.studio-visit {
  display: inline-flex;
}

.studio-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-content: start;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 9.5rem;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  background: var(--background);
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.app-tile:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  transform: translateY(-1px);
}

.app-tile img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.app-tile strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.app-tile span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.cta-band {
  margin: 1rem 0 3.5rem;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--btn-on-gradient);
  border-radius: calc(var(--radius) + 8px);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.cta-band p {
  margin: 0 0 1.3rem;
  max-width: 40rem;
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  padding: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-credit {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--hint);
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .motif-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-panel {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
  }

  .studio-panel {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
    gap: 2rem;
    padding: 1.75rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
  }

  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 719px) {
  .lang-label-full {
    display: none;
  }
}

@media (min-width: 720px) {
  .lang-label-short {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .hero-copy,
  .portrait-card {
    transition: none;
    animation: none;
  }
}
