/* =========================================================================
   VLEONS AI concierge — homepage hero only (2026-11-04)

   The assistant figure, a glass greeting panel with a live waveform, six
   floating service questions and the voice controls. Desktop keeps the
   questions in orbit around the figure; below 960px the module becomes a
   stacked card — panel, assistant, then the questions in a grid — so nothing
   ever covers the face.

   Loaded only on the front page, because that is the only place it exists.
   ====================================================================== */

/* The HTML hidden attribute must beat the component display rules below. */
[hidden] { display: none !important; }

.vl-con { position: relative; width: 100%; --px: 0px; --py: 0px; }
.vl-con__stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; }

/* ---- Environment ---- */

.vl-con__glow {
	position: absolute; inset: -5% -3% 2% -3%; border-radius: 50%;
	background: radial-gradient(circle at 52% 44%, rgba(80, 167, 44, 0.3), rgba(80, 167, 44, 0.07) 54%, transparent 72%);
	transition: opacity 0.6s var(--ease);
}
.vl-con__ring {
	position: absolute; inset: 6%; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.11);
	box-shadow: inset 0 0 90px rgba(80, 167, 44, 0.14);
	transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.vl-con.is-speaking .vl-con__ring { border-color: rgba(80, 167, 44, 0.34); animation: vl-con-pulse 2.6s ease-in-out infinite; }
.vl-con.is-listening .vl-con__ring { border-color: rgba(255, 189, 60, 0.4); }

/* ---- The assistant ---- */

.vl-con__figwrap {
	position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%;
	translate: var(--px) var(--py);
	transition: translate 0.5s var(--ease);
}
.vl-con__figure {
	width: 78%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px;
	box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
	animation: vl-con-breathe 9s ease-in-out infinite;
}
/* A transparent asset stands on the background with no frame. The figure is
   waist-up, so it is anchored to the floor of the stage and allowed to bleed
   past it rather than being shrunk to fit. */
.vl-con__figure--cutout {
	width: 100%; height: auto; aspect-ratio: auto;
	object-fit: contain; border-radius: 0; background: none; box-shadow: none;
	align-self: end; justify-self: center;
	grid-area: 1 / 1;
	filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}
.vl-con__figwrap:has(.vl-con__figure--cutout) { align-items: end; }
/* The packaged photograph: its black background is screened into the hero. */
.vl-con__figure--blend {
	width: 92%; border-radius: 0; box-shadow: none;
	/* translate, not transform: the breathing keyframes own transform. */
	translate: 9% 0;
	mix-blend-mode: screen; filter: contrast(1.05) brightness(1.06) saturate(0.95);
	-webkit-mask-image: radial-gradient(64% 66% at 54% 46%, #000 42%, rgba(0, 0, 0, 0.55) 72%, transparent 92%);
	mask-image: radial-gradient(64% 66% at 54% 46%, #000 42%, rgba(0, 0, 0, 0.55) 72%, transparent 92%);
}

/* ---- Greeting panel ---- */

.vl-con__panel {
	position: absolute; z-index: 4; top: 2%; left: 50%;
	translate: calc(-44% + var(--px) * 0.4) var(--py);
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 11px;
	width: min(21rem, 86%); padding: 13px 18px;
	border-radius: 22px 22px 22px 8px;
	background: linear-gradient(180deg, rgba(26, 49, 17, 0.82), rgba(10, 20, 6, 0.86));
	border: 1px solid rgba(80, 167, 44, 0.34);
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	-webkit-backdrop-filter: blur(10px) saturate(1.1);
	backdrop-filter: blur(10px) saturate(1.1);
	color: #eef5e9;
	transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), translate 0.5s var(--ease);
}
.vl-con.is-speaking .vl-con__panel { border-color: rgba(80, 167, 44, 0.58); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38), 0 0 26px rgba(80, 167, 44, 0.16); }
.vl-con.is-listening .vl-con__panel { border-color: rgba(255, 189, 60, 0.5); }
.vl-con__panel-text { margin: 0; font-size: 14.5px; line-height: 1.5; letter-spacing: -0.01em; }

.vl-con__wave { display: block; width: 30px; height: 24px; }
.vl-con__wave svg { width: 100%; height: 100%; overflow: visible; }
.vl-con__wave rect { fill: var(--og-base); transition: fill 0.4s; }
.vl-con.is-speaking .vl-con__wave rect { fill: #7fd455; }
.vl-con.is-listening .vl-con__wave rect { fill: var(--og-primary); }

.vl-con__explore {
	grid-column: 2; justify-self: start;
	display: inline-flex; align-items: center; gap: 7px; margin-top: 2px;
	font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
	color: var(--og-primary); text-decoration: none;
}
.vl-con__explore .vl-con__arrow { width: 15px; height: 15px; opacity: 1; transition: transform 0.25s var(--ease); }
.vl-con__explore:hover .vl-con__arrow, .vl-con__explore:focus-visible .vl-con__arrow { transform: translateX(3px); }

/* ---- The questions ---- */

.vl-con__menu { position: absolute; inset: 0; z-index: 3; }
.vl-con__menu ul { position: absolute; inset: 0; }
.vl-con__q { position: absolute; }
.vl-con__q a {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 11px 15px; border-radius: 30px;
	background: rgba(17, 33, 11, 0.8); border: 1px solid rgba(80, 167, 44, 0.34);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
	color: #eaf3e4; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
	text-decoration: none; white-space: nowrap;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.vl-con__q a .vl-icon { width: 17px; height: 17px; color: var(--og-base); transition: color 0.25s, transform 0.3s var(--ease); }
.vl-con__arrow { width: 15px; height: 15px; opacity: 0.5; transition: transform 0.25s var(--ease), opacity 0.25s; }
.vl-con__q a:hover, .vl-con__q a:focus-visible {
	transform: translateY(-2px);
	background: rgba(28, 54, 18, 0.92); border-color: rgba(80, 167, 44, 0.75); color: #fff;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 20px rgba(80, 167, 44, 0.18);
}
.vl-con__q a:hover .vl-icon, .vl-con__q a:focus-visible .vl-icon { color: var(--og-primary); transform: scale(1.06); }
.vl-con__q a:hover .vl-con__arrow, .vl-con__q a:focus-visible .vl-con__arrow { transform: translateX(3px); opacity: 1; }
.vl-con__q.is-active a {
	background: rgba(41, 78, 27, 0.96); border-color: var(--og-base); color: #fff;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36), 0 0 22px rgba(80, 167, 44, 0.24);
}
.vl-con__q.is-active a .vl-icon { color: var(--og-primary); }

/* Orbit positions */
.vl-con__q--web-development             { top: 27%; left: -4%; }
.vl-con__q--wordpress-development       { top: 46%; left: -9%; }
.vl-con__q--mobile-app-development      { top: 65%; left: -3%; }
.vl-con__q--custom-software-development { top: 25%; right: -6%; }
.vl-con__q--erp-crm-development         { top: 44%; right: -11%; }
.vl-con__q--seo                         { top: 63%; right: -5%; }

/* ---- Entrance ---- */

.vl-con__panel, .vl-con__q { opacity: 0; }
.vl-con.is-ready .vl-con__panel { animation: vl-con-panel-in 0.55s var(--ease) 0.1s forwards; }
.vl-con.is-ready .vl-con__q { animation: vl-con-in 0.5s var(--ease) forwards; animation-delay: calc(0.4s + var(--i) * 0.055s); }

/* ---- Voice controls ---- */

.vl-con__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.vl-con__ctrl {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 0 16px; border-radius: 21px; cursor: pointer;
	background: rgba(255, 255, 255, 0.06); border: 1px solid var(--og-line);
	color: #d7e3d0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.vl-con__ctrl .vl-icon { width: 16px; height: 16px; }
.vl-con__ctrl:hover:not(:disabled) { background: rgba(80, 167, 44, 0.16); border-color: var(--og-base); color: #fff; }
.vl-con__ctrl:disabled { opacity: 0.45; cursor: not-allowed; }
.vl-con__ctrl--icon { padding: 0 12px; }
.vl-con__ctrl[aria-pressed="true"] { background: rgba(255, 189, 60, 0.16); border-color: var(--og-primary); color: #fff; }
.vl-con.is-speaking .vl-con__ctrl--primary { border-color: rgba(80, 167, 44, 0.6); color: #fff; }

@keyframes vl-con-breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.006); } }
@keyframes vl-con-pulse { 0%, 100% { box-shadow: inset 0 0 90px rgba(80, 167, 44, 0.14); } 50% { box-shadow: inset 0 0 110px rgba(80, 167, 44, 0.3); } }
@keyframes vl-con-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes vl-con-panel-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---- Tablet: tighten the orbit ---- */

@media (max-width: 1240px) {
	.vl-con__q a { padding: 9px 13px; font-size: 13px; }
	.vl-con__q--web-development, .vl-con__q--mobile-app-development { left: -2%; }
	.vl-con__q--wordpress-development { left: -5%; }
	.vl-con__q--custom-software-development, .vl-con__q--seo { right: 0; }
	.vl-con__q--erp-crm-development { right: -2%; }
	.vl-con__panel { width: min(19rem, 88%); }
}

/* ---- Phone and small tablet: panel, assistant, questions ---- */

@media (max-width: 960px) {
	.vl-con__stage { aspect-ratio: auto; grid-template-columns: 1fr; gap: 18px; }
	.vl-con__figwrap { height: auto; order: 2; translate: none; }
	.vl-con__figure { width: min(300px, 72%); }
	.vl-con__figure--blend { width: min(320px, 78%); translate: none; }
	.vl-con__glow { inset: 12% 8% 36% 8%; }
	.vl-con__ring { inset: 14% 14% 38% 14%; border-radius: 34px; }
	.vl-con__panel { position: static; order: 1; translate: none; width: 100%; max-width: 30rem; margin-inline: auto; border-radius: 20px 20px 20px 8px; }
	.vl-con__menu { position: static; order: 3; width: 100%; }
	.vl-con__menu ul { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
	.vl-con__q { position: static; }
	.vl-con__q a { width: 100%; justify-content: flex-start; padding: 12px 14px; white-space: normal; }
	.vl-con__q a span { flex: 1; }
	/* Comfortable touch targets. */
	.vl-con__controls { margin-top: 18px; }
	.vl-con__ctrl { min-height: 46px; padding: 0 18px; border-radius: 23px; }
	.vl-con__ctrl--icon { padding: 0 15px; }
}

@media (max-width: 520px) {
	.vl-con__menu ul { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 7px; }
	.vl-con__q a { gap: 7px; padding: 11px 12px; font-size: 13px; }
	.vl-con__q a .vl-icon { width: 16px; height: 16px; }
	.vl-con__q .vl-con__arrow { display: none; }
	.vl-con__panel-text { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.vl-con__figure, .vl-con.is-speaking .vl-con__ring { animation: none; }
	.vl-con__figwrap, .vl-con__panel { translate: none; transition: none; }
	.vl-con__panel, .vl-con__q { opacity: 1; }
	.vl-con.is-ready .vl-con__panel, .vl-con.is-ready .vl-con__q { animation: none; opacity: 1; }
	.vl-con__q a:hover, .vl-con__q a:focus-visible { transform: none; }
}

/* ---- Hero proportions: the assistant takes the dominant half ---- */

@media (min-width: 961px) {
	.vl-hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 44px; }
	.vl-hero__visual { width: min(100%, 580px); margin-left: auto; }
	.vl-hero__title { max-width: 17ch; }
	.vl-hero__lead { max-width: 46ch; }
}

/* ---- Orbit, final positions: every question sits clear of the panel ---- */

@media (min-width: 1241px) {
	.vl-con__panel { top: 0; width: min(20rem, 74%); }
	.vl-con__q--web-development             { top: 34%; left: -5%; }
	.vl-con__q--wordpress-development       { top: 52%; left: -9%; }
	.vl-con__q--mobile-app-development      { top: 70%; left: -4%; }
	.vl-con__q--custom-software-development { top: 34%; right: -6%; }
	.vl-con__q--erp-crm-development         { top: 52%; right: -10%; }
	.vl-con__q--seo                         { top: 70%; right: -5%; }
	.vl-con__figure--blend { translate: 13% 2%; }
}

@media (min-width: 961px) and (max-width: 1240px) {
	.vl-con__panel { top: 0; width: min(18rem, 82%); }
	.vl-con__q--web-development             { top: 36%; left: -3%; }
	.vl-con__q--wordpress-development       { top: 54%; left: -6%; }
	.vl-con__q--mobile-app-development      { top: 72%; left: -2%; }
	.vl-con__q--custom-software-development { top: 36%; right: -2%; }
	.vl-con__q--erp-crm-development         { top: 54%; right: -5%; }
	.vl-con__q--seo                         { top: 72%; right: -1%; }
	.vl-con__figure--blend { translate: 11% 3%; }
}

/* ---- Layout for the waist-up concierge artwork ----
   Her face sits upper-centre and the raised hand upper-left, so the questions
   move down and outwards and the greeting panel sits top-right of her head. */

@media (min-width: 961px) {
	.vl-con__figwrap { align-items: end; }
	.vl-con__figure--cutout { width: 104%; max-width: none; margin-bottom: -2%; }
}

@media (min-width: 1241px) {
	.vl-con__panel { top: 1%; left: auto; right: -7%; translate: calc(var(--px) * 0.4) var(--py); width: min(18.5rem, 70%); }
	.vl-con__q--web-development             { top: 40%; left: -10%; }
	.vl-con__q--wordpress-development       { top: 56%; left: -13%; }
	.vl-con__q--mobile-app-development      { top: 72%; left: -9%; }
	.vl-con__q--custom-software-development { top: 33%; right: -12%; }
	.vl-con__q--erp-crm-development         { top: 49%; right: -15%; }
	.vl-con__q--seo                         { top: 65%; right: -11%; }
}

@media (min-width: 961px) and (max-width: 1240px) {
	.vl-con__panel { top: 0; left: auto; right: -4%; translate: none; width: min(16.5rem, 78%); }
	.vl-con__q--web-development             { top: 42%; left: -6%; }
	.vl-con__q--wordpress-development       { top: 58%; left: -8%; }
	.vl-con__q--mobile-app-development      { top: 74%; left: -5%; }
	/* Her face sits high on the right of the artwork, so this column starts
	   below it rather than beside it. */
	.vl-con__q--custom-software-development { top: 46%; right: -5%; }
	.vl-con__q--erp-crm-development         { top: 62%; right: -7%; }
	.vl-con__q--seo                         { top: 78%; right: -4%; }
}

@media (max-width: 960px) {
	.vl-con__figure--cutout { width: min(330px, 80%); margin-inline: auto; }
}

/* The greeting sits above her head, never across her face. */
/* Clear of her face, and inside the hero, which clips its own overflow. */
@media (min-width: 1241px) { .vl-con__panel { top: -6%; right: -9%; } }
@media (min-width: 961px) and (max-width: 1240px) { .vl-con__panel { top: -5%; right: -5%; } }

/* =========================================================================
   First fold (2026-11-04)
   Header + hero + CTAs + concierge have to sit inside 1366x768 without
   scrolling, so the hero loses padding, the type tightens and the figure
   scales down. Nothing is redesigned: only scale, spacing and proportion.
   ====================================================================== */

@media (min-width: 961px) {
	.vl-hero__grid { padding-block: clamp(26px, 2.4vw, 40px) clamp(28px, 2.8vw, 44px); gap: 40px; align-items: center; }
	/* 29ch keeps the yellow line whole, so the headline is three lines, not four. */
	.vl-hero__title { font-size: clamp(27px, 2.6vw, 37px); line-height: 1.17; max-width: 29ch; }
	.vl-hero__eyebrow { margin-bottom: 12px; }
	.vl-hero__lead { margin-top: 14px; font-size: 16px; line-height: 1.68; max-width: 45ch; }
	.vl-hero .vl-actions { margin-top: 22px; }

	/* A calmer figure: smaller stage, and she no longer bleeds past it. */
	.vl-hero__visual { width: min(100%, 470px); }
	.vl-con__figure--cutout { width: 96%; margin-bottom: -1%; }
	.vl-con__controls { margin-top: 12px; }
	.vl-con__ctrl { min-height: 36px; padding: 0 14px; font-size: 13px; }
	.vl-con__ctrl--icon { padding: 0 11px; }

	/* Compact greeting card. */
	.vl-con__panel { padding: 11px 15px; gap: 3px 10px; border-radius: 20px 20px 20px 7px; }
	.vl-con__panel-text { font-size: 13.5px; line-height: 1.45; }
	.vl-con__wave { width: 26px; height: 20px; }
	.vl-con__explore { font-size: 12.5px; }
	.vl-con__q a { padding: 9px 13px; font-size: 13px; }
}

/* Questions sit tighter to the smaller figure and keep off her face. */
@media (min-width: 1241px) {
	.vl-con__panel { top: -5%; right: -11%; width: min(17.5rem, 76%); }
	.vl-con__q--web-development             { top: 41%; left: -13%; }
	.vl-con__q--wordpress-development       { top: 57%; left: -16%; }
	.vl-con__q--mobile-app-development      { top: 73%; left: -12%; }
	.vl-con__q--custom-software-development { top: 41%; right: -14%; }
	.vl-con__q--erp-crm-development         { top: 57%; right: -17%; }
	.vl-con__q--seo                         { top: 73%; right: -13%; }
}
