:root {
  --navy: #061b35;
  --navy-2: #0b2947;
  --cream: #f6ebce;
  --coral: #ff654d;
  --cyan: #2db9da;
  --yellow: #ffc64b;
  --muted: #a8bfd1;
  --ink: #031426;
  --display: "Avenir Next", "Futura", "Trebuchet MS", sans-serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 5%, rgb(45 185 218 / 12%), transparent 28%),
    radial-gradient(circle at 10% 55%, rgb(255 101 77 / 9%), transparent 30%),
    var(--navy);
  color: var(--cream);
  font-family: var(--body);
}

a { color: inherit; }

button, a { font: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  min-height: 72px;
  padding: 14px clamp(22px, 5vw, 80px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(6 27 53 / 82%);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-decoration: none;
}

.site-brand span {
  color: var(--cyan);
  font-weight: 1000;
  letter-spacing: .12em;
}

.site-brand b { font-size: 14px; }

.language-switch {
  display: flex;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 99px;
  background: rgb(255 255 255 / 5%);
}

.language-switch button {
  padding: 7px 13px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.language-switch button.is-active {
  background: var(--cyan);
  color: var(--ink);
}

.landing-hero {
  position: relative;
  min-height: min(900px, 100vh);
  padding: 130px clamp(24px, 7vw, 120px) 80px;
  overflow: hidden;
}

.landing-hero > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(6 27 53 / 97%) 0%, rgb(6 27 53 / 86%) 46%, rgb(6 27 53 / 24%) 78%),
    linear-gradient(0deg, var(--navy), transparent 30%);
}

.landing-copy {
  max-width: 900px;
}

.site-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: clamp(13px, 1.2vw, 19px);
  font-weight: 1000;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.landing-copy h1,
.section-heading h2,
.about-section h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -.05em;
  line-height: .96;
}

.landing-copy h1 {
  max-width: 900px;
  font-size: clamp(64px, 9vw, 144px);
}

.landing-lead {
  max-width: 750px;
  margin: 34px 0 0;
  color: var(--cream);
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.35;
}

.landing-meta {
  display: flex;
  width: fit-content;
  margin-top: 34px;
  padding: 13px 18px;
  gap: 18px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  background: rgb(6 27 53 / 72%);
  color: var(--muted);
}

.landing-meta strong { color: var(--cream); }
.landing-meta span:last-child { color: var(--yellow); }

.hero-actions, .lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.primary-action, .secondary-action {
  display: inline-flex;
  min-height: 52px;
  padding: 14px 22px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--coral);
  border-radius: 13px;
  background: var(--coral);
  color: var(--ink);
  text-decoration: none;
  font-weight: 1000;
}

.secondary-action {
  border-color: var(--cyan);
  background: rgb(6 27 53 / 72%);
  color: var(--cyan);
}

.primary-action:hover, .secondary-action:hover { filter: brightness(1.1); }

.site-section {
  width: min(1240px, calc(100% - 42px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  max-width: 850px;
}

.section-heading h2,
.about-section h2 {
  font-size: clamp(44px, 6vw, 84px);
}

.section-heading > p:last-child {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.5;
}

.talk-routes {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  margin-top: 46px;
}

.talk-route {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 22px;
  background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 3%));
}

.talk-route--core {
  border-color: rgb(255 101 77 / 58%);
  box-shadow: inset 0 5px 0 var(--coral);
}

.talk-route--math { box-shadow: inset 0 5px 0 var(--yellow); }
.talk-route--tech { box-shadow: inset 0 5px 0 var(--cyan); }

.route-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.talk-route--core .route-label { color: var(--coral); }
.talk-route--math .route-label { color: var(--yellow); }

.talk-route h3 {
  margin: 20px 0 12px;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.05;
}

.talk-route p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.language-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.language-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 190px;
  padding: 30px;
  gap: 24px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 24px;
  background: rgb(255 255 255 / 6%);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.language-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.language-code {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-size: 25px;
  font-weight: 1000;
}

.language-card--en .language-code { background: var(--cyan); }
.language-card h3 { margin: 0; font-size: clamp(23px, 2vw, 32px); }
.language-card p { margin: 9px 0 0; color: var(--muted); }
.language-card > b { color: var(--yellow); font-size: 32px; }

.experiments-preview {
  width: 100%;
  max-width: none;
  padding-right: max(21px, calc((100% - 1240px) / 2));
  padding-left: max(21px, calc((100% - 1240px) / 2));
  background: rgb(0 0 0 / 12%);
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 18px;
  margin-top: 46px;
}

.experiment-card {
  display: flex;
  min-width: 0;
  min-height: 280px;
  padding: 26px;
  flex-direction: column;
  border-top: 6px solid var(--cyan);
  border-right: 1px solid rgb(255 255 255 / 8%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  border-left: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: rgb(255 255 255 / 6%);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.experiment-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  background: rgb(255 255 255 / 10%);
}

.experiment-card:nth-child(2) { border-top-color: var(--coral); }
.experiment-card:nth-child(3) { border-top-color: var(--yellow); }
.experiment-card:nth-child(4) { border-top-color: var(--cream); }
.experiment-card:nth-child(5) { border-top-color: #b59cff; }
.experiment-number { color: var(--yellow); font-weight: 1000; }
.experiment-grid h3 { margin: 24px 0 15px; font-size: 24px; }
.experiment-grid p { margin: 0; color: var(--muted); line-height: 1.45; }

.experiment-card strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--cyan);
  font-size: 14px;
}

.privacy-note {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.about-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: end;
}

.about-section blockquote {
  margin: 0;
  padding: 30px;
  border-left: 6px solid var(--yellow);
  border-radius: 0 18px 18px 0;
  background: rgb(255 198 75 / 8%);
  color: var(--cream);
  font-size: clamp(21px, 2vw, 31px);
  line-height: 1.35;
}

.site-footer {
  display: flex;
  padding: 30px clamp(22px, 5vw, 80px);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a { color: var(--cyan); }

@media (max-width: 900px) {
  .site-brand b { display: none; }
  .landing-hero { min-height: auto; padding-top: 120px; }
  .landing-copy h1 { font-size: clamp(58px, 16vw, 94px); }
  .landing-meta { flex-direction: column; gap: 3px; }
  .talk-routes, .language-cards, .about-section { grid-template-columns: 1fr; }
  .site-section { padding: 72px 0; }
  .experiment-card { min-height: 260px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 560px) {
  .site-nav { padding-right: 16px; padding-left: 16px; }
  .site-brand { gap: 7px; }
  .site-brand span { font-size: 13px; }
  .landing-hero { padding-right: 21px; padding-left: 21px; }
  .landing-copy h1 { font-size: clamp(48px, 15vw, 76px); }
  .landing-meta { width: 100%; }
  .primary-action, .secondary-action { width: 100%; }
  .language-card {
    grid-template-columns: auto 1fr;
    padding: 22px;
    gap: 18px;
  }
  .language-card > b { display: none; }
  .language-code { width: 58px; height: 58px; font-size: 20px; }
  .talk-route, .experiment-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
