/* AutoDevix — lavender glass system (concept-driven) */
:root {
  --lx-ink: #2c1848;
  --lx-ink-soft: #5a4578;
  --lx-muted: #8a74a8;
  --lx-violet: #7b5cff;
  --lx-violet-deep: #5a3fd4;
  --lx-lilac: #cbb6ff;
  --lx-mist: #f3ecff;
  --lx-glass: rgba(255, 255, 255, 0.28);
  --lx-glass-2: rgba(255, 255, 255, 0.45);
  --lx-border: rgba(255, 255, 255, 0.62);
  --lx-border-soft: rgba(160, 130, 220, 0.28);
  --lx-shadow: 0 24px 60px rgba(90, 60, 160, 0.14);
  --lx-serif: "Instrument Serif", "Times New Roman", serif;
  --lx-sans: "Syne", "Segoe UI", sans-serif;
  --lx-radius: 28px;
  --lx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lx-wrap: min(1120px, calc(100% - 2.4rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--lx-sans);
  color: var(--lx-ink);
  line-height: 1.65;
  background: #ebe3f8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lx-violet-deep); }
button { font: inherit; }
.hidden { display: none !important; }

.lx-wrap {
  width: var(--lx-wrap);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* —— Atmosphere —— */
.lx-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 700px at 8% -10%, rgba(190, 160, 255, 0.55), transparent 55%),
    radial-gradient(900px 600px at 95% 5%, rgba(140, 110, 255, 0.35), transparent 50%),
    radial-gradient(800px 500px at 50% 110%, rgba(210, 180, 255, 0.4), transparent 55%),
    linear-gradient(180deg, #f7f2ff 0%, #ebe3f8 40%, #e4daf6 100%);
}

.lx-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.75;
  animation: lx-drift 16s ease-in-out infinite;
}
.lx-blob-1 {
  width: 420px; height: 420px; top: 8%; left: -6%;
  background: radial-gradient(circle, rgba(200, 170, 255, 0.7), transparent 70%);
}
.lx-blob-2 {
  width: 360px; height: 360px; top: 35%; right: -8%;
  background: radial-gradient(circle, rgba(130, 100, 240, 0.4), transparent 70%);
  animation-duration: 22s;
  animation-direction: reverse;
}
.lx-blob-3 {
  width: 280px; height: 280px; bottom: 15%; left: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 70%);
  animation-duration: 18s;
}
.lx-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(90, 63, 212, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 63, 212, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 70%);
}

@keyframes lx-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -20px) scale(1.05); }
}

/* —— Glass panel —— */
.lx-panel {
  background: var(--lx-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--lx-border);
  box-shadow:
    var(--lx-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(120, 90, 200, 0.06);
  border-radius: var(--lx-radius);
}

/* —— Header —— */
.lx-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1.1rem 0 0.55rem;
}

.lx-nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--lx-border);
  box-shadow: 0 16px 40px rgba(90, 60, 160, 0.12), inset 0 1px 0 rgba(255,255,255,0.75);
}

.lx-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.lx-logo {
  height: 28px;
  width: auto;
  display: block;
}
.lx-mark {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.35rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, #8b6cff, #4a2fb8);
  box-shadow: 0 8px 20px rgba(90, 63, 212, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

.lx-menu {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}
.lx-menu a {
  text-decoration: none;
  color: var(--lx-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.lx-menu a:hover { color: var(--lx-violet-deep); }

.lx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #5a3fd4 0%, #8b6cff 48%, #c4b0ff 100%);
  box-shadow: 0 12px 30px rgba(90, 63, 212, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s var(--lx-ease), box-shadow 0.25s;
}
.lx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(90, 63, 212, 0.42);
}
.lx-btn i { font-style: normal; opacity: 0.9; }
.lx-btn-lg { min-height: 3rem; padding-inline: 1.5rem; font-size: 0.95rem; }

.lx-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--lx-border-soft);
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.lx-burger span,
.lx-burger span::before,
.lx-burger span::after {
  display: block;
  width: 14px; height: 2px;
  margin: 0 auto;
  background: var(--lx-ink);
  border-radius: 2px;
  position: relative;
}
.lx-burger span::before,
.lx-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.lx-burger span::before { top: -5px; }
.lx-burger span::after { top: 5px; }

.lx-drawer {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.55rem;
  padding: 0.9rem 1.1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(20px);
  border: 1px solid var(--lx-border);
}
.lx-drawer a {
  text-decoration: none;
  color: var(--lx-ink);
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--lx-border-soft);
}
.lx-drawer a:last-child { border: 0; }

.lx-sponsor {
  display: flex;
  justify-content: space-between;
  margin: 0.85rem auto 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lx-muted);
  font-weight: 600;
  position: relative;
  z-index: 30;
}
.lx-sponsor a {
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--lx-violet-deep);
  position: relative;
  z-index: 31;
  padding: 0.15rem 0;
}

/* —— Hero split —— */
.lx-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.2rem 0 2.8rem;
  min-height: min(78vh, 720px);
  overflow: visible;
  isolation: isolate;
}
.lx-hero-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  z-index: 0;
}

.lx-chip {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lx-violet-deep);
}

.lx-hero-copy h1 {
  margin: 0 0 1.1rem;
  font-family: var(--lx-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--lx-ink);
}
.lx-hero-copy h1 em {
  font-style: italic;
  background: linear-gradient(115deg, #4a2fb8 0%, #6e4cff 55%, #8b6cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lx-lede {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  color: var(--lx-ink-soft);
  max-width: 34rem;
  font-weight: 400;
}

.lx-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.lx-ghost {
  text-decoration: none;
  color: var(--lx-ink-soft);
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--lx-border-soft);
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
}
.lx-ghost:hover { color: var(--lx-violet-deep); border-color: var(--lx-lilac); }

.lx-hero-glow {
  position: absolute;
  inset: 0 -8% -12%;
  background: radial-gradient(circle at 50% 40%, rgba(160, 120, 255, 0.55), transparent 65%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: lx-drift 12s ease-in-out infinite;
}
.lx-hero-glass {
  position: relative;
  z-index: 1;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--lx-border);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  box-shadow:
    0 40px 80px rgba(70, 40, 140, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.65);
}
.lx-hero-glass img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.lx-hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(180,150,255,0.2), transparent 40%),
    linear-gradient(0deg, rgba(60,30,110,0.25), transparent 45%);
  pointer-events: none;
}

/* —— Section heads —— */
.lx-sec-head {
  margin-bottom: 1.5rem;
  max-width: 36rem;
}
.lx-sec-head h2 {
  margin: 0;
  font-family: var(--lx-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.lx-sec-head em {
  font-style: italic;
  color: var(--lx-violet-deep);
}
.lx-center { text-align: center; margin-inline: auto; }

/* —— Project cards (glass over imagery) —— */
.lx-projects { padding: 1rem 0 3rem; }
.lx-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.lx-project {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 1.4rem;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--lx-shadow);
  isolation: isolate;
  transition: transform 0.35s var(--lx-ease), box-shadow 0.35s;
}
.lx-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(40,20,70,0.15) 0%, rgba(40,20,70,0.72) 100%),
    var(--bg) center / cover no-repeat;
  z-index: -2;
}
.lx-project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
  z-index: -1;
}
.lx-project:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(70, 40, 140, 0.28);
}
.lx-project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.55rem;
}
.lx-project h3 {
  margin: 0 0 0.45rem;
  font-family: var(--lx-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
}
.lx-project p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
  max-width: 95%;
}
.lx-project-go {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
}

/* —— Trio / metrics —— */
.lx-trio {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 1rem;
  padding-bottom: 3rem;
}
.lx-panel { padding: 1.45rem; }
.lx-specialty {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.lx-specialty li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--lx-ink-soft);
}
.lx-ico {
  width: 28px; height: 28px;
  border-radius: 10px;
  border: 1px solid var(--lx-border);
  background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(200,180,255,0.35));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  flex-shrink: 0;
}
.lx-ico::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--lx-violet);
}

.lx-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.lx-metric {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 118px;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.32);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--lx-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 12px 30px rgba(90,60,160,0.08);
}
.lx-metric strong {
  font-family: var(--lx-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--lx-violet-deep);
  line-height: 1;
  background: linear-gradient(180deg, #7b5cff, #3d2688);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lx-metric span {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lx-muted);
  font-weight: 600;
}

.lx-soft-text {
  margin: 0.6rem 0 1rem;
  color: var(--lx-ink-soft);
}
.lx-mini-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.lx-mini-tiles span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--lx-border);
  color: var(--lx-ink-soft);
}

/* —— Article —— */
.lx-article { padding-bottom: 3rem; }
.lx-prose {
  max-width: 780px;
  padding: clamp(1.5rem, 3vw, 2.4rem) !important;
}
.lx-prose h3 {
  margin: 2.1rem 0 0.9rem;
  font-family: var(--lx-serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.lx-prose h3 span {
  font-family: var(--lx-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lx-violet);
  letter-spacing: 0.08em;
}
.lx-prose p, .lx-prose li { color: var(--lx-ink-soft); font-size: 1.02rem; }
.lx-prose blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--lx-border);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(16px);
  font-family: var(--lx-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--lx-violet-deep);
  line-height: 1.35;
}
.lx-note {
  margin: 1.2rem 0;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(123, 92, 255, 0.1);
  border: 1px solid rgba(123, 92, 255, 0.18);
}
.lx-prose figure {
  margin: 1.6rem 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--lx-border);
  background: rgba(255,255,255,0.25);
}
.lx-prose figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.lx-prose figcaption {
  padding: 0.7rem 1rem 0.95rem;
  font-size: 0.85rem;
  color: var(--lx-muted);
}
.lx-bridge {
  margin-top: 2rem;
  padding: 1.35rem;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(123,92,255,0.16), rgba(255,255,255,0.4));
  border: 1px solid var(--lx-border);
  backdrop-filter: blur(18px);
}
.lx-bridge p { margin: 0.35rem 0 0; color: var(--lx-ink-soft); }

/* —— Workflow —— */
.lx-flow { padding-bottom: 3rem; }
.lx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.lx-step-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 2.1rem;
  border-top: 1.5px dotted rgba(123, 92, 255, 0.4);
  pointer-events: none;
}
.lx-step {
  position: relative;
  padding: 1.25rem 1.15rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--lx-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 14px 36px rgba(90,60,160,0.08);
}
.lx-step span {
  display: block;
  font-family: var(--lx-serif);
  font-size: 1.55rem;
  color: var(--lx-violet-deep);
  margin-bottom: 0.35rem;
}
.lx-step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.lx-step p { margin: 0; color: var(--lx-muted); font-size: 0.9rem; }

/* —— Quiz —— */
.lx-quiz-zone {
  padding-bottom: 3.5rem;
  max-width: 720px;
}
.lx-quiz { padding: 1.7rem !important; }
.lx-quiz-progress { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.advx-quiz-dot,
.lx-quiz-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(123,92,255,0.16);
}
.advx-quiz-dot.is-active,
.lx-quiz-dot.is-active { background: var(--lx-violet); }
.advx-quiz-dot.is-done,
.lx-quiz-dot.is-done { background: var(--lx-lilac); }

.lx-quiz-q,
.advx-quiz-q {
  margin: 0 0 1rem;
  font-family: var(--lx-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
}
.lx-quiz-options,
.advx-quiz-options { display: grid; gap: 0.65rem; }
.lx-quiz-option,
.advx-quiz-option {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--lx-border-soft);
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(12px);
  cursor: pointer;
  color: var(--lx-ink);
  transition: transform 0.2s var(--lx-ease), border-color 0.2s, background 0.2s;
}
.lx-quiz-option:hover,
.advx-quiz-option:hover {
  transform: translateX(4px);
  border-color: var(--lx-violet);
  background: rgba(255,255,255,0.72);
}
.lx-quiz-bars { display: grid; gap: 0.6rem; margin: 1rem 0; }
.lx-quiz-bar,
.advx-quiz-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(123,92,255,0.12);
  overflow: hidden;
}
.lx-quiz-bar span,
.advx-quiz-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lx-violet-deep), var(--lx-lilac));
  transition: width 1s var(--lx-ease);
}
.lx-quiz-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
}
.lx-quiz-profile div {
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--lx-border-soft);
}
.lx-quiz-profile .is-on {
  background: rgba(123,92,255,0.14);
  border-color: rgba(123,92,255,0.28);
}
.lx-quiz-profile strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lx-muted);
  margin-bottom: 0.2rem;
}
.lx-muted { color: var(--lx-muted); font-size: 0.92rem; }
.lx-disclaimer {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.32);
  border: 1px solid var(--lx-border-soft);
  backdrop-filter: blur(14px);
  font-size: 0.88rem;
  color: var(--lx-muted);
}

/* quiz.js still creates advx-quiz-option class — style both */
#advxQuizAnswers .advx-quiz-option { /* covered above */ }

/* —— Footer (kept structure, glass-aligned) —— */
.lx-foot {
  padding: 2.5rem 0 2rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.28) 30%, rgba(235, 226, 250, 0.9));
}
.lx-foot-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.lx-foot-line {
  margin: 0 0 1.1rem;
  font-family: var(--lx-serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}
.lx-foot-line em {
  font-style: italic;
  background: linear-gradient(120deg, #4a2fb8, #7b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Even anchor landing under sticky glass header */
#article,
#reperes,
#jalons,
#quiz,
#pourquoi,
#niveaux,
#prime,
#dossier {
  scroll-margin-top: 6.5rem;
}
.lx-foot-ribbon {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 1.3rem 1.4rem !important;
}
.lx-foot-who {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.lx-foot-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.lx-foot-who strong { display: block; }
.lx-foot-who span { color: var(--lx-muted); font-size: 0.85rem; }
.lx-foot address {
  font-style: normal;
  color: var(--lx-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
}
.lx-foot-reach { display: grid; gap: 0.35rem; }
.lx-foot-reach a {
  text-decoration: none;
  color: var(--lx-ink);
  font-weight: 600;
}
.lx-foot-reach a:hover { color: var(--lx-violet-deep); }
.lx-foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  margin-bottom: 1.2rem;
}
.lx-foot-legal a {
  text-decoration: none;
  color: var(--lx-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.lx-foot-legal a:hover { color: var(--lx-violet-deep); }
.lx-foot-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lx-border-soft);
  font-size: 0.82rem;
  color: var(--lx-muted);
}

/* —— Legal pages —— */
.lx-legal, .advx-legal { padding: 1.5rem 0 3rem; position: relative; z-index: 2; }
.lx-legal-card, .advx-legal-card { padding: clamp(1.4rem, 3vw, 2.4rem) !important; }
.lx-legal h1, .advx-legal h1 {
  margin: 0 0 0.4rem;
  font-family: var(--lx-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
}
.lx-meta, .advx-meta { color: var(--lx-muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.lx-prose h2, .advx-prose h2 {
  font-family: var(--lx-serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 1.6rem 0 0.6rem;
}

@media (max-width: 960px) {
  .lx-menu, .lx-nav > .lx-btn { display: none; }
  .lx-burger { display: inline-grid; place-items: center; }
  .lx-nav { grid-template-columns: 1fr auto; }
  .lx-drawer.is-open { display: flex; }
  .lx-hero,
  .lx-project-grid,
  .lx-trio,
  .lx-steps,
  .lx-foot-ribbon,
  .lx-quiz-profile { grid-template-columns: 1fr; }
  .lx-hero { min-height: 0; gap: 1.5rem; }
  .lx-hero-frame { justify-self: center; width: min(100%, 360px); }
  .lx-step-line { display: none; }
}
