/* ============================================================
   Domofen Jobs v2 — Refined, quieter, more Swiss
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  /* Brand palette */
  --beige-900: #E2DACF;
  --beige-500: #F0ECE6;
  --beige-300: #F8F5F0;
  --bois:      #262018;
  --violet-900:#3F2948;
  --violet-700:#5C3A6B;
  --violet-500:#7E518F;
  --violet-300:#F9EAFF;
  --blanc:     #FFFFFF;
  --brun:      #5A4F3F;
  --brun-light:#8A7E68;
  --rouge:     #C2393F;
  --hairline:  rgba(38,32,24,0.10);
  --hairline-strong:rgba(38,32,24,0.18);

  /* Type */
  --font-ui: 'Space Grotesk', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-italic: 'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --pad-scale: 1;
  --pad-x: calc(clamp(24px, 5vw, 80px) * var(--pad-scale));
  --container: 1320px;

  /* Tweaks (live) */
  --type-scale: 1;
  --density: 1;
  --card-radius: 2px;
  --btn-radius: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--bois);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--violet-300); color: var(--violet-900); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-500);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.on-dark { color: var(--beige-900); }
.eyebrow.on-dark::before { background: rgba(255,255,255,0.5); }

.it {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ============================================================
   HEADER — quiet, hairline border
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.site-header.on-dark {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 26px; width: auto; display: block; }
.site-header .brand img { transition: filter 0.32s; }
.site-header.on-dark .brand img { filter: brightness(0) invert(1); }
.site-header.on-dark .brand img.logo-color { filter: none; }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--brun);
}
.nav-meta .open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--violet-300);
  color: var(--violet-900);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-header.on-dark .nav-meta { color: rgba(255,255,255,0.75); }
.site-header.on-dark .nav-meta .open-badge {
  background: rgba(255,255,255,0.12);
  color: var(--blanc);
}
.nav-meta .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.nav-meta .ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.24s;
}
.nav-meta .ext:hover { color: var(--violet-500); }
.site-header.on-dark .nav-meta .ext:hover { color: var(--blanc); }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================================
   HERO — Editorial cover (quiet, big italic, hairline grid)
   ============================================================ */
.hero {
  position: relative;
  background: var(--blanc);
  padding: clamp(80px, 9vw, 130px) 0 clamp(56px, 6vw, 96px);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
.hero-meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brun);
  font-weight: 500;
  flex-wrap: wrap;
}
.hero-meta-line .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--brun-light);
}
.hero-meta-line .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: calc(clamp(56px, 9.5vw, 156px) * var(--type-scale));
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  max-width: 16ch;
}

/* Hero alignment tweak */
body[data-hero-align="center"] .hero .hero-grid,
body[data-hero-align="center"] .hero .hero-foot { text-align: center; }
body[data-hero-align="center"] .hero h1 { margin-left: auto; margin-right: auto; }
body[data-hero-align="center"] .hero .hero-meta-line { justify-content: center; }
body[data-hero-align="center"] .hero .hero-foot { grid-template-columns: 1fr; gap: 32px; }
body[data-hero-align="center"] .hero .hero-lede { margin-left: auto; margin-right: auto; }
body[data-hero-align="center"] .hero .hero-stats { justify-content: center; max-width: 720px; margin: 0 auto; }

/* Open badge style tweak */
body[data-badge-style="square"] .nav-meta .open-badge {
  border-radius: 0;
  border: 1px solid var(--violet-500);
  background: transparent;
  color: var(--violet-500);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}
body[data-badge-style="square"] .site-header.on-dark .nav-meta .open-badge {
  border-color: rgba(255,255,255,0.4);
  color: var(--blanc);
  background: transparent;
}
.hero h1 .it {
  color: var(--violet-500);
  font-size: 1em;
  letter-spacing: -0.02em;
}
.hero-foot {
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hairline);
  margin-top: clamp(32px, 4vw, 56px);
}
.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bois);
  transition: background 0.32s, color 0.32s, border-color 0.32s, transform 0.32s;
  white-space: nowrap;
  align-self: end;
  justify-self: end;
}
.hero-jump:hover {
  background: var(--bois);
  color: var(--blanc);
  border-color: var(--bois);
}
.hero-jump svg {
  transition: transform 0.32s ease;
}
.hero-jump:hover svg { transform: translateY(3px); }
.hero[data-variant="dark"] .hero-jump,
.hero[data-variant="fullbleed"] .hero-jump {
  color: var(--blanc);
  border-color: rgba(255,255,255,0.4);
}
.hero[data-variant="dark"] .hero-jump:hover,
.hero[data-variant="fullbleed"] .hero-jump:hover {
  background: var(--blanc);
  color: var(--bois);
  border-color: var(--blanc);
}
@media (max-width: 720px) {
  .hero-foot { grid-template-columns: 1fr; gap: 32px; }
}
.hero-lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--bois);
  margin: 0;
  max-width: 48ch;
  font-weight: 400;
}
.hero-lede strong {
  font-weight: 500;
  color: var(--violet-900);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-stat .n {
  font-family: var(--font-ui);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--violet-500);
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 8px;
}
.hero-stat .l {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brun);
  line-height: 1.4;
}

/* HERO variant: split (photo + text) */
.hero[data-variant="split"] {
  padding: 0;
  border-bottom: none;
}
.hero[data-variant="split"] .hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 88vh;
}
@media (max-width: 860px) {
  .hero[data-variant="split"] .hero-grid { grid-template-columns: 1fr; min-height: auto; }
}
.hero[data-variant="split"] .hero-text {
  padding: clamp(120px, 14vw, 180px) clamp(40px, 5vw, 80px) clamp(56px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--hairline);
}
.hero[data-variant="split"] .hero-photo {
  background-image: url('assets/atelier.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 480px;
}
.hero[data-variant="split"] .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(38,32,24,0.4));
}
.hero[data-variant="split"] .photo-tag {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
  color: var(--blanc);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero[data-variant="split"] .photo-tag .num {
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--beige-900);
}
.hero[data-variant="split"] .photo-tag .lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero[data-variant="split"] h1 { font-size: calc(clamp(48px, 7vw, 100px) * var(--type-scale)); }
.hero[data-variant="split"] .hero-foot {
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.hero[data-variant="split"] .hero-stats { grid-template-columns: 1fr 1fr; }

/* HERO variant: dark cover */
.hero[data-variant="dark"] {
  background: var(--violet-900);
  color: var(--blanc);
  border-bottom: none;
}
.hero[data-variant="dark"] h1 { color: var(--blanc); }
.hero[data-variant="dark"] h1 .it { color: var(--violet-300); }
.hero[data-variant="dark"] .hero-meta-line { color: rgba(255,255,255,0.65); }
.hero[data-variant="dark"] .hero-meta-line .dot { background: rgba(255,255,255,0.4); }
.hero[data-variant="dark"] .hero-foot { border-top-color: rgba(255,255,255,0.18); }
.hero[data-variant="dark"] .hero-lede { color: rgba(255,255,255,0.85); }
.hero[data-variant="dark"] .hero-lede strong { color: var(--violet-300); }
.hero[data-variant="dark"] .hero-stat .n { color: var(--beige-900); }
.hero[data-variant="dark"] .hero-stat .l { color: rgba(255,255,255,0.6); }
.hero[data-variant="dark"] ~ .first-section .corner-marks { display: none; }

/* HERO variant: fullbleed photo */
.hero[data-variant="fullbleed"] {
  background-image: url('assets/atelier.webp');
  background-size: cover;
  background-position: center;
  color: var(--blanc);
  position: relative;
  border-bottom: none;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(180px, 18vw, 240px) 0 clamp(72px, 8vw, 120px);
}
.hero[data-variant="fullbleed"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(63,41,72,0.7) 0%, rgba(38,32,24,0.6) 60%, rgba(38,32,24,0.85) 100%);
}
.hero[data-variant="fullbleed"] .container { position: relative; z-index: 1; }
.hero[data-variant="fullbleed"] h1 { color: var(--blanc); }
.hero[data-variant="fullbleed"] h1 .it { color: var(--violet-300); }
.hero[data-variant="fullbleed"] .hero-meta-line { color: rgba(255,255,255,0.75); }
.hero[data-variant="fullbleed"] .hero-meta-line .dot { background: rgba(255,255,255,0.5); }
.hero[data-variant="fullbleed"] .hero-foot { border-top-color: rgba(255,255,255,0.2); }
.hero[data-variant="fullbleed"] .hero-lede { color: rgba(255,255,255,0.9); }
.hero[data-variant="fullbleed"] .hero-stat .n { color: var(--beige-900); }
.hero[data-variant="fullbleed"] .hero-stat .l { color: rgba(255,255,255,0.7); }

/* ============================================================
   SECTION rhythm
   ============================================================ */
.section {
  padding: calc(clamp(80px, 10vw, 140px) * var(--density)) 0;
  position: relative;
}
.section.compact {
  padding: calc(clamp(56px, 7vw, 96px) * var(--density)) 0;
}
.section.tinted { background: var(--beige-300); }
.section.dark { background: var(--bois); color: var(--blanc); }
.section.violet { background: var(--violet-900); color: var(--blanc); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--hairline);
}
.section.dark .section-head, .section.violet .section-head {
  border-bottom-color: rgba(255,255,255,0.18);
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.section-head .lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head h2 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: calc(clamp(32px, 4.5vw, 64px) * var(--type-scale));
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  max-width: 16ch;
}
.section-head h2 .it { color: var(--violet-500); }
.section.dark .section-head h2 .it,
.section.violet .section-head h2 .it { color: var(--violet-300); }
.section-head .desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--brun);
  margin: 0;
  max-width: 48ch;
}
.section.dark .section-head .desc,
.section.violet .section-head .desc { color: rgba(255,255,255,0.7); }
.section-head .meta-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brun-light);
  font-weight: 500;
}

/* ============================================================
   JOB CARDS — three styles, switchable
   ============================================================ */
.jobs {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* CARDS variant — generous, clickable, side-by-side */
[data-card-style="cards"] .jobs {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: transparent;
  border: none;
}
@media (max-width: 860px) {
  [data-card-style="cards"] .jobs { grid-template-columns: 1fr; }
}
[data-card-style="cards"] .job {
  background: var(--blanc);
  border: 1px solid var(--bois);
  border-radius: var(--card-radius);
  padding: clamp(32px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  cursor: pointer;
  transition: border-color 0.32s ease, transform 0.32s ease, box-shadow 0.32s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(26, 20, 16, 0.04), 0 8px 24px -12px rgba(26, 20, 16, 0.12);
}
[data-card-style="cards"] .job:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 0 rgba(125, 85, 151, 0.08), 0 18px 40px -16px rgba(26, 20, 16, 0.22);
}
[data-card-style="cards"] .job::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--violet-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-card-style="cards"] .job:hover {
  border-color: var(--violet-500);
}
[data-card-style="cards"] .job:hover::before {
  transform: scaleX(1);
}

/* MINIMAL list — full-width rows */
[data-card-style="minimal"] .jobs {
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--bois);
}
[data-card-style="minimal"] .job {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3.5vw, 44px) clamp(8px, 1.5vw, 24px);
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  background: transparent;
  transition: padding 0.42s cubic-bezier(0.16, 1, 0.3, 1), background 0.32s;
  position: relative;
}
[data-card-style="minimal"] .job:last-child { border-bottom: 1px solid var(--bois); }
[data-card-style="minimal"] .job:hover {
  background: var(--beige-300);
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
}
[data-card-style="minimal"] .job-num {
  font-family: var(--font-ui);
  font-size: clamp(40px, 4.5vw, 64px);
  color: var(--violet-500);
  font-weight: 400;
  line-height: 1;
}
[data-card-style="minimal"] .job-body { display: flex; flex-direction: column; gap: 10px; }
[data-card-style="minimal"] .job-summary { display: none; }
[data-card-style="minimal"] .job-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--brun);
}
[data-card-style="minimal"] .job-meta-row .pip {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--violet-500);
}
[data-card-style="minimal"] .job-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--violet-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: gap 0.24s;
}
[data-card-style="minimal"] .job:hover .job-cta { gap: 16px; color: var(--violet-900); }

/* NUMBERED variant — large editorial number */
[data-card-style="numbered"] .jobs {
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--hairline);
}
[data-card-style="numbered"] .job {
  display: grid;
  grid-template-columns: minmax(220px, 28%) 1fr auto;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  align-items: start;
  transition: opacity 0.32s;
}
[data-card-style="numbered"] .jobs:hover .job { opacity: 0.4; }
[data-card-style="numbered"] .jobs:hover .job:hover { opacity: 1; }
[data-card-style="numbered"] .job-num-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-card-style="numbered"] .job-num-block .big {
  font-family: var(--font-ui);
  font-size: clamp(96px, 11vw, 168px);
  color: var(--violet-500);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
[data-card-style="numbered"] .job-num-block .small {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brun-light);
}
[data-card-style="numbered"] .job-cta {
  align-self: end;
  font-size: 14px;
  font-weight: 500;
  color: var(--violet-500);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
[data-card-style="numbered"] .job:hover .job-cta { color: var(--violet-900); }
[data-card-style="numbered"] .job-summary { display: block; max-width: 50ch; }
@media (max-width: 860px) {
  [data-card-style="numbered"] .job { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  [data-card-style="numbered"] .job-num-block .big { font-size: 72px; }
  [data-card-style="numbered"] .jobs:hover .job { opacity: 1; }
}

/* Shared job content */
.job h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--bois);
  text-wrap: balance;
}
.job-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--brun);
  margin: 12px 0 0;
}
.job-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: var(--beige-300);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  color: var(--brun);
  letter-spacing: 0.01em;
  font-weight: 500;
}
.chip svg { color: var(--violet-500); }
[data-card-style="cards"] .job h3 {
  min-height: 2.24em;
}
[data-card-style="cards"] .job-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}
[data-card-style="cards"] .job-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}
[data-card-style="cards"] .job-contract {
  font-size: 12px;
  color: var(--brun-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
[data-card-style="cards"] .job-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--blanc);
  background: var(--violet-500);
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
  transition: gap 0.24s, background 0.24s, transform 0.24s;
}
[data-card-style="cards"] .job:hover .job-cta {
  gap: 14px;
  background: var(--violet-900);
  transform: translateX(2px);
}

[data-card-style="numbered"] .job-chips,
[data-card-style="minimal"] .job-chips,
[data-card-style="cards"] .job-chips { display: none; }
[data-card-style="numbered"] .job-meta-row,
[data-card-style="cards"] .job-meta-row { display: none; }
[data-card-style="numbered"] .job-cta-row,
[data-card-style="minimal"] .job-cta-row { display: none; }
/* Outer .job > .job-cta only visible in numbered + minimal */
[data-card-style="cards"] .job > .job-cta { display: none; }
/* .job-num-block: numbered uses full column, minimal uses just the .big number, cards hides */
[data-card-style="cards"] .job-num-block { display: none; }
[data-card-style="minimal"] .job-num-block .small { display: none; }
[data-card-style="minimal"] .job-num-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
[data-card-style="minimal"] .job-num-block .big {
  font-family: var(--font-ui);
  font-size: clamp(40px, 4.5vw, 64px);
  color: var(--violet-500);
  font-weight: 400;
  line-height: 1;
}
/* job-card-num is the small inline label inside .job-body — hide everywhere */
.job-card-num { display: none; }

.job-card-num {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--violet-500);
  letter-spacing: -0.005em;
}
[data-card-style="numbered"] .job-card-num,
[data-card-style="minimal"] .job-card-num { display: none; }

/* ============================================================
   PILLARS — text-only, hairline grid
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 860px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--blanc);
  padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.section.tinted .pillar { background: var(--beige-300); }
.pillar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 16px;
}
.pillar-num {
  font-family: var(--font-ui);
  font-size: 28px;
  color: var(--violet-500);
  font-weight: 400;
  line-height: 1;
}
.pillar-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brun-light);
  font-weight: 500;
}
.pillar h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pillar p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--brun);
}

/* ============================================================
   ATELIER STRIP — single full-bleed photo with caption
   ============================================================ */
.atelier {
  width: 100%;
  background: var(--bois);
  position: relative;
}
.atelier-photo {
  height: clamp(440px, 56vh, 640px);
  background-image: url('assets/atelier-usine.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.atelier-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,32,24,0) 30%, rgba(38,32,24,0.85));
}
.atelier-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: clamp(40px, 5vw, 72px) 0;
}
.atelier-caption .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  color: var(--blanc);
}
@media (max-width: 720px) {
  .atelier-caption .container { grid-template-columns: 1fr; }
}
.atelier-quote {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.atelier-quote .it { color: inherit; }
.atelier-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid rgba(255,255,255,0.4);
  padding-left: 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ============================================================
   FAITS — stat ladder
   ============================================================ */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }
.fact {
  background: var(--blanc);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.section.tinted .fact { background: var(--beige-300); }
.fact .n {
  font-family: var(--font-ui);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 400;
  color: var(--violet-500);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.fact .l {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bois);
  line-height: 1.4;
}
.fact .l small {
  display: block;
  font-weight: 400;
  color: var(--brun);
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

/* ============================================================
   PROCESS — horizontal timeline
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 720px) { .process { grid-template-columns: 1fr; } }
.process::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
@media (max-width: 720px) { .process::before { display: none; } }
.step {
  padding: 0 clamp(16px, 2vw, 28px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.step .marker {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.step .dot {
  width: 14px; height: 14px;
  background: var(--violet-300);
  border: 1px solid var(--violet-500);
  border-radius: 50%;
  flex-shrink: 0;
}
.step.passed .dot { background: var(--violet-500); }
.step .num {
  font-family: var(--font-ui);
  font-size: 24px;
  color: var(--violet-300);
  font-weight: 400;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
  color: var(--blanc);
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}
.step .ttl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-300);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

/* ============================================================
   FAQ-style "Pour qui / pas pour qui"
   ============================================================ */
.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 720px) { .fit { grid-template-columns: 1fr; } }
.fit-col {
  background: var(--blanc);
  padding: clamp(36px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section.tinted .fit-col { background: var(--beige-300); }
.fit-col h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fit-col .yes { color: var(--violet-900); }
.fit-col .no { color: var(--brun); }
.fit-col h3 .badge {
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--violet-500);
}
.fit-col ul { display: flex; flex-direction: column; gap: 14px; }
.fit-col li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bois);
  padding-left: 26px;
  position: relative;
}
.fit-col.no-col li { color: var(--brun); }
.fit-col .yes-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--violet-500);
  border-bottom: 1.5px solid var(--violet-500);
  transform: rotate(-45deg);
}
.fit-col.no-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1.5px;
  background: var(--brun-light);
}

/* ============================================================
   FOUNDER QUOTE
   ============================================================ */
.founder-quote {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 860px) { .founder-quote { grid-template-columns: 1fr; gap: 32px; } }
.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--brun);
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.founder-photo .tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blanc);
  background: rgba(38,32,24,0.7);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}
.founder-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.founder-body .quote {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.founder-body .quote .it { color: var(--violet-500); }
.founder-body .quote::before {
  content: '“';
  font-family: var(--font-ui);
  color: var(--violet-500);
  font-size: 1.4em;
  line-height: 0;
  margin-right: 0.05em;
  vertical-align: -0.2em;
}
.founder-attr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--violet-500);
}
.founder-attr strong {
  font-weight: 500;
  font-size: 15px;
  color: var(--bois);
}
.founder-attr span {
  font-size: 13px;
  color: var(--brun);
  font-family: var(--font-ui);
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.closing h2 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  color: var(--blanc);
}
.closing h2 .it { color: var(--violet-300); }
.closing p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 56ch;
}
.closing-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.closing-card {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.closing-card .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 1.8s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border-radius: var(--btn-radius);
  transition: background 0.28s ease, color 0.28s ease, transform 0.18s ease, border-color 0.28s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--violet-500); color: var(--blanc); }
.btn-primary:hover { background: var(--violet-900); }
.btn-cream { background: var(--beige-900); color: var(--bois); }
.btn-cream:hover { background: var(--blanc); }
.btn-dark { background: var(--bois); color: var(--blanc); }
.btn-dark:hover { background: var(--violet-900); }
.btn-ghost { background: transparent; color: var(--blanc); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--blanc); }
.btn-line {
  background: transparent;
  color: var(--bois);
  border: 1px solid var(--bois);
}
.btn-line:hover { background: var(--bois); color: var(--blanc); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bois);
  color: var(--blanc);
  padding: clamp(48px, 6vw, 96px) 0 32px;
}
.footer-banner {
  padding-bottom: clamp(40px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-banner .fb-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.footer-banner .fb-headline {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  color: var(--blanc);
}
.footer-banner .fb-headline .it {
  font-family: var(--font-ui);
  color: rgba(255,255,255,0.55);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-banner .fb-headline { font-size: 40px; gap: 0 12px; }
}
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top .brand img { height: 28px; filter: brightness(0) invert(1); }
.footer-blurb {
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  max-width: 38ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.footer-col p, .footer-col a {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.footer-col a { display: block; transition: color 0.24s; }
.footer-col a:hover { color: var(--violet-300); }
.footer-fine {
  margin-top: 10px !important;
  font-size: 12.5px !important;
  color: rgba(255,255,255,0.5) !important;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.footer-bottom .meta { display: inline-flex; gap: 12px; align-items: center; }
.footer-bottom .meta a:hover { color: var(--violet-300); }
.footer-bottom .dotsep { opacity: 0.4; }
.footer-bottom .swiss { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .flag {
  width: 12px; height: 12px;
  background: var(--rouge);
  position: relative;
  display: inline-block;
}
.footer-bottom .flag::before, .footer-bottom .flag::after {
  content: ''; position: absolute; background: var(--blanc);
}
.footer-bottom .flag::before {
  left: 50%; top: 22%; bottom: 22%;
  width: 2px; transform: translateX(-50%);
}
.footer-bottom .flag::after {
  top: 50%; left: 22%; right: 22%;
  height: 2px; transform: translateY(-50%);
}

/* ============================================================
   JD PAGE — sticky TOC sidebar layout
   ============================================================ */
.jd-header {
  background: var(--violet-900);
  color: var(--blanc);
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.jd-header .crumbs {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.24s;
}
.jd-header .crumbs:hover { color: var(--blanc); }
.jd-header .role-num {
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--violet-300);
  margin-bottom: 12px;
}
.jd-header h1 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 16ch;
  text-wrap: balance;
}
.jd-header h1 .it { color: var(--violet-300); }
.jd-header .jd-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(20px, 2vw, 28px);
  color: rgba(255,255,255,0.7);
  margin: 0 0 36px;
}
.jd-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 32px;
}
@media (max-width: 720px) { .jd-meta-grid { grid-template-columns: 1fr 1fr; } }
.jd-meta-grid .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jd-meta-grid .item .lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.jd-meta-grid .item .val {
  font-size: 15px;
  font-weight: 500;
  color: var(--blanc);
  line-height: 1.4;
}
.jd-header .actions { display: flex; gap: 16px; flex-wrap: wrap; }

.jd-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 5vw, 80px);
  background: var(--blanc);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
@media (max-width: 960px) {
  .jd-layout { grid-template-columns: 1fr; gap: 32px; }
}
.jd-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .jd-toc {
    position: relative;
    top: 0;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
.jd-toc .toc-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brun-light);
  margin-bottom: 12px;
  font-weight: 500;
}
@media (max-width: 960px) { .jd-toc .toc-label { display: none; } }
.jd-toc a {
  font-size: 13.5px;
  color: var(--brun);
  padding: 8px 0 8px 16px;
  border-left: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.24s, border-color 0.24s, padding-left 0.24s;
  position: relative;
  line-height: 1.4;
}
.jd-toc a .num {
  font-family: var(--font-ui);
  color: var(--violet-500);
  font-size: 14px;
  min-width: 18px;
}
.jd-toc a:hover { color: var(--bois); border-color: var(--violet-500); }
.jd-toc a.active {
  color: var(--violet-900);
  font-weight: 500;
  border-color: var(--violet-500);
  padding-left: 22px;
}
@media (max-width: 960px) {
  .jd-toc a {
    border-left: none;
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .jd-toc a:hover, .jd-toc a.active {
    background: var(--violet-300);
    color: var(--violet-900);
    padding-left: 14px;
  }
}

.jd-prose {
  max-width: 740px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--bois);
}
.jd-prose .lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--bois);
  font-weight: 400;
  margin: 0 0 40px;
  padding: 0;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.jd-prose .lede strong { font-weight: 500; }
.jd-prose h2 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--violet-900);
  margin: 64px 0 4px;
  padding-bottom: 16px;
  position: relative;
  scroll-margin-top: 96px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.jd-prose h2:first-child { margin-top: 0; }
.jd-prose h2 .num {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  color: var(--violet-500);
}
.jd-prose h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 1px;
  background: var(--violet-500);
}
.jd-prose h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--bois);
  margin: 36px 0 12px;
}
.jd-prose p { margin: 16px 0; color: var(--brun); }
.jd-prose strong { color: var(--bois); font-weight: 500; }
.jd-prose ul { margin: 16px 0; padding: 0; }
.jd-prose li {
  position: relative;
  padding-left: 22px;
  margin: 12px 0;
  color: var(--brun);
}
.jd-prose li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--violet-500);
}
.jd-prose a:not(.btn) {
  color: var(--violet-500);
  text-decoration: underline;
  text-decoration-color: var(--violet-300);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.24s;
}
.jd-prose a:not(.btn):hover { text-decoration-color: var(--violet-500); }

.jd-callout {
  background: var(--bois);
  color: var(--blanc);
  padding: clamp(28px, 3vw, 40px);
  border-radius: 2px;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jd-callout .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-300);
  font-weight: 500;
}
.jd-callout p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--blanc);
  margin: 0;
  letter-spacing: -0.005em;
}
.jd-cta-row {
  margin: 24px 0 32px !important;
}
.jd-cta-row .btn {
  text-decoration: none;
}
.jd-callout p .it { color: var(--violet-300); }

/* JD page tweak variants */
body[data-jd-header="dark"] .jd-header { background: var(--bois); }
body[data-jd-header="cream"] .jd-header {
  background: var(--beige-300);
  color: var(--bois);
}
body[data-jd-header="cream"] .jd-header .crumbs { color: var(--brun); }
body[data-jd-header="cream"] .jd-header .crumbs:hover { color: var(--bois); }
body[data-jd-header="cream"] .jd-header h1 { color: var(--bois); }
body[data-jd-header="cream"] .jd-header h1 .it { color: var(--violet-500); }
body[data-jd-header="cream"] .jd-header .jd-subtitle { color: var(--brun); }
body[data-jd-header="cream"] .jd-meta-grid { border-color: rgba(38,32,24,0.12); }
body[data-jd-header="cream"] .jd-meta-grid .item .lbl { color: var(--brun-light); }
body[data-jd-header="cream"] .jd-meta-grid .item .val { color: var(--bois); }
body[data-jd-header="cream"] .btn-cream {
  background: var(--violet-900);
  color: var(--blanc);
}
body[data-jd-header="cream"] .btn-cream:hover { background: var(--bois); }
body[data-jd-header="cream"] .btn-ghost { color: var(--bois); border-color: rgba(38,32,24,0.2); }

body[data-jd-toc="hidden"] .jd-toc { display: none; }
body[data-jd-toc="hidden"] .jd-layout {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

body[data-jd-numbers="hidden"] .jd-prose h2 .num { display: none; }
body[data-jd-numbers="hidden"] .jd-toc a .num { display: none; }

body[data-jd-lede="bordered"] .jd-prose .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--violet-900);
  padding: 24px;
  background: var(--beige-300);
  border-left: 2px solid var(--violet-500);
}
body[data-jd-lede="italic"] .jd-prose .lede {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.35;
  color: var(--violet-900);
}

body[data-jd-applybar="off"] .apply-bar { display: none; }
body[data-jd-callout="off"] .jd-callout { display: none; }
body[data-jd-meta="off"] .jd-meta-grid { display: none; }

body[data-jd-prose-size="compact"] .jd-prose { font-size: 14px; }
body[data-jd-prose-size="default"] .jd-prose { font-size: 16px; }
body[data-jd-prose-size="comfortable"] .jd-prose { font-size: 17.5px; }
.jd-prose { font-size: 16px; }


/* ============================================================
   STICKY APPLY BAR
   ============================================================ */
.apply-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bois);
  color: var(--blanc);
  padding: 14px 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.apply-bar.visible { transform: translateY(0); }
.apply-bar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.apply-bar .info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.apply-bar .lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.apply-bar .lbl .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.apply-bar .ttl {
  font-size: 15px;
  font-weight: 500;
  color: var(--blanc);
}

/* ============================================================
   REVEALS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--violet-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE polish
   ============================================================ */
@media (max-width: 720px) {
  .nav-meta .ext { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stat .n { font-size: 28px; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .jd-meta-grid { gap: 16px; padding: 18px 0; }
  .jd-meta-grid .item .val { font-size: 14px; }
}
