/* =========================================================================
   v1.44 → v1.45.1 · CHAPTER 06 · HOW A GROWING TREE HOLDS CARBON
   The facing page of chapter 05: same paper, inks and typographic system.
   The plate (the trunk of the same cacao tree, down to its roots in the soil)
   on the left; the heading, the numbered sequence (air → wood → landscape) and
   the footnote on the right.
   v1.45.1 · the spread is exactly one screen and nothing in it moves while the
   page passes: the tree stands whole below the header bar with air at its
   foot, and the text is fitted to the screen's height (cx.js scales the type
   by --ts, never below 0.72) so heading, list and footnote always fit.
   ========================================================================= */
.cx { background: var(--ivory); color: var(--forest); padding: 0; }
.cx__grid { display: grid; grid-template-columns: 46vw minmax(0, 1fr); height: 100svh; min-height: 34rem; }

/* the plate: two registered layers — the engraving (multiplied onto the ivory) and the living plate above it, revealed
   from the leaves down to the roots (cx.js). Never taller than the screen below the header, never wider than its column. */
.cx__plate { grid-column: 1; position: relative; margin: 0; min-height: 0; }
.cx__pl { position: absolute; left: 50%; bottom: clamp(0.75rem, 3svh, 2rem); display: block; overflow: hidden; background: var(--ivory);
  height: min(calc(100svh - var(--bar-h, 5rem) - clamp(0.75rem, 3svh, 2rem) - 0.5rem), (46vw - 2.5rem) * 1.25);
  aspect-ratio: 1122 / 1402; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%); mask-image: linear-gradient(180deg, transparent 0, #000 9%); }
.cx__l { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.cx__eng { mix-blend-mode: multiply; }
.cx__live { -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--rv, 130%) - 28%), transparent var(--rv, 130%));
            mask-image: linear-gradient(180deg, #000 calc(var(--rv, 130%) - 28%), transparent var(--rv, 130%)); }

/* the text: kicker, a two-line heading, the numbered list, the footnote on the foot line */
.cx__text { --ts: 1; grid-column: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: calc(var(--bar-h, 5rem) + clamp(0.5rem, 3.5svh, 2.5rem)) max(var(--gutter), (100vw - 1600px) / 2) clamp(1.25rem, 4svh, 3rem) clamp(2rem, 4.2vw, 5.5rem); }
.cx .cx__kicker { margin: 0 0 calc(clamp(0.9rem, 2.2svh, 1.5rem) * var(--ts)); color: #985434; }
.cx .cx__title { margin: 0; max-width: none; font-family: var(--font-display); font-weight: 340; font-optical-sizing: auto;
  font-size: calc(min(clamp(2.6rem, 5.2vw, 5.9rem), 10.5svh, var(--cfit, 99rem)) * var(--ts));
  line-height: 1; letter-spacing: -0.014em; color: var(--forest); white-space: nowrap; text-wrap: nowrap; }
.cx .cx__title em { font-style: italic; font-weight: 320; }

.cx__list { list-style: none; margin: calc(clamp(1.4rem, 4.4svh, 3rem) * var(--ts)) 0 0; padding: 0; max-width: 35rem; display: grid; row-gap: calc(clamp(0.9rem, 2.6svh, 1.7rem) * var(--ts)); }
.cx__item { display: grid; grid-template-columns: calc(clamp(2.7rem, 3.8vw, 4.1rem) * var(--ts)) minmax(0, 1fr); align-items: baseline; }
.cx__n { grid-row: 1 / span 2; font-family: var(--font-display); font-style: italic; font-weight: 320; font-size: calc(clamp(1.3rem, 1.8vw, 1.95rem) * var(--ts)); line-height: 1; color: var(--terra); }
.cx__item h3 { margin: 0; font-family: var(--font-display); font-weight: 360; font-size: calc(clamp(1.35rem, 1.95vw, 2.15rem) * var(--ts)); line-height: 1.12; letter-spacing: -0.015em; color: var(--forest); }
.cx__item p { margin: 0; padding-top: calc(0.55rem * var(--ts)); max-width: 30em; color: var(--muted); font-size: calc(clamp(0.98rem, 1.1vw, 1.14rem) * var(--ts)); line-height: 1.6; }
.cx__mark { color: #985434; font-size: 0.7em; margin-left: 0.15em; }

.cx__text > .cx__list { margin-bottom: calc(clamp(1rem, 3svh, 2rem) * var(--ts)); }
.cx__note { margin-top: auto; padding-top: calc(0.85rem * var(--ts)); border-top: 1px solid rgba(21, 55, 45, 0.16); max-width: 35rem; }
.cx__note .label { margin: 0 0 calc(0.45rem * var(--ts)); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted); }
.cx__note .label span { color: #985434; }
.cx__note p:last-child { margin: 0; font-size: calc(0.8rem * var(--ts)); line-height: 1.58; color: var(--muted); }

/* ---------- phones and narrow screens: the plate first, then the page (normal flow) ---------- */
@media (max-width: 860px) {
  .cx__grid { display: block; height: auto; min-height: 0; }
  .cx__plate { aspect-ratio: 1122 / 1402; width: min(100%, 32rem); margin: 0 auto; }
  .cx__pl { inset: 0; height: auto; transform: none; left: 0; bottom: 0; }
  .cx__text { --ts: 1 !important; padding: 2.5rem var(--gutter) 4.5rem; }
  .cx .cx__title { font-size: min(clamp(2.3rem, 10.5vw, 3.4rem), var(--cfit, 99rem)); }
  .cx__list { margin-top: 2rem; }
  .cx__item h3 { font-size: 1.55rem; }
  .cx__item p { font-size: 1.02rem; }
  .cx__note { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html:not(.motion-ok) .cx__live { -webkit-mask-image: none; mask-image: none; } }
html.rm .cx__live { -webkit-mask-image: none; mask-image: none; }
