/* Dark scene direction for the homepage.
   .lm-home is the static theme (works without JS and with reduced motion).
   html.lm-motion is set by linden-scenes.js and enables pinned scenes and the orb. */

.lm-home {
	background: radial-gradient(120vmax 70vmax at 50% 0%, #0d3426 0%, transparent 60%), var(--lm-bg);
	color: var(--lm-ink);
}

.lm-home h1,
.lm-home h2,
.lm-home h3 {
	color: var(--lm-ink);
}

.lm-home h1 em,
.lm-home h2 em {
	color: var(--lm-mint);
}

.lm-home .v5-label {
	color: var(--lm-mint);
}

.lm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Hero */

.lm-home .v5-hero {
	background: transparent;
	border-bottom: 0;
}

.lm-home .v5-hero h1 {
	font-size: clamp(50px, 7vw, 124px);
	max-width: 9.5ch;
	line-height: 0.98;
	letter-spacing: -0.06em;
}

.lm-home .v5-hero-desc,
.lm-home .v5-hero-bottom {
	color: var(--lm-muted);
}

.lm-home .v5-hero-bottom-icon {
	color: var(--lm-mint);
}

.lm-home .v5-hero-visual > * {
	display: none;
}

.lm-home .v5-hero-visual::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(360px, 70%);
	aspect-ratio: 1;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle at 36% 30%, #f6f2e6 0%, #b9ecbc 12%, #2f8f5f 44%, #0b3a2a 74%);
	box-shadow: 0 0 140px #b9ecbc40;
}

.lm-home .v5-hero-bottom-border {
	border-top-color: var(--lm-line);
}

.lm-home .v5-hero-bottom-border > .v5-container {
	color: #7f988a;
}

.lm-hero-big {
	margin: 0;
	padding: 90px clamp(20px, 6vw, 96px) 40px;
	font-size: clamp(46px, 8.4vw, 150px);
	font-weight: 750;
	letter-spacing: -0.055em;
	line-height: 0.98;
	color: var(--lm-ink);
}

.lm-hero-big em {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-style: italic;
	letter-spacing: -0.04em;
	color: var(--lm-mint);
}

.lm-voice {
	margin: 0 clamp(20px, 6vw, 96px) 80px;
}

.lm-voice-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: var(--lm-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lm-voice-tag i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lm-mint);
	box-shadow: 0 0 12px var(--lm-mint);
}

.lm-voice-line {
	display: block;
	font-size: clamp(20px, 2.4vw, 32px);
	font-weight: 650;
	letter-spacing: -0.035em;
	color: var(--lm-ink);
}

.lm-hint {
	display: none;
}

/* Proof strip */

.lm-home .v5-proof {
	background: transparent;
	border-top: 1px solid var(--lm-line);
	border-bottom: 1px solid var(--lm-line);
}

.lm-home .v5-proof-inner > div {
	color: #c9d8ce;
	border-color: var(--lm-line);
}

.lm-home .v5-proof-inner i {
	color: var(--lm-mint);
	font-style: normal;
}

/* 01 Why */

.lm-home .v5-idea {
	background: transparent;
}

.lm-home .v5-idea-copy h2 {
	font-size: clamp(38px, 4.6vw, 76px);
	max-width: 13ch;
	line-height: 1.02;
}

.lm-home .v5-idea-copy h2 em {
	color: var(--lm-mint);
}

.lm-home .v5-idea-copy p {
	color: var(--lm-muted);
}

.lm-home .v5-idea-window {
	background: var(--lm-surface-2);
	border-color: #ffffff22;
	box-shadow: 0 40px 90px #0008;
}

/* 02 Method */

.lm-home .v5-story {
	background: transparent;
}

.lm-home .v5-step {
	border-color: var(--lm-line);
	color: var(--lm-ink);
}

.lm-home .v5-step.is-active {
	background: var(--lm-surface);
	border-color: #b9ecbc55;
	box-shadow: none;
}

.lm-home .v5-step-num,
.lm-home .v5-step-arrow {
	color: var(--lm-mint);
}

.lm-home .v5-step-body p {
	color: var(--lm-muted);
}

.lm-home .v5-story-device-wrap {
	background: radial-gradient(circle at center, #164433 0, #0b2a20 50%, transparent 70%);
	border-color: var(--lm-line);
}

.lm-home .v5-story-light {
	border-color: #b9ecbc33;
	box-shadow: 0 0 0 45px #b9ecbc0d, 0 0 0 90px #b9ecbc08;
}

.lm-home .v5-story-label,
.lm-home .v5-story-subline {
	color: var(--lm-muted);
}

/* 03 Features */

.lm-home .v5-features {
	background: transparent;
}

.lm-home .v5-feature-copy p {
	color: var(--lm-muted);
}

.lm-home .v5-feature-visual {
	background: radial-gradient(circle at 50% 45%, #174a37 0%, #0d3226 55%, #0a271e 100%);
	border: 1px solid var(--lm-line);
}

.lm-home .v5-feature-visual-bg {
	border-color: #b9ecbc33;
	box-shadow: 0 0 0 50px #b9ecbc0b, 0 0 0 100px #b9ecbc06;
}

.lm-home .v5-feature-stamp,
.lm-home .v5-feature-stamp span {
	color: var(--lm-mint);
}

/* Native powie */

.lm-native {
	position: relative;
	padding: 140px 0;
}

.lm-native-inner {
	width: min(1220px, calc(100% - 48px));
	margin-inline: auto;
}

.lm-native-tag {
	position: relative;
	display: block;
	height: 18px;
	margin-bottom: 28px;
}

.lm-native-tag b {
	position: absolute;
	left: 0;
	top: 0;
	white-space: nowrap;
	transition: opacity 0.4s, transform 0.4s var(--lm-ease);
}

.lm-native-tag b[data-tag-old] {
	color: var(--lm-muted);
	opacity: 0;
}

.lm-giant {
	margin: 0;
	max-width: 13em;
	font-size: clamp(44px, 8.4vw, 150px);
	font-weight: 750;
	letter-spacing: -0.055em;
	line-height: 1.02;
	color: var(--lm-ink);
}

.lm-giant .lm-w,
.lm-swap {
	display: inline-block;
	vertical-align: top;
}

.lm-swap {
	position: relative;
	margin-right: 0.12em;
	white-space: nowrap;
}

.lm-swap-old,
.lm-swap-new {
	display: inline-block;
}

.lm-swap-old {
	position: relative;
}

.lm-swap-old::after {
	content: "";
	position: absolute;
	left: -0.04em;
	right: -0.04em;
	top: 55%;
	height: 0.07em;
	border-radius: 1em;
	background: #ff8a7a;
	transform-origin: 0 50%;
	transform: scaleX(var(--strike, 1));
}

.lm-native-note {
	max-width: 460px;
	margin: 40px 0 0;
	color: var(--lm-muted);
	font-size: 17px;
	line-height: 1.6;
}

/* Static layout of the sentence: struck original above the native version. */
html:not(.lm-motion) .lm-home .lm-swap {
	display: block;
}

html:not(.lm-motion) .lm-home .lm-swap-old {
	display: block;
	width: fit-content;
	font-size: 0.45em;
	color: var(--lm-muted);
}

html:not(.lm-motion) .lm-home .lm-swap-new {
	display: block;
	color: var(--lm-mint);
}

/* 04 Situations */

.lm-home .v5-usecases {
	background: transparent;
}

.lm-home .v5-use-frame {
	background: radial-gradient(ellipse at 50% 45%, #1a5440 0, #0d3327 60%, #0a2a20 100%);
}

/* 05 Demo */

.lm-home .v5-demo {
	background: transparent;
}

.lm-home .v5-demo-steps > div {
	color: #d3e1d7;
}

.lm-home .v5-demo-steps span {
	background: var(--lm-surface-2);
	color: var(--lm-mint);
}

.lm-home .v5-demo-console {
	background: var(--lm-surface);
	border-color: var(--lm-line);
	box-shadow: 0 40px 90px #0007;
}

.lm-home .v5-console-top {
	border-bottom-color: var(--lm-line);
	color: var(--lm-ink);
}

.lm-home .v5-console-top small {
	color: var(--lm-muted);
}

.lm-home .v5-console-room {
	background: radial-gradient(ellipse at 50% 40%, #164433, #0b2a20 65%);
}

.lm-home #v5-demo-line {
	color: var(--lm-ink);
}

.lm-home #v5-demo-speaker,
.lm-home #v5-demo-count {
	color: var(--lm-mint);
}

.lm-home .v5-console-controls {
	border-top-color: var(--lm-line);
}

.lm-home .v5-console-controls button {
	color: var(--lm-mint);
}

.lm-home .v5-console-controls button:hover {
	background: #ffffff10;
}

/* 06 Compare */

.lm-home .v5-compare {
	background: transparent;
}

.lm-home .v5-table {
	background: var(--lm-surface);
	border-color: var(--lm-line);
	box-shadow: 0 40px 90px #0006;
}

.lm-home .v5-table-head {
	background: #082219;
}

.lm-home .v5-table-head strong:nth-child(2),
.lm-home .v5-table-row > strong {
	background: #123f2f;
	color: #e3f6e4;
}

.lm-home .v5-table-head strong:nth-child(2) {
	color: var(--lm-mint);
}

.lm-home .v5-table-head strong:last-child,
.lm-home .v5-table-row > span:last-child {
	color: var(--lm-muted);
}

.lm-home .v5-table-row {
	border-top-color: var(--lm-line);
}

.lm-home .v5-table-row > span:first-child {
	color: var(--lm-mint);
}

.lm-home .v5-table-note {
	color: var(--lm-muted);
}

/* 07 Gallery */

.lm-home .v5-showcase {
	background: transparent;
}

.lm-home .v5-gallery-tab {
	color: var(--lm-muted);
}

.lm-home .v5-gallery-tab.is-active {
	background: var(--lm-surface);
	color: var(--lm-ink);
	border-color: #b9ecbc44;
}

.lm-home .v5-gallery-stage {
	background: radial-gradient(circle at 50% 45%, #164433, #0b2a20 60%, #082219);
	border: 1px solid var(--lm-line);
}

.lm-home .v5-gallery-halo {
	border-color: #b9ecbc33;
	box-shadow: 0 0 0 58px #b9ecbc0b, 0 0 0 110px #b9ecbc06;
}

.lm-home .v5-gallery-stamp {
	color: var(--lm-muted);
}

.lm-home .v5-gallery-copy {
	color: var(--lm-ink);
}

.lm-home .v5-gallery-copy span {
	color: var(--lm-muted);
}

/* Together, FAQ, final */

.lm-home .v5-together {
	background: var(--lm-surface);
	border-top: 1px solid var(--lm-line);
	border-bottom: 1px solid var(--lm-line);
}

.lm-home .v5-faq {
	background: transparent;
}

.lm-home .v5-faq-accordion details {
	border-top-color: var(--lm-line);
}

.lm-home .v5-faq-accordion details:last-child {
	border-bottom-color: var(--lm-line);
}

.lm-home .v5-faq-accordion summary {
	color: var(--lm-ink);
}

.lm-home .v5-faq-accordion summary span {
	color: var(--lm-mint);
}

.lm-home .v5-faq-accordion details p {
	color: var(--lm-muted);
}

.lm-home .v5-final {
	background: transparent;
	border-top: 1px solid var(--lm-line);
}

@media (max-width: 700px) {
	.lm-home .v5-table-row > span:first-child {
		background: #082219;
	}

	.lm-home .v5-hero h1 {
		font-size: clamp(44px, 12vw, 60px);
	}

	.lm-home .v5-hero-visual {
		height: 300px;
	}
}

/* ---------- Motion layer ---------- */

html.lm-motion .lm-home main > section,
html.lm-motion .lm-home main > .v5-proof {
	position: relative;
	z-index: 1;
}

html.lm-motion .lm-home .v5-hero-visual::before {
	display: none;
}

html.lm-motion .v5-idea-orb,
html.lm-motion .v5-use-blob,
html.lm-motion .v5-console-orb,
html.lm-motion .v5-final-orb {
	color: transparent;
	text-shadow: none;
	animation: none;
}

html.lm-motion.lm-no-gl .v5-idea-orb,
html.lm-motion.lm-no-gl .v5-use-blob,
html.lm-motion.lm-no-gl .v5-console-orb {
	color: transparent;
}

/* Hero scene */

html.lm-motion #hero {
	height: 240vh;
	overflow: visible;
}

html.lm-motion #hero .lm-pin {
	display: flex;
	flex-direction: column;
}

html.lm-motion #hero .v5-hero-grid {
	flex: 1;
	min-height: 0;
	padding-top: 96px;
	padding-bottom: 30px;
	will-change: transform, opacity;
}

html.lm-motion .lm-home .v5-hero h1 {
	font-size: clamp(50px, min(7vw, 11vh), 124px);
}

html.lm-motion .lm-hero-big {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	place-content: center;
	padding: 0 4vw;
	text-align: center;
	font-size: clamp(50px, 9.6vw, 168px);
	opacity: 0;
	pointer-events: none;
	will-change: transform, opacity;
}

html.lm-motion .lm-voice {
	position: absolute;
	left: 50%;
	top: 70%;
	z-index: 3;
	width: min(44vw, 560px);
	margin: 0;
	text-align: center;
	will-change: opacity;
}

html.lm-motion .lm-voice-line span {
	color: #ffffff2e;
	transition: color 0.25s, text-shadow 0.25s;
}

html.lm-motion .lm-voice-line span.is-said {
	color: var(--lm-ink);
}

html.lm-motion .lm-voice-line span.is-now {
	color: var(--lm-mint);
	text-shadow: 0 0 24px #b9ecbc99;
}

html.lm-motion .lm-hint {
	position: absolute;
	left: 50%;
	bottom: 62px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
	color: var(--lm-muted);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

html.lm-motion .lm-hint span {
	width: 1px;
	height: 30px;
	background: linear-gradient(var(--lm-mint), transparent);
	animation: lm-hint 1.8s var(--lm-ease) infinite;
	transform-origin: 50% 0;
}

@keyframes lm-hint {
	0% {
		transform: scaleY(0);
	}
	50% {
		transform: scaleY(1);
	}
	100% {
		transform: scaleY(1);
		opacity: 0;
	}
}

/* Proof marquee */

html.lm-motion .v5-proof {
	overflow: hidden;
}

html.lm-motion .v5-proof-inner {
	display: flex;
	width: max-content;
	min-height: 84px;
	animation: lm-marquee 38s linear infinite;
}

html.lm-motion .v5-proof-inner > div {
	flex: none;
	padding: 0 48px;
	border-right: 1px solid var(--lm-line);
	font-size: 15px;
	white-space: nowrap;
}

@keyframes lm-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Word-lit statement */

html.lm-motion .lm-lit-word {
	opacity: 0.16;
	transition: opacity 0.35s;
}

html.lm-motion .lm-lit-word.is-lit {
	opacity: 1;
}

/* Method scene */

html.lm-motion #method {
	height: 460vh;
	padding: 0;
}

html.lm-motion #method .lm-pin {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	column-gap: 60px;
	width: min(1220px, calc(100% - 96px));
	margin-inline: auto;
	padding-top: 120px;
	overflow: visible;
}

html.lm-motion #method .v5-section-head {
	grid-column: 1;
	grid-row: 1;
	display: block;
	width: auto;
	margin: 0 0 28px;
}

html.lm-motion #method .v5-section-head > p {
	margin-top: 16px;
}

html.lm-motion #method .v5-story-layout {
	display: contents;
}

html.lm-motion #method .v5-story-cards {
	grid-column: 1;
	grid-row: 2;
	align-self: start;
	padding: 0;
	gap: 0;
	border-top: 1px solid var(--lm-line);
}

html.lm-motion #method .v5-step {
	min-height: 0;
	padding: 18px 4px;
	border: 0;
	border-bottom: 1px solid var(--lm-line);
	border-radius: 0;
	background: transparent;
	opacity: 0.38;
	transition: opacity 0.5s var(--lm-ease);
}

html.lm-motion #method .v5-step.is-active {
	opacity: 1;
	background: transparent;
}

html.lm-motion #method .v5-step-body h3 {
	margin: 0;
	font-size: 22px;
}

html.lm-motion #method .v5-step-body p {
	max-height: 0;
	overflow: hidden;
	margin: 0;
	font-size: 14px;
	transition: max-height 0.6s var(--lm-ease), margin 0.6s var(--lm-ease);
}

html.lm-motion #method .v5-step.is-active .v5-step-body p {
	max-height: 90px;
	margin-top: 8px;
}

html.lm-motion #method .v5-story-visual {
	grid-column: 2;
	grid-row: 1 / 3;
	position: relative;
	top: auto;
	height: auto;
	align-self: stretch;
	perspective: 1700px;
}

html.lm-motion #method .v5-story-device-wrap {
	height: 100%;
	background: none;
	border: 0;
	overflow: visible;
}

html.lm-motion #method .v5-story-light,
html.lm-motion #method .v5-story-label,
html.lm-motion #method .v5-story-subline {
	display: none;
}

html.lm-motion #method .v5-story-device {
	--w: min(290px, 24vw, 30vh);
	position: relative;
	width: var(--w);
	height: calc(var(--w) * 2.05);
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
	border-radius: 0;
	transform-style: preserve-3d;
	animation: none;
	will-change: transform;
}

html.lm-motion #method .v5-story-device > .v5-screen,
html.lm-motion #method .v5-story-device > .v5-device-notch {
	display: none;
}

/* Features: horizontal track on wide screens */

html.lm-motion.lm-wide #features {
	padding: 0;
}

html.lm-motion.lm-wide #features .lm-pin {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 70px;
}

html.lm-motion.lm-wide #features .v5-section-head {
	margin-bottom: 20px;
}

html.lm-motion.lm-wide #features .v5-features-grid {
	display: flex;
	gap: 6vw;
	width: max-content;
	margin: 0;
	padding: 0 max(48px, calc((100vw - 1220px) / 2));
	will-change: transform;
}

html.lm-motion.lm-wide #features .v5-feature {
	width: min(1000px, 78vw);
	flex: none;
	gap: 60px;
	animation: none;
}

html.lm-motion.lm-wide #features .v5-feature-visual {
	height: min(520px, 56vh);
	perspective: 1200px;
}

html.lm-motion.lm-wide #features .v5-feature-copy h3 {
	font-size: clamp(34px, 3.6vw, 58px);
	letter-spacing: -0.05em;
	line-height: 1.02;
}

html.lm-motion.lm-wide #features .v5-feature-phone {
	transition: none;
	will-change: transform;
}

/* Native scene */

html.lm-motion #native {
	height: 440vh;
	padding: 0;
}

html.lm-motion #native .lm-pin {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

html.lm-motion .lm-native-tag b[data-tag-old] {
	opacity: 1;
}

html.lm-motion .lm-native-tag b[data-tag-new] {
	opacity: 0;
	transform: translateY(10px);
}

html.lm-motion #native.is-native .lm-native-tag b[data-tag-old] {
	opacity: 0;
	transform: translateY(-10px);
}

html.lm-motion #native.is-native .lm-native-tag b[data-tag-new] {
	opacity: 1;
	transform: none;
}

html.lm-motion .lm-giant .lm-w,
html.lm-motion .lm-swap,
html.lm-motion .lm-swap-old,
html.lm-motion .lm-swap-new {
	will-change: transform, opacity;
}

html.lm-motion .lm-swap-new {
	position: absolute;
	left: 0;
	top: 0;
	color: var(--lm-mint);
	opacity: 0;
}

html.lm-motion .lm-native-note {
	opacity: 0;
	transform: translateY(16px);
	will-change: opacity, transform;
}

/* Reveal for rows and cards that are not pinned */

html.lm-motion [data-lm-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--lm-ease), transform 0.9s var(--lm-ease);
	transition-delay: var(--lm-delay, 0s);
}

html.lm-motion [data-lm-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (max-width: 760px) {
	html.lm-motion #hero {
		height: 220vh;
	}

	html.lm-motion #hero .v5-hero-grid {
		padding-top: 84px;
	}

	html.lm-motion #hero .v5-hero-visual {
		flex: 1;
		height: auto;
		min-height: 200px;
	}

	html.lm-motion .lm-voice {
		display: none;
	}

	html.lm-motion .lm-hint {
		display: none;
	}

	html.lm-motion #method .lm-pin {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr;
		width: calc(100% - 40px);
		padding-top: 84px;
	}

	html.lm-motion #method .v5-section-head {
		margin-bottom: 12px;
	}

	html.lm-motion #method .v5-section-head h2 {
		font-size: 28px;
	}

	html.lm-motion #method .v5-section-head > p {
		display: none;
	}

	html.lm-motion #method .v5-story-cards {
		grid-row: 2;
	}

	html.lm-motion #method .v5-story-visual {
		grid-column: 1;
		grid-row: 3;
	}

	html.lm-motion #method .v5-step {
		padding: 10px 2px;
		grid-template-columns: 28px 1fr 17px;
	}

	html.lm-motion #method .v5-step-body h3 {
		font-size: 17px;
	}

	html.lm-motion #method .v5-step-body p {
		font-size: 13px;
	}

	html.lm-motion #method .v5-story-device {
		--w: min(170px, 40vw, 22vh);
	}

	html.lm-motion .lm-dev-shadow {
		bottom: 3vh;
	}

	html.lm-motion .v5-proof-inner > div {
		padding: 0 28px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lm-orb,
	.lm-orb-fallback,
	.lm-hint {
		display: none !important;
	}
}
