/**
 * Sard Elementor widgets.
 *
 * Written with logical properties (inline-start/end, margin-inline) so every
 * widget mirrors correctly in Arabic without a separate RTL stylesheet.
 * Colours fall back to the theme's own variables when they exist.
 */

.sard-el {
	--sard-accent: var(--color-primary, #ff4739);
	--sard-muted: var(--slate-500, #64748b);
	--sard-line: var(--slate-200, #e2e8f0);
	--sard-ink: var(--slate-900, #0f172a);
	--sard-align: start;
	position: relative;
	box-sizing: border-box;
}
.sard-el *,
.sard-el *::before,
.sard-el *::after { box-sizing: border-box; }

.sard-el__inner { margin-inline: auto; width: 100%; }

.sard-el__head { margin-bottom: clamp(20px, 3vw, 40px); }
.sard-el__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sard-muted);
	margin-bottom: 10px;
}
.sard-el__title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 3.4vw, 3rem);
	line-height: 1.15;
	font-weight: 800;
	color: var(--sard-ink);
}
.sard-el__title-accent { color: var(--sard-accent); }
.sard-el__desc {
	margin: 0;
	max-width: 68ch;
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	line-height: 1.7;
	color: var(--sard-muted);
}
.sard-el[style*="center"] .sard-el__desc,
.sard-el__head[style*="center"] .sard-el__desc { margin-inline: auto; }

.sard-el__body { line-height: 1.8; }
.sard-el__body > :first-child { margin-top: 0; }
.sard-el__body > :last-child { margin-bottom: 0; }

.sard-el__caption {
	margin: 12px 0 0;
	font-size: 0.875rem;
	color: var(--sard-muted);
}

.sard-el__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
	justify-content: var(--sard-align);
}

.sard-el__hint {
	border: 1px dashed var(--sard-line);
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	color: var(--sard-muted);
	font-size: 0.875rem;
	margin: 0;
}

body.sard-no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
 * Heroes
 * ------------------------------------------------------------------------ */
.sard-hero {
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
}
.sard-hero .sard-el__title,
.sard-hero .sard-el__desc { color: inherit; }
.sard-hero__bg,
.sard-hero__layer {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.sard-hero__bg { width: 100%; height: 100%; object-fit: cover; }
.sard-hero__layer { will-change: transform; }
.sard-hero__tint {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.25));
	opacity: 0.55;
}
.sard-hero__content { position: relative; padding-block: clamp(32px, 6vw, 88px); }

.sard-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(20px, 4vw, 56px);
	margin: 28px 0 0;
}
.sard-hero__meta-item dt {
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.7;
	margin-bottom: 4px;
}
.sard-hero__meta-item dd { margin: 0; font-size: 1.0625rem; font-weight: 600; }

.sard-hero__cue {
	position: absolute;
	inset-inline-start: 50%;
	bottom: 24px;
	width: 26px;
	height: 42px;
	margin-inline-start: -13px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 14px;
}
.sard-hero__cue::after {
	content: "";
	position: absolute;
	inset-inline-start: 50%;
	top: 8px;
	width: 3px;
	height: 8px;
	margin-inline-start: -1.5px;
	border-radius: 2px;
	background: #fff;
	animation: sard-cue 1.8s ease-in-out infinite;
}
@keyframes sard-cue {
	0%, 100% { transform: translateY(0); opacity: 1; }
	60% { transform: translateY(12px); opacity: 0; }
}

/* --------------------------------------------------------------------------
 * Video
 * ------------------------------------------------------------------------ */
.sard-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #0f172a;
}
.sard-video__frame > iframe,
.sard-video__frame > video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }

.sard-video__poster {
	display: block;
	padding: 0;
	border: 0;
	cursor: pointer;
}
.sard-video__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sard-video__play {
	position: absolute;
	inset-inline-start: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	transition: transform 0.2s ease, background-color 0.2s ease;
}
[dir="rtl"] .sard-video__play { transform: translate(50%, -50%); }
.sard-video__play::after {
	content: "";
	position: absolute;
	inset-inline-start: 50%;
	top: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent var(--sard-ink);
}
[dir="rtl"] .sard-video__play::after { transform: translate(-60%, -50%) scaleX(-1); }
.sard-video__poster:hover .sard-video__play { background: #fff; transform: translate(-50%, -50%) scale(1.06); }

.sard-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(2, 6, 23, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
}
.sard-overlay__stage { width: min(1100px, 100%); }
.sard-overlay__stage iframe,
.sard-overlay__stage video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 10px;
	display: block;
	background: #000;
}
.sard-overlay__stage img {
	max-width: 100%;
	max-height: 85vh;
	margin-inline: auto;
	display: block;
	border-radius: 10px;
}
.sard-overlay__close {
	position: absolute;
	top: 16px;
	inset-inline-end: 20px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.sard-overlay__close:hover { background: rgba(255, 255, 255, 0.24); }

/* --------------------------------------------------------------------------
 * Masonry gallery
 * ------------------------------------------------------------------------ */
.sard-masonry { column-count: 3; column-gap: 16px; --sard-masonry-gap: 16px; }
.sard-masonry figure {
	margin: 0 0 var(--sard-masonry-gap);
	break-inside: avoid;
	overflow: hidden;
	border-radius: 12px;
	line-height: 0;
}
.sard-masonry img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease;
}
.sard-masonry a:hover img { transform: scale(1.04); }

/* --------------------------------------------------------------------------
 * Before / after
 * ------------------------------------------------------------------------ */
.sard-ba {
	--sard-ba-pos: 50%;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	user-select: none;
	touch-action: pan-y;
}
.sard-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sard-ba__clip {
	position: absolute;
	inset: 0;
	clip-path: inset(0 calc(100% - var(--sard-ba-pos)) 0 0);
}
[dir="rtl"] .sard-ba__clip { clip-path: inset(0 0 0 calc(100% - var(--sard-ba-pos))); }

.sard-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: var(--sard-ba-pos);
	width: 2px;
	margin-inline-start: -1px;
	background: #fff;
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.2);
}
.sard-ba__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-start: 50%;
	width: 42px;
	height: 42px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 12px rgba(2, 6, 23, 0.3);
}
[dir="rtl"] .sard-ba__handle::after { transform: translate(50%, -50%); }

.sard-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}
.sard-ba__range:focus-visible { opacity: 0.01; outline: 3px solid var(--sard-accent); outline-offset: -3px; }

.sard-ba__tag {
	position: absolute;
	top: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(2, 6, 23, 0.7);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	pointer-events: none;
}
.sard-ba__tag--before { inset-inline-start: 14px; }
.sard-ba__tag--after { inset-inline-end: 14px; }

/* --------------------------------------------------------------------------
 * Document embed
 * ------------------------------------------------------------------------ */
.sard-doc { border: 1px solid var(--sard-line); border-radius: 14px; overflow: hidden; }
.sard-doc__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 12px 16px;
	background: var(--slate-50, #f8fafc);
	border-bottom: 1px solid var(--sard-line);
}
.sard-doc__name { font-weight: 600; }
.sard-doc__frame { height: 720px; background: #f1f5f9; }
.sard-doc__frame > object { width: 100%; height: 100%; }
.sard-doc__fallback {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
	padding: 24px;
}

/* --------------------------------------------------------------------------
 * Title + text / narrative
 * ------------------------------------------------------------------------ */
.sard-el--title-text[data-layout="split"] .sard-titletext {
	display: grid;
	gap: clamp(24px, 4vw, 64px);
}
@media (min-width: 900px) {
	.sard-el--title-text[data-layout="split"] .sard-titletext { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
	.sard-el--title-text[data-layout="split"] .sard-el__head { margin-bottom: 0; }
}

.sard-narrative { display: grid; gap: clamp(20px, 3vw, 40px); }
.sard-narrative__text { line-height: 1.9; font-size: 1.0625rem; }
.sard-narrative__text > :first-child { margin-top: 0; }
.sard-narrative__text.has-drop-cap > p:first-of-type::first-letter {
	float: inline-start;
	font-size: 3.6em;
	line-height: 0.82;
	font-weight: 800;
	margin-inline-end: 10px;
	margin-block-start: 6px;
	color: var(--sard-accent);
}
.sard-narrative__quote {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	line-height: 1.5;
	font-weight: 600;
	border-inline-start: 3px solid var(--sard-accent);
	padding-inline-start: 20px;
	color: var(--sard-ink);
}
@media (min-width: 1000px) {
	.sard-narrative { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: start; }
	.sard-narrative__quote { position: sticky; top: 120px; }
}

/* --------------------------------------------------------------------------
 * Numbered highlights
 * ------------------------------------------------------------------------ */
.sard-highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
}
.sard-highlight { position: relative; padding-top: 14px; border-top: 2px solid var(--sard-line); }
.sard-highlight__num {
	display: block;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--sard-accent);
	margin-bottom: 12px;
	font-variant-numeric: tabular-nums;
}
.sard-highlight__title { margin: 0 0 8px; font-size: 1.1875rem; font-weight: 700; color: var(--sard-ink); }
.sard-highlight__text { margin: 0; line-height: 1.7; color: var(--sard-muted); }

/* --------------------------------------------------------------------------
 * Accordion
 * ------------------------------------------------------------------------ */
.sard-acc { border-top: 1px solid var(--sard-line); }
.sard-acc__item { border-bottom: 1px solid var(--sard-line); }
.sard-acc__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--sard-ink);
	list-style: none;
}
.sard-acc__q::-webkit-details-marker { display: none; }
.sard-acc__icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
.sard-acc__icon::before,
.sard-acc__icon::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 8px;
	width: 18px;
	height: 2px;
	background: var(--sard-accent);
	transition: transform 0.25s ease;
}
.sard-acc__icon::after { transform: rotate(90deg); }
.sard-acc__item[open] .sard-acc__icon::after { transform: rotate(0deg); }
.sard-acc__a { padding: 0 0 20px; line-height: 1.8; color: var(--sard-muted); max-width: 72ch; }
.sard-acc__a > :first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
 * Sticky scrollspy nav
 * ------------------------------------------------------------------------ */
.sard-spy { position: sticky; top: 100px; }
.sard-spy__title {
	margin: 0 0 14px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sard-muted);
}
.sard-spy__progress {
	display: block;
	width: 2px;
	height: 40px;
	background: var(--sard-line);
	margin-bottom: 14px;
	border-radius: 2px;
	overflow: hidden;
}
.sard-spy__progress > span { display: block; width: 100%; background: var(--sard-accent); height: 0; }
.sard-spy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sard-spy__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	text-decoration: none;
	color: var(--sard-muted);
	font-size: 0.9375rem;
	transition: color 0.2s ease;
}
.sard-spy__dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sard-line);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.sard-spy__link:hover { color: var(--sard-ink); }
.sard-spy__link.is-active { color: var(--sard-ink); font-weight: 600; }
.sard-spy__link.is-active .sard-spy__dot { background: var(--sard-accent); transform: scale(1.6); }

/* --------------------------------------------------------------------------
 * Palette + type sheet
 * ------------------------------------------------------------------------ */
.sard-palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sard-swatch { display: flex; flex-direction: column; gap: 6px; }
.sard-swatch__chip {
	position: relative;
	display: block;
	width: 100%;
	height: 140px;
	border: 1px solid rgba(2, 6, 23, 0.08);
	border-radius: 12px;
	padding: 0;
	cursor: pointer;
}
button.sard-swatch__chip:hover { transform: translateY(-2px); transition: transform 0.2s ease; }
.sard-swatch__copied {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(2, 6, 23, 0.72);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.sard-swatch__chip.is-copied .sard-swatch__copied { opacity: 1; }
.sard-swatch__name { font-weight: 600; color: var(--sard-ink); }
.sard-swatch__hex { font-size: 0.8125rem; color: var(--sard-muted); font-family: var(--font-mono, monospace); }
.sard-swatch__note { font-size: 0.8125rem; color: var(--sard-muted); line-height: 1.5; }

.sard-typesheet { display: grid; gap: 0; }
.sard-type {
	display: flex;
	align-items: baseline;
	gap: clamp(16px, 3vw, 40px);
	padding: 20px 0;
	border-bottom: 1px solid var(--sard-line);
}
.sard-type:first-child { border-top: 1px solid var(--sard-line); }
.sard-type__specimen { line-height: 1; font-weight: 700; color: var(--sard-ink); }
.sard-type__info { display: flex; flex-direction: column; gap: 4px; }
.sard-type__name { color: var(--sard-ink); }
.sard-type__meta { font-size: 0.8125rem; color: var(--sard-muted); }

/* --------------------------------------------------------------------------
 * Tech stack
 * ------------------------------------------------------------------------ */
.sard-stack {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.sard-stack__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	height: 100%;
	padding: 22px 16px;
	border: 1px solid var(--sard-line);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
a.sard-stack__inner:hover { border-color: var(--sard-accent); transform: translateY(-3px); }
.sard-stack__icon { font-size: 30px; line-height: 1; color: var(--sard-accent); }
.sard-stack__icon img { width: 40px; height: 40px; object-fit: contain; }
.sard-stack__icon svg { width: 30px; height: 30px; }
.sard-stack__name { font-weight: 600; color: var(--sard-ink); }
.sard-stack__role { font-size: 0.8125rem; color: var(--sard-muted); }

/* --------------------------------------------------------------------------
 * Roadmap
 * ------------------------------------------------------------------------ */
.sard-road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sard-road__item {
	position: relative;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease var(--sard-delay, 0ms), transform 0.5s ease var(--sard-delay, 0ms);
}
.sard-road__item.is-in { opacity: 1; transform: none; }
.sard-road__marker {
	position: absolute;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--sard-line);
	z-index: 1;
}
.sard-road__item.is-done .sard-road__marker { border-color: var(--sard-accent); background: var(--sard-accent); }
.sard-road__item.is-current .sard-road__marker {
	border-color: var(--sard-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--sard-accent) 22%, transparent);
}
.sard-road__date {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sard-accent);
	margin-bottom: 6px;
}
.sard-road__title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 700; color: var(--sard-ink); }
.sard-road__text { margin: 0; line-height: 1.7; color: var(--sard-muted); }

/* Vertical (and horizontal below the tablet breakpoint) */
.sard-road--vertical .sard-road__item,
.sard-road--horizontal .sard-road__item {
	padding-inline-start: 34px;
	padding-bottom: 30px;
	border-inline-start: 2px solid var(--sard-line);
}
.sard-road--vertical .sard-road__marker,
.sard-road--horizontal .sard-road__marker { inset-inline-start: -8px; top: 2px; }
.sard-road__item:last-child { padding-bottom: 0; border-inline-start-color: transparent; }

@media (min-width: 860px) {
	.sard-road--horizontal { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
	.sard-road--horizontal .sard-road__item {
		padding-inline-start: 0;
		padding-top: 34px;
		padding-inline-end: 24px;
		padding-bottom: 0;
		border-inline-start: 0;
		border-top: 2px solid var(--sard-line);
	}
	.sard-road--horizontal .sard-road__marker { inset-inline-start: 0; top: -8px; }
	.sard-road--horizontal .sard-road__item:last-child { border-top-color: var(--sard-line); padding-inline-end: 0; }
}

/* --------------------------------------------------------------------------
 * CTA banner
 * ------------------------------------------------------------------------ */
.sard-cta {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: var(--sard-ink);
	color: #fff;
	padding: clamp(32px, 5vw, 72px);
	isolation: isolate;
}
.sard-cta__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.35;
}
.sard-cta .sard-el__title,
.sard-cta .sard-el__desc { color: inherit; }
.sard-cta .sard-el__desc { opacity: 0.85; }
.sard-cta__content { position: relative; }

/* --------------------------------------------------------------------------
 * Metrics
 * ------------------------------------------------------------------------ */
.sard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.sard-metric { display: flex; flex-direction: column; gap: 6px; }
.sard-metric__value {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 800;
	line-height: 1;
	color: var(--sard-accent);
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	justify-content: var(--sard-align);
}
.sard-metric__label { font-size: 0.9375rem; color: var(--sard-muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
 * Testimonial
 * ------------------------------------------------------------------------ */
.sard-quote {
	position: relative;
	margin: 0;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--sard-line);
	border-radius: 18px;
	background: var(--slate-50, #f8fafc);
}
.sard-quote__mark {
	position: absolute;
	top: 6px;
	inset-inline-start: 20px;
	font-size: 84px;
	line-height: 1;
	color: var(--sard-accent);
	opacity: 0.16;
	pointer-events: none;
}
.sard-quote__rating { display: block; margin-bottom: 12px; color: #f59e0b; letter-spacing: 2px; }
.sard-quote__text {
	position: relative;
	margin: 0;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	line-height: 1.6;
	font-weight: 600;
	color: var(--sard-ink);
}
.sard-quote__by {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	justify-content: var(--sard-align);
}
.sard-quote__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sard-quote__author { display: block; color: var(--sard-ink); }
.sard-quote__role { display: block; font-size: 0.875rem; color: var(--sard-muted); }

/* --------------------------------------------------------------------------
 * Project navigation
 * ------------------------------------------------------------------------ */
.sard-pnav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: clamp(12px, 3vw, 32px);
	border-top: 1px solid var(--sard-line);
	padding-top: 28px;
}
.sard-pnav__item {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}
.sard-pnav__item--next { flex-direction: row-reverse; text-align: end; justify-self: end; }
.sard-pnav__item.is-empty { display: block; }
.sard-pnav__thumb {
	flex: 0 0 auto;
	width: 76px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--sard-line);
}
.sard-pnav__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sard-pnav__text { min-width: 0; }
.sard-pnav__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sard-muted);
	margin-bottom: 3px;
}
.sard-pnav__title {
	display: block;
	font-weight: 700;
	color: var(--sard-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sard-pnav__item:hover .sard-pnav__title { color: var(--sard-accent); }
.sard-pnav__all {
	white-space: nowrap;
	text-decoration: none;
	font-weight: 600;
	color: var(--sard-muted);
	border: 1px solid var(--sard-line);
	border-radius: 999px;
	padding: 9px 18px;
}
.sard-pnav__all:hover { color: var(--sard-ink); border-color: var(--sard-ink); }

@media (max-width: 700px) {
	.sard-pnav { grid-template-columns: 1fr; }
	.sard-pnav__item--next { flex-direction: row; text-align: start; justify-self: start; }
	.sard-pnav__all { justify-self: center; }
}

/* --------------------------------------------------------------------------
 * Motion preferences
 * ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.sard-road__item { opacity: 1; transform: none; transition: none; }
	.sard-hero__cue::after { animation: none; }
	.sard-masonry img,
	.sard-stack__inner { transition: none; }
}
