/* Enchanted engineering: Skills Engineer's existing navy / cyan / orange identity,
   expressed with drafting grids, constellation glints, and restrained motion. */
:root {
  --spell-ink: #071d36;
  --spell-navy: #082b4c;
  --spell-blue: #0b5478;
  --spell-cyan: #2cb7c4;
  --spell-gold: #ffad42;
  --spell-paper: #f5f9fc;
  --spell-line: rgba(8, 43, 76, .13);
  --spell-radius: 18px;
  --spell-shadow: 0 18px 48px rgba(7, 29, 54, .10);
}

html { scroll-behavior: smooth; }
body {
  isolation: isolate;
  color: var(--spell-ink);
  background-color: var(--spell-paper);
  background-image:
    radial-gradient(circle at 8% 15%, rgba(44,183,196,.09), transparent 22rem),
    radial-gradient(circle at 91% 36%, rgba(255,173,66,.075), transparent 24rem),
    linear-gradient(rgba(8,43,76,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,43,76,.018) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .3;
  background-image:
    radial-gradient(circle, rgba(255,173,66,.8) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(44,183,196,.8) 1px, transparent 1.5px);
  background-size: 173px 173px, 239px 239px;
  background-position: 23px 41px, 104px 89px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.magic-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: .8rem clamp(1rem, 4vw, 4rem);
  color: #fff;
  background: linear-gradient(105deg, #061a31, #0a3859 65%, #075c72);
  border-bottom: 1px solid rgba(255,173,66,.48);
  box-shadow: 0 12px 34px rgba(7,29,54,.15);
}
.magic-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.15rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.magic-brand-star { color: var(--spell-gold); font-size: 1.55rem; }
.magic-desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.4rem, 1.3vw, 1.25rem); }
.magic-desktop-nav a, .magic-mobile-nav a { color: rgba(255,255,255,.88); font-size: .86rem; font-weight: 700; text-decoration: none; }
.magic-desktop-nav a:hover, .magic-mobile-nav a:hover { color: #ffd08a; }
.magic-header-cta { padding: .72rem 1.15rem; border: 1px solid rgba(255,173,66,.72); border-radius: 999px; background: var(--spell-gold); color: #082b4c; font-weight: 800; text-decoration: none; white-space: nowrap; }
.magic-mobile-nav { display: none; color: white; }
.magic-mobile-nav summary { list-style: none; cursor: pointer; padding: .65rem .8rem; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; font-weight: 700; }
.magic-mobile-nav summary::-webkit-details-marker { display: none; }
.magic-mobile-nav nav { position: absolute; right: 1rem; top: 4rem; display: grid; min-width: 210px; gap: .9rem; padding: 1.15rem; background: #082b4c; border: 1px solid rgba(255,173,66,.42); border-radius: 14px; box-shadow: var(--spell-shadow); }
.magic-site-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 2rem clamp(1rem, 4vw, 4rem); color: rgba(255,255,255,.82); background: linear-gradient(110deg,#06172b,#092f50); border-top: 1px solid rgba(255,173,66,.4); }
.magic-site-footer strong { color: white; font-size: 1.15rem; }
.magic-site-footer p { margin: .4rem 0 0; }
.magic-footer-links, .magic-footer-contact { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.magic-site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.magic-site-footer a:hover { color: #ffd08a; }
.magic-not-found {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 7vw, 6rem);
  min-height: min(68vh, 620px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 1.5rem;
}
.magic-not-found-art {
  color: rgba(8,84,120,.12);
  font-size: clamp(7rem, 20vw, 16rem);
  font-weight: 900;
  letter-spacing: -.1em;
  line-height: .8;
  text-shadow: 8px 8px 0 rgba(255,173,66,.2);
}
.magic-kicker { color: #087e91; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.magic-not-found h1 { max-width: 620px; margin: .8rem 0; color: var(--spell-ink); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.magic-not-found p { max-width: 560px; color: #456178; font-size: 1.05rem; line-height: 1.7; }
.magic-not-found-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.magic-not-found-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; border-radius: 999px; font-weight: 800; text-decoration: none; }
.magic-not-found-primary { background: #0b5478; color: white; }
.magic-not-found-secondary { border: 1px solid rgba(8,84,120,.35); color: #082b4c; background: white; }
.magic-site-header + .container { margin: 3rem auto; border-top-color: var(--spell-cyan) !important; border-radius: var(--spell-radius) !important; box-shadow: var(--spell-shadow) !important; }
.magic-site-header + .container h2 { color: var(--spell-navy) !important; }
.magic-site-header + .container h1 { margin: 0 0 1rem; color: var(--spell-navy); font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 800; text-align: center; letter-spacing: -.035em; }

.top-contact-bar {
  background: linear-gradient(100deg, #061a31, #0a3859 58%, #075c72) !important;
  border-bottom-color: rgba(255,173,66,.28) !important;
}
.site-header {
  background: rgba(247,251,253,.91) !important;
  border-bottom: 1px solid rgba(44,183,196,.24) !important;
  box-shadow: 0 12px 34px rgba(7,29,54,.09) !important;
}
.brand-logo { filter: drop-shadow(0 0 14px rgba(44,183,196,.22)) !important; }
.brand-title {
  background-image: linear-gradient(110deg, #082b4c 5%, #087c91 65%, #c76c11) !important;
  letter-spacing: -.035em !important;
}
.nav-link { color: #173b58 !important; }
.nav-link:hover, .nav-link.active {
  color: #062541 !important;
  background: rgba(44,183,196,.12) !important;
}
.nav-link.active::before {
  content: "✦";
  color: var(--spell-gold);
  font-size: .58rem;
  margin-right: .35rem;
}
.header-action, .nav-link, button, a { transition-duration: .22s; }
.solid-action, .btn-modern-primary, .course-btn.primary, .lite-btn.primary, .tc-btn.primary,
.ma-btn-primary, .apply-btn, .join-now-btn, form button[type="submit"], #registrationModal button[type="submit"] {
  background: linear-gradient(115deg, #0b5478, #087e91) !important;
  color: #fff !important;
  border: 1px solid rgba(44,183,196,.45) !important;
  box-shadow: 0 8px 22px rgba(8,84,120,.22), inset 0 1px rgba(255,255,255,.22) !important;
}
.solid-action:hover, .btn-modern-primary:hover, .course-btn.primary:hover, .lite-btn.primary:hover,
.tc-btn.primary:hover, .ma-btn-primary:hover, .apply-btn:hover, .join-now-btn:hover,
form button[type="submit"]:hover, #registrationModal button[type="submit"]:hover {
  background: linear-gradient(115deg, #073654, #086477) !important;
  transform: translateY(-2px);
}
.secondary-action, .outline-action, .btn-modern-outline, .course-btn.secondary, .lite-btn.secondary,
.tc-btn.secondary, .ma-btn-secondary {
  color: #082b4c !important;
  border-color: rgba(8,84,120,.38) !important;
  background: rgba(255,255,255,.82) !important;
}

main { isolation: isolate; }
main > section, .home-landing-scope > section { position: relative; }
main > section:not(.hero-modern), .home-section {
  background-color: rgba(255,255,255,.78);
}
main > section:nth-of-type(even):not(.hero-modern), .home-section:nth-of-type(even) {
  background-color: rgba(236,246,249,.82);
}
main h1, .home-landing-scope h1 {
  color: var(--spell-ink);
  letter-spacing: -.045em;
}
main h2, .home-landing-scope h2 { letter-spacing: -.035em; }
.lite-head h2::after, .ma-section-title h2::after, .course-section > .course-shell > h2::after,
.tc-section > .tc-shell > h2::after, .news-section > .news-shell > h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: .72rem;
  background: linear-gradient(90deg, var(--spell-cyan), var(--spell-gold));
  border-radius: 2px;
}
main .container, main .lite-shell, main .tc-shell, main .ma-shell, main .course-shell,
.home-landing-scope .container { position: relative; z-index: 1; }

.hero-modern, .lite-hero, .course-hero, .ma-hero, .tc-hero, .news-hero, .career-hero, .learner-app-hero, .hero-grad {
  overflow: hidden;
  background-color: var(--spell-ink) !important;
  background-image:
    radial-gradient(ellipse at 72% 33%, rgba(44,183,196,.25), transparent 26rem),
    radial-gradient(ellipse at 95% 80%, rgba(255,173,66,.18), transparent 22rem),
    linear-gradient(115deg, #06172b 0%, #092f50 62%, #075365 100%) !important;
}
.hero-modern h1, .hero-modern h2, .hero-modern p,
.lite-hero h1, .lite-hero h2, .lite-hero p,
.course-hero h1, .course-hero h2, .course-hero p,
.ma-hero h1, .ma-hero h2, .ma-hero p,
.tc-hero h1, .tc-hero h2, .tc-hero p,
.news-hero h1, .news-hero h2, .news-hero p,
.career-hero h1, .career-hero h2, .career-hero p,
.learner-app-hero h1, .learner-app-hero h2, .learner-app-hero p,
.hero-grad h1, .hero-grad h2, .hero-grad p { color: #fff !important; }
.hero-modern::before, .lite-hero::before, .course-hero::before, .ma-hero::before,
.tc-hero::before, .news-hero::before, .career-hero::before, .learner-app-hero::before, .hero-grad::before {
  content: "✦   ·     ✧       ·   ✦";
  position: absolute;
  inset: 12% 7% auto auto;
  width: min(46vw, 560px);
  height: 72%;
  color: rgba(255,205,133,.76);
  font-size: 1.4rem;
  letter-spacing: 2.7rem;
  line-height: 4.2;
  text-align: right;
  pointer-events: none;
  opacity: .55;
  border: 1px solid rgba(87,206,218,.22);
  border-radius: 48% 52% 41% 59% / 52% 42% 58% 48%;
  box-shadow: 0 0 0 18px rgba(44,183,196,.025), 0 0 0 42px rgba(255,173,66,.025), inset 0 0 55px rgba(44,183,196,.09);
  transform: rotate(-12deg);
}
.hero-modern .hero-content-wrap {
  text-align: left !important;
  max-width: 1200px;
  margin-left: max(6vw, calc((100vw - 1200px)/2)) !important;
  margin-right: auto !important;
  position: relative;
  z-index: 2;
}
.hero-modern .hero-content-wrap h1, .hero-modern .hero-content-wrap p { margin-left: 0 !important; }
.hero-modern .hero-content-wrap h1 { max-width: 780px; font-weight: 700 !important; }
.hero-modern .hero-content-wrap p { max-width: 620px; }
.hero-modern .hero-content-wrap > div { justify-content: flex-start !important; }
.hero-modern .hero-scroll-cue { left: 50%; }
.tekla-structure-scene { opacity: .76; filter: drop-shadow(0 0 24px rgba(44,183,196,.24)); }
.stage-grid, .tekla-perspective-grid { opacity: .24 !important; }
.hero-orb { filter: blur(1px); opacity: .44 !important; }

.course-card, .lite-card, .tc-card, .ma-card, .news-card, .career-card, .form-box,
.contact-details, .glass-card, #registrationModalContent {
  border: 1px solid rgba(8,84,120,.15) !important;
  border-radius: var(--spell-radius) !important;
  box-shadow: var(--spell-shadow) !important;
}
.course-card, .lite-card, .tc-card, .ma-card, .news-card, .career-card, .job-card, .empty-card, .form-box, .contact-details {
  background-color: rgba(255,255,255,.92) !important;
}
.course-card:hover, .lite-card:hover, .tc-card:hover, .ma-card:hover, .news-card:hover {
  border-color: rgba(44,183,196,.55) !important;
  transform: translateY(-4px);
}
input, select, textarea {
  border-color: rgba(8,84,120,.24) !important;
  border-radius: 10px !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--spell-cyan) !important;
  box-shadow: 0 0 0 3px rgba(44,183,196,.16) !important;
  outline: none !important;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--spell-gold) !important;
  outline-offset: 3px;
}
#mobile-menu {
  background-image: radial-gradient(circle at 90% 8%, rgba(44,183,196,.22), transparent 16rem), linear-gradient(155deg,#06172b,#0a4563) !important;
}
footer {
  background-image: radial-gradient(ellipse at 82% 0%, rgba(44,183,196,.2), transparent 26rem), linear-gradient(120deg,#06172b,#092f50) !important;
  border-top: 1px solid rgba(255,173,66,.38);
}
.notification-badge-number, .nav-hiring-pill { background: var(--spell-gold) !important; color: #082b4c !important; }

@media (max-width: 900px) {
  .magic-desktop-nav, .magic-header-cta { display: none; }
  .magic-mobile-nav { display: block; }
  .magic-site-footer { flex-direction: column; gap: 1rem; }
  .magic-not-found { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .magic-not-found-art { font-size: clamp(6rem, 25vw, 10rem); }
  .magic-not-found-actions { justify-content: center; }
  .hero-modern .hero-content-wrap { text-align: center !important; margin: 0 auto !important; }
  .hero-modern .hero-content-wrap > div { justify-content: center !important; }
  .hero-modern .hero-content-wrap h1, .hero-modern .hero-content-wrap p { margin-left: auto !important; margin-right: auto !important; }
  .hero-modern::before, .lite-hero::before, .course-hero::before, .ma-hero::before,
  .tc-hero::before, .news-hero::before, .career-hero::before, .learner-app-hero::before,
  .hero-grad::before { width: 78vw; right: 4%; opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .course-card, .lite-card, .tc-card, .ma-card, .news-card { backdrop-filter: none !important; background-color: #fff !important; }
}
