/*
 * Atlasserie motion layer: cinematic heroes, patterns, cursor and scroll effects.
 * Hidden starting states apply only under html.atl-js, which is never set for
 * visitors who prefer reduced motion. Without JavaScript everything is visible.
 */
:root {
	--atl-ink: var(--wp--preset--color--ink, #1D1D1F);
	--atl-ink-soft: var(--wp--preset--color--ink-soft, #6E6E73);
	--atl-paper: var(--wp--preset--color--paper, #FFFFFF);
	--atl-paper-deep: var(--wp--preset--color--paper-deep, #F5F5F7);
	--atl-blue: var(--wp--preset--color--highlight, #0071E3);
	--atl-accent: var(--atl-blue);
	--atl-display: var(--wp--preset--font-family--display, Inter, -apple-system, system-ui, sans-serif);
	--atl-gutter: clamp(14px, 2.6vw, 32px);
	--atl-wide: var(--wp--style--global--wide-size, 1320px);
	--atl-scrim-edge: var(--wp--custom--scrim-edge, 86%);
	--atl-glass-alpha: var(--wp--custom--glass-alpha, 72%);
	--atl-pattern-max: var(--wp--custom--pattern-max, .10);
	--atl-ease: cubic-bezier(.25, .1, .25, 1);
	--atl-ease-out: cubic-bezier(.16, 1, .3, 1);
}
.wp-site-blocks { overflow-x: clip; }

/* ------------------------------------------------------------------ hero frame: dark, cinematic */
.atl-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: var(--atl-hero-h); margin-block: 0 !important;
	background: #000; color: #F5F5F7;
	--atl-canvas: #FFFFFF;
}
.atl-hero--home { --atl-hero-h: max(580px, min(calc(86svh - 64px), 820px)); justify-content: center; }
.atl-hero--main { --atl-hero-h: clamp(420px, 56svh, 640px); }
.atl-hero--compact { --atl-hero-h: clamp(360px, 46svh, 520px); }

/* a. photo or mosaic, with a slow Ken Burns drift */
.atl-hero__media { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.atl-hero__media picture, .atl-hero__img { display: block; width: 100%; height: 100%; }
.atl-hero__img { object-fit: cover; object-position: 50% 55%; transform-origin: 55% 45%; will-change: transform; }
.atl-hero__mosaic { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: calc(50% - 6px); gap: 12px; padding: 12px; inset: -6% -4%; transform-origin: 50% 50%; will-change: transform; }
.atl-hero--home .atl-hero__mosaic { grid-auto-rows: calc(33.333% - 8px); }
.atl-hero__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.atl-hero__mosaic img:nth-child(odd) { transform: translateY(6%); }

/* chart mode: no photo yet; black with pattern and network */
.atl-hero--chart { background: radial-gradient(120% 90% at 50% 0%, #1D1D1F, #000 70%); }

/* b. pattern, revealed by a spotlight that follows the cursor */
.atl-hero__pattern {
	position: absolute; inset: 0; z-index: -3; pointer-events: none; color: #fff; opacity: var(--atl-pattern-max);
	-webkit-mask-image: radial-gradient(circle var(--atl-spot-r, 380px) at var(--mx, 70%) var(--my, 35%), #000 0%, rgba(0, 0, 0, .35) 65%, rgba(0, 0, 0, .35) 100%);
	mask-image: radial-gradient(circle var(--atl-spot-r, 380px) at var(--mx, 70%) var(--my, 35%), #000 0%, rgba(0, 0, 0, .35) 65%, rgba(0, 0, 0, .35) 100%);
}
.atl-pattern { display: block; width: 100%; height: 100%; }

/* c. network canvas */
.atl-hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }

/* d. scrim: under every line of text the photo is covered at >= 86% black, so white text stays above 4.5:1 */
.atl-hero__scrim {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	/* Measured rule: >= ~60% black behind any line of white text keeps 4.5:1 even over a white pixel. */
	background:
		linear-gradient(to right, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .62) 48%, rgba(0, 0, 0, 0) 78%),
		linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .35) 100%),
		rgba(0, 0, 0, .3);
}
.atl-hero--home .atl-hero__scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .86) 50%, rgba(0, 0, 0, .6) 100%); }
.atl-hero--chart .atl-hero__scrim { background: none; }
:where([dir="rtl"]) .atl-hero__scrim { transform: scaleX(-1); }

/* e. content */
.atl-hero__inner { width: 100%; max-width: calc(var(--atl-wide) + 2 * var(--atl-gutter)); margin-inline: auto; padding: 16px var(--atl-gutter) clamp(30px, 4.5vw, 60px); display: flex; flex-direction: column; gap: clamp(18px, 3vw, 36px); flex: 1; }
.atl-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: clamp(24px, 4vw, 56px); margin-top: auto; }
.atl-hero.has-card .atl-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
.atl-hero__content { max-width: 44rem; }
.atl-hero--home .atl-hero__inner { justify-content: center; }
.atl-hero--home .atl-hero__grid { margin-block: auto; }
.atl-hero--home .atl-hero__content { max-width: 52rem; }
.atl-hero--home:not(.has-card) .atl-hero__content { text-align: center; margin-inline: auto; }

.atl-hero__crumbs { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 8px; font-size: .8125rem; color: rgba(245, 245, 247, .72); }
.atl-hero__crumbs a { color: inherit; text-decoration: none; }
.atl-hero__crumbs a:hover { color: #fff; }
.atl-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.1875rem); letter-spacing: -0.01em; color: #F5F5F7; font-variant-numeric: tabular-nums; }
.atl-hero--home .atl-hero__eyebrow { color: #F5F5F7; }
.atl-hero--home .atl-hero__rose { stroke: #2997FF; }
.atl-hero__rose { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.atl-hero__title { font-family: var(--atl-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; margin: 0; text-wrap: balance; color: #F5F5F7; }
.atl-hero--home .atl-hero__title { font-size: clamp(2.75rem, 5.4vw, 5rem); }
.atl-hero--main .atl-hero__title { font-size: clamp(2.5rem, 6vw, 5rem); }
.atl-hero--compact .atl-hero__title { font-size: clamp(2.25rem, 5vw, 4rem); }
.atl-hero__lead { margin: 18px 0 0; max-width: 40ch; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.4; letter-spacing: -0.01em; color: rgba(245, 245, 247, .86); }
.atl-hero--home:not(.has-card) .atl-hero__lead { margin-inline: auto; }
.atl-hero--home .atl-hero__lead { max-width: 44ch; }
.atl-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.atl-hero--home:not(.has-card) .atl-hero__actions, .atl-hero--home:not(.has-card) .atl-hero__stats { justify-content: center; }
.atl-hero__stats { display: flex; flex-wrap: wrap; gap: 8px 48px; margin: 40px 0 0; }

.atl-hero__stats div { display: flex; flex-direction: column-reverse; }
.atl-hero__stats dd { margin: 0; font: 700 clamp(2rem, 3.4vw, 3rem)/1 var(--atl-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #F5F5F7; }
.atl-hero__stats dt { font-size: .9375rem; color: rgba(245, 245, 247, .7); margin-top: 6px; }
.atl-hero__search { display: flex; gap: 10px; margin-top: 26px; max-width: 34rem; }
.atl-hero__search input { flex: 1; min-width: 0; font: inherit; font-size: 1.125rem; padding: 14px 20px; border: 0; border-radius: 980px; background: rgba(255, 255, 255, .14); color: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.atl-hero__search input::placeholder { color: rgba(245, 245, 247, .6); }

/* the highlighted word: a subtle brand gradient that sweeps in */
.atl-draw { background: linear-gradient(90deg, #2997FF, #A78BFA 55%, #F472B6) 0 0 / 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero buttons */
.atl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 1.0625rem/1 var(--wp--preset--font-family--text, Inter, system-ui); letter-spacing: -0.01em; padding: 13px 22px; border-radius: 980px; border: 0; text-decoration: none; cursor: pointer; transition: background-color .2s var(--atl-ease), color .2s; }
.atl-hero .atl-btn--hero, .atl-btn--hero { background: var(--atl-blue); color: #fff; }
.atl-hero .atl-btn--hero:hover, .atl-hero .atl-btn--hero:focus-visible { background: #0077ED; color: #fff; text-decoration: none; }
.atl-hero .atl-btn--ghost, .atl-btn--ghost { background: transparent; color: #2997FF; padding-inline: 4px; }
.atl-btn--ghost::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); margin-left: 4px; }
.atl-hero .atl-btn--ghost:hover, .atl-hero .atl-btn--ghost:focus-visible { text-decoration: underline; color: #2997FF; background: transparent; }

/* the glass card */
.atl-glass {
	position: relative; padding: 22px; max-width: 360px; justify-self: end; width: 100%; border-radius: 24px; color: #F5F5F7;
	background: rgba(29, 29, 31, var(--atl-glass-a, .72));
	-webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.atl-glass__label { margin: 0 0 12px; font-weight: 600; font-size: .8125rem; color: #2997FF; }
.atl-glass__link { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.atl-glass__img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.atl-glass__title { font: 600 1.3rem/1.15 var(--atl-display); letter-spacing: -0.02em; }
.atl-glass__link:hover .atl-glass__title { text-decoration: underline; }
.atl-glass__meta { margin: 12px 0 0; font-size: .8125rem; font-weight: 500; color: rgba(245, 245, 247, .7); font-variant-numeric: tabular-nums; }
.atl-glass__text { margin: 8px 0 0; font-size: .9375rem; line-height: 1.45; color: rgba(245, 245, 247, .86); }
.atl-glass__spec { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; font-weight: 500; color: rgba(245, 245, 247, .8); }
.atl-glass__plate img { display: block; width: 100%; height: auto; border-radius: 16px; }
.atl-glass .atl-locator { margin: 0; border-radius: 14px; background: rgba(255, 255, 255, .9); }
.atl-hero--home .atl-hero__card { align-self: center; }

/* scroll cue */
.atl-hero__cue { position: absolute; left: 50%; bottom: 18px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 12px; }
.atl-hero__cue > span[aria-hidden] { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; }
.atl-hero--compact .atl-hero__cue, .atl-hero.has-card:not(.atl-hero--home) .atl-hero__cue { display: none; }
.atl-after-hero { scroll-margin-top: 70px; height: 0; }
.atl-after-hero:focus { outline: none; }

/* ------------------------------------------------------------------ patterns elsewhere */
.atl-pattern-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: currentColor; opacity: .08; }

/* ------------------------------------------------------------------ cursor effects */
[data-spot] { background-image: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--atl-blue) 7%, transparent), transparent 70%); }
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--atl-ease-out); transform-style: preserve-3d; }
[data-tilt].is-tilting { transition: transform .12s linear; }
[data-magnetic], .atl-magnetic .wp-block-button__link { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .4s var(--atl-ease-out), background-color .2s, color .2s; }
[data-drift] { transform: translate3d(0, var(--drift, 0px), 0); will-change: transform; }

/* reading progress */
.atl-progress { position: fixed; inset-inline: 0; top: var(--wp-admin--admin-bar--height, 0px); height: 2px; z-index: 60; background: var(--atl-blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
:where([dir="rtl"]) .atl-progress { transform-origin: 100% 50%; }

/* ------------------------------------------------------------------ scroll reveals (only with JS, never with reduced motion) */
.atl-js .reveal-mask { clip-path: inset(0 0 100% 0); transform: translate3d(0, .3em, 0); transition: clip-path 1.1s var(--atl-ease-out), transform 1.1s var(--atl-ease-out); }
.atl-js .blur-in { opacity: 0; filter: blur(10px); transform: translate3d(0, 12px, 0); transition: opacity 1s var(--atl-ease-out), filter 1s var(--atl-ease-out), transform 1s var(--atl-ease-out); }
.atl-js .grow { opacity: 0; transform: scale(.96); transition: opacity 1s var(--atl-ease-out), transform 1.2s var(--atl-ease-out); }
.atl-js .stagger > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s var(--atl-ease-out), transform .9s var(--atl-ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
.atl-js .draw :is(path, circle, line, polyline) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--atl-ease-out); }
.atl-js .atl-draw { background-size: 0% 100%; background-repeat: no-repeat; color: #F5F5F7; -webkit-text-fill-color: currentColor; transition: background-size 1.4s var(--atl-ease-out) .5s; }
.atl-js .reveal-mask.is-in { clip-path: inset(-.2em -.2em -.3em -.2em); transform: none; }
.atl-js .blur-in.is-in { opacity: 1; filter: none; transform: none; }
.atl-js .grow.is-in { opacity: 1; transform: none; }
.atl-js .stagger.is-in > * { opacity: 1; transform: none; }
.atl-js .draw.is-in :is(path, circle, line, polyline) { stroke-dashoffset: 0; }
.atl-js .is-in .atl-draw, .atl-js .atl-draw.is-in { background-size: 100% 100%; -webkit-text-fill-color: transparent; }
.atl-js .atl-hero .blur-in.atl-hero__lead { transition-delay: .2s; }
.atl-js .atl-hero .blur-in.atl-hero__actions { transition-delay: .35s; }
.atl-js .atl-hero .blur-in.atl-hero__stats { transition-delay: .5s; }
.atl-js .atl-hero .grow.atl-hero__card { transition-delay: .6s; }
.atl-js .grow.atl-hero__card.is-in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.atl-js :is(.reveal-mask, .blur-in, .grow, .stagger > *, .atl-draw):not(.is-in) { animation: atl-failsafe 0s 3.5s forwards; }
@keyframes atl-failsafe { to { opacity: 1; filter: none; transform: none; clip-path: none; background-size: 100% 100%; stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------ ambient motion */
@media (prefers-reduced-motion: no-preference) {
	.atl-hero__img { animation: atl-kenburns 40s ease-in-out infinite alternate; }
	.atl-hero__mosaic { animation: atl-drift 60s ease-in-out infinite alternate; }
	.atl-hero__cue > span[aria-hidden] { animation: atl-cue 2.2s var(--atl-ease) infinite; }
}
@keyframes atl-kenburns { from { transform: scale(1.03); } to { transform: scale(1.12) translate3d(-1.5%, -1.2%, 0); } }
@keyframes atl-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-3%, -2%, 0); } }
@keyframes atl-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.atl-hero__canvas { display: none; }
	[data-tilt], [data-magnetic], .atl-magnetic .wp-block-button__link, [data-drift] { transform: none !important; }
}

/* ------------------------------------------------------------------ small screens */
@media (max-width: 900px) {
	.atl-hero.has-card .atl-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.atl-glass { justify-self: start; }
	.atl-hero--home .atl-hero__card { display: none; }
	.atl-hero__mosaic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
	.atl-hero--home { --atl-hero-h: 86svh; }
	.atl-hero--main { --atl-hero-h: 64svh; }
	.atl-hero--compact { --atl-hero-h: 58svh; }
	.atl-hero__scrim, .atl-hero--home .atl-hero__scrim { background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .64) 60%, rgba(0, 0, 0, .64)); }
	.atl-hero:not(.atl-hero--home) .atl-hero__card { max-width: 220px; padding: 12px; }
	.atl-hero__stats { gap: 8px 28px; }
	.atl-hero__cue { display: none; }
	.atl-hero__search { flex-direction: column; }
	.atl-hero__mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media print {
	.atl-hero { min-height: 0 !important; background: none !important; color: #000 !important; }
	.atl-hero__media, .atl-hero__pattern, .atl-hero__canvas, .atl-hero__scrim, .atl-hero__cue, .atl-hero__card, .atl-progress { display: none !important; }
	.atl-hero__title { color: #000 !important; }
}
