@font-face {
  font-family: Anuphan;
  src: url("./assets/anuphan-thai.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: Anuphan;
  src: url("./assets/anuphan-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0c0f19;
  --blue: #3157ff;
  --lime: #c9f657;
  --paper: #f7f8fc;
  --muted: #525b72;
  --line: #dfe4ee;
  color: var(--ink);
  background: var(--paper);
  font-family: Anuphan, Tahoma, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #6384ff; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; background: white; padding: 8px 12px; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { background: var(--ink); border-bottom: 1px solid #ffffff16; color: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { position: relative; flex: 0 0 76px; display: block; height: 48px; overflow: hidden; }
.brand img { position: absolute; top: -20px; left: -41px; width: 158px; height: auto; max-width: none; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 30px; }
.site-header nav a { padding-block: 8px; font-size: .95rem; color: #ccd2e2; }
.site-header nav a:hover, .site-footer a:hover { color: var(--lime); }

.hero { background: var(--ink); color: white; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 5%; }
.hero-copy { padding-block: 54px; }
.eyebrow { font-size: .9rem; font-weight: 700; }
.hero-label { display: flex; align-items: center; gap: 9px; color: var(--lime); margin-bottom: 18px; }
.hero-label::before { content: ""; width: 8px; height: 8px; border-radius: 100%; background: currentColor; }
.hero h1 { font-size: clamp(3.2rem, 6.25vw, 6.2rem); line-height: 1.12; letter-spacing: -.048em; }
.hero h1 span { color: var(--lime); }
.hero-description { max-width: 29rem; margin-top: 24px; font-size: clamp(1rem, 1.5vw, 1.2rem); color: #bfc6d9; }
.partner-name { color: #edf0fa; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 10px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; }
.primary { background: var(--lime); color: var(--ink); }
.primary:hover { background: #dcff8a; }
.outline { color: white; border-color: #ffffff45; }
.outline:hover { background: #ffffff12; }

.hero-art { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.06; }
.art-grid { position: absolute; inset: 1% -8%; background: radial-gradient(#ffffff22 .8px, transparent .8px) 0 0 / 21px 21px; mask-image: radial-gradient(ellipse, #000 20%, transparent 75%); }
.orbit { position: absolute; top: 18%; left: 4%; width: 87%; height: 63%; border: 1px solid #ffffff24; border-radius: 50%; transform: rotate(-35deg); }
.orbit-two { inset: 7% auto auto 17%; width: 73%; height: 81%; transform: rotate(30deg); }
.blue-sphere {
  position: absolute;
  z-index: 1;
  top: 10%;
  left: 8%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 23%, #97acff, #486dfc 18%, var(--blue) 43%, #0c2495 74%, #08174b);
  box-shadow: inset -16px -20px 27px #050a4040, 0 28px 70px #173fef18;
}
.lime-loop {
  position: absolute;
  top: 29%;
  right: 6%;
  width: 35%;
  height: 54%;
  border: clamp(22px, 4vw, 47px) solid var(--lime);
  border-radius: 110px;
  transform: rotate(31deg);
  box-shadow: inset 4px 4px 9px #7b9d2450, 6px 7px 0 #9bbf3f;
}
.mini-course {
  position: absolute;
  z-index: 2;
  top: 35%;
  left: 26%;
  width: 48%;
  min-height: 49%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5%;
  color: #edf1ff;
  background: #151926;
  border: 1px solid #41485d;
  border-radius: 15px;
  box-shadow: 0 24px 55px #0008;
  transform: rotate(-10deg);
}
.mini-brand { color: #b9bfd2; font-size: clamp(.54rem, 1vw, .8rem); font-weight: 600; letter-spacing: .15em; }
.mini-star { margin-block: .1em; color: var(--lime); font-size: clamp(1.7rem, 4.3vw, 4rem); line-height: 1.25; }
.mini-title { font-size: clamp(1rem, 2.4vw, 2.15rem); font-weight: 700; letter-spacing: -.042em; line-height: 1.15; }
.mini-title span { color: var(--lime); }

.topic-strip { background: #141824; color: #e2e6f7; }
.strip-inner { display: flex; align-items: center; gap: 12px 36px; padding-block: 17px; }
.strip-inner > span { font-size: .84rem; color: #aab3ce; flex-shrink: 0; }
.strip-inner ul { display: flex; flex-wrap: wrap; gap: 9px 25px; list-style: none; padding: 0; margin: 0; font-weight: 600; }
.strip-inner li { display: flex; align-items: center; gap: 22px; }
.strip-inner li:not(:last-child)::after { content: "✳"; color: var(--lime); font-size: .83rem; }

.course-section { padding-block: clamp(42px, 7vw, 88px); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.18; letter-spacing: -.026em; }
.section-heading p { margin-top: 7px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 30px; background: white; color: var(--muted); min-height: 38px; }
.filters button:hover { border-color: var(--blue); color: #1c40c1; }
.filters button[aria-pressed="true"] { background: #e9eeff; border-color: #afbeff; color: #1d39b3; font-weight: 700; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; }
.course-card > img { width: 100%; height: auto; aspect-ratio: 1.78; object-fit: cover; background: #121a39; }
.card-content { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 20px; }
.course-topic { color: #2242c4; font-size: .82rem; font-weight: 700; }
.card-content h3 { margin-top: 6px; font-size: clamp(1.04rem, 1.52vw, 1.34rem); line-height: 1.27; }
.card-content > p:not(.course-topic) { margin-block: 9px 18px; color: var(--muted); font-size: .96rem; }
.card-button { display: inline-flex; gap: 9px; align-items: center; margin-top: auto; min-height: 40px; padding: 6px 12px; background: #eef2ff; border: 1px solid transparent; border-radius: 7px; color: #1d39b3; font-weight: 640; }
.card-button:hover { background: #dfe7ff; }

.proposal { background: #e9eeff; }
.proposal-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 8%; padding-block: clamp(36px, 6vw, 74px); }
.proposal .eyebrow { margin-bottom: 10px; color: #2242c4; }
.proposal p:not(.eyebrow) { margin-top: 10px; max-width: 28em; color: var(--muted); }
.proposal ul { list-style: none; margin: 0; padding: 0; }
.proposal li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid #c9d2eb; }
.proposal li:first-child { padding-top: 0; }
.proposal li:last-child { border: 0; padding-bottom: 0; }
.proposal li span { color: var(--muted); }
.site-footer { background: var(--ink); color: #c0c7db; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 25px; justify-content: space-between; min-height: 65px; padding-block: 14px; font-size: .9rem; }

dialog { width: min(calc(100% - 32px), 580px); max-height: 86dvh; margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 18px 60px #0004; }
dialog::backdrop { background: #080d1bbb; }
.dialog-content { position: relative; padding: clamp(20px, 5vw, 34px); }
.dialog-content h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 7px 28px 9px 0; }
.dialog-content > p:not(.course-topic) { color: var(--muted); }
.dialog-content h3 { margin: 20px 0 6px; font-size: 1.1rem; }
.close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #edf1f9; color: var(--ink); font-size: 1.5rem; line-height: 1; }
.close:hover { background: #dce5ff; }
details { border-bottom: 1px solid var(--line); }
summary { padding-block: 10px; color: #2242c4; font-weight: 630; cursor: pointer; }
details p { padding-bottom: 12px; color: var(--muted); }

@media (min-width: 800px) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .mini-course { transition: transform 350ms ease; }
  .hero-art:hover .mini-course { transform: translateY(-5px) rotate(-8deg); }
}

@media (max-width: 850px) {
  .hero-inner { gap: 3%; }
  .hero h1 { font-size: clamp(3.05rem, 7.4vw, 4.5rem); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 65px; }
  .site-header nav { gap: 4px 12px; }
  .site-header nav a { font-size: .84rem; }
  .hero-inner, .proposal-inner, .course-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 39px 0 0; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 19px; }
  .hero-art { width: min(100%, 395px); margin: 2px auto 0; }
  .lime-loop { border-width: clamp(23px, 7vw, 34px); }
  .mini-title { font-size: clamp(1.13rem, 4.6vw, 1.55rem); }
  .mini-star { font-size: clamp(1.65rem, 8vw, 2.6rem); }
  .strip-inner { align-items: start; flex-direction: column; gap: 5px; padding-block: 12px; }
  .strip-inner ul { font-size: .86rem; gap: 4px 9px; }
  .strip-inner li { gap: 9px; }
  .proposal-inner { gap: 22px; }
}
