/* =====================================================================
   Resilience Academy — premium Home layer (loads after human.css)
   Aurora hero, depth + parallax, spotlight/tilt cards, scroll-linked steps,
   split-text reveals. All motion is switched off for "reduced motion".
   Classes: "hp-" (premium) reuse the "hx-" buttons, forms, modal, toast.
   ===================================================================== */
:root {
  --hp-night: #050f26;
  --hp-navy: #0a1b45;
  --hp-blue: #1d6fe0;
  --hp-cyan: #38bdf8;
  --hp-orange: #ff7a1a;
  --hp-amber: #ffb347;
  --hp-ease: cubic-bezier(.2, .8, .2, 1);
}
@property --hp-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* glass header + progress bar + intro curtain */
header.hx-header { background: rgba(255, 255, 255, .86) !important; backdrop-filter: blur(1rem) saturate(1.3); -webkit-backdrop-filter: blur(1rem) saturate(1.3); }
#hpProgress { position: fixed; top: 0; left: 0; z-index: 500; width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--hp-blue), var(--hp-cyan), var(--hp-orange)); box-shadow: 0 0 0.875rem rgba(255, 122, 26, .6); pointer-events: none; }
.hp-curtain { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--hp-night); transition: transform .95s cubic-bezier(.77, 0, .18, 1); }
.hp-curtain.out { transform: translateY(-101%); }
.hp-curtain-in { display: grid; justify-items: center; gap: 1.25rem; animation: hp-curtain-in .7s var(--hp-ease) both; }
.hp-curtain img { height: 4.875rem; width: auto; padding: 0.625rem 1.25rem; background: #fff; border-radius: 1rem; }
.hp-curtain-bar { width: 10.625rem; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.hp-curtain-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--hp-cyan), var(--hp-orange)); animation: hp-load .8s .1s ease-out forwards; }
@keyframes hp-curtain-in { from { opacity: 0; transform: translateY(0.875rem) scale(.96); } }
@keyframes hp-load { to { transform: scaleX(1); } }

/* generic scroll-in helpers (class "is-in" is added by site-fx.js) */
.hp-js .hp-up, .hp-js .hp-left, .hp-js .hp-right, .hp-js .hp-zoom { opacity: 0; transition: opacity .9s var(--hp-ease) var(--d, 0s), transform .9s var(--hp-ease) var(--d, 0s); }
.hp-js .hp-up { transform: translateY(2.5rem); }
.hp-js .hp-left { transform: translateX(-3rem); }
.hp-js .hp-right { transform: translateX(3rem); }
.hp-js .hp-zoom { transform: scale(.9); }
.hp-js .hp-up.is-in, .hp-js .hp-left.is-in, .hp-js .hp-right.is-in, .hp-js .hp-zoom.is-in { opacity: 1; transform: none; }
.hp-js .hp-clip { clip-path: inset(0 100% 0 0 round 1.5rem); transition: clip-path 1.2s var(--hp-ease) var(--d, 0s); }
.hp-js .hp-clip.is-in { clip-path: inset(0 0 0 0 round 1.5rem); }
/* headings split into words by site-fx.js: each word slides up from behind a mask */
.hp-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hp-split .w > i { display: inline-block; font-style: normal; transform: translateY(112%); transition: transform .9s var(--hp-ease) calc(var(--i, 0) * .06s); }
.hp-split.is-in .w > i { transform: none; }

/* ---------------------------------------------------------------- hero */
.hp-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(75rem 43.75rem at 78% -10%, #12388a 0%, transparent 60%), linear-gradient(180deg, #06142f, var(--hp-night) 70%); }
.hp-aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hp-aurora i { position: absolute; border-radius: 50%; filter: blur(5.9375rem); mix-blend-mode: screen; will-change: transform; }
.hp-aurora i:nth-child(1) { width: 40rem; height: 40rem; left: -10rem; top: -11.25rem; background: radial-gradient(circle, rgba(29, 111, 224, .85), transparent 66%); animation: hp-drift-a 19s ease-in-out infinite alternate; }
.hp-aurora i:nth-child(2) { width: 35rem; height: 35rem; right: -8.75rem; bottom: -7.5rem; background: radial-gradient(circle, rgba(255, 122, 26, .5), transparent 66%); animation: hp-drift-b 23s ease-in-out infinite alternate; }
.hp-aurora i:nth-child(3) { width: 26.25rem; height: 26.25rem; left: 38%; top: 12%; background: radial-gradient(circle, rgba(56, 189, 248, .4), transparent 66%); animation: hp-drift-c 27s ease-in-out infinite alternate; }
@keyframes hp-drift-a { to { transform: translate(13.75rem, 8.75rem) scale(1.18); } }
@keyframes hp-drift-b { to { transform: translate(-12.5rem, -7.5rem) scale(1.12); } }
@keyframes hp-drift-c { to { transform: translate(-10rem, 10rem) scale(.9); } }
.hp-gridbg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 3.625rem 3.625rem;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 78%); }
.hp-noise { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hp-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.75rem); align-items: center; padding-top: clamp(2.75rem, 6vw, 5.5rem); padding-bottom: clamp(4.375rem, 8vw, 7.5rem); }
.hp-pill { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.5625rem 1.125rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 62.4375rem; backdrop-filter: blur(0.625rem); font: 600 .72rem/1 var(--hx-head); letter-spacing: .08em; text-transform: uppercase; color: #dbe7ff; }
.hp-pill i { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--hp-orange); box-shadow: 0 0 0 0 rgba(255, 122, 26, .7); animation: hx-ping 2s infinite; }
.hp-h1 { margin: 1.5rem 0 1.375rem; font: 700 clamp(2.6rem, 5.7vw, 4.9rem)/1.05 var(--hx-head); letter-spacing: -.025em; color: #fff; }
.hp-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hp-line > span { display: inline-block; }
.hp-js .hp-line > span { transform: translateY(118%); }
.hp-js.hp-go .hp-line > span { animation: hp-rise 1.05s var(--hp-ease) forwards; animation-delay: calc(var(--i, 0) * .14s + .1s); }
@keyframes hp-rise { to { transform: none; } }
.hp-fade { opacity: 1; }
.hp-js .hp-fade { opacity: 0; transform: translateY(1.625rem); }
.hp-js.hp-go .hp-fade { animation: hp-fadeup .9s var(--hp-ease) forwards; animation-delay: calc(var(--i, 0) * .12s + .5s); }
@keyframes hp-fadeup { to { opacity: 1; transform: none; } }
.hp-grad { background: linear-gradient(90deg, var(--hp-amber), var(--hp-orange) 55%, #ff4d6d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-hero .hx-type::after { background: var(--hp-orange); }
.hp-lead { max-width: 35rem; margin: 0; font: 400 1.08rem/1.8 var(--hx-body); color: #b7c6e6; }
.hp-trust { display: flex; flex-wrap: wrap; gap: 0.75rem 1.625rem; margin-top: 2.125rem; padding-top: 1.625rem; border-top: 1px solid rgba(255, 255, 255, .12); font: 500 .84rem/1 var(--hx-body); color: #9fb2d8; }
.hp-trust span { display: inline-flex; align-items: center; gap: 0.5625rem; }
.hp-trust span::before { content: ""; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: rgba(255, 122, 26, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb347' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.6875rem no-repeat; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.125rem; }
.hp-btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(0.625rem); }
.hp-btn-glass:hover { background: #fff; color: var(--hx-navy); transform: translateY(-3px); }
[data-magnetic] { will-change: transform; transition: transform .25s ease-out; }

/* stage: layered visuals that move with the mouse */
.hp-stage { position: relative; justify-self: end; width: min(100%, 36.25rem); --mx: 0; --my: 0; perspective: 75rem; }
.hp-depth { transform: translate3d(calc(var(--mx) * var(--d, 0) * 1px), calc(var(--my) * var(--d, 0) * 1px), 0); transition: transform .35s ease-out; will-change: transform; }
.hp-frame { position: relative; padding: 3px; border-radius: 2rem; background: conic-gradient(from var(--hp-a), var(--hp-blue), var(--hp-cyan), var(--hp-orange), var(--hp-amber), var(--hp-blue)); animation: hp-spin-a 7s linear infinite; transform: rotateY(calc(var(--mx) * -7deg)) rotateX(calc(var(--my) * 6deg)); transition: transform .35s ease-out; }
.hp-frame::before { content: ""; position: absolute; inset: -0.875rem; z-index: -1; border-radius: 2.5rem; background: inherit; filter: blur(2.125rem); opacity: .45; }
@keyframes hp-spin-a { to { --hp-a: 360deg; } }
.hp-frame-in { position: relative; overflow: hidden; border-radius: 1.8125rem; background: var(--hp-navy); }
.hp-frame-in img { display: block; width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; object-position: 50% 32%; transform: scale(1.08); animation: hp-kenburns 16s ease-in-out infinite alternate; }
.hp-frame-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 38, 0) 55%, rgba(5, 15, 38, .6)); }
@keyframes hp-kenburns { to { transform: scale(1.18) translate(-2%, -1%); } }
.hp-chip { position: absolute; z-index: 3; }
.hp-chip-in { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.125rem 0.75rem 0.75rem; background: rgba(255, 255, 255, .92); border-radius: 1.125rem; box-shadow: 0 1.625rem 2.875rem -1.375rem rgba(0, 0, 0, .7); backdrop-filter: blur(0.625rem); animation: hx-float 6s ease-in-out infinite; }
.hp-chip b { display: block; font: 700 1rem/1.1 var(--hx-head); color: var(--hx-ink); }
.hp-chip span.s { display: block; margin-top: 3px; font: 500 .74rem/1.2 var(--hx-body); color: #67728e; }
.hp-chip-ico { display: grid; place-items: center; width: 2.625rem; height: 2.625rem; flex: none; border-radius: 0.75rem; }
.hp-chip-ico svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-chip-a { left: -2.125rem; bottom: 3.5rem; }
.hp-chip-a .hp-chip-ico { background: #dcfce7; color: #16a34a; }
.hp-chip-b { right: -1.375rem; top: 2.25rem; }
.hp-chip-b .hp-chip-in { animation-delay: -2.4s; }
.hp-chip-b .hp-chip-ico { background: #e0ecfd; color: var(--hx-blue); }
.hp-chip-c { right: 1.75rem; bottom: -1.625rem; }
.hp-chip-c .hp-chip-in { animation-delay: -4s; padding: 0.625rem 1rem 0.625rem 0.625rem; }
.hp-chip-c .hp-chip-ico { background: #ffedd9; color: var(--hx-orange); width: 2.375rem; height: 2.375rem; }
.hp-orbit { position: absolute; inset: -2.875rem; z-index: -1; border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: 50%; animation: hx-spin 38s linear infinite; }
.hp-orbit::after { content: ""; position: absolute; left: 50%; top: -0.375rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--hp-orange); box-shadow: 0 0 1.125rem var(--hp-orange); }
.hp-shape { position: absolute; z-index: 0; border-radius: 0.375rem; background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(0.25rem); animation: hx-float 8s ease-in-out infinite; }
.hp-s1 { width: 3.375rem; height: 3.375rem; left: -4.375rem; top: 24%; transform: rotate(18deg); }
.hp-s2 { width: 2.125rem; height: 2.125rem; right: -3.375rem; bottom: 28%; border-radius: 50%; animation-delay: -3s; }
.hp-scroll { position: absolute; left: 50%; bottom: 7.5rem; z-index: 2; width: 1.5rem; height: 2.375rem; margin-left: -0.75rem; border: 2px solid rgba(255, 255, 255, .35); border-radius: 0.875rem; }
.hp-scroll::after { content: ""; position: absolute; left: 50%; top: 0.4375rem; width: 0.25rem; height: 0.5rem; margin-left: -2px; border-radius: 3px; background: var(--hp-orange); animation: hp-wheel 1.8s ease-in-out infinite; }
@keyframes hp-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(0.875rem); } }

.hp-marq { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); backdrop-filter: blur(0.375rem); padding: 1.125rem 0 1.25rem; overflow: hidden; }
.hp-marq p { margin: 0 0 0.875rem; text-align: center; font: 600 .7rem/1 var(--hx-head); letter-spacing: .16em; text-transform: uppercase; color: #7f93bd; }
.hp-marq-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hp-marq-track { display: flex; width: max-content; gap: 0.875rem; animation: hx-slide 44s linear infinite; }
.hp-marq:hover .hp-marq-track { animation-play-state: paused; }
.hp-marq-track span { padding: 0.625rem 1.375rem; white-space: nowrap; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 62.4375rem; font: 600 .92rem/1 var(--hx-head); color: #cdd9f3; transition: background .3s, color .3s, border-color .3s; }
.hp-marq-track span:hover { background: var(--hp-orange); border-color: var(--hp-orange); color: #fff; }

/* ---------------------------------------------------------------- section chrome */
.hp-sec { position: relative; padding: clamp(4.375rem, 8.5vw, 7.25rem) 0; }
.hp-num { display: inline-flex; align-items: center; gap: 0.75rem; font: 600 .78rem/1 var(--hx-head); letter-spacing: .16em; text-transform: uppercase; color: var(--hx-orange); }
.hp-num b { padding: 0.375rem 0.625rem; border-radius: 0.5rem; background: #fff1e6; font-weight: 700; letter-spacing: .06em; }
.hp-dark .hp-num b { background: rgba(255, 122, 26, .16); }
.hp-h2 { margin: 0.875rem 0 0; font: 700 clamp(1.9rem, 3.5vw, 2.9rem)/1.16 var(--hx-head); letter-spacing: -.02em; color: var(--hx-ink); }
.hp-h2 em { font-style: normal; background: linear-gradient(90deg, var(--hx-blue), var(--hp-blue) 40%, var(--hp-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-dark .hp-h2 { color: #fff; }
.hp-dark .hp-h2 em { background: linear-gradient(90deg, var(--hp-cyan), var(--hp-amber)); -webkit-background-clip: text; background-clip: text; }
.hp-head { max-width: 46.25rem; margin: 0 auto clamp(2.25rem, 4.5vw, 3.75rem); text-align: center; }
.hp-lead { margin: 1rem 0 0; font: 400 1.04rem/1.8 var(--hx-body); color: #4a5670; }
.hp-dark .hp-lead { color: #aebddf; }
/* the hero sits on dark navy: the generic .hp-lead above is for light sections and would otherwise win by source order */
.hp-hero .hp-lead { color: #c9d6f0; }
.hp-wave { position: absolute; left: 0; right: 0; top: -1px; height: clamp(2.125rem, 5vw, 4.375rem); pointer-events: none; }
.hp-wave svg { display: block; width: 100%; height: 100%; }

/* spotlight: a soft light follows the cursor over [data-spot] cards */
[data-spot] { position: relative; --mx: 50%; --my: 50%; }
[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(26.25rem circle at var(--mx) var(--my), rgba(255, 122, 26, .16), transparent 55%); }
[data-spot]:hover::before { opacity: 1; }

/* ---------------------------------------------------------------- about bento */
.hp-about { background: #fff; }
.hp-about-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(2.25rem, 6vw, 5.25rem); align-items: center; }
.hp-bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(7.75rem, auto); gap: 1.125rem; }
.hp-tile { position: relative; overflow: hidden; border-radius: 1.5rem; background: #fff; border: 1px solid #e3eaf4; box-shadow: 0 1.375rem 2.75rem -1.75rem rgba(10, 27, 69, .45); transition: transform .45s var(--hp-ease), box-shadow .45s; }
.hp-tile:hover { transform: translateY(-0.375rem); box-shadow: 0 2.125rem 3.375rem -1.875rem rgba(10, 27, 69, .55); }
.hp-stat { display: flex; flex-direction: column; justify-content: center; padding: 1.625rem 1.375rem; text-align: center; }
.hp-stat b { display: block; font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--hx-head); color: var(--hx-orange); }
.hp-stat small { display: block; margin-top: 0.625rem; font: 600 .72rem/1.3 var(--hx-head); letter-spacing: .1em; text-transform: uppercase; color: #5a6682; }
.hp-stat.is-blue { background: linear-gradient(135deg, #0f55b8, #0a1b45); border-color: transparent; }
.hp-stat.is-blue b { color: #fff; }
.hp-stat.is-blue small { color: #b8c9ec; }
.hp-stat.is-orange { background: linear-gradient(135deg, #ff7a1a, #ff4d2e); border-color: transparent; }
.hp-stat.is-orange b, .hp-stat.is-orange small { color: #fff; }
.hp-photo { grid-column: 1 / -1; min-height: 11.875rem; padding: 0; }
.hp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--hp-ease); }
.hp-photo:hover img { transform: scale(1.06); }
.hp-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 38, 0) 40%, rgba(5, 15, 38, .75)); }
.hp-photo span { position: absolute; left: 1.25rem; bottom: 1.125rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.5625rem 1rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-radius: 62.4375rem; backdrop-filter: blur(0.625rem); font: 600 .78rem/1 var(--hx-head); color: #fff; }
.hp-photo span i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #4ade80; animation: hx-ping 2s infinite; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); }

/* ---------------------------------------------------------------- programs */
.hp-programs { background: linear-gradient(180deg, #f3f6fb, #eaf0f9); }
.hp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin: 0 0 2.5rem; }
.hp-tab { padding: 0.6875rem 1.375rem; border: 1.5px solid #d6e0f0; border-radius: 62.4375rem; background: #fff; font: 600 .86rem/1 var(--hx-head); color: #33405e; cursor: pointer; transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s; }
.hp-tab:hover { transform: translateY(-3px); border-color: var(--hx-blue); color: var(--hx-blue); }
.hp-tab.is-on { background: var(--hx-orange); border-color: var(--hx-orange); color: #fff; box-shadow: 0 0.875rem 1.625rem -0.75rem rgba(249, 115, 22, .8); }
.hp-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.625rem; perspective: 87.5rem; }
.hp-course { position: relative; transform-style: preserve-3d; transition: transform .35s ease-out, box-shadow .35s, opacity .45s, filter .45s; will-change: transform; }
.hp-js .hp-course[data-io] { opacity: 0; }
.hp-js .hp-course[data-io].is-in { opacity: 1; animation: hp-card-in .95s var(--hp-ease) var(--d, 0s) backwards; }
@keyframes hp-card-in { from { opacity: 0; transform: translateY(2.875rem) scale(.96); } }
.hp-course.is-fading, .hp-course[data-io].is-fading { opacity: 0 !important; transform: scale(.92) !important; pointer-events: none; }
.hp-course.is-gone { display: none; }
.hp-glare { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(22.5rem circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 55%); mix-blend-mode: soft-light; }
.hp-course:hover .hp-glare { opacity: 1; }

/* ---------------------------------------------------------------- steps (scroll-linked) */
.hp-steps-sec { background: #fff; }
.hp-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.625rem; --p: 0; }
.hp-steps-line { position: absolute; left: 16.6%; right: 16.6%; top: 3.875rem; height: 0.25rem; border-radius: 0.25rem; background: #e1e9f5; }
.hp-steps-line i { position: absolute; inset: 0; border-radius: 0.25rem; transform-origin: 0 50%; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--hx-blue), var(--hp-cyan), var(--hp-orange)); }
.hp-step { position: relative; padding: 1.875rem 1.625rem 2rem; text-align: center; background: #fff; border: 1px solid #e3eaf4; border-radius: 1.625rem; box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(10, 27, 69, .4); transition: transform .5s var(--hp-ease), border-color .5s, box-shadow .5s; }
.hp-step.is-on { border-color: #ffd2b0; box-shadow: 0 2.125rem 3.5rem -1.875rem rgba(255, 122, 26, .55); transform: translateY(-0.5rem); }
.hp-step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%; background: #fff; border: 3px solid #d3dff2; font: 700 1.3rem/1 var(--hx-head); color: #9aa8c4; transition: background .5s, color .5s, border-color .5s, transform .5s var(--hp-ease), box-shadow .5s; }
.hp-step.is-on .hp-step-n { background: var(--hx-orange); border-color: var(--hx-orange); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 0.5625rem rgba(249, 115, 22, .15); }
.hp-step h3 { margin: 0 0 0.625rem; font: 600 1.18rem/1.3 var(--hx-head); color: var(--hx-ink); }
.hp-step p { margin: 0; font: 400 .92rem/1.7 var(--hx-body); color: #5a6682; }

/* ---------------------------------------------------------------- approach (dark) */
.hp-dark { position: relative; overflow: hidden; color: #fff; background: radial-gradient(56.25rem 31.25rem at 100% 0%, rgba(29, 111, 224, .3), transparent 60%), linear-gradient(180deg, #08173a, var(--hp-night)); --mx: 50%; --my: 30%; }
.hp-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(32.5rem circle at var(--mx) var(--my), rgba(56, 189, 248, .12), transparent 60%); }
.hp-dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px); background-size: 1.875rem 1.875rem; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.hp-approach-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hp-approach-photo { position: relative; }
.hp-approach-photo::before { content: ""; position: absolute; inset: -2px; border-radius: 1.875rem; background: conic-gradient(from var(--hp-a), var(--hp-cyan), transparent 30%, var(--hp-orange), transparent 70%, var(--hp-cyan)); animation: hp-spin-a 9s linear infinite; }
.hp-approach-photo img { position: relative; width: 100%; aspect-ratio: 4 / 3.5; object-fit: cover; border-radius: 1.75rem; display: block; box-shadow: 0 3.125rem 5rem -2.125rem rgba(0, 0, 0, .8); }
.hp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- formats (spotlight cards) */
.hp-formats { background: #fff; }
.hp-format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.hp-fcard { padding: 2rem 1.75rem 1.75rem; border-radius: 1.5rem; background: #f6f9fe; border: 1px solid #e3eaf4; transition: transform .45s var(--hp-ease), border-color .45s, box-shadow .45s, background .45s; }
.hp-fcard:hover { transform: translateY(-0.5rem); border-color: #ffc99d; background: #fff; box-shadow: 0 2.125rem 3.5rem -2rem rgba(10, 27, 69, .5); }
.hp-fcard .ico { position: relative; display: grid; place-items: center; width: 3.625rem; height: 3.625rem; margin-bottom: 1.375rem; border-radius: 1.125rem; transition: transform .5s var(--hp-ease); }
.hp-fcard:hover .ico { transform: rotate(-10deg) scale(1.12); }
.hp-fcard .ico svg { width: 1.6875rem; height: 1.6875rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-fcard:nth-child(6n+1) .ico { background: #e0ecfd; color: var(--hx-blue); }
.hp-fcard:nth-child(6n+2) .ico { background: #ffedd9; color: var(--hx-orange); }
.hp-fcard:nth-child(6n+3) .ico { background: #dcfce7; color: #16a34a; }
.hp-fcard:nth-child(6n+4) .ico { background: #fde7f1; color: #db2777; }
.hp-fcard:nth-child(6n+5) .ico { background: #ede7fd; color: #6d3fd8; }
.hp-fcard:nth-child(6n+6) .ico { background: #dff6fb; color: #0891b2; }
.hp-fcard h3 { margin: 0 0 0.625rem; font: 600 1.15rem/1.3 var(--hx-head); color: var(--hx-ink); }
.hp-fcard p { margin: 0 0 1.125rem; font: 400 .9rem/1.7 var(--hx-body); color: #5a6682; }
.hp-fcard em { display: inline-block; padding: 0.375rem 0.75rem; border-radius: 62.4375rem; background: #fff; border: 1px solid #dbe5f4; font: 600 .72rem/1 var(--hx-head); font-style: normal; color: var(--hx-blue); }

/* ---------------------------------------------------------------- who + roadmap + CTA tweaks */
.hp-who { background: linear-gradient(180deg, #fff, #f3f6fb); }
.hp-who-box { position: relative; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.875rem, 5vw, 4.375rem); align-items: center; padding: clamp(1.875rem, 5vw, 3.625rem); background: linear-gradient(135deg, #0a1b45, #123277); border-radius: 2rem; color: #fff; box-shadow: 0 2.5rem 5rem -2.5rem rgba(10, 27, 69, .9); }
.hp-who-box::before { content: ""; position: absolute; right: -5rem; top: -5rem; width: 18.75rem; height: 18.75rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .5), transparent 65%); filter: blur(1.25rem); }
.hp-who-box .hp-h2 { color: #fff; }
.hp-who-box .hp-lead { color: #b7c6e6; }
.hp-chips { position: relative; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hp-chips span { padding: 0.6875rem 1.25rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 62.4375rem; backdrop-filter: blur(0.5rem); font: 600 .86rem/1 var(--hx-head); color: #e7eeff; animation: hp-bob 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.45s); transition: background .25s, color .25s, border-color .25s; }
.hp-chips span:hover { background: var(--hp-orange); border-color: var(--hp-orange); color: #fff; }
@keyframes hp-bob { 50% { transform: translateY(-0.4375rem); } }
.hp-road { background: #f3f6fb; }
.hp-road .hx-road-line { padding-top: 0.75rem; }
/* the glowing border sits BEHIND the white card: the card must not form its own stacking context, the panel must */
.hp-cta .hx-cta-panel { isolation: isolate; }
.hp-cta .hx-form-card { position: relative; z-index: auto; background: #fff; }
.hp-cta .hx-form-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 1.5rem; background: conic-gradient(from var(--hp-a), var(--hp-orange), var(--hp-cyan), var(--hp-blue), var(--hp-orange)); animation: hp-spin-a 6s linear infinite; }
.hp-cta .hx-cta-panel { background: radial-gradient(43.75rem 22.5rem at 90% 0%, rgba(255, 122, 26, .3), transparent 60%), linear-gradient(135deg, #0f55b8, var(--hp-night)); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .hp-courses, .hp-format-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hp-hero-grid, .hp-about-grid, .hp-approach-grid, .hp-who-box { grid-template-columns: 1fr; }
  .hp-stage { order: -1; justify-self: center; width: min(100%, 27.5rem); }
  .hp-chip-a { left: -0.5rem; bottom: 2.125rem; }
  .hp-chip-b { right: -0.5rem; }
  .hp-chip-c { right: 0.875rem; bottom: -1.375rem; }
  .hp-orbit, .hp-s1, .hp-s2 { display: none; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-steps-line { display: none; }
  .hp-scroll { display: none; }
}
@media (max-width: 640px) {
  .hp-courses, .hp-format-grid, .hp-tiles { grid-template-columns: 1fr; }
  .hp-bento { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .hp-actions .hx-btn { flex: 1 1 100%; }
  .hp-chip-in { padding: 0.5625rem 0.875rem 0.5625rem 0.5625rem; }
  .hp-chip-ico { width: 2.25rem; height: 2.25rem; }
  .hp-h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
}
@media (hover: none) { .hp-depth, .hp-frame { transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .hp-aurora i, .hp-frame, .hp-frame-in img, .hp-chip-in, .hp-shape, .hp-orbit, .hp-marq-track, .hp-scroll::after, .hp-chips span, .hp-approach-photo::before, .hp-cta .hx-form-card::before { animation: none !important; }
  .hp-js .hp-line > span, .hp-js .hp-fade { transform: none; opacity: 1; animation: none; }
  .hp-up, .hp-left, .hp-right, .hp-zoom, .hp-clip { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hp-split .w > i { transform: none; transition: none; }
  .hp-curtain { display: none; }
}

/* safety net: if the motion script did not start, show everything */
.hp-nofx .hp-up, .hp-nofx .hp-left, .hp-nofx .hp-right, .hp-nofx .hp-zoom, .hp-nofx .hp-clip, .hp-nofx .hp-course[data-io] { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
.hp-nofx .hp-line > span, .hp-nofx .hp-fade { transform: none !important; opacity: 1 !important; animation: none !important; }

/* large screens: a bigger photo and headline so the hero feels filled, not stretched */
@media (min-width: 1500px) {
  .hp-stage { width: min(100%, 40rem); }
  .hp-h1 { font-size: clamp(2.6rem, 5.7vw, 5.4rem); }
  .hp-hero-copy { max-width: 46rem; }
  .hp-lead { max-width: 36rem; font-size: 1.12rem; }
  .hp-hero-grid { grid-template-columns: 1fr 1fr; min-height: min(52rem, calc(100vh - 9rem)); }
}
@media (min-width: 1500px) {
  .hp-frame-in img { aspect-ratio: 4 / 3.55; }
  .hp-h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
  .hp-lead { max-width: 38rem; }
  .hp-hero-grid { min-height: 0; padding-top: clamp(2.5rem, 4vw, 5rem); padding-bottom: clamp(5.5rem, 7vw, 8rem); }
}

/* ---------------------------------------------------------------- inner pages (About, Courses, Contact) */
.hp-hero.hp-phero { padding: clamp(3.25rem, 7vw, 5.75rem) 0 clamp(3.5rem, 7vw, 6rem); text-align: center; }
.hp-phero-in { position: relative; max-width: 54rem; }
.hp-crumbs { display: flex; justify-content: center; align-items: center; gap: 0.625rem; margin-bottom: 1.25rem; font: 500 .84rem/1 var(--hx-body); color: #9fb2d8; }
.hp-crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.hp-crumbs a:hover { color: var(--hp-amber); }
.hp-crumbs b { font-weight: 500; color: #cdd9f3; }
.hp-phero .hp-pill { margin: 0 auto; }
.hp-phero .hp-h1 { margin: 1.25rem 0 1.125rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.hp-phero .hp-lead { margin: 0 auto; max-width: 40rem; }
.hp-phero .hp-actions { justify-content: center; }
.hp-pstats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; margin-top: 2.5rem; }
.hp-pstats > div { min-width: 8.5rem; padding: 1rem 1.375rem; border-radius: 1.125rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(0.5rem); transition: transform .35s var(--hp-ease), border-color .35s; }
.hp-pstats > div:hover { transform: translateY(-4px); border-color: rgba(255, 179, 71, .6); }
.hp-pstats b { display: block; font: 700 1.75rem/1 var(--hx-head); color: var(--hp-amber); }
.hp-pstats span { display: block; margin-top: 0.5rem; font: 600 .68rem/1.2 var(--hx-head); letter-spacing: .12em; text-transform: uppercase; color: #9fb2d8; }

.hp-steps.is-4 { grid-template-columns: repeat(4, 1fr); }
.hp-steps.is-4 .hp-steps-line { left: 12.5%; right: 12.5%; }
@media (max-width: 1060px) { .hp-steps.is-4 { grid-template-columns: repeat(2, 1fr); } .hp-steps.is-4 .hp-steps-line { display: none; } }
@media (max-width: 640px) { .hp-steps.is-4 { grid-template-columns: 1fr; } }

/* careers strip inside a dark section */
.hp-careers { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.hp-careers .hp-marq { margin-top: 0.5rem; background: transparent; border-top: 0; padding-top: 0; }
.hp-careers .hx-more { margin-top: 2.5rem; }

/* FAQ */
.hp-faq { background: #fff; }
.hp-faq-box { max-width: 52rem; margin: 0 auto; }
.hp-faq-list { display: grid; gap: 0.875rem; }
.hp-faq-item { border: 1px solid #e3eaf4; border-radius: 1.125rem; background: #f6f9fe; transition: border-color .3s, background .3s, box-shadow .3s; }
.hp-faq-item[open] { background: #fff; border-color: #ffd2b0; box-shadow: 0 1.5rem 2.75rem -2rem rgba(10, 27, 69, .45); }
.hp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.375rem; cursor: pointer; list-style: none; font: 600 1.02rem/1.4 var(--hx-head); color: var(--hx-ink); }
.hp-faq-item summary::-webkit-details-marker { display: none; }
.hp-faq-item summary i { flex: none; position: relative; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fff; border: 1px solid #dbe5f4; transition: background .3s, transform .3s; }
.hp-faq-item summary i::before, .hp-faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.75rem; height: 2px; margin: -1px 0 0 -0.375rem; border-radius: 2px; background: var(--hx-orange); transition: transform .3s; }
.hp-faq-item summary i::after { transform: rotate(90deg); }
.hp-faq-item[open] summary i { background: var(--hx-orange); transform: rotate(180deg); }
.hp-faq-item[open] summary i::before, .hp-faq-item[open] summary i::after { background: #fff; }
.hp-faq-item[open] summary i::after { transform: rotate(0); }
.hp-faq-item p { margin: 0; padding: 0 1.375rem 1.375rem; font: 400 .95rem/1.75 var(--hx-body); color: #5a6682; }

/* Contact */
.hp-reach { background: #fff; }
.hp-reach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.hp-reach-grid .hp-fcard p { font-size: 1rem; color: #33405e; }
.hp-reach-grid .hp-fcard p a { color: var(--hx-ink); font-weight: 600; text-decoration: none; }
.hp-reach-grid .hp-fcard p a:hover { color: var(--hx-orange); }
.hp-link { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 .86rem/1 var(--hx-head); color: var(--hx-orange); text-decoration: none; }
.hp-link svg { width: 1rem; height: 1rem; transition: transform .3s; }
.hp-link:hover svg { transform: translateX(4px); }
.hp-formsec { background: linear-gradient(180deg, #f3f6fb, #eaf0f9); }
.hp-formgrid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.hx-field textarea { width: 100%; padding: 0.8125rem 0.875rem; border: 1.5px solid #dbe3f0; border-radius: 0.625rem; background: #fff; font: 500 .95rem/1.5 var(--hx-body); color: var(--hx-ink); outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.hx-field textarea:focus { border-color: var(--hx-blue); box-shadow: 0 0 0 0.25rem rgba(10, 74, 138, .12); }
@media (max-width: 900px) { .hp-reach-grid { grid-template-columns: 1fr; } .hp-formgrid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hp-two { grid-template-columns: 1fr; } .hp-pstats > div { flex: 1 1 8rem; } }

/* ticks on the dark call-to-action panel: orange disc with a white check (the green one vanished on navy) */
.hp-cta .hx-cta-copy .hx-ticks li::before { background: var(--hp-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.875rem no-repeat; }

/* IT / Non-IT course groups */
.hp-programs.hp-alt { background: #fff; }
.hp-programs.hp-alt .hp-course { border-color: #e3eaf4; }
.hp-empty { grid-column: 1 / -1; margin: 0; padding: 2rem; text-align: center; border: 1px dashed #c9d6ec; border-radius: 1.25rem; background: rgba(255, 255, 255, .6); color: #5a6682; font: 500 1rem/1.6 var(--hx-body); }
.hp-courses:has(> article:only-child) { grid-template-columns: minmax(0, 26rem); justify-content: center; }
.hp-courses:has(> article:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 26rem)); justify-content: center; }
