/* Reference-inspired light theme. Layout and assessment styles remain in styles.css. */
:root {
  color-scheme: light;
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --bg-mocha-deep: #f8f9fb;
  --bg-mocha-soft: #f3f4f7;
  --color-bg: #f8f9fb;
  --color-bg-soft: #f3f4f7;
  --color-bg-deep: #eef0f5;
  --color-bg-hero-end: #f8f9fb;
  --color-text: #15161a;
  --color-text-muted: #50545f;
  --color-heading: #08090b;
  --color-subtle: #626773;
  --color-button-text-dark: #fff;
  --color-sapphire-deep: #ecebf9;
  --color-sapphire-mid: #e3e1fb;
  --color-sapphire: #5144df;
  --color-sapphire-bright: #5747eb;
  --color-sapphire-light: #4635d0;
  --color-copper: #5144df;
  --color-champagne: #5144df;
  --color-champagne-strong: #5144df;
  --color-champagne-light: #4635d0;
  --color-primary: #5747eb;
  --color-primary-strong: #4635d0;
  --color-primary-soft: #eeecff;
  --color-primary-tint: #f2f0ff;
  --color-primary-softer: #f6f5ff;
  --color-primary-hover: #e8e5ff;
  --color-primary-glow: transparent;
  --color-accent: #5144df;
  --color-accent-strong: #4635d0;
  --color-accent-soft: #eeecff;
  --color-success: #187346;
  --color-success-soft: #e8f5ed;
  --color-warning: #815014;
  --color-warning-soft: #fff4df;
  --color-warning-glow: transparent;
  --color-surface: #fff;
  --color-surface-strong: #fff;
  --color-surface-solid: #fff;
  --color-card: #fff;
  --color-card-mid: #f5f6fa;
  --color-card-hover: #f5f4fe;
  --color-card-strong: #f0f1f6;
  --color-modal-overlay: rgba(19, 22, 33, .5);
  --color-border: #dfe1e8;
  --color-border-strong: #b9b8cf;
  --color-primary-border: #c4bdf8;
  --color-accent-border: #d5d0f8;
  --color-success-border: #abd2b9;
  --color-warning-border: #e7c995;
  --panel-surface: #fff;
  --panel-surface-2: #f5f6fa;
  --panel-border-copper: #dfe1e8;
  --panel-border-soft: #e7e8ee;
  --panel-glow-sapphire: transparent;
  --panel-glow-copper: transparent;
  --panel-shadow: 0 10px 35px rgba(25, 28, 50, .04);
  --panel-inner-depth: none;
  --panel-inner-depth-soft: none;
  --panel-inner-depth-strong: none;
  --glass-panel-bg: linear-gradient(#fff, #fff);
  --glass-panel-bg-strong: linear-gradient(#fff, #fff);
  --glass-panel-highlight: none;
  --glass-shadow-soft: none;
  --glass-shadow-strong: none;
  --nav-glass-bg: transparent;
  --nav-glass-bg-hover: #efedf9;
  --nav-glass-border: transparent;
  --nav-glass-border-hover: transparent;
  --nav-glass-shadow: none;
  --cta-surface: #f0eff9;
  --cta-border: #dfdceb;
  --cta-highlight: transparent;
  --gradient-bg: linear-gradient(#f8f9fb, #f8f9fb);
  --gradient-hero: linear-gradient(#f8f9fb, #f8f9fb);
  --gradient-card: linear-gradient(#fff, #fff);
  --gradient-panel: linear-gradient(#fff, #fff);
  --gradient-button-primary: linear-gradient(160deg, #16181b, #030405);
  --gradient-button-secondary: linear-gradient(#fff, #fff);
  --shadow-soft: 0 12px 40px rgba(25,28,50,.05);
  --shadow-modal: 0 25px 80px rgba(20,22,35,.18);
  --shadow-glow: none;
  --shadow-sapphire: none;
  --shadow-copper-ring: none;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-shell: 18px;
  --panel-radius-large: 16px;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body, body.guide-page { background: #f8f9fb; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: #08090b; text-shadow: none !important; }
h2 { letter-spacing: -.035em; }
p { text-shadow: none; }
.site-header { min-height: auto; padding-bottom: 32px; }
.nav, .guide-page .nav, .learning-page .nav { width: min(1680px, 88%); padding: 28px 0; gap: 22px; }
.brand, .guide-page .brand { color: #08090b; font-size: 23px; font-weight: 700; letter-spacing: -.065em; white-space: nowrap; }
.site-logo-image { width: 36px; height: 36px; filter: none; }
.nav-links { gap: clamp(6px, 1.4vw, 26px); }
.nav-links a, .guide-page .guide-home-link, .learning-nav-links a { border-radius: 7px; font-weight: 500; color: #24252b; padding: 9px 8px; box-shadow: none; backdrop-filter: none; }
.nav-links a::before, .nav-links a::after, .guide-home-link::before, .guide-home-link::after { content: none !important; }
.nav-links a:hover, .guide-page .guide-home-link:hover { color: #5144df; box-shadow: none; transform: none; }
.home-page .nav-links a:last-child { background: #08090b; color: #fff; border: 1px solid #5c5e63; box-shadow: inset 0 1px 3px #ffffff30; padding: 12px 24px; margin-left: 18px; }
.hero { width: min(1680px, 86%); }
.home-page .hero { grid-template-columns: 1.06fr 1fr; gap: 25px; margin: 18px auto 0; min-height: min(710px, calc(100svh - 125px)); }
.home-page .hero-text { padding: 20px 0 34px; }
.tag, .guide-page .tag { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; color: #565b67; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hero h1, body:not(.guide-page) .hero h1 { font-family: var(--font-heading); font-size: clamp(48px, 4.65vw, 88px); line-height: 1.12; font-weight: 400; letter-spacing: -.055em; max-width: 100%; margin: 32px 0 28px; color: #08090b; }
.home-page .hero h1 span { display: block; color: #6250ef; }
.hero .subtitle { font-size: clamp(17px, 1.35vw, 23px); line-height: 1.65; color: #393d46; max-width: 750px; margin: 0; }
.hero-actions { gap: 24px; margin-top: 42px; align-items: center; }
.btn, .card button, .active-test-button, .quiz-next-button, .starter-quiz-button { border-radius: 7px; font-weight: 500; letter-spacing: 0; min-height: 46px; box-shadow: none; }
.btn.primary, .card button, .active-test-button { background: var(--gradient-button-primary); border: 1px solid #5c5e63; color: #fff; box-shadow: inset 0 1px 3px #ffffff30; }
.btn.primary:hover, .card button:hover { background: #282735; color: #fff; box-shadow: 0 4px 12px #17142518; }
.btn.secondary { background: transparent; border: 1px solid #d9dae4; color: #252630; }
.btn.secondary:hover { color: #5144df; background: #efedf9; border-color: #cbc5ee; }
.hero-actions .primary { padding: 16px 25px; min-height: 58px; }
.hero-actions .secondary { border-color: transparent; padding: 14px 4px; }
.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; object-fit: contain; }
.section, .stats { width: min(1400px, 86%); }
.section { padding-top: 65px; padding-bottom: 65px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-weight: 500; font-size: clamp(28px, 3vw, 44px); line-height: 1.2; }
.section-heading p { max-width: 800px; }
.support-section { padding-top: 20px; padding-bottom: 30px; }
.start-here-hub { width: 100%; max-width: none; }
.start-here-panel { background: #fff; border: 1px solid #e1e2e9; box-shadow: none; padding: 30px 36px; }
.start-here-grid { grid-template-columns: .8fr 1.2fr; gap: 40px; }
.start-here-links { flex-direction: row; flex-wrap: wrap; }
.preview-header { color: #515563; }
.preview-header strong { color: #16171c; }
.preview-steps { margin-top: 16px; }
.preview-steps a { border-radius: 6px; background: transparent; border: 1px solid #e1e2e9; color: #555964; box-shadow: none; }
.stats { background: transparent; box-shadow: none; border-top: 1px solid #dfe1e8; border-bottom: 1px solid #dfe1e8; border-radius: 0; padding: 34px 0; margin-top: 25px; }
.stats h2 { font-family: var(--font-heading); font-weight: 400; color: #5144df; }
.card, .preview-panel, .home-process-card, .service-card, .pricing-card, .role-card, .feedback-card, .roadmap-card { box-shadow: 0 6px 24px #1e203608; border-color: #e1e2e9; }
.card:hover, .role-card:hover { box-shadow: 0 12px 30px #1e203610; }
.card::before, .card::after, .preview-panel::before, .preview-panel::after { content: none; }
.payment-review-note { background: #f0eff9; border-color: #dfdceb; }
.home-process-step { background: #eeecff; color: #5144df; box-shadow: none; }
.final-cta { background: #eeecf7; border: 1px solid #dfdceb; box-shadow: none; }
.guide-page .guide-header { padding-bottom: 22px; }
.guide-page .hero h1 { font-size: clamp(38px, 4.5vw, 68px); font-weight: 400; }
.learning-page .learning-hero h1 { font-weight: 400; }
.quiz-modal, .custom-dropdown-menu { background: #fff; color: #15161a; }
.quiz-modal-close, .test-option, .gcse-option-button, .practice-answer-option, .custom-dropdown-trigger { box-shadow: none; border-radius: 8px; }
pre, .code-block, .code-example { background: #171a26; color: #eef0f7; border-radius: 10px; }
pre code { color: inherit; background: transparent; }
footer { background: transparent; border-top: 1px solid #dfe1e8; color: #5b606b; padding: 35px 7%; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #7462f0 !important; outline-offset: 4px; }
@media (min-width: 1550px) { .home-page .hero { min-height: 690px; } }
@media (max-width: 1150px) {
  .nav, .guide-page .nav, .learning-page .nav { width: 92%; gap: 14px; }
  .brand { font-size: 21px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 12px; padding: 8px 6px; }
  .home-page .nav-links a:last-child { margin-left: 4px; padding: 10px 12px; }
  .hero-actions { gap: 12px; }
  .hero-actions .primary { padding: 14px 18px; }
}
@media (max-width: 800px) {
  .nav, .guide-page .nav, .learning-page .nav { padding: 22px 0; flex-wrap: wrap; }
  .menu-btn { display: block; margin-left: auto; border-radius: 6px; }
  .nav-links { display: none; width: 100%; position: static; background: #fff; padding: 14px; border: 1px solid #e1e2e9; border-radius: 8px; box-shadow: none; }
  .nav-links.show { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .nav-links a { font-size: 14px; }
  .home-page .nav-links a:last-child { margin-left: 0; }
  .home-page .hero { grid-template-columns: 1fr; margin-top: 30px; min-height: auto; gap: 0; }
  .home-page .hero-text { padding-bottom: 0; }
  .hero h1, body:not(.guide-page) .hero h1 { font-size: clamp(48px, 8vw, 68px); margin-top: 25px; }
  .hero-art { width: min(560px, 100%); margin: 0 auto; }
  .hero-actions { margin-top: 28px; }
  .section { padding-top: 35px; padding-bottom: 35px; }
  .start-here-grid { grid-template-columns: 1fr; gap: 24px; }
  .start-here-panel { padding: 24px; }
  .guide-page .guide-home-link { font-size: 13px; padding: 8px; }
}
@media (max-width: 480px) {
  .brand, .guide-page .brand { font-size: 20px; }
  .hero, .section, .stats { width: 90%; }
  .hero .tag { font-size: 10px; letter-spacing: .16em; }
  .hero-actions { align-items: stretch; gap: 8px; }
  .hero-actions .primary { font-size: 14px; }
  .hero-actions .secondary { font-size: 14px; }
  .hero-art { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Complete the shared light surfaces, including alternate sections and quiz controls. */
.section.alt { background: #f0f1f6; border-color: #e0e2ea; }
button, input, select, textarea { font-family: var(--font-body); }
button:not(.menu-btn):not(.primary):not(.active-test-button):not(.quiz-next-button):not(.starter-quiz-button) { background-color: #f3f2fc; color: #29243e; border-color: #d8d3ef; box-shadow: none; }
button:hover:not(:disabled) { border-color: #7665dc; }
button:disabled { color: #6c6c78; background: #eeeef3; }
.test-option.selected, .gcse-option-button.selected, .practice-answer-option.selected, button[aria-pressed="true"] { background: #eeebff; color: #4031b0; border-color: #7665dc; }
.site-logo-image { object-fit: contain; border-radius: 7px; }

/* Persistent navigation and raised desktop illustration. */
.sticky-nav-shell { position: sticky; top: 0; z-index: 100; background: rgba(248,249,251,.97); border-bottom: 1px solid #e8e9ef; backdrop-filter: blur(14px); }
.sticky-nav-shell .nav { margin: 0 auto; }
html { scroll-padding-top: 115px; }
@media (min-width: 801px) { .home-page .hero-art { transform: translateY(-42px); } }
@media (min-width: 1151px) { .home-page .nav-links { gap: clamp(5px, 1vw, 20px); } }
@media (max-width: 800px) { html { scroll-padding-top: 95px; } }

/* Final control surfaces override legacy gradient backgrounds, not just their base colour. */
body :is(button, .preview-path-button, .practice-skill-button, .preview-path-selector button, button[data-preview-path], .custom-dropdown-trigger, .topic-choice-button, .quiz-modal-close) {
 background: #f4f2fc !important; color: #272333 !important; border: 1px solid #d6d0ed !important; border-radius: 8px !important; box-shadow: none !important; text-shadow: none !important;
}
body :is(button, .preview-path-button)::before, body :is(button, .preview-path-button)::after { background: none !important; box-shadow: none !important; }
body :is(button, .preview-path-button):hover { background: #eae5ff !important; border-color: #9283df !important; }
body :is(button[aria-pressed="true"], button.selected, .test-option.selected) { background: #e9e3ff !important; color: #4430aa !important; border-color: #7862d9 !important; }
body :is(.btn.primary, button.primary, .active-test-button, .quiz-next-button, .starter-quiz-button) { background: linear-gradient(150deg,#1c1d23,#050607) !important; color: #fff !important; border: 1px solid #55565d !important; }
body button:disabled { background: #eeeef3 !important; color: #73717d !important; }
.preview-path-button small, button[data-preview-path] small { color: #665a88 !important; }
.readiness-preview-result { background: #f4f3fa !important; border-color: #ded9ef; box-shadow: none; }
.home-page main { position: relative; isolation: isolate; background: radial-gradient(ellipse at 95% 22%,#e5e0f655,transparent 36%),radial-gradient(ellipse at 0% 70%,#dfe7f455,transparent 34%); }
.home-page main > section { position: relative; }
.home-page main > section:nth-of-type(3n)::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: min(650px,85vw); height: 560px; right: -5%; top: 0; background: url("assets/abstract-orbit.svg") center/contain no-repeat; opacity: .075; transform: rotate(-12deg); }
.home-page main > section:nth-of-type(3n + 1)::after { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 10% 0; background-image: radial-gradient(#9184bc 1px,transparent 1px); background-size: 22px 22px; opacity: .12; mask-image: linear-gradient(115deg,transparent 15%,#000 60%,transparent 90%); }
@media(min-width:801px) { .home-page .hero-art { transform: translateY(-12px); } .home-page .hero { min-height: 650px; } }
.sticky-nav-shell .nav { max-width: 1680px; flex-wrap: wrap; }
.sticky-nav-shell .nav-links { min-width: 0; }
@media(prefers-reduced-motion:no-preference) { .home-page main > section::before { animation: abstract-drift 16s ease-in-out infinite alternate; } @keyframes abstract-drift { to { transform: translateY(-25px) rotate(-7deg); } } }

/* Abstract editorial treatment shared by all supporting pages. */
body:not(.home-page) { background: radial-gradient(ellipse at 90% 8%,#e5e0f880,transparent 38%),radial-gradient(ellipse at 4% 45%,#e1e8f880,transparent 32%),#f8f9fb; }
body:not(.home-page) .site-header { position: relative; overflow: hidden; }
body:not(.home-page) .site-header::after { content: ""; position: absolute; pointer-events: none; width: min(680px,55vw); height: 520px; right: -3%; top: -60px; background: url("assets/abstract-orbit.svg") center/contain no-repeat; opacity: .13; z-index: -1; }
body:not(.home-page) main { position: relative; isolation: isolate; }
body:not(.home-page) main::before { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#9e94c7 1px,transparent 1px); background-size: 26px 26px; opacity: .16; mask-image: linear-gradient(115deg,transparent 20%,#000 75%,transparent); }
body:not(.home-page) .feedback-card { background: linear-gradient(125deg,#fff 45%,#f0edf9); border: 1px solid #dfd9ed; border-left: 3px solid #7963dc; padding: clamp(26px,4vw,60px); }
body:not(.home-page) .section-heading { border-left: 2px solid #c6b9ec; padding-left: 22px; }
body:not(.home-page) .section { margin-bottom: 12px; }
.card, .role-card, .home-process-card, .service-card, .pricing-card { transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease; }
@media(hover:hover) { .card:hover, .role-card:hover, .home-process-card:hover, .service-card:hover, .pricing-card:hover { transform: translateY(-5px); border-color: #c1b4e8; box-shadow: 0 18px 42px #34245b12; } .hero-art img { transition: transform .3s ease-out; transform: perspective(1000px) rotateY(var(--art-x,0deg)) rotateX(var(--art-y,0deg)); } }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(var(--reading-progress,0)); transform-origin: left; background: #7660df; z-index: 200; pointer-events: none; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 44px; height: 44px; opacity: 0; visibility: hidden; transition: opacity .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
@media(prefers-reduced-motion:reduce) { .card:hover,.role-card:hover,.home-process-card:hover,.hero-art img { transform: none !important; } }
/* Replace legacy dark quick-link surfaces in every interaction state. */
:root {
 --nav-panel-surface: #f5f3fc;
 --nav-panel-surface-hover: #ede8fc;
 --nav-panel-border: #d8d0ec;
 --nav-panel-shadow: 0 3px 12px rgba(65,45,100,.06);
 --glass-border-shadow: none;
}
body .preview-steps a,
body .preview-role-list a,
body .preview-role-list button { background: #f7f6fc !important; color: #514a65 !important; border: 1px solid #ded8ee !important; box-shadow: none !important; }
body .preview-steps a:is(:hover,:focus,:focus-visible,:active),
body .preview-role-list a:is(:hover,:focus,:focus-visible,:active),
body .preview-role-list button:is(:hover,:focus,:focus-visible,:active,.is-selected) { background: #ede7fc !important; color: #49349f !important; border-color: #b4a3e3 !important; box-shadow: 0 3px 12px rgba(65,45,100,.07) !important; transform: none; }
body .preview-steps a::before, body .preview-steps a::after { background: none !important; box-shadow: none !important; }

/* Minimal scroll-linked orbital form replaces the particle/glass artwork. */
.hero-art img { transform: rotate(var(--orbit-angle,0deg)) !important; transition: none !important; opacity: .85; }
body:not(.home-page) .site-header::after { transform: rotate(var(--orbit-angle,0deg)); }
.home-page main > section:nth-of-type(3n)::before { animation: none !important; transform: rotate(var(--orbit-angle,0deg)); opacity: .14; }
.home-page main > section:nth-of-type(3n + 1)::after { background-image: none; }
@media(prefers-reduced-motion:reduce) { .hero-art img,body:not(.home-page) .site-header::after,.home-page main > section:nth-of-type(3n)::before { transform: none !important; } }

/* A single decorative backdrop beneath every page's content. */
body, body.guide-page, body:not(.home-page) { isolation: isolate; background: #f8f9fb; }
.ambient-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 85% 15%,#e5def34d,transparent 48%),radial-gradient(ellipse at 8% 80%,#dde5f04d,transparent 45%); }
.ambient-backdrop::before,.ambient-backdrop::after { content: ""; position: absolute; width: clamp(550px,70vw,1100px); aspect-ratio: 1; background: url("assets/abstract-orbit.svg") center/contain no-repeat; will-change: transform; }
.ambient-backdrop::before { right: -22%; top: -22%; opacity: .19; transform: translateY(var(--ambient-shift,0px)) rotate(var(--orbit-angle,0deg)); }
.ambient-backdrop::after { left: -28%; bottom: -35%; opacity: .13; transform: translateY(calc(var(--ambient-shift,0px) * -1)) rotate(calc(var(--orbit-angle,0deg) * -1)); }
.home-page main { background: transparent; }
.home-page main > section:nth-of-type(3n)::before, .home-page main > section:nth-of-type(3n + 1)::after, body:not(.home-page) main::before { content: none; }
.hero-art img { opacity: 1; }
@media(prefers-reduced-motion:reduce) { .ambient-backdrop::before,.ambient-backdrop::after { transform: none; will-change: auto; } }

/* Keep only the global scrolling background. */
body:not(.home-page) .site-header::after { content: none !important; }
.home-page .hero { grid-template-columns: 1fr; }
.home-page .hero-text { max-width: 850px; }

/* Allow selector menus to extend beyond the hero. */
body.guide-page .site-header, body.guide-page .guide-header, .guide-hero, .guide-hero .hero-text, .guide-selectors, .guide-selector, .custom-dropdown { overflow: visible !important; }
body.guide-page .guide-header { z-index: 20; }
.custom-dropdown { position: relative; }
.custom-dropdown:focus-within { z-index: 50; }
.custom-dropdown-menu { z-index: 100 !important; background: #fff !important; max-height: min(320px,50vh); overflow-y: auto !important; box-shadow: 0 15px 40px #30234c24; }
.portfolio-hero { padding: 75px 0 45px; }
.portfolio-hero h1 { font-size: clamp(48px,7vw,100px); font-weight: 400; letter-spacing: -.06em; line-height: 1.05; }
.portfolio-hero h1 span { color: #6650cc; }
.portfolio-lead { max-width: 760px; font-size: 21px; margin: 28px 0; }
.portfolio-index { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portfolio-projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.portfolio-project { background: #ffffffdc; border: 1px solid #ddd7ec; border-radius: 16px; padding: 32px; }
.portfolio-project h3 { margin: 14px 0; font-size: 25px; }
.portfolio-project p { margin-bottom: 16px; }
.portfolio-project summary { cursor: pointer; color: #5940aa; padding: 12px 0; }
.portfolio-project ul { padding-left: 20px; }
.portfolio-status { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #625180; }
@media(max-width:700px) { .portfolio-projects { grid-template-columns: 1fr; } }
