/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0907;
  --surface: #12100d;
  --surface-2: #19150f;
  --surface-3: #211b13;
  --text: #f7f0e4;
  --muted: #d4cbb8;
  --accent: #d6a646;
  --accent-strong: #efca76;
  --accent-ink: #181106;
  --line: rgba(214, 166, 70, 0.22);
  --line-soft: rgba(247, 240, 228, 0.1);
  --danger: #f08a80;
  --success: #77c79b;
  --shadow: 0 1.5rem 4rem rgba(5, 3, 1, 0.32);
  --radius: 1rem;
  --container: 78rem;
  --header-height: 4.5rem;
  --font: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2ec;
  --surface: #fbfaf7;
  --surface-2: #eee8dd;
  --surface-3: #e7dece;
  --text: #1d1812;
  --muted: #62594e;
  --accent: #9a6810;
  --accent-strong: #805307;
  --accent-ink: #fffaf1;
  --line: rgba(128, 83, 7, 0.25);
  --line-soft: rgba(29, 24, 18, 0.13);
  --danger: #9f302a;
  --success: #236a46;
  --shadow: 0 1.5rem 4rem rgba(67, 45, 12, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 92% 0, rgba(214, 166, 70, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 0.18rem solid var(--accent-strong); outline-offset: 0.2rem; }
::selection { color: var(--accent-ink); background: var(--accent-strong); }

.skip-link { position: fixed; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; z-index: 100; transform: translateY(-150%); padding: 0.75rem 1rem; border-radius: 0.75rem; color: var(--accent-ink); background: var(--accent-strong); }
.skip-link:focus { transform: translateY(0); }
.section-shell { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.site-header { position: sticky; inset-block-start: 0; z-index: 40; height: var(--header-height); border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(1rem); }
.nav-shell { width: min(100% - 1.25rem, var(--container)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.brand { display: inline-flex; align-items: center; width: 8.5rem; min-height: 2.75rem; text-decoration: none; }
.brand img { width: 100%; }
[data-theme="light"] .brand .logo-light { display: none; }
:root:not([data-theme="light"]) .brand .logo-dark { display: none; }
.nav-links { position: fixed; inset: var(--header-height) 0 auto; display: none; padding: 1.25rem 1rem 1.75rem; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.nav-links.is-open { display: grid; }
.nav-links a { min-height: 3rem; display: flex; align-items: center; padding-inline: 0.75rem; border-bottom: 1px solid var(--line-soft); color: var(--muted); text-decoration: none; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--accent-strong); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-button, .theme-button { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.menu-button { display: grid; place-items: center; gap: 0.24rem; align-content: center; }
.menu-button span { width: 1.15rem; height: 1px; background: currentColor; }
.nav-cta { display: none; }

.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.72rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-0.12rem); }
.button:active { transform: scale(0.98); }
.button-primary { color: var(--accent-ink); background: var(--accent-strong); box-shadow: 0 0.2rem 1rem rgba(239, 202, 118, 0.15); }
.button-primary:hover { background: var(--accent); box-shadow: 0 0.5rem 1.5rem rgba(239, 202, 118, 0.25); }
.button-secondary { color: var(--text); border-color: rgba(255, 255, 255, 0.2); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.button-secondary:hover { border-color: var(--accent-strong); }
.button[disabled] { cursor: not-allowed; opacity: 0.55; transform: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--accent-strong); font-weight: 800; text-underline-offset: 0.35rem; }
.section-link { margin-block-start: 1.5rem; }

.eyebrow { margin: 0 0 1rem; color: var(--accent-strong); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.15em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-block-start: 0; line-height: 1.16; letter-spacing: -0.035em; }
h1 { margin-block-end: 1.2rem; font-size: clamp(2.35rem, 9vw, 5rem); }
h2 { margin-block-end: 1rem; font-size: clamp(2rem, 7vw, 3.8rem); }
h3 { margin-block-end: 0.7rem; font-size: clamp(1.25rem, 4vw, 1.75rem); }
p { margin-block: 0 1rem; color: var(--muted); }
.section-heading { display: grid; max-width: 48rem; margin-block-end: clamp(2rem, 5vw, 4rem); }
.section-heading p { max-width: 65ch; font-size: 1.05rem; }

.hero { min-height: calc(100dvh - var(--header-height)); display: grid; align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 8vw, 5.5rem); }
.hero-copy { max-width: 42rem; }
.hero-copy h1 { max-width: none; font-size: clamp(2.35rem, 5vw, 4.2rem); }
.hero-copy h1 > span { display: block; }
.hero-lead { max-width: 36rem; font-size: clamp(1.05rem, 2.5vw, 1.25rem); }
.hero-media { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 4, 2, 0.72), transparent 52%); pointer-events: none; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption { position: absolute; inset-inline: 1rem; inset-block-end: 1rem; z-index: 1; color: #fff7e8; font-weight: 800; }

.about-layout { display: grid; gap: 2rem; }
.workflow-contrast { display: grid; gap: 0.9rem; }
.workflow-contrast article { padding: clamp(1.35rem, 4vw, 2.2rem); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.workflow-contrast .accent-panel { border-color: var(--line); background: var(--surface-2); }
.workflow-contrast .accent-panel h3 { color: var(--accent-strong); }

.academy-preview { background: var(--surface); border-block: 1px solid var(--line-soft); }
.academy-grid { display: grid; gap: 2.5rem; }
.academy-intro { align-self: start; }
.learning-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.learning-path li { position: relative; padding: 1.25rem 1.25rem 1.25rem 3.5rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg); }
.learning-path li::before { content: attr(data-index); position: absolute; inset-inline-start: 1rem; inset-block-start: 1.25rem; color: var(--accent-strong); font-weight: 900; }
.learning-path strong { display: block; margin-block-end: 0.35rem; font-size: 1.12rem; }
.learning-path span { color: var(--muted); }
.learning-path details { margin-block-start: 0.85rem; }
.learning-path summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--accent-strong); cursor: pointer; font-weight: 700; }

.skills-mosaic { display: grid; gap: 1rem; }
.skills-mosaic article { min-height: 11rem; display: flex; flex-direction: column; justify-content: end; padding: 1.3rem; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.skills-mosaic strong { font-size: 1.35rem; }
.skills-mosaic span { margin-block-start: 0.4rem; color: var(--muted); }
.skills-mosaic .skill-image { padding: 0; }
.skill-image img { width: 100%; height: 100%; object-fit: cover; }
.skills-mosaic .skill-dark { color: #fff7e8; background: #171108; border-color: rgba(214, 166, 70, 0.4); }

.course-grid { display: grid; gap: 1.25rem; }
.course-card { display: grid; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1.2rem 3rem color-mix(in srgb, var(--bg) 55%, transparent); transition: transform 220ms ease, border-color 220ms ease; }
.course-card:hover { transform: translateY(-0.25rem); border-color: var(--line); }
.course-card-media { position: relative; min-height: 15rem; background: var(--surface-2); }
.course-card-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.course-card-body { display: grid; align-content: start; padding: 1.35rem; }
.course-card-body h3 { font-size: clamp(1.45rem, 5vw, 2.2rem); }
.course-meta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-block: 0 1rem; }
.course-meta span { padding: 0.35rem 0.65rem; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--muted); font-size: 0.86rem; }
.course-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-block-start: auto; }

.workflow-showcase { background: var(--surface); }
.workflow-showcase-grid { display: grid; gap: 2rem; align-items: center; }
.workflow-showcase figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.workflow-showcase img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.outcome-gallery { display: grid; gap: 1rem; }
.outcome-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.outcome-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.outcome-gallery figcaption { padding: 0.9rem 1rem; color: var(--muted); font-weight: 700; }

.review-grid { display: grid; gap: 1rem; }
.review-card { padding: 1.35rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.review-card header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-block-end: 1rem; }
.review-card h3 { margin: 0; font-size: 1.1rem; }
.review-card small { color: var(--muted); }
.stars { color: var(--accent-strong); letter-spacing: 0.08em; white-space: nowrap; }
.rating-summary { display: grid; gap: 1.25rem; margin-block-end: 2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rating-primary strong { display: block; color: var(--accent-strong); font-size: 3rem; line-height: 1; }
.rating-primary span { color: var(--muted); }
.rating-distribution { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.rating-distribution div { display: grid; gap: 0.2rem; text-align: center; }
.rating-distribution strong { color: var(--accent-strong); }
.empty-state, .error-state, .loading-state { min-height: 10rem; display: grid; place-items: center; padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; background: var(--surface); }

.enrollment-band { display: grid; gap: 1.5rem; align-items: center; padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, var(--surface-3), var(--surface)); }
.enrollment-band h2 { font-size: clamp(2rem, 7vw, 3.4rem); }
.enrollment-band .button { justify-self: start; }
.process-line { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; counter-reset: process; }
.process-line li { counter-increment: process; padding: 1.25rem; border-inline-start: 0.18rem solid var(--accent); background: var(--surface); }
.process-line strong { display: block; margin-block-end: 0.35rem; }
.process-line span { color: var(--muted); }
.faq-list { display: grid; gap: 0.65rem; }
.faq-list details { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); transition: border-color 200ms ease; }
.faq-list details[open] { border-color: var(--line); }
.faq-list summary { min-height: 3.75rem; display: flex; align-items: center; padding: 1rem 1.1rem; cursor: pointer; font-weight: 700; font-size: 1.02rem; gap: 0.75rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; flex-shrink: 0; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-strong); font-size: 1.2rem; font-weight: 900; line-height: 1; transition: transform 200ms ease; }
.faq-list details[open] summary::before { transform: rotate(45deg); }
.faq-list p { padding: 0 1.1rem 1.1rem 4.4rem; color: var(--muted); line-height: 1.75; }
.faq-category { margin-block: 2.5rem 1rem; }
.faq-category:first-child { margin-block-start: 0; }
.faq-category-title { display: flex; align-items: center; gap: 0.75rem; margin-block-end: 1rem; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-strong); }
.faq-category-title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.page-hero { display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.page-hero figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.page-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.simple-hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(2rem, 6vw, 4rem); border-bottom: 1px solid var(--line-soft); }
.simple-hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); margin-block-end: 1rem; }
.simple-hero p { max-width: 60ch; font-size: clamp(1rem, 2vw, 1.15rem); }
.academy-detail .learning-path { max-width: 58rem; }
.map-flow { display: grid; gap: 0.85rem; counter-reset: map-step; }
.map-flow article { position: relative; min-height: 7rem; padding: 1.25rem 1.25rem 1.25rem 4.5rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); transition: border-color 250ms ease, transform 250ms ease; }
.map-flow article:hover { border-color: var(--line); transform: translateX(-0.25rem); }
.map-flow article::before { counter-increment: map-step; content: "0" counter(map-step); position: absolute; inset-inline-start: 1.1rem; inset-block-start: 1.25rem; color: var(--accent-strong); font-size: 1.5rem; font-weight: 900; line-height: 1; opacity: 0.8; }
.map-flow strong { display: block; margin-block-end: 0.4rem; color: var(--accent-strong); font-size: 1.15rem; font-weight: 800; }
.map-flow span { color: var(--muted); font-size: 0.96rem; }
.instructor-block { display: grid; gap: 2rem; align-items: center; }
.instructor-block figure { margin: 0; overflow: hidden; max-height: 34rem; border-radius: var(--radius); border: 1px solid var(--line); }
.instructor-block img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.course-toolbar, .review-toolbar { display: grid; gap: 1rem; margin-block-end: 2rem; }
.course-toolbar { max-width: 34rem; }
label { display: grid; gap: 0.45rem; color: var(--text); font-weight: 700; }
input, select, textarea { width: 100%; min-height: 3rem; padding: 0.72rem 0.85rem; border: 1px solid var(--line-soft); border-radius: 0.75rem; color: var(--text); background: var(--surface); }
textarea { min-height: 8rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 0.15rem solid color-mix(in srgb, var(--accent) 28%, transparent); }
.form-grid { display: grid; gap: 1.1rem; }
.check-field { display: flex; align-items: center; gap: 0.7rem; min-height: 3rem; }
.check-field input { width: 1.25rem; min-height: 1.25rem; }
.form-status { min-height: 1.5rem; margin-block-start: 0.75rem; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }
.form-note { margin-block-start: 0.75rem; font-size: 0.9rem; }
.form-page { display: grid; gap: 2rem; padding-block: clamp(3rem, 8vw, 6rem); }
.form-intro { align-self: start; }
.form-panel { padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mini-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; }
.mini-steps li { padding: 0.45rem 0.8rem; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--muted); }
.mini-steps .active { color: var(--accent-ink); border-color: var(--accent-strong); background: var(--accent-strong); }

.course-detail-hero { display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.course-detail-hero figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.course-detail-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.course-detail-grid { display: grid; gap: 2rem; }
.course-detail-main { display: grid; gap: 3rem; }
.course-detail-main section { scroll-margin-top: calc(var(--header-height) + 1rem); }
.course-aside { align-self: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.course-aside strong { display: block; margin-block-end: 0.8rem; font-size: 1.5rem; }
.content-list { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.content-list li { padding: 1rem; border-inline-start: 0.15rem solid var(--accent); background: var(--surface); }
.curriculum { display: grid; gap: 1rem; }
.curriculum details { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.curriculum summary { min-height: 3.5rem; display: flex; align-items: center; padding: 0.9rem 1rem; cursor: pointer; font-weight: 850; }
.lesson-list { display: grid; gap: 0; margin: 0; padding: 0 1rem 1rem; list-style: none; }
.lesson-list li { padding-block: 0.85rem; border-top: 1px solid var(--line-soft); }
.lesson-list strong, .lesson-list span { display: block; }
.lesson-list span { color: var(--muted); font-size: 0.92rem; }

.payment-page { padding-block: clamp(3rem, 7vw, 5rem); }
.payment-head { display: grid; gap: 1.5rem; margin-block-end: 2rem; }
.payment-layout { display: grid; gap: 1.25rem; }
.payment-summary, .payment-methods { padding: clamp(1.1rem, 4vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary-list { display: grid; gap: 0.8rem; margin: 0; }
.summary-list div { display: grid; gap: 0.2rem; padding-block-end: 0.8rem; border-bottom: 1px solid var(--line-soft); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 800; }
.payment-method-list { display: grid; gap: 1rem; }
.payment-method { padding: 1rem; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.payment-method header { display: flex; gap: 1rem; align-items: center; margin-block-end: 1rem; }
.payment-method img { width: 4rem; height: 2.6rem; object-fit: contain; border-radius: 0.45rem; background: #fff; }
.payment-field { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: center; padding-block: 0.7rem; border-top: 1px solid var(--line-soft); }
.payment-field b { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
.copy-button { min-width: 3.2rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; }
.quick-methods { display: grid; gap: 0.75rem; }
.quick-methods a { min-height: 4rem; display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; }
.quick-methods img { width: 4rem; height: 2.5rem; object-fit: contain; background: #fff; border-radius: 0.45rem; }
.confirmation-form { margin-block-start: 1.5rem; padding-block-start: 1.5rem; border-top: 1px solid var(--line); }

.legal-page { max-width: 54rem; padding-block: clamp(3rem, 8vw, 7rem); }
.legal-page h1 { margin-block-end: 1rem; font-size: clamp(2.4rem, 6vw, 3.5rem); }
.legal-page h2 { margin-block: 2.5rem 0.8rem 0; font-size: clamp(1.3rem, 3vw, 1.65rem); padding-block-end: 0.6rem; border-bottom: 1px solid var(--line-soft); }
.legal-lead { font-size: 1.12rem; color: var(--muted); max-width: 55ch; margin-block-end: 2.5rem; padding: 1rem 1.25rem; border-inline-start: 0.2rem solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }

.site-footer { margin-block-start: clamp(3rem, 8vw, 7rem); border-top: 1px solid var(--line-soft); background: var(--surface); }
.footer-shell { width: min(100% - 2rem, var(--container)); margin-inline: auto; display: grid; gap: 2rem; padding-block: 2.5rem; }
.footer-brand { max-width: 26rem; }
.footer-brand img { width: 9rem; margin-block-end: 1rem; }
[data-theme="light"] .footer-brand .logo-light { display: none; }
:root:not([data-theme="light"]) .footer-brand .logo-dark { display: none; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.5rem; }
.footer-links a { min-height: 2.75rem; display: flex; align-items: center; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-strong); }
.footer-meta { padding-block: 1rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.88rem; }

.reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

.page-intro-badge { display: inline-flex; align-items: center; gap: 0.5rem; margin-block-end: 1.25rem; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--accent-strong); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }

.enrollment-cta { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface) 60%); text-align: center; }
.enrollment-cta h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-block-end: 0.75rem; }
.enrollment-cta p { max-width: 52ch; margin-inline: auto; margin-block-end: 2rem; font-size: 1.05rem; }
.enrollment-cta .button-row { justify-content: center; }

@media (min-width: 40rem) {
  .skills-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-wide { grid-column: span 2; }
  .outcome-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-large { grid-column: span 2; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-wide { grid-column: 1 / -1; }
  .review-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .section-shell { width: min(100% - 3rem, var(--container)); }
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
  .hero-media img { aspect-ratio: 4 / 5; }
  .about-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .academy-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .academy-intro { position: sticky; inset-block-start: calc(var(--header-height) + 2rem); }
  .skills-mosaic { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .skills-mosaic .skill-wide { grid-column: span 2; }
  .skills-mosaic .skill-image { grid-row: span 2; }
  .course-card { grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.1fr); }
  .workflow-showcase-grid { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); }
  .outcome-gallery { grid-template-columns: 1.35fr 0.65fr; grid-template-rows: repeat(2, minmax(11rem, 1fr)); }
  .outcome-gallery .outcome-large { grid-column: auto; grid-row: 1 / span 2; }
  .outcome-gallery figure:not(.outcome-large) img { height: 100%; }
  .enrollment-band { grid-template-columns: 1fr auto; }
  .process-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-hero { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .map-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .instructor-block { grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr); }
  .form-page { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
  .form-intro { position: sticky; inset-block-start: calc(var(--header-height) + 2rem); }
  .course-detail-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .course-detail-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
  .course-aside { position: sticky; inset-block-start: calc(var(--header-height) + 1.5rem); }
  .payment-head { grid-template-columns: 1fr auto; align-items: end; }
  .payment-layout { grid-template-columns: minmax(16rem, 0.65fr) minmax(0, 1.35fr); }
  .footer-shell { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .menu-button { display: none; }
  .nav-shell { width: min(100% - 3rem, var(--container)); }
  .nav-links { position: static; display: flex; align-items: center; gap: 0.2rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .nav-links a { min-height: 2.75rem; padding-inline: 0.65rem; border: 0; font-size: 0.9rem; }
  .nav-cta { display: inline-flex; }
  .hero-media img { max-height: calc(100dvh - 8rem); }
  .workflow-contrast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rating-summary { grid-template-columns: 13rem 1fr; align-items: center; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@supports not (backdrop-filter: blur(1rem)) {
  .site-header { background: var(--bg); }
}

/* Unified MIMARX action language: the same warm gold pill in every flow. */
.button:not([aria-disabled="true"]),
.academy-cta,
.btn-gold,
.btn-instapay,
.btn-whatsapp,
.copy-button {
  min-height: 3.25rem !important;
  min-width: 11rem;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem !important;
  border: 1px solid rgba(121, 75, 6, 0.16) !important;
  border-radius: 999rem !important;
  color: #171006 !important;
  background: linear-gradient(105deg, #f4d786 0%, #e5b84f 48%, #c9861f 100%) !important;
  box-shadow: 0 0.55rem 1.25rem rgba(153, 94, 8, 0.16) !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease !important;
}
.button:not([aria-disabled="true"]):hover,
.academy-cta:hover,
.btn-gold:hover,
.btn-instapay:hover,
.btn-whatsapp:hover,
.copy-button:hover {
  transform: translateY(-0.12rem) !important;
  filter: saturate(1.06) brightness(1.02);
  box-shadow: 0 0.8rem 1.6rem rgba(153, 94, 8, 0.22) !important;
}
.button:not([aria-disabled="true"]):active,
.academy-cta:active,
.btn-gold:active,
.btn-instapay:active,
.btn-whatsapp:active,
.copy-button:active { transform: scale(0.985) !important; }

/* Bidi-safe cards: text never escapes or inherits the wrong direction. */
.flip-grid,
.flip-scroll-card,
.flip-card-inner,
.flip-front,
.flip-back,
.rc-card { min-width: 0; max-width: 100%; }
#cards-scroll-track .section-shell {
  width: min(calc(100% - 2rem), 82rem) !important;
  margin-inline: auto;
}
.flip-front,
.flip-back-content,
.rc-card {
  direction: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  word-break: normal;
}
html[dir="rtl"] .flip-front,
html[dir="rtl"] .flip-back-content,
html[dir="rtl"] .rc-card { direction: rtl; }
html[dir="ltr"] .flip-front,
html[dir="ltr"] .flip-back-content,
html[dir="ltr"] .rc-card { direction: ltr; }

@media (max-width: 30rem) {
  .button:not([aria-disabled="true"]),
  .academy-cta,
  .btn-gold,
  .btn-instapay,
  .btn-whatsapp { width: 100%; min-width: 0; white-space: normal; }
  .nav-actions .nav-cta {
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 0.85rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 48rem) {
  #cards-scroll-track .section-shell { width: min(calc(100% - 3rem), 82rem) !important; }
}

/* ==========================================================================
   Bilingual System Support
   ========================================================================== */
html[lang="ar"] .lang-en,
html[dir="rtl"] .lang-en {
  display: none !important;
}

html[lang="en"] .lang-ar,
html[dir="ltr"] .lang-ar {
  display: none !important;
}

/* ==========================================================================
   New Luxury Studio Footer (Matches media_1788536245023.png)
   Responsive to light and dark themes seamlessly
   ========================================================================== */
.site-footer {
  margin-block-start: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--mx-hairline, var(--line-soft, rgba(128, 81, 10, 0.15))) !important;
  background: var(--mx-bg, var(--bg, #f4f0e8)) !important;
  color: var(--mx-text, var(--text, #17120c)) !important;
  position: relative;
  z-index: 10;
}

.footer-shell {
  width: min(100% - 2.5rem, 82rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 3.5rem;
}

.footer-top-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.footer-top-copy {
  max-width: 42rem;
}

.footer-contact-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--mx-gold, var(--academy-gold, #9b6819)) !important;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-contact-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--mx-text, var(--text, #17120c)) !important;
  margin: 0;
}

.footer-top-support {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: right;
}

html[dir="rtl"] .footer-top-support {
  text-align: left;
}

.footer-support-label {
  font-size: 0.85rem;
  color: var(--mx-muted, var(--muted, #655c50)) !important;
}

.footer-email-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mx-text, var(--text, #17120c)) !important;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email-direct:hover {
  color: var(--mx-gold, var(--academy-gold, #9b6819)) !important;
}

.footer-email-direct i {
  color: var(--mx-gold, var(--academy-gold, #9b6819)) !important;
  font-style: normal;
  font-size: 1.15rem;
}

.footer-middle-divider {
  width: 100%;
  height: 1px;
  background: var(--mx-hairline, var(--line-soft, rgba(128, 81, 10, 0.15))) !important;
  margin-bottom: 3.5rem;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 3.5rem;
  align-items: start;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-lockup {
  text-decoration: none;
  display: inline-block;
}

.footer-brand-title {
  font-size: 1.45rem;
  letter-spacing: 0.28em;
  color: var(--mx-text, var(--text, #17120c)) !important;
  font-weight: 700;
  display: block;
}

.footer-brand-title span {
  color: var(--mx-gold, var(--academy-gold, #9b6819)) !important;
  font-weight: 900;
}

.footer-brand-tagline {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--mx-muted, var(--muted, #655c50)) !important;
  margin-top: 0.35rem;
  font-weight: 600;
}

.footer-brand-description {
  color: var(--mx-muted, var(--muted, #655c50)) !important;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  max-width: 25rem;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
}

.footer-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mx-text, var(--text, #17120c)) !important;
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
}

.footer-group-nav {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-group-nav a {
  color: var(--mx-muted, var(--muted, #655c50)) !important;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-group-nav a:hover {
  color: var(--mx-gold, var(--accent-strong, #9b6819)) !important;
}

.footer-support-desc {
  color: var(--mx-muted, var(--muted, #655c50)) !important;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 22rem;
}

.footer-support-mail-link {
  color: var(--mx-muted, var(--muted, #655c50)) !important;
  text-decoration: none;
  font-size: 0.88rem;
  word-break: break-all;
  transition: color 0.2s ease;
}

.footer-support-mail-link:hover {
  color: var(--mx-gold, var(--academy-gold, #9b6819)) !important;
}

@media (max-width: 56rem) {
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .footer-brand-column {
    grid-column: 1 / -1;
  }
  .footer-top-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  .footer-top-support {
    text-align: start !important;
  }
}

@media (max-width: 36rem) {
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* parity.css */
:root {
  color-scheme: dark;
  --bg: #050302;
  --surface: #0d0906;
  --surface-2: #120d08;
  --surface-3: #18110b;
  --text: #fff4df;
  --muted: #cbb99c;
  --accent: #d7a642;
  --accent-strong: #f0d083;
  --accent-ink: #130c04;
  --line: rgba(214, 166, 70, 0.28);
  --line-soft: rgba(214, 166, 70, 0.16);
  --radius: 1.5rem;
  --container: 93.75rem;
  --header-height: 5.125rem;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="light"] { color-scheme: dark; }

body,
body[data-theme="light"] {
  background: #050302;
  color: #fff4df;
  font-family: var(--font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 14%, rgba(240, 208, 131, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(215, 166, 66, 0.08), transparent 32rem),
    linear-gradient(135deg, #050302 0%, #0d0805 48%, #020101 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.52;
  background:
    linear-gradient(132deg, transparent 0 15%, rgba(215, 166, 66, 0.2) 15.1%, transparent 15.35% 72%, rgba(215, 166, 66, 0.16) 72.1%, transparent 72.35%),
    repeating-linear-gradient(30deg, rgba(215, 166, 66, 0.045) 0 1px, transparent 1px 5rem);
}

.site-header {
  position: sticky;
  inset-block-start: 1.125rem;
  z-index: 50;
  width: min(93.75rem, calc(100% - 1.75rem));
  height: var(--header-height);
  margin: 1.125rem auto 2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(18, 13, 8, 0.9), rgba(7, 4, 2, 0.93));
  box-shadow: 0 1.125rem 4.4rem rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(1.125rem);
}

.nav-shell {
  width: 100%;
  height: 100%;
  padding-inline: 1rem;
}

.brand {
  width: auto;
  min-height: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  line-height: 1;
  white-space: nowrap;
  direction: ltr;
}

.brand strong {
  color: #fff4df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 4.8vw, 1.95rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  margin-inline-end: -0.28em;
}

.brand strong span { color: #d7a642; }
.brand small { color: #fff4df; font-size: 0.44rem; font-weight: 800; letter-spacing: 0.42em; margin-inline-end: -0.42em; opacity: 0.88; }

.nav-links {
  position: fixed;
  inset: calc(var(--header-height) + 2.2rem) 0 auto;
  padding: 1rem;
  border-block: 1px solid var(--line);
  background: rgba(8, 5, 3, 0.98);
}

.nav-links a { color: #cbb99c; font-weight: 800; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #f0d083; }

.menu-button {
  color: #fff4df;
  border-color: rgba(214, 166, 70, 0.42);
  background: rgba(255, 255, 255, 0.03);
}

.nav-cta { display: inline-flex; }
.theme-button { display: none; }
.button-primary,
.nav-cta { color: #130c04; }

.development-home main { overflow: clip; }
.development-home .section-shell { width: min(93.75rem, calc(100% - 1.75rem)); }
.development-home .reveal-section,
.development-home .reveal-title,
.development-home .reveal-text,
.development-home .reveal-card,
.development-home .reveal-image,
.development-home .reveal-button { opacity: 1; transform: none; }

.development-home .ai-workflow-hero { margin-block-start: 0; }
.development-home .ai-workflow-logo small { font-family: var(--font); font-weight: 900; letter-spacing: 0; }
.development-home .ai-workflow-copy > p { color: #c8b89a; }
.development-home .ai-stat b { color: #f0d083; font-size: 0.8rem; }
.development-home .shift-icon,
.development-home .workflow-step__icon,
.development-home .reality-icon,
.development-home .value-feature-icon {
  display: grid;
  place-items: center;
  color: #f0d083;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.development-home .workflow-arrow { color: #d7a642; font-size: 1.65rem; }
.development-home .workflow-pin-section { min-height: auto; height: auto; }
.development-home .workflow-pin-inner { position: static; min-height: auto; }
.development-home .workflow-step-card { opacity: 1; transform: none; }
.development-home .instructor { margin-block: clamp(4rem, 8vw, 7rem); }
.development-home .gallery-img { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 1.5rem; }
.development-home .gallery-img > img { width: 100%; height: 100%; object-fit: cover; }
.development-home .text-card { padding: clamp(1.5rem, 4vw, 3rem); }
.development-home .instructor-text h2 { color: #fff4df; font-size: clamp(2rem, 5vw, 4rem); }
.development-home .instructor-text h3 { color: #f0d083; }
.development-home .bio-grid div { padding: 1rem; border: 1px solid rgba(214, 166, 70, 0.16); border-radius: 1rem; background: rgba(255, 255, 255, 0.025); }
.development-home .bio-grid b,
.development-home .bio-grid span { display: block; }
.development-home .bio-grid span { margin-block-start: 0.35rem; color: #cbb99c; }

.premium-register-offer .form-status { margin-block: 1rem 0; color: #cbb99c; text-align: center; }
.premium-register-offer .form-status.is-success { color: #77c79b; }
.premium-register-offer .form-status.is-error { color: #f08a80; }
.premium-register-offer .premium-submit { width: 100%; border: 0; }
.premium-register-offer .offer-panel del { color: rgba(255, 244, 223, 0.46); }
.premium-register-offer .offer-panel .offer-price { direction: ltr; unicode-bidi: isolate; }
.premium-register-offer .regional-prices b { direction: ltr; unicode-bidi: isolate; }

.dev-payment-strip {
  display: grid;
  gap: 2rem;
  margin-block: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(214, 166, 70, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(18, 13, 8, 0.96), rgba(5, 3, 2, 0.98));
  box-shadow: var(--shadow);
}

.dev-payment-strip h2 { max-width: 18ch; color: #fff4df; font-size: clamp(2rem, 6vw, 4.25rem); }
.dev-payment-strip p { max-width: 62ch; }
.dev-payment-strip ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.dev-payment-strip li { min-height: 4.4rem; display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid rgba(214, 166, 70, 0.2); border-radius: 1rem; background: rgba(255, 255, 255, 0.025); }
.dev-payment-strip li b { color: #f0d083; }
.dev-payment-strip li span { font-weight: 800; }
.payment-brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-block-start: 1.5rem; }
.payment-brand-row img { width: auto; height: 2.9rem; max-width: 8rem; object-fit: contain; padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; }

.final-premium-cta { margin-block: 0 2rem; }
.final-premium-cta__inner { display: grid; gap: 1.5rem; }
.final-cta-image { min-height: 15rem; overflow: hidden; border: 1px solid rgba(214, 166, 70, 0.24); border-radius: 1.5rem; background: #050302; }
.final-cta-image img { width: 100%; height: 100%; object-fit: cover; }
.final-premium-cta__content { align-self: center; }
.final-cta-button { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; width: auto; padding-inline: 1.5rem; text-decoration: none; }

.site-footer { border-top-color: rgba(214, 166, 70, 0.2); background: rgba(5, 3, 2, 0.92); }

.registration-clone .form-page,
.payment-clone .payment-page {
  padding-block: clamp(3rem, 7vw, 7rem);
}

.payment-clone .payment-page { width: min(56rem, calc(100% - 1.75rem)); }
.payment-clone .payment-head { display: grid; grid-template-columns: 1fr; gap: 2rem; border-radius: 1.5rem 1.5rem 0 0; border-bottom: 0; }
.payment-clone .payment-head .mini-steps { order: -1; width: 100%; margin: 0; flex-wrap: nowrap; }
.payment-clone .payment-head .mini-steps li { flex: 1; text-align: center; }
.payment-clone .payment-layout { grid-template-columns: 1fr; gap: 0; }
.payment-clone .payment-summary,
.payment-clone .payment-methods { border-radius: 0; }
.payment-clone .payment-methods { border-radius: 0 0 1.5rem 1.5rem; }
.payment-clone .error-state { display: grid; gap: 0.8rem; align-items: start; }
.payment-clone .error-state span { color: #cbb99c; }
.payment-clone .error-state .button { justify-self: start; }
.payment-clone .secure-payment-note { padding: 1rem; border: 1px solid rgba(214, 166, 70, 0.28); border-radius: 0.85rem; color: #f0d083; }

.registration-clone .form-intro,
.registration-clone .form-panel,
.payment-clone .payment-head,
.payment-clone .payment-summary,
.payment-clone .payment-methods {
  border-color: rgba(214, 166, 70, 0.24);
  background:
    radial-gradient(circle at 10% 10%, rgba(214, 166, 70, 0.11), transparent 32%),
    linear-gradient(145deg, rgba(18, 13, 8, 0.96), rgba(5, 3, 2, 0.98));
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
}

.registration-clone .form-intro h1,
.payment-clone .payment-head h1 { color: #fff4df; font-size: clamp(2.2rem, 6vw, 4.75rem); }
.registration-clone .form-intro p,
.payment-clone .payment-head p,
.registration-clone .form-note { color: #cbb99c; }
.registration-clone .form-panel { border-radius: 1.5rem; }
.registration-clone input,
.registration-clone select,
.registration-clone textarea,
.payment-clone input,
.payment-clone select {
  border-color: rgba(214, 166, 70, 0.26);
  background: rgba(255, 255, 255, 0.035);
  color: #fff4df;
}
.registration-clone label,
.payment-clone label { color: #fff4df; }
.registration-clone .mini-steps li,
.payment-clone .mini-steps li { border-color: rgba(214, 166, 70, 0.2); background: rgba(255, 255, 255, 0.03); }
.registration-clone .mini-steps .active,
.payment-clone .mini-steps .active { border-color: #d7a642; background: rgba(214, 166, 70, 0.12); color: #f0d083; }

@media (max-width: 47.99rem) {
  .site-header { top: 0.5rem; height: 4.5rem; margin-block: 0.5rem 1.15rem; border-radius: 1.25rem; }
  .nav-shell { padding-inline: 0.75rem; }
  .nav-actions { gap: 0.4rem; }
  .nav-cta { display: none; }
  .development-home .ai-workflow-hero { margin-inline: 1rem; }
  .development-home .ai-workflow-copy { min-height: auto; }
  .development-home .ai-workflow-copy h1 { font-size: 2rem; line-height: 1.2; }
  .development-home .ai-workflow-copy > p { font-size: 1rem; }
  .development-home .ai-workflow-actions { grid-template-columns: 1fr; }
  .development-home .ai-workflow-collage { height: auto; }
  .development-home .ai-workflow-collage .visual-card { min-height: 13.5rem; }
  .development-home .ai-stats-strip { grid-template-columns: 1fr 1fr; }
  .development-home .ai-stat-main { grid-column: 1 / -1; }
  .development-home .workflow-shift-section,
  .development-home .value-workflow-section,
  .development-home .premium-register-offer { padding-inline: 1rem; }
  .development-home .workflow-shift-container,
  .development-home .value-card-grid,
  .development-home .workflow-card-stage,
  .development-home .instructor,
  .development-home .premium-register-offer__inner { grid-template-columns: 1fr; }
  .development-home .workflow-steps { grid-template-columns: 1fr 1fr; }
  .development-home .workflow-arrow { display: none; }
  .development-home .workflow-step-card { grid-column: auto !important; min-height: 0; }
  .development-home .instructor-photo { min-height: 28rem; }
  .development-home .bio-grid { grid-template-columns: 1fr; }
  .development-home .register-panel,
  .development-home .offer-panel { grid-column: 1; }
  .development-home .register-form-grid { grid-template-columns: 1fr; }
  .development-home .full-field { grid-column: 1; }
  .dev-payment-strip { margin-inline: 0.875rem; }
}

@media (min-width: 48rem) {
  .nav-shell { padding-inline: 1.35rem; }
  .dev-payment-strip { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .final-premium-cta__inner { grid-template-columns: 0.78fr 1.22fr; }
}

@media (min-width: 64rem) {
  .nav-links { position: static; display: flex; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .nav-links a { min-height: 2.75rem; padding-inline: 1rem; border: 0; }
  .menu-button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .development-home *,
  .development-home *::before,
  .development-home *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Public navigation, language and appearance controls */
.language-toggle,
.theme-button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-weight: 900;
}

.language-toggle { padding-inline: 0.95rem; white-space: nowrap; }
.theme-button { display: grid; place-items: center; font-size: 1.15rem; }
.theme-switcher { position: relative; }
.theme-menu {
  position: absolute;
  inset-block-start: calc(100% + 0.65rem);
  inset-inline-end: 0;
  z-index: 80;
  width: 10rem;
  display: none;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1rem);
}
.theme-switcher.is-open .theme-menu { display: grid; }
.theme-menu button {
  min-height: 2.65rem;
  padding-inline: 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: var(--muted);
  background: transparent;
  text-align: start;
  font-weight: 800;
}
.theme-menu button:hover,
.theme-menu button.active { color: var(--text); border-color: var(--line); background: color-mix(in srgb, var(--accent) 13%, transparent); }

/* Calm one-time reveals: no pinning, no looping motion. */
.motion-ready .reveal:not(.is-visible),
.motion-ready .reveal-card:not(.is-visible),
.motion-ready .reveal-image:not(.is-visible),
.motion-ready .reveal-button:not(.is-visible) {
  opacity: 0;
  transform: translateY(1rem);
}
.motion-ready .reveal,
.motion-ready .reveal-card,
.motion-ready .reveal-image,
.motion-ready .reveal-button {
  transition: opacity 480ms cubic-bezier(.22, 1, .36, 1), transform 480ms cubic-bezier(.22, 1, .36, 1);
}
.motion-ready .is-visible { opacity: 1; transform: none; }
.whatsapp,
.whatsapp-float { animation: none !important; }
body,
.site-header,
.site-footer,
.theme-menu { transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease; }

/* Restore the original light and mixed MIMARX appearances. */
html[data-theme="light"],
html[data-theme="mixed"] { color-scheme: light; }
body[data-theme="light"] {
  background: #fbf7ef;
  color: #17100b;
}
body[data-theme="light"]::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(215, 166, 66, 0.12), transparent 28rem),
    linear-gradient(135deg, #fffdf8 0%, #fbf5ea 50%, #fffaf1 100%);
}
body[data-theme="light"]::after {
  opacity: 0.24;
  background:
    linear-gradient(132deg, transparent 0 15%, rgba(138, 93, 22, 0.18) 15.1%, transparent 15.35% 72%, rgba(138, 93, 22, 0.14) 72.1%, transparent 72.35%),
    repeating-linear-gradient(30deg, rgba(138, 93, 22, 0.045) 0 1px, transparent 1px 5rem);
}
body[data-theme="mixed"] {
  background: #fbf7ef;
}
body[data-theme="light"] .site-header,
body[data-theme="mixed"] .site-header {
  border-color: rgba(149, 104, 28, 0.22);
  background: rgba(255, 251, 244, 0.92);
  box-shadow: 0 1.125rem 4.4rem rgba(55, 36, 10, 0.12);
}
body[data-theme="light"] .brand strong,
body[data-theme="light"] .brand small,
body[data-theme="mixed"] .brand strong,
body[data-theme="mixed"] .brand small { color: #17100b; }
body[data-theme="light"] .brand strong span,
body[data-theme="mixed"] .brand strong span { color: #b77a20; }
body[data-theme="light"] .nav-links,
body[data-theme="mixed"] .nav-links { background: rgba(255, 251, 244, 0.98); }
body[data-theme="light"] .nav-links a,
body[data-theme="mixed"] .nav-links a { color: #625644; }
body[data-theme="light"] .nav-links a:hover,
body[data-theme="light"] .nav-links a[aria-current="page"],
body[data-theme="mixed"] .nav-links a:hover,
body[data-theme="mixed"] .nav-links a[aria-current="page"] { color: #8f6219; }
body[data-theme="light"] .language-toggle,
body[data-theme="light"] .theme-button,
body[data-theme="mixed"] .language-toggle,
body[data-theme="mixed"] .theme-button {
  color: #17100b;
  border-color: rgba(149, 104, 28, 0.22);
  background: rgba(255, 255, 255, 0.72);
}
body[data-theme="light"] .theme-menu,
body[data-theme="mixed"] .theme-menu {
  color: #17100b;
  border-color: rgba(149, 104, 28, 0.22);
  background: rgba(255, 251, 244, 0.98);
  box-shadow: 0 1.25rem 3.5rem rgba(55, 36, 10, 0.16);
}
body[data-theme="light"] .theme-menu button,
body[data-theme="mixed"] .theme-menu button { color: #625644; }
body[data-theme="light"] .theme-menu button.active,
body[data-theme="mixed"] .theme-menu button.active { color: #17100b; }
body[data-theme="light"] .menu-button,
body[data-theme="mixed"] .menu-button { color: #17100b; border-color: rgba(149, 104, 28, 0.28); background: #fffaf1; }
body[data-theme="light"] .development-home .instructor-text h2 { color: #17100b; }
body[data-theme="light"] .development-home .bio-grid div { border-color: rgba(149, 104, 28, 0.16); background: rgba(255, 255, 255, 0.74); }
body[data-theme="light"] .development-home .bio-grid span { color: #625644; }
body[data-theme="light"] .dev-payment-strip,
body[data-theme="mixed"] .dev-payment-strip {
  border-color: rgba(149, 104, 28, 0.2);
  background: radial-gradient(circle at 10% 10%, rgba(214, 166, 70, 0.12), transparent 30%), linear-gradient(145deg, #fffdf8, #f5ead8);
  box-shadow: 0 1.5rem 4.5rem rgba(55, 36, 10, 0.12);
}
body[data-theme="light"] .dev-payment-strip h2,
body[data-theme="mixed"] .dev-payment-strip h2 { color: #17100b; }
body[data-theme="light"] .dev-payment-strip li,
body[data-theme="mixed"] .dev-payment-strip li { border-color: rgba(149, 104, 28, 0.16); background: rgba(255, 255, 255, 0.66); }
body[data-theme="light"] .site-footer,
body[data-theme="mixed"] .site-footer { color: #17100b; border-top-color: rgba(149, 104, 28, 0.2); background: rgba(255, 251, 244, 0.94); }

body[data-theme="light"] .registration-clone .form-intro,
body[data-theme="light"] .registration-clone .form-panel,
body[data-theme="light"] .payment-clone .payment-head,
body[data-theme="light"] .payment-clone .payment-summary,
body[data-theme="light"] .payment-clone .payment-methods,
body[data-theme="mixed"] .registration-clone .form-intro,
body[data-theme="mixed"] .registration-clone .form-panel,
body[data-theme="mixed"] .payment-clone .payment-head,
body[data-theme="mixed"] .payment-clone .payment-summary,
body[data-theme="mixed"] .payment-clone .payment-methods {
  color: #17100b;
  border-color: rgba(149, 104, 28, 0.2);
  background: radial-gradient(circle at 10% 10%, rgba(214, 166, 70, 0.1), transparent 32%), linear-gradient(145deg, #fffdf8, #f7efe1);
  box-shadow: 0 1.5rem 5rem rgba(55, 36, 10, 0.13);
}
body[data-theme="light"] .registration-clone .form-intro h1,
body[data-theme="light"] .payment-clone .payment-head h1,
body[data-theme="mixed"] .registration-clone .form-intro h1,
body[data-theme="mixed"] .payment-clone .payment-head h1 { color: #17100b; }
body[data-theme="light"] .registration-clone .form-intro p,
body[data-theme="light"] .payment-clone .payment-head p,
body[data-theme="light"] .registration-clone .form-note,
body[data-theme="mixed"] .registration-clone .form-intro p,
body[data-theme="mixed"] .payment-clone .payment-head p,
body[data-theme="mixed"] .registration-clone .form-note { color: #625644; }
body[data-theme="light"] .registration-clone input,
body[data-theme="light"] .registration-clone select,
body[data-theme="light"] .registration-clone textarea,
body[data-theme="light"] .payment-clone input,
body[data-theme="light"] .payment-clone select,
body[data-theme="mixed"] .registration-clone input,
body[data-theme="mixed"] .registration-clone select,
body[data-theme="mixed"] .registration-clone textarea,
body[data-theme="mixed"] .payment-clone input,
body[data-theme="mixed"] .payment-clone select { color: #17100b; border-color: rgba(149, 104, 28, 0.22); background: rgba(255, 255, 255, 0.78); }
body[data-theme="light"] .registration-clone label,
body[data-theme="light"] .payment-clone label,
body[data-theme="mixed"] .registration-clone label,
body[data-theme="mixed"] .payment-clone label { color: #17100b; }

.payment-instructions { max-width: 65ch; }
.quick-methods { grid-template-columns: 1fr; }
.quick-methods a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 6.5rem;
  gap: 1rem;
  padding: 1rem;
  border-color: var(--line);
}
.quick-methods a > span { display: grid; gap: 0.3rem; }
.quick-methods a small { color: var(--muted); line-height: 1.55; }
.method-action { color: var(--accent-strong); font-size: 0.78rem; white-space: nowrap; }
.whatsapp-receipt { display: grid; gap: 1rem; margin-block: 1.25rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.whatsapp-receipt > div { display: grid; gap: 0.35rem; }
.whatsapp-receipt span { color: var(--muted); }
.whatsapp-receipt .button { justify-self: start; }

html[dir="ltr"] .ai-workflow-copy,
html[dir="ltr"] .shift-card,
html[dir="ltr"] .value-workflow-section,
html[dir="ltr"] .instructor-text,
html[dir="ltr"] .register-panel,
html[dir="ltr"] .offer-panel,
html[dir="ltr"] .dev-payment-strip,
html[dir="ltr"] .final-premium-cta__content { text-align: left; }

@media (max-width: 63.99rem) {
  .language-toggle { min-width: 4.6rem; padding-inline: 0.65rem; font-size: 0.78rem; }
  .theme-button { display: grid; }
  .nav-links { max-height: calc(100dvh - var(--header-height) - 2.5rem); overflow-y: auto; }
}

@media (max-width: 31rem) {
  .brand strong { font-size: 1.15rem; }
  .brand small { display: none; }
  .language-toggle { min-width: 4.1rem; min-height: 2.5rem; }
  .theme-button,
  .menu-button { min-width: 2.5rem; min-height: 2.5rem; }
  .quick-methods a { grid-template-columns: auto minmax(0, 1fr); }
  .method-action { grid-column: 2; white-space: normal; }
}


/* experience.css */
/* MIMARX unified experience layer — loaded last on every public page. */
:root {
  --mx-bg: #080604;
  --mx-surface: #110e0a;
  --mx-surface-raised: #18130d;
  --mx-text: #fff8ec;
  --mx-muted: #d4cbb8;
  --mx-gold: #e3b85b;
  --mx-gold-soft: #f1d58e;
  --mx-line: rgba(227, 184, 91, 0.24);
  --mx-hairline: rgba(255, 248, 236, 0.1);
  --mx-danger: #ff9388;
  --mx-success: #7fd6a8;
  --mx-radius: 1.35rem;
  --mx-ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --mx-bg: #f4f0e8;
  --mx-surface: #fffdf8;
  --mx-surface-raised: #ebe4d8;
  --mx-text: #17120c;
  --mx-muted: #655c50;
  --mx-gold: #9b6819;
  --mx-gold-soft: #80510a;
  --mx-line: rgba(128, 81, 10, 0.24);
  --mx-hairline: rgba(23, 18, 12, 0.12);
  --mx-danger: #a4362f;
  --mx-success: #176943;
  color-scheme: light;
}

html[data-theme="mixed"] {
  --mx-bg: #eee8dd;
  --mx-surface: #fffdf8;
  --mx-surface-raised: #17120c;
  --mx-text: #17120c;
  --mx-muted: #655c50;
  --mx-gold: #a36d17;
  --mx-gold-soft: #83540b;
  --mx-line: rgba(128, 81, 10, 0.24);
  --mx-hairline: rgba(23, 18, 12, 0.12);
  --mx-danger: #a4362f;
  --mx-success: #176943;
  color-scheme: light;
}

body {
  --bg: var(--mx-bg);
  --surface: var(--mx-surface);
  --surface-2: var(--mx-surface-raised);
  --surface-3: var(--mx-surface-raised);
  --text: var(--mx-text);
  --muted: var(--mx-muted);
  --accent: var(--mx-gold);
  --accent-strong: var(--mx-gold-soft);
  --line: var(--mx-line);
  --line-soft: var(--mx-hairline);
  --danger: var(--mx-danger);
  --success: var(--mx-success);
  min-height: 100dvh;
  background: var(--mx-bg) !important;
  color: var(--mx-text);
}

body::before,
body::after { display: none !important; }

main { min-height: 55dvh; }

.section-shell { width: min(calc(100% - 1.5rem), 82rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* Stable floating command bar */
.site-header {
  position: sticky;
  inset-block-start: 0.65rem;
  z-index: 90;
  width: min(calc(100% - 1rem), 83rem);
  height: 4.45rem;
  margin: 0.65rem auto 1rem;
  border: 1px solid var(--mx-line) !important;
  border-radius: 999rem;
  background: color-mix(in srgb, var(--mx-bg) 90%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: blur(1rem) saturate(1.2);
}

.nav-shell { width: 100% !important; padding-inline: 0.7rem; }
.brand { width: auto; min-width: 7.5rem; display: grid; align-content: center; line-height: 1; }
.brand strong { color: var(--mx-text); font-size: 1.05rem; letter-spacing: 0.16em; direction: ltr; }
.brand strong span { color: var(--mx-gold-soft); }
.brand small { margin-block-start: 0.32rem; color: var(--mx-muted); font-size: 0.47rem; font-weight: 800; letter-spacing: 0.2em; direction: ltr; }

.nav-links a {
  position: relative;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999rem;
  color: var(--mx-muted) !important;
  font-size: 0.83rem;
  font-weight: 800;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--mx-text) !important; background: color-mix(in srgb, var(--mx-gold) 12%, transparent); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 1rem; inset-block-end: 0.3rem; height: 1px; background: var(--mx-gold); }

.nav-actions { gap: 0.4rem; }
.language-toggle,
.theme-button,
.menu-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid !important;
  place-items: center;
  padding: 0 0.7rem;
  border: 1px solid var(--mx-line) !important;
  border-radius: 999rem !important;
  color: var(--mx-text) !important;
  background: transparent !important;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}
.theme-button { padding: 0; font-size: 1rem; }
.menu-button { padding: 0; }
.menu-button span { width: 1rem; background: var(--mx-text); }
.nav-cta { min-height: 2.75rem !important; padding-inline: 1rem !important; }

.theme-switcher { position: relative; }
.theme-menu {
  inset-block-start: calc(100% + 0.75rem) !important;
  inset-inline-end: 0 !important;
  min-width: 10rem;
  padding: 0.45rem;
  border: 1px solid var(--mx-line) !important;
  border-radius: 1rem !important;
  background: var(--mx-surface) !important;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2) !important;
}
.theme-menu button { min-height: 2.75rem; border-radius: 0.7rem; color: var(--mx-muted) !important; font-weight: 800; }
.theme-menu button.active { color: var(--mx-text) !important; background: color-mix(in srgb, var(--mx-gold) 14%, transparent) !important; }

/* Shared controls and surfaces */
.button {
  min-height: 3.25rem;
  border-radius: 999rem;
  transition: transform 220ms var(--mx-ease), background-color 160ms ease, border-color 160ms ease;
}
.button-primary { color: #17120c !important; background: var(--mx-gold-soft) !important; box-shadow: 0 0.2rem 1rem rgba(227, 184, 91, 0.15) !important; }
.button-primary:hover { background: var(--mx-gold) !important; box-shadow: 0 0.5rem 1.5rem rgba(227, 184, 91, 0.25) !important; }
.button-secondary { color: var(--mx-text) !important; border-color: rgba(255, 255, 255, 0.2) !important; background: transparent !important; }
.button-secondary:hover { border-color: var(--mx-gold-soft) !important; }

input,
select,
textarea {
  min-height: 3.45rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--mx-line) !important;
  border-radius: 0.85rem;
  color: var(--mx-text) !important;
  background: color-mix(in srgb, var(--mx-surface) 88%, transparent) !important;
  box-shadow: none !important;
}
textarea { min-height: 8.5rem; }
input:focus,
select:focus,
textarea:focus { outline: 2px solid color-mix(in srgb, var(--mx-gold) 38%, transparent) !important; outline-offset: 1px; border-color: var(--mx-gold) !important; }
label { color: var(--mx-text) !important; font-size: 0.84rem; }
.check-field input { accent-color: var(--mx-gold); }

.simple-hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  border-block-end: 1px solid var(--mx-hairline);
}
.simple-hero::before { content: "MIMARX / 01"; display: block; margin-block-end: 3rem; color: var(--mx-gold-soft); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.18em; direction: ltr; text-align: right; }
.simple-hero > div { max-width: 58rem; }
.simple-hero h1 { color: var(--mx-text); letter-spacing: -0.05em; }
.simple-hero p { color: var(--mx-muted); }
.page-intro-badge,
.eyebrow { color: var(--mx-gold-soft) !important; }

.course-card,
.course-aside,
.course-detail-main section,
.curriculum details,
.faq-list details,
.legal-lead {
  border-color: var(--mx-hairline) !important;
  background: var(--mx-surface) !important;
  box-shadow: none !important;
}
.course-card { border-radius: var(--mx-radius); }
.course-card-media { background: var(--mx-surface-raised); }
.course-card-body strong,
.course-aside > strong { color: var(--mx-gold-soft); }
.course-meta span { border-color: var(--mx-line); color: var(--mx-muted); background: transparent; }
.course-detail-main { gap: 1px; overflow: hidden; border: 1px solid var(--mx-hairline); border-radius: var(--mx-radius); background: var(--mx-hairline); }
.course-detail-main > section { padding: clamp(1.25rem, 4vw, 2.25rem); }

/* Registration and payment */
.registration-clone .form-page,
.payment-clone .payment-page { width: min(calc(100% - 1.5rem), 82rem) !important; padding-block: clamp(2rem, 6vw, 5rem); }
.registration-clone .form-page { gap: clamp(2rem, 7vw, 7rem); }
.form-intro h1,
.payment-head h1 { color: var(--mx-text); font-size: clamp(2.5rem, 6vw, 5.2rem); letter-spacing: -0.055em; }
.form-intro > p,
.payment-head p { color: var(--mx-muted); }
.registration-facts { display: grid; gap: 0; margin-block: 2rem; border-block: 1px solid var(--mx-line); }
.registration-facts span { min-height: 3rem; display: flex; align-items: center; border-block-end: 1px solid var(--mx-hairline); color: var(--mx-muted); font-size: 0.78rem; font-weight: 800; direction: ltr; }
.registration-facts span:last-child { border-block-end: 0; }
.form-panel,
.payment-summary,
.payment-methods {
  position: relative;
  padding: clamp(1rem, 4vw, 2.2rem) !important;
  border: 1px solid var(--mx-line) !important;
  border-radius: var(--mx-radius) !important;
  color: var(--mx-text) !important;
  background: var(--mx-surface) !important;
  box-shadow: none !important;
}
.form-panel::before,
.payment-summary::before,
.payment-methods::before { content: ""; position: absolute; inset: 0.45rem; z-index: 0; border: 1px solid var(--mx-hairline); border-radius: calc(var(--mx-radius) - 0.35rem); pointer-events: none; }
.form-panel > *,
.payment-summary > *,
.payment-methods > * { position: relative; z-index: 1; }
.form-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-block-end: 1.6rem; padding-block-end: 1rem; border-block-end: 1px solid var(--mx-hairline); }
.form-panel-head span { color: var(--mx-gold-soft); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.15em; direction: ltr; }
.form-panel-head h2 { margin: 0; font-size: 1.35rem; }
.form-panel-head p { width: 100%; margin: 0; font-size: 0.82rem; }
.form-panel .button-primary { width: 100%; justify-content: space-between; padding: 0.45rem 0.48rem 0.45rem 1.25rem; font-weight: 900; }
.form-panel .button-primary i { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; color: var(--mx-gold-soft); background: #17120c; font-style: normal; }
.form-note { color: var(--mx-muted); text-align: center; }
.form-status.is-error { color: var(--mx-danger); }
.form-status.is-success { color: var(--mx-success); }
.mini-steps { gap: 0; border-block: 1px solid var(--mx-line); }
.mini-steps li { flex: 1; min-height: 3rem; display: grid; place-items: center; padding: 0.5rem; border: 0; border-inline-end: 1px solid var(--mx-hairline); border-radius: 0; color: var(--mx-muted); background: transparent; font-size: 0.75rem; font-weight: 800; }
.mini-steps li:last-child { border-inline-end: 0; }
.mini-steps .active { color: var(--mx-gold-soft); background: color-mix(in srgb, var(--mx-gold) 9%, transparent); }
.payment-head { align-items: start !important; }
.payment-layout { gap: 1rem !important; }
.payment-summary { align-self: start; }
.summary-list div { padding-block: 0.9rem; border-color: var(--mx-hairline); }
.summary-list dt { color: var(--mx-muted); font-size: 0.75rem; }
.summary-list dd { color: var(--mx-text); }
.payment-method { border-color: var(--mx-hairline); border-radius: 1rem; background: color-mix(in srgb, var(--mx-surface-raised) 45%, transparent); }
.payment-method header img,
.quick-methods img { padding: 0.25rem; background: #fff; }
.quick-methods a { border-color: var(--mx-line); border-radius: 1rem; }
.secure-payment-note,
.payment-recovery { padding: 1.15rem; border: 1px solid var(--mx-line); border-radius: 1rem; background: color-mix(in srgb, var(--mx-gold) 8%, transparent); }
.payment-recovery { display: grid; gap: 0.7rem; }
.payment-recovery h2,
.payment-recovery p { margin: 0; }
.payment-recovery__brands { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 0.5rem; }
.payment-recovery__brands img { width: 5rem; height: 2.8rem; padding: 0.3rem; object-fit: contain; border-radius: 0.55rem; background: #fff; }
.payment-recovery .button-row { margin-block-start: 0.4rem; }

/* Reviews — editorial, calm, no fabricated content */
.review-toolbar { 
  display: grid;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--mx-hairline); 
  margin-block-end: 2.5rem;
}
@media (min-width: 768px) {
  .review-toolbar { grid-template-columns: repeat(3, 1fr); }
}
.review-toolbar label { font-size: 0.9rem; font-weight: 700; color: var(--mx-text); }
.review-toolbar select { margin-block-start: 0.5rem; }

.rating-summary {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  margin-block-end: 3rem;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  background: var(--mx-surface);
}
@media (min-width: 768px) {
  .rating-summary { grid-template-columns: minmax(18rem, 0.6fr) 1.4fr; }
}

.rating-primary {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: color-mix(in srgb, var(--mx-gold) 6%, transparent);
  border-block-end: 1px solid var(--mx-hairline);
}
@media (min-width: 768px) {
  .rating-primary { border-block-end: none; border-inline-end: 1px solid var(--mx-hairline); }
}
.rating-primary strong { color: var(--mx-gold-soft); font-size: 5.5rem; font-weight: 900; line-height: 1; margin-block-end: 0.5rem; }
.rating-primary .stars { color: var(--mx-gold); font-size: 1.25rem; letter-spacing: 0.15em; margin-block-end: 0.75rem; }
.rating-primary span { color: var(--mx-muted); font-size: 0.95rem; }

.rating-distribution {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 2.5rem;
}
.rating-distribution div {
  display: grid;
  grid-template-columns: 3.5rem 1fr 3rem;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}
.rating-distribution strong { color: var(--mx-gold-soft); font-weight: 700; }
.rating-distribution span { color: var(--mx-text); font-weight: 600; text-align: start; }
.rating-distribution small { color: var(--mx-muted); text-align: end; }

.review-grid {
  display: grid;
  gap: 1.5rem;
  margin-block-end: 3rem;
}
@media (min-width: 768px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--mx-hairline);
  border-radius: var(--mx-radius);
  background: var(--mx-surface);
  transition: border-color 0.3s var(--mx-ease), transform 0.3s var(--mx-ease);
}
.review-card:hover { border-color: var(--mx-line); transform: translateY(-3px); }
.review-card::before {
  content: "“";
  position: absolute;
  inset-inline-end: 1.5rem;
  inset-block-start: 0.5rem;
  color: color-mix(in srgb, var(--mx-gold) 15%, transparent);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  pointer-events: none;
}
.review-card header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-block-end: 1.25rem;
  margin-block-end: 1.25rem;
  border-block-end: 1px solid var(--mx-hairline);
}
.review-card__identity { display: flex; align-items: center; gap: 1rem; }
.review-avatar {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--mx-line);
  border-radius: 50%;
  color: var(--mx-gold-soft);
  background: color-mix(in srgb, var(--mx-gold) 12%, transparent);
  font-size: 1.15rem;
  font-weight: 800;
}
.review-card__identity h3 { margin: 0; font-size: 1.1rem; color: var(--mx-text); }
.review-card__identity small { display: block; margin-block-start: 0.2rem; color: var(--mx-muted); font-size: 0.85rem; max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-card .stars { color: var(--mx-gold); letter-spacing: 0.1em; font-size: 1.05rem; margin-block-start: 0.2rem; }
.review-card p { color: var(--mx-muted); font-size: 0.95rem; line-height: 1.7; margin-block-end: 1rem; }
.review-card p:last-child { margin-block-end: 0; }
.review-card p strong { color: var(--mx-text); font-weight: 600; margin-inline-end: 0.25rem; }

.review-empty {
  min-height: 18rem;
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-block: 1px solid var(--mx-line);
  color: var(--mx-text);
  border-radius: var(--mx-radius);
}
.review-empty span { color: var(--mx-gold-soft); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.15em; direction: ltr; }
.review-empty h3 { margin: 0; }
.review-empty p { max-width: 48ch; margin: 0; color: var(--mx-muted); }
.review-submit { display: grid; gap: 2rem; border-block-start: 1px solid var(--mx-hairline); }
.review-submit .form-panel { max-width: 58rem; }

/* Footer becomes a final deliberate surface, not a leftover bar. */
.site-footer {
  margin-block-start: clamp(4rem, 10vw, 9rem);
  border-block-start: 1px solid var(--mx-line) !important;
  color: #fff8ec !important;
  background: #080604 !important;
}
.footer-shell { width: min(calc(100% - 1.5rem), 82rem); grid-template-columns: 1fr !important; gap: 0 !important; padding-block: 0 !important; }
.footer-top { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.footer-brand { max-width: 34rem; }
.footer-brand .brand strong { color: #fff8ec; }
.footer-brand p { max-width: 48ch; margin-block-start: 1.25rem; color: #bdb19e !important; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-block: 1px solid rgba(227, 184, 91, 0.24); }
.footer-cta p { margin: 0; color: #fff8ec !important; font-size: clamp(1.15rem, 3vw, 1.8rem); font-weight: 800; }
.footer-cta .button { flex: 0 0 auto; }
.footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1rem; padding-block: 1.5rem; }
.footer-links a { color: #bdb19e !important; border-block-end: 1px solid rgba(255,255,255,0.07); font-size: 0.82rem; }
.footer-links a:hover { color: #f1d58e !important; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 1.15rem; border-block-start: 1px solid rgba(255,255,255,0.08); color: #8f8577 !important; }

/* Academy follows the same tokens in light mode; mixed intentionally keeps the showcase dark. */
body.academy-experience[data-theme="light"] {
  --academy-bg: var(--mx-bg);
  --academy-panel: var(--mx-surface);
  --academy-panel-raised: var(--mx-surface-raised);
  --academy-paper: #fffdf8;
  --academy-ink: #17120c;
  --academy-text: var(--mx-text);
  --academy-muted: var(--mx-muted);
  --academy-gold: var(--mx-gold);
  --academy-gold-soft: var(--mx-gold-soft);
  --academy-line: var(--mx-line);
  --academy-hairline: var(--mx-hairline);
}
body.academy-experience[data-theme="mixed"] { --mx-bg: #080604; --mx-surface: #110e0a; --mx-surface-raised: #18130d; --mx-text: #fff8ec; --mx-muted: #bdb19e; --mx-gold: #e3b85b; --mx-gold-soft: #f1d58e; --mx-line: rgba(227,184,91,.24); --mx-hairline: rgba(255,248,236,.1); color-scheme: dark; }
body.academy-experience[data-theme="light"] .projects-section { color: #fff8ec; }

@media (min-width: 40rem) {
  .review-submit { grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1.45fr); align-items: start; }
  .footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .section-shell { width: min(calc(100% - 3rem), 82rem); }
  .registration-clone .form-page { grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr) !important; }
  .payment-head { grid-template-columns: minmax(0, 1fr) auto; }
  .payment-layout { grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr) !important; }
  .payment-summary { position: sticky; inset-block-start: 6.5rem; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr); align-items: end; }
}

@media (min-width: 64rem) {
  .menu-button { display: none !important; }
  .nav-shell { padding-inline: 1rem; }
  .footer-links { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 63.99rem) {
  .site-header { border-radius: 1.2rem; }
  .language-toggle { display: none !important; }
  .nav-links {
    position: fixed !important;
    inset: 5.8rem 0.5rem auto !important;
    max-height: calc(100dvh - 6.5rem);
    padding: 0.75rem !important;
    overflow-y: auto;
    border: 1px solid var(--mx-line) !important;
    border-radius: 1.2rem;
    background: var(--mx-bg) !important;
    box-shadow: none !important;
  }
  .nav-links.is-open { display: grid; }
  .nav-links a { min-height: 3.5rem; padding-inline: 1rem; border-block-end: 1px solid var(--mx-hairline); border-radius: 0; }
  .nav-links a:last-child { border-block-end: 0; }
}

@media (max-width: 31rem) {
  .site-header { width: calc(100% - 0.75rem); }
  .nav-shell { padding-inline: 0.55rem; }
  .brand small { display: none; }
  .brand strong { font-size: 0.92rem; }
  .theme-button,
  .menu-button { min-width: 2.6rem; min-height: 2.6rem; }
  .rating-distribution { grid-template-columns: 1fr; }
  .rating-distribution div { grid-template-columns: 3rem 1fr 2rem; align-items: center; text-align: start; }
  .payment-layout { gap: 0.75rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 2026 refinement: true light mode, golden architectural texture, clearer commerce. */
body[data-theme="light"] {
  background-color: #f7f3eb !important;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(164, 108, 18, 0.13) 1px, transparent 1.1px),
    linear-gradient(115deg, transparent 0 47%, rgba(164, 108, 18, 0.035) 47.1% 47.25%, transparent 47.35%) !important;
  background-size: 18px 18px, 100% 44rem !important;
  background-attachment: fixed !important;
}

body[data-theme="light"] .site-header {
  border-color: rgba(143, 91, 10, 0.24) !important;
  background: rgba(255, 253, 248, 0.94) !important;
  box-shadow: 0 0.7rem 2rem rgba(71, 46, 8, 0.06) !important;
}

body[data-theme="light"] .site-header .nav-links { background: transparent !important; box-shadow: none !important; }
body[data-theme="light"] .site-header .nav-links a { color: #62584c !important; background: transparent !important; }
body[data-theme="light"] .site-header .nav-links a:hover,
body[data-theme="light"] .site-header .nav-links a[aria-current="page"] { color: #7d4d05 !important; }
body[data-theme="light"] .site-header .nav-links a[aria-current="page"]::after { inset-inline: 42%; height: 0.26rem; border-radius: 50%; }
body[data-theme="light"] .language-toggle,
body[data-theme="light"] .theme-button,
body[data-theme="light"] .menu-button { color: #17120c !important; border-color: rgba(143, 91, 10, 0.22) !important; background: #fffdf8 !important; }
body[data-theme="light"] .nav-cta,
body[data-theme="light"] .button-primary { color: #17120c !important; background: linear-gradient(105deg, #f4d786, #c9861f) !important; box-shadow: 0 0.7rem 1.5rem rgba(168, 108, 19, 0.14); }

body[data-theme="light"] .simple-hero,
body[data-theme="light"] .course-detail-hero,
body[data-theme="light"] .form-intro,
body[data-theme="light"] .payment-head { background: transparent !important; box-shadow: none !important; }

/* Light is fully light. Mixed mode remains the intentional alternating mode. */
body[data-theme="light"] .site-footer {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.2) !important;
  background: rgba(255, 253, 248, 0.96) !important;
}
body[data-theme="light"] .site-footer .brand strong,
body[data-theme="light"] .site-footer .footer-cta p { color: #17120c !important; }
body[data-theme="light"] .site-footer .footer-brand p,
body[data-theme="light"] .site-footer .footer-links a { color: #655c50 !important; }
body[data-theme="light"] .site-footer .footer-cta,
body[data-theme="light"] .site-footer .footer-meta,
body[data-theme="light"] .site-footer .footer-links a { border-color: rgba(23, 18, 12, 0.11); }
body[data-theme="light"] .site-footer .footer-links a:hover { color: #80510a !important; }

body[data-theme="light"].development-home .final-premium-cta,
body[data-theme="light"].development-home .final-premium-cta__inner {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.2) !important;
  background: rgba(255, 253, 248, 0.92) !important;
  box-shadow: none !important;
}
body[data-theme="light"].development-home .final-premium-cta h2 { color: #17120c !important; }
body[data-theme="light"].development-home .final-premium-cta p { color: #655c50 !important; }
body[data-theme="light"].development-home .premium-register-offer,
body[data-theme="light"].development-home .workflow-shift-section,
body[data-theme="light"].development-home .value-workflow-section { background-color: transparent !important; }

/* Academy light-mode contrast repair. */
body.academy-experience[data-theme="light"] .curriculum-section,
body.academy-experience[data-theme="light"] .projects-section,
body.academy-experience[data-theme="light"] .tools-section { background: transparent !important; }
body.academy-experience[data-theme="light"] .projects-section { border-color: var(--academy-line); }
body.academy-experience[data-theme="light"] .project-copy h3,
body.academy-experience[data-theme="light"] .project-copy > p,
body.academy-experience[data-theme="light"] .project-copy li { color: var(--academy-text) !important; }
body.academy-experience[data-theme="light"] .project-copy .project-number,
body.academy-experience[data-theme="light"] .project-copy .project-subtitle { color: var(--academy-gold-soft) !important; }
body.academy-experience[data-theme="light"] .academy-panel--image::after { inset: 46% 0 0; background: linear-gradient(transparent, rgba(255, 253, 248, 0.96)); }
body.academy-experience[data-theme="light"] .academy-panel--image h3 { color: #17120c; }
body.academy-experience[data-theme="light"] .tool-dock article { border-color: rgba(143, 91, 10, 0.23); background: #fffdf8; }
body.academy-experience[data-theme="light"] .tool-dock img { opacity: 0.9; }
body.academy-experience[data-theme="light"] .tool-dock article::after { background: linear-gradient(0deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.08) 75%); }
body.academy-experience[data-theme="light"] .tool-dock span { color: #17120c; }
body.academy-experience[data-theme="light"] .tool-dock small { color: #80510a; }
body.academy-experience[data-theme="light"] .tool-card,
body.academy-experience[data-theme="light"] .academy-panel,
body.academy-experience[data-theme="light"] .offer-ticket,
body.academy-experience[data-theme="light"] .project-gallery-shell { box-shadow: none; }
body.academy-experience[data-theme="light"] .tool-card figure img { opacity: 0.92; }
body.academy-experience[data-theme="light"] .academy-final { border-color: var(--academy-line); }

/* Payment should look like a transaction flow, not a broken empty state. */
.payment-clone .payment-page { max-width: 78rem; }
.payment-clone .payment-head {
  display: grid;
  gap: 2rem;
  margin-block-end: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2rem, 6vw, 4.5rem);
  border-block: 1px solid var(--mx-line);
  border-radius: 0 !important;
}
.payment-clone .payment-head h1 { max-width: 14ch; margin-block-end: 1rem; font-size: clamp(2.5rem, 4.3vw, 4.25rem); }
.payment-clone .payment-head > div { max-width: 48rem; }
.payment-clone .payment-layout { align-items: start; }
.payment-clone .payment-summary,
.payment-clone .payment-methods { min-height: 100%; }
.payment-recovery { gap: 1.4rem; padding: clamp(1rem, 3vw, 1.5rem); border: 0; background: transparent; }
.payment-recovery__head { display: grid; gap: 0.3rem; padding-block-end: 1.2rem; border-block-end: 1px solid var(--mx-hairline); }
.payment-recovery__head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.payment-recovery__head p { max-width: 58ch; margin: 0; }
.payment-channel-grid { display: grid; gap: 0.75rem; }
.payment-channel {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--mx-hairline);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--mx-surface-raised) 35%, var(--mx-surface));
}
.payment-channel img { width: 4.5rem; height: 3rem; padding: 0.3rem; object-fit: contain; border-radius: 0.55rem; background: #fff; }
.payment-channel h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.payment-channel p { margin: 0; font-size: 0.78rem; }
.payment-channel button { grid-column: 1 / -1; min-height: 2.8rem; border: 1px solid var(--mx-line); border-radius: 999rem; color: var(--mx-muted); background: transparent; font: inherit; font-size: 0.8rem; font-weight: 800; }
.payment-channel button:disabled { cursor: not-allowed; opacity: 0.72; }
.payment-recovery__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.payment-recovery__actions .button-primary { gap: 0.8rem; }
.payment-recovery > small { color: var(--mx-muted); }

body[data-theme="light"].payment-clone .payment-head,
body[data-theme="light"].payment-clone .payment-summary,
body[data-theme="light"].payment-clone .payment-methods {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.22) !important;
  background: rgba(255, 253, 248, 0.9) !important;
  box-shadow: none !important;
}
body[data-theme="light"].payment-clone .payment-head { background: transparent !important; }
body[data-theme="light"].payment-clone .payment-head h1,
body[data-theme="light"].payment-clone .payment-summary h2,
body[data-theme="light"].payment-clone .payment-methods h2,
body[data-theme="light"].payment-clone .payment-channel h3 { color: #17120c !important; }
body[data-theme="light"].payment-clone .payment-channel { background: rgba(255, 255, 255, 0.74); }

@media (min-width: 48rem) {
  .payment-clone .payment-head { grid-template-columns: minmax(0, 1fr) 18rem; align-items: end !important; }
  .payment-clone .payment-head .mini-steps { grid-column: 2; grid-row: 1; align-self: end; }
  .payment-clone .payment-head > div { grid-column: 1; grid-row: 1; }
  .payment-channel { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
  .payment-channel button { grid-column: auto; min-width: 11.5rem; padding-inline: 1rem; }
}

@media (max-width: 63.99rem) {
  body[data-theme="light"] .site-header .nav-links { background: #fffdf8 !important; }
}

/* Featured Student Work (Shared) */
.featured-reviews {
  margin-block-end: 4rem;
}
.featured-reviews .section-heading {
  margin-block-end: 3rem;
  text-align: center;
}
.reviews-grid {
  display: grid;
  gap: 2rem;
}
.review-card {
  background: var(--surface-raised, #110e0a);
  border: 1px solid var(--line-soft, rgba(255, 248, 236, 0.1));
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.review-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--surface, #080604);
}
.review-gallery figure {
  margin: 0;
  aspect-ratio: 16/9;
  background: var(--surface, #080604);
}
.review-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex-grow: 1;
}
.review-content blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
}
.review-author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.review-author strong {
  color: var(--accent, #e3b85b);
  font-weight: 700;
  font-size: 1.1rem;
}
.review-author span {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (min-width: 64rem) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* production-fixes.css */
/* Production-only UI fixes — 2026-09-01. Loaded after all page styles. */
:root {
  --mx-action-gradient: linear-gradient(105deg, #f4d67a 0%, #e7b947 48%, #d89520 100%);
  --mx-action-gradient-hover: linear-gradient(105deg, #f8df91 0%, #ecc357 48%, #dda02c 100%);
}

/* Keep the release-wide primary action language visually consistent. */
:where(a, button).button-primary,
:where(a, button).academy-cta--primary,
:where(a, button).btn-gold,
:where(a, button).btn-instapay,
:where(a, button).btn-whatsapp,
.mobile-menu-cta {
  min-height: 3rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  padding: 0.72rem 1.25rem !important;
  border: 0 !important;
  border-radius: 999rem !important;
  color: #17120c !important;
  background: var(--mx-action-gradient) !important;
  box-shadow: none !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap;
}

:where(a, button).button-primary:hover,
:where(a, button).academy-cta--primary:hover,
:where(a, button).btn-gold:hover,
:where(a, button).btn-instapay:hover,
:where(a, button).btn-whatsapp:hover,
.mobile-menu-cta:hover {
  color: #17120c !important;
  background: var(--mx-action-gradient-hover) !important;
}

.mobile-menu-cta { display: none !important; }

/* Light mode is a real paper surface, including commerce and Academy screens. */
html[data-theme="light"],
body[data-theme="light"] { color-scheme: light; }

body[data-theme="light"] :where(.form-panel, .payment-summary, .payment-methods, .course-card, .faq-list details, .review-card) {
  box-shadow: none !important;
}

@media (max-width: 63.99rem) {
  :root { --header-height: 4.25rem; }

  .site-header {
    width: calc(100% - 0.75rem) !important;
    height: var(--header-height) !important;
    margin: 0.4rem auto 0 !important;
    border: 1px solid var(--mx-line, var(--line)) !important;
    border-radius: 1.05rem !important;
  }

  .nav-shell {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 0.55rem !important;
    gap: 0.4rem !important;
  }

  .brand {
    min-width: 0 !important;
    width: auto !important;
    max-width: 7rem;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .brand strong { font-size: clamp(0.82rem, 4vw, 1rem) !important; }
  .brand small { display: none !important; }

  .nav-actions {
    flex: 0 0 auto;
    gap: 0.28rem !important;
  }

  .language-toggle {
    min-width: 3.6rem !important;
    min-height: 2.75rem !important;
    display: grid !important;
    padding-inline: 0.55rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap;
  }

  .theme-button,
  .menu-button {
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
  }

  .nav-actions > .nav-cta { display: none !important; }

  .nav-links {
    position: fixed !important;
    inset: calc(var(--header-height) + 0.85rem) 0.5rem auto !important;
    max-height: calc(100dvh - var(--header-height) - 1.5rem) !important;
    padding: 0.6rem !important;
    overflow-y: auto !important;
    border: 1px solid var(--mx-line, var(--line)) !important;
    border-radius: 1rem !important;
    background: var(--mx-surface, var(--surface)) !important;
    box-shadow: 0 10px 30px rgba(18, 20, 23, 0.1) !important;
  }

  body[data-theme="light"] .site-header .nav-links {
    background: #fffdf8 !important;
  }

  .nav-links.is-open {
    display: grid !important;
    min-height: 0 !important;
    align-content: start !important;
    gap: 0 !important;
    padding: 0.6rem !important;
  }

  .academy-experience .nav-links.is-open {
    min-height: 0 !important;
    align-content: start !important;
  }

  .nav-links a {
    min-height: 3rem !important;
    justify-content: flex-start !important;
    padding-inline: 0.9rem !important;
    border-block-end: 1px solid var(--mx-hairline, var(--line-soft)) !important;
    border-radius: 0 !important;
    font-size: 0.9rem !important;
    text-align: start !important;
  }

  .nav-links .mobile-menu-cta {
    min-height: 3.15rem !important;
    display: inline-flex !important;
    justify-content: center !important;
    margin-block-start: 0.55rem;
    border-block-end: 0 !important;
    border-radius: 999rem !important;
    text-align: center !important;
  }

  .nav-links.is-open a:nth-child(6) { animation-delay: 350ms; }
}

@media (max-width: 47.99rem) {
  /* Touch-first flip cards. Opacity guards prevent iOS Safari from exposing both faces. */
  #cards-scroll-track {
    height: auto !important;
    position: static !important;
  }

  #cards-scroll-track .sticky-container {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    padding-block: 3rem !important;
    overflow: visible !important;
  }

  #cards-scroll-track .flip-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
    margin-block-start: 1.5rem !important;
  }

  #cards-scroll-track .flip-scroll-card {
    min-height: 19.5rem !important;
    height: 19.5rem !important;
    opacity: 1 !important;
    transform: none !important;
    perspective: 75rem !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  #cards-scroll-track .flip-card-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 19.5rem !important;
    display: block !important;
    transform: rotateY(0deg) !important;
    transform-style: preserve-3d !important;
    -webkit-transform-style: preserve-3d !important;
    transition: transform 320ms cubic-bezier(0.22, 0.75, 0.2, 1) !important;
    will-change: transform !important;
  }

  #cards-scroll-track .flip-scroll-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg) !important;
  }

  #cards-scroll-track .flip-front,
  #cards-scroll-track .flip-back {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 19.5rem !important;
    overflow: hidden !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transition: opacity 160ms linear !important;
  }

  #cards-scroll-track .flip-front {
    padding: 1.35rem 1.25rem 4rem !important;
    opacity: 1;
    transform: rotateY(0deg) translateZ(1px) !important;
    pointer-events: auto;
  }

  #cards-scroll-track .flip-front h3 {
    margin-block-end: 0.7rem !important;
    font-size: clamp(1.2rem, 6vw, 1.5rem) !important;
    line-height: 1.25 !important;
  }

  #cards-scroll-track .flip-front p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  #cards-scroll-track .flip-back {
    opacity: 0;
    transform: rotateY(180deg) translateZ(1px) !important;
    pointer-events: none;
  }

  #cards-scroll-track .flip-scroll-card.is-flipped .flip-front {
    opacity: 0;
    pointer-events: none;
  }

  #cards-scroll-track .flip-scroll-card.is-flipped .flip-back {
    opacity: 1;
    pointer-events: auto;
  }

  #cards-scroll-track .flip-front::after,
  #cards-scroll-track .flip-back::before {
    position: absolute;
    z-index: 4;
    inset-inline: 1rem auto;
    inset-block-end: 1rem;
    min-height: 2.4rem;
    display: inline-flex;
    align-items: center;
    padding-inline: 0.9rem;
    border: 1px solid var(--academy-line);
    border-radius: 999rem;
    color: var(--academy-text);
    background: color-mix(in srgb, var(--academy-panel) 90%, transparent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
  }

  #cards-scroll-track .flip-front::after { content: "Tap to view image  ↗"; }
  #cards-scroll-track .flip-back::before {
    content: "Tap to read  ↩";
    inset-block: 0.85rem auto;
    color: #fff8ec;
    border-color: rgba(255, 248, 236, 0.28);
    background: rgba(8, 6, 4, 0.82);
  }

  html[lang="ar"] #cards-scroll-track .flip-front::after { content: "اضغط لعرض الصورة  ↗"; }
  html[lang="ar"] #cards-scroll-track .flip-back::before { content: "اضغط للعودة للنص  ↩"; }

  #cards-scroll-track .flip-scroll-card:focus-visible {
    outline: 0.2rem solid var(--academy-gold-soft);
    outline-offset: 0.25rem;
    border-radius: 1.25rem;
  }

  .academy-cta,
  .button,
  .button-primary,
  .btn-gold,
  .btn-instapay,
  .btn-whatsapp { max-width: 100%; white-space: normal !important; }
}

@media (max-width: 22rem) {
  .language-toggle { min-width: 3.25rem !important; padding-inline: 0.38rem !important; }
  .theme-button,
  .menu-button { min-width: 2.6rem !important; min-height: 2.6rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Release 3: keep copy inside its column and never let it cover adjacent media. */
:where(
  .academy-hero__copy,
  .academy-depth-stage,
  .project-content,
  .project-images,
  .project-copy,
  .project-gallery-shell,
  .course-card-body,
  .course-card-media,
  .course-detail-main,
  .course-aside,
  .form-intro,
  .form-panel,
  .payment-summary,
  .payment-methods
) { min-width: 0; }

:where(.academy-hero, .projects-hero, .simple-hero, .page-hero, .course-detail-hero) :where(h1, h2, h3, p),
:where(.project-content, .project-copy, .course-card-body, .form-intro, .payment-head) :where(h1, h2, h3, p) {
  max-width: 100%;
}

.academy-hero h1 {
  max-width: 100% !important;
  font-size: clamp(2.45rem, 4.35vw, 4.35rem) !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.academy-hero h1 span {
  width: auto !important;
  max-width: 100% !important;
  white-space: normal !important;
}

html[dir="ltr"] .academy-hero h1 { direction: ltr !important; text-align: left; }
html[dir="rtl"] .academy-hero h1 { direction: rtl !important; text-align: right; }

@media (min-width: 64rem) {
  .academy-hero__inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
    gap: clamp(3rem, 5vw, 5rem) !important;
  }

  .academy-hero__copy { max-width: 35rem; }
}

/* Release 15: keep the same flip sequence while removing the long empty-feeling scroll tail. */
@media (min-width: 48.01rem) and (prefers-reduced-motion: no-preference) {
  #cards-scroll-track {
    height: 190svh !important;
  }

  #cards-scroll-track .flip-scroll-card {
    contain: layout paint style;
  }
}

/* Long identifiers must stay inside their existing cards at every viewport width. */
.checkout-container :where(.pay-card, .cib-data-row, .payment-field, .summary-list) {
  min-width: 0;
}

.checkout-container :where(.pay-card b, .pay-card a, .cib-data-row b, .payment-field span, .summary-list dd) {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Release 16: restore the paired Academy section and shared footer. */
@media (min-width: 64rem) {
  body[data-theme] .site-header .nav-links .mobile-menu-cta { display: none !important; }
}

.concept-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.concept-card-grid > article {
  min-width: 0;
  margin: 0 !important;
  padding: clamp(1.5rem, 3vw, 2.75rem) !important;
  border: 1px solid var(--academy-line);
  border-radius: 1.35rem;
  background: var(--academy-panel);
}
#concept .concept-copy-card { display: block !important; }
#concept .concept-copy-card h2 { font-size: clamp(1.8rem, 3vw, 2.65rem) !important; max-width: 22ch; }
#concept .concept-copy-card .section-lead { font-size: 1rem; line-height: 1.75; }
.concept-journey-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.concept-journey-card .concept-flow-strip { display: grid; gap: 0; margin: 0; }
.concept-journey-card .flow-step {
  display: flex; align-items: center; gap: 1.15rem; min-height: 3.25rem;
  text-align: start !important; border-block-end: 1px solid var(--academy-line);
}
.concept-journey-card .flow-step > span { min-width: 1.5rem; }
.concept-journey-card .flow-arrow { display: none; }
.concept-journey-card .concept-action-row { text-align: start !important; }
body[data-theme="mixed"] .concept-card-grid > article {
  --academy-panel: #110e0a; --academy-text: #fff8ec; --academy-muted: #c7bdad;
  --academy-gold: #e3b85b; --academy-gold-soft: #f1d58e; --academy-line: rgba(227,184,91,.25);
  --mx-text: #fff8ec; --mx-muted: #c7bdad;
  color: #fff8ec;
}
body[data-theme="mixed"] #concept .concept-copy-card :where(h2, .section-lead) { color: var(--academy-text) !important; }
@media (min-width: 48rem) {
  .concept-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body[data-theme] .site-footer {
  --mx-text: #17120c; --mx-muted: #655c50; --mx-gold: #9b6819;
  --mx-hairline: rgba(128,81,10,.2);
  margin-block-start: 0 !important;
}
body[data-page="home"][data-theme] .site-footer {
  --mx-text: #fff8ec; --mx-muted: #b9ae9d; --mx-gold: #e3b85b;
  --mx-hairline: rgba(227,184,91,.2);
  color: #fff8ec !important; background: #080604 !important;
}
body[data-theme] .site-footer .footer-shell {
  width: min(calc(100% - 2.5rem), 82rem) !important;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) !important;
}
body[data-theme] .site-footer :where(.footer-contact-title, .footer-email-direct, .footer-brand-title, .footer-group-title) { color: var(--mx-text) !important; }
body[data-theme] .site-footer :where(.footer-brand-description, .footer-group-nav a, .footer-support-desc, .footer-support-mail-link, .footer-brand-tagline, .footer-support-label) { color: var(--mx-muted) !important; }
body[data-theme] .site-footer .footer-logo-lockup {
  width: auto !important; max-width: none; align-self: flex-start;
  margin: 0 !important; align-items: flex-start; text-align: start;
}
body[data-theme] .site-footer .footer-logo-lockup small { display: block !important; }
.site-footer .footer-columns-grid > * { min-width: 0; }
.site-footer .footer-top-support { min-width: 0; text-align: start; border-block: 1px solid var(--mx-hairline); padding-block: 1rem; }
.site-footer .footer-email-direct { overflow-wrap: anywhere; font-size: .9rem; }
.site-footer .footer-top-copy { min-width: 0; }
.site-footer .footer-group-nav a { min-height: 2.75rem; display: flex; align-items: center; }
.site-footer .footer-group-nav { gap: .2rem; }
.site-footer .footer-columns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer .footer-brand-column, .site-footer .footer-support-group { grid-column: 1 / -1; }
@media (min-width: 64rem) {
  .site-footer .footer-top-cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; }
  .site-footer .footer-columns-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, .65fr)) minmax(0, 1.2fr); }
  .site-footer .footer-brand-column, .site-footer .footer-support-group { grid-column: auto; }
}

body[data-page="reviews"] .simple-hero { padding-block-end: 1rem; }
body[data-page="reviews"] .featured-reviews { padding-block-start: 2rem; }
body[data-page="reviews"] section[hidden] { display: none !important; }
body[data-page="reviews"] .review-submit { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2rem; }
body[data-page="reviews"] .review-form { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 1.35rem; border: 1px solid var(--academy-line); background: var(--academy-panel); }
body[data-page="reviews"] .student-quote { font-style: normal; font-size: 1rem; line-height: 1.8; }
body[data-theme="mixed"] .student-review-card, body[data-page="reviews"][data-theme="mixed"] .review-form {
  --academy-panel: #110e0a; --academy-text: #fff8ec; --academy-muted: #c7bdad;
  --academy-line: rgba(227,184,91,.25); --academy-gold: #e3b85b;
  color: #fff8ec;
}
@media (min-width: 64rem) {
  body[data-page="reviews"] .review-submit { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
}

/* Projects inherits Academy's dark tokens; light mode must explicitly reset them. */
body.academy-experience[data-theme="light"] {
  --academy-bg: #f7f3eb;
  --academy-panel: #fffdf8;
  --academy-panel-raised: #f3ecdf;
  --academy-paper: #fffdf8;
  --academy-ink: #17120c;
  --academy-text: #17120c;
  --academy-muted: #655c50;
  --academy-gold: #a96d12;
  --academy-gold-soft: #80510a;
  --academy-line: rgba(143, 91, 10, 0.24);
  --academy-hairline: rgba(23, 18, 12, 0.11);
  color: #17120c !important;
  background-color: #f7f3eb !important;
}

body[data-page="projects"][data-theme="light"] .projects-hero,
body[data-page="projects"][data-theme="light"] .project-section {
  color: #17120c !important;
  background-color: transparent !important;
}

body[data-page="projects"][data-theme="light"] .project-content h3 { color: #17120c !important; }
body[data-page="projects"][data-theme="light"] .project-content p { color: #655c50 !important; }
body[data-page="projects"][data-theme="light"] .project-tags span {
  color: #80510a !important;
  background: rgba(169, 109, 18, 0.09) !important;
}

/* Mixed mode: paper canvas with dark contained cards and panels. */
body[data-theme="mixed"] {
  color-scheme: light;
  --bg: #f7f3eb;
  --surface: #fffdf8;
  --surface-2: #f3ecdf;
  --surface-3: #ece1d0;
  --text: #17120c;
  --muted: #655c50;
  --line: rgba(143, 91, 10, 0.24);
  --line-soft: rgba(23, 18, 12, 0.11);
  --mx-bg: #f7f3eb;
  --mx-surface: #fffdf8;
  --mx-surface-raised: #f3ecdf;
  --mx-text: #17120c;
  --mx-muted: #655c50;
  --mx-line: rgba(143, 91, 10, 0.24);
  --mx-hairline: rgba(23, 18, 12, 0.11);
  color: #17120c !important;
  background-color: #f7f3eb !important;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(164, 108, 18, 0.13) 1px, transparent 1.1px),
    linear-gradient(115deg, transparent 0 47%, rgba(164, 108, 18, 0.035) 47.1% 47.25%, transparent 47.35%) !important;
  background-size: 18px 18px, 100% 44rem !important;
  background-attachment: fixed !important;
}

body.academy-experience[data-theme="mixed"] {
  --academy-bg: #f7f3eb;
  --academy-panel: #fffdf8;
  --academy-panel-raised: #f3ecdf;
  --academy-paper: #fffdf8;
  --academy-ink: #17120c;
  --academy-text: #17120c;
  --academy-muted: #655c50;
  --academy-gold: #a96d12;
  --academy-gold-soft: #80510a;
  --academy-line: rgba(143, 91, 10, 0.24);
  --academy-hairline: rgba(23, 18, 12, 0.11);
  --mx-bg: #f7f3eb;
  --mx-surface: #fffdf8;
  --mx-surface-raised: #f3ecdf;
  --mx-text: #17120c;
  --mx-muted: #655c50;
  --mx-gold: #a96d12;
  --mx-gold-soft: #80510a;
  --mx-line: rgba(143, 91, 10, 0.24);
  --mx-hairline: rgba(23, 18, 12, 0.11);
  color-scheme: light;
  color: #17120c !important;
}

body[data-theme="mixed"] .site-header,
body[data-theme="mixed"] .site-footer {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.22) !important;
  background: rgba(255, 253, 248, 0.95) !important;
}

body[data-theme="mixed"] .site-header .brand strong,
body[data-theme="mixed"] .site-footer .brand strong,
body[data-theme="mixed"] .site-footer .footer-cta p { color: #17120c !important; }
body[data-theme="mixed"] .site-footer :where(p, a, .footer-meta) { color: #655c50 !important; }

body[data-theme="mixed"] .site-header .nav-links a { color: #655c50 !important; }
body[data-theme="mixed"] .site-header .nav-links a:hover,
body[data-theme="mixed"] .site-header .nav-links a[aria-current="page"] {
  color: #80510a !important;
  background: rgba(169, 109, 18, 0.09) !important;
}
body[data-theme="mixed"] .site-header :where(.language-toggle, .theme-button, .menu-button) {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.22) !important;
  background: #fffdf8 !important;
}

body[data-theme="mixed"] :where(
  .rc-card,
  .flip-front,
  .academy-panel,
  .tool-card,
  .curriculum-item,
  .project-gallery-shell,
  .offer-ticket,
  .academy-final,
  .course-card,
  .course-aside,
  .course-detail-main section,
  .curriculum details,
  .review-card,
  .rating-summary,
  .faq-list details,
  .legal-lead,
  .form-panel,
  .payment-summary,
  .payment-methods,
  .payment-channel
) {
  --academy-panel: #110e0a;
  --academy-panel-raised: #18130d;
  --academy-text: #fff8ec;
  --academy-muted: #c8bdac;
  --academy-gold: #e3b85b;
  --academy-gold-soft: #f1d58e;
  --academy-line: rgba(227, 184, 91, 0.28);
  --academy-hairline: rgba(255, 248, 236, 0.11);
  --surface: #110e0a;
  --surface-2: #18130d;
  --text: #fff8ec;
  --muted: #c8bdac;
  --mx-surface: #110e0a;
  --mx-surface-raised: #18130d;
  --mx-text: #fff8ec;
  --mx-muted: #c8bdac;
  --mx-line: rgba(227, 184, 91, 0.28);
  --mx-hairline: rgba(255, 248, 236, 0.11);
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.25) !important;
  background: #110e0a !important;
  box-shadow: none !important;
}

body[data-theme="mixed"] :where(
  .rc-card,
  .flip-front,
  .academy-panel,
  .tool-card,
  .curriculum-item,
  .offer-ticket,
  .academy-final,
  .course-card,
  .course-aside,
  .course-detail-main section,
  .curriculum details,
  .review-card,
  .rating-summary,
  .faq-list details,
  .legal-lead,
  .form-panel,
  .payment-summary,
  .payment-methods,
  .payment-channel
) :where(h1, h2, h3, h4, strong, summary, dt, dd, label) { color: #fff8ec !important; }

body[data-theme="mixed"] :where(
  .rc-card,
  .flip-front,
  .academy-panel,
  .tool-card,
  .curriculum-item,
  .offer-ticket,
  .academy-final,
  .course-card,
  .course-aside,
  .course-detail-main section,
  .curriculum details,
  .review-card,
  .rating-summary,
  .faq-list details,
  .legal-lead,
  .form-panel,
  .payment-summary,
  .payment-methods,
  .payment-channel
) :where(p, li, small) { color: #c8bdac !important; }

body[data-theme="mixed"] :where(.form-panel, .payment-methods) :where(input, select, textarea) {
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.25) !important;
  background: #18130d !important;
}

body[data-page="projects"][data-theme="mixed"] .projects-hero,
body[data-page="projects"][data-theme="mixed"] .project-section {
  color: #17120c !important;
  background: transparent !important;
}

body[data-page="projects"][data-theme="mixed"] .project-container {
  --academy-panel: #110e0a;
  --academy-panel-raised: #18130d;
  --academy-text: #fff8ec;
  --academy-muted: #c8bdac;
  --academy-gold: #e3b85b;
  --academy-gold-soft: #f1d58e;
  --academy-line: rgba(227, 184, 91, 0.28);
  --academy-hairline: rgba(255, 248, 236, 0.11);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(227, 184, 91, 0.25);
  border-radius: 1.25rem;
  color: #fff8ec;
  background: #110e0a;
}

body[data-page="projects"][data-theme="mixed"] .project-content h3 { color: #fff8ec !important; }
body[data-page="projects"][data-theme="mixed"] .project-content h2 { color: #f1d58e !important; }
body[data-page="projects"][data-theme="mixed"] .project-content p { color: #c8bdac !important; }
body[data-page="projects"][data-theme="mixed"] .project-tags span {
  color: #f1d58e !important;
  background: rgba(227, 184, 91, 0.1) !important;
}

body[data-theme="mixed"] .curriculum-list { gap: 0.75rem; }
body[data-theme="mixed"] .curriculum-item { padding-inline: 1rem; border-radius: 0.9rem; }

body[data-theme="mixed"] :where(
  .empty-state,
  .error-state,
  .loading-state,
  .review-empty,
  .checkout-container,
  .enrollment-band
) {
  --text: #fff8ec;
  --muted: #c8bdac;
  --academy-text: #fff8ec;
  --academy-muted: #c8bdac;
  --academy-gold-soft: #f1d58e;
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.25) !important;
  background: #110e0a !important;
  box-shadow: none !important;
}

body[data-theme="mixed"] :where(.empty-state, .error-state, .loading-state, .review-empty, .checkout-container, .enrollment-band) :where(h1, h2, h3, strong, label) {
  color: #fff8ec !important;
}
body[data-theme="mixed"] :where(.empty-state, .error-state, .loading-state, .review-empty, .checkout-container, .enrollment-band) p {
  color: #c8bdac !important;
}

body[data-theme="mixed"] .checkout-container :where(input, select, textarea) {
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.25) !important;
  background: #18130d !important;
}
body[data-theme="mixed"] .checkout-container :where(.price-card, .pay-card, .wa-receipt-box) {
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.22) !important;
  background: #18130d !important;
  box-shadow: none !important;
}
body[data-theme="mixed"] .checkout-container :where(.price-card, .pay-card, .wa-receipt-box) :where(h2, h3, strong, label) {
  color: #fff8ec !important;
}
body[data-theme="mixed"] .checkout-container :where(.price-card, .pay-card, .wa-receipt-box) p {
  color: #c8bdac !important;
}

@media (max-width: 47.99rem) {
  .academy-hero h1 { font-size: clamp(2.25rem, 11vw, 3.15rem) !important; }
  body[data-page="projects"] .project-section { padding-inline: 1rem !important; }
}

/* Release 4: mobile information hierarchy and touch ergonomics. */
@media (max-width: 47.99rem) {
  html { scroll-padding-top: calc(var(--header-height) + 0.8rem); }
  body { font-size: 0.95rem; line-height: 1.62; }

  .section-shell,
  .footer-shell { width: min(100% - 1.25rem, var(--container)) !important; }

  .section { padding-block: 3.25rem !important; }
  .section-heading { margin-block-end: 1.6rem !important; }
  .section-heading p { font-size: 0.95rem !important; }
  .simple-hero,
  .page-hero,
  .course-detail-hero { padding-block: 3rem 2rem !important; }
  .simple-hero h1,
  .page-hero h1,
  .course-detail-hero h1 { font-size: clamp(2.05rem, 10vw, 2.7rem) !important; }

  .academy-hero {
    min-height: 0 !important;
    padding-block: 1.35rem 2.75rem !important;
  }

  .academy-hero__inner { gap: 1.4rem !important; }
  .academy-eyebrow { margin-block-end: 0.8rem !important; font-size: 0.7rem !important; }
  .academy-hero h1 {
    margin-block-end: 1rem !important;
    font-size: clamp(2.1rem, 10.5vw, 2.85rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
  }
  .academy-hero__lead { font-size: 0.95rem !important; line-height: 1.72 !important; }
  .academy-hero__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.65rem !important;
    margin-block-start: 1.25rem !important;
  }
  .academy-hero__actions .academy-cta {
    width: 100% !important;
    min-height: 3.15rem !important;
    padding: 0.7rem 1rem !important;
  }
  .academy-hero__facts { margin-block-start: 1.35rem !important; }
  .academy-hero__facts div { padding: 0.7rem 0.35rem !important; }
  .academy-hero__facts dt { font-size: 0.68rem !important; }
  .academy-hero__facts dd { font-size: 0.75rem !important; }

  /* One strong media frame replaces the decorative desktop overlap on small screens. */
  .academy-depth-stage { min-height: 17.5rem !important; perspective: none !important; }
  .depth-frame--main {
    inset: 0 !important;
    width: 100% !important;
    height: 17.5rem !important;
    border-width: 0.3rem !important;
    border-radius: 1.1rem !important;
    transform: none !important;
    animation: none !important;
  }
  .depth-frame--back,
  .depth-axis { display: none !important; }
  .depth-frame figcaption { font-size: 0.68rem !important; }

  .tool-dock {
    grid-auto-columns: minmax(10.5rem, 74vw) !important;
    gap: 0.55rem !important;
    margin-block-start: 0 !important;
    padding-block: 0.5rem 1rem !important;
  }
  .tool-dock article { min-height: 6.75rem !important; }

  .academy-section { padding-block: 3.5rem !important; }
  .academy-section__heading { margin-block-end: 1.6rem !important; }
  .academy-section__heading h2,
  .curriculum-sticky h2,
  .offer-copy h2,
  .academy-final h2 {
    margin-block-end: 0.8rem !important;
    font-size: clamp(1.85rem, 9vw, 2.35rem) !important;
    line-height: 1.12 !important;
  }
  .academy-section__heading > p:last-child,
  .curriculum-sticky > p,
  .offer-copy > p { font-size: 0.94rem !important; line-height: 1.7 !important; }

  .academy-bento,
  .tool-matrix { gap: 0.75rem !important; }
  .academy-panel {
    min-height: 0 !important;
    padding: 1.15rem !important;
    border-radius: 1.1rem !important;
  }
  .academy-panel--image { min-height: 17rem !important; padding: 0 !important; }
  .academy-panel--image > div { padding: 1.15rem !important; }
  .academy-panel h3 { font-size: 1.3rem !important; }
  .academy-panel p { font-size: 0.9rem !important; line-height: 1.65 !important; }
  .mini-flow,
  .impact-list { gap: 0.4rem !important; margin-block-start: 0.85rem !important; }
  .mini-flow span,
  .impact-list li { padding: 0.4rem 0.6rem !important; font-size: 0.74rem !important; }

  .curriculum-layout { gap: 1.5rem !important; }
  .session-chips { margin-block-start: 1rem !important; }
  .curriculum-item summary {
    min-height: 5.25rem !important;
    grid-template-columns: 2rem minmax(0, 1fr) 2.5rem !important;
    gap: 0.55rem !important;
    padding-block: 0.75rem !important;
  }
  .curriculum-item summary strong { font-size: 0.93rem !important; line-height: 1.45 !important; }
  .curriculum-item summary small { font-size: 0.62rem !important; }
  .curriculum-item > p { padding: 0 0.5rem 1.1rem !important; font-size: 0.88rem !important; }

  .tool-card {
    min-height: 0 !important;
    padding: 0.4rem 1rem 1.1rem !important;
    border-radius: 1rem !important;
  }
  .tool-card figure { margin: 0 -0.6rem 0.9rem !important; }
  .tool-card h3 { margin: 1rem 0 0.65rem !important; font-size: 1.75rem !important; }
  .tool-card p { font-size: 0.86rem !important; line-height: 1.62 !important; }

  .project-showcase { gap: 1.25rem !important; padding-block: 2.75rem !important; }
  .project-copy h3 { font-size: 2.35rem !important; line-height: 1 !important; }
  .project-copy > p:not(.project-number, .project-subtitle) { font-size: 0.9rem !important; line-height: 1.65 !important; }
  .project-copy ul { gap: 0.4rem !important; margin-block-start: 1rem !important; }
  .project-copy li { font-size: 0.72rem !important; }
  .project-gallery-shell { padding: 0.3rem !important; border-radius: 1.15rem !important; }
  .project-gallery-core { border-radius: 0.85rem !important; }
  .project-main-media figcaption { font-size: 0.7rem !important; }
  .project-thumbnails {
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 4.25rem !important;
    justify-content: start !important;
    padding: 0.45rem 0.45rem 0.75rem !important;
  }
  .project-thumbnails button,
  .project-thumbnails img { min-height: 4.25rem !important; }

  .academy-offer { gap: 1.5rem !important; }
  .session-timeline { margin-block-start: 1.2rem !important; }
  .session-timeline > div { min-height: 6.5rem !important; padding: 0.7rem !important; }
  .session-timeline strong { font-size: 1.1rem !important; }
  .offer-ticket { border-radius: 1.2rem !important; }
  .ticket-price { padding-block: 1.35rem !important; }
  .ticket-price strong { font-size: 2.75rem !important; }
  .academy-final {
    min-height: 0 !important;
    gap: 1.25rem !important;
    margin-block-end: 1rem !important;
    padding-block: 3.25rem !important;
  }
  .academy-final .academy-cta { width: 100% !important; }

  .rc-card { padding: 1.2rem !important; border-radius: 1rem !important; }
  .rc-card .rc-number { margin-block-end: 0.8rem !important; }
  .instructor-split {
    gap: 1.5rem !important;
    padding: 1.25rem !important;
    border-radius: 1.15rem !important;
  }
  .instructor-split figure { max-height: 24rem !important; }

  /* Standalone project page: copy first, media second, without oversized empty bands. */
  body[data-page="projects"] .projects-hero {
    padding: 3.25rem 1rem 2.5rem !important;
  }
  body[data-page="projects"] .projects-hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }
  body[data-page="projects"] .projects-hero p { font-size: 0.94rem !important; line-height: 1.7 !important; }
  body[data-page="projects"] .project-section { padding-block: 3rem !important; }
  body[data-page="projects"] .project-container { gap: 1.4rem !important; }
  body[data-page="projects"] .project-container.reverse { direction: inherit !important; }
  body[data-page="projects"] .project-content h2 { margin-block-end: 0.85rem !important; font-size: 2rem !important; }
  body[data-page="projects"] .project-content h3 { margin-block-end: 0.65rem !important; font-size: 1.15rem !important; }
  body[data-page="projects"] .project-content p { margin-block-end: 1.2rem !important; font-size: 0.9rem !important; line-height: 1.68 !important; }
  body[data-page="projects"] .project-tags { gap: 0.45rem !important; margin-block-end: 1.2rem !important; }
  body[data-page="projects"] .project-tags span { padding: 0.35rem 0.65rem !important; font-size: 0.72rem !important; }
  body[data-page="projects"] .project-images { gap: 0.75rem !important; }
  body[data-page="projects"] .project-images img { border-radius: 1rem !important; }

  /* Checkout/payment: fewer nested empty spaces and easier one-handed scanning. */
  .checkout-page { padding-block: 1.5rem 4rem !important; }
  .checkout-container { padding: 1.25rem !important; border-radius: 1.2rem !important; }
  .checkout-header { margin-block-end: 1.6rem !important; }
  .checkout-header h1,
  .checkout-header h2 { font-size: 1.9rem !important; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.65rem !important; margin-block-end: 1.8rem !important; }
  .price-card { padding: 1rem 0.65rem !important; border-radius: 0.9rem !important; }
  .price-card b { font-size: 1.45rem !important; }
  .price-card span { font-size: 0.75rem !important; }
  .form-group { margin-block-end: 1rem !important; }
  .form-group input,
  .form-group textarea,
  .form-group select { min-height: 3.25rem !important; padding: 0.85rem !important; border-radius: 0.8rem !important; }
  .pay-card { padding: 1.15rem !important; margin-block-end: 0.85rem !important; border-radius: 1rem !important; }
  .pay-header { margin-block-end: 1rem !important; padding-block-end: 1rem !important; }
  .wa-receipt-box { margin-block-start: 2rem !important; padding-block-start: 1.5rem !important; }
  .payment-page { padding-block: 2.25rem !important; }
  .payment-head { gap: 0.75rem !important; margin-block-end: 1.25rem !important; }
  .payment-layout { gap: 0.85rem !important; }

  .form-page { gap: 1.25rem !important; padding-block: 2.5rem !important; }
  .form-panel,
  .payment-summary,
  .payment-methods { padding: 1rem !important; border-radius: 0.9rem !important; }
  .course-detail-main { gap: 2rem !important; }
  .course-detail-grid { gap: 1.25rem !important; }
  .course-card-body { padding: 1.1rem !important; }
  .course-card-media { min-height: 12rem !important; }
  .review-grid,
  .course-grid { gap: 0.8rem !important; }
  .review-empty {
    min-height: 0 !important;
    padding: 1.25rem 0.75rem !important;
  }
  .review-empty h3 { font-size: 1.15rem !important; }
  .review-empty p { font-size: 0.88rem !important; line-height: 1.65 !important; }
  .review-card { min-height: 0 !important; padding: 1rem !important; }
  .rating-primary { min-height: 8rem !important; padding: 1rem !important; }
  .rating-primary strong { font-size: 3.25rem !important; }
  .rating-distribution { padding: 1rem !important; }
  .review-toolbar { gap: 0.75rem !important; margin-block-end: 1.25rem !important; }
  .review-submit { gap: 1.25rem !important; }
  .faq-list summary { min-height: 3.5rem !important; padding: 0.85rem !important; font-size: 0.92rem !important; }
  .faq-list p { padding: 0 0.85rem 1rem !important; font-size: 0.88rem !important; }

  .site-footer { margin-block-start: 2.5rem !important; }
  .footer-shell { gap: 1.35rem !important; padding-block: 2rem !important; }
  .footer-links { gap: 0.25rem 1rem !important; }
  .footer-links a { min-height: 2.9rem !important; font-size: 0.88rem !important; }
}

/* Release 5: editorial line reveals, cinematic showreel, and contact-led footer. */
[data-text-rise] .text-rise__line {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding-block: 0.035em;
}

[data-text-rise] .text-rise__content { display: block; }

.motion-ready [data-text-rise] .text-rise__content {
  opacity: 0.001;
  transform: translateY(112%);
  transition:
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 260ms ease;
  will-change: transform;
}

.motion-ready [data-text-rise].is-risen .text-rise__content {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready [data-text-rise] .text-rise__line:nth-child(2) .text-rise__content { transition-delay: 110ms; }
.motion-ready [data-text-rise] .text-rise__line:nth-child(3) .text-rise__content { transition-delay: 220ms; }

.academy-hero h1[data-text-rise] { overflow: visible !important; }
.academy-hero h1[data-text-rise] > .text-rise__line {
  width: 100% !important;
  overflow: hidden !important;
  white-space: normal !important;
}
.academy-hero h1[data-text-rise] .text-rise__content {
  width: fit-content !important;
  max-width: 100%;
  white-space: normal !important;
}

.cinematic-showreel {
  width: min(calc(100% - 1.25rem), 90rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.showreel-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(227, 184, 91, 0.28);
  border-radius: 1.2rem;
  color: #fff8ec;
  background: #080604;
  isolation: isolate;
}

.showreel-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #080604;
}

.showreel-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.showreel-shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.18);
  pointer-events: none;
}

.showreel-index {
  position: absolute;
  z-index: 2;
  inset-block-start: 0.85rem;
  inset-inline-start: 0.85rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 999rem;
  color: #fff8ec;
  background: rgba(8, 6, 4, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  direction: ltr;
}

.showreel-copy {
  z-index: 3;
  padding: 1.35rem 1.2rem 0.8rem;
  color: #fff8ec;
  background: #080604;
}

.showreel-eyebrow {
  margin: 0 0 0.7rem;
  color: #e3b85b !important;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  direction: ltr;
}

.showreel-copy h2 {
  margin: 0 0 0.85rem;
  color: #fff8ec;
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.showreel-copy p:last-child {
  max-width: 56ch;
  margin: 0;
  color: #c8bdac;
  font-size: 0.92rem;
  line-height: 1.7;
}

.showreel-controls {
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem 1.25rem;
  color: #fff8ec;
  background: #080604;
}

.showreel-control {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 999rem;
  color: #fff8ec;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.showreel-control:hover,
.showreel-control[aria-pressed="true"] {
  color: #17120c;
  border-color: #e3b85b;
  background: #e3b85b;
}

.showreel-control__icon {
  min-width: 1.1rem;
  text-align: center;
  line-height: 1;
}

.showreel-time {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
  color: #9f9586;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.showreel-progress {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  inset-block-end: 0;
  height: 0.18rem;
  overflow: hidden;
  background: rgba(255, 248, 236, 0.12);
}

.showreel-progress i {
  width: 100%;
  height: 100%;
  display: block;
  background: #e3b85b;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

html[dir="rtl"] .showreel-progress i { transform-origin: right center; }

/* The footer is an intentional dark destination in every theme. */
.site-footer,
body[data-theme="light"] .site-footer,
body[data-theme="mixed"] .site-footer,
body[data-theme="dark"] .site-footer {
  margin-block-start: clamp(4rem, 9vw, 8rem) !important;
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.22) !important;
  background: #0b0907 !important;
}

.footer-visual {
  position: relative;
  min-height: 25rem;
  display: block;
  overflow: hidden;
  color: #fff8ec;
  text-decoration: none;
  background: #080604;
}

.footer-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-visual:hover img { transform: scale(1.025); }

.footer-visual__veil {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.52);
}

.footer-visual__content {
  position: absolute;
  z-index: 2;
  inset-inline: 1rem;
  inset-block-end: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.footer-visual__content small {
  color: #e3b85b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-visual__content strong {
  max-width: 19ch;
  color: #fff8ec;
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.footer-visual__content em {
  width: fit-content;
  max-width: 100%;
  padding-block-end: 0.3rem;
  border-block-end: 1px solid rgba(255, 248, 236, 0.65);
  color: #fff8ec;
  font-size: 0.78rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.site-footer .footer-shell {
  width: min(calc(100% - 1.25rem), 82rem) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding-block: 0 !important;
}

.footer-lead {
  display: grid;
  gap: 1.5rem;
  padding-block: 3rem;
  border-block-end: 1px solid rgba(255, 248, 236, 0.13);
}

.footer-kicker {
  margin: 0 0 0.8rem;
  color: #e3b85b !important;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  direction: ltr;
}

.footer-lead h2 {
  margin: 0;
  color: #fff8ec !important;
  font-size: clamp(2.35rem, 11vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.footer-support-link {
  min-width: 0;
  min-height: 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  align-self: end;
  padding: 0.9rem 0;
  border-block: 1px solid rgba(227, 184, 91, 0.32);
  color: #fff8ec !important;
  text-decoration: none;
}

.footer-support-link span { color: #a99e8e; font-size: 0.75rem; font-weight: 800; }
.footer-support-link strong { grid-column: 1; color: #fff8ec; font-size: 0.82rem; overflow-wrap: anywhere; }
.footer-support-link i { grid-column: 2; grid-row: 1 / span 2; color: #e3b85b; font-size: 1.25rem; font-style: normal; }

.footer-directory {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
  border-block-end: 1px solid rgba(255, 248, 236, 0.13);
}

body[data-theme] .site-footer .footer-brand { max-width: 34rem; }
body[data-theme] .site-footer .footer-brand .brand strong { color: #fff8ec !important; }
body[data-theme] .site-footer .footer-brand p {
  max-width: 45ch;
  margin-block-start: 1rem;
  color: #a99e8e !important;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-group { min-width: 0; display: grid; align-content: start; gap: 0.8rem; }
.footer-group > span { color: #fff8ec; font-size: 0.78rem; font-weight: 900; }
.footer-group nav { display: grid; gap: 0.15rem; }
body[data-theme] .site-footer .footer-group a {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  color: #a99e8e !important;
  font-size: 0.82rem;
  text-decoration: none;
}
body[data-theme] .site-footer .footer-group a:hover { color: #e3b85b !important; }

body[data-theme] .site-footer .footer-contact p {
  margin: 0;
  color: #a99e8e !important;
  font-size: 0.82rem;
  line-height: 1.7;
}
body[data-theme] .site-footer .footer-contact a { overflow-wrap: anywhere; direction: ltr; }

body[data-theme] .site-footer .footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-block: 1.2rem;
  border: 0 !important;
  color: #7f7669 !important;
  font-size: 0.75rem;
}

body[data-theme] .site-footer .footer-meta a {
  color: #a99e8e !important;
  text-decoration: none;
}
body[data-theme] .site-footer .footer-meta a:hover { color: #e3b85b !important; }

@media (min-width: 48rem) {
  .cinematic-showreel { width: min(calc(100% - 3rem), 90rem); }
  .showreel-media { aspect-ratio: 16 / 10; }
  .showreel-copy { padding: 2rem; }
  .showreel-controls { padding: 0.75rem 2rem 1.5rem; }
  .footer-visual { min-height: 31rem; }
  .footer-visual__content { inset-inline: max(2rem, calc((100% - 82rem) / 2)); inset-block-end: 2.5rem; }
  .footer-lead { grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.7fr); align-items: end; padding-block: 4rem; }
  .footer-directory { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(9rem, 0.55fr)); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .showreel-stage { min-height: min(78vh, 46rem); display: block; }
  .showreel-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .showreel-shade { background: linear-gradient(90deg, rgba(8, 6, 4, 0.82) 0%, rgba(8, 6, 4, 0.2) 56%, rgba(8, 6, 4, 0.14) 100%); }
  .showreel-index { inset-block-start: 1.5rem; inset-inline-start: 1.5rem; }
  .showreel-copy {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: min(52rem, 64%);
    padding: 3rem 3rem 3.25rem;
    background: transparent;
  }
  .showreel-copy h2 { font-size: clamp(3.4rem, 5.4vw, 5.8rem); }
  .showreel-copy p:last-child { font-size: 1rem; }
  .showreel-controls {
    position: absolute;
    inset-inline-end: 0;
    inset-block-end: 0;
    align-items: center;
    padding: 2rem 2rem 2.35rem;
    background: transparent;
  }
  .footer-directory { grid-template-columns: minmax(18rem, 1.45fr) minmax(8rem, 0.55fr) minmax(8rem, 0.55fr) minmax(16rem, 0.9fr); }
  .footer-contact { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-text-rise] .text-rise__content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .footer-visual img { transition: none !important; }
}

/* Release 6: site-wide editorial motion, asymmetric headings, and a scroll-reveal footer. */
.motion-ready .content-rise {
  opacity: 0.001;
  transform: translateY(1.1rem);
  clip-path: inset(0 0 12% 0);
  transition:
    opacity 480ms ease var(--content-rise-delay, 0ms),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1) var(--content-rise-delay, 0ms),
    clip-path 680ms cubic-bezier(0.16, 1, 0.3, 1) var(--content-rise-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .content-rise.is-content-visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0);
}

/* Let typography and alignment build the hierarchy instead of repeated centered blocks. */
:where(.academy-section__heading, .section-heading) {
  width: 100%;
  max-width: 76rem !important;
  display: grid !important;
  gap: 0.8rem !important;
  margin-inline: 0 !important;
  text-align: start !important;
}

:where(.academy-section__heading, .section-heading) :where(h1, h2, h3, p) {
  margin-inline: 0 !important;
  text-align: start !important;
}

:where(.academy-section__heading, .section-heading) h2 {
  max-width: 20ch;
}

:where(.academy-section__heading, .section-heading) > p:last-child {
  max-width: 62ch !important;
}

body[data-page="projects"] .projects-hero {
  padding-inline: max(1rem, calc((100% - 75rem) / 2)) !important;
  text-align: start !important;
}

body[data-page="projects"] .projects-hero :where(h1, p) {
  max-width: 58rem;
  margin-inline: 0 !important;
  text-align: start !important;
}

.checkout-header,
.simple-hero,
.page-hero > div:first-child {
  text-align: start !important;
}

.checkout-header :where(h1, h2, p),
.simple-hero :where(h1, h2, p),
.page-hero > div:first-child :where(h1, h2, p) {
  margin-inline: 0 !important;
  text-align: start !important;
}

/* The image occupies a scroll chapter, then the dark footer panel rises into view. */
.site-footer,
body[data-theme] .site-footer {
  position: relative;
  overflow: visible !important;
  background: #080604 !important;
}

.footer-visual-track {
  position: relative;
  z-index: 1;
  height: 114svh;
  background: #080604;
}

.footer-visual,
body[data-theme] .footer-visual {
  --footer-image-shift: 0%;
  --footer-image-scale: 1.055;
  --footer-copy-shift: 0rem;
  position: sticky;
  inset-block-start: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
}

.footer-visual img,
.footer-visual:hover img {
  transform: translateY(var(--footer-image-shift)) scale(var(--footer-image-scale));
  transform-origin: center center;
}

.footer-visual__content {
  transform: translateY(var(--footer-copy-shift));
  transition: none;
}

.footer-panel {
  position: relative;
  z-index: 3;
  margin-block-start: -1px;
  overflow: hidden;
  border-block-start: 1px solid rgba(227, 184, 91, 0.3);
  border-radius: 1.35rem 1.35rem 0 0;
  color: #fff8ec;
  background: #0b0907;
}

@media (min-width: 48rem) {
  :where(.academy-section__heading, .section-heading) {
    grid-template-columns: minmax(8.5rem, 0.32fr) minmax(0, 1fr) !important;
    column-gap: clamp(2rem, 6vw, 6rem) !important;
    align-items: start;
  }

  :where(.academy-section__heading, .section-heading) > :where(.academy-eyebrow, .eyebrow) {
    grid-column: 1;
    grid-row: 1;
    padding-block-start: 0.35rem;
  }

  :where(.academy-section__heading, .section-heading) > h2 {
    grid-column: 2;
    grid-row: 1;
  }

  :where(.academy-section__heading, .section-heading) > p:last-child {
    grid-column: 2;
  }

  .footer-visual-track { height: 126svh; }
  .footer-panel { border-radius: 1.75rem 1.75rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .content-rise,
  .motion-ready .content-rise.is-content-visible {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  .footer-visual-track { height: auto; }
  .footer-visual,
  body[data-theme] .footer-visual {
    position: relative;
    height: min(80svh, 45rem);
  }
  .footer-visual img { transform: none !important; }
  .footer-visual__content { transform: none !important; }
}

/* Release 7: full-bleed opening film with a frame-less overlay header. */
body[data-page="home"] main {
  display: flex;
  flex-direction: column;
}

body[data-page="home"] .cinematic-showreel {
  order: -1;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
}

body[data-page="home"] .showreel-stage {
  width: 100%;
  height: 100svh;
  min-height: 36rem;
  display: block;
  border: 0;
  border-radius: 0;
  background: #080604;
}

body[data-page="home"] .showreel-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

body[data-page="home"] .showreel-shade {
  background: rgba(8, 6, 4, 0.3);
}

body[data-page="home"] .showreel-copy {
  position: absolute;
  z-index: 3;
  inset-inline: 0.75rem;
  inset-block-end: 6.8rem;
  width: auto;
  padding: 0;
  color: #fff8ec;
  background: transparent;
}

body[data-page="home"] .showreel-copy h2 {
  max-width: 12ch;
  margin-block-end: 0.7rem;
  font-size: clamp(2.15rem, 11vw, 3.2rem);
}

body[data-page="home"] .showreel-copy p:last-child {
  display: none;
}

body[data-page="home"] .showreel-controls {
  position: absolute;
  z-index: 4;
  inset-inline: 0.75rem;
  inset-block-end: 0.8rem;
  align-items: center;
  padding: 0;
  background: transparent;
}

body[data-page="home"] .showreel-control {
  min-height: 2.85rem;
  padding-inline: 0.72rem;
  font-size: 0.7rem;
  backdrop-filter: blur(0.7rem);
  background: rgba(8, 6, 4, 0.34);
}

body[data-page="home"] .showreel-time {
  min-height: 2.85rem;
  color: rgba(255, 248, 236, 0.78);
}

body[data-page="home"] .showreel-index { display: none; }

body[data-page="home"] .site-header {
  position: fixed !important;
  inset-block-start: 0.4rem !important;
  inset-inline: 0 !important;
  margin: 0 auto !important;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

body[data-page="home"] .site-header.is-over-video {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-page="home"] .site-header.is-over-video .brand strong,
body[data-page="home"] .site-header.is-over-video .brand small,
body[data-page="home"] .site-header.is-over-video :where(.language-toggle, .theme-button, .menu-button) {
  color: #fff8ec !important;
}

body[data-page="home"] .site-header.is-over-video :where(.language-toggle, .theme-button, .menu-button) {
  border-color: rgba(255, 248, 236, 0.42) !important;
  background: rgba(8, 6, 4, 0.18) !important;
  backdrop-filter: blur(0.45rem);
}

body[data-page="home"] .site-header.is-over-video .menu-button span {
  background: #fff8ec !important;
}

@media (min-width: 48rem) {
  body[data-page="home"] .showreel-copy {
    inset-inline: max(2rem, calc((100% - 82rem) / 2));
    inset-block-end: 2.3rem;
    width: min(48rem, 58%);
  }

  body[data-page="home"] .showreel-copy h2 {
    max-width: 11ch;
    font-size: clamp(3.8rem, 6vw, 6.7rem);
  }

  body[data-page="home"] .showreel-copy p:last-child {
    max-width: 50ch;
    display: block;
  }

  body[data-page="home"] .showreel-controls {
    inset-inline: auto max(2rem, calc((100% - 82rem) / 2));
    inset-block-end: 2.4rem;
  }

  body[data-page="home"] .showreel-index {
    display: block;
    inset-block-start: calc(var(--header-height) + 2.75rem);
    inset-inline-start: max(2rem, calc((100% - 82rem) / 2));
  }
}

@media (min-width: 64rem) {
  body[data-page="home"] .site-header {
    inset-block-start: 1.125rem !important;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links a {
    color: rgba(255, 248, 236, 0.78) !important;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links a:hover,
  body[data-page="home"] .site-header.is-over-video .nav-links a[aria-current="page"] {
    color: #f1d58e !important;
  }
}

/* Release 14: scroll-linked film dissolve and a shorter, responsive card chapter. */
body[data-page="home"] .showreel-stage {
  overflow: hidden;
  background: #080604;
}

body[data-page="home"] .showreel-media {
  opacity: var(--showreel-media-opacity, 1);
  transform: scale(var(--showreel-media-scale, 1));
  transform-origin: center center;
  will-change: opacity, transform;
}

body[data-page="home"] :where(.showreel-copy, .showreel-controls, .showreel-progress) {
  opacity: var(--showreel-ui-opacity, 1);
  transform: translate3d(0, var(--showreel-ui-shift, 0rem), 0);
  will-change: opacity, transform;
}

@media (min-width: 48.01rem) {
  #cards-scroll-track {
    height: 230svh !important;
  }

  #cards-scroll-track .academy-section {
    opacity: var(--cards-exit-opacity, 1);
    transform: translate3d(0, var(--cards-exit-shift, 0rem), 0);
    will-change: opacity, transform;
  }

  #cards-scroll-track .flip-scroll-card {
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  #cards-scroll-track .flip-card-inner {
    transition-duration: 680ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .showreel-media,
  body[data-page="home"] :where(.showreel-copy, .showreel-controls, .showreel-progress),
  #cards-scroll-track .academy-section {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .site-header { transition: none !important; }
}

/* Release 8: restrained film typography, frosted film navigation, natural headings, scoped footer tones. */
body[data-page="home"] .showreel-index {
  display: none !important;
}

body[data-page="home"] .showreel-copy {
  max-width: 30rem;
}

body[data-page="home"] .showreel-copy h2 {
  max-width: 13ch;
  font-size: clamp(1.85rem, 8vw, 2.6rem) !important;
  line-height: 1.02;
}

/* Keep section titles in one calm reading column instead of splitting their label and copy. */
:where(.academy-section__heading, .section-heading) {
  width: 100%;
  max-width: 64rem !important;
  display: block !important;
  margin-inline: 0 !important;
  text-align: start !important;
}

:where(.academy-section__heading, .section-heading) > :where(.academy-eyebrow, .eyebrow) {
  display: block;
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
}

:where(.academy-section__heading, .section-heading) > h2 {
  max-width: 22ch;
  margin: 0 !important;
  font-size: clamp(2rem, 4.2vw, 3.65rem) !important;
  line-height: 1.06 !important;
}

:where(.academy-section__heading, .section-heading) > p:last-child {
  max-width: 62ch !important;
  margin: 1.15rem 0 0 !important;
}

/* While the film is visible, every control is individually framed and blurred; the logo stays untouched. */
body[data-page="home"] .site-header.is-over-video :where(.language-toggle, .theme-button, .menu-button, .nav-cta) {
  color: #fff8ec !important;
  border: 1px solid rgba(255, 248, 236, 0.46) !important;
  background: rgba(8, 6, 4, 0.16) !important;
  box-shadow: none !important;
  backdrop-filter: blur(0.7rem) !important;
  -webkit-backdrop-filter: blur(0.7rem) !important;
}

body[data-page="home"] .site-header.is-over-video .nav-cta:hover {
  color: #fff8ec !important;
  background: rgba(8, 6, 4, 0.3) !important;
}

body[data-page="home"] .site-header.is-over-video .theme-menu {
  color: #fff8ec !important;
  border: 1px solid rgba(255, 248, 236, 0.42) !important;
  background: rgba(8, 6, 4, 0.58) !important;
  box-shadow: none !important;
  backdrop-filter: blur(1rem) !important;
  -webkit-backdrop-filter: blur(1rem) !important;
}

body[data-page="home"] .site-header.is-over-video .theme-menu button {
  color: rgba(255, 248, 236, 0.82) !important;
  border: 1px solid transparent;
  background: transparent !important;
}

body[data-page="home"] .site-header.is-over-video .theme-menu button:hover,
body[data-page="home"] .site-header.is-over-video .theme-menu button.active {
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.56) !important;
  background: rgba(227, 184, 91, 0.13) !important;
}

body[data-page="home"] .site-header.is-over-video .nav-links.is-open {
  border: 1px solid rgba(255, 248, 236, 0.38) !important;
  background: rgba(8, 6, 4, 0.66) !important;
  box-shadow: none !important;
  backdrop-filter: blur(1rem) !important;
  -webkit-backdrop-filter: blur(1rem) !important;
}

body[data-page="home"] .site-header.is-over-video .nav-links.is-open a {
  color: rgba(255, 248, 236, 0.82) !important;
  border-color: rgba(255, 248, 236, 0.17) !important;
  background: transparent !important;
}

/* The homepage ends in black; every internal page keeps the exact same footer in white. */
body:not([data-page="home"]) .site-footer,
body:not([data-page="home"])[data-theme] .site-footer,
body:not([data-page="home"]) .footer-visual-track {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.2) !important;
  background: #fffdf8 !important;
}

body:not([data-page="home"]) .footer-panel {
  color: #17120c !important;
  border-block-start-color: rgba(143, 91, 10, 0.24) !important;
  background: #fffdf8 !important;
}

body:not([data-page="home"]) .footer-lead,
body:not([data-page="home"]) .footer-directory {
  border-block-end-color: rgba(143, 91, 10, 0.16) !important;
}

body:not([data-page="home"]) .site-footer :where(.footer-lead h2, .footer-brand .brand strong, .footer-group > span, .footer-support-link strong) {
  color: #17120c !important;
}

body:not([data-page="home"]) .site-footer :where(.footer-brand p, .footer-group a, .footer-contact p, .footer-contact a, .footer-meta, .footer-meta a, .footer-support-link span) {
  color: #655c50 !important;
}

body:not([data-page="home"]) .footer-support-link {
  color: #17120c !important;
  border-block-color: rgba(143, 91, 10, 0.24) !important;
}

body:not([data-page="home"]) .site-footer :where(.footer-group a, .footer-meta a):hover {
  color: #80510a !important;
}

@media (min-width: 48rem) {
  body[data-page="home"] .showreel-copy {
    width: min(30rem, 43%);
  }

  body[data-page="home"] .showreel-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 3.7vw, 3.8rem) !important;
  }
}

@media (min-width: 64rem) {
  body[data-page="home"] .site-header.is-over-video .nav-links {
    gap: 0.35rem;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links a {
    min-height: 2.65rem;
    padding-inline: 0.85rem;
    color: rgba(255, 248, 236, 0.82) !important;
    border: 1px solid rgba(255, 248, 236, 0.32) !important;
    border-radius: 999rem;
    background: rgba(8, 6, 4, 0.14) !important;
    backdrop-filter: blur(0.7rem);
    -webkit-backdrop-filter: blur(0.7rem);
  }

  body[data-page="home"] .site-header.is-over-video .nav-links a:hover,
  body[data-page="home"] .site-header.is-over-video .nav-links a[aria-current="page"] {
    color: #f1d58e !important;
    border-color: rgba(227, 184, 91, 0.64) !important;
    background: rgba(8, 6, 4, 0.26) !important;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links a[aria-current="page"]::after {
    display: none;
  }
}

/* Release 9: quiet film copy, a normal system grid, and image-free internal footers. */
body[data-page="home"] .showreel-copy {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 0.9rem;
  background: rgba(8, 6, 4, 0.18);
  box-shadow: none;
  backdrop-filter: blur(0.65rem);
  -webkit-backdrop-filter: blur(0.65rem);
}

body[data-page="home"] .showreel-copy p:last-child {
  color: rgba(255, 248, 236, 0.78);
}

body:not([data-page="home"]) .footer-visual-track {
  display: none !important;
}

#cards-scroll-track {
  position: static !important;
  height: auto !important;
}

#cards-scroll-track .sticky-container {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding-block: 0 !important;
  overflow: visible !important;
}

#cards-scroll-track .academy-section__heading {
  max-width: 64rem !important;
}

#cards-scroll-track .flip-grid.grid-4-desktop {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
  gap: 1.5rem !important;
  margin-block-start: 0 !important;
}

#cards-scroll-track .flip-scroll-card {
  min-height: 17rem !important;
  height: 17rem !important;
}

@media (min-width: 48rem) {
  body[data-page="home"] .showreel-copy {
    padding: 1.2rem 1.35rem;
  }
}

@media (min-width: 64rem) {
  #cards-scroll-track .flip-grid.grid-4-desktop {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Release 10: compact mobile navigation with a clearly separated primary action. */
@media (max-width: 63.99rem) {
  .site-header .nav-links.is-open {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 0.5rem !important;
    padding: 0.65rem !important;
    border-radius: 1.1rem !important;
  }

  .site-header .nav-links.is-open a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header .nav-links.is-open a:not(.mobile-menu-cta) {
    min-height: 3.15rem !important;
    justify-content: center !important;
    padding-inline: 0.7rem !important;
    border: 1px solid var(--mx-line, var(--line)) !important;
    border-radius: 0.78rem !important;
    background: color-mix(in srgb, var(--mx-surface, var(--surface)) 82%, transparent) !important;
    font-size: 0.82rem !important;
    text-align: center !important;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease !important;
  }

  .site-header .nav-links.is-open a:nth-child(5),
  .site-header .nav-links.is-open .mobile-menu-cta {
    grid-column: 1 / -1;
  }

  .site-header .nav-links.is-open a[aria-current="page"]::after {
    display: none !important;
  }

  .site-header .nav-links.is-open a:not(.mobile-menu-cta):hover,
  .site-header .nav-links.is-open a:not(.mobile-menu-cta)[aria-current="page"] {
    color: var(--academy-gold-soft) !important;
    border-color: color-mix(in srgb, var(--academy-gold-soft) 58%, transparent) !important;
    background: color-mix(in srgb, var(--academy-gold-soft) 10%, transparent) !important;
  }

  .site-header .nav-links.is-open .mobile-menu-cta {
    min-height: 3.5rem !important;
    justify-content: center !important;
    margin: 0.2rem 0 0 !important;
    padding-inline: 1rem !important;
    border: 1px solid rgba(143, 91, 10, 0.24) !important;
    border-radius: 0.9rem !important;
    color: #17120c !important;
    background: linear-gradient(105deg, #f4d786 0%, #e5b84f 48%, #c9861f 100%) !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    text-align: center !important;
  }

  .site-header .nav-links.is-open .mobile-menu-cta:hover {
    color: #17120c !important;
    border-color: rgba(143, 91, 10, 0.42) !important;
    opacity: 0.94;
  }

  .site-header .nav-links.is-open a:focus-visible {
    outline: 0.18rem solid var(--academy-gold-soft);
    outline-offset: 0.12rem;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links.is-open a:not(.mobile-menu-cta) {
    color: rgba(255, 248, 236, 0.86) !important;
    border-color: rgba(255, 248, 236, 0.16) !important;
    background: rgba(255, 248, 236, 0.055) !important;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links.is-open a:not(.mobile-menu-cta):hover,
  body[data-page="home"] .site-header.is-over-video .nav-links.is-open a:not(.mobile-menu-cta)[aria-current="page"] {
    color: #f1d58e !important;
    border-color: rgba(227, 184, 91, 0.58) !important;
    background: rgba(227, 184, 91, 0.12) !important;
  }
}

/* Release 11: translucent film lettering and a vertical animated mobile menu. */
body[data-page="home"] .showreel-copy {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page="home"] .showreel-copy h2,
body[data-page="home"] .showreel-copy h2 .text-rise__content {
  color: rgba(255, 248, 236, 0.76) !important;
  text-shadow: 0 0.16rem 0.75rem rgba(8, 6, 4, 0.38);
}

body[data-page="home"] .showreel-copy .showreel-eyebrow {
  color: rgba(241, 213, 142, 0.82) !important;
}

body[data-page="home"] .showreel-copy p:last-child {
  color: rgba(255, 248, 236, 0.64) !important;
}

@keyframes mx-mobile-menu-drop {
  from { opacity: 0; transform: translateY(-0.8rem) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mx-mobile-menu-item {
  from { opacity: 0; transform: translateY(-0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 63.99rem) {
  .site-header .nav-links.is-open {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.18rem !important;
    padding: 0.65rem !important;
    transform-origin: top center;
    animation: mx-mobile-menu-drop 240ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  .site-header .nav-links.is-open a:nth-child(5),
  .site-header .nav-links.is-open .mobile-menu-cta {
    grid-column: auto !important;
  }

  .site-header .nav-links.is-open a:not(.mobile-menu-cta) {
    min-height: 3.15rem !important;
    justify-content: flex-start !important;
    padding-inline: 0.95rem !important;
    border: 0 !important;
    border-block-end: 1px solid var(--mx-hairline, var(--line-soft)) !important;
    border-radius: 0.62rem !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    text-align: start !important;
    animation: mx-mobile-menu-item 280ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  .site-header .nav-links.is-open a:nth-child(1) { animation-delay: 35ms !important; }
  .site-header .nav-links.is-open a:nth-child(2) { animation-delay: 65ms !important; }
  .site-header .nav-links.is-open a:nth-child(3) { animation-delay: 95ms !important; }
  .site-header .nav-links.is-open a:nth-child(4) { animation-delay: 125ms !important; }
  .site-header .nav-links.is-open a:nth-child(5) { animation-delay: 155ms !important; }

  .site-header .nav-links.is-open a:not(.mobile-menu-cta):hover,
  .site-header .nav-links.is-open a:not(.mobile-menu-cta)[aria-current="page"] {
    color: var(--academy-gold-soft) !important;
    border-block-end-color: color-mix(in srgb, var(--academy-gold-soft) 45%, transparent) !important;
    border-inline-start: 0.18rem solid var(--academy-gold-soft) !important;
    background: color-mix(in srgb, var(--academy-gold-soft) 9%, transparent) !important;
  }

  .site-header .nav-links.is-open .mobile-menu-cta {
    margin-block-start: 0.55rem !important;
    animation: mx-mobile-menu-item 300ms cubic-bezier(0.16, 1, 0.3, 1) 185ms both !important;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links.is-open a:not(.mobile-menu-cta) {
    color: rgba(255, 248, 236, 0.84) !important;
    border-block-end-color: rgba(255, 248, 236, 0.12) !important;
    background: transparent !important;
  }

  body[data-page="home"] .site-header.is-over-video .nav-links.is-open a:not(.mobile-menu-cta):hover,
  body[data-page="home"] .site-header.is-over-video .nav-links.is-open a:not(.mobile-menu-cta)[aria-current="page"] {
    color: #f1d58e !important;
    border-inline-start-color: #e3b85b !important;
    background: rgba(227, 184, 91, 0.1) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-links.is-open,
  .site-header .nav-links.is-open a {
    animation: none !important;
  }
}

/* Release 12: restore the reversible card story inside the same frame as Reality Check. */
@media (min-width: 48.01rem) {
  #cards-scroll-track {
    position: relative !important;
    height: 230svh !important;
  }

  #cards-scroll-track .sticky-container {
    position: sticky !important;
    inset-block-start: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-block: 0 !important;
    overflow: hidden !important;
  }

  #cards-scroll-track .section-shell {
    width: min(calc(100% - 3rem), 82rem) !important;
    margin-inline: auto !important;
    padding-block: 0 !important;
  }

  #cards-scroll-track .academy-section__heading {
    max-width: 64rem !important;
    margin-block-end: clamp(2rem, 4vw, 3rem) !important;
  }

  #cards-scroll-track .flip-grid.grid-4-desktop {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    margin-block-start: 0 !important;
  }

  #cards-scroll-track .flip-scroll-card {
    width: 100% !important;
    height: 17rem !important;
    min-height: 17rem !important;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 48.01rem) {
  #cards-scroll-track {
    height: auto !important;
  }

  #cards-scroll-track .sticky-container {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    padding-block: clamp(4rem, 8vw, 7rem) !important;
    overflow: visible !important;
  }

  #cards-scroll-track .flip-scroll-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Release 13: one coherent mixed theme across every public page. */
html[data-theme="mixed"],
body[data-theme="mixed"],
body.academy-experience[data-theme="mixed"] {
  --mx-bg: #f7f3eb;
  --mx-surface: #fffdf8;
  --mx-surface-raised: #110e0a;
  --mx-text: #17120c;
  --mx-muted: #655c50;
  --mx-gold: #a96d12;
  --mx-gold-soft: #80510a;
  --mx-line: rgba(143, 91, 10, 0.24);
  --mx-hairline: rgba(23, 18, 12, 0.11);
  --academy-bg: #f7f3eb;
  --academy-panel: #fffdf8;
  --academy-panel-raised: #110e0a;
  --academy-paper: #fffdf8;
  --academy-ink: #17120c;
  --academy-text: #17120c;
  --academy-muted: #655c50;
  --academy-gold: #a96d12;
  --academy-gold-soft: #80510a;
  --academy-line: rgba(143, 91, 10, 0.24);
  --academy-hairline: rgba(23, 18, 12, 0.11);
  color-scheme: light;
}

body[data-theme="mixed"] {
  color: #17120c !important;
  background-color: #f7f3eb !important;
}

/* The mixed header remains a quiet light navigation surface. */
body[data-theme="mixed"] .site-header {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.22) !important;
  background: rgba(255, 253, 248, 0.94) !important;
  box-shadow: 0 0.7rem 2rem rgba(23, 18, 12, 0.055) !important;
  backdrop-filter: blur(0.9rem) !important;
  -webkit-backdrop-filter: blur(0.9rem) !important;
}

body[data-theme="mixed"] .site-header .nav-links {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-theme="mixed"] .site-header .nav-links a:not(.mobile-menu-cta) {
  color: #655c50 !important;
  border-color: transparent !important;
  background: transparent !important;
}

body[data-theme="mixed"] .site-header .nav-links a:not(.mobile-menu-cta):hover,
body[data-theme="mixed"] .site-header .nav-links a:not(.mobile-menu-cta)[aria-current="page"] {
  color: #80510a !important;
  background: rgba(169, 109, 18, 0.09) !important;
}

/* Keep the booking action visually distinct inside the translucent film menu. */
@media (max-width: 63.99rem) {
  body[data-page="home"] .site-header.is-over-video .nav-links.is-open .mobile-menu-cta {
    color: #17120c !important;
    border-color: rgba(244, 214, 122, 0.5) !important;
    background: var(--mx-action-gradient) !important;
  }
}

body[data-theme="mixed"] .site-header :where(.language-toggle, .theme-button, .menu-button) {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.22) !important;
  background: #fffdf8 !important;
}

body[data-theme="mixed"] .theme-menu {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.22) !important;
  background: #fffdf8 !important;
  box-shadow: 0 1rem 2.5rem rgba(23, 18, 12, 0.12) !important;
}

body[data-theme="mixed"] .theme-menu button {
  color: #655c50 !important;
  background: transparent !important;
}

body[data-theme="mixed"] .theme-menu button:hover,
body[data-theme="mixed"] .theme-menu button.active {
  color: #80510a !important;
  background: rgba(169, 109, 18, 0.1) !important;
}

/* The opening film always owns its transparent navigation, regardless of theme. */
body[data-page="home"][data-theme="mixed"] .site-header.is-over-video {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page="home"][data-theme="mixed"] .site-header.is-over-video .nav-links {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Dark cards are the defining mixed-theme surface. */
body[data-theme="mixed"] :where(
  .rc-card,
  .flip-front,
  .flip-back,
  .academy-panel,
  .tool-card,
  .curriculum-item,
  .project-gallery-shell,
  .offer-ticket,
  .academy-final,
  .course-card,
  .course-aside,
  .course-detail-main section,
  .curriculum details,
  .review-card,
  .rating-summary,
  .faq-list details,
  .legal-lead,
  .form-panel,
  .payment-summary,
  .payment-methods,
  .payment-channel,
  .instructor-split
) {
  --academy-panel: #110e0a;
  --academy-panel-raised: #18130d;
  --academy-text: #fff8ec;
  --academy-muted: #c8bdac;
  --academy-gold: #e3b85b;
  --academy-gold-soft: #f1d58e;
  --academy-line: rgba(227, 184, 91, 0.28);
  --academy-hairline: rgba(255, 248, 236, 0.11);
  --surface: #110e0a;
  --surface-2: #18130d;
  --text: #fff8ec;
  --muted: #c8bdac;
  color: #fff8ec !important;
  border-color: rgba(227, 184, 91, 0.25) !important;
  background-color: #110e0a !important;
  box-shadow: none !important;
}

body[data-theme="mixed"] :where(
  .rc-card,
  .flip-front,
  .flip-back,
  .academy-panel,
  .tool-card,
  .curriculum-item,
  .offer-ticket,
  .course-card,
  .course-aside,
  .course-detail-main section,
  .curriculum details,
  .review-card,
  .rating-summary,
  .faq-list details,
  .legal-lead,
  .form-panel,
  .payment-summary,
  .payment-methods,
  .payment-channel,
  .instructor-split
) :where(h1, h2, h3, h4, strong, summary, dt, dd, label) {
  color: #fff8ec !important;
}

body[data-theme="mixed"] :where(
  .rc-card,
  .flip-front,
  .flip-back,
  .academy-panel,
  .tool-card,
  .curriculum-item,
  .offer-ticket,
  .course-card,
  .course-aside,
  .course-detail-main section,
  .curriculum details,
  .review-card,
  .rating-summary,
  .faq-list details,
  .legal-lead,
  .form-panel,
  .payment-summary,
  .payment-methods,
  .payment-channel,
  .instructor-split
) :where(p, li, small, span:not(.rc-number):not(.panel-index)) {
  color: #c8bdac !important;
}

body[data-theme="mixed"] .instructor-split {
  overflow: hidden;
  border-radius: 1.5rem !important;
}

body[data-theme="mixed"] .instructor-split .academy-eyebrow,
body[data-theme="mixed"] .instructor-split h3,
body[data-theme="mixed"] .instructor-split > div:first-child > div span:first-child {
  color: #f1d58e !important;
}

body[data-theme="mixed"] .instructor-split .session-chips span {
  color: #f1d58e !important;
  border-color: rgba(227, 184, 91, 0.28) !important;
  background: rgba(227, 184, 91, 0.08) !important;
}

/* CTA panels keep their drama without bleeding into the page edges. */
body[data-theme="mixed"] .academy-final {
  width: min(calc(100% - 2rem), 82rem) !important;
  min-height: clamp(25rem, 58svh, 34rem) !important;
  margin: clamp(2.5rem, 6vw, 5rem) auto !important;
  padding: clamp(2rem, 5vw, 4.5rem) !important;
  border: 1px solid rgba(227, 184, 91, 0.25) !important;
  border-radius: 1.5rem !important;
  color: #fff8ec !important;
  background: #110e0a !important;
}

body[data-theme="mixed"] .academy-final h2 {
  max-width: 15ch !important;
  margin: 0 !important;
  color: #fff8ec !important;
  font-size: clamp(2.15rem, 4.3vw, 4.15rem) !important;
  line-height: 1.05 !important;
  overflow-wrap: normal;
}

body[data-theme="mixed"] .academy-final .academy-eyebrow {
  margin-block-end: 1.35rem !important;
  color: #f1d58e !important;
}

/* Projects use dark content cards on the same light page canvas. */
body[data-page="projects"][data-theme="mixed"] .projects-hero,
body[data-page="projects"][data-theme="mixed"] .project-section {
  color: #17120c !important;
  background: transparent !important;
}

body[data-page="projects"][data-theme="mixed"] .project-container {
  color: #fff8ec !important;
  border: 1px solid rgba(227, 184, 91, 0.25) !important;
  border-radius: 1.35rem !important;
  background: #110e0a !important;
}

/* Internal footers stay light and readable; only the homepage footer is black. */
body[data-theme="mixed"]:not([data-page="home"]) .site-footer,
body[data-theme="mixed"]:not([data-page="home"]) .footer-panel {
  color: #17120c !important;
  border-color: rgba(143, 91, 10, 0.2) !important;
  background: #fffdf8 !important;
}

body[data-theme="mixed"]:not([data-page="home"]) .site-footer :where(.footer-lead h2, .footer-brand .brand strong, .footer-group > span, .footer-support-link strong) {
  color: #17120c !important;
}

body[data-theme="mixed"]:not([data-page="home"]) .site-footer :where(.footer-brand p, .footer-group a, .footer-contact p, .footer-contact a, .footer-meta, .footer-meta a, .footer-support-link span) {
  color: #655c50 !important;
}

@media (max-width: 63.99rem) {
  body[data-theme="mixed"] .site-header .nav-links.is-open {
    border: 1px solid rgba(143, 91, 10, 0.22) !important;
    background: rgba(255, 253, 248, 0.98) !important;
    box-shadow: 0 1.2rem 3rem rgba(23, 18, 12, 0.12) !important;
  }

  body[data-page="home"][data-theme="mixed"] .site-header.is-over-video .nav-links.is-open {
    border-color: rgba(255, 248, 236, 0.3) !important;
    background: rgba(8, 6, 4, 0.72) !important;
    box-shadow: none !important;
    backdrop-filter: blur(1rem) !important;
    -webkit-backdrop-filter: blur(1rem) !important;
  }

  body[data-theme="mixed"] .academy-final {
    width: min(calc(100% - 1.25rem), 82rem) !important;
    min-height: 24rem !important;
    padding: 2rem 1.25rem !important;
    border-radius: 1.15rem !important;
  }

  body[data-theme="mixed"] .academy-final h2 {
    font-size: clamp(1.95rem, 9vw, 2.75rem) !important;
    line-height: 1.08 !important;
  }
}

@media (min-width: 64rem) {
  body[data-theme="mixed"] .site-header .nav-links {
    display: flex !important;
    gap: 0.25rem !important;
    padding: 0 !important;
  }

  body[data-theme="mixed"] .site-header .nav-links a:not(.mobile-menu-cta) {
    min-height: 2.65rem !important;
    padding-inline: 0.85rem !important;
    border-radius: 999rem !important;
  }

  body[data-page="home"][data-theme="mixed"] .site-header.is-over-video .nav-links a:not(.mobile-menu-cta) {
    color: rgba(255, 248, 236, 0.82) !important;
    border: 1px solid rgba(255, 248, 236, 0.32) !important;
    background: rgba(8, 6, 4, 0.14) !important;
  }

  body[data-page="home"][data-theme="mixed"] .site-header.is-over-video .nav-links a:not(.mobile-menu-cta):hover,
  body[data-page="home"][data-theme="mixed"] .site-header.is-over-video .nav-links a:not(.mobile-menu-cta)[aria-current="page"] {
    color: #f1d58e !important;
    border-color: rgba(227, 184, 91, 0.64) !important;
    background: rgba(8, 6, 4, 0.26) !important;
  }
}

/* Release 15 final overrides: same visuals, shorter scroll work and safe wrapping. */
@media (min-width: 48.01rem) and (prefers-reduced-motion: no-preference) {
  #cards-scroll-track { height: 190svh !important; }
  #cards-scroll-track .flip-scroll-card { contain: layout paint style; }
}

.checkout-container :where(.pay-card, .cib-data-row, .payment-field, .summary-list) { min-width: 0; }
.checkout-container :where(.pay-card b, .pay-card a, .cib-data-row b, .payment-field span, .summary-list dd) {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Footer contrast and spacing must win over every historical theme override. */
body[data-page][data-theme] .footer-panel .site-footer { margin: 0 !important; border-top: 0 !important; }
body[data-page][data-theme] .site-footer .brand strong { color: var(--mx-text) !important; }
body[data-page][data-theme] .site-footer .brand small { color: var(--mx-muted) !important; }
body[data-page][data-theme] .site-footer .brand strong span { color: var(--mx-gold) !important; }

body[data-page="reviews"] .review-form {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem;
}
body[data-page="reviews"] .review-form label { display: grid; gap: .55rem; min-width: 0; color: var(--academy-text) !important; }
body[data-page="reviews"][data-theme="mixed"] .review-form label,
body[data-page="reviews"][data-theme="dark"] .review-form label { color: #fff8ec !important; }
body[data-page="reviews"] .review-form :where(input, select, textarea) { width: 100%; min-width: 0; min-height: 2.75rem; font-size: 1rem; }
body[data-page="reviews"] .review-form .form-wide { grid-column: 1 / -1; }
body[data-page="reviews"] .review-form .form-status { margin: 1rem 0 0; line-height: 1.7; }
body[data-page="reviews"] .review-email-fallback { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block-start: .5rem; }
@media (min-width: 48rem) {
  body[data-page="reviews"] .review-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Release 17: calm academy typography and the paired project-image composition. */
body[data-page="academy"] .academy-hero { min-height: 0; padding-block: clamp(2rem, 5vw, 4rem) 3rem !important; }
body[data-page="academy"] .academy-hero__inner { min-height: 0 !important; gap: 2.5rem !important; }
body[data-page="academy"] .academy-hero__copy { max-width: none; min-width: 0; padding-block-end: 0; }
body[data-page="academy"] .academy-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.65rem) !important;
  line-height: 1.24 !important; letter-spacing: -.025em !important;
  margin-block: 1.25rem 1.5rem; max-width: 25ch !important;
  overflow-wrap: normal !important; text-wrap: pretty;
}
html[dir="rtl"] body[data-page="academy"] .academy-hero h1 { letter-spacing: 0 !important; line-height: 1.5 !important; }
body[data-page="academy"] .academy-hero__lead { font-size: 1rem !important; line-height: 1.85 !important; max-width: 54ch; }
body[data-page="academy"] .academy-hero__facts { margin-block-start: 1.75rem !important; }
body[data-page="academy"] .academy-hero__facts .fact-card > :where(span, strong) { display: block; }
body[data-page="academy"] .academy-hero__facts .fact-card > span { color: var(--academy-muted); font-size: .875rem; }
body[data-page="academy"] .academy-hero__facts .fact-card > strong { font-size: .9rem; line-height: 1.65; margin-top: .3rem; }
body[data-page="academy"] .academy-hero__visual { min-width: 0; width: 100%; }
.academy-image-stack { position: relative; width: 100%; aspect-ratio: 1.12; isolation: isolate; }
.academy-image-card {
  position: absolute; margin: 0; width: 86%; overflow: hidden;
  border: .3rem solid #e8dfcf; border-radius: 1.2rem;
  background: #eeeae2; box-shadow: 0 .7rem 1.5rem rgba(35,26,12,.09);
}
.academy-image-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.academy-image-card--back { inset: 2% auto auto 1%; aspect-ratio: 1.35; transform: rotate(1.5deg); }
.academy-image-card--front { inset: auto 1% 1% auto; aspect-ratio: 1.35; z-index: 1; transform: rotate(-1deg); background: #f3f3f3; }
.academy-image-card--front img { object-fit: contain; }
.academy-image-card figcaption {
  position: absolute; inset: auto .65rem .65rem auto;
  padding: .45rem .65rem; border: 1px solid rgba(255,248,236,.24);
  border-radius: .6rem; background: #17120c; color: #fff8ec;
  font-size: .75rem; font-weight: 700; line-height: 1.5;
}
@media (min-width: 64rem) {
  body[data-page="academy"] .academy-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) !important;
    gap: clamp(2.5rem, 5vw, 5rem) !important;
  }
}

/* Homepage footer is a flat black continuation, never a rounded light panel.
   Explicit foregrounds prevent inherited light-theme tokens obscuring text. */
body[data-page="home"][data-theme] [data-site-footer],
body[data-page="home"][data-theme] .footer-panel,
body[data-page="home"][data-theme] .footer-panel .site-footer {
  background: #080604 !important; color: #fff8ec !important;
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
}
body[data-page="home"][data-theme] .footer-panel { margin: 0 !important; padding: 0 !important; }
body[data-page="home"][data-theme] .site-footer :where(h2, h3, .footer-email-direct, .footer-email-direct span, .brand strong) {
  color: #fff8ec !important; -webkit-text-fill-color: #fff8ec !important;
}
body[data-page="home"][data-theme] .site-footer :where(p, .footer-group-nav a, .footer-support-label, .footer-support-mail-link, .brand small) {
  color: #c9c0b3 !important; -webkit-text-fill-color: #c9c0b3 !important;
}
body[data-page="home"][data-theme] .site-footer :where(.footer-contact-badge, .brand strong span) {
  color: #e3b85b !important; -webkit-text-fill-color: #e3b85b !important;
}
body[data-page="home"][data-theme] .footer-contact-title { font-size: clamp(2rem, 3.5vw, 3.5rem) !important; line-height: 1.18 !important; }
body[data-page="home"][data-theme] .site-footer .footer-shell { padding-block: clamp(2.5rem, 5vw, 4rem) !important; }
body[data-page="home"][data-theme] .site-footer .footer-group-title { font-size: 1rem; }
body[data-page="home"][data-theme] .site-footer :where(.footer-brand-description, .footer-support-desc, .footer-group-nav a) { font-size: 1rem; line-height: 1.8; }
