/* Homepage concepts (A · Statement, B · Journal, C · Plate). Loaded only by /mockups/home-* pages.
   Rules: one idea per screen, no hero buttons, no all-caps labels, no numbering, no shadows,
   serif statements (EB Garamond), Inter for running text. */


:root { --serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif; }

.cx main { background: var(--bg); }
.cx-serif { font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.cx-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 0.3em; font-size: 15.5px; transition: text-decoration-color .2s var(--ease); }
.cx-link:hover { text-decoration-color: var(--ink); }
.cx-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.cx-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- A / C: statement hero ---------- */
.cx-hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 6vw, 72px); }
.cx-hero__title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 300;
  font-size: clamp(52px, 8.4vw, 132px); line-height: 0.98; letter-spacing: -0.028em;
  margin: 0 0 clamp(36px, 5vw, 64px); color: var(--ink);
}
.cx-hero__title span { display: block; }
.cx-hero__base { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 22px; border-top: 1px solid var(--ink); }
.cx-hero__base p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.cx-hero__base p:last-child { justify-self: end; text-align: right; font-size: 14px; }
@media (max-width: 760px) { .cx-hero__base { grid-template-columns: 1fr; } .cx-hero__base p:last-child { justify-self: start; text-align: left; } }

/* C: the data plate */
.cx-hero--plate { justify-content: space-between; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 0; }
.cx-plate { position: relative; margin-top: clamp(24px, 4vw, 48px); }
.plate__svg { display: block; width: 100%; height: clamp(160px, 26vh, 300px); }
.plate__svg .pl { stroke: var(--ink); stroke-opacity: 0.32; stroke-width: 3.2; }
.plate__svg .pl-hi { stroke: var(--accent); stroke-width: 3.2; }
.cx-plate__cap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 14px 28px; border-top: 1px solid var(--ink); font-size: 13px; color: var(--ink-2); }
.cx-plate__cap a { color: var(--ink); }

/* ---------- mission statement ---------- */
.cx-mission { padding-block: clamp(96px, 14vw, 200px); text-align: center; }
.cx-mission p { font-family: var(--serif); font-optical-sizing: auto; font-weight: 350; font-size: clamp(26px, 2.9vw, 42px); line-height: 1.28; letter-spacing: -0.012em; max-width: 30ch; margin: 0 auto 40px; color: var(--ink); }
.cx-mission p em { font-style: italic; }

/* ---------- research numerals ---------- */
.cx-figures { padding-bottom: clamp(96px, 12vw, 168px); }
.cx-figures__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.cx-figures__head h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; margin: 0; }
.cx-figures__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cx-fig { padding: 40px 28px 8px 0; }
.cx-fig + .cx-fig { padding-left: 28px; border-left: 1px solid var(--rule); }
.cx-fig__n { display: block; font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(52px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); margin-bottom: 22px; white-space: nowrap; }
.cx-fig p { font-size: 15px; color: var(--ink); margin: 0 0 12px; max-width: 30ch; }
.cx-fig small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 980px) { .cx-figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cx-fig:nth-child(3) { padding-left: 0; border-left: 0; } .cx-fig { padding-bottom: 32px; } }
@media (max-width: 560px) { .cx-figures__grid { grid-template-columns: 1fr; } .cx-fig, .cx-fig + .cx-fig { padding: 32px 0 8px; border-left: 0; border-top: 1px solid var(--rule); } .cx-fig:first-child { border-top: 0; } }

/* ---------- six areas as an index ---------- */
.cx-areas { padding-bottom: clamp(96px, 12vw, 168px); }
.cx-areas__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.cx-areas__head h2 { font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -0.018em; margin: 0; }
.cx-areas__head p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 56ch; }
.cx-index { list-style: none; margin: 0; padding: 0; }
.cx-index a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: padding .3s var(--ease); }
.cx-index a:hover { padding-left: 12px; }
.cx-index b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.014em; line-height: 1.15; color: var(--ink); }
.cx-index span { font-size: 15px; color: var(--ink-2); max-width: 58ch; }
@media (max-width: 760px) { .cx-areas__head, .cx-index a { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- closing line ---------- */
.cx-close { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--rule); background: var(--surface); }
.cx-close p { font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.018em; line-height: 1.12; margin: 0 0 28px; max-width: 22ch; color: var(--ink); }

/* ---------- B: journal ---------- */
.cx-mast { padding-block: clamp(72px, 10vw, 136px) clamp(56px, 7vw, 96px); text-align: center; }
.cx-mast h1 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(44px, 6vw, 92px); line-height: 1; letter-spacing: -0.026em; margin: 0 0 28px; }
.cx-mast p { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(19px, 1.6vw, 23px); color: var(--ink-2); max-width: 46ch; margin: 0 auto; line-height: 1.4; }
.cx-front { padding-bottom: clamp(88px, 11vw, 150px); }
.cx-front__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 3px double var(--ink); margin-bottom: 40px; }
.cx-front__head h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0; }
.cx-front__head span { font-size: 13px; color: var(--ink-2); }
.cx-front__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0; }
.cx-story { display: flex; flex-direction: column; }
.cx-story--lead { padding-right: 48px; border-right: 1px solid var(--rule); }
.cx-story--side { padding-left: 48px; }
.cx-story__fig { background: var(--surface); border: 1px solid var(--rule); padding: clamp(20px, 2.4vw, 36px); margin-bottom: 28px; }
.cx-story__fig svg { width: 100%; height: auto; display: block; }
.cx-story__fig .hc-m { display: none !important; }
.cx-story__meta { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.cx-story h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; letter-spacing: -0.016em; line-height: 1.12; margin: 0 0 14px; }
.cx-story--lead h3 { font-size: clamp(30px, 3vw, 44px); max-width: 22ch; }
.cx-story--side h3 { font-size: clamp(22px, 2vw, 28px); }
.cx-story p.dek { font-size: 16px; color: var(--ink-2); margin: 0 0 20px; max-width: 58ch; }
@media (max-width: 900px) { .cx-front__grid { grid-template-columns: 1fr; } .cx-story--lead { padding-right: 0; border-right: 0; padding-bottom: 48px; border-bottom: 1px solid var(--rule); margin-bottom: 48px; } .cx-story--side { padding-left: 0; } }
.cx-whatwe { padding-block: clamp(88px, 11vw, 150px); border-top: 1px solid var(--rule); text-align: center; }
.cx-whatwe h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 28px; color: var(--ink-2); }
.cx-whatwe p { font-family: var(--serif); font-weight: 350; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.32; max-width: 34ch; margin: 0 auto 32px; letter-spacing: -0.01em; }
.cx-areas-inline { list-style: none; margin: 0 auto 36px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; max-width: 760px; }
.cx-areas-inline li { font-size: 15px; color: var(--ink); }
.cx-areas-inline li + li::before { content: "·"; margin: 0 14px; color: var(--ink-2); }

/* Fit C's headline, plate and caption within the first screen. */
.cx-hero--plate .cx-hero__title { font-size: clamp(46px, 6.6vw, 108px); margin-bottom: clamp(24px, 3vw, 40px); }
.cx-hero--plate { padding-top: clamp(32px, 5vh, 72px); }
.cx-hero--plate .plate__svg { height: clamp(120px, 20vh, 230px); }
/* B: the narrow sidebar uses the narrow (phone) drawing of the chart, whose text is sized for small widths. */
.cx-story--side .cx-story__fig .hc-d { display: none !important; }
.cx-story--side .cx-story__fig .hc-m { display: block !important; }
.cx-story--lead .cx-story__fig svg { max-height: 360px; }
.cx-hero--plate > .cx-wrap, .cx-hero > .cx-hero__title, .cx-plate__cap { width: 100%; }

/* ---------- plate variants (strokes stay crisp when the plate stretches) ---------- */
.plate__svg * { vector-effect: non-scaling-stroke; }
.plate__svg .pl { stroke: var(--ink); stroke-opacity: 0.30; stroke-width: 1.2; }
.plate__svg .pl-hi { stroke: var(--accent); stroke-width: 1.8; }
.plate__svg .pl-ref { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; stroke-opacity: 0.7; }
.plate--foundations .pl, .plate--foundations .pl-hi { stroke-width: 3; }
.plate--deposits .pl-soft { stroke: var(--ink); stroke-opacity: 0.22; stroke-width: 2; }
.plate--deposits .pl-bar { stroke: var(--ink); stroke-opacity: 0.55; stroke-width: 7; }
.plate--deposits .pl-line, .plate--network .pl-line { stroke-width: 2.2; }
.plate--network .pl { stroke-opacity: 0.38; stroke-width: 1; }
.plate--vintages .plate__svg { height: clamp(150px, 27vh, 300px); } .plate--vintages .pl { stroke-opacity: 0.45; stroke-width: 1.4; } .plate--vintages .pl-hi { stroke-width: 2; }

/* ---------- D: conceptual plate + quiet research teaser ---------- */
.plate--centralized .pl { stroke-opacity: 0.34; stroke-width: 2.4; }
.plate--centralized .pl-hi { stroke-width: 2.4; }
.plate--converge .pl { stroke-opacity: 0.30; stroke-width: 1; }
.plate--converge .pl-line { stroke-width: 1.4; }
.cx-plate--bare { border-bottom: 1px solid var(--ink); }
.cx-hero--d { position: relative; padding-bottom: clamp(40px, 6vh, 72px); }

/* The teaser: a small note pinned to the bottom-right of the first screen. It enters late and
   quietly, can be dismissed, and scrolls away with the hero; it never follows the reader. */
.teaser {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  bottom: clamp(40px, 6vh, 72px); width: 312px; z-index: 2;
  background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--accent);
  padding: 18px 20px 20px;
  opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.teaser.is-in { opacity: 1; transform: none; }
.teaser[hidden] { display: none; }
.teaser__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.teaser__label { font-size: 12.5px; color: var(--ink-2); }
.teaser__close { width: 28px; height: 28px; margin: -6px -8px -6px 0; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 18px; line-height: 1; }
.teaser__close:hover { color: var(--ink); }
.teaser__title { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--ink); }
.teaser__text { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 14px; }
.teaser a { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .teaser { transition: none; } }
@media (max-width: 760px) {
  .teaser { position: static; width: auto; margin: 28px var(--gutter) 0; opacity: 1; transform: none; }
}

/* Three responsibilities, set as type rather than cards */
.cx-roles { padding-bottom: clamp(96px, 12vw, 168px); }
.cx-roles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cx-role { padding: 32px 32px 0 0; }
.cx-role + .cx-role { padding-left: 32px; border-left: 1px solid var(--rule); }
.cx-role h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.012em; margin: 0 0 6px; }
.cx-role .verb { font-size: 14px; color: var(--accent); margin: 0 0 16px; }
.cx-role p { font-size: 15.5px; color: var(--ink-2); margin: 0; max-width: 34ch; }
@media (max-width: 860px) { .cx-roles__grid { grid-template-columns: 1fr; } .cx-role, .cx-role + .cx-role { padding: 28px 0; border-left: 0; border-top: 1px solid var(--rule); } .cx-role:first-child { border-top: 0; } }
@media (max-width: 560px) { .plate--centralized .pl, .plate--centralized .pl-hi, .plate--foundations .pl, .plate--foundations .pl-hi { stroke-width: 1; } .plate--converge .pl { stroke-width: 0.6; } }

/* ---------- EB Garamond tuning ----------
   Garamond has a smaller x-height and finer letterforms than Newsreader, and no weight below 400:
   open the tracking that was set for Newsreader, and lift display sizes slightly. */
body.cx .cx-hero__title, body.cx .cx-mast h1, body.cx .ox-hero__title { font-weight: 400; letter-spacing: -0.014em; line-height: 1; }
body.cx .cx-hero__title { font-size: clamp(56px, 9vw, 142px); }
body.cx .cx-mast h1 { font-size: clamp(48px, 6.4vw, 98px); }
body.cx .ox-hero__title { font-size: clamp(50px, 8.2vw, 130px); }
body.cx .cx-mission p, body.cx .ox-deep__statement, body.cx .cx-whatwe p { font-weight: 400; letter-spacing: -0.004em; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.24; }
body.cx .cx-areas__head h2, body.cx .cx-close p, body.cx .ox-close__inner p { font-weight: 400; letter-spacing: -0.008em; }
body.cx .cx-index b, body.cx .cx-role h3, body.cx .cx-story h3, body.cx .teaser__title { letter-spacing: -0.004em; }
body.cx .cx-fig__n { font-weight: 400; letter-spacing: -0.012em; }
