/* ------------------------------------------------------------------
   taallem.com, the world home page. Loaded after pays.css (the header, the
   themes, the footer). The film and the command post are always dark, like
   a cinema screen; the agents and the countries follow the visitor's theme.
   ------------------------------------------------------------------ */

.page-world main {
	padding-top: 0;
}

/* Over the film the header stays light, even in the light theme, until the page scrolls. */
:root[data-theme='light']:not(.scrolled) .page-world .site-header:not(:has(.nav-menu[open])) {
	--fg: #fff;
	--fg-hover: #93c5fd;
}

/* Once scrolled, the header passes over dark sections: plain white, not the frosted one. */
:root[data-theme='light'].scrolled .page-world .site-header {
	background: #fff;
}

/* ---------- the three looks ----------
   <html data-look>: "stick" (a film of stick figures drawn by stick.js), "pro" (an office
   film, for companies) or "film" (the giant robot). The page holds the three: what differs is
   written once per look, and only the pieces of the current look show. The rules of this file
   draw the film look; the professional and the stick man looks are the last two sections. */

html:not([data-look='stick']) .w-only-stick,
html:not([data-look='pro']) .w-only-pro,
html:not([data-look='film']) .w-only-film,
html[data-look='pro'] .w-not-pro {
	display: none !important;
}

/* ---------- shared pieces ---------- */

.w-kicker {
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.w-title {
	margin-top: 0.6rem;
	color: var(--ink);
	font: 700 clamp(1.9rem, 4vw, 3.1rem) / 1.1 var(--sans);
	letter-spacing: -0.025em;
}

.w-lead {
	max-width: 44rem;
	margin-top: 0.9rem;
	color: var(--muted);
	font-size: 1.05rem;
}

.w-section {
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

.w-center {
	margin-top: 2.2rem;
	text-align: center;
}

.w-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #059669);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 10px 30px -10px rgb(37 99 235 / 0.7);
	transition: transform 0.2s, box-shadow 0.2s;
}

.w-btn:hover,
.w-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 36px -10px rgb(16 185 129 / 0.65);
}

.w-btn-ghost {
	border: 1px solid rgb(255 255 255 / 0.35);
	background: rgb(255 255 255 / 0.08);
	box-shadow: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ---------- the film ---------- */

.w-hero {
	position: relative;
	display: grid;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
	background: #030712;
	color: #f8fafc;
}

.w-hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The giant stands right of centre: keep it in the frame on narrow screens. */
	object-position: 66% 50%;
}

/* The film fades in over its first frame (the still image) once it plays. */
video.w-hero-media {
	opacity: 0;
	transition: opacity 0.9s;
}

.w-hero.is-playing video.w-hero-media {
	opacity: 1;
}

.w-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgb(3 7 18 / 0.92) 0%, rgb(3 7 18 / 0.62) 36%, rgb(3 7 18 / 0) 68%),
		linear-gradient(0deg, #030712 0%, rgb(3 7 18 / 0) 26%),
		linear-gradient(180deg, rgb(3 7 18 / 0.6) 0%, rgb(3 7 18 / 0) 18%);
	pointer-events: none;
}

.w-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	padding-block: 7.5rem 5.5rem;
}

.w-hero-text {
	max-width: 39rem;
}

.w-hero .w-kicker {
	color: #67e8f9;
}

.w-h1 {
	margin-top: 1rem;
	color: #fff;
	font: 700 clamp(2.5rem, 6.2vw, 4.9rem) / 1.04 var(--sans);
	letter-spacing: -0.03em;
}

.w-h1 em {
	display: block;
	background: linear-gradient(90deg, #60a5fa, #34d399);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-style: normal;
}

.w-hero-lead {
	max-width: 34rem;
	margin-top: 1.4rem;
	color: #cbd5e1;
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.6;
}

.w-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.w-hero-credit {
	position: absolute;
	inset-inline-end: 1rem;
	bottom: 0.9rem;
	z-index: 2;
	color: rgb(255 255 255 / 0.55);
	font-size: 0.72rem;
}

.w-hero-pause {
	position: absolute;
	inset-inline-end: 1rem;
	bottom: 2.7rem;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: 50%;
	background: rgb(3 7 18 / 0.45);
	color: #fff;
	cursor: pointer;
}

.w-hero-pause[hidden] {
	display: none;
}

/* The button that shows the other look, at the foot of the film, under the text. */
.w-hero-foot {
	position: absolute;
	inset-inline: 0;
	bottom: 1.1rem;
	z-index: 3;
	pointer-events: none;
}

.w-looks {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.28rem;
	border: 1px solid rgb(255 255 255 / 0.3);
	border-radius: 999px;
	background: rgb(3 7 18 / 0.6);
	pointer-events: auto;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.w-looks[hidden] {
	display: none;
}

.w-looks-label {
	padding-inline: 0.7rem 0.4rem;
	color: rgb(255 255 255 / 0.7);
	font: 600 0.72rem var(--sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.w-looks button {
	padding: 0.42rem 0.9rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #e2e8f0;
	font: 600 0.82rem var(--sans);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.w-looks button:hover,
.w-looks button:focus-visible {
	background: rgb(255 255 255 / 0.14);
	color: #fff;
}

.w-looks button[aria-pressed='true'] {
	background: #fff;
	color: #0b1220;
}

.w-hero-pause svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.w-hero-pause .w-ico-play,
.w-hero-pause[aria-pressed='true'] .w-ico-pause {
	display: none;
}

.w-hero-pause[aria-pressed='true'] .w-ico-play {
	display: block;
	fill: currentColor;
}

@media (max-width: 720px) {
	.w-hero-media {
		object-position: 70% 30%;
	}

	.w-hero::after {
		background:
			linear-gradient(0deg, #030712 0%, rgb(3 7 18 / 0.86) 38%, rgb(3 7 18 / 0.2) 72%),
			linear-gradient(180deg, rgb(3 7 18 / 0.6) 0%, rgb(3 7 18 / 0) 18%);
	}

	.w-hero-inner {
		align-items: end;
		padding-block: 6rem 4.6rem;
	}
}

/* ---------- the command post ---------- */

.w-command {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
	background: #030712;
	color: #e2e8f0;
}

/* Behind the stage: the army, far away in the dark. */
.w-command::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, #030712 0%, rgb(3 7 18 / 0.8) 28%, rgb(3 7 18 / 0.9) 70%, #030712 100%),
		url('/army.webp') center / cover no-repeat;
}

.w-command .w-kicker {
	color: #67e8f9;
}

.w-command .w-title {
	color: #fff;
}

.w-command .w-lead {
	color: #94a3b8;
}

.w-stage {
	margin-top: 2.5rem;
}

.w-chief {
	display: grid;
	grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	max-width: 54rem;
	margin-inline: auto;
	padding: 1.1rem;
	border: 1px solid rgb(148 163 184 / 0.22);
	border-radius: 1.4rem;
	background: rgb(15 23 42 / 0.74);
	box-shadow: 0 0 0 1px rgb(59 130 246 / 0.12), 0 30px 80px -30px rgb(37 99 235 / 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.w-stage.is-commanding .w-chief {
	animation: w-pulse 1.6s ease-in-out infinite;
}

.w-chief-pic {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	border-radius: 1rem;
	object-fit: cover;
}

.w-chief-name {
	color: #67e8f9;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.w-chief-line {
	min-height: 3.2em;
	margin-top: 0.45rem;
	color: #f8fafc;
	font-size: 1.08rem;
	font-weight: 500;
	line-height: 1.5;
}

.w-order {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.9rem;
}

.w-order[hidden],
.w-missions[hidden] {
	display: none;
}

.w-order input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.75rem 1.1rem;
	border: 1px solid rgb(148 163 184 / 0.35);
	border-radius: 999px;
	background: rgb(2 6 23 / 0.6);
	color: #f8fafc;
	font: inherit;
}

.w-order input::placeholder {
	color: #64748b;
}

.w-order input:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

.w-order button {
	flex: none;
	padding: 0.75rem 1.2rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #059669);
	color: #fff;
	font: 600 0.95rem var(--sans);
	cursor: pointer;
}

.w-missions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.8rem;
}

.w-missions button {
	padding: 0.4rem 0.8rem;
	border: 1px solid rgb(148 163 184 / 0.3);
	border-radius: 999px;
	background: transparent;
	color: #cbd5e1;
	font: 500 0.82rem var(--sans);
	text-align: start;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.w-missions button:hover,
.w-missions button[aria-pressed='true'] {
	border-color: #38bdf8;
	background: rgb(56 189 248 / 0.12);
	color: #fff;
}

/* The order travels down a trunk, then along a line above the six robots. */
.w-bus {
	position: relative;
	max-width: 76rem;
	height: 3.3rem;
	margin-inline: auto;
}

.w-bus::before,
.w-bus::after {
	content: '';
	position: absolute;
	background: rgb(148 163 184 / 0.28);
}

.w-bus::before {
	top: 0;
	left: calc(50% - 1px);
	width: 2px;
	height: 50%;
}

.w-bus::after {
	top: calc(50% - 1px);
	right: 8.33%;
	left: 8.33%;
	height: 2px;
}

.w-stage.is-commanding .w-bus::before,
.w-stage.is-commanding .w-bus::after,
.w-stage.is-commanding .w-robot::before {
	background: linear-gradient(90deg, #2563eb, #38bdf8, #34d399, #38bdf8, #2563eb) 0 0 / 300% 100%;
	box-shadow: 0 0 12px rgb(56 189 248 / 0.8);
	animation: w-flow 1.1s linear infinite;
}

.w-army {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.9rem;
	max-width: 76rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.w-robot {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0.6rem 0.6rem 0.9rem;
	border: 1px solid rgb(148 163 184 / 0.2);
	border-radius: 1.1rem;
	background: rgb(15 23 42 / 0.72);
	transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* Each robot hangs from the line. */
.w-robot::before {
	content: '';
	position: absolute;
	top: -1.7rem;
	left: calc(50% - 1px);
	width: 2px;
	height: 1.65rem;
	background: rgb(148 163 184 / 0.28);
}

.w-robot-pic {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: 0.75rem;
}

.w-robot-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.65) brightness(0.72);
	transition: filter 0.4s;
}

.w-scan {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent, rgb(56 189 248 / 0.5), transparent) 0 -40% / 100% 40% no-repeat;
	opacity: 0;
}

.w-robot.is-working {
	border-color: #38bdf8;
	box-shadow: 0 0 0 1px rgb(56 189 248 / 0.4), 0 18px 50px -20px rgb(56 189 248 / 0.85);
	transform: translateY(-4px);
}

.w-robot.is-working .w-scan {
	opacity: 1;
	animation: w-scan 1.1s linear infinite;
}

.w-robot.is-working img,
.w-robot.is-done img {
	filter: none;
}

.w-robot.is-done {
	border-color: rgb(52 211 153 / 0.7);
}

.w-robot-name {
	margin-top: 0.7rem;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
}

.w-robot-state {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.25rem;
	color: #94a3b8;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.w-robot-state::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #475569;
}

.w-robot.is-working .w-robot-state {
	color: #7dd3fc;
}

.w-robot.is-working .w-robot-state::before {
	background: #38bdf8;
	animation: w-blink 0.7s steps(2) infinite;
}

.w-robot.is-done .w-robot-state {
	color: #6ee7b7;
}

.w-robot.is-done .w-robot-state::before {
	background: #34d399;
}

.w-robot-log {
	min-height: 5.8em;
	margin-top: 0.45rem;
	color: #cbd5e1;
	font-size: 0.86rem;
	line-height: 1.45;
}

.w-report {
	display: grid;
	gap: 0.9rem;
	justify-items: start;
	max-width: 54rem;
	margin: 1.6rem auto 0;
	padding: 1.3rem 1.5rem;
	border: 1px solid rgb(52 211 153 / 0.45);
	border-radius: 1.2rem;
	background: rgb(6 78 59 / 0.3);
	animation: w-rise 0.5s ease-out;
}

.w-report[hidden] {
	display: none;
}

.w-report-title {
	color: #6ee7b7;
	font-weight: 700;
}

.w-report ul {
	display: grid;
	gap: 0.3rem;
	margin: 0;
	padding-inline-start: 1.2rem;
	color: #e2e8f0;
}

.w-rules {
	margin-top: 1.4rem;
	color: #64748b;
	font-size: 0.82rem;
	text-align: center;
}

@media (max-width: 1100px) {
	.w-bus,
	.w-robot::before {
		display: none;
	}

	.w-army {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 1.4rem;
	}

	.w-robot-log {
		min-height: 4.4em;
	}
}

@media (max-width: 640px) {
	.w-chief {
		grid-template-columns: minmax(0, 1fr);
	}

	.w-order {
		flex-direction: column;
	}

	.w-army {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6rem;
	}

	.w-robot-log {
		min-height: 7.2em;
	}
}

/* ---------- the six agents ---------- */

.w-agents {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.1rem;
	margin-top: 2.2rem;
}

.w-agent {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 1.2rem;
	background: var(--surface);
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.w-agent:hover,
.w-agent:focus-visible {
	border-color: var(--blue);
	box-shadow: 0 24px 50px -28px rgb(37 99 235 / 0.7);
	transform: translateY(-5px);
}

.w-agent img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.w-agent-body {
	display: grid;
	gap: 0.4rem;
	padding: 1.1rem 1.2rem 1.3rem;
}

.w-agent-name {
	color: var(--ink);
	font-size: 1.12rem;
	font-weight: 700;
}

.w-agent-text {
	color: var(--muted);
	font-size: 0.93rem;
}

.w-agent-more {
	margin-top: 0.3rem;
	color: var(--accent);
	font-size: 0.9rem;
	font-weight: 600;
}

@media (max-width: 900px) {
	.w-agents {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.w-agents {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- the countries ---------- */

.w-countries {
	border-top: 1px solid var(--line);
}

.w-filter {
	max-width: 26rem;
	margin-top: 1.6rem;
}

.w-filter[hidden] {
	display: none;
}

.w-filter input {
	width: 100%;
	padding: 0.8rem 1.2rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--field);
	color: var(--ink);
	font: inherit;
}

.w-place-group[hidden] {
	display: none;
}

.w-sub {
	margin-top: 2.2rem;
	color: var(--ink);
	font: 700 1.05rem var(--sans);
}

.w-places {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
	gap: 0.9rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.w-places-full {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.w-place[hidden] {
	display: none;
}

.w-place a {
	position: relative;
	display: block;
	overflow: hidden;
	isolation: isolate;
	aspect-ratio: 4 / 3;
	border-radius: 1rem;
	background: #0f172a;
}

.w-places-full .w-place a {
	aspect-ratio: 4 / 4.4;
}

.w-place img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}

.w-place a::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgb(3 7 18 / 0.9) 0%, rgb(3 7 18 / 0.25) 55%, rgb(3 7 18 / 0) 80%);
}

.w-place a:hover img,
.w-place a:focus-visible img {
	transform: scale(1.07);
}

.w-place-body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	display: grid;
	gap: 0.15rem;
	padding: 0.9rem 1rem;
}

.w-place-name {
	color: #fff;
	font-size: 1.02rem;
	font-weight: 700;
}

.w-places-full .w-place-name {
	font-size: 1.25rem;
}

.w-place-meta {
	color: #cbd5e1;
	font-size: 0.76rem;
}

.w-badge {
	position: absolute;
	inset-inline-start: 0.7rem;
	top: 0.7rem;
	z-index: 1;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #059669);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.w-empty {
	margin-top: 1.5rem;
	color: var(--muted);
}

@media (max-width: 900px) {
	.w-places-full {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.w-places {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6rem;
	}
}

/* ---------- motion ---------- */

/* home.js adds .w-reveal to the cards, then .is-in when they come into view. */
.w-reveal {
	opacity: 0;
}

.w-reveal.is-in {
	animation: w-rise 0.7s ease-out both;
	animation-delay: var(--w-delay, 0ms);
}

@keyframes w-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes w-flow {
	to {
		background-position: 300% 0;
	}
}

@keyframes w-scan {
	to {
		background-position: 0 140%;
	}
}

@keyframes w-blink {
	50% {
		opacity: 0.25;
	}
}

@keyframes w-pulse {
	50% {
		box-shadow: 0 0 0 1px rgb(56 189 248 / 0.55), 0 30px 90px -24px rgb(52 211 153 / 0.75);
	}
}

@media (prefers-reduced-motion: reduce) {
	.w-reveal,
	.w-reveal.is-in,
	.w-report,
	.w-stage.is-commanding .w-chief {
		opacity: 1;
		animation: none;
	}

	.w-robot.is-working .w-scan {
		opacity: 0;
		animation: none;
	}

	.w-btn,
	.w-agent,
	.w-place img,
	.w-robot {
		transition: none;
	}
}

/* ---------- right to left (Arabic) ---------- */

/* The film is mirrored so that the giant stands away from the text, which reads from the right. */
html[dir='rtl'] .w-hero-media {
	transform: scaleX(-1);
}

html[dir='rtl'] .w-hero::after {
	background:
		linear-gradient(270deg, rgb(3 7 18 / 0.92) 0%, rgb(3 7 18 / 0.62) 36%, rgb(3 7 18 / 0) 68%),
		linear-gradient(0deg, #030712 0%, rgb(3 7 18 / 0) 26%),
		linear-gradient(180deg, rgb(3 7 18 / 0.6) 0%, rgb(3 7 18 / 0) 18%);
}

html[dir='rtl'] .w-h1 {
	line-height: 1.3;
}

html[dir='rtl'] .w-agent-more span {
	display: inline-block;
	transform: scaleX(-1);
}

@media (max-width: 720px) {
	html[dir='rtl'] .w-hero::after {
		background:
			linear-gradient(0deg, #030712 0%, rgb(3 7 18 / 0.86) 38%, rgb(3 7 18 / 0.2) 72%),
			linear-gradient(180deg, rgb(3 7 18 / 0.6) 0%, rgb(3 7 18 / 0) 18%);
	}

	/* The choice of look takes the foot of the film: the credit and the pause move up. */
	.w-hero-foot {
		bottom: 0.8rem;
	}

	.w-looks-label {
		display: none;
	}

	.w-hero-inner {
		padding-bottom: 6.4rem;
	}

	.w-hero-credit {
		bottom: 3.9rem;
	}

	.w-hero-pause {
		bottom: 5.4rem;
	}
}

/* The small stages where stick.js draws an agent (640 × 400). */
.w-robot-pic canvas,
.w-agent canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
}

/* Under a small stage of the offer: the sub-agent that speaks, its line, the count of answers. */
.w-team {
	display: grid;
	gap: 0.3rem;
	padding: 0.85rem 1.2rem 0;
}

.w-team-say {
	min-height: 4.2em;
	color: var(--ink);
	font-size: 0.9rem;
	line-height: 1.4;
}

.w-team-say b {
	margin-inline-end: 0.4rem;
	color: var(--accent);
	font-weight: 700;
}

.w-team-count {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.w-team.is-done .w-team-count,
.w-team.is-done .w-team-say b {
	color: var(--green);
}

/* The film mirrors its own scene in Arabic, and keeps its texts readable. */
html[dir='rtl'] canvas.w-hero-media {
	transform: none;
}

/* ------------------------------------------------------------------
   The professional look (the default): an office film, photographs,
   plain buttons, and a demonstration that follows the visitor's theme
   instead of the dark stage. Nothing here touches the film look.
   ------------------------------------------------------------------ */

html[data-look='pro'] .w-hero {
	background: #070d1e;
}

/* The team stands right of centre, in front of the wall display. */
html[data-look='pro'] .w-hero-media {
	object-position: 72% 50%;
}

html[data-look='pro'] .w-hero::after {
	background:
		linear-gradient(90deg, rgb(7 13 30 / 0.94) 0%, rgb(7 13 30 / 0.74) 38%, rgb(7 13 30 / 0.1) 76%),
		linear-gradient(0deg, rgb(7 13 30 / 0.72) 0%, rgb(7 13 30 / 0) 22%),
		linear-gradient(180deg, rgb(7 13 30 / 0.68) 0%, rgb(7 13 30 / 0) 20%);
}

html[data-look='pro'] .w-hero .w-kicker {
	color: #9ec1ff;
}

html[data-look='pro'] .w-h1 {
	font-size: clamp(2.3rem, 5.4vw, 4.3rem);
	line-height: 1.08;
}

html[data-look='pro'] .w-h1 em {
	background: none;
	color: #8fb8ff;
}

html[data-look='pro'] .w-hero-lead {
	color: #d6deee;
}

html[data-look='pro'] .w-btn {
	border-radius: 0.7rem;
	background: #2563eb;
	box-shadow: 0 10px 26px -14px rgb(37 99 235 / 0.9);
}

html[data-look='pro'] .w-btn:hover,
html[data-look='pro'] .w-btn:focus-visible {
	background: #1d4ed8;
	box-shadow: 0 12px 28px -14px rgb(29 78 216 / 0.95);
	transform: translateY(-1px);
}

html[data-look='pro'] .w-btn-ghost,
html[data-look='pro'] .w-btn-ghost:hover,
html[data-look='pro'] .w-btn-ghost:focus-visible {
	border-color: rgb(255 255 255 / 0.45);
	background: rgb(255 255 255 / 0.1);
	box-shadow: none;
}

html[data-look='pro'] .w-badge {
	background: #2563eb;
}

/* A line of facts under the film. */
.w-facts {
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.w-facts ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.8rem 1.5rem;
	margin: 0;
	padding: 1.35rem 0;
	list-style: none;
}

.w-facts li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 600;
}

.w-facts li::before {
	content: '';
	flex: none;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--blue);
}

@media (max-width: 860px) {
	.w-facts ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 460px) {
	.w-facts ul {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The demonstration: cards on the page's own background, no stage. */
html[data-look='pro'] .w-command {
	background: var(--bg);
	color: var(--body);
}

html[data-look='pro'] .w-command::before {
	display: none;
}

html[data-look='pro'] .w-command .w-kicker {
	color: var(--accent);
}

html[data-look='pro'] .w-command .w-title {
	color: var(--ink);
}

html[data-look='pro'] .w-command .w-lead {
	color: var(--muted);
}

html[data-look='pro'] .w-chief {
	border-color: var(--line-2);
	background: var(--surface);
	box-shadow: 0 26px 60px -44px rgb(15 23 42 / 0.6);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

html[data-look='pro'] .w-stage.is-commanding .w-chief {
	border-color: var(--blue);
	animation: none;
}

html[data-look='pro'] .w-chief-name {
	color: var(--accent);
}

html[data-look='pro'] .w-chief-line {
	color: var(--ink);
}

html[data-look='pro'] .w-order input {
	border-color: var(--line-2);
	border-radius: 0.7rem;
	background: var(--field);
	color: var(--ink);
}

html[data-look='pro'] .w-order input::placeholder {
	color: var(--muted);
}

html[data-look='pro'] .w-order input:focus-visible {
	outline-color: var(--blue);
}

html[data-look='pro'] .w-order button {
	border-radius: 0.7rem;
	background: #2563eb;
}

html[data-look='pro'] .w-missions button {
	border-color: var(--line-2);
	border-radius: 0.6rem;
	color: var(--body);
}

html[data-look='pro'] .w-missions button:hover,
html[data-look='pro'] .w-missions button[aria-pressed='true'] {
	border-color: var(--blue);
	background: rgb(37 99 235 / 0.1);
	color: var(--ink);
}

html[data-look='pro'] .w-bus::before,
html[data-look='pro'] .w-bus::after,
html[data-look='pro'] .w-robot::before {
	background: var(--line-2);
}

html[data-look='pro'] .w-stage.is-commanding .w-bus::before,
html[data-look='pro'] .w-stage.is-commanding .w-bus::after,
html[data-look='pro'] .w-stage.is-commanding .w-robot::before {
	background: linear-gradient(90deg, #2563eb, #93c5fd, #2563eb) 0 0 / 300% 100%;
	box-shadow: none;
}

html[data-look='pro'] .w-robot {
	border-color: var(--line);
	background: var(--surface);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

html[data-look='pro'] .w-robot-pic img {
	filter: saturate(0.45);
}

/* No scan line over a photograph: a thin bar runs under it while the agent works. */
html[data-look='pro'] .w-scan {
	display: none;
}

html[data-look='pro'] .w-robot-pic::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, #3b82f6, transparent) -100% 0 / 50% 100% no-repeat;
	opacity: 0;
}

html[data-look='pro'] .w-robot.is-working {
	border-color: var(--blue);
	box-shadow: 0 18px 40px -30px rgb(37 99 235 / 0.95);
	transform: translateY(-2px);
}

html[data-look='pro'] .w-robot.is-working .w-robot-pic::after {
	opacity: 1;
	animation: w-load 1.1s linear infinite;
}

html[data-look='pro'] .w-robot.is-working img,
html[data-look='pro'] .w-robot.is-done img {
	filter: none;
}

html[data-look='pro'] .w-robot.is-done {
	border-color: var(--green-line);
}

html[data-look='pro'] .w-robot-name {
	color: var(--ink);
}

html[data-look='pro'] .w-robot-state {
	color: var(--muted);
}

html[data-look='pro'] .w-robot-state::before {
	background: var(--line-2);
}

html[data-look='pro'] .w-robot.is-working .w-robot-state {
	color: var(--blue);
}

html[data-look='pro'] .w-robot.is-working .w-robot-state::before {
	background: var(--blue);
}

html[data-look='pro'] .w-robot.is-done .w-robot-state {
	color: var(--green);
}

html[data-look='pro'] .w-robot.is-done .w-robot-state::before {
	background: var(--green);
}

html[data-look='pro'] .w-robot-log {
	color: var(--body);
}

html[data-look='pro'] .w-report {
	border-color: var(--green-line);
	background: var(--surface);
}

html[data-look='pro'] .w-report-title {
	color: var(--green);
}

html[data-look='pro'] .w-report ul {
	color: var(--body);
}

html[data-look='pro'] .w-rules {
	color: var(--muted);
}

@keyframes w-load {
	to {
		background-position: 200% 0;
	}
}

@media (max-width: 720px) {
	html[data-look='pro'] .w-hero-media {
		object-position: 74% 30%;
	}

	html[data-look='pro'] .w-hero::after {
		background:
			linear-gradient(0deg, #070d1e 0%, rgb(7 13 30 / 0.9) 42%, rgb(7 13 30 / 0.22) 76%),
			linear-gradient(180deg, rgb(7 13 30 / 0.68) 0%, rgb(7 13 30 / 0) 20%);
	}
}

@media (min-width: 721px) {
	html[dir='rtl'][data-look='pro'] .w-hero::after {
		background:
			linear-gradient(270deg, rgb(7 13 30 / 0.94) 0%, rgb(7 13 30 / 0.74) 38%, rgb(7 13 30 / 0.1) 76%),
			linear-gradient(0deg, rgb(7 13 30 / 0.72) 0%, rgb(7 13 30 / 0) 22%),
			linear-gradient(180deg, rgb(7 13 30 / 0.68) 0%, rgb(7 13 30 / 0) 20%);
	}
}

@media (prefers-reduced-motion: reduce) {
	html[data-look='pro'] .w-robot.is-working .w-robot-pic::after {
		opacity: 0;
		animation: none;
	}

	.w-looks button {
		transition: none;
	}
}

/* ------------------------------------------------------------------
   The stick man look: the film is drawn live on a canvas (stick.js),
   over a night stage. It keeps the dark command post of the film look;
   only the pictures change (small stages instead of robots), and amber,
   the colour of the lead figure's cape, marks the titles.
   ------------------------------------------------------------------ */

html[data-look='stick'] .w-hero {
	background: #070a14;
}

html[data-look='stick'] video.w-hero-media {
	display: none;
}

html[data-look='stick'] .w-hero-media {
	object-position: 50% 50%;
}

/* The stage is already dark: the veil only steadies the title. */
html[data-look='stick'] .w-hero::after {
	background:
		linear-gradient(90deg, rgb(5 7 14 / 0.86) 0%, rgb(5 7 14 / 0.5) 30%, rgb(5 7 14 / 0) 50%),
		linear-gradient(0deg, #030712 0%, rgb(3 7 18 / 0) 16%),
		linear-gradient(180deg, rgb(3 7 18 / 0.55) 0%, rgb(3 7 18 / 0) 16%);
}

html[data-look='stick'] .w-hero .w-kicker,
html[data-look='stick'] .w-command .w-kicker,
html[data-look='stick'] .w-chief-name {
	color: #f2c14e;
}

html[data-look='stick'] .w-h1 em {
	background: linear-gradient(90deg, #f2c14e, #fb923c);
	-webkit-background-clip: text;
	background-clip: text;
}

html[data-look='stick'] .w-command::before {
	background: radial-gradient(ellipse 70% 55% at 50% 30%, rgb(242 193 78 / 0.07), rgb(3 7 18 / 0) 70%);
}

html[data-look='stick'] .w-scan {
	display: none;
}

html[data-look='stick'] .w-robot-pic {
	aspect-ratio: 16 / 10;
	background: #0a0e1a;
}

@media (min-width: 721px) {
	html[dir='rtl'][data-look='stick'] .w-hero::after {
		background:
			linear-gradient(270deg, rgb(5 7 14 / 0.86) 0%, rgb(5 7 14 / 0.5) 30%, rgb(5 7 14 / 0) 50%),
			linear-gradient(0deg, #030712 0%, rgb(3 7 18 / 0) 16%),
			linear-gradient(180deg, rgb(3 7 18 / 0.55) 0%, rgb(3 7 18 / 0) 16%);
	}
}

@media (max-width: 720px) {
	/* On a phone the scene plays above the title: the top 46 % of the screen is its room
	   (stick.js fits the scene in it), and the first screen grows if the text is long. */
	html[data-look='stick'] .w-hero-inner {
		align-items: start;
		padding-top: 46svh;
	}

	html[data-look='stick'] .w-hero::after {
		background: linear-gradient(180deg, rgb(3 7 18 / 0) 0, rgb(3 7 18 / 0) 42svh, rgb(3 7 18 / 0.94) 50svh, #030712 100%);
	}
}
