/* Homepage art direction: royal academy, editorial type, and the supplied blue/gold/lavender palette. */
:root {
  --academy-blue: #087fc8;
  --academy-blue-deep: #07538e;
  --academy-violet: #6d5ce8;
  --academy-lavender: #a9a0fa;
  --academy-gold: #efbc54;
  --academy-cream: #fff8e4;
  --academy-paper: #f8f8f4;
  --academy-ink: #18222c;
  --academy-muted: #5c6973;
}

/* Learner-first additions on the existing home page. */
.home-learning-paths,.home-practice,.home-product-status{padding:clamp(4rem,7vw,6rem) 0;background:#f7f9fa;color:#18222c}
.home-practice{background:#edf5fa;border-block:1px solid #d9e2e7}
.home-product-status{background:#fff}
.home-section-heading{max-width:690px;margin-bottom:1.8rem}
.home-section-heading h2,.home-practice h2{margin:0;color:#18222c;font:750 clamp(2rem,3vw,3rem)/1.14 Roboto,'Segoe UI',Arial,sans-serif;letter-spacing:-.025em}
.home-section-heading p:last-child,.home-practice p:not(.eyebrow){max-width:62ch;margin:.65rem 0 0;color:#53616b;line-height:1.7}
.home-practice .sequence{margin-top:2rem}
.home-path-footer{margin-top:1.5rem}.home-path-footer a{font-weight:750;text-decoration:none}
.home-learning-paths .paper-card,.home-product-status .paper-card{box-shadow:0 9px 28px rgb(13 53 81 / 4%)}

body, button, input, select, textarea {
  font-family: "Roboto", Consolas, "Segoe UI", Arial, sans-serif !important;
}
body { background: var(--academy-paper) !important; color: var(--academy-ink) !important; }
header { background: rgb(248 248 244 / 94%) !important; }

/* Opening spread: large editorial promise paired with the live Three.js classroom. */
.academy-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.2rem, 8vw, 7.5rem) clamp(1.25rem, 6vw, 6rem) 0;
  background:
    radial-gradient(ellipse at 88% 8%, rgb(169 160 250 / 18%), transparent 27rem),
    linear-gradient(118deg, #fff9e8 0%, #fbfaf4 48%, #eef6fb 100%) !important;
  border-bottom: 1px solid #dce2e4;
}
.academy-hero::before {
  content: "H";
  position: absolute;
  z-index: -1;
  right: -2rem;
  top: -9rem;
  color: rgb(8 127 200 / 4%);
  font: 900 clamp(27rem, 50vw, 52rem)/1 Consolas, monospace;
  pointer-events: none;
}
.academy-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(420px, 1.07fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  width: min(1420px, 100%);
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}
.academy-hero-copy { position: relative; z-index: 2; max-width: 690px; }
.academy-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.75rem !important;
  color: var(--academy-blue-deep) !important;
  font-size: .73rem !important;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.academy-kicker-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #d9b256;
  border-radius: 9px;
  background: var(--academy-cream);
  box-shadow: 2px 2px 0 #f0799f;
  color: #17212a;
  font: 800 1rem Consolas, monospace;
  letter-spacing: 0;
}
.academy-kicker-rule { width: 2.2rem; height: 1px; background: #d8ad50; }
.academy-title {
  max-width: 760px;
  margin: 0 !important;
  color: #17212a !important;
  font: 750 clamp(3.7rem, 7.1vw, 7.2rem)/1.02 "Roboto", Consolas, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: -.025em !important;
}
body > section.academy-hero h1.academy-title {
  font-family: "Roboto", Consolas, "Segoe UI", Arial, sans-serif !important;
  font-weight: 750 !important;
  line-height: 1.02 !important;
}
.academy-title em { position: relative; color: var(--academy-blue-deep) !important; font-style: normal; text-decoration: none !important; }
.academy-title em::after { content: ""; position: absolute; right: 0; bottom: -.09em; left: 0; height: .065em; background: var(--academy-gold); }
.academy-intro {
  max-width: 510px !important;
  margin: 2rem 0 0 !important;
  color: #4d5a64 !important;
  font-size: clamp(1rem, 1.25vw, 1.18rem) !important;
  line-height: 1.8 !important;
}
.academy-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.academy-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: .85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .87rem;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.academy-action:hover { transform: translateY(-2px); }
.academy-action-primary { background: var(--academy-blue-deep); color: #fff !important; box-shadow: 3px 3px 0 var(--academy-violet); }
.academy-action-primary:hover { background: #063f6d; }
.academy-action-secondary { border-color: #cfd8dc; background: rgb(255 255 255 / 76%); color: #24313b !important; }
.academy-action-secondary:hover { border-color: var(--academy-blue); }
.academy-action i { font-size: .75rem; }
.academy-signature { display: flex; align-items: center; gap: .8rem; margin-top: 2.7rem; padding-top: 1.25rem; border-top: 1px solid #d8dfe1; }
.academy-signature-seal { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border: 1px solid #e0bb6d; border-radius: 50%; background: #ffedb4; box-shadow: 2px 2px 0 #f0799f; color: #17212a; font: 800 .8rem Consolas, monospace; }
.academy-signature strong, .academy-signature small { display: block; }
.academy-signature strong { color: var(--academy-ink); font-size: .85rem; }
.academy-signature small { margin-top: .15rem; color: var(--academy-muted); font-size: .72rem; }
.academy-visual-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 .8rem; color: var(--academy-blue-deep); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.academy-visual-index { color: #77728c; font: 700 .66rem "Segoe UI", sans-serif; letter-spacing: .1em; }
.academy-hero-visual { min-width: 0; position: relative; }
.academy-hero .hero-classroom { height: clamp(390px, 43vw, 610px); border: 1px solid #d8d9cf; border-radius: 4px 25px 4px 25px; background:#e5eff4 url('../assets/academy-lab-editorial.png') center/cover no-repeat; box-shadow: 14px 14px 0 rgb(239 188 84 / 28%), 0 24px 65px rgb(25 43 57 / 14%); }
.academy-hero .hero-classroom::before { inset: 12px; border: 1px solid rgb(255 255 255 / 76%); border-radius: 0 17px 0 17px; }
.academy-hero .classroom-frame { background: linear-gradient(180deg, rgb(18 37 55 / 3%), transparent 35%, transparent 73%, rgb(255 248 228 / 78%)); }
.academy-hero .classroom-caption { left: 30px; bottom: 26px; }
.academy-hero .classroom-caption strong { font-size: .9rem; }
.academy-hero .classroom-caption small { font-size: .73rem; }
.academy-hero .classroom-seal { width: 44px; height: 44px; border-radius: 50%; }
.academy-hero .classroom-badge { top: 30px; right: 30px; padding: 9px 13px; border-radius: 999px; }
.academy-hero .classroom-note { margin-top: 1.1rem !important; color: #43515b; font-size: .82rem !important; }
.academy-hero-footer { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 4rem); width: min(1420px, 100%); min-height: 76px; margin-inline: auto; border-top: 1px solid #d8dfe1; color: #45525c; font-size: .74rem; font-weight: 650; }
.academy-hero-footer span { display: flex; align-items: center; gap: .55rem; }
.academy-hero-footer b { color: var(--academy-violet); font: 700 .69rem Consolas, monospace; }
.academy-hero-footer a { display: grid; width: 2rem; height: 2rem; place-items: center; margin-left: auto; border: 1px solid #cdd8df; border-radius: 50%; color: var(--academy-blue-deep); text-decoration: none; }

/* Give each content area its own rhythm while preserving all page anchors and copy. */
#about, #pillars, #courses, #lessons, #roadmap, #faq, #contact { padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 3vw, 2rem) !important; }
#about { background: linear-gradient(112deg, #fff9e8 0%, #fbfaf4 55%, #f8eef2 100%) !important; }
#about > div, #pillars > div, #courses > div, #lessons > div, #roadmap > div, #contact > div { max-width: 1320px !important; }
#about .grid { gap: clamp(2.5rem, 7vw, 7rem) !important; }
#about h2 { max-width: 720px; font: 750 clamp(2rem, 3.4vw, 3.5rem)/1.12 "Roboto", Consolas, "Segoe UI", Arial, sans-serif !important; letter-spacing: -.035em !important; }
#about p { max-width: 68ch; font-size: .97rem; }
#about .relative.w-64 { border: 1px solid #d7dfe1 !important; background: #eef4f4 !important; box-shadow: 10px 10px 0 rgb(8 127 200 / 12%) !important; }
#about .relative.w-64 > div:first-child { background: var(--academy-blue) !important; }
#about .grid.grid-cols-1.sm\:grid-cols-2 > div { border-color: #d8dfe1 !important; background: #fff !important; box-shadow: 0 8px 24px rgb(31 48 60 / 5%); }

.academy-study-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: stretch;
  width: min(1320px, calc(100% - 3rem));
  min-height: 390px;
  margin: clamp(3.5rem, 7vw, 6.5rem) auto;
  overflow: hidden;
  border: 1px solid #d9dedc;
  border-radius: 5px 21px 5px 21px;
  background: #1b2e3c;
  box-shadow: 10px 10px 0 rgb(109 92 232 / 10%);
}
.academy-study-image { position: relative; min-height: 390px; overflow: hidden; background: #d8d3c6; }
.academy-study-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, rgb(27 46 60 / 28%)); pointer-events: none; }
.academy-study-image img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: 57% center; }
.academy-image-note { position: absolute; z-index: 1; bottom: 1rem; left: 1rem; padding: .4rem .65rem; border: 1px solid rgb(255 255 255 / 40%); border-radius: 3px; background: rgb(25 42 53 / 82%); color: #fff; font-size: .65rem; }
.academy-study-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 4vw, 4rem); color: #fff; }
.academy-study-mark { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; margin-bottom: 1.4rem; border: 1px solid #e8c879; border-radius: 50%; color: #ffe9ac; font: 800 1rem Consolas, monospace; }
.academy-study-copy h2 { margin: 0 !important; color: #fff !important; font: 750 clamp(1.85rem, 3.1vw, 3rem)/1.12 "Roboto", Consolas, "Segoe UI", Arial, sans-serif !important; letter-spacing: -.035em !important; }
.academy-study-copy h2 em { color: #a9cafa; font-style: normal; }
.academy-study-copy p { margin: 1.2rem 0 1.4rem !important; color: #d4dee4 !important; font-size: .9rem !important; line-height: 1.8 !important; }
.academy-study-copy a { display: inline-flex; align-items: center; gap: .7rem; padding-bottom: .3rem; border-bottom: 1px solid #efbc54; color: #ffdf8d !important; font-size: .83rem; font-weight: 750; text-decoration: none; }
.academy-study-copy a i { font-size: .72rem; }

#pillars { background: #f1f6f7 !important; }
#pillars .grid.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1.2rem !important; }
#pillars .grid.md\:grid-cols-3 > .group {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 2rem 1.7rem 1.7rem !important;
  border: 1px solid #dbe1e1 !important;
  border-top: 4px solid var(--academy-blue) !important;
  border-radius: 4px 4px 17px 17px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgb(34 49 59 / 5%);
  transition: transform .2s ease, box-shadow .2s ease;
}
#pillars .grid.md\:grid-cols-3 > .group:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgb(34 49 59 / 10%); }
#pillars .grid.md\:grid-cols-3 > .group:nth-child(2) { border-top-color: var(--academy-violet) !important; }
#pillars .grid.md\:grid-cols-3 > .group:nth-child(3) { border-top-color: #f0799f !important; }
#pillars .grid.md\:grid-cols-3 > .group > div:not(.absolute) { margin-bottom: 1.2rem !important; background: #e7f3fb !important; }
#pillars .grid.md\:grid-cols-3 > .group:nth-child(2) > div:not(.absolute) { background: #f0edff !important; }
#pillars .grid.md\:grid-cols-3 > .group:nth-child(3) > div:not(.absolute) { background: #fff0f0 !important; }
#pillars .grid.md\:grid-cols-3 > .group > span { display: block; margin-bottom: .45rem !important; font: 700 .68rem "Segoe UI", sans-serif !important; letter-spacing: .1em !important; }
#pillars .grid.md\:grid-cols-3 > .group h3 { min-height: 3.1rem; margin-top: .4rem !important; font-size: 1.2rem !important; line-height: 1.25; }
#pillars .grid.md\:grid-cols-3 > .group p { margin-bottom: 1.25rem !important; font-size: .85rem !important; }
#pillars .grid.md\:grid-cols-3 > .group ul { padding-top: 1rem !important; }

#courses { background: #fff !important; }
#courses > div > .flex:first-child { align-items: flex-end; margin-bottom: 2rem !important; }
#courses .course-card { border: 1px solid #dbe1e1 !important; border-top: 4px solid var(--academy-blue) !important; border-radius: 4px 4px 17px 17px !important; background: #fbfcfa !important; box-shadow: 0 16px 36px rgb(31 48 60 / 7%) !important; }
#courses .course-card:nth-child(2) { border-top-color: var(--academy-violet) !important; }
#courses .course-card:nth-child(3) { border-top-color: #f0799f !important; }
#courses .course-card > div:first-child { background: #edf6fb !important; }
#courses .course-card:nth-child(2) > div:first-child { background: #f2efff !important; }
#courses .course-card:nth-child(3) > div:first-child { background: #fff0ee !important; }
#courses .course-card button, #courses .course-card a { border-radius: 8px !important; }
#lessons { background: linear-gradient(135deg, #fff4cf 0%, #fff9e9 55%, #f3edff 100%) !important; }
#lessons .lesson-card { border: 1px solid #ddd9cd !important; border-radius: 3px 3px 16px 16px !important; background: #fff !important; box-shadow: 0 12px 28px rgb(49 47 41 / 6%); }
#lessons .lesson-card h3 { font: 700 1.35rem/1.25 "Roboto", Consolas, "Segoe UI", Arial, sans-serif !important; }
#lessons .lesson-card details { margin-top: 1rem; }
#roadmap { background: #1b2e3c !important; }
#roadmap h2, #roadmap h3 { color: #fff !important; }
#roadmap p { color: #c7d1d8 !important; }
#roadmap .grid.md\:grid-cols-4 > div { border-color: rgb(255 255 255 / 17%) !important; background: #243b4d !important; }
#roadmap .grid.md\:grid-cols-4 > div > div:first-child > div:first-child { border-color: rgb(255 255 255 / 16%) !important; background: #314e62 !important; }
#faq { background: #f2efff !important; }
#faq .faq-item { border-color: #dad6ee !important; background: #fff !important; }
#contact { background: linear-gradient(115deg, #fff6d8 0%, #fbfaf4 55%, #f4efff 100%) !important; }

@media (max-width: 1023px) {
  .academy-hero { padding-top: 4rem; }
  .academy-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; }
  .academy-title { font-size: clamp(3.6rem, 7vw, 5.3rem) !important; }
  .academy-hero .hero-classroom { height: 440px; }
  #pillars .grid.md\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .academy-study-feature { grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); }
}
@media (max-width: 767px) {
  .academy-hero { padding: 3.6rem 1.2rem 0; }
  .academy-hero-inner { grid-template-columns: 1fr; gap: 2.7rem; padding-bottom: 3rem; }
  .academy-kicker { flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem !important; font-size: .62rem !important; }
  .academy-title { font-size: clamp(3.1rem, 14vw, 5rem) !important; line-height: .99 !important; }
  .academy-intro { margin-top: 1.3rem !important; font-size: 1rem !important; }
  .academy-hero-actions { align-items: stretch; flex-direction: column; }
  .academy-action { width: 100%; }
  .academy-signature { margin-top: 1.8rem; }
  .academy-hero .hero-classroom { height: min(108vw, 430px); min-height: 300px; }
  .academy-hero .classroom-caption { left: 22px; bottom: 21px; }
  .academy-hero .classroom-badge { top: 22px; right: 22px; }
  .academy-hero-footer { min-height: 65px; flex-wrap: wrap; gap: .7rem 1.1rem; padding-block: .8rem; font-size: .66rem; }
  .academy-hero-footer span { flex: 1 1 40%; }
  .academy-hero-footer a { display: none; }
  .academy-study-feature { grid-template-columns: 1fr; width: calc(100% - 2rem); margin-block: 3rem; }
  .academy-study-image, .academy-study-image img { min-height: 250px; max-height: 300px; }
  .academy-study-image::after { background: linear-gradient(180deg, transparent 55%, rgb(27 46 60 / 23%)); }
  #pillars .grid.md\:grid-cols-3 { grid-template-columns: 1fr !important; }
  #pillars .grid.md\:grid-cols-3 > .group h3 { min-height: 0; }
  #courses > div > .flex:first-child { align-items: flex-start; }
  #about, #pillars, #courses, #lessons, #roadmap, #faq, #contact { padding-top: 3.8rem !important; padding-bottom: 3.8rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .academy-action, #pillars .grid.md\:grid-cols-3 > .group { transition: none; }
}
