:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #edf4eb;
  background: #111d21;
  --ink: #edf4eb;
  --muted: #aebeb9;
  --line: #3a4b4d;
  --panel: #182629;
  --lime: #d2f492;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
#page-title:focus, main:focus { outline: none; }
.shell { width: min(100% - 96px, 1344px); margin-inline: auto; }
.skip {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: #17210e;
  background: var(--lime);
}
.skip:focus { transform: none; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 700; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; transform: rotate(-12deg); }
.brand-mark i { width: 7px; height: 7px; border: 1px solid var(--lime); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(4) { background: var(--lime); }
.subject-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 35px); }
.subject-nav a { color: var(--muted); font-size: .875rem; transition: color 150ms ease; }
.subject-nav a:hover, .subject-nav a[aria-current] { color: var(--lime); }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  min-height: 355px;
  align-items: center;
  margin-block: 30px 41px;
  border: 1px solid var(--line);
  border-radius: 16px;
  isolation: isolate;
  background: radial-gradient(ellipse at 80% 48%, #263b32, #17282a 48%, #172629 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .46;
  background-image: linear-gradient(90deg, #b5ebe41a 1px, transparent 1px), linear-gradient(#b5ebe41a 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to right, transparent 29%, #000 81%);
  pointer-events: none;
}
.hero-copy { z-index: 1; padding: 52px 0 57px clamp(32px, 5vw, 80px); }
.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 7.35rem);
  letter-spacing: -.078em;
  line-height: .98;
  font-weight: 730;
  animation: come-in 540ms ease-out both;
}
.hero h1 span { color: var(--lime); }
.hero p { max-width: 390px; margin: 27px 0 0; color: #c4d0ca; font-size: 1.05rem; line-height: 1.55; animation: come-in 500ms 80ms ease-out both; }
.hero-diagram { position: relative; width: min(100%, 395px); height: 285px; margin-inline: auto; animation: diagram-in 900ms ease both; }
.axis, .orbit, .orbit-point, .square { position: absolute; display: block; }
.axis-h { inset: 50% 4% auto; border-top: 1px dashed #c0e6af70; }
.axis-v { inset: 3% auto 3% 50%; border-left: 1px dashed #c0e6af70; }
.orbit {
  top: 50%;
  left: 50%;
  width: 79%;
  height: 49%;
  border: 1px solid #d3f29d8c;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
}
.orbit-middle { width: 70%; height: 51%; border-color: #bad99c; transform: translate(-50%, -50%) rotate(34deg); }
.orbit-inner { width: 57%; height: 70%; border-color: #a8d6c070; transform: translate(-50%, -50%) rotate(5deg); }
.orbit-point { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 17px #d6ff91a0; }
.point-a { top: 31%; left: 78%; }
.point-b { top: 73%; left: 75%; }
.point-c { top: 67%; left: 21%; background: #cde4dc; }
.square { width: 9px; height: 9px; border: 1px solid #c4e0bf88; }
.square-a { top: 14%; left: 15%; }
.square-b { top: 80%; left: 87%; }
.square-c { top: 44%; left: 48%; width: 19px; height: 19px; border-color: #d3f29d; transform: rotate(45deg); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { font-size: 1.7rem; margin: 0; letter-spacing: -.035em; }
.section-heading span { color: var(--muted); font-size: .875rem; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.course-card {
  position: relative;
  min-height: 265px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: transform 210ms ease, border-color 210ms ease;
  animation: come-in 430ms ease-out both;
}
.course-card:nth-child(2) { animation-delay: 65ms; }
.course-card:nth-child(3) { animation-delay: 130ms; }
.course-card:hover, .course-card:focus-within { border-color: var(--tint); transform: translateY(-4px); }
.course-card.chemistry { --tint: #d2f492; --shade: #253c2c; }
.course-card.thermodynamics { --tint: #f9bd87; --shade: #402d26; }
.course-card.economics { --tint: #aea9f8; --shade: #302d47; }
.card-art {
  position: relative;
  height: 102px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--shade);
  background-image: linear-gradient(90deg, #ffffff10 1px, transparent 1px), linear-gradient(#ffffff10 1px, transparent 1px);
  background-size: 17px 17px;
}
.card-art i, .card-art b { position: absolute; display: block; transition: transform 300ms ease; }
.art-chemistry i { top: 28%; left: 51%; width: 89px; height: 46px; border: 1px solid var(--tint); border-radius: 50%; transform: translateX(-50%) rotate(-24deg); }
.art-chemistry i:nth-child(2) { transform: translateX(-50%) rotate(34deg); }
.art-chemistry i:nth-child(3) { transform: translateX(-50%) rotate(90deg); }
.art-chemistry b { inset: 47% auto auto 50%; width: 7px; height: 7px; border-radius: 100%; background: var(--tint); transform: translateX(-50%); }
.course-card:hover .art-chemistry i:nth-child(2) { transform: translateX(-50%) rotate(50deg); }
.art-thermal i { top: 20%; left: 40%; width: 51px; height: 64px; border: 1px solid var(--tint); border-radius: 45% 45% 35% 35%; transform: skew(-12deg); }
.art-thermal i:nth-child(2) { left: 47%; height: 55px; top: 28%; opacity: .7; }
.art-thermal i:nth-child(3) { left: 54%; height: 47px; top: 34%; opacity: .45; }
.art-thermal b { inset: 26% auto auto 45%; width: 11px; height: 11px; border-radius: 100%; background: var(--tint); }
.course-card:hover .art-thermal i:nth-child(3) { transform: skew(-15deg) translateX(6px); }
.art-economics i { bottom: 17%; left: 40%; width: 15px; height: 29px; border: 1px solid var(--tint); background: #aea9f830; }
.art-economics i:nth-child(2) { left: 47%; height: 43px; }
.art-economics i:nth-child(3) { left: 54%; height: 58px; }
.art-economics b { bottom: 17%; left: 61%; width: 15px; height: 72px; border: 1px solid var(--tint); background: #aea9f860; }
.course-card:hover .art-economics b { transform: scaleY(1.14); transform-origin: bottom; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 17px 20px 20px; }
.card-copy h3 { margin: 0; font-size: clamp(1.07rem, 1.7vw, 1.35rem); line-height: 1.18; letter-spacing: -.022em; }
.card-copy a::after { content: ""; position: absolute; inset: 0; }
.card-copy h3 a:focus-visible { outline: none; }
.course-card:has(h3 a:focus-visible) { outline: 2px solid var(--tint); outline-offset: 3px; }
.card-copy p { margin: 10px 0 15px; color: var(--muted); font-size: .9rem; line-height: 1.43; }
.card-action { margin-top: auto; color: var(--tint); font-size: .875rem; font-weight: 650; }
.footer { margin-top: 42px; padding: 17px 0 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@keyframes come-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes diagram-in { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }

@media (max-width: 850px) {
  .shell { width: calc(100% - 42px); }
  .hero { min-height: 300px; grid-template-columns: 1.4fr 1fr; }
  .hero-diagram { height: 240px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { flex-wrap: wrap; gap: 13px; justify-content: space-between; min-height: 60px; padding-block: 12px; }
  .brand { font-size: .94rem; gap: 7px; }
  .subject-nav { gap: 11px; }
  .subject-nav a { font-size: .875rem; }
  .hero { min-height: 275px; grid-template-columns: 1fr; margin-block: 15px 29px; }
  .hero-copy { padding: 33px 18px 31px; }
  .hero h1 { font-size: clamp(2.7rem, 11.4vw, 4.6rem); }
  .hero-diagram { position: absolute; inset: 0 -24px 0 auto; width: 53%; height: 100%; opacity: .36; animation: none; }
  .hero p { max-width: 250px; margin-top: 19px; }
  .course-grid { grid-template-columns: 1fr; gap: 11px; }
  .course-card { min-height: 0; flex-direction: row; }
  .card-art { flex: 0 0 26%; min-width: 81px; height: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .art-chemistry i { top: 35%; width: 61px; height: 26px; }
  .art-thermal i { width: 32px; height: 47px; }
  .art-thermal i:nth-child(2) { height: 40px; }
  .art-thermal i:nth-child(3) { height: 33px; }
  .art-economics i, .art-economics b { bottom: 25%; width: 9px; }
  .art-economics i:nth-child(2) { left: 49%; }
  .art-economics i:nth-child(3) { left: 58%; }
  .art-economics b { left: 67%; }
  .card-copy { padding: 13px 13px 14px; }
  .card-copy p { margin: 8px 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

