/**
 * Our Data page sections.
 *
 * Builds on onc-home.css (colours, wrap, eyebrow, headings). Only the
 * .onc-od-* elements are styled here; the row backgrounds stay in WPBakery.
 */

.onc-od-center { max-width: 720px; margin-inline: auto; text-align: center; }
.onc-od-center h2 { margin-top: 12px; }
.onc-od-center .onc-home-sub { margin-top: 18px; }

/* ---------------------------------------------------------------- Hero -- */

.onc-od-hero { padding-block: 72px 80px; text-align: center; }
.onc-od-hero__title {
	max-width: 820px; margin: 14px auto 0;
	font-size: 54px; font-weight: 750; line-height: 1.08; letter-spacing: -.01em;
}
.onc-od-hero__title span { display: block; color: var(--onc-h-pink); }
.onc-od-hero__desc { max-width: 640px; margin: 22px auto 0; font-size: 18px; line-height: 1.7; }

.onc-od-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 48px auto 0; }
.onc-od-stat {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 28px 20px 24px; border: 1px solid rgba(113, 69, 184, .12); border-radius: 18px;
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	box-shadow: 0 1px 2px rgba(20, 24, 65, .04), 0 18px 40px -24px rgba(20, 24, 65, .22);
}
.onc-od-stat__icon {
	width: 56px; height: 56px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 16px;
	background: linear-gradient(160deg, #fbfafd, #f1edf8); box-shadow: inset 0 0 0 1px #ebe6f4;
}
.onc-od-stat__icon img { width: 32px; height: 32px; object-fit: contain; }
.onc-od-stat strong { color: var(--onc-h-navy); font-size: 40px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.onc-od-stat__label { font-size: 14px; color: var(--onc-h-body); }

/* --------------------------------------------------------- Sources hub -- */
/* Drawn on the original artwork's 709 x 577 coordinates. The core sits at
   362,284; each node's centre comes in as --x / --y. */

.onc-od-hub { position: relative; width: 709px; max-width: 100%; aspect-ratio: 709 / 577; margin: 40px auto 0; }
.onc-od-hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.onc-od-hub__line { fill: none; stroke: #d5ccdd; stroke-width: 1.4; stroke-dasharray: 8 9; }

.onc-od-hub__core {
	position: absolute; left: calc(362 / 709 * 100%); top: calc(284 / 577 * 100%);
	width: 112px; height: 108px; translate: -50% -50%;
}
.onc-od-hub__core > svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 18px 26px rgba(242, 25, 103, .35)); }
.onc-od-hub__ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(242, 25, 103, .28); opacity: 0; }

.onc-od-hub__nodes { list-style: none; margin: 0; padding: 0; }
.onc-od-hub__node {
	position: absolute; z-index: 2; left: calc(var(--x) / 709 * 100%); top: calc(var(--y) / 577 * 100%);
	width: 0; height: 0;
}
.onc-od-hub__dot {
	position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; display: grid; place-items: center;
	border-radius: 50%; background: #fff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .55), 0 12px 26px -10px rgba(80, 47, 120, .35), 0 2px 5px rgba(20, 24, 65, .06);
	transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.onc-od-hub__dot svg { width: 30px; height: 30px; display: block; }
.onc-od-hub__label {
	position: absolute; left: 0; top: 42px; width: 150px; translate: -50% 0;
	color: var(--onc-h-navy); font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center;
}
.onc-od-hub__node:hover .onc-od-hub__dot { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(242, 25, 103, .12), 0 16px 30px -10px rgba(242, 25, 103, .45), 0 2px 5px rgba(20, 24, 65, .06); }
.onc-od-hub__spark { fill: var(--onc-h-pink); stroke: rgba(242, 25, 103, .2); stroke-width: 5; }
/* Sparks start once the hub has drawn in, and never with reduced motion. */
.onc-od-hub.is-reveal-ready:not(.is-revealed) .onc-od-hub__sparks { display: none; }
@media (prefers-reduced-motion: reduce) { .onc-od-hub__sparks { display: none; } }
.onc-od-sources { padding-bottom: 40px; }
.onc-od-sources__note { margin-top: 36px; font-size: 16px; }

/* ------------------------------------------------------- Feature rows -- */

.onc-od-feature { padding-block: 56px; }
.onc-od-feature__layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.onc-od-feature--right .onc-od-feature__art { order: 2; }
.onc-od-feature__art { position: relative; display: flex; justify-content: center; }
.onc-od-feature__art::before {
	content: ""; position: absolute; inset: 6% 8%; z-index: 0; border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, rgba(242, 25, 103, .12), transparent 60%), radial-gradient(circle at 65% 65%, rgba(113, 69, 184, .14), transparent 62%);
	filter: blur(30px);
}
.onc-od-feature__frame { position: relative; z-index: 1; max-width: 560px; }
.onc-od-feature__frame img { display: block; width: 100%; height: auto; }
.onc-od-feature__copy { max-width: 500px; }
.onc-od-feature--right .onc-od-feature__copy { justify-self: end; }
.onc-od-feature__copy h2 { margin-top: 12px; font-size: 36px; }
.onc-od-feature__text { margin-top: 18px; font-size: 17px; line-height: 1.7; }
.onc-od-feature__list { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid #ebe8f0; }
.onc-od-feature__list li { display: flex; align-items: start; gap: 12px; margin-top: 13px; color: var(--onc-h-heading); font-size: 15px; }
.onc-od-feature__list li:first-child { margin-top: 0; }
.onc-od-tick { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fde7ef; color: var(--onc-h-pink); }
.onc-od-tick .onc-home-icon { width: 13px; height: 13px; stroke-width: 2.6; }

/* -------------------------------------------------------------- Motion -- */
/* Armed by onc-home.js (is-reveal-ready), shown once in view (is-revealed),
   so without scripts or with reduced motion everything is simply there. */

@keyframes onc-od-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes onc-od-draw { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes onc-od-flow { to { stroke-dashoffset: -34; } }
@keyframes onc-od-ring { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes onc-od-float { 50% { transform: translateY(-8px); } }
@keyframes onc-od-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	.onc-od-hub__line { animation: onc-od-flow 2.4s linear infinite; }
	.onc-od-hub__ring { animation: onc-od-ring 3.2s cubic-bezier(.22, 1, .36, 1) infinite; }
	.onc-od-hub__ring + .onc-od-hub__ring { animation-delay: 1.6s; }
	.onc-od-feature__frame { animation: onc-od-float 8s ease-in-out infinite; }

	.onc-od-hub.is-reveal-ready .onc-od-hub__core,
	.onc-od-hub.is-reveal-ready .onc-od-hub__dot,
	.onc-od-hub.is-reveal-ready .onc-od-hub__label,
	.onc-od-hub.is-reveal-ready .onc-od-hub__line { opacity: 0; }
	.onc-od-hub.is-revealed .onc-od-hub__core { animation: onc-od-pop .7s cubic-bezier(.22, 1, .36, 1) both; }
	.onc-od-hub.is-revealed .onc-od-hub__line { animation: onc-od-draw .9s ease-out both, onc-od-flow 2.4s linear 1.4s infinite; animation-delay: calc(var(--i) * 70ms + .2s), 1.4s; }
	.onc-od-hub.is-revealed .onc-od-hub__dot,
	.onc-od-hub.is-revealed .onc-od-hub__label { animation: onc-od-pop .6s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 80ms + .45s); }

	.onc-od-feature.is-reveal-ready .onc-od-feature__art,
	.onc-od-feature.is-reveal-ready .onc-od-feature__copy { opacity: 0; }
	.onc-od-feature.is-revealed .onc-od-feature__art { animation: onc-od-rise .9s cubic-bezier(.22, 1, .36, 1) both; }
	.onc-od-feature.is-revealed .onc-od-feature__copy { animation: onc-od-rise .9s cubic-bezier(.22, 1, .36, 1) .12s both; }
}

/* ----------------------------------------------------------- Responsive -- */

@media (max-width: 1150px) {
	.onc-od-feature__layout { gap: 48px; }
}

@media (max-width: 960px) {
	.onc-od-hero__title { font-size: 44px; }
	.onc-od-feature__layout { grid-template-columns: 1fr 1fr; gap: 36px; }
	.onc-od-feature__copy h2 { font-size: 30px; }
}

/* Below this the hub is too small to read, so the sources become a grid of
   chips under the mark. */
@media (max-width: 800px) {
	.onc-od-hub { width: auto; aspect-ratio: auto; margin-top: 32px; }
	.onc-od-hub__lines, .onc-od-hub__ring { display: none; }
	.onc-od-hub__core { position: relative; left: auto; top: auto; width: 84px; height: 81px; margin: 0 auto 26px; translate: none; }
	.onc-od-hub__nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.onc-od-hub__node { position: static; width: auto; height: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ebe6f2; border-radius: 12px; background: #fff; }
	.onc-od-hub__dot { position: static; flex: none; width: 40px; height: 40px; box-shadow: inset 0 0 0 1px #efeaf5; background: #faf8fd; }
	.onc-od-hub__dot svg { width: 22px; height: 22px; }
	.onc-od-hub__label { position: static; width: auto; translate: none; text-align: left; font-size: 13.5px; }
	.onc-od-hub__node:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
	.onc-od-hero { padding-block: 48px 56px; }
	.onc-od-hero__title { font-size: 36px; }
	.onc-od-hero__desc { font-size: 16px; }
	.onc-od-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 32px; }
	.onc-od-stat { padding: 18px 8px 16px; border-radius: 14px; }
	.onc-od-stat__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px; }
	.onc-od-stat__icon img { width: 26px; height: 26px; }
	.onc-od-stat strong { font-size: 26px; }
	.onc-od-stat__label { font-size: 12px; line-height: 1.35; text-align: center; }

	.onc-od-feature { padding-block: 36px; }
	.onc-od-feature__layout { grid-template-columns: 1fr; gap: 28px; }
	.onc-od-feature--right .onc-od-feature__art { order: 0; }
	.onc-od-feature--right .onc-od-feature__copy { justify-self: start; }
	.onc-od-feature__copy h2 { font-size: 28px; }
	.onc-od-feature__text { font-size: 16px; }
}

@media (max-width: 400px) {
	.onc-od-hub__nodes { grid-template-columns: 1fr; }
}
