/*
Theme Name: Prizor AITech
Theme URI: https://prizorai.com
Author: Prizor AITech
Author URI: https://prizorai.com
Description: Hand-crafted custom block theme for prizorai.com. No page builders. Lighthouse 95+ target. FSE, custom Gutenberg blocks, GSAP + Lenis scroll, performance-first.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmsexpertdev
Tags: full-site-editing, block-theme, portfolio, dark, one-page
*/

/* =======================================================================
   GLOBAL — most styles live in theme.json or per-block style.scss.
   This sheet handles the cross-cutting things theme.json can't express:
   typography rendering hints, focus-visible rings, scroll behavior,
   layout primitives, and the tiny utility set blocks rely on.
   ======================================================================= */

:root {
	--ease-emph: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
	--header-height: 84px;
	--cursor-size: 14px;
	--page-max: 1440px;

	/* ─── Unified responsive padding tokens ───
	   Every section uses these so vertical rhythm is consistent across
	   the page. Tokens auto-scale at the breakpoints below. */
	--pad-section:    clamp(5rem, 11vw, 9rem);     /* default sections */
	--pad-section-lg: clamp(6rem, 14vw, 12rem);    /* hero, final-CTA */
	--pad-section-sm: clamp(2.5rem, 5vw, 4rem);    /* compact strips */
	--gutter-x:       clamp(1.25rem, 4vw, 4rem);   /* horizontal gutter */
}

/* Tablet — 768px and below */
@media (max-width: 1024px) {
	:root {
		--pad-section:    clamp(4rem, 9vw, 6rem);
		--pad-section-lg: clamp(5rem, 11vw, 8rem);
		--pad-section-sm: clamp(2rem, 4vw, 3rem);
		--gutter-x:       clamp(1.25rem, 3.5vw, 2.5rem);
		--header-height: 72px;
	}
}

/* Mobile — 640px and below */
@media (max-width: 640px) {
	:root {
		--pad-section:    3.5rem;
		--pad-section-lg: 4.5rem;
		--pad-section-sm: 1.75rem;
		--gutter-x:       1.25rem;
		--header-height: 64px;
	}
}

/* Universal box-sizing reset — without this, anything with `width: 100%`
   plus padding overflows its container by 2 × padding. Buttons, form
   inputs, cards, and the lead form were all caught by this. */
*, *::before, *::after {
	box-sizing: border-box;
}

* { -webkit-tap-highlight-color: transparent; }

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-feature-settings: "ss01", "ss02", "cv11";
	overflow-x: clip;
}

/* Anything that wants to bleed past content but stay clipped — gridded
   above the safe page boundary. Prevents mobile horizontal overflow. */
html { overflow-x: clip; }
img, video, svg { max-width: 100%; height: auto; }

/* Touch-target enforcement — buttons & inline text links should be
   ≥ 44px tap area on touch devices. Excludes card-style anchors
   (`.ced-card__link`, `.ced-shub__card`, `.ced-tests__dot`, etc.) which
   handle their own layout via grid/flex internally and would get broken
   by forcing them to inline-flex. */
@media (hover: none) and (pointer: coarse) {
	.ced-btn { min-height: 48px; padding-inline: 1.25rem; }
	a:not(.ced-btn):not(.ced-card__link):not(.ced-shub__card):not(.ced-card):not(.ced-warch__chip):not(.ced-tests__dot),
	button:not(.ced-warch__chip):not(.ced-tests__dot):not(.ced-shub__card) {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
}

::selection { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }

/* Focus ring — high-contrast lime, only on keyboard focus. */
:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--wp--preset--color--lime);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Skip link */
.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}
.skip-link.screen-reader-text:focus { left: 1rem; }

/* Section primitive — every block uses .ced-section as the outer wrapper. */
.ced-section {
	position: relative;
	padding-block: var(--pad-section);
	padding-inline: var(--gutter-x);
	max-width: var(--page-max);
	margin-inline: auto;
}
.ced-section--flush { padding-block: 0; }
.ced-section--bleed { max-width: none; padding-inline: 0; }
.ced-section--lg    { padding-block: var(--pad-section-lg); }
.ced-section--sm    { padding-block: var(--pad-section-sm); }

/* Eyebrow — used in every section header. */
.ced-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--font--tracking--widest);
	color: var(--wp--preset--color--fog);
}
.ced-eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--wp--preset--color--lime);
}

/* Buttons */
.ced-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 1.05rem 1.6rem;
	border-radius: var(--wp--custom--radius--pill);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: -0.005em;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background var(--wp--custom--transition--smooth), color var(--wp--custom--transition--smooth), border-color var(--wp--custom--transition--smooth), transform var(--wp--custom--transition--smooth);
	will-change: transform;
}
.ced-btn--primary {
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
}
.ced-btn--primary:hover { background: var(--wp--preset--color--paper); }
.ced-btn--ghost {
	background: transparent;
	color: var(--wp--preset--color--paper);
	border-color: rgba(232,229,222,0.2);
}
.ced-btn--ghost:hover {
	border-color: var(--wp--preset--color--paper);
	background: rgba(232,229,222,0.04);
}
.ced-btn__arrow {
	display: inline-block;
	transition: transform var(--wp--custom--transition--swift);
}
.ced-btn:hover .ced-btn__arrow { transform: translateX(4px); }

/* Hairline grid — used in CMS showcase, services, etc. */
.ced-hairline { border-top: var(--wp--custom--grid--hairline); }
.ced-hairline-l { border-left: var(--wp--custom--grid--hairline); }
.ced-hairline-r { border-right: var(--wp--custom--grid--hairline); }
.ced-hairline-b { border-bottom: var(--wp--custom--grid--hairline); }

/* Reveal helper — set by JS once IntersectionObserver fires. */
.ced-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 720ms var(--ease-emph), transform 720ms var(--ease-emph);
	will-change: opacity, transform;
}
.ced-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Stagger children — JS sets --i index. */
.ced-stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* Split-text spans — populated by JS, animated word-by-word. */
.ced-split-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}
.ced-split-word > span {
	display: inline-block;
	transform: translateY(110%);
	transition: transform 880ms var(--ease-emph);
	transition-delay: calc(var(--i, 0) * 28ms);
}
.is-in .ced-split-word > span,
.ced-split.is-in .ced-split-word > span { transform: translateY(0); }

/* Marquee — used in CMS logo strip. */
.ced-marquee {
	display: flex;
	gap: var(--wp--preset--spacing--lg);
	white-space: nowrap;
	width: max-content;
	animation: ced-marquee-roll 38s linear infinite;
}
@keyframes ced-marquee-roll {
	from { transform: translate3d(0,0,0); }
	to   { transform: translate3d(-50%,0,0); }
}

/* Custom cursor — desktop only. */
.ced-cursor {
	position: fixed;
	top: 0; left: 0;
	width: var(--cursor-size); height: var(--cursor-size);
	border-radius: 50%;
	background: var(--wp--preset--color--lime);
	pointer-events: none;
	mix-blend-mode: difference;
	transform: translate3d(-50%, -50%, 0);
	transition: transform 320ms var(--ease-smooth), width 320ms var(--ease-smooth), height 320ms var(--ease-smooth), opacity 320ms var(--ease-smooth);
	z-index: 9999;
	opacity: 0;
}
.ced-cursor.is-active { opacity: 1; }
.ced-cursor.is-hovering {
	width: 56px;
	height: 56px;
	background: rgba(212,255,79,0.18);
	border: 1px solid var(--wp--preset--color--lime);
}
@media (hover: none), (pointer: coarse) {
	.ced-cursor { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.ced-marquee { animation: none; }
	.ced-reveal { opacity: 1; transform: none; }
	.ced-split-word > span { transform: none; }
	.ced-cursor { display: none; }
}

/* Hide page-builder admin UI we don't want anywhere */
.is-root-container > .wp-block-pattern-inserter { display: none; }

/* Layout helper for full-bleed inside max-width pages. */
.ced-bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* Number formatting — old-style figures off, tabular for stats. */
.ced-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ────────────────────────────────────────────────────────────────
   Long-form body — used inside the case-study and blog templates.
   Sits inside .ced-section, max 780px column, generous typography.
   ──────────────────────────────────────────────────────────────── */
.ced-project-body,
.ced-article-body {
	color: var(--wp--preset--color--mist);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.65;
	max-width: 780px;
	margin-inline: auto;
}

.ced-service-hero {
	padding-top: calc(var(--header-height) + clamp(2rem, 5vw, 4rem)) !important;
	padding-bottom: var(--pad-section-sm) !important;
	display: grid;
	gap: 0.75rem;
}
.ced-service-hero__title {
	font-size: clamp(2.5rem, 7vw, 6rem);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 0.96;
	margin: 0;
	color: var(--wp--preset--color--paper);
	max-width: 22ch;
}
.ced-service-hero__crumb {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fog);
	margin: 0 !important;
}
.ced-service-hero__crumb a {
	color: var(--wp--preset--color--mist);
	text-decoration: none;
	transition: color 240ms var(--ease-smooth);
}
.ced-service-hero__crumb a:hover { color: var(--wp--preset--color--lime); }

/* ────────────────────────────────────────────────────────────
   Body + Sidebar grid — used on platform/service pages so
   wide desktop screens feel deliberate, not cramped.
   ──────────────────────────────────────────────────────────── */
.ced-page-grid {
	max-width: 1280px !important;
	margin-inline: auto !important;
	padding-block: var(--pad-section) !important;
	padding-inline: var(--gutter-x) !important;
	display: grid !important;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--md);
}
@media (min-width: 1100px) {
	.ced-page-grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: var(--wp--preset--spacing--lg);
		align-items: start;
	}
}

.ced-page-grid__main {
	min-width: 0;
	max-width: 780px;
}
@media (min-width: 1100px) {
	.ced-page-grid__main { max-width: none; }
}

.ced-page-grid__side {
	display: grid !important;
	gap: 1rem !important;
	min-width: 0;
}
@media (min-width: 1100px) {
	.ced-page-grid__side {
		position: sticky;
		top: calc(var(--header-height) + 1.5rem);
		align-self: start;
	}
}

/* Sticky CTA card */
.ced-side-card {
	background: var(--wp--preset--color--graphite);
	border: 1px solid rgba(232, 229, 222, 0.08);
	border-radius: var(--wp--custom--radius--lg);
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	display: grid;
	gap: 0.85rem;
	color: var(--wp--preset--color--paper);
}
.ced-side-card h3 {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--wp--preset--color--paper);
	margin: 0;
}
.ced-side-card p {
	font-size: 0.9rem;
	color: var(--wp--preset--color--mist);
	line-height: 1.55;
	margin: 0;
}
.ced-side-card .ced-btn {
	width: 100%;
	justify-content: center;
}
.ced-side-card--cta {
	background: linear-gradient(160deg, var(--wp--preset--color--graphite), rgba(212, 255, 79, 0.06));
	border-color: rgba(212, 255, 79, 0.24);
}
.ced-project-body :where(h2, h3),
.ced-article-body :where(h2, h3) {
	color: var(--wp--preset--color--paper);
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin-top: 2.5em;
	margin-bottom: 0.75em;
}
.ced-project-body h2,
.ced-article-body h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.ced-project-body h3,
.ced-article-body h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.ced-project-body p,
.ced-article-body p {
	margin: 0 0 1.25em 0;
}
.ced-project-body :where(ul, ol),
.ced-article-body :where(ul, ol) {
	padding-left: 1.5em;
	margin: 0 0 1.5em 0;
}
.ced-project-body li,
.ced-article-body li { margin-bottom: 0.5em; }
.ced-project-body blockquote,
.ced-article-body blockquote {
	border-left: 3px solid var(--wp--preset--color--lime);
	padding-left: 1.5em;
	margin: 2em 0;
	font-size: 1.25em;
	color: var(--wp--preset--color--paper);
	font-style: italic;
}
.ced-project-body img,
.ced-article-body img {
	border-radius: var(--wp--custom--radius--md);
	margin: 1.5em 0;
}
.ced-project-body a,
.ced-article-body a {
	color: var(--wp--preset--color--lime);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/* ────────────────────────────────────────────────────────────
   Blog / Insights — single + archive
   ──────────────────────────────────────────────────────────── */
.ced-blog-hero,
.ced-article-hero {
	padding-top: calc(var(--header-height) + clamp(2rem, 5vw, 4rem)) !important;
	padding-bottom: var(--pad-section-sm) !important;
	display: grid;
	gap: 1rem;
}
.ced-blog-hero__title {
	font-size: clamp(2.5rem, 6.5vw, 5rem);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 0.98;
	color: var(--wp--preset--color--paper);
	margin: 0;
	max-width: 22ch;
}
.ced-blog-hero__lede,
.ced-article-hero__excerpt {
	color: var(--wp--preset--color--mist);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.5;
	margin: 0;
}
.ced-article-hero__crumbs {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fog);
	margin: 0;
}
.ced-article-hero__crumbs a { color: inherit; text-decoration: none; }
.ced-article-hero__crumbs a:hover { color: var(--wp--preset--color--lime); }
.ced-article-hero__date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lime);
	margin: 0;
}
.ced-article-hero__title {
	font-size: clamp(2.5rem, 7vw, 5.5rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 0.98;
	color: var(--wp--preset--color--paper);
	margin: 0;
}
.ced-article-hero__media {
	max-width: var(--page-max);
	margin-inline: auto;
	padding-inline: var(--gutter-x);
}
.ced-article-hero__media img {
	border-radius: var(--wp--custom--radius--lg);
	width: 100%;
	display: block;
}
.ced-article-body__lede {
	font-size: clamp(1.25rem, 2.4vw, 1.625rem) !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--paper) !important;
	font-weight: 400;
	letter-spacing: -0.01em;
	border-left: 3px solid var(--wp--preset--color--lime);
	padding-left: 1.25rem;
	margin: 0 0 2rem !important;
}
/* Blog grid */
.ced-blog-grid-wrap { padding-block: var(--pad-section); padding-inline: var(--gutter-x); }
.ced-blog-grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--md);
	max-width: var(--page-max);
	margin-inline: auto;
}
@media (min-width: 720px)  { .ced-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ced-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.ced-blog-card {
	background: var(--wp--preset--color--graphite);
	border-radius: var(--wp--custom--radius--lg);
	overflow: clip;
	border: 1px solid rgba(232, 229, 222, 0.06);
	padding: 1.65rem 1.5rem 1.4rem !important;
	display: grid !important;
	gap: 0.7rem !important;
	transition: transform var(--wp--custom--transition--smooth), border-color var(--wp--custom--transition--smooth);
	min-height: 220px;
	align-content: start;
}
.ced-blog-card:hover { transform: translateY(-2px); border-color: var(--wp--preset--color--lime); }
.ced-blog-card__cat {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lime);
	margin: 0 0 0.15rem !important;
}
.ced-blog-card__cat a {
	color: inherit;
	text-decoration: none;
}
.ced-blog-card__cat a:hover { color: var(--wp--preset--color--paper); }
.ced-blog-card__date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fog);
	margin: 0.35rem 0 0 !important;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(232, 229, 222, 0.08);
}
.ced-blog-card__title {
	font-size: clamp(1.25rem, 2.4vw, 1.65rem) !important;
	font-weight: 500 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.15 !important;
	margin: 0 !important;
}
.ced-blog-card__title a { color: var(--wp--preset--color--paper); text-decoration: none; }
.ced-blog-card__title a:hover { color: var(--wp--preset--color--lime); }
.ced-blog-card__excerpt {
	color: var(--wp--preset--color--mist);
	font-size: 0.9rem !important;
	line-height: 1.55;
	margin: 0 !important;
}
.ced-blog-pagination {
	max-width: var(--page-max) !important;
	margin: var(--wp--preset--spacing--md) auto 0 !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.ced-blog-pagination a {
	color: var(--wp--preset--color--mist);
	text-decoration: none;
	padding: 0.65rem 1rem;
	border: 1px solid rgba(232, 229, 222, 0.16);
	border-radius: var(--wp--custom--radius--pill);
	transition: border-color var(--wp--custom--transition--swift), color var(--wp--custom--transition--swift);
}
.ced-blog-pagination a:hover { border-color: var(--wp--preset--color--lime); color: var(--wp--preset--color--lime); }

/* ============================================================
   Project card — shared component used by:
     - blocks/work-showcase  (homepage Selected Work)
     - blocks/work-archive   (/work/ archive page)
   Lives in the global stylesheet so both surfaces get it
   regardless of which block CSS bundle is enqueued.
   ============================================================ */
.ced-card {
	--card-accent: var(--wp--preset--color--lime);
	position: relative;
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	background: var(--wp--preset--color--graphite);
	transition: transform var(--wp--custom--transition--smooth), background var(--wp--custom--transition--smooth);
}
.ced-card--sand     { --card-accent: var(--wp--preset--color--sunset);   background: linear-gradient(135deg, #2a1f15 0%, #1a1410 100%); }
.ced-card--ink      { --card-accent: var(--wp--preset--color--lavender); background: linear-gradient(135deg, #14121f 0%, #0c0c10 100%); }
.ced-card--paper    { --card-accent: var(--wp--preset--color--coral);    background: linear-gradient(135deg, #f4e5c9 0%, #fbf6e9 100%); color: var(--wp--preset--color--ink); }
.ced-card--forest   { --card-accent: var(--wp--preset--color--sage);     background: linear-gradient(135deg, #1d2a26 0%, #0e1a18 100%); }
.ced-card--rose     { --card-accent: var(--wp--preset--color--rose);     background: linear-gradient(135deg, #2a141d 0%, #1a0c14 100%); }
.ced-card--graphite { --card-accent: var(--wp--preset--color--sky);      background: linear-gradient(135deg, #0e1a1a 0%, #15282a 100%); }

.ced-card--paper .ced-card__title,
.ced-card--paper .ced-card__platform { color: var(--wp--preset--color--ink); }
.ced-card--paper .ced-card__industry { color: rgba(5, 5, 7, 0.5); }
.ced-card--paper .ced-card__view     { color: var(--wp--preset--color--ink); }

.ced-card:hover { transform: translateY(-4px); }

.ced-card__link {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 0;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

/* Media area — large, dominant. Holds image / placeholder + year badge. */
.ced-card__media {
	position: relative;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: var(--wp--preset--color--stone);
}
.ced-card__media img,
.ced-card__placeholder {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	/* Pin to the TOP of the image. Real-site screenshots are tall
	   (5–20× the card width). Default center-crop shows only the
	   visually-empty middle of those screenshots — pinning to top
	   surfaces the hero, which is the visually-richest part. */
	object-position: top center;
	transition: transform 880ms var(--ease-emph);
}
.ced-card:hover .ced-card__media img,
.ced-card:hover .ced-card__placeholder { transform: scale(1.04); }

.ced-card__placeholder {
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(4rem, 14vw, 10rem);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 0.85;
}
.ced-card__placeholder[data-tone="ink"]      { background: linear-gradient(135deg, #1c1c22 0%, #0c0c10 100%); }
.ced-card__placeholder[data-tone="paper"]    { background: linear-gradient(135deg, #f1ede4 0%, #d6d2c8 100%); color: var(--wp--preset--color--ink); }
.ced-card__placeholder[data-tone="sand"]     { background: linear-gradient(135deg, #e8d8b9 0%, #b09b78 100%); color: var(--wp--preset--color--ink); }
.ced-card__placeholder[data-tone="forest"]   { background: linear-gradient(135deg, #3a4f44 0%, #1d2a26 100%); color: #d4ff4f; }
.ced-card__placeholder[data-tone="rose"]     { background: linear-gradient(135deg, #f0c2c8 0%, #b6727f 100%); color: var(--wp--preset--color--ink); }
.ced-card__placeholder[data-tone="graphite"] { background: linear-gradient(135deg, #15282a 0%, #0e1a1a 100%); color: #4ECDC4; }

/* Brand-logo variant of the placeholder. The colored gradient stays
   as the backdrop and the logo sits centered on a soft paper disc so
   any brand color reads cleanly against any tone. Both layers stack
   in a single grid cell so the disc sits directly behind the logo. */
.ced-card__placeholder.has-logo {
	display: grid;
	grid-template-areas: "stack";
	place-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
}
.ced-card__placeholder.has-logo::before {
	content: "";
	grid-area: stack;
	width: clamp(140px, 42%, 240px);
	aspect-ratio: 1;
	border-radius: 26%;
	background: rgba(255, 255, 255, 0.96);
	box-shadow:
		0 18px 60px -20px rgba(0, 0, 0, 0.45),
		0 4px 14px -4px rgba(0, 0, 0, 0.22);
	transition: transform 880ms var(--ease-emph);
	z-index: 0;
}
/* Reset the global .ced-card__media img absolute-fill rule for the
   logo image so it sizes intrinsically inside the disc. */
.ced-card__media .ced-card__logo {
	grid-area: stack;
	position: relative;
	inset: auto;
	z-index: 1;
	width: clamp(90px, 28%, 160px);
	height: clamp(90px, 28%, 160px);
	object-fit: contain;
	transition: transform 880ms var(--ease-emph);
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}
.ced-card:hover .ced-card__placeholder.has-logo::before { transform: scale(1.04); }
.ced-card:hover .ced-card__media .ced-card__logo { transform: scale(1.06); }
/* The generic .ced-card:hover scales the whole placeholder. Lock it
   to 1.0 here so the logo's own animation is the only visible one. */
.ced-card:hover .ced-card__placeholder.has-logo { transform: none; }

/* Year badge — top-right floating glass-blur pill */
.ced-card__year-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.3rem 0.65rem;
	background: rgba(5, 5, 7, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border-radius: var(--wp--custom--radius--pill);
	border: 1px solid rgba(232, 229, 222, 0.16);
}
.ced-card--paper .ced-card__year-badge {
	background: rgba(255, 255, 255, 0.7);
	color: var(--wp--preset--color--ink);
	border-color: rgba(5, 5, 7, 0.12);
}

/* Body — platform pill, title, headline result, CTA */
.ced-card__body {
	display: grid;
	gap: 0.85rem;
	padding: clamp(1.25rem, 2vw, 1.75rem);
	align-content: start;
}
.ced-card__platform {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--paper);
	max-width: 100%;
	flex-wrap: wrap;
}
.ced-card__platform-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--card-accent);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--card-accent) 24%, transparent);
	flex-shrink: 0;
}
.ced-card__industry { color: var(--wp--preset--color--fog); }

.ced-card__title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0;
	color: var(--wp--preset--color--paper);
}
.ced-card__result {
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	color: var(--card-accent);
	letter-spacing: -0.005em;
	line-height: 1.4;
	margin: 0;
	padding-top: 0.65rem;
	border-top: 1px solid color-mix(in oklab, var(--card-accent) 18%, transparent);
}
.ced-card__view {
	margin-top: auto;
	padding-top: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--paper);
	transition: gap var(--wp--custom--transition--swift), color var(--wp--custom--transition--swift);
}
.ced-card:hover .ced-card__view { gap: 0.85rem; color: var(--card-accent); }

@media (max-width: 1024px) {
	.ced-card__title { font-size: clamp(1.4rem, 3.2vw, 1.85rem); }
}
@media (max-width: 640px) {
	.ced-card__title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
	.ced-card__media { aspect-ratio: 5 / 4; }
	.ced-card__placeholder { font-size: clamp(2.75rem, 18vw, 5rem); }
	.ced-card__body { padding: 1.1rem; gap: 0.7rem; }
	.ced-card__result { font-size: 0.9rem; padding-top: 0.5rem; }
}

/* Hide screen-reader-only content */
.screen-reader-text {
	clip: rect(1px,1px,1px,1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* ====================================================================
   Awwwards-style scroll-magic primitives
   Used together with assets/js/scroll-magic.js + per-section markup.
   ==================================================================== */

/* Magnetic element transform — composed from JS-set --ced-mag-x/y */
[data-magnetic] {
	transition: transform 280ms var(--ease-emph);
	transform: translate3d(var(--ced-mag-x, 0), var(--ced-mag-y, 0), 0);
}

/* Parallax element — JS sets --ced-parallax-y */
[data-parallax] {
	will-change: transform;
	transform: translate3d(0, var(--ced-parallax-y, 0), 0);
}

/* Composite parallax (other transforms preserved via custom prop) */
[data-parallax-compose] {
	will-change: transform;
	transform: translate3d(0, calc(var(--ced-base-y, 0px) + var(--ced-parallax-y, 0px)), 0);
}

/* Body color-section transition — JS updates --ced-section-color
   based on which [data-section-color] is in view. */
:root {
	--ced-section-color: var(--wp--preset--color--ink);
}
body {
	transition: background-color 720ms var(--ease-emph);
}

/* Counter readability lock — prevents layout shift while counting */
[data-counter] {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

/* Universal section header — used across colorful sections */
.ced-shead {
	display: grid;
	gap: var(--wp--preset--spacing--sm);
	max-width: 60ch;
	margin-bottom: var(--wp--preset--spacing--lg);
}
.ced-shead h2 {
	font-size: clamp(2.25rem, 5vw, 4.75rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.04;
	margin: 0;
}

/* ────────────────────────────────────────────────────────────
   Universal SWIPE INDICATOR — wraps any horizontal-scroll
   surface with a right-edge fade mask + an animated arrow that
   appears when there's more content to swipe to.

   Apply by adding [data-swipe-cue] on the scroll container.
   ──────────────────────────────────────────────────────────── */
[data-swipe-cue] {
	position: relative;
}
[data-swipe-cue]::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 48px;
	background: linear-gradient(
		to right,
		transparent 0%,
		var(--ced-swipe-fade, var(--wp--preset--color--graphite)) 80%
	);
	pointer-events: none;
	z-index: 2;
	opacity: 0.9;
	transition: opacity 320ms var(--ease-smooth);
}
[data-swipe-cue].at-end::after { opacity: 0; }

/* Floating arrow chip that pulses to indicate "swipe →" */
.ced-swipe-arrow {
	display: none;
	position: absolute;
	right: clamp(0.5rem, 2vw, 1rem);
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	display: grid;
	place-items: center;
	pointer-events: none;
	animation: ced-swipe-pulse 1.6s ease-in-out infinite;
	box-shadow: 0 0 0 0 rgba(212, 255, 79, 0.5);
}
@media (max-width: 1024px) {
	[data-swipe-cue]:not(.at-end) .ced-swipe-arrow { display: grid; }
}
@keyframes ced-swipe-pulse {
	0%, 100% { transform: translate(0, -50%);    box-shadow: 0 0 0 0 rgba(212, 255, 79, 0.5); }
	50%      { transform: translate(-4px, -50%); box-shadow: 0 0 0 8px rgba(212, 255, 79, 0); }
}

/* Scroll progress dots — sit below a carousel */
.ced-swipe-dots {
	display: none;
	gap: 0.4rem;
	justify-content: center;
	margin-top: 0.85rem;
}
@media (max-width: 1024px) {
	.ced-swipe-dots { display: flex; }
}
.ced-swipe-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(232, 229, 222, 0.25);
	transition: background 240ms, width 320ms var(--ease-emph);
}
.ced-swipe-dots span.is-on {
	background: var(--wp--preset--color--lime);
	width: 18px;
	border-radius: 4px;
}

/* Color-tinted button variants */
.ced-btn--coral    { background: var(--wp--preset--color--coral);    color: var(--wp--preset--color--ink); }
.ced-btn--coral:hover  { background: var(--wp--preset--color--paper); }
.ced-btn--sky      { background: var(--wp--preset--color--sky);      color: var(--wp--preset--color--ink); }
.ced-btn--sky:hover    { background: var(--wp--preset--color--paper); }
.ced-btn--lavender { background: var(--wp--preset--color--lavender); color: var(--wp--preset--color--ink); }
.ced-btn--lavender:hover { background: var(--wp--preset--color--paper); }
.ced-btn--sunset   { background: var(--wp--preset--color--sunset);   color: var(--wp--preset--color--ink); }
.ced-btn--sunset:hover { background: var(--wp--preset--color--paper); }

/* ====================================================================
   Section ambience tokens — each section sets a hue + tone via class.
   Provides a quick way to flip a section to a colorful theme without
   rewriting its layout.
   ==================================================================== */
.ced-tone-cream  { background: var(--wp--preset--color--cream);  color: var(--wp--preset--color--ink); }
.ced-tone-paper  { background: var(--wp--preset--color--paper);  color: var(--wp--preset--color--ink); }
.ced-tone-sage   { background: var(--wp--preset--color--sage);   color: var(--wp--preset--color--ink); }
.ced-tone-coral  { background: var(--wp--preset--color--coral);  color: var(--wp--preset--color--ink); }
.ced-tone-sunset { background: var(--wp--preset--color--sunset); color: var(--wp--preset--color--ink); }
.ced-tone-sky    { background: var(--wp--preset--color--sky);    color: var(--wp--preset--color--ink); }
.ced-tone-lav    { background: var(--wp--preset--color--lavender); color: var(--wp--preset--color--ink); }

/* When a tone is light, flip headings/links to ink for contrast */
.ced-tone-cream :where(h1,h2,h3,h4,h5,h6),
.ced-tone-paper :where(h1,h2,h3,h4,h5,h6),
.ced-tone-sage  :where(h1,h2,h3,h4,h5,h6),
.ced-tone-coral :where(h1,h2,h3,h4,h5,h6),
.ced-tone-sunset:where(h1,h2,h3,h4,h5,h6),
.ced-tone-sky   :where(h1,h2,h3,h4,h5,h6),
.ced-tone-lav   :where(h1,h2,h3,h4,h5,h6) {
	color: var(--wp--preset--color--ink);
}
