/* /academy/causal-inference/ — the causal inference course page.
   Editorial palette (Brand Pack v1.0); the film player follows the Field
   Report's: our own tile until play, then the privacy-enhanced player. */

.cx-intro { max-width: 760px; margin: 0 auto; text-align: left; }
.cx-intro p { color: var(--text-mid, #4a5246); line-height: 1.7; margin: 0 0 14px; }
.cx-facts {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ochre-tx, #8F5A1F) !important;
}
.cx-notice {
  padding: 14px 18px; background: #fff; border-left: 4px solid var(--ochre, #B8762A);
  color: var(--charcoal, #2A3020) !important;
}
.cx-account { font-weight: 700; color: var(--forest-ink, #1F3A2B) !important; }
.cx-account:empty { display: none; }
.cx-account a, .cx-more a, .cx-transcript a { color: var(--forest-ink, #1F3A2B); font-weight: 700; text-underline-offset: 3px; }

.cx-toc { max-width: 760px; margin: 28px auto 0; text-align: left; }
.cx-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(31,58,43,0.14); }
.cx-toc li { border-bottom: 1px solid rgba(31,58,43,0.14); }
.cx-toc a { display: block; padding: 12px 0; color: var(--forest-ink, #1F3A2B); font-weight: 700; text-decoration: none; }
.cx-toc a:hover { color: var(--ochre-tx, #8F5A1F); }
.cx-toc span {
  display: inline-block; min-width: 7.5em; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre-tx, #8F5A1F);
}

.cx-module__summary { max-width: 760px; margin: 0 0 8px; text-align: left; color: var(--text-mid, #4a5246); line-height: 1.7; }
.cx-lessons { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; text-align: left; }
.cx-lesson {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  background: var(--cream-paper, #F6F2E9); border: 1px solid rgba(31,58,43,0.16); padding: 18px;
}
.section--cream .cx-lesson { background: #fff; }
@media (min-width: 860px) { .cx-lesson { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; padding: 22px; } }
.cx-lesson:target { outline: 3px solid var(--ochre, #B8762A); outline-offset: 2px; }
.cx-lesson__title { font-family: var(--font-serif, 'Fraunces', Georgia, serif); font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 500; color: var(--forest-ink, #1F3A2B); line-height: 1.25; margin: 0 0 6px; }
.cx-lesson__num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ochre-tx, #8F5A1F); margin-right: 6px; }
.cx-lesson__meta { font-size: 0.85rem; color: var(--muted-ink, #7A8A70); margin: 0 0 10px; }
.cx-lesson__summary { color: var(--text-mid, #4a5246); line-height: 1.65; margin: 0 0 12px; }

.cx-video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--forest-ink, #1F3A2B), var(--soil, #1C1510));
  border-radius: 2px; border: 0; padding: 0; cursor: pointer;
}
.cx-video--soon { cursor: default; }
.cx-video picture, .cx-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-video--soon picture { opacity: 0.45; }
.cx-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; background: var(--ochre-tx, #8F5A1F);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform 0.2s, background 0.2s;
}
.cx-video:hover .cx-video__play, .cx-video:focus-visible .cx-video__play { transform: translate(-50%, -50%) scale(1.06); background: var(--ochre, #B8762A); }
.cx-video:focus-visible { outline: 3px solid var(--ochre, #B8762A); outline-offset: 3px; }
.cx-video__soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 8px 14px; border: 1px solid rgba(246,242,233,0.5); color: #F6F2E9;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.cx-video__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; text-align: left;
  background: linear-gradient(0deg, rgba(15,10,8,0.85), rgba(15,10,8,0));
  color: #fff; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.cx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The site's own player: the film fills the 16:9 box; captions on */
.cx-video--player { cursor: default; background: #0F0A08; }
.cx-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0F0A08; }
.cx-video video::cue { font-family: var(--font-sans, 'Lato', sans-serif); background: rgba(15,10,8,0.82); }
/* Over a thumbnail (which carries its own number and the Vitagri mark,
   bottom left) the label is a small badge, bottom right */
.cx-video picture ~ .cx-video__label { left: auto; right: 10px; bottom: 10px; padding: 5px 9px; background: rgba(15,10,8,0.78); }
.cx-video picture ~ .cx-video__soon { left: auto; top: 10px; right: 10px; transform: none; padding: 5px 9px; background: rgba(15,10,8,0.78); border-color: rgba(246,242,233,0.35); }

.cx-watched { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-weight: 700; color: var(--forest-ink, #1F3A2B); cursor: pointer; }
.cx-watched input { width: 18px; height: 18px; }
.cx-transcript { border-top: 1px solid rgba(31,58,43,0.14); padding-top: 10px; }
.cx-transcript summary { cursor: pointer; font-weight: 700; color: var(--forest-ink, #1F3A2B); }
.cx-transcript p { color: var(--text-mid, #4a5246); line-height: 1.7; margin: 10px 0 0; }

.cx-more, .cx-consent { max-width: 760px; margin: 18px auto 0; color: var(--text-mid, #4a5246); line-height: 1.7; }
.cx-consent { font-size: 0.85rem; color: var(--muted-ink, #7A8A70); }

.cx-open { color: var(--charcoal, #2A3020) !important; }
.cx-open a { color: var(--forest-ink, #1F3A2B); font-weight: 700; text-underline-offset: 3px; }

/* Keep in touch (the same open, consent-only sign-up as the Academy hub) */
.cx-panel {
  max-width: 760px; margin: 32px auto 0; text-align: left; background: var(--cream-paper, #F6F2E9);
  border: 1px solid rgba(31,58,43,0.18); border-top: 4px solid var(--forest-ink, #1F3A2B); padding: 28px;
}
.section--cream .cx-panel { background: #fff; }
.cx-panel > p { color: var(--text-mid, #4a5246); line-height: 1.65; margin: 0 0 18px; }
.cx-form__field { margin-bottom: 16px; }
.cx-form__field label { display: block; font-weight: 700; color: var(--forest-ink, #1F3A2B); margin-bottom: 6px; }
.cx-form__field label span { font-weight: 400; color: var(--text-mid, #4a5246); }
.cx-form input[type="email"], .cx-form input[type="text"] {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--charcoal, #2A3020);
  background: #fff; border: 1px solid rgba(31,58,43,0.35); border-radius: 2px;
}
.cx-form input:focus { outline: 2px solid var(--ochre-tx, #8F5A1F); outline-offset: 1px; }
.cx-form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; color: var(--charcoal, #2A3020); line-height: 1.5; cursor: pointer; }
.cx-form__consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.cx-form__msg { min-height: 1.5em; margin: 12px 0 0 !important; color: var(--forest-ink, #1F3A2B) !important; font-weight: 700; }
.cx-form__msg:empty { display: none; }
.cx-form__alt { margin: 18px 0 0 !important; font-size: 0.95rem; }
.cx-form__alt a { color: var(--forest-ink, #1F3A2B); font-weight: 700; text-underline-offset: 3px; }

.cx-lesson__more { margin: 0; }
.cx-lesson__more a, .cx-lesson__title a { color: var(--forest-ink, #1F3A2B); text-underline-offset: 3px; }
.cx-lesson__more a { font-weight: 700; }
.cx-lesson__title a { text-decoration: none; }
.cx-lesson__title a:hover { text-decoration: underline; }

/* A film's own page, and the glossary */
.cx-film { max-width: 820px; margin: 0 auto; text-align: left; }
.cx-film__player { margin: 0 0 14px; }
.cx-answer { font-size: 1.12rem; line-height: 1.7; color: var(--charcoal, #2A3020); margin: 6px 0 16px; }
.cx-block { margin: 0 0 40px; }
.cx-block h2 { font-family: var(--font-serif, 'Fraunces', Georgia, serif); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 500; color: var(--forest-ink, #1F3A2B); margin: 0 0 14px; }
.cx-block h3 { font-size: 1.08rem; color: var(--forest-ink, #1F3A2B); margin: 22px 0 6px; }
.cx-block p, .cx-points li { color: var(--text-mid, #4a5246); line-height: 1.75; }
.cx-points { margin: 0; padding-left: 1.2em; list-style: disc; }
.cx-points li::marker { color: var(--ochre, #B8762A); }
.cx-points li { margin: 0 0 8px; }
.cx-chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(31,58,43,0.14); }
.cx-chapters li { padding: 10px 0; border-bottom: 1px solid rgba(31,58,43,0.14); color: var(--charcoal, #2A3020); }
.cx-chapters a { color: var(--forest-ink, #1F3A2B); font-weight: 700; text-decoration: none; }
.cx-chapters a:hover { text-decoration: underline; }
.cx-chapters span { display: inline-block; min-width: 4em; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ochre-tx, #8F5A1F); }
.cx-terms dt { font-weight: 700; margin: 14px 0 4px; }
.cx-terms dt a { color: var(--forest-ink, #1F3A2B); text-underline-offset: 3px; }
.cx-terms dd { margin: 0; color: var(--text-mid, #4a5246); line-height: 1.7; }
.cx-transcript-text p { margin: 0 0 14px; }
.cx-pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0 18px; }
@media (min-width: 720px) { .cx-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cx-pager a {
  display: block; padding: 14px 16px; border: 1px solid rgba(31,58,43,0.18); background: var(--cream-paper, #F6F2E9);
  color: var(--forest-ink, #1F3A2B); font-weight: 700; text-decoration: none; line-height: 1.4;
}
.cx-pager a:hover { border-color: var(--ochre, #B8762A); }
.cx-pager__next { text-align: right; }
@media (min-width: 720px) { .cx-pager__next:only-child { grid-column: 2; } }
.cx-pager span {
  display: block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ochre-tx, #8F5A1F); margin-bottom: 4px;
}
.cx-letters { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 24px; }
.cx-letters a { font-family: var(--font-mono); font-weight: 500; color: var(--forest-ink, #1F3A2B); text-decoration: none; padding: 2px 6px; border: 1px solid rgba(31,58,43,0.2); }
.cx-letters a:hover { border-color: var(--ochre, #B8762A); }
.cx-glossary { margin: 0; }
.cx-glossary__entry { padding: 16px 0; border-bottom: 1px solid rgba(31,58,43,0.14); scroll-margin-top: 90px; }
.cx-glossary__entry:target { background: rgba(184,118,42,0.08); }
.cx-glossary__letter { display: block; font-family: var(--font-serif, 'Fraunces', Georgia, serif); font-size: 1.6rem; color: var(--ochre-tx, #8F5A1F); margin: 8px 0 6px; scroll-margin-top: 90px; }
.cx-glossary dt { font-weight: 700; font-size: 1.08rem; color: var(--forest-ink, #1F3A2B); margin: 0 0 4px; }
.cx-glossary dd { margin: 0; }
.cx-glossary dd p { color: var(--text-mid, #4a5246); line-height: 1.7; margin: 0 0 6px; }
.cx-glossary__also, .cx-glossary__films { font-size: 0.92rem; }
.cx-glossary__films a { color: var(--forest-ink, #1F3A2B); font-weight: 700; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .cx-video__play { transition: none; } }

/* Author and sources (Rob, 25 Oct 2026) */
.cx-byline { margin: 0 0 14px; font-size: 0.92rem; color: var(--muted-ink, #7A8A70); }
.cx-byline a { color: var(--forest-ink, #1F3A2B); font-weight: 700; text-underline-offset: 3px; }
.cx-sources { margin: 0; padding-left: 1.4em; color: var(--text-mid, #4a5246); line-height: 1.65; font-size: 0.95rem; }
.cx-sources li { margin: 0 0 8px; overflow-wrap: anywhere; }
.cx-sources a { color: var(--forest-ink, #1F3A2B); text-underline-offset: 3px; }

/* ══════════════════════════════════════════════════════════════════
   The course page (redesigned 26 Oct 2026). Brand Pack v1.0 tokens only;
   the module colours are aliases of campaign tokens, and small text on
   light grounds uses the -tx inks. On forest and soil grounds small ochre
   text uses the page-hero label value (6.25:1). Every section reads with
   JavaScript off: field.js and course.js add motion and interaction.
   ══════════════════════════════════════════════════════════════════ */
.cx-page {
  --m-pro: var(--ochre);       --m-pro-tx: var(--ochre-tx, #8F5A1F);
  --m-1:   var(--amber);       --m-1-tx:   var(--amber-tx);
  --m-2:   var(--teal);        --m-2-tx:   var(--teal-tx);
  --m-3:   var(--lime);        --m-3-tx:   var(--lime-tx);
  --m-4:   var(--berry);       --m-4-tx:   var(--berry);
  --m-5:   var(--forest-mid);  --m-5-tx:   var(--forest-mid);
  --cx-on-dark-ochre: #E3AF6C; /* = .page-hero__label in styles.css */
  --cx-on-dark: rgba(246,242,233,0.92);
  --cx-on-dark-mid: rgba(246,242,233,0.72);
  --cx-on-dark-line: rgba(246,242,233,0.16);
  --cx-line: rgba(31,58,43,0.16);
  --cx-teal-light: color-mix(in srgb, var(--teal) 55%, var(--cream-paper));
  --cx-nav-h: 68px;
  background: var(--cream-paper);
}
.cx-page :focus-visible { outline: 3px solid var(--ochre-tx, #8F5A1F); outline-offset: 3px; }
.cx-page .cxh :focus-visible, .cx-page .cx-tl :focus-visible, .cx-page .cx-lab :focus-visible,
.cx-page .cx-outcomes :focus-visible, .cx-page .cx-next :focus-visible { outline-color: var(--ochre-light); }
.cx-wrap { max-width: var(--max-w); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cx-eyebrow { display: block; margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.cx-eyebrow--tx { color: var(--ochre-tx, #8F5A1F); }
.cx-eyebrow--muted { color: var(--muted-tx); }
.cx-eyebrow--on-dark { color: var(--cx-on-dark-ochre); }
.cx-eyebrow--lime { color: var(--lime); }
.cx-sec { padding: 88px 0; }
.cx-sec--cream2 { background: var(--cream-2); }
.cx-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--forest-ink); margin: 0; text-wrap: balance; }
.cx-title em { color: var(--ochre-tx, #8F5A1F); font-style: italic; }
.cx-lede { font-size: 1.12rem; color: var(--text-mid); max-width: 62ch; margin: 16px 0 0; line-height: 1.7; }

/* Hero: a living farm */
.cxh {
  position: relative; overflow: hidden; color: var(--cx-on-dark); min-height: 700px; display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(208,140,58,0.20), transparent 70%),
    radial-gradient(80% 80% at 70% 60%, rgba(45,87,67,0.45), transparent 75%),
    linear-gradient(180deg, var(--soil-deep) 0%, var(--soil) 60%, var(--soil-deep) 100%);
}
.cxh__field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cxh__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15,10,8,0.96) 0%, rgba(15,10,8,0.82) 30%, rgba(15,10,8,0.25) 52%, rgba(15,10,8,0) 64%); }
.cxh__in { position: relative; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: calc(var(--cx-nav-h) + 56px) 24px 96px; pointer-events: none; }
.cxh__copy { max-width: 600px; pointer-events: auto; }
.cxh__crumb { font-size: 0.82rem; color: var(--cx-on-dark-mid); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.cxh__crumb a { color: var(--cx-on-dark-mid); text-decoration: none; }
.cxh__crumb a:hover { color: var(--cx-on-dark-ochre); }
.cxh__eyebrow { display: block; margin-bottom: 18px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cx-on-dark-ochre); }
.cxh__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; color: var(--cream-paper); font-variation-settings: "opsz" 144; margin: 0; text-wrap: balance; }
.cxh__title strong { font-weight: 800; color: inherit; }
.cxh__title em { font-style: italic; font-weight: 400; color: var(--cx-on-dark-ochre); background: linear-gradient(100deg, var(--cx-on-dark-ochre) 0%, var(--ochre-light) 45%, var(--amber-bright) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cxh__sub { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--cx-on-dark); max-width: 44ch; margin: 24px 0 0; line-height: 1.6; }
.cxh__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cxh__note { margin: 18px 0 0; font-size: 0.86rem; color: var(--cx-on-dark-mid); }
.cxh__status { position: absolute; z-index: 2; left: max(24px, 47%); bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(15,10,8,0.7); border: 1px solid var(--cx-on-dark-line); font: 500 0.7rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-on-dark); max-width: calc(100% - 48px); }
.cxh__status[hidden] { display: none; }
.cxh__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--cx-teal-light); flex: none; transition: background .4s, box-shadow .4s; }
.cxh__status.is-found i { background: var(--amber-bright); box-shadow: 0 0 10px var(--amber-bright); }
.cxh__key { display: flex; gap: 14px; flex-wrap: wrap; }
.cxh__key span { display: inline-flex; align-items: center; gap: 6px; color: var(--cx-on-dark-mid); }
.cxh__key b { display: inline-block; width: 18px; height: 0; border-top: 1.5px dashed var(--cx-teal-light); }
.cxh__key b.cxh__gold { border-top: 2px solid var(--amber-bright); }
/* The key needs room: below 1400px it would push the pill under the site's
   floating Page help button */
@media (max-width: 1399px) { .cxh__key { display: none; } }
@media (min-width: 901px) { .cxh__status { max-width: calc(53% - 130px); } }
@media (max-width: 900px) {
  .cxh { min-height: 0; align-items: flex-start; }
  .cxh__in { padding: calc(var(--cx-nav-h) + 28px) 24px 360px; }
  .cxh__status { bottom: 12px; left: 24px; }
  .cxh__scrim { background: linear-gradient(180deg, rgba(15,10,8,0.95) 0%, rgba(15,10,8,0.88) 52%, rgba(15,10,8,0.1) 74%, rgba(15,10,8,0) 100%); }
  .cxh__key { display: none; }
}

/* What you'll be able to see */
.cx-outcomes { background: var(--forest-ink); color: var(--cream-paper); border-top: 3px solid var(--ochre); }
.cx-outcomes .cx-wrap { padding-top: 44px; padding-bottom: 48px; }
.cx-outcomes .cx-eyebrow { color: var(--cx-on-dark-ochre); margin-bottom: 22px; }
.cx-outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cx-outcomes li { border-top: 1px solid rgba(246,242,233,0.2); padding-top: 18px; min-width: 0; }
.cx-outcomes h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.2; color: var(--cream-paper); margin: 0; }
.cx-outcomes h3 em { color: var(--cx-on-dark-ochre); }
.cx-outcomes p { margin: 10px 0 0; color: var(--cx-on-dark-mid); line-height: 1.6; font-size: 0.95rem; }
@media (max-width: 820px) { .cx-outcomes ul { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* The breakthrough */
.cx-shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; margin-top: 44px; align-items: stretch; }
.cx-shift__col { padding: 28px; border-radius: 2px; min-width: 0; }
.cx-shift__col--pred { background: #fff; border: 1px solid var(--cx-line); }
.cx-shift__col--cause { background: var(--forest-ink); color: var(--cream-paper); }
.cx-shift__col h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin: 8px 0 14px; }
.cx-shift__col--pred h3 { color: var(--forest-ink); }
.cx-shift__col--cause h3 { color: var(--cream-paper); }
.cx-shift__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cx-shift__col li { padding-left: 22px; position: relative; line-height: 1.55; }
.cx-shift__col--pred li { color: var(--text-mid); }
.cx-shift__col--pred li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; border-top: 2px dashed var(--teal); }
.cx-shift__col--cause li::before { content: ""; position: absolute; left: 0; top: .4em; border: 6px solid transparent; border-left: 9px solid var(--ochre-light); }
.cx-shift__arrow { display: grid; place-items: center; color: var(--ochre); }
.cx-shift__arrow svg { width: 56px; }
.cx-quote { margin: 44px 0 0; border-left: 4px solid var(--ochre); padding: 6px 0 6px 24px; max-width: 760px; }
.cx-quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; color: var(--forest-ink); margin: 0; }
.cx-quote cite { display: block; margin-top: 10px; font: 500 0.74rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--ochre-tx, #8F5A1F); }
.cx-quote cite a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 820px) { .cx-shift { grid-template-columns: minmax(0, 1fr); } .cx-shift__arrow svg { transform: rotate(90deg); width: 44px; } }

/* Timeline */
.cx-tl { background: var(--soil); color: var(--cx-on-dark); }
.cx-tl .cx-title { color: var(--cream-paper); }
.cx-tl .cx-title em { color: var(--cx-on-dark-ochre); }
.cx-tl .cx-lede { color: var(--cx-on-dark-mid); }
.cx-tl__legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0 0; font-size: 0.82rem; color: var(--cx-on-dark-mid); }
.cx-tl__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ochre); margin-right: 6px; vertical-align: -1px; }
.cx-tl__legend i.cx-tl__farm { border-color: var(--lime); }
.cx-tl__track { margin-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-color: var(--ochre) transparent; }
.cx-tl__track ol { list-style: none; margin: 0; padding: 0 0 0 2px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); position: relative; }
.cx-tl__track ol::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; border-top: 1px solid rgba(246,242,233,0.25); }
.cx-tl__item { scroll-snap-align: start; padding-right: 26px; position: relative; }
.cx-tl__year { display: block; font-family: var(--font-serif); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--cream-paper); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; height: 52px; }
.cx-tl__dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--soil); border: 3px solid var(--ochre); margin: 5px 0 18px; position: relative; z-index: 1; }
.cx-tl__item--farm .cx-tl__dot { border-color: var(--lime); }
.cx-tl__item--now .cx-tl__dot { background: var(--ochre); box-shadow: 0 0 0 6px rgba(184,118,42,0.25); animation: cx-pulse 2.4s ease-out infinite; }
.cx-tl__item h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--cream-paper); margin: 0 0 6px; }
.cx-tl__item p { font-size: 0.9rem; color: var(--cx-on-dark-mid); line-height: 1.5; margin: 0; }
.cx-tl__film { display: inline-block; margin-top: 10px; font: 500 0.7rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-on-dark-ochre); text-decoration: none; border: 1px solid rgba(227,175,108,0.45); padding: 3px 8px; border-radius: 99px; }
.cx-tl__film:hover { background: rgba(227,175,108,0.15); }
@keyframes cx-pulse { 0% { box-shadow: 0 0 0 0 rgba(184,118,42,0.55); } 100% { box-shadow: 0 0 0 14px rgba(184,118,42,0); } }

/* The course: header, progress, module rail */
.cx-course__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cx-course__head > div:first-child { flex: 1 1 520px; max-width: 720px; min-width: 0; }
.cx-course__head .cx-byline { margin-top: 14px; }
.cx-progress { min-width: 0; display: grid; gap: 8px; width: min(100%, 320px); }
.cx-progress[hidden] { display: none; }
.cx-progress__top { display: flex; justify-content: space-between; font: 500 0.78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-tx); }
.cx-progress__top b { color: var(--forest-ink); font-variant-numeric: tabular-nums; }
.cx-progress__bar { height: 8px; border-radius: 99px; background: var(--cream-2); overflow: hidden; display: flex; }
.cx-progress__bar i { display: block; height: 100%; width: 0; transition: width .5s; }
.cx-progress .cx-account { font-size: 0.85rem; color: var(--text-mid); margin: 2px 0 0; }
.cx-rail { position: sticky; top: var(--cx-nav-h); z-index: 50; background: rgba(246,242,233,0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cx-line); margin-top: 36px; }
.cx-rail ol { list-style: none; margin: 0; padding: 10px 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.cx-rail li { display: flex; align-items: center; flex: none; }
.cx-rail li + li::before { content: ""; width: 22px; height: 2px; background: var(--cx-line); margin: 0 4px; }
.cx-rail a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--forest-ink); font-weight: 700; font-size: 0.88rem; white-space: nowrap; border: 1.5px solid transparent; transition: background .2s, border-color .2s; }
.cx-rail a i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.cx-rail a small { font: 500 0.68rem var(--font-mono); letter-spacing: .12em; color: var(--muted-tx); text-transform: uppercase; }
.cx-rail a:hover { border-color: var(--c, var(--forest-ink)); }
.cx-rail a.is-on { background: var(--forest-ink); color: var(--cream-paper); }
.cx-rail a.is-on small { color: var(--cx-on-dark-ochre); }

/* Modules */
.cx-mod { padding-top: 64px; scroll-margin-top: calc(var(--cx-nav-h) + 70px); }
.cx-mod__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: start; padding-bottom: 26px; border-bottom: 2px solid var(--c); }
.cx-mod__badge { width: 76px; height: 76px; border-radius: 2px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.cx-mod__badge--word { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; letter-spacing: .06em; }
.cx-mod[data-module="m1"] .cx-mod__badge, .cx-mod[data-module="m3"] .cx-mod__badge { color: var(--soil); }
.cx-mod__label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ctx); }
.cx-mod__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; color: var(--forest-ink); margin: 6px 0 8px; }
.cx-mod__sum { color: var(--text-mid); max-width: 64ch; line-height: 1.65; margin: 0; }
.cx-mod__meta { margin: 0; text-align: right; font: 500 0.78rem/1.7 var(--font-mono); letter-spacing: .08em; color: var(--muted-tx); white-space: nowrap; }
.cx-mod__meta b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--forest-ink); letter-spacing: 0; }
.cx-mod__watched[hidden] { display: none; }
@media (max-width: 720px) {
  .cx-mod__head { grid-template-columns: auto minmax(0, 1fr); }
  .cx-mod__meta { grid-column: 1 / -1; text-align: left; display: flex; gap: 16px; align-items: baseline; }
  .cx-mod__meta b { display: inline; }
  .cx-mod__badge { width: 56px; height: 56px; font-size: 1.4rem; }
}
.cx-chain { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--cx-line); border-radius: 2px; overflow: hidden; }
.cx-chain li { padding: 16px 18px; position: relative; min-width: 0; }
.cx-chain li + li { border-left: 1px dashed var(--cx-line); }
.cx-chain li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; translate: 0 -50%; border: 7px solid transparent; border-left: 9px solid var(--forest-mid); z-index: 1; }
.cx-chain b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--forest-ink); }
.cx-chain span { font-size: 0.85rem; color: var(--text-mid); }
@media (max-width: 640px) {
  .cx-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-chain li:nth-child(2)::after { display: none; }
  .cx-chain li:nth-child(3) { border-left: 0; border-top: 1px dashed var(--cx-line); }
  .cx-chain li:nth-child(4) { border-top: 1px dashed var(--cx-line); }
}

/* Film cards */
.cx-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.cx-card { background: #fff; border: 1px solid var(--cx-line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .25s, box-shadow .25s, border-color .25s; scroll-margin-top: calc(var(--cx-nav-h) + 80px); }
.cx-card:hover, .cx-card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,58,43,0.14); border-color: var(--c); }
.cx-card:target { border-color: var(--c); box-shadow: 0 0 0 3px var(--c); }
.cx-card__media { position: relative; }
.cx-card .cx-video { border-radius: 0; }
.cx-card .cx-video img { transition: transform .6s; }
.cx-card:hover .cx-video img { transform: scale(1.04); }
.cx-card .cx-video__play { width: 56px; height: 56px; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .3s; }
.cx-card:hover .cx-video__play, .cx-card .cx-video:focus-visible .cx-video__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cx-card .cx-video__play { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.cx-card .cx-video__label { left: auto; right: 10px; bottom: 10px; padding: 4px 8px; background: rgba(15,10,8,0.8); border-radius: 2px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cx-video--still { cursor: default; }
.cx-card__stripe { height: 4px; background: var(--c); }
.cx-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cx-card__code { font: 600 0.74rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ctx); }
.cx-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.24rem; line-height: 1.25; color: var(--forest-ink); margin: 0; }
.cx-card__title a { color: inherit; text-decoration: none; }
.cx-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx-card__sum { font-size: 0.93rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.cx-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cx-line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-card__more { font-weight: 700; font-size: 0.88rem; color: var(--forest-ink); text-underline-offset: 3px; }
.cx-card .cx-watched { margin: 0; font-size: 0.86rem; }
.cx-card.is-done { border-color: var(--c); }
.cx-card.is-done .cx-card__media::after { content: "Watched"; position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 9px; background: var(--forest-ink); color: var(--cream-paper); font: 500 0.66rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; pointer-events: none; }

/* Glossary lab */
.cx-lab { background: var(--forest-ink); color: var(--cx-on-dark); position: relative; }
.cx-lab .cx-title { color: var(--cream-paper); }
.cx-lab .cx-title em { color: var(--cx-on-dark-ochre); }
.cx-lab .cx-lede { color: var(--cx-on-dark-mid); }
.cx-lab__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cx-lab__terms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cx-lab__terms[hidden] { display: none; }
.cx-lab__terms button { font: 700 0.95rem var(--font-sans); min-height: 44px; padding: 10px 18px; border-radius: 99px; background: transparent; color: var(--cx-on-dark); border: 1.5px solid rgba(246,242,233,0.3); cursor: pointer; transition: background .2s, border-color .2s; }
.cx-lab__terms button:hover { border-color: var(--cx-on-dark-ochre); }
.cx-lab__terms button[aria-pressed="true"] { background: var(--ochre-tx, #8F5A1F); border-color: var(--ochre-tx, #8F5A1F); color: var(--cream-paper); }
.cx-lab__panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; margin-top: 32px; align-items: start; }
.cx-lab__panel[hidden] { display: none; }
.cx-lab__def h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.7rem; line-height: 1.2; color: var(--cream-paper); margin: 0; }
.cx-lab__def p { margin: 10px 0 0; color: var(--cx-on-dark); line-height: 1.65; max-width: 52ch; }
.cx-lab__def a { display: inline-block; margin-top: 14px; color: var(--cx-on-dark-ochre); font-weight: 700; text-underline-offset: 3px; }
.cx-lab__fig { margin: 0; background: rgba(15,10,8,0.35); border: 1px solid var(--cx-on-dark-line); border-radius: 12px; padding: 18px; min-width: 0; }
.cx-lab__fig svg { display: block; width: 100%; height: auto; }
.cx-lab__fig figcaption { margin-top: 8px; font: 500 0.72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-on-dark-mid); }
.cx-lab__n rect { fill: var(--forest-mid); stroke: rgba(246,242,233,0.28); stroke-width: 1.2; }
.cx-lab__n--ghost rect { fill: transparent; stroke-dasharray: 4 4; }
.cx-lab__n text { fill: var(--cream-paper); font: 700 13px var(--font-sans); text-anchor: middle; }
.cx-lab__n text.cx-lab__sub { font: 500 9.5px var(--font-mono); fill: rgba(246,242,233,0.7); letter-spacing: .08em; }
.cx-lab__e { fill: none; stroke-width: 2; }
.cx-lab__e--hi { stroke: var(--ochre-light); stroke-width: 3; }
.cx-lab__e--q { stroke: var(--cx-teal-light); stroke-dasharray: 4 6; }
.cx-lab__e--dim { stroke: rgba(246,242,233,0.4); }
.cx-lab__e--ghost { stroke: rgba(246,242,233,0.4); stroke-dasharray: 4 6; }
.cx-lab__m--hi { fill: var(--ochre-light); }
.cx-lab__m--dim { fill: rgba(246,242,233,0.4); }
.cx-lab__all { margin-top: 34px; }
@media (max-width: 860px) { .cx-lab__panel { grid-template-columns: minmax(0, 1fr); } }

/* Keep in touch and the next course */
.cx-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.cx-join__panel { border-top: 4px solid var(--forest-ink); margin: 0; max-width: none; background: #fff; padding: 32px; }
.cx-join__panel h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.9rem; line-height: 1.15; color: var(--forest-ink); margin: 6px 0 10px; }
.cx-next { position: relative; overflow: hidden; background: var(--soil); color: var(--cx-on-dark); padding: 32px; border-radius: 2px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cx-next::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(159,176,79,0.18); pointer-events: none; }
.cx-next h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.9rem; line-height: 1.15; color: var(--cream-paper); margin: 0; }
.cx-next p { color: var(--cx-on-dark-mid); line-height: 1.65; max-width: 44ch; margin: 0; }
.cx-next .btn { align-self: flex-start; margin-top: auto; position: relative; z-index: 1; }
.cx-page #keep-in-touch .cx-consent { max-width: none; margin-top: 28px; }
@media (max-width: 860px) { .cx-join { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .cx-tl__item--now .cx-tl__dot { animation: none; }
  .cx-card, .cx-card .cx-video img, .cx-card .cx-video__play, .cx-progress__bar i { transition: none; }
  .cx-card:hover, .cx-card:focus-within { transform: none; }
}
