@font-face {
  font-family: "Euclid Circular";
  src: url("/assets/fonts/euclid-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular";
  src: url("/assets/fonts/euclid-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular";
  src: url("/assets/fonts/euclid-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary: #1905a4;
  --primary-strong: #120379;
  --secondary: #1d9bff;
  --focus: #005ea8;
  --ink: #192335;
  --muted: #5f687a;
  --surface: #ffffff;
  --surface-blue: #eef8ff;
  --surface-violet: #e8ebfd;
  --line: #dde4ef;
  --danger: #b42318;
  --container: 1280px;
  --radius: 14px;
  --shadow: 0 10px 34px rgb(115 125 151 / 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Euclid Circular", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: var(--primary);
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--surface-blue);
}

::-webkit-scrollbar-thumb {
  background: #aeb7cb;
  border: 3px solid var(--surface-blue);
  border-radius: 999px;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-strong);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header :focus-visible {
  outline-color: #fff;
}

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

h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1.25rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 88px;
  background: rgb(25 5 164 / 0.98);
  box-shadow: 0 4px 18px rgb(18 3 121 / 0.24);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 175px;
}

.desktop-nav {
  justify-self: end;
}

.desktop-nav ul,
.footer-links,
.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav ul {
  display: flex;
  gap: clamp(16px, 1.7vw, 30px);
  align-items: center;
}

.desktop-nav a {
  position: relative;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--secondary);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease-out;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.menu-button,
.menu-close,
.carousel-button {
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 12px;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -7px;
}

.menu-bars::after {
  top: 7px;
}

.mobile-menu {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  visibility: hidden;
}

.mobile-menu[aria-hidden="false"] {
  visibility: visible;
}

.mobile-panel {
  position: relative;
  z-index: 2;
  padding: 30px;
  background: #fff;
  transform: translateX(-105%);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu[aria-hidden="false"] .mobile-panel {
  transform: translateX(0);
}

.menu-scrim {
  background: rgb(12 18 31 / 0.65);
  border: 0;
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease-out;
}

.mobile-menu[aria-hidden="false"] .menu-scrim {
  opacity: 1;
}

.mobile-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 36px;
}

.mobile-head img {
  width: 180px;
}

.menu-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.close-mark,
.close-mark::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.close-mark::after {
  transform: rotate(90deg);
}

.mobile-nav li + li {
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 13px 2px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav .login-link {
  color: var(--primary);
  font-weight: 700;
}

.section {
  padding-block: clamp(72px, 8vw, 112px);
}

.section-tight-top {
  padding-top: 0;
}

.surface-blue {
  background: var(--surface-blue);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.two-column.reverse {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.35fr);
}

.copy-center {
  text-align: center;
}

.copy-left {
  text-align: left;
}

.badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 18px;
  color: var(--primary);
  background: var(--surface-violet);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title,
.section-title {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 4.3vw, 3.25rem);
}

.section-title.compact {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.accent {
  color: var(--primary);
}

.lede {
  max-width: 68ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.copy-left .lede {
  margin-left: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.copy-left .button-row {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 26px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--secondary);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(29 155 255 / 0.2);
  transition: background-color 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

.button:hover {
  color: var(--ink);
  background: #56b5ff;
  box-shadow: 0 11px 24px rgb(29 155 255 / 0.28);
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 20px rgb(25 5 164 / 0.2);
}

.button.primary:hover {
  color: #fff;
  background: var(--primary-strong);
}

.media-frame {
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 1.04 / 1;
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 1 / 1.03;
}

.phone-media {
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.phone-media img {
  max-height: 610px;
  margin-inline: auto;
  object-fit: contain;
}

.mission-copy + .mission-copy {
  margin-top: 44px;
}

.services-heading,
.expert-heading,
.lecturer-heading {
  margin-bottom: clamp(42px, 6vw, 68px);
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 34px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.service-card img {
  width: 55px;
  height: 55px;
  margin-bottom: 24px;
  object-fit: contain;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.expert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: center;
}

.expert-image {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.expert-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carousel-header {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -36px 0 22px;
}

.carousel-button {
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 24px;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}

.carousel-button:hover {
  background: var(--primary-strong);
  transform: translateY(-2px);
}

.lecturer-track {
  display: grid;
  grid-auto-columns: calc((100% - 60px) / 3);
  grid-auto-flow: column;
  gap: 30px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.lecturer-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.lecturer-card img {
  width: 100%;
  aspect-ratio: 3 / 3.55;
  object-fit: cover;
  object-position: top center;
}

.lecturer-copy {
  min-height: 205px;
  padding: 24px;
}

.lecturer-copy h3 {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 1.35rem;
}

.lecturer-role {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 500;
}

.lecturer-location {
  margin: 0;
  color: var(--muted);
}

.detail-heading {
  margin: 28px 0 8px;
  color: var(--primary);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.contact-list {
  margin-top: 30px;
}

.contact-list h3 {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.contact-list p {
  margin-bottom: 22px;
}

.site-footer {
  padding-top: 78px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  padding-bottom: 64px;
}

.footer-logo {
  width: 245px;
  margin-bottom: 22px;
}

.footer-description {
  max-width: 48ch;
  color: var(--muted);
}

.footer-title {
  margin: 8px 0 20px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 10px;
  color: var(--muted);
}

.copyright {
  color: #fff;
  background: var(--primary);
}

.copyright-inner {
  display: flex;
  min-height: 70px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.copyright p {
  margin: 0;
}

.copyright a {
  color: #fff;
}

.copyright-links {
  display: flex;
  gap: 22px;
}

.auth-page {
  min-height: 100vh;
  background: #fff;
}

.auth-brand-band {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 34px 20px;
  background: var(--primary);
}

.auth-brand-band img {
  width: min(350px, 70vw);
  filter: brightness(0) invert(1);
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: start center;
  padding: 44px 20px 70px;
}

.auth-card {
  width: min(100%, 400px);
}

.auth-card h1 {
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.75rem;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #6d788b;
  border-radius: 6px;
  caret-color: var(--primary);
}

.field input:hover {
  border-color: var(--primary);
}

.field input:focus-visible {
  border-color: var(--primary);
  outline-color: var(--focus);
}

.remember-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 2px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.auth-card .button {
  width: 100%;
}

.form-message {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--danger);
  font-weight: 700;
  text-align: center;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 32px;
  font-size: 14px;
}

.auth-links a {
  font-weight: 500;
}

.legal-hero {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--primary);
  text-align: center;
}

.legal-hero::before {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/mission-team.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.16;
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  padding: 70px 20px;
}

.legal-hero h1 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-hero a,
.legal-hero span {
  color: #fff;
}

.legal-content {
  padding-block: clamp(58px, 8vw, 96px);
}

.legal-content h2,
.legal-content h3 {
  margin: 40px 0 14px;
  color: var(--primary);
}

.legal-content h2 {
  font-size: 1.55rem;
}

.legal-content p,
.legal-content li {
  color: #3e485a;
}

.legal-content li + li {
  margin-top: 10px;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.not-found img {
  width: 220px;
  margin: 0 auto 36px;
}

.not-found h1 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: clamp(4rem, 15vw, 8rem);
}

.not-found p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-button {
    display: inline-grid;
    grid-column: 1;
    grid-row: 1;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .desktop-nav {
    display: none;
  }

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

@media (max-width: 900px) {
  .two-column,
  .two-column.reverse,
  .expert-grid {
    grid-template-columns: 1fr;
  }

  .two-column .copy,
  .two-column.reverse .copy {
    order: 1;
  }

  .two-column .media-frame,
  .two-column.reverse .media-frame {
    order: 2;
  }

  .copy-left,
  .copy-left .detail-heading,
  .copy-left .contact-list {
    text-align: center;
  }

  .copy-left .lede {
    margin-inline: auto;
  }

  .copy-left .button-row {
    justify-content: center;
  }

  .lecturer-track {
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
  }

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

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header,
  .header-inner {
    min-height: 76px;
  }

  .header-inner {
    gap: 16px;
  }

  .brand img {
    width: 148px;
  }

  .menu-button {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    grid-template-columns: minmax(0, 88vw) 1fr;
  }

  .mobile-panel {
    padding: 24px 20px;
  }

  .section {
    padding-block: 64px;
  }

  .section-tight-top {
    padding-top: 0;
  }

  .two-column,
  .two-column.reverse,
  .expert-grid {
    gap: 38px;
  }

  .hero-title,
  .section-title {
    font-size: clamp(2.05rem, 10.5vw, 2.75rem);
  }

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

  .service-card {
    min-height: 0;
  }

  .carousel-header {
    margin-top: -26px;
  }

  .lecturer-track {
    grid-auto-columns: 86%;
    gap: 18px;
  }

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

  .copyright-inner,
  .copyright-links {
    flex-direction: column;
  }

  .copyright-inner {
    padding-block: 20px;
    text-align: center;
  }

  .auth-brand-band {
    min-height: 160px;
  }

  .auth-main {
    min-height: calc(100vh - 160px);
    padding-top: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
