/* Homepage only. Shared styles and the styles used by other pages stay unchanged. */
.qf-home {
  --qfh-bg: #020408;
  --qfh-panel: #091321;
  --qfh-cyan: #00e5ff;
  --qfh-purple: #ab8aff;
  --qfh-text: #e8f4ff;
  --qfh-muted: #b8c9dd;
  --qfh-border: #20364c;
  margin: 0;
  background: var(--qfh-bg);
  color: var(--qfh-text);
  font-family: var(--font-body);
  line-height: 1.65;
}
.qf-home *, .qf-home *::before, .qf-home *::after { box-sizing: border-box; }
.qf-home :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.qf-home :where(a, button, summary) { -webkit-tap-highlight-color: transparent; }
.qf-home a { color: var(--qfh-cyan); text-underline-offset: .25em; }
.qf-home a:hover { color: #b0f7ff; }
.qf-home :where(a, button, summary):focus-visible { outline: 2px solid var(--qfh-cyan); outline-offset: 5px; }
.qf-home :where(button, summary) { cursor: pointer; }
.qf-home :where(section, main, #community) { scroll-margin-top: 6.5rem; }
.qf-home .qfh-container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.qf-home .qfh-section { padding-block: clamp(48px, 5vw, 68px); }
.qf-home .qfh-eyebrow, .qf-home .qfh-code { font-family: var(--font-mono); font-size: .75rem; line-height: 1.6; letter-spacing: .06em; }
.qf-home .qfh-eyebrow { color: var(--qfh-cyan); margin-bottom: 18px; }
.qf-home .qfh-code { color: var(--qfh-muted); }
.qf-home h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.19; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.qf-home h3 { font-size: 1.3rem; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.qf-home p { text-wrap: pretty; }
.qf-home .qfh-section-heading { max-width: 800px; margin-bottom: 36px; }
.qf-home .qfh-section-heading > p:last-child:not(.qfh-eyebrow) { color: var(--qfh-muted); max-width: 710px; margin-top: 20px; font-size: 1.05rem; }
.qf-home .qfh-text-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; font-weight: 500; font-size: .95rem; text-decoration: none; }
.qf-home .qfh-text-link:hover { text-decoration: underline; }
.qf-home .qfh-text-link > span:last-child { flex-shrink: 0; }
.qf-home .qfh-skip { position: fixed; top: 10px; left: 16px; z-index: 20; padding: 10px 20px; background: var(--qfh-cyan); color: var(--qfh-bg); transform: translateY(-160%); border-radius: 4px; }
.qf-home .qfh-skip:focus { transform: none; }

/* Navigation */
.qf-home .qfh-header { position: sticky; top: 0; z-index: 10; background: rgba(2, 4, 8, .95); border-bottom: 1px solid var(--qfh-border); backdrop-filter: blur(16px); }
.qf-home .qfh-nav { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 80px; }
.qf-home .qfh-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--qfh-text); font-family: var(--font-display); font-size: .98rem; line-height: 1.4; font-weight: 700; text-decoration: none; }
.qf-home .qfh-brand > span { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; background: var(--qfh-cyan); border-radius: 50%; box-shadow: 0 0 12px #00e5ff55; }
.qf-home .qfh-nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.qf-home .qfh-nav-links a { color: var(--qfh-muted); font-size: .84rem; text-decoration: none; white-space: nowrap; padding-block: 12px; }
.qf-home .qfh-nav-links a:hover { color: var(--qfh-cyan); }
.qf-home .qfh-nav-links .qfh-login { display: inline-flex; align-items: center; gap: 10px; color: var(--qfh-cyan); border: 1px solid #345065; border-radius: 4px; padding: 8px 16px; }
.qf-home .qfh-menu-toggle { display: none; }

/* A compact opening with the actions immediately after the introduction. */
.qf-home .qfh-hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; gap: 48px; position: relative; padding-block: 76px 64px; }
.qf-home .qfh-hero::before { content: ''; position: absolute; inset: -80px -48px 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 80% 35%, #642de01b, transparent 65%), radial-gradient(ellipse at 10% 0%, #00e5ff0a, transparent 55%); }
.qf-home .qfh-hero-copy { min-width: 0; }
.qf-home .qfh-hero h1 { font-size: clamp(2.4rem, 4.25vw, 3.8rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; }
.qf-home .qfh-hero h1 span { color: var(--qfh-cyan); }
.qf-home .qfh-intro { color: var(--qfh-muted); font-size: 1.075rem; line-height: 1.75; max-width: 690px; margin-top: 24px; }
.qf-home .qfh-dot { display: inline-block; width: 6px; height: 6px; background: var(--qfh-cyan); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.qf-home .qfh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.qf-home .qfh-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; border: 1px solid transparent; border-radius: 4px; padding: 12px 20px; font-size: .93rem; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; transition: background .2s, border-color .2s; }
.qf-home .qfh-button-primary { background: var(--qfh-cyan); color: #03131c; }
.qf-home .qfh-button-primary:hover { color: #03131c; background: #7af1ff; }
.qf-home .qfh-button-secondary { color: var(--qfh-text); border-color: #38536b; background: #0b172580; }
.qf-home .qfh-button-secondary:hover { color: var(--qfh-text); border-color: var(--qfh-cyan); background: #0f2334; }

/* Actual programmes before the taxonomy. */
.qf-home .qfh-programme-grid, .qf-home .qfh-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.qf-home .qfh-programme { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--qfh-border); border-top: 2px solid #00e5ff80; padding: 28px 25px; border-radius: 6px; background: linear-gradient(155deg, #0d1b2d, #080f19); }
.qf-home .qfh-programme:nth-child(2) { border-top-color: #6688e9; }
.qf-home .qfh-programme:nth-child(3) { border-top-color: #ab8aff; }
.qf-home .qfh-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 26px; }
.qf-home .qfh-card-top .qfh-code { font-size: .64rem; }
.qf-home .qfh-card-top > span:last-child { color: var(--qfh-purple); font: 1rem var(--font-mono); white-space: nowrap; }
.qf-home .qfh-programme h3 { min-height: 0; margin-bottom: 12px; }
.qf-home .qfh-programme > p:not(.qfh-format) { color: var(--qfh-muted); font-size: .95rem; flex-grow: 1; }
.qf-home .qfh-format { font-size: .76rem; color: #c4d5e7; border-top: 1px solid var(--qfh-border); padding-top: 18px; margin-top: 24px; }
.qf-home .qfh-programme > a { margin-top: 18px; font-size: .88rem; }
.qf-home .qfh-filetype { font-family: var(--font-mono); color: var(--qfh-muted); font-size: .65rem; border: 1px solid #3b5268; padding: 0 4px; border-radius: 2px; }
.qf-home .qfh-programme-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 28px; }
.qf-home .qfh-programme-footer > a { flex-shrink: 0; }
.qf-home .qfh-programme-footer p { color: var(--qfh-muted); font-size: .87rem; max-width: 560px; }

/* The study sequence and a user-initiated lecture preview. */
.qf-home .qfh-study { background: #08111c; border-block: 1px solid var(--qfh-border); }
.qf-home .qfh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; }
.qf-home .qfh-steps li { min-width: 0; border-top: 1px solid #355064; padding-top: 22px; }
.qf-home .qfh-step-number { display: block; color: var(--qfh-cyan); font: .8rem var(--font-mono); margin-bottom: 20px; }
.qf-home .qfh-steps h3 { font-size: 1.2rem; margin-bottom: 14px; }
.qf-home .qfh-steps p { color: var(--qfh-muted); font-size: .95rem; }
.qf-home .qfh-lecture { display: flex; align-items: center; gap: 20px; border: 1px solid #35516a; padding: 24px; border-radius: 6px; margin-top: 40px; background: #0d1a2b; }
.qf-home .qfh-play { display: flex; align-items: center; justify-content: center; background: #112d3d; color: var(--qfh-cyan); border: 1px solid #3d7583; border-radius: 50%; width: 52px; height: 52px; flex-shrink: 0; }
.qf-home .qfh-play:hover { background: #194659; }
.qf-home .qfh-lecture > div { flex: 1; min-width: 0; }
.qf-home .qfh-lecture h3 { font-size: 1.05rem; margin-top: 5px; }
.qf-home .qfh-lecture > .qfh-text-link { flex-shrink: 0; font-size: .88rem; }

/* Compact fields and community links replace the large application cards. */
.qf-home .qfh-context { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.qf-home .qfh-context h2 { font-size: clamp(1.8rem, 2.7vw, 2.2rem); }
.qf-home .qfh-context h2 + p { margin-top: 20px; color: var(--qfh-muted); font-size: .97rem; }
.qf-home .qfh-community { border-left: 1px solid var(--qfh-border); padding-left: 40px; min-width: 0; }
.qf-home .qfh-community-link { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 18px; border-bottom: 1px solid var(--qfh-border); color: var(--qfh-text); font-size: .95rem; text-decoration: none; }
.qf-home .qfh-community-link small { display: block; color: var(--qfh-muted); font-size: .8rem; margin-top: 4px; }
.qf-home .qfh-impact-link { margin-top: 22px; font-size: .86rem; }

/* Monthly membership overview with direct checkout links. */
.qf-home .qfh-plans { background: #07101a; border-block: 1px solid var(--qfh-border); }
.qf-home .qfh-billing { font: .76rem var(--font-mono); color: var(--qfh-muted); margin-bottom: 20px; }
.qf-home .qfh-plan { display: flex; flex-direction: column; min-width: 0; background: #0b1624; border: 1px solid var(--qfh-border); border-radius: 6px; padding: 28px 24px; }
.qf-home .qfh-plan-plus { border-color: #3b8295; background: linear-gradient(165deg, #0d2232, #0b1624 60%); }
.qf-home .qfh-plan > .qfh-code { color: var(--qfh-cyan); font-size: .68rem; }
.qf-home .qfh-plan h3 { min-height: 2.7em; margin-top: 16px; font-size: 1.2rem; }
.qf-home .qfh-price { font-size: 2.4rem; font-weight: 500; letter-spacing: -.055em; line-height: 1.3; margin-top: 14px; }
.qf-home .qfh-price > span { font-size: .85rem; color: var(--qfh-muted); font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.qf-home .qfh-plan-intro { color: var(--qfh-muted); font-size: .9rem; margin-top: 12px; }
.qf-home .qfh-plan ul { list-style: none; margin-block: 14px 20px; font-size: .9rem; flex-grow: 1; }
.qf-home .qfh-plan li { position: relative; padding-left: 20px; margin-block: 12px; color: #d5e2f1; }
.qf-home .qfh-plan li::before { content: '✓'; position: absolute; left: 0; color: var(--qfh-cyan); font-size: .8rem; }
.qf-home .qfh-plan > .qfh-button { width: 100%; padding-inline: 10px; font-size: .85rem; }
.qf-home .qfh-plan-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-top: 24px; font-size: .85rem; }
.qf-home .qfh-plan-footer p { color: var(--qfh-muted); max-width: 600px; }
.qf-home .qfh-plan-footer > a { flex-shrink: 0; }

/* Native details/summary retains keyboard and screen-reader behaviour. */
.qf-home .qfh-faq { display: grid; grid-template-columns: .8fr 1.4fr; gap: 70px; }
.qf-home .qfh-faq-list { min-width: 0; border-top: 1px solid var(--qfh-border); }
.qf-home .qfh-faq details { border-bottom: 1px solid var(--qfh-border); }
.qf-home .qfh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; padding: 22px 4px; font-size: .99rem; font-weight: 500; }
.qf-home .qfh-faq summary::-webkit-details-marker { display: none; }
.qf-home .qfh-faq summary::after { content: '+'; font: 1.25rem var(--font-mono); color: var(--qfh-cyan); flex-shrink: 0; }
.qf-home .qfh-faq details[open] summary::after { content: '−'; }
.qf-home .qfh-faq summary:hover { color: var(--qfh-cyan); }
.qf-home .qfh-faq details > div { padding: 0 32px 24px 4px; color: var(--qfh-muted); font-size: .95rem; }

/* One final choice, then a small footer. */
.qf-home .qfh-final { text-align: center; border-top: 1px solid var(--qfh-border); background: radial-gradient(ellipse at 50% 100%, #7b2fff19, transparent 65%); }
.qf-home .qfh-final h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.qf-home .qfh-final .qfh-container > p:not(.qfh-eyebrow) { max-width: 600px; margin: 24px auto 0; color: var(--qfh-muted); }
.qf-home .qfh-final .qfh-actions { justify-content: center; }
.qf-home .qfh-footer { background: #060d16; border-top: 1px solid var(--qfh-border); padding-top: 48px; }
.qf-home .qfh-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 65px; padding-bottom: 40px; }
.qf-home .qfh-footer-grid > div > p { margin-top: 16px; color: var(--qfh-muted); font-size: .85rem; }
.qf-home .qfh-footer h2 { font-size: .9rem; margin-bottom: 16px; letter-spacing: 0; }
.qf-home .qfh-footer ul { list-style: none; }
.qf-home .qfh-footer li { margin-block: 7px; }
.qf-home .qfh-footer li a { font-size: .84rem; color: var(--qfh-muted); text-decoration: none; }
.qf-home .qfh-footer li a:hover { color: var(--qfh-cyan); text-decoration: underline; }
.qf-home .qfh-social { display: flex; gap: 22px; margin-top: 22px; }
.qf-home .qfh-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 32px; color: var(--qfh-muted); font-size: 1.2rem; }
.qf-home .qfh-copyright { padding-block: 20px; border-top: 1px solid var(--qfh-border); font-size: .75rem; color: var(--qfh-muted); }

/* Native modal: inert background, focus containment, Escape and focus return. */
.qf-home .qfh-video-dialog { width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #3b6a81; border-radius: 8px; color: var(--qfh-text); background: #0b1624; }
.qf-home .qfh-video-dialog::backdrop { background: #020408e8; backdrop-filter: blur(5px); }
.qf-home .qfh-video-header { display: flex; align-items: flex-start; gap: 24px; justify-content: space-between; margin-bottom: 20px; }
.qf-home .qfh-video-header h2 { font-size: 1.2rem; line-height: 1.5; letter-spacing: -.01em; }
.qf-home .qfh-close-video { width: 44px; height: 44px; flex-shrink: 0; background: #13293a; color: var(--qfh-text); border: 1px solid #3b6a81; border-radius: 4px; font-size: 1.5rem; line-height: 1; }
.qf-home .qfh-video-frame { aspect-ratio: 16 / 9; background: #020408; }
.qf-home .qfh-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.qf-home.qfh-modal-open { overflow: hidden; }

@media (max-width: 1180px) {
  .qf-home .qfh-nav { gap: 20px; }
  .qf-home .qfh-nav-links { gap: 15px; }
  .qf-home .qfh-brand { font-size: .86rem; }
  .qf-home .qfh-hero { gap: 24px; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  .qf-home .qfh-context { gap: 40px; }
}
@media (max-width: 1024px) {
  .qf-home .qfh-container { width: calc(100% - 64px); }
  .qf-home .qfh-nav { min-height: 72px; }
  .qf-home .qfh-brand { font-size: .98rem; }
  .qf-home .qfh-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; color: var(--qfh-text); background: #0d1a2b; border: 1px solid #38536b; border-radius: 4px; }
  .qf-home .qfh-nav-links { display: flex; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 32px 24px; background: #060d16; border-bottom: 1px solid var(--qfh-border); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .qf-home .qfh-nav-links[hidden] { display: none; }
  .qf-home .qfh-nav-links a { display: block; padding: 12px 8px; font-size: 1rem; }
  .qf-home .qfh-nav-links .qfh-login { margin-top: 8px; }
  .qf-home .qfh-hero { grid-template-columns: 1fr; padding-block: 60px; }
  .qf-home .qfh-hero h1 { font-size: clamp(2.6rem, 6.2vw, 3.5rem); }
  .qf-home .qfh-hero::before { inset-inline: -32px; }
  .qf-home .qfh-hero-copy { max-width: 760px; }
        .qf-home .qfh-programme-grid, .qf-home .qfh-plan-grid { gap: 12px; }
  .qf-home .qfh-programme, .qf-home .qfh-plan { padding: 24px 18px; }
  .qf-home .qfh-card-top .qfh-code { font-size: .6rem; }
  .qf-home .qfh-card-top > span:last-child { display: none; }
  .qf-home .qfh-steps { gap: 24px; }
  .qf-home .qfh-lecture { flex-wrap: wrap; }
  .qf-home .qfh-lecture > .qfh-text-link { margin-left: 72px; }
  .qf-home .qfh-context { gap: 30px; }
  .qf-home .qfh-community { padding-left: 28px; }
  .qf-home .qfh-plan-footer { flex-direction: column; gap: 12px; }
  .qf-home .qfh-plan h3 { font-size: 1.08rem; min-height: 2.7em; }
  .qf-home .qfh-plan-intro { min-height: 0; }
  .qf-home .qfh-faq { grid-template-columns: .8fr 1.3fr; gap: 40px; }
  .qf-home .qfh-footer-grid { gap: 30px; }
}
@media (max-width: 800px) {
  .qf-home .qfh-programme-grid, .qf-home .qfh-plan-grid { grid-template-columns: 1fr; gap: 18px; }
  .qf-home .qfh-programme, .qf-home .qfh-plan { padding: 28px; }
  .qf-home .qfh-programme h3, .qf-home .qfh-plan h3, .qf-home .qfh-plan-intro { min-height: 0; }
  .qf-home .qfh-programme h3 { font-size: 1.4rem; }
  .qf-home .qfh-card-top .qfh-code { font-size: .7rem; }
  .qf-home .qfh-card-top > span:last-child { display: inline; }
  .qf-home .qfh-card-top { margin-bottom: 20px; }
  .qf-home .qfh-programme-footer { flex-direction: column; gap: 14px; }
  .qf-home .qfh-steps { grid-template-columns: 1fr; gap: 28px; }
  .qf-home .qfh-steps h3 br { display: none; }
  .qf-home .qfh-step-number { margin-bottom: 12px; }
  .qf-home .qfh-context { grid-template-columns: 1fr; gap: 48px; }
  .qf-home .qfh-community { border-left: 0; border-top: 1px solid var(--qfh-border); padding: 36px 0 0; }
  .qf-home .qfh-faq { grid-template-columns: 1fr; gap: 0; }
  .qf-home .qfh-plan > .qfh-button { max-width: 360px; margin-top: auto; }
  .qf-home .qfh-plan ul { margin-top: 12px; }
  .qf-home .qfh-plan > .qfh-code { font-size: .75rem; }
  .qf-home .qfh-plan h3 { font-size: 1.3rem; }
  .qf-home .qfh-plan-intro { font-size: 1rem; }
  .qf-home .qfh-plan li { font-size: .97rem; }
  .qf-home .qfh-footer-grid { grid-template-columns: 1fr 1fr; }
  .qf-home .qfh-footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .qf-home .qfh-container { width: calc(100% - 40px); }
  .qf-home .qfh-section { padding-block: 44px; }
  .qf-home .qfh-hero { padding-block: 40px 44px; }
  .qf-home .qfh-hero::before { inset-inline: -20px; }
  .qf-home .qfh-hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); line-height: 1.12; }
  .qf-home .qfh-intro { font-size: 1rem; line-height: 1.7; margin-top: 20px; }
  .qf-home .qfh-eyebrow { font-size: .67rem; margin-bottom: 16px; }
  .qf-home .qfh-hero .qfh-actions { margin-top: 24px; }
  .qf-home .qfh-actions { flex-direction: column; }
  .qf-home .qfh-button { width: 100%; min-height: 50px; }
    .qf-home .qfh-brand { max-width: 236px; font-size: .88rem; }
  .qf-home .qfh-nav { gap: 16px; }
  .qf-home .qfh-nav-links { padding-inline: 20px; }
  .qf-home .qfh-section-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .qf-home .qfh-evidence { padding-block: 28px 36px; }
        .qf-home .qfh-section-heading { margin-bottom: 28px; }
  .qf-home .qfh-section-heading > p:last-child:not(.qfh-eyebrow) { font-size: .98rem; }
  .qf-home h2 { font-size: 1.9rem; }
  .qf-home h2 br { display: none; }
  .qf-home .qfh-programme, .qf-home .qfh-plan { padding: 24px; }
  .qf-home .qfh-programme h3 { font-size: 1.25rem; }
  .qf-home .qfh-format { font-size: .72rem; }
  .qf-home .qfh-lecture { padding: 20px; gap: 16px; }
  .qf-home .qfh-lecture > div { flex-basis: calc(100% - 68px); }
  .qf-home .qfh-lecture > .qfh-text-link { margin-left: 0; }
  .qf-home .qfh-lecture .qfh-code { font-size: .64rem; }
  .qf-home .qfh-lecture h3 { font-size: .95rem; }
  .qf-home .qfh-billing { font-size: .69rem; line-height: 1.8; }
  .qf-home .qfh-faq summary { font-size: .95rem; }
  .qf-home .qfh-faq details > div { font-size: .93rem; padding-right: 16px; }
  .qf-home .qfh-final h2 { font-size: 2.2rem; }
  .qf-home .qfh-final .qfh-actions { margin-inline: auto; max-width: 400px; }
  .qf-home .qfh-footer-grid { gap: 30px 18px; }
  .qf-home .qfh-footer li a { font-size: .8rem; }
  .qf-home .qfh-video-dialog { padding: 16px; }
  .qf-home .qfh-video-header { gap: 12px; }
  .qf-home .qfh-video-header h2 { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qf-home *, .qf-home *::before, .qf-home *::after { transition: none !important; animation: none !important; }
}

/* Restored from the pre-redesign index.css: grid, stars, nebulae, streams,
   gradient headings, equation corners and glass panels. All remain home-scoped. */
.qf-home { --qfh-violet: #7b2fff; --qfh-blue: #4c9fff; }
.qf-home::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.qf-home::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.08) 2px, rgba(0,0,0,.08) 4px);
}
.qf-home .qfh-atmosphere { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.qf-home #starfield { position: absolute; inset: 0; opacity: .48; }
.qf-home .star { position: absolute; background: white; border-radius: 50%; animation: qfh-star-pulse var(--dur, 4s) infinite ease-in-out var(--delay, 0s); }
.qf-home .nebula { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; animation: qfh-nebula-drift 25s infinite ease-in-out alternate; }
.qf-home .nebula-1 { width: 600px; height: 600px; top: -200px; left: -150px; background: radial-gradient(circle, rgba(123,47,255,.18), transparent 70%); }
.qf-home .nebula-2 { width: 500px; height: 500px; top: 30%; right: -100px; background: radial-gradient(circle, rgba(0,229,255,.12), transparent 70%); animation-delay: -8s; }
.qf-home .nebula-3 { width: 400px; height: 400px; bottom: 10%; left: 30%; background: radial-gradient(circle, rgba(255,45,107,.1), transparent 70%); animation-delay: -16s; }
@keyframes qfh-star-pulse { 0%, 100% { opacity: .15; transform: scale(1); } 50% { opacity: .9; transform: scale(1.5); } }
@keyframes qfh-nebula-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.1); } }
.qf-home main, .qf-home .qfh-footer { position: relative; z-index: 1; }
.qf-home .qfh-header { background: rgba(2,4,8,.78); backdrop-filter: blur(24px); border-bottom-color: rgba(0,229,255,.2); box-shadow: 0 0 40px rgba(0,229,255,.05); }
.qf-home .qfh-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 90px; height: 2px; background: linear-gradient(90deg, var(--qfh-cyan), transparent); }
.qf-home h2 { font-weight: 700; letter-spacing: -.035em; }
.qf-home .qfh-accent, .qf-home .qfh-hero h1 span {
  display: inline-block; background: linear-gradient(90deg, rgba(232,244,255,.98), var(--qfh-cyan) 50%, var(--qfh-violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 10px rgba(0,229,255,.1));
}

/* The original centred title and equation composition, with a shorter opening. */
.qf-home .qfh-hero { display: flex; flex-direction: column; gap: 0; align-items: center; padding-block: 48px 36px; text-align: center; }
.qf-home .qfh-hero::before { display: none; }
.qf-home .qfh-hero-copy { position: relative; z-index: 1; width: 100%; max-width: 950px; }
.qf-home .qfh-hero h1 { max-width: 950px; margin-inline: auto; font-size: clamp(2.9rem,5.6vw,4.2rem); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.qf-home .qfh-intro { max-width: 780px; margin: 22px auto 0; line-height: 1.7; }
.qf-home .qfh-hero .qfh-actions { justify-content: center; margin-top: 24px; }
.qf-home .data-streams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .55; }
.qf-home .stream-line { position: absolute; width: 1px; background: linear-gradient(180deg, transparent, var(--qfh-cyan), transparent); animation: qfh-stream-flow var(--d,6s) infinite linear var(--delay,0s); opacity: .3; }
@keyframes qfh-stream-flow { 0% { transform: translateY(-100%); opacity: 0; } 10%, 90% { opacity: .4; } 100% { transform: translateY(100vh); opacity: 0; } }
.qf-home .qfh-original-equation { position: relative; max-width: 900px; width: 100%; min-width: 0; margin-top: 28px; padding: 10px 20px; border: 1px solid rgba(0,229,255,.15); border-radius: 6px; background: rgba(0,229,255,.03); overflow: hidden; }
.qf-home .qfh-original-equation::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--qfh-cyan), var(--qfh-violet), transparent); animation: qfh-scan-line 6s infinite linear; }
.qf-home .qfh-original-equation .equation { overflow-x: auto; overflow-y: hidden; font-size: clamp(.7rem,1.3vw,1.05rem); color: var(--qfh-text); padding: 0 4px; scrollbar-width: thin; }
.qf-home .qfh-original-equation mjx-container { max-width: none; }
.qf-home .eq-corner { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.qf-home .eq-corner.tl { top: 0; left: 0; border-top: 2px solid var(--qfh-cyan); border-left: 2px solid var(--qfh-cyan); }
.qf-home .eq-corner.tr { top: 0; right: 0; border-top: 2px solid var(--qfh-violet); border-right: 2px solid var(--qfh-violet); }
.qf-home .eq-corner.bl { bottom: 0; left: 0; border-bottom: 2px solid var(--qfh-violet); border-left: 2px solid var(--qfh-violet); }
.qf-home .eq-corner.br { bottom: 0; right: 0; border-bottom: 2px solid var(--qfh-cyan); border-right: 2px solid var(--qfh-cyan); }
@keyframes qfh-scan-line { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* Original gradient and slanted button treatment; the lighter violet keeps
   the dark button label readable across the complete gradient. */
.qf-home .qfh-button { position: relative; font-family: var(--font-body); font-weight: 700; clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%); border-radius: 4px; padding-inline: 25px; transition: transform .25s, background .25s, box-shadow .25s; }
.qf-home .qfh-button-primary { background: linear-gradient(135deg, #00e5ff, #72b4ff 55%, #ab8aff); color: #020408; }
.qf-home .qfh-button-primary:hover { background: linear-gradient(135deg, #63f0ff, #a0caff 55%, #c4acff); color: #020408; box-shadow: 0 10px 40px rgba(0,229,255,.3); transform: translateY(-2px); }
.qf-home .qfh-button-secondary { background: rgba(0,229,255,.025); border-color: rgba(0,229,255,.4); }
.qf-home .qfh-button-secondary:hover { color: var(--qfh-cyan); background: rgba(0,229,255,.1); box-shadow: 0 8px 28px rgba(0,229,255,.14); transform: translateY(-2px); }
.qf-home .qfh-button:focus-visible { clip-path: none; outline: 2px solid white; outline-offset: 4px; }

/* Original translucent panels and gradient edge details, with compact spacing. */
.qf-home .qfh-section-heading { margin-bottom: 26px; }
.qf-home .qfh-section-heading > p:last-child:not(.qfh-eyebrow) { margin-top: 16px; }
.qf-home .qfh-programme, .qf-home .qfh-plan { position: relative; padding: 22px; background: rgba(13,26,46,.6); border: 1px solid rgba(0,229,255,.2); border-radius: 8px; backdrop-filter: blur(10px); box-shadow: 0 10px 36px rgba(0,0,0,.15); }
.qf-home .qfh-programme::before, .qf-home .qfh-plan::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 8px 8px 0 0; background: linear-gradient(90deg, transparent, var(--qfh-cyan), var(--qfh-violet), transparent); }
.qf-home .qfh-programme:hover, .qf-home .qfh-plan:hover { border-color: rgba(0,229,255,.4); box-shadow: 0 0 28px rgba(0,229,255,.07); }
.qf-home .qfh-card-top { justify-content: flex-end; margin-bottom: 10px; }
.qf-home .qfh-programme > p:not(.qfh-format) { flex-grow: 0; }
.qf-home .qfh-programme .qfh-format { margin-top: auto; padding-top: 16px; border-top: 0; }
.qf-home .qfh-programme > a { margin-top: 12px; }
.qf-home .qfh-programme-footer { margin-top: 20px; }
.qf-home .qfh-study { background: rgba(5,10,20,.5); border: 0; }
.qf-home .qfh-steps { gap: 22px; }
.qf-home .qfh-steps li { position: relative; padding: 20px; background: rgba(13,26,46,.5); border: 1px solid rgba(0,229,255,.15); border-radius: 6px; backdrop-filter: blur(10px); }
.qf-home .qfh-step-number { margin-bottom: 12px; text-shadow: 0 0 12px rgba(0,229,255,.35); }
.qf-home .qfh-steps h3 { font-size: 1.12rem; }
.qf-home .qfh-lecture { margin-top: 24px; padding: 20px; background: rgba(13,26,46,.65); border-color: rgba(0,229,255,.3); }
.qf-home .qfh-play { box-shadow: 0 0 24px rgba(0,229,255,.12); }
.qf-home .qfh-context { gap: 40px; }
.qf-home .qfh-community { border: 1px solid rgba(123,47,255,.3); border-radius: 8px; padding: 24px; background: rgba(123,47,255,.05); backdrop-filter: blur(10px); }
.qf-home .qfh-plans { background: rgba(5,10,20,.45); border: 0; }
.qf-home .qfh-plan h3 { margin-top: 0; min-height: 2.7em; }
.qf-home .qfh-plan .qfh-price { margin-top: 8px; font-size: 2.2rem; }
.qf-home .qfh-plan-intro { min-height: 0; }
.qf-home .qfh-plan li { margin-block: 9px; }
.qf-home .qfh-plan-plus { border-color: rgba(0,229,255,.45); background: linear-gradient(145deg, rgba(0,229,255,.075), rgba(123,47,255,.075)); box-shadow: 0 0 35px rgba(0,229,255,.065); }
.qf-home .qfh-plan > .qfh-button { margin-top: auto; }
.qf-home .qfh-custom-training { flex-direction: row; align-items: center; gap: 28px; margin-top: 20px; padding: 20px 22px; }
.qf-home .qfh-custom-training > div { flex: 1; min-width: 0; }
.qf-home .qfh-custom-training h3 { min-height: 0; font-size: 1.12rem; }
.qf-home .qfh-custom-training p { max-width: 680px; margin-top: 8px; color: var(--qfh-muted); font-size: .9rem; }
.qf-home .qfh-custom-training > .qfh-button { flex: 0 0 auto; width: auto; margin-top: 0; padding-inline: 20px; }
@media (max-width: 800px) {
  .qf-home .qfh-custom-training { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 600px) {
  .qf-home .qfh-custom-training > .qfh-button { width: 100%; max-width: none; }
}
.qf-home .qfh-faq { gap: 40px; }
.qf-home .qfh-faq-list { border-top-color: rgba(0,229,255,.3); }
.qf-home .qfh-final { border-top: 0; background: radial-gradient(ellipse at center,rgba(0,229,255,.05),transparent 70%); padding-top: 24px; }
.qf-home .qfh-final .qfh-container { position: relative; padding: 36px 28px; background: rgba(13,26,46,.65); border: 1px solid rgba(0,229,255,.25); clip-path: polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,30px 100%,0 calc(100% - 30px)); backdrop-filter: blur(20px); }
.qf-home .qfh-final .qfh-container::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,var(--qfh-cyan),var(--qfh-violet),#ff2d6b); }
.qf-home .qfh-footer { background: rgba(5,10,20,.8); border-color: rgba(0,229,255,.15); }

/* All six original accounts, on the existing Owl Carousel implementation.
   Content is fully visible if JS fails; controls appear only after init. */
.qf-home .qfh-evidence { padding-block: 24px 32px; border: 0; }
.qf-home .qfh-evidence h2 { font-size: clamp(1.9rem,3vw,2.65rem); font-weight: 700; }
.qf-home .qfh-evidence-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 900px; margin: 0 auto 20px; }
.qf-home .qfh-carousel { max-width: 900px; margin-inline: auto; }
.qf-home .qfh-carousel:focus-visible { outline: 2px solid var(--qfh-cyan); outline-offset: 6px; border-radius: 8px; }
.qf-home .qfh-testimonial-track:not(.owl-loaded) { display: block; }
.qf-home .qfh-testimonial-track:not(.owl-loaded) .qfh-slide + .qfh-slide { margin-top: 20px; }
.qf-home .qfh-testimonial-track.owl-loaded { position: relative; background: rgba(13,26,46,.7); border: 1px solid rgba(0,229,255,.2); border-radius: 8px; overflow: hidden; backdrop-filter: blur(15px); }
.qf-home .qfh-testimonial-track.owl-loaded::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; z-index: 2; background: linear-gradient(90deg,var(--qfh-cyan),var(--qfh-violet),#ff2d6b); }
.qf-home .qfh-slide { padding: 26px 36px; margin: 0; text-align: center; }
.qf-home .qfh-slide .student-photo { width: 72px; height: 72px; margin: 0 auto 16px; border: 2px solid rgba(0,229,255,.4); box-shadow: 0 0 26px rgba(0,229,255,.2); border-radius: 50%; overflow: hidden; }
.qf-home .qfh-slide .student-photo img { width: 100%; height: 100%; object-fit: cover; }
.qf-home .qfh-slide .testimonial-text { font-size: 1rem; color: #d6e5f7; line-height: 1.78; margin: 0 auto 18px; max-width: 66ch; font-style: italic; }
.qf-home .qfh-slide .testimonial-text strong { color: var(--qfh-cyan); font-style: normal; font-weight: 500; }
.qf-home .qfh-slide .student-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.qf-home .qfh-slide .student-info p { font-family: var(--font-mono); font-size: .75rem; color: var(--qfh-muted); line-height: 1.7; }
.qf-home .qfh-testimonial-track .owl-stage-outer { touch-action: pan-y; }
.qf-home .qfh-testimonial-track .owl-video-play-icon { background: none; }
.qf-home .qfh-slider-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 16px; }
.qf-home .qfh-slider-controls[hidden] { display: none; }
.qf-home .qfh-slider-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--qfh-cyan); background: rgba(13,26,46,.8); border: 1px solid rgba(0,229,255,.3); border-radius: 4px; font-size: 1.2rem; }
.qf-home .qfh-slider-button:hover { border-color: var(--qfh-cyan); background: rgba(0,229,255,.12); box-shadow: 0 0 15px rgba(0,229,255,.2); }
.qf-home .qfh-slider-dots { display: flex; align-items: center; gap: 2px; }
.qf-home .qfh-slide-dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; background: transparent; border: 0; }
.qf-home .qfh-slide-dot > span { width: 22px; height: 3px; border-radius: 2px; background: #44617c; }
.qf-home .qfh-slide-dot[aria-current="true"] > span { background: var(--qfh-cyan); box-shadow: 0 0 8px rgba(0,229,255,.4); }
.qf-home .qfh-slider-status { margin-top: 4px; text-align: center; font: .75rem var(--font-mono); color: var(--qfh-muted); }
@media (max-width: 1024px) {
  .qf-home .qfh-hero h1 { font-size: clamp(2.6rem,6.2vw,3.5rem); }
  .qf-home .qfh-plan h3 { min-height: 0; }
  .qf-home .qfh-original-equation { max-width: 760px; }
}
@media (max-width: 800px) {
  .qf-home .qfh-programme, .qf-home .qfh-plan { padding: 22px; }
  .qf-home .qfh-community { padding: 22px; }
  .qf-home .qfh-steps { gap: 16px; }
  .qf-home .qfh-context { gap: 28px; }
}
@media (max-width: 600px) {
  .qf-home .qfh-hero { padding-block: 34px 22px; }
  .qf-home .qfh-hero h1 { font-size: clamp(2.1rem,9vw,2.7rem); line-height: 1.1; }
  .qf-home .qfh-intro { margin-top: 18px; }
  .qf-home .qfh-original-equation { padding: 8px 12px; margin-top: 22px; }
  .qf-home .qfh-original-equation .equation { font-size: .65rem; }
  .qf-home .qfh-original-equation .equation { scrollbar-width: none; }
  .qf-home .qfh-original-equation .equation::-webkit-scrollbar { display: none; }
  .qf-home .qfh-evidence { padding-block: 22px 28px; }
  .qf-home .qfh-evidence-top { align-items: center; text-align: center; gap: 14px; }
  .qf-home .qfh-evidence h2 { font-size: 1.9rem; }
  .qf-home .qfh-slide { padding: 24px 20px; }
  .qf-home .qfh-slide .testimonial-text { font-size: .95rem; }
  .qf-home .qfh-slider-controls { gap: 9px; }
  .qf-home .qfh-slide-dot { width: 30px; }
  .qf-home .qfh-slider-dots { gap: 0; }
  .qf-home .qfh-final .qfh-container { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .qf-home .data-streams { display: none; }
  .qf-home .star { opacity: .2; }
  .qf-home .qfh-button:hover { transform: none; }
  .qf-home .qfh-testimonial-track .owl-stage, .qf-home .qfh-testimonial-track .owl-height { transition: none !important; }
}

/* Five programme highlights: three foundations, then two equal-width cards. */
.qf-home .qfh-programme-grid.qfh-programme-highlights {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.qf-home .qfh-programme-highlights > .qfh-programme { grid-column: span 2; }
.qf-home .qfh-programme-highlights > .qfh-programme:nth-child(n+4) { grid-column: span 3; }
.qf-home .qfh-programme-highlights .qfh-card-top { justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.qf-home .qfh-card-top .qfh-programme-category {
  color: var(--qfh-cyan);
  font: .7rem/1.5 var(--font-mono);
  white-space: normal;
}
.qf-home .qfh-programme-focus .qfh-programme-category { color: #bfa6ff; }
.qf-home .qfh-programme-specialisation .qfh-programme-category { color: #94c8ff; }
.qf-home .qfh-programme-highlights > .qfh-programme > .qfh-text-link { margin-top: auto; padding-top: 18px; }
.qf-home .qfh-programme-highlights > .qfh-programme > p strong { font-weight: 500; color: var(--qfh-text); }
@media (max-width: 1100px) {
  .qf-home .qfh-programme-grid.qfh-programme-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .qf-home .qfh-programme-highlights > .qfh-programme,
  .qf-home .qfh-programme-highlights > .qfh-programme:nth-child(n+4) { grid-column: auto; }
  .qf-home .qfh-programme-highlights > .qfh-programme:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .qf-home .qfh-programme-grid.qfh-programme-highlights { grid-template-columns: minmax(0, 1fr); }
  .qf-home .qfh-programme-highlights > .qfh-programme:last-child { grid-column: auto; }
}

/* Applications uses the space released by the removed community card. */
.qf-home .qfh-context.qfh-applications { display: block; padding-block: 40px; }
.qf-home .qfh-applications .qfh-directions { width: 100%; }

/* The recovered Substack iframe is sized here; its internal styles stay owned
   by Substack. The direct subscription link remains outside the iframe. */
.qf-home .qfh-footer-grid { grid-template-columns: 1.15fr .8fr .9fr minmax(360px, 1.7fr); gap: 28px; }
.qf-home .qfh-footer-grid > * { min-width: 0; }
.qf-home .qfh-footer-subscribe { min-width: 0; }
.qf-home .qfh-footer-subscribe h2 { font-size: .95rem; line-height: 1.5; }
.qf-home .qfh-substack-embed { display: block; width: 100%; max-width: 100%; height: 320px; border: 1px solid rgba(0,229,255,.2); border-radius: 6px; background: transparent; }
.qf-home .qfh-subscribe-alternative { margin-top: 14px; font-size: .82rem; }
@media (max-width: 1150px) {
  .qf-home .qfh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 800px) {
  .qf-home .qfh-footer-subscribe { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .qf-home .qfh-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .qf-home .qfh-footer-grid > * { grid-column: 1 / -1; }
  .qf-home .qfh-context.qfh-applications { padding-block: 32px; }
}

/* Applications: compact, non-interactive cards with always-visible text. */
.qf-home .qfh-application-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin-block: 22px; }
.qf-home .qfh-application-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px; background: rgba(13,26,46,.62); border: 1px solid rgba(0,229,255,.2); border-radius: 6px; }
.qf-home .qfh-application-card::before { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: linear-gradient(90deg, transparent, var(--qfh-cyan), var(--qfh-violet), transparent); }
.qf-home .qfh-application-card:hover { border-color: rgba(0,229,255,.4); box-shadow: 0 0 18px rgba(0,229,255,.045); }
.qf-home .qfh-application-card h3 { font-size: 1.04rem; line-height: 1.35; margin: 0; }
.qf-home .qfh-application-details { color: #c9d9eb; font-size: .9rem; line-height: 1.6; margin: 0; }
@media (max-width: 1000px) {
  .qf-home .qfh-application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .qf-home .qfh-application-grid { grid-template-columns: minmax(0, 1fr); }
}
