/* Noi / Chi siamo (page-chi-siamo.php). Brand tokens from tokens.css; the home (pages/home.css) is the style guide.
   Rules (Stefano 2026-11-11): no black text on #ff0077, any state; no translucent white (hollow outline instead);
   no lift, no drop shadows; «now» objects carry .cj-live-dot (white). */

.cj-cs-page {
	--cs-gutter: var(--cj-gutter);
	--cs-stroke: max(1px, 0.016em);
	width: var(--cj-page);
	margin-inline: auto;
	color: var(--cj-white);
	font-family: var(--cj-font);
}
.cj-cs-page > section,
.cj-cs-page > header { padding-block: clamp(4rem, 12vh, 9rem); }
.cj-cs-page b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Shared furniture (as the home) */
.cj-cs-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--cj-white);
	margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.cj-cs-page .cj-cs-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cj-white);
}
.cj-cs-asof { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--cj-white); }

/* 1. Hero: a two-letter H1 can carry the page. Solid white, very large. */
.cj-cs-hero { padding-top: var(--cj-atl-top) !important; }
.cj-cs-hero > .cj-cs-eyebrow { margin-bottom: clamp(0.5rem, 2vh, 1.5rem); }
.cj-cs-page .cj-cs-h1 {
	margin: 0;
	font-size: clamp(6rem, 2rem + 22vw, 20rem);
	font-weight: 700;
	line-height: 0.82;
	letter-spacing: -0.05em;
	color: var(--cj-white);
}
.cj-cs-lede {
	margin: clamp(2rem, 6vh, 4rem) 0 0;
	/* Noi's display lede goes with its display H1 (the one exception; Stefano 2026-11-12). */
	max-width: 24ch;
	font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.02em;
}
.cj-cs-intro {
	margin: clamp(1.5rem, 4vh, 2.5rem) 0 0;
	max-width: 52ch;
	font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
	font-weight: 500;
	line-height: 1.5;
}

/* The bridge: one centred line between the hero and the first chart (the count, and how fresh it is). */
.cj-cs-page > .cj-cs-bridge { padding-block: clamp(2rem, 8vh, 6rem); text-align: center; }
.cj-cs-bridge__t {
	margin: 0 auto;
	max-width: 22ch;
	font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* 2. Il corpo. Pinned on desktop (pages/chi-siamo.js); words start hollow and fill with a solid sweep; without JS they are solid.
   Each line opens with its own points: one, two; the third line is the agency. */
.cj-cs-say { position: relative; border-top: 1px solid var(--cj-white); }
.cj-cs-say.is-pinned { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.cj-cs-say__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cj-cs-say__line { position: relative; }
/* the fill: a solid white sweep inside the outline (background clipped to the glyphs), never translucent white */
.cj-cs-say .cj-w {
	background-image: linear-gradient(90deg, var(--cj-white) 50%, transparent 50%);
	background-size: 200% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-block: 0.15em 0.25em; /* the fill reaches accents and descenders (è, p) */
	margin-block: -0.15em -0.25em;
}
.cj-cs-say__line {
	display: flex;
	align-items: baseline;
	gap: 0.35em;
	margin: 0;
	font-size: clamp(2rem, 0.9rem + 4.6vw, 5.5rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: var(--cj-white);
	-webkit-text-stroke: var(--cs-stroke) var(--cj-white);
}
.cj-cs-say__line + .cj-cs-say__line { margin-top: clamp(1rem, 3vh, 2rem); }
.cj-cs-say__line--all { font-weight: 800; }
.cj-cs-dots { display: inline-flex; gap: 0.18em; flex: none; width: 1.1em; transform: translateY(-0.12em); }
.cj-cs-dots i { display: block; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--cj-white); }

/* 3. Le persone */
.cj-cs-team__h,
.cj-cs-ch__h2 {
	margin: 0;
	max-width: 20ch;
	font-size: clamp(2rem, 1rem + 4vw, 4.75rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.025em;
	color: var(--cj-white);
}
.cj-cs-team__cap {
	margin: clamp(1rem, 3vh, 1.75rem) 0 0;
	max-width: 46ch;
	font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
	font-weight: 500;
	line-height: 1.45;
}
.cj-cs-people {
	--cs-cols: 4;
	--cs-gap: clamp(12px, 2vw, 32px);
	list-style: none;
	margin: clamp(2.5rem, 7vh, 5rem) 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* 4 + 3: the second row sits centred under the first */
	gap: clamp(2rem, 5vh, 3.5rem) var(--cs-gap);
}
.cj-cs-person { text-align: center; flex: 0 0 calc((100% - (var(--cs-cols) - 1) * var(--cs-gap)) / var(--cs-cols)); }
.cj-cs-portrait { position: relative; margin: 0; aspect-ratio: 3 / 4; container-type: inline-size; }
.cj-cs-portrait canvas { display: block; width: 100%; height: auto; }
.cj-cs-portrait .cjv-ov { display: none; }
.cj-cs-person__name { margin: 0.75rem 0 0; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 700; line-height: 1.1; }
.cj-cs-person__role {
	margin: 0.3rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* 4. Chapters */
.cj-cs-ch__lede {
	margin: clamp(1rem, 3vh, 1.75rem) 0 clamp(1.5rem, 4vh, 2.5rem);
	max-width: 52ch;
	font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
	font-weight: 500;
	line-height: 1.45;
}
.cj-cs-fig { position: relative; margin: 0; container-type: inline-size; }
.cj-cs-fig canvas { display: block; }
.cj-cs-fig .cjv-ov { position: absolute; inset: 0; pointer-events: none; }
.cj-cs-fig .cjv-ov span { position: absolute; white-space: nowrap; line-height: 1; color: var(--cj-white); font-weight: 600; }
.cj-cs-ch__foot {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 1rem 3rem;
	margin-top: clamp(1.5rem, 4vh, 2.5rem);
	padding-top: 1rem;
	border-top: 1px solid var(--cj-white);
}
.cj-cs-ch__cap { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.cj-cs-ch__cap:empty { display: none; }
.cj-cs-legend { list-style: none; margin: 0; padding: 0; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.cj-cs-legend li + li { margin-top: 0.3rem; }

/* 5. Method */
.cj-cs-method { margin-block: clamp(2rem, 6vh, 4rem); border-top: 1px solid var(--cj-white); border-bottom: 1px solid var(--cj-white); }
.cj-cs-method summary {
	padding-block: 1.1rem;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	list-style: none;
	color: var(--cj-white);
}
.cj-cs-method summary::-webkit-details-marker { display: none; }
.cj-cs-method summary::after { content: "+"; float: right; font-size: 1.25rem; line-height: 0.8; }
.cj-cs-method[open] summary::after { content: "–"; }
.cj-cs-method summary:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 0.3em; }
.cj-cs-method__body { padding-bottom: 1.5rem; max-width: 62ch; font-size: 1rem; line-height: 1.6; }
.cj-cs-method__body p { margin: 0 0 0.9rem; }

/* 6. CTA */
.cj-cs-cta { border-top: 1px solid var(--cj-white); }
.cj-cs-cta h2 {
	margin: 0 0 clamp(1.75rem, 4vh, 2.75rem);
	max-width: 16ch;
	font-size: clamp(2.25rem, 1rem + 5vw, 6rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--cj-white);
}
.cj-cs-cta p { margin: 0; }

@media (max-width: 899px) {
	.cj-cs-people { --cs-cols: 2; }
	.cj-cs-ch__foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
	.cj-cs-say__line { display: block; }
	.cj-cs-dots { display: flex; margin-bottom: 0.25em; }
	.cj-cs-person__role { font-size: 0.8125rem; letter-spacing: 0.08em; }
}

/* Chapter head: eyebrow on the rule, the H2 below it (as the home) */
.cj-cs-ch > .cj-cs-head { flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 3vh, 2rem); }
/* one rule between the method box and the CTA, not two */
.cj-cs-method + .cj-cs-cta { border-top: 0; padding-top: clamp(2rem, 6vh, 4rem); }
/* «Alice (e Gianni)»: the dog, named in a lighter voice */
.cj-cs-person__also { font-weight: 500; white-space: nowrap; }
/* Coda: the fourth wall, said once. A tight column centred on the page, text set left (Stefano 2026-11-12: a centred
   paragraph is too much); the bookend to the bridge. Link: white in every state
   (no black on pink), the underline thickens on hover. */
.cj-cs-coda__t {
	margin: 0 auto;
	max-width: 30ch;
	font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}
.cj-cs-page .cj-cs-coda a,
.cj-cs-page .cj-cs-coda a:hover,
.cj-cs-page .cj-cs-coda a:focus-visible { color: var(--cj-white); text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.14em; }
.cj-cs-page .cj-cs-coda a:hover { text-decoration-thickness: 0.12em; }

/* 1b. In breve (Stefano 2026-11-12): the page in three numbers, each with a way down to its chapter. The home's number row. */
.cj-cs-page > .cj-cs-brief { padding-block: clamp(2rem, 6vh, 4rem); }
.cj-cs-brief__nums {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1.5rem, 4vh, 2.5rem) clamp(1.5rem, 3vw, 3rem);
}
.cj-cs-brief__nums li { display: flex; flex-direction: column; align-items: flex-start; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.cj-cs-brief__nums b {
	display: block;
	margin-bottom: 0.35rem;
	font-size: clamp(3rem, 1.6rem + 4.5vw, 6rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.04em;
}
.cj-cs-page .cj-cs-brief__go,
.cj-cs-page .cj-cs-brief__go:hover,
.cj-cs-page .cj-cs-brief__go:focus-visible { color: var(--cj-white); }
.cj-cs-brief__go {
	margin-top: 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}
.cj-cs-brief__go:hover { text-decoration-thickness: 2px; }
.cj-cs-brief__t {
	margin: clamp(2rem, 5vh, 3rem) 0 0;
	max-width: 44ch;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	font-weight: 500;
	line-height: 1.45;
}
html { scroll-padding-top: calc(var(--header-height, 70px) + 1rem); }

/* 4b. Secondary chapters (Gli anni, Il ritmo, Adesso): from 900px the figure sits beside the text at ≤560px (the
   pieces' phone layout, labels kept legible), the H2 a size down. Below 900px they stack like the others. */
@media (min-width: 900px) {
	.cj-cs-ch--minor {
		display: grid;
		grid-template-columns: minmax(0, 1fr) min(560px, 50%);
		grid-template-rows: auto auto 1fr;
		grid-template-areas: "head head" "lede fig" "foot fig";
		column-gap: clamp(2rem, 5vw, 5rem);
	}
	.cj-cs-ch--minor > .cj-cs-head { grid-area: head; }
	.cj-cs-ch--minor > .cj-cs-ch__lede { grid-area: lede; margin-top: 0; }
	.cj-cs-ch--minor > .cj-cs-fig { grid-area: fig; align-self: start; }
	.cj-cs-ch--minor > .cj-cs-ch__foot { grid-area: foot; align-self: start; grid-template-columns: minmax(0, 1fr); margin-top: 0; }
	.cj-cs-ch--minor .cj-cs-ch__h2 { max-width: 24ch; font-size: clamp(1.75rem, 1rem + 2.2vw, 3.25rem); }
}
