/*
 * Sneaky Humans landscapes (SPEC-STRATEGY S3, Lane L, 20 Nov 2026): the five scenes, the hero backdrop and the
 * demo-only studio. Every selector starts with an hxl class (nothing else in the theme uses it). Sneaky night palette;
 * no Helpers pink. Motion: only under prefers-reduced-motion: no-preference, finite (each scene plays once on arrival
 * and settles within 5 s), transform, opacity and stroke-dashoffset only, armed by landscapes.js (.is-on). Without
 * JavaScript, or under reduced motion, every scene is complete and still.
 */

/* ---------- the scenes ---------- */
.hxl { display: block; width: 100%; height: 100%; overflow: hidden; }

/* the hero backdrop: along the bottom of a position: relative; isolation: isolate container (the night hero) */
.hxl-hero { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: var(--hxl-hero-h, clamp(240px, 56%, 600px)); opacity: var(--hxl-hero-o, .92); pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 48%); mask-image: linear-gradient(180deg, transparent, #000 48%); }
.hxl-hero .hxl { position: absolute; inset: 0; }
@media (max-width: 767px) { .hxl-hero { height: var(--hxl-hero-h-sm, clamp(200px, 36%, 360px)); } }

@media (prefers-reduced-motion: no-preference) {
	.hxl.is-on .hxl-line path { stroke-dasharray: 1; animation: hxl-draw 1.7s cubic-bezier(.2, .7, .2, 1) .3s both; }
	.hxl.is-on .hxl-tw { animation: hxl-tw 1.6s ease-in-out 2; }
	.hxl.is-on .hxl-tw:nth-of-type(3n + 2) { animation-delay: .5s; }
	.hxl.is-on .hxl-tw:nth-of-type(3n) { animation-delay: 1s; }
	.hxl.is-on .hxl-rise { animation: hxl-rise 2.6s cubic-bezier(.2, .7, .2, 1) both; }
	.hxl.is-on .hxl-drift { animation: hxl-drift 4.6s cubic-bezier(.2, .7, .2, 1) both; }
	.hxl.is-on .hxl-shim { transform-box: fill-box; transform-origin: center; animation: hxl-shim 2.2s ease-in-out 2; }
	.hxl.is-on .hxl-shim--b { animation-delay: .5s; }
	.hxl.is-on .hxl-beam { animation: hxl-fade 2.4s ease-out .4s both; }
	.hxl.is-on .hxl-lit { animation: hxl-fade .5s ease-out .5s both; }
	.hxl.is-on .hxl-lit--2 { animation-delay: 1.1s; }
	.hxl.is-on .hxl-lit--3 { animation-delay: 1.7s; }
	.hxl.is-on .hxl-lit--4 { animation-delay: 2.3s; }
	.hxl.is-on .hxl-pop { transform-box: fill-box; transform-origin: center; animation: hxl-pop .7s cubic-bezier(.34, 1.56, .64, 1) 1.8s both; }
	@keyframes hxl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
	@keyframes hxl-tw { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
	@keyframes hxl-rise { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
	@keyframes hxl-drift { from { transform: translateX(-36px); } to { transform: none; } }
	@keyframes hxl-shim { 0%, 100% { transform: none; } 50% { transform: translateX(8px) scaleX(.82); } }
	@keyframes hxl-fade { from { opacity: 0; } to { opacity: 1; } }
	@keyframes hxl-pop { from { transform: scale(0); } to { transform: none; } }
	.hxl-studio .hxl-st-opt .hxl-st-thumb, .hxl-studio .hxl-st-btn { transition: box-shadow .18s, transform .18s cubic-bezier(.2, .7, .2, 1), background-color .18s, border-color .18s; }
	.hxl-studio .hxl-st-opt:hover .hxl-st-thumb { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
	.hxl.is-on *, .hxl.is-on .hxl-line path { animation: none; }
	.hxl-studio .hxl-st-opt .hxl-st-thumb, .hxl-studio .hxl-st-btn { transition: none; }
}
@media print { .hxl-hero { display: none; } }

/* ---------- the studio (demo pages only) ---------- */
.hxl-studio { container: hxl / inline-size; --hxl-ink: #f4f9fb; --hxl-copy: #c3d4dd; --hxl-soft: #9fb6c4; --hxl-teal: #6fd3bd; position: relative; display: grid; gap: clamp(18px, 2.4vw, 28px); min-width: 0; margin: 0; padding: clamp(18px, 3vw, 36px); border-radius: 28px; border: 1px solid rgba(232, 241, 245, .12); background: radial-gradient(55% 70% at 88% 0%, rgba(63, 179, 157, .16), rgba(63, 179, 157, 0) 70%), radial-gradient(40% 60% at 0% 100%, rgba(78, 166, 236, .12), rgba(78, 166, 236, 0) 70%), linear-gradient(180deg, #112839, #0c1d2a); box-shadow: 0 40px 80px -50px rgba(4, 12, 18, .9); color: var(--hxl-copy); font: 400 16px/1.55 var(--sl-text, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif); text-align: left; }
.hxl-studio *, .hxl-studio *::before, .hxl-studio *::after { box-sizing: border-box; }
.hxl-studio p { margin: 0; }
.hxl-studio .sl-i { flex: none; width: 18px; height: 18px; }
.hxl-studio .hxl-st-head { display: grid; gap: 10px; max-width: 72ch; }
.hxl-studio .hxl-st-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 750 13px/1.2 var(--sl-text, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #8fd3ef; }
.hxl-studio .hxl-st-tag { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 217, 138, .45); background: rgba(255, 217, 138, .12); color: #ffd98a; letter-spacing: .06em; }
.hxl-studio .hxl-st-h { margin: 0; font: 800 clamp(1.45rem, 1.05rem + 1.4vw, 2.15rem)/1.08 var(--sl-display, sans-serif); letter-spacing: -.02em; color: var(--hxl-ink); }
.hxl-studio .hxl-st-lead { max-width: 64ch; color: var(--hxl-copy); }
.hxl-studio .hxl-st-label, .hxl-studio .hxl-st-note, .hxl-studio .hxl-st-nojs { display: flex; align-items: flex-start; gap: 9px; font: 600 14.5px/1.5 var(--sl-text, sans-serif); color: #d8e5ec; }
.hxl-studio .hxl-st-label .sl-i, .hxl-studio .hxl-st-note .sl-i, .hxl-studio .hxl-st-nojs .sl-i { margin-top: 2px; color: var(--hxl-teal); }

/* preview: the banner as it will look (the text block sits right of centre, clear of where networks place a photo) */
.hxl-studio .hxl-st-stage { display: grid; gap: 10px; min-width: 0; margin: 0; }
.hxl-studio .hxl-st-frame { position: relative; container-type: inline-size; aspect-ratio: 8 / 3; overflow: hidden; border-radius: 20px; background: #0a1824; box-shadow: 0 0 0 1px rgba(232, 241, 245, .1), 0 30px 60px -36px rgba(0, 0, 0, .9); }
.hxl-studio .hxl-st-art { position: absolute; inset: 0; }
.hxl-studio .hxl-st-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(46% 66% at 78% 40%, rgba(10, 24, 36, .4), rgba(10, 24, 36, 0) 72%); }
.hxl-studio .hxl-st-text { position: absolute; z-index: 2; right: 5cqw; top: 40%; display: grid; justify-items: end; gap: 1.1cqw; max-width: 54cqw; transform: translateY(-50%); text-align: right; }
.hxl-studio .hxl-st-text b { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 5cqw/1 var(--sl-display, sans-serif); letter-spacing: -.025em; color: #f4f9fb; text-shadow: 0 2px 18px rgba(4, 12, 18, .45); }
.hxl-studio .hxl-st-text span[data-hxl-out] { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 2.1cqw/1.2 var(--sl-display, sans-serif); color: #8fd3ef; text-shadow: 0 1px 12px rgba(4, 12, 18, .75); }
.hxl-studio .hxl-st-rule { display: block; width: 11cqw; height: .5cqw; min-height: 3px; border-radius: 9px; background: linear-gradient(90deg, #3fb39d, #6ec4e8 50%, #4ea6ec); }
.hxl-studio .hxl-st-credit { position: absolute; z-index: 2; right: 5cqw; bottom: 4.2cqw; font: 700 max(12px, 1.25cqw)/1 var(--sl-display, sans-serif); letter-spacing: .01em; color: rgba(232, 241, 245, .9); text-shadow: 0 1px 10px rgba(4, 12, 18, .8); }
.hxl-studio .hxl-st-text b.is-empty { color: rgba(244, 249, 251, .7); }
.hxl-studio .hxl-st-text span.is-empty { color: rgba(143, 211, 239, .7); }
.hxl-studio .hxl-st-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font: 600 14.5px/1.4 var(--sl-text, sans-serif); font-style: normal; color: var(--hxl-soft); }
.hxl-studio .hxl-st-cap b { font: 750 16px/1.3 var(--sl-display, sans-serif); color: var(--hxl-ink); }

/* controls */
.hxl-studio .hxl-st-controls { display: grid; gap: clamp(18px, 2.4vw, 28px); min-width: 0; }
@container hxl (min-width: 860px) { .hxl-studio .hxl-st-try { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.hxl-studio fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.hxl-studio .hxl-st-legend { display: block; float: none; width: auto; margin: 0 0 12px; padding: 0; font: 750 16px/1.3 var(--sl-display, sans-serif); color: var(--hxl-ink); }
.hxl-studio .hxl-st-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@container hxl (min-width: 500px) { .hxl-studio .hxl-st-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container hxl (min-width: 760px) { .hxl-studio .hxl-st-opts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hxl-studio .hxl-st-opt { position: relative; display: grid; gap: 8px; align-content: start; min-width: 0; margin: 0; line-height: 1.3; vertical-align: top; cursor: pointer; }
.hxl-studio .hxl-st-opt input { position: absolute; top: 8px; left: 8px; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.hxl-studio .hxl-st-thumb { position: relative; display: block; aspect-ratio: 8 / 3; overflow: hidden; border-radius: 12px; background: #0a1824; box-shadow: 0 0 0 1px rgba(232, 241, 245, .16); }
.hxl-studio .hxl-st-opt input:checked + .hxl-st-thumb { box-shadow: 0 0 0 3px var(--hxl-teal), 0 14px 30px -18px rgba(0, 0, 0, .9); }
.hxl-studio .hxl-st-opt input:focus-visible + .hxl-st-thumb { outline: 2px solid #122c3a; outline-offset: 3px; box-shadow: 0 0 0 3px var(--hxl-teal), 0 0 0 5px #fff; }
.hxl-studio .hxl-st-name { font: 650 14px/1.3 var(--sl-text, sans-serif); color: var(--hxl-copy); }
.hxl-studio .hxl-st-opt input:checked ~ .hxl-st-name { color: var(--hxl-ink); font-weight: 750; }
.hxl-studio .hxl-st-try { display: grid; gap: 22px; min-width: 0; }
.hxl-studio .hxl-st-try[hidden], .hxl-studio .hxl-st-nojs[hidden] { display: none; }
.hxl-studio .hxl-st-fields { display: grid; gap: 12px; }
.hxl-studio .hxl-st-fields .hxl-st-legend { margin-bottom: 2px; }
.hxl-studio .hxl-st-field { display: grid; gap: 6px; margin: 0; font: 650 14px/1.3 var(--sl-text, sans-serif); color: #d8e5ec; vertical-align: top; }
.hxl-studio .hxl-st-field input { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid rgba(232, 241, 245, .3); border-radius: 14px; background: #fff; box-shadow: none; color: #122c3a; font: 500 16px/1.2 var(--sl-text, sans-serif); transition: none; }
.hxl-studio .hxl-st-field input::placeholder { color: #587183; opacity: 1; }
.hxl-studio .hxl-st-field input:focus { border-color: #8fd3ef; }
.hxl-studio .hxl-st-dl .hxl-st-legend { margin-bottom: 10px; }
.hxl-studio .hxl-st-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hxl-studio .hxl-st-btn, .hxl-studio .hxl-st-btn:is(:hover, :focus, :active, :visited) { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 18px 0 14px; border: 1.5px solid rgba(232, 241, 245, .45); border-radius: 999px; background: rgba(255, 255, 255, .04); color: #f4f9fb; font: 700 15px/1.1 var(--sl-text, sans-serif); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; }
.hxl-studio .hxl-st-btn:is(:hover, :focus-visible) { border-color: #e8f1f5; background: rgba(255, 255, 255, .12); }
.hxl-studio .hxl-st-btn .sl-i { color: var(--hxl-teal); }
.hxl-studio .hxl-st-btn-s { font: 600 12.5px/1 var(--sl-text, sans-serif); color: var(--hxl-soft); }
.hxl-studio .hxl-st-btn[aria-busy="true"] { cursor: progress; opacity: .7; }
.hxl-studio .hxl-st-status { min-height: 1.5em; margin-top: 10px; font: 600 14px/1.5 var(--sl-text, sans-serif); color: var(--hxl-teal); }
.hxl-studio .hxl-st-status.is-error { color: #ffd98a; }

@media (max-width: 599px) { .hxl-studio { border-radius: 22px; } }
@container hxl (max-width: 560px) {
	.hxl-studio .hxl-st-frame { aspect-ratio: 2 / 1; border-radius: 16px; }
	.hxl-studio .hxl-st-text { right: 6cqw; max-width: 60cqw; gap: 1.6cqw; }
	.hxl-studio .hxl-st-text b { font-size: 7.2cqw; }
	.hxl-studio .hxl-st-text span[data-hxl-out] { font-size: 3.4cqw; }
	.hxl-studio .hxl-st-rule { width: 16cqw; }
	.hxl-studio .hxl-st-credit { right: 6cqw; bottom: 5.5cqw; }
	.hxl-studio .hxl-st-btn { flex: 1 1 100%; justify-content: flex-start; }
}

/* ---------- the studio's place on the marketplace profile (humans/render/profile.php, 21 Nov 2026) ---------- */
/* under the profile body (which keeps its own bottom padding), with room before "Keep exploring" */
.hxl-place { padding-block-end: clamp(48px, 6vw, 80px); }
