:root {
  --ink: #17233b;
  --paper: #f3f1e9;
  --blue: #2457d6;
  --line: rgba(23, 35, 59, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 92px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.brandMark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; font: 800 21px/1 Georgia, serif; }
.schoolTag { color: #6d7481; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.hero { min-height: 560px; padding: clamp(54px, 7vw, 88px) clamp(24px, 10vw, 150px) 58px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.eyebrow, .sectionHeading > p { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .22em; }
.eyebrow span { width: 35px; height: 2px; background: var(--blue); }
h1 { max-width: 910px; margin: 0; font-size: clamp(58px, 8.5vw, 128px); line-height: .8; letter-spacing: -.075em; font-weight: 800; }
h1 em { color: var(--blue); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.intro { max-width: 520px; margin: 28px 0 0; color: #586174; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.38; }
.scrollHint { display: inline-flex; align-items: center; gap: 11px; margin-top: 34px; text-decoration: none; text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.scrollHint span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; }
.codeDecoration { position: absolute; right: 4%; top: 76px; width: 290px; height: 300px; color: rgba(36, 87, 214, .12); font: 700 30px/1.1 'Courier New', monospace; transform: rotate(-5deg); pointer-events: none; }
.codeLine { position: absolute; }
.codeLine.one { top: 0; right: 0; }
.codeLine.two { top: 135px; left: 0; }
.codeLine.three { bottom: 0; right: 12px; }

.classSection { padding: clamp(54px, 7vw, 90px) clamp(24px, 6vw, 92px); }
.sectionHeading { display: grid; grid-template-columns: 1fr 2fr; align-items: start; margin-bottom: 34px; }
.sectionHeading h2 { margin: 0; font-size: clamp(40px, 4.5vw, 64px); line-height: .9; letter-spacing: -.055em; }
.classGrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.classCard { min-height: 390px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .25s ease, color .25s ease, background .25s ease; }
.classCard::after { content: ''; position: absolute; inset: auto -60px -110px auto; width: 260px; height: 260px; border: 1px solid currentColor; border-radius: 50%; opacity: .14; transform: scale(.7); transition: transform .35s ease; }
.classCard:hover, .classCard:focus-visible { z-index: 2; color: white; transform: translateY(-8px); outline: none; }
.classCard:hover::after, .classCard:focus-visible::after { transform: scale(1.25); }
.classCard.orange:hover, .classCard.orange:focus-visible { background: #ee6b2f; }
.classCard.blue:hover, .classCard.blue:focus-visible { background: #2457d6; }
.classCard.violet:hover, .classCard.violet:focus-visible { background: #7751bd; }
.classCard.green:hover, .classCard.green:focus-visible { background: #328267; }
.classCard.teal:hover, .classCard.teal:focus-visible { background: #147d92; }
.classCard.yellow:hover, .classCard.yellow:focus-visible { background: #d99d20; }
.cardTop { display: flex; justify-content: space-between; align-items: flex-start; }
.number { font: 400 clamp(66px, 7vw, 100px)/.72 Georgia, serif; letter-spacing: -.07em; }
.open { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 21px; transition: transform .25s ease; }
.classCard:hover .open { transform: rotate(45deg); }
.kicker { margin: 0 0 6px; font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; opacity: .7; }
.classCard h3 { margin: 0 0 11px; font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.description { max-width: 340px; margin: 0 0 18px; font-size: 14px; line-height: 1.38; opacity: .74; }
.topics { display: flex; flex-wrap: wrap; gap: 7px; }
.topics span { padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 700; opacity: .7; }

footer { display: flex; justify-content: space-between; align-items: flex-end; padding: 34px clamp(24px, 6vw, 92px); color: white; background: var(--ink); }
footer div { display: flex; flex-direction: column; gap: 7px; }
footer strong { font-size: 18px; }
footer span, footer p { margin: 0; color: #aeb6c5; font-size: 12px; }

@media (max-width: 800px) {
  .schoolTag { display: none; }
  .hero { min-height: 500px; }
  .codeDecoration { right: -120px; opacity: .55; }
  .sectionHeading { grid-template-columns: 1fr; gap: 18px; }
  .classGrid { grid-template-columns: 1fr; }
  .classCard { min-height: 320px; }
  footer { align-items: flex-start; gap: 30px; flex-direction: column; }
}

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