:root {
  --ink: #15151b;
  --cream: #f5f2e9;
  --paper: #fffdf7;
  --coral: #ff6b51;
  --purple: #7357ff;
  --yellow: #ffd93d;
  --mint: #9ee8ce;
  --line: rgba(21, 21, 27, 0.14);
  --shadow: 0 18px 55px rgba(26, 24, 48, 0.12);
}
.scroll-progress {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--coral),
    var(--yellow),
    var(--purple)
  );
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.cursor-glow {
  position: fixed;
  z-index: 0;
  left: -170px;
  top: -170px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 217, 61, 0.18),
    rgba(115, 87, 255, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  will-change: transform;
}
.site-header,
.hero,
main,
footer {
  position: relative;
  z-index: 1;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Manrope, Arial, sans-serif;
  overflow-x: hidden;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.section-wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
.page-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.glow-one {
  width: 420px;
  height: 420px;
  right: -180px;
  top: 80px;
  background: rgba(255, 107, 81, 0.14);
}
.glow-two {
  width: 300px;
  height: 300px;
  left: -180px;
  top: 600px;
  background: rgba(115, 87, 255, 0.1);
}
.site-header {
  width: min(1240px, calc(100% - 48px));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk";
  font-size: 20px;
  font-weight: 700;
}
.brand > span:last-child > span {
  color: var(--coral);
}
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px 12px 12px 3px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 15px;
  letter-spacing: -2px;
  transform: rotate(-3deg);
}
.brand-mark span {
  color: var(--yellow);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
  font-weight: 700;
}
.main-nav > a:not(.nav-cta) {
  position: relative;
}
.main-nav > a:not(.nav-cta):after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: 0.25s;
}
.main-nav > a:hover:after {
  width: 100%;
}
.nav-cta {
  padding: 12px 19px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: 0.2s;
}
.nav-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin: 5px;
}
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  padding-block: 55px 90px;
  position: relative;
}
.eyebrow,
.overline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span {
  width: 28px;
  height: 8px;
  background: var(--coral);
  border-radius: 20px;
  transform: rotate(-4deg);
}
h1,
h2 {
  font-family: "Space Grotesk";
  letter-spacing: -3.5px;
  line-height: 0.98;
  margin: 22px 0;
}
h1 {
  font-size: clamp(56px, 6.5vw, 88px);
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--coral);
  position: relative;
}
h1 em:after {
  content: "";
  position: absolute;
  height: 7px;
  background: var(--yellow);
  bottom: 1px;
  left: 3px;
  right: 0;
  z-index: -1;
  transform: rotate(-2deg);
  border-radius: 50%;
}
.hero-copy > p {
  font-size: 17px;
  line-height: 1.75;
  max-width: 550px;
  color: #5e5d64;
}
.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 100px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s;
}
.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--coral);
}
.button.primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--coral);
}
.button.secondary {
  border: 1.5px solid var(--ink);
}
.button.secondary:hover {
  background: white;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}
.student-faces {
  display: flex;
}
.student-faces span {
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
}
.student-faces span:first-child {
  margin-left: 0;
  background: var(--coral);
}
.student-faces span:nth-child(2) {
  background: var(--purple);
  color: white;
}
.student-faces span:nth-child(3) {
  background: var(--yellow);
}
.hero-proof p {
  font-size: 12px;
  line-height: 1.45;
  color: #666;
  margin: 0;
}
.hero-proof strong {
  color: var(--ink);
}
.hero-visual {
  height: 530px;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-visual:before {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  background: var(--yellow);
  border-radius: 50%;
  transform: translate(30px, 5px);
}
.main-card {
  position: relative;
  width: 330px;
  height: 430px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  padding: 27px;
  transform: rotate(5deg);
  box-shadow: 12px 14px 0 var(--ink);
  z-index: 2;
  overflow: hidden;
}
.main-card:after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 27px solid var(--purple);
  border-radius: 50%;
  right: -75px;
  bottom: -60px;
}
.mini-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-nav span:not(.mini-logo) {
  height: 3px;
  width: 34px;
  background: #ddd;
}
.mini-logo {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}
.mini-label {
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-top: 60px;
}
.main-card h3 {
  font: 700 48px/1 "Space Grotesk";
  letter-spacing: -3px;
  margin: 10px 0 25px;
}
.main-card h3 span {
  color: var(--purple);
}
.mini-search {
  border: 1.5px solid var(--ink);
  border-radius: 50px;
  padding: 12px 14px;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
}
.mini-search b {
  width: 20px;
  height: 20px;
  background: var(--coral);
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: -5px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 20px;
}
.mini-grid i {
  height: 58px;
  border-radius: 8px;
  background: var(--coral);
}
.mini-grid i:nth-child(2) {
  background: var(--purple);
}
.mini-grid i:nth-child(3) {
  background: var(--yellow);
}
.floating-chip {
  position: absolute;
  z-index: 4;
  background: white;
  border: 1.5px solid var(--ink);
  padding: 13px 18px;
  box-shadow: 5px 5px 0 var(--ink);
  display: flex;
  flex-direction: column;
  transform: rotate(-5deg);
}
.floating-chip b {
  font: 700 16px "Space Grotesk";
}
.floating-chip span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}
.chip-one {
  left: 12px;
  top: 105px;
}
.chip-two {
  right: -8px;
  bottom: 85px;
  transform: rotate(7deg);
  background: var(--mint);
}
.floating-icon {
  position: absolute;
  z-index: 4;
  right: 34px;
  top: 65px;
  width: 57px;
  height: 57px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  transform: rotate(10deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.orbit {
  position: absolute;
  border: 2px dashed rgba(21, 21, 27, 0.25);
  border-radius: 50%;
}
.orbit-one {
  width: 520px;
  height: 250px;
  transform: rotate(-20deg);
}
.orbit-two {
  width: 300px;
  height: 515px;
  transform: rotate(55deg);
}
.ticker {
  background: var(--ink);
  color: white;
  overflow: hidden;
  transform: rotate(-1deg);
  width: 102%;
  margin-left: -1%;
  padding: 15px 0;
}
.ticker-track {
  width: max-content;
  display: flex;
  gap: 28px;
  align-items: center;
  animation: ticker 28s linear infinite;
  font: 700 14px "Space Grotesk";
  letter-spacing: 2px;
}
.ticker b {
  color: var(--yellow);
  font-size: 21px;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
.subjects {
  padding-block: 130px;
}
.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr 0.7fr;
  gap: 35px;
  align-items: end;
  margin-bottom: 55px;
}
.section-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 700 12px "Space Grotesk";
  box-shadow: 3px 3px 0 var(--ink);
}
.overline {
  margin: 20px 0 0;
  color: #777;
}
.section-heading h2,
.resource-heading h2,
.study h2 {
  font-size: clamp(43px, 5vw, 67px);
  margin: 0;
}
.section-heading > p {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subject-card {
  border: 1.5px solid var(--ink);
  min-height: 310px;
  padding: 28px;
  text-align: left;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 7px 7px 0 var(--ink);
  transition: 0.25s;
}
.subject-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 10px 15px 0 var(--ink);
}
.subject-card.coral {
  background: var(--coral);
}
.subject-card.violet {
  background: var(--purple);
  color: white;
}
.subject-card.yellow {
  background: var(--yellow);
}
.subject-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 700 21px "Space Grotesk";
}
.subject-card small {
  position: absolute;
  top: 35px;
  right: 30px;
  font-weight: 800;
  letter-spacing: 2px;
}
.subject-card h3 {
  font: 700 30px/1.05 "Space Grotesk";
  letter-spacing: -1.5px;
  position: absolute;
  bottom: 28px;
  margin: 0;
}
.card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 25px;
}
.subject-card.mint {
  background: var(--mint);
}
.subject-card.sky {
  background: #75c9f1;
}
.subject-card.pink {
  background: #ff5c8a;
  color: white;
}
.subject-card:before {
  content: "";
  position: absolute;
  width: 155px;
  height: 155px;
  right: -75px;
  top: -75px;
  border: 24px solid currentColor;
  border-radius: 50%;
  opacity: 0.1;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.subject-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.3) 48%,
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform 0.7s;
}
.subject-card:hover:before {
  transform: scale(1.25) rotate(25deg);
}
.subject-card:hover:after {
  transform: translateX(130%);
}
.subject-icon,
.card-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.35s;
}
.subject-card:hover .subject-icon {
  transform: rotate(10deg) scale(1.08);
}
.subject-card:hover .card-arrow {
  transform: translate(4px, -4px);
}
.resource-section {
  background: var(--ink);
  color: white;
  padding: 115px 0 130px;
}
.resource-heading {
  display: grid;
  grid-template-columns: 0.65fr 2.05fr;
  margin-bottom: 50px;
}
.section-number.light {
  background: white;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--coral);
}
.resource-toolbar {
  background: #222229;
  border: 1px solid #393940;
  padding: 20px;
  border-radius: 18px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 17px;
}
.search-box span {
  font-size: 22px;
  transform: rotate(-20deg);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 17px 0;
  background: transparent;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  color: #aaa;
  border: 1px solid #494950;
  border-radius: 100px;
  padding: 9px 15px;
  font-size: 12px;
  cursor: pointer;
}
.filter.active,
.filter:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.select-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.select-row select {
  background: #2e2e36;
  color: white;
  border: 1px solid #494950;
  padding: 10px 32px 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
}
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 17px;
  font-size: 12px;
  color: #aaa;
}
.results-meta p {
  margin: 0;
}
.results-meta span {
  color: white;
  font-weight: 800;
}
.results-meta button {
  color: var(--yellow);
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 12px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.resource-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
  animation: cardIn 0.4s both;
  animation-delay: var(--delay);
  display: flex;
  flex-direction: column;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
}
.resource-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resource-type {
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.resource-type.paper {
  background: #ffd9d2;
}
.resource-type.book {
  background: #dcd6ff;
}
.resource-type.guide {
  background: #d4f2e8;
}
.resource-type.model {
  background: #fff0a7;
}
.resource-type.degree {
  background: #f8cbf5;
}
.subject-code {
  font: 700 11px "Space Grotesk";
  color: #777;
}
.file-art {
  height: 120px;
  margin: 18px 0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  padding: 17px;
}
.file-art.paper {
  background: var(--coral);
}
.file-art.book {
  background: var(--purple);
  color: white;
}
.file-art.guide {
  background: var(--mint);
}
.file-art.model {
  background: var(--yellow);
}
.file-art.degree {
  background: #d05ce3;
  color: white;
}
.file-art span {
  font-size: 11px;
  font-weight: 800;
}
.file-art b {
  position: absolute;
  bottom: 10px;
  left: 16px;
  font: 700 38px "Space Grotesk";
  letter-spacing: -2px;
}
.file-art i {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 18px solid currentColor;
  opacity: 0.15;
  border-radius: 50%;
  right: -23px;
  top: 11px;
}
.resource-body > p {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #777;
  font-weight: 800;
}
.resource-body h3 {
  font: 700 17px/1.25 "Space Grotesk";
  min-height: 43px;
  margin: 7px 0 14px;
}
.resource-meta {
  display: flex;
  gap: 7px;
}
.resource-meta span {
  font-size: 9px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 4px 6px;
  color: #777;
}
.drive-link {
  border-top: 1px solid #e4e1da;
  margin: 18px -20px -20px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  transition: 0.2s;
}
.drive-link:hover {
  background: var(--yellow);
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
}
.empty-state span {
  font-size: 40px;
}
.empty-state h3 {
  font: 700 24px "Space Grotesk";
}
.empty-state p {
  color: #999;
}
.study {
  padding-block: 130px;
}
.study-panel {
  background: white;
  border: 1.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 60px;
  gap: 80px;
}
.study-copy .overline {
  margin-bottom: 20px;
}
.study-copy > p:last-child {
  color: #6c6b71;
  line-height: 1.7;
  font-size: 14px;
}
.steps article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.steps article:last-child {
  border: 0;
}
.steps article > span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font: 700 11px "Space Grotesk";
}
.steps article:nth-child(2) > span {
  background: var(--purple);
  color: white;
}
.steps article:nth-child(3) > span {
  background: var(--coral);
}
.steps h3 {
  font: 700 20px "Space Grotesk";
  margin: 0 0 7px;
}
.steps p {
  font-size: 12px;
  line-height: 1.6;
  color: #777;
  margin: 0;
}
.quote-band {
  background: var(--yellow);
  padding: 42px 20px;
  text-align: center;
  border-block: 1.5px solid var(--ink);
}
.quote-band p {
  font: 700 clamp(30px, 5vw, 64px) "Space Grotesk";
  letter-spacing: -3px;
  margin: 0;
}
.quote-band em {
  color: var(--purple);
  font-style: normal;
}
footer {
  background: var(--ink);
  color: white;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr 1fr;
  gap: 45px;
  padding-block: 75px;
}
.footer-brand {
  margin-bottom: 20px;
}
.footer-brand .brand-mark {
  background: white;
  color: var(--ink);
}
.footer-top > div:first-child p {
  font-size: 12px;
  color: #8f8f98;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links h4,
.footer-cta p {
  font: 700 12px "Space Grotesk";
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  margin: 0 0 8px;
}
.footer-links a {
  font-size: 12px;
  color: #aaa;
}
.footer-links a:hover {
  color: white;
}
.footer-cta .button {
  margin-top: 10px;
  background: white;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}
.footer-bottom {
  border-top: 1px solid #303038;
  padding-block: 23px;
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.subject-card:nth-child(2) {
  transition-delay: 0.1s;
}
.subject-card:nth-child(3) {
  transition-delay: 0.2s;
}
.subject-card:nth-child(4) {
  transition-delay: 0.1s;
}
.subject-card:nth-child(5) {
  transition-delay: 0.2s;
}

/* Motion and interactive polish */
body.scrolled .site-header {
  background: rgba(245, 242, 233, 0.82);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(21, 21, 27, 0.08);
}
.site-header {
  position: sticky;
  top: 0;
  transition: background 0.3s, border-color 0.3s;
}
.brand-mark {
  animation: brandBob 4s ease-in-out infinite;
}
.hero-visual:before {
  animation: blobPulse 6s ease-in-out infinite;
}
.main-card {
  animation: cardFloat 5s ease-in-out infinite;
}
.chip-one {
  animation: chipFloatOne 4.2s ease-in-out infinite;
}
.chip-two {
  animation: chipFloatTwo 4.8s ease-in-out infinite;
}
.floating-icon {
  animation: iconBounce 3.6s ease-in-out infinite;
}
.orbit-one {
  animation: orbitSpin 22s linear infinite;
}
.orbit-two {
  animation: orbitSpinReverse 28s linear infinite;
}
.mini-grid i {
  animation: miniPulse 2.4s ease-in-out infinite;
}
.mini-grid i:nth-child(2) {
  animation-delay: 0.25s;
}
.mini-grid i:nth-child(3) {
  animation-delay: 0.5s;
}
.resource-toolbar {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}
.resource-toolbar:before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(115, 87, 255, 0.16),
    rgba(255, 217, 61, 0.12),
    transparent 75%
  );
  transform: translateX(-100%);
  animation: toolbarShine 8s ease-in-out infinite;
  pointer-events: none;
}
.resource-toolbar > * {
  position: relative;
}
.resource-card {
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s,
    border-color 0.35s;
}
.resource-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
  border-color: var(--yellow);
}
.resource-card:hover .file-art i {
  transform: scale(1.35) rotate(25deg);
}
.resource-card:hover .file-art b {
  transform: translateX(5px);
}
.file-art i,
.file-art b {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drive-link span {
  transition: transform 0.25s;
}
.drive-link:hover span {
  transform: translate(4px, -4px);
}
.steps article {
  transition: transform 0.3s, background 0.3s, padding 0.3s;
}
.steps article:hover {
  transform: translateX(8px);
  background: linear-gradient(90deg, rgba(255, 217, 61, 0.12), transparent);
  padding-inline: 12px;
}
.steps article > span {
  transition: transform 0.3s, box-shadow 0.3s;
}
.steps article:hover > span {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 3px 3px 0 var(--ink);
}
.quote-band {
  overflow: hidden;
}
.quote-band p {
  animation: quoteBreath 5s ease-in-out infinite;
}
@keyframes brandBob {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: translateY(-3px) rotate(3deg);
  }
}
@keyframes blobPulse {
  0%,
  100% {
    border-radius: 50%;
    transform: translate(30px, 5px) scale(1);
  }
  50% {
    border-radius: 43% 57% 55% 45%;
    transform: translate(30px, 5px) scale(1.06);
  }
}
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}
@keyframes chipFloatOne {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}
@keyframes chipFloatTwo {
  0%,
  100% {
    transform: translateY(0) rotate(7deg);
  }
  50% {
    transform: translateY(9px) rotate(4deg);
  }
}
@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0) rotate(10deg);
  }
  50% {
    transform: translateY(-12px) rotate(-8deg);
  }
}
@keyframes orbitSpin {
  to {
    transform: rotate(340deg);
  }
}
@keyframes orbitSpinReverse {
  to {
    transform: rotate(-305deg);
  }
}
@keyframes miniPulse {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.82);
  }
}
@keyframes toolbarShine {
  0%,
  65%,
  100% {
    transform: translateX(-100%);
  }
  82% {
    transform: translateX(100%);
  }
}
@keyframes quoteBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@media (hover: hover) and (pointer: fine) {
  .subject-card:hover {
    transform: perspective(700px) rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg)) translateY(-8px);
    box-shadow: 10px 15px 0 var(--ink);
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }
  .hero-copy {
    text-align: center;
  }
  .eyebrow,
  .hero-actions,
  .hero-proof {
    justify-content: center;
  }
  .hero-copy > p {
    margin-inline: auto;
  }
  .hero-visual {
    margin-top: 25px;
  }
  .section-heading {
    grid-template-columns: 1fr 2fr;
  }
  .section-heading > p {
    grid-column: 2;
  }
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .study-panel {
    gap: 35px;
    padding: 45px 35px;
  }
  .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .footer-cta {
    grid-column: 1/-1;
  }
  .subject-card h3 {
    font-size: 25px;
  }
}
@media (max-width: 680px) {
  .section-wrap,
  .site-header {
    width: min(100% - 30px, 1160px);
  }
  .site-header {
    height: 72px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .menu-toggle {
    display: block;
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
  }
  .menu-toggle.open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .menu-toggle span {
    transition: transform 0.2s, opacity 0.2s;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 13px;
    min-height: 44px;
  }
  .nav-cta {
    text-align: center;
  }
  .hero {
    display: block;
    padding-block: 45px 55px;
    min-height: 0;
  }
  .hero-copy {
    text-align: left;
  }
  .eyebrow,
  .hero-actions,
  .hero-proof {
    justify-content: flex-start;
  }
  .eyebrow {
    line-height: 1.5;
  }
  .hero-copy > p {
    margin-inline: 0;
    font-size: 15px;
    line-height: 1.65;
  }
  h1 {
    font-size: clamp(42px, 13vw, 58px);
    letter-spacing: -2.7px;
    overflow-wrap: anywhere;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .button {
    min-height: 50px;
  }
  .hero-proof {
    margin-top: 32px;
  }
  .hero-visual {
    height: 420px;
    width: 100%;
    margin: 35px 0 0;
    overflow: hidden;
  }
  .hero-visual:before {
    width: 310px;
    height: 310px;
    transform: translate(12px, 15px);
  }
  .main-card {
    width: min(280px, 76vw);
    height: 365px;
    padding: 22px;
    box-shadow: 8px 10px 0 var(--ink);
  }
  .main-card h3 {
    font-size: 40px;
  }
  .mini-label {
    margin-top: 45px;
  }
  .mini-grid i {
    height: 48px;
  }
  .orbit-one {
    width: 390px;
    height: 190px;
  }
  .orbit-two {
    width: 230px;
    height: 390px;
  }
  .floating-chip {
    padding: 10px 12px;
  }
  .floating-chip b {
    font-size: 13px;
  }
  .chip-one {
    left: 2px;
    top: 72px;
  }
  .chip-two {
    right: 4px;
    bottom: 55px;
  }
  .floating-icon {
    right: 12px;
    top: 32px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .ticker {
    padding: 12px 0;
  }
  .ticker-track {
    font-size: 12px;
    gap: 20px;
  }
  .subjects {
    padding-block: 80px;
  }
  .section-heading,
  .resource-heading {
    display: block;
  }
  .section-heading h2,
  .resource-heading h2 {
    margin-top: 28px;
  }
  .section-heading h2,
  .resource-heading h2,
  .study h2 {
    font-size: clamp(38px, 11vw, 52px);
    letter-spacing: -2.5px;
    overflow-wrap: anywhere;
  }
  .section-heading > p {
    margin-top: 22px;
  }
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .subject-card {
    min-height: 235px;
    padding: 24px;
  }
  .subject-card:hover {
    transform: none;
    box-shadow: 7px 7px 0 var(--ink);
  }
  .resource-section {
    padding-block: 80px;
  }
  .resource-heading {
    margin-bottom: 38px;
  }
  .resource-toolbar {
    padding: 14px;
    border-radius: 14px;
  }
  .search-box {
    padding-inline: 13px;
  }
  .search-box input {
    min-width: 0;
    font-size: 13px;
  }
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-row::-webkit-scrollbar {
    display: none;
  }
  .filter {
    white-space: nowrap;
    min-height: 40px;
  }
  .select-row {
    flex-direction: column;
  }
  .select-row select {
    width: 100%;
    min-height: 44px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-card {
    padding: 18px;
  }
  .drive-link {
    min-height: 50px;
    align-items: center;
    margin: 18px -18px -18px;
  }
  .study {
    padding-block: 80px;
  }
  .study-panel {
    grid-template-columns: 1fr;
    padding: 34px 24px;
    gap: 22px;
    box-shadow: 7px 7px 0 var(--ink);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    padding-block: 55px;
    gap: 35px 22px;
  }
  .footer-top > div:first-child,
  .footer-cta {
    grid-column: 1/-1;
  }
  .footer-cta .button {
    width: 100%;
  }
  .footer-bottom {
    gap: 15px;
  }
  .quote-band p {
    letter-spacing: -2px;
  }
}
@media (max-width: 430px) {
  .hero-visual {
    height: 385px;
  }
  .main-card {
    width: 250px;
    height: 335px;
    padding: 19px;
  }
  .main-card h3 {
    font-size: 35px;
  }
  .mini-label {
    margin-top: 36px;
  }
  .mini-grid i {
    height: 42px;
  }
  .hero-visual:before {
    width: 270px;
    height: 270px;
  }
  .chip-one {
    top: 62px;
  }
  .chip-two {
    bottom: 42px;
  }
  .floating-icon {
    top: 20px;
  }
  .subject-card h3 {
    font-size: 24px;
  }
  .results-meta {
    align-items: flex-start;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-top > div:first-child,
  .footer-cta {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 360px) {
  .section-wrap,
  .site-header {
    width: calc(100% - 24px);
  }
  h1 {
    font-size: 40px;
  }
  .hero-visual {
    height: 350px;
  }
  .main-card {
    width: 225px;
    height: 310px;
  }
  .main-card h3 {
    font-size: 31px;
  }
  .mini-label {
    margin-top: 28px;
  }
  .mini-grid {
    display: none;
  }
  .floating-chip span {
    display: none;
  }
  .chip-two {
    bottom: 36px;
  }
  .study-panel {
    padding: 28px 18px;
  }
  .steps article {
    grid-template-columns: 43px 1fr;
    gap: 13px;
  }
  .steps article > span {
    width: 42px;
    height: 42px;
  }
  .resource-toolbar {
    margin-inline: -2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Extra visual style pack */
body {
  background: radial-gradient(
      circle at 18% 14%,
      rgba(255, 217, 61, 0.22),
      transparent 26%
    ),
    radial-gradient(circle at 82% 8%, rgba(255, 107, 81, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%) 0 0/28px
      28px,
    var(--cream);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(21, 21, 27, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
  opacity: 0.45;
}
::selection {
  background: var(--yellow);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.hero-copy h1 {
  background: linear-gradient(
    120deg,
    var(--ink) 10%,
    #4531b7 48%,
    var(--coral) 84%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 14px 42px rgba(115, 87, 255, 0.08);
}
h1 em,
h2 em {
  background: linear-gradient(90deg, var(--coral), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow,
.overline {
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(21, 21, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 25px rgba(21, 21, 27, 0.05);
  backdrop-filter: blur(10px);
}
.resource-section .overline,
footer .overline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
.button {
  position: relative;
  overflow: hidden;
}
.button:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.32) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.6s;
}
.button:hover:before {
  transform: translateX(120%);
}
.button span,
.button {
  isolation: isolate;
}
.hero:after {
  content: "A/L";
  position: absolute;
  right: 44%;
  bottom: 24px;
  z-index: -1;
  font: 800 clamp(100px, 16vw, 220px) / 1 "Space Grotesk";
  letter-spacing: -12px;
  color: rgba(21, 21, 27, 0.035);
  transform: rotate(-8deg);
}
.main-card {
  background: linear-gradient(155deg, #fffdf7 0%, #fff7df 55%, #f0ebff 100%);
}
.main-card:before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(21, 21, 27, 0.18);
  border-radius: 15px;
  pointer-events: none;
}
.mini-search {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.subjects {
  position: relative;
}
.subjects:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  opacity: 0.12;
}
.subject-grid {
  perspective: 1000px;
}
.subject-card {
  isolation: isolate;
}
.subject-card h3,
.subject-card small {
  z-index: 1;
}
.subject-card h3 {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.08));
}
.subject-card:nth-child(even) {
  transform: translateY(18px);
}
.subject-card:nth-child(even):hover {
  transform: translateY(8px) rotate(1deg);
}
.resource-section {
  position: relative;
  background: radial-gradient(
      circle at 12% 0%,
      rgba(115, 87, 255, 0.24),
      transparent 28%
    ),
    radial-gradient(circle at 92% 18%, rgba(255, 107, 81, 0.2), transparent 24%),
    linear-gradient(180deg, #15151b, #101016);
}
.resource-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04) 25%,
      transparent 25%
    )
    0 0/34px 34px;
  opacity: 0.35;
  pointer-events: none;
}
.resource-section > .section-wrap {
  position: relative;
}
.resource-card {
  position: relative;
}
.resource-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 217, 61, 0.8),
    rgba(115, 87, 255, 0.55),
    rgba(255, 107, 81, 0.7)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.resource-card:hover:before {
  opacity: 1;
}
.resource-type {
  box-shadow: inset 0 -2px rgba(21, 21, 27, 0.12);
}
.subject-code {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f2efe7;
  color: var(--ink);
}
.file-art {
  box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.08);
}
.file-art:before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 44px;
  height: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 16px rgba(255, 255, 255, 0.25);
}
.study-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #fff9e8 52%, #f0ecff 100%);
}
.study-panel:before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border: 32px solid rgba(115, 87, 255, 0.08);
  border-radius: 50%;
}
.study-panel > * {
  position: relative;
}
.steps article {
  border-radius: 18px;
}
.quote-band {
  background: linear-gradient(90deg, var(--yellow), #ffe978, var(--mint));
  position: relative;
}
.quote-band:before,
.quote-band:after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 22px solid rgba(21, 21, 27, 0.08);
  border-radius: 50%;
  top: -70px;
}
.quote-band:before {
  left: 8%;
}
.quote-band:after {
  right: 10%;
  top: auto;
  bottom: -80px;
}
footer {
  background: linear-gradient(180deg, #15151b, #0b0b10);
}
.footer-links a {
  position: relative;
  width: max-content;
}
.footer-links a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.footer-links a:hover:after {
  transform: scaleX(1);
}
@media (max-width: 680px) {
  .hero-copy h1 {
    color: var(--ink);
    background: none;
  }
  .eyebrow,
  .overline {
    width: fit-content;
  }
  .hero:after {
    right: -8px;
    bottom: 385px;
    font-size: 92px;
    letter-spacing: -6px;
  }
  .subject-card:nth-child(even) {
    transform: none;
  }
  .subject-card:nth-child(even):hover {
    transform: none;
  }
  .cursor-glow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button:before,
  .subject-card:after {
    display: none;
  }
}

/* Subject material page */
.subject-page main {
  padding-bottom: 110px;
}
.subject-hero {
  padding-block: 70px 50px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  padding: 11px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.back-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.subject-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 42px;
  align-items: center;
}
.subject-hero h1 {
  font-size: clamp(52px, 7vw, 92px);
  max-width: 850px;
  background: linear-gradient(120deg, var(--ink), var(--purple), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subject-hero p:not(.overline) {
  max-width: 660px;
  color: #666;
  line-height: 1.75;
}
.subject-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.subject-stats span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.subject-stats b {
  font: 800 22px "Space Grotesk";
  color: var(--coral);
}
.subject-badge {
  height: 310px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--yellow), var(--mint));
  box-shadow: 12px 12px 0 var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardFloat 5s ease-in-out infinite;
}
.subject-badge:before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(21, 21, 27, 0.09);
  border-radius: 50%;
  right: -72px;
  top: -68px;
}
.subject-badge span {
  font: 800 clamp(64px, 9vw, 116px) / 1 "Space Grotesk";
  letter-spacing: -7px;
  position: relative;
}
.subject-badge p {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}
.subject-materials {
  padding-block: 20px 90px;
}
.subject-controls {
  background: #222229;
  border: 1px solid #393940;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 55px;
  box-shadow: 0 24px 70px rgba(21, 21, 27, 0.16);
}
.subject-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 26px;
}
.subject-section-title h2 {
  font-size: clamp(38px, 5vw, 64px);
  margin: 0;
}
@media (max-width: 900px) {
  .subject-hero-grid {
    grid-template-columns: 1fr;
  }
  .subject-badge {
    height: 240px;
  }
  .subject-section-title {
    display: block;
  }
  .subject-section-title h2 {
    margin-top: 20px;
  }
}
@media (max-width: 680px) {
  .subject-page main {
    padding-bottom: 60px;
  }
  .subject-hero {
    padding-block: 42px 30px;
  }
  .back-link {
    margin-bottom: 28px;
  }
  .subject-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    background: none;
    color: var(--ink);
  }
  .subject-stats {
    display: grid;
    grid-template-columns: 1fr;
  }
  .subject-stats span {
    justify-content: space-between;
  }
  .subject-badge {
    height: 190px;
    box-shadow: 7px 7px 0 var(--ink);
  }
  .subject-badge span {
    font-size: 64px;
    letter-spacing: -4px;
  }
  .subject-controls {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 40px;
  }
}
