/* ==========================================================================
   Naoris — home page (Figma node 44:3263, "Page 1")
   Needs css/base.css, css/header.css and css/footer.css loaded first.
   ========================================================================== */

/* ==========================================================================
   Hero (Figma node 44:3264)
   ========================================================================== */

.hero {
	position: relative;
	margin-top: calc(-1 * var(--header-h)); /* header overlays the hero's top padding, as in Figma */
	padding: 54px 8px 20px;
}
.hero__grid2 {
	top: 2px;
	bottom: -12px;
}

.hero__frame {
	position: relative;
	display: flex;
	align-items: flex-start;
	height: 623px;
	padding: 0 var(--panel-x); /* content column max 1600px, centred */
	border-radius: 16px;
	overflow: hidden;
}

/* Figma "img" / "hero image": black fill (the photo's edges are black too,
   so the frame can be any width) */
.hero__bg {
	position: absolute;
	inset: 0;
	background: #000000;
	overflow: hidden;
	isolation: isolate;
	pointer-events: none;
}

/* the 1424 × 623 Figma art-board, always centred in the frame */
.hero__stage {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1424px;
	height: 623px;
	transform: translateX(-50%);
	transform-origin: 50% 100%;
}

/* space photo with the planet and its orbit line: 1569 × 883, centred,
   134px down the art-board */
.hero__photo {
	position: absolute;
	left: calc(50% + 0.5px - 784.5px);
	top: 134px;
	width: 1569px;
	height: 883px;
	object-fit: cover;
}
/* Figma "Rectangle 48": blurred black band (3526 × 357, 176px above the
   art-board) that fades the photo's top edge; the SVG box includes the blur */
.hero__shade {
	position: absolute;
	left: calc(50% - 1865.8px);
	top: -278.8px;
	width: 3731.6px;
	height: 562.6px;
}

.hero__node {
	position: absolute;
	width: 23px;
	height: 23px;
}
.hero__node > span {
	position: absolute;
	left: 3.07px;
	top: 3.07px;
	width: 16.867px;
	height: 16.867px;
}
.hero__node img {
	position: absolute;
	left: -76.36%;
	top: -76.36%;
	width: 252.72%;
	height: 252.72%;
}

/* Figma "circles" component (variants Rest, K0–K3), prototyped with Smart Animate:
   Rest holds 1s → 0.8s ease-in-out → K0, then K0 → K1 → K2 → K3 → K0 at 1.6s
   linear each, forever. Every layer rotates about the shared ring centre
   (712, 729 in component space); CSS rotate() = −(Figma rotation). Each ring's
   lit arc and its comet fade in, sweep clockwise over the planet, then vanish.
   The instance on the home hero is the 1424 × 634 component scaled to
   1801.34 × 802 (× 1.265), placed at (-188.61, 0) — ring centre (712.5, 922.2). */
.hero__rings {
	position: absolute;
	left: -188.61px;
	top: 0;
	width: 1424px;
	height: 634px;
	transform: scale(1.26499);
	transform-origin: 0 0;
}
.hero__ring,
.hero__pulse {
	position: absolute;
	transform-origin: 50% 50%;
	will-change: transform, opacity;
}
.hero__ring--outer {
	left: 74px;
	top: 90px;
	width: 1276px;
	height: 1278px;
	animation:
		ring-outer-intro 0.8s ease-in-out 1s both,
		ring-outer-loop 6.4s linear 1.8s infinite;
}
.hero__ring--inner {
	left: 239px;
	top: 256px;
	width: 946px;
	height: 946px;
	animation:
		ring-inner-intro 0.8s ease-in-out 1s both,
		ring-inner-loop 6.4s linear 1.8s infinite;
}
/* "Pulse" layers: 1.5px white stroke with an angular-gradient comet head
   (transparent until 98.2%, 0.4 at 99.3%, solid at 100%) */
.hero__pulse {
	border: 1.5px solid #ffffff;
	border-radius: 50%;
	opacity: 0;
	transform: rotate(-165deg);
	-webkit-mask-image: conic-gradient(from 90deg, transparent 0deg 353.52deg, rgba(0, 0, 0, 0.4) 357.48deg, #000 360deg);
	mask-image: conic-gradient(from 90deg, transparent 0deg 353.52deg, rgba(0, 0, 0, 0.4) 357.48deg, #000 360deg);
}
.hero__pulse--outer {
	left: 73.25px;
	top: 89.25px;
	width: 1277.5px;
	height: 1279.5px;
	animation:
		pulse-outer-intro 0.8s ease-in-out 1s both,
		pulse-outer-loop 6.4s linear 1.8s infinite;
}
.hero__pulse--inner {
	left: 238.25px;
	top: 255.25px;
	width: 947.5px;
	height: 947.5px;
	animation: pulse-inner-loop 6.4s linear 1.8s infinite;
}

/* Rest → K0 */
@keyframes ring-outer-intro {
	from {
		transform: rotate(0deg);
		opacity: 1;
	}
	to {
		transform: rotate(-20deg);
		opacity: 1;
	}
}
@keyframes ring-inner-intro {
	from {
		transform: rotate(0deg);
		opacity: 1;
	}
	to {
		transform: rotate(-90deg);
		opacity: 0;
	}
}
@keyframes pulse-outer-intro {
	from {
		transform: rotate(-165deg);
		opacity: 0;
	}
	to {
		transform: rotate(-65deg);
		opacity: 1;
	}
}
/* K0 (0%) → K1 (25%) → K2 (50%) → K3 (75%) → K0 (100%) */
@keyframes ring-outer-loop {
	0% {
		transform: rotate(-20deg);
		opacity: 1;
	}
	25% {
		transform: rotate(15deg);
		opacity: 0;
	}
	50% {
		transform: rotate(-90deg);
		opacity: 0;
	}
	75% {
		transform: rotate(-55deg);
		opacity: 0.7;
	}
	100% {
		transform: rotate(-20deg);
		opacity: 1;
	}
}
@keyframes ring-inner-loop {
	0% {
		transform: rotate(-90deg);
		opacity: 0;
	}
	25% {
		transform: rotate(-55deg);
		opacity: 0.7;
	}
	50% {
		transform: rotate(-20deg);
		opacity: 1;
	}
	75% {
		transform: rotate(15deg);
		opacity: 0;
	}
	100% {
		transform: rotate(-90deg);
		opacity: 0;
	}
}
@keyframes pulse-outer-loop {
	0% {
		transform: rotate(-65deg);
		opacity: 1;
	}
	25% {
		transform: rotate(-15deg);
		opacity: 0;
	}
	50% {
		transform: rotate(-165deg);
		opacity: 0;
	}
	75% {
		transform: rotate(-115deg);
		opacity: 1;
	}
	100% {
		transform: rotate(-65deg);
		opacity: 1;
	}
}
@keyframes pulse-inner-loop {
	0% {
		transform: rotate(-165deg);
		opacity: 0;
	}
	25% {
		transform: rotate(-115deg);
		opacity: 1;
	}
	50% {
		transform: rotate(-65deg);
		opacity: 1;
	}
	75% {
		transform: rotate(-15deg);
		opacity: 0;
	}
	100% {
		transform: rotate(-165deg);
		opacity: 0;
	}
}

.hero__content {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 72px 8px 56px;
}

.hero__eyebrow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 4px 0 4px 20px;
}
.hero__eyebrow p {
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 16px;
	line-height: normal;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: var(--white);
	white-space: nowrap;
}

.hero__main {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}
.hero__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}
.hero__title {
	font-weight: 500;
	font-size: 80px;
	line-height: 1.06;
	letter-spacing: -1.6px;
	white-space: nowrap;
	background-image: linear-gradient(87.44deg, #ffffff 3.45%, #5f8aff 99.75%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__lead {
	width: 465px;
	max-width: 100%;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.36;
	letter-spacing: 0.28px;
	background-image: linear-gradient(to right, #ffffff, var(--blue-light));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* "Button accent" — Figma variants Default / Hover Left|Right / Pressed Left|Right,
   Smart Animate 0.22s ease-out. The hovered half grows 1.12× out from the
   connector and tints #E7EEFF (pressed: 0.98×, #CBD8FF), its label and arrow
   turn #003AD8, and the connector's wings stretch to meet it while their
   gradients blend the tint back into white. */
.btn-accent {
	--ba-t: 0.22s ease-out;
	--cn-l-out: #ffffff;
	--cn-l-in: #ffffff;
	--cn-r-in: #ffffff;
	--cn-r-out: #ffffff;
	--cn-w-l: #ffffff;
	--cn-w-r: #ffffff;
	--cn-s-l: 1;
	--cn-s-r: 1;
	display: flex;
	align-items: center;
	max-width: 100%;
	padding: 4px 0;
}
.btn-accent .btn-detail {
	position: relative;
	z-index: 1; /* halves sit over the connector's overlap strips (keeps the arrow tip visible) */
	isolation: isolate;
	background: none;
	border-radius: 0;
	transition: color var(--ba-t);
}
/* each half's background, scaled independently of its label */
.btn-accent .btn-detail::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--white);
	transition:
		transform var(--ba-t),
		background-color var(--ba-t);
}
.btn-accent .btn-detail--left::before {
	border-radius: 24px 0 0 24px;
	transform-origin: 100% 50%;
}
.btn-accent .btn-detail--right::before {
	border-radius: 0 24px 24px 0;
	transform-origin: 0 50%;
}
/* enlarged hit areas (Figma "Hit Left" / "Hit Right") meet mid-connector */
.btn-accent .btn-detail::after {
	content: "";
	position: absolute;
	inset: -4px -51.5px -4px -14px;
}
.btn-accent .btn-detail--right::after {
	inset: -4px -21px -4px -51.5px;
}
.btn-accent .arrow {
	transition: transform var(--ba-t);
}

/* hover */
@media (hover: hover) {
	.btn-accent .btn-detail:hover {
		color: #003ad8;
	}
	.btn-accent .btn-detail:hover::before {
		transform: scale(1.12);
		background-color: #e7eeff;
	}
	.btn-accent:has(.btn-detail--left:hover) {
		--cn-l-out: #e7eeff;
		--cn-l-in: #f3f6ff;
		--cn-r-in: #f3f6ff;
		--cn-w-l: #e7eeff;
		--cn-s-l: 1.142857;
	}
	.btn-accent:has(.btn-detail--right:hover) {
		--cn-l-in: #f3f6ff;
		--cn-r-in: #f3f6ff;
		--cn-r-out: #e7eeff;
		--cn-w-r: #e7eeff;
		--cn-s-r: 1.142857;
	}
}
.btn-accent .btn-detail:focus-visible {
	outline: none;
	color: #003ad8;
}
.btn-accent .btn-detail:focus-visible::before {
	transform: scale(1.12);
	background-color: #e7eeff;
}
.btn-accent:has(.btn-detail--left:focus-visible) {
	--cn-l-out: #e7eeff;
	--cn-l-in: #f3f6ff;
	--cn-r-in: #f3f6ff;
	--cn-w-l: #e7eeff;
	--cn-s-l: 1.142857;
}
.btn-accent:has(.btn-detail--right:focus-visible) {
	--cn-l-in: #f3f6ff;
	--cn-r-in: #f3f6ff;
	--cn-r-out: #e7eeff;
	--cn-w-r: #e7eeff;
	--cn-s-r: 1.142857;
}

/* pressed */
.btn-accent .btn-detail:active {
	color: #003ad8;
}
.btn-accent .btn-detail:active::before {
	transform: scale(0.98);
	background-color: #cbd8ff;
}
.btn-accent .btn-detail--left:active .arrow {
	transform: translateX(2px);
}
.btn-accent:has(.btn-detail--left:active) {
	--cn-l-out: #cbd8ff;
	--cn-l-in: #e5ebff;
	--cn-r-in: #e5ebff;
	--cn-r-out: #ffffff;
	--cn-w-l: #cbd8ff;
	--cn-w-r: #ffffff;
	--cn-s-l: 0.97619;
	--cn-s-r: 1;
}
.btn-accent:has(.btn-detail--right:active) {
	--cn-l-out: #ffffff;
	--cn-l-in: #e5ebff;
	--cn-r-in: #e5ebff;
	--cn-r-out: #cbd8ff;
	--cn-w-l: #ffffff;
	--cn-w-r: #cbd8ff;
	--cn-s-l: 1;
	--cn-s-r: 0.97619;
}

.btn-accent__connector {
	position: relative;
	flex: 0 1 auto;
	width: 103px; /* shrinks (to 40px) only when a narrow phone needs it */
	min-width: 40px;
	height: 48px;
}
.btn-accent__connector svg {
	position: absolute;
	left: -0.49%;
	top: 0;
	width: 100.98%;
	height: 100%;
	overflow: visible;
}
.btn-accent__connector stop {
	transition: stop-color var(--ba-t);
}
.cn-l-out {
	stop-color: var(--cn-l-out);
}
.cn-l-in {
	stop-color: var(--cn-l-in);
}
.cn-r-in {
	stop-color: var(--cn-r-in);
}
.cn-r-out {
	stop-color: var(--cn-r-out);
}
.cn-w-l {
	stop-color: var(--cn-w-l);
}
.cn-w-r {
	stop-color: var(--cn-w-r);
}
.cn-wing {
	transform-box: fill-box;
	transition: transform var(--ba-t);
}
.cn-wing--tl {
	transform-origin: 50% 100%;
	transform: scaleY(var(--cn-s-l));
}
.cn-wing--bl {
	transform-origin: 50% 0;
	transform: scaleY(var(--cn-s-l));
}
.cn-wing--tr {
	transform-origin: 50% 100%;
	transform: scaleY(var(--cn-s-r));
}
.cn-wing--br {
	transform-origin: 50% 0;
	transform: scaleY(var(--cn-s-r));
}

/* scroll indicator with travelling pulse */
.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 56px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 81px;
	overflow: hidden;
	font-weight: 500;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.24px;
	text-transform: uppercase;
	text-align: center;
	color: var(--white);
}
.hero__scroll-icon {
	position: relative;
	width: 24px;
	height: 43px;
	border-radius: 21323px;
}
.hero__scroll-pulse {
	position: absolute;
	left: 11.5px;
	top: 4px;
	width: 1px;
	height: 12px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 75%, #ffffff);
	box-shadow: 0 0 6px 0 rgba(255, 255, 255, 0.6);
	opacity: 0;
	animation: scroll-pulse 1.64s linear infinite;
}
/* Figma "Scroll Indicator" variants: Start (holds 0.7s) → Fall 1 (0.3s ease-in)
   → Fall 2 (0.35s linear) → End (0.25s ease-out) → Start; 1.64s per cycle */
@keyframes scroll-pulse {
	0%,
	42.68% {
		top: 4px;
		height: 12px;
		opacity: 0;
		animation-timing-function: ease-in;
	}
	60.98%,
	61.59% {
		top: 4px;
		height: 13px;
		opacity: 1;
		animation-timing-function: linear;
	}
	82.93%,
	83.54% {
		top: 6px;
		height: 32px;
		opacity: 1;
		animation-timing-function: ease-out;
	}
	98.78%,
	100% {
		top: 28px;
		height: 12px;
		opacity: 0;
	}
}


/* ==========================================================================
   The Idea
   ========================================================================== */

.idea {
	display: flex;
	flex-direction: column;
	height: 640px;
}
.idea__row {
	position: relative;
	flex: 1;
	display: flex;
	align-items: flex-start;
	min-height: 0;
}
.idea__copy {
	flex: 0 0 calc(100% / 3);
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 0 32px 0 8px;
}
.idea__heading {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.idea__visual {
	flex: 1 1 0;
	min-width: 885px;
	height: 100%;
	padding: 8px;
	display: flex;
	flex-direction: column;
}

.diagram {
	position: relative;
	flex: 1;
	border-radius: 8px;
	overflow: hidden;
}
/* the diagram keeps its Figma size and stays centred in the column */
.diagram__stage {
	position: absolute;
	top: 0;
	left: 50%;
	width: 869px;
	height: 528px;
	transform: translateX(-50%);
}

/* accent chip (AutoMesh / PQVPN / PetalVault / Confidential File Sharing) —
   Figma "accent card". On hover (class .is-open, set by the script) the pill
   morphs into its callout: the text bubble starts exactly on top of the pill
   and springs out to full size, the arrow bubble is born at the mouse pointer
   and flies into its slot, then the anchor dot and connectors settle in.
   The script writes the start geometry into --bx/--by/--bs (text bubble) and
   --cx/--cy (arrow bubble) before each open. */
.chip {
	position: absolute;
	display: block;
	outline: none;
	transition: z-index 0s 0.45s; /* stay on top until the close finishes */
}
.chip.is-open {
	z-index: 3;
	transition-delay: 0s;
}
.chip__rest {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	transition: opacity 0.2s ease 0.3s;
}
.chip.is-open .chip__rest {
	opacity: 0;
	transition-duration: 0.12s;
	transition-delay: 0s;
}
.chip__rest::before {
	content: "";
	position: absolute;
	inset: 2px;
	border: 1px solid var(--blue-36);
}
.chip__hover {
	position: absolute;
	top: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease 0.33s;
}
.chip.is-open .chip__hover {
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0s;
	transition-duration: 0.05s;
}
.chip--right .chip__hover {
	right: 0;
} /* right-hand chips grow leftwards */
.chip--left .chip__hover {
	left: 0;
}

/* ---- liquid morph ----------------------------------------------------------
   The blue shapes live in a separate ".goo" layer rendered through an SVG
   blur + alpha-threshold filter (#goo), so the text bubble and the arrow bubble
   melt into each other like a droplet and grow their own concave fillets.
   The text and arrow icon ride on top, crisp, with the same transforms. */
.chip__hover .callout__box,
.chip__hover .callout__cta {
	background: transparent;
}
.chip__hover .callout__conn-top img,
.chip__hover .callout__col--cta > img {
	visibility: hidden; /* the goo filter forms the fillets */
}
.chip__hover {
	isolation: isolate;
}
.goo {
	position: absolute;
	inset: 0;
	z-index: -1; /* under the crisp text and icon */
	filter: url("#goo");
	pointer-events: none;
}
.svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}
.goo__box,
.goo__cta {
	position: absolute;
	background: var(--brand-blue);
}

/* text bubble (content + blob): starts sitting on the pill, swells out */
.chip__hover .callout__box,
.goo__box {
	border-radius: 24px;
	transform: translate(var(--bx, 0px), var(--by, 0px)) scale(var(--bs, 0.7));
	transition: transform 0.45s cubic-bezier(0.5, 0, 0.3, 1),
		border-radius 0.45s cubic-bezier(0.5, 0, 0.3, 1);
}
.chip.is-open .chip__hover .callout__box,
.chip.is-open .goo__box {
	transform: none;
	transition: transform 0.85s var(--ease-gentle),
		border-radius 0.18s ease-out;
}
.chip.is-open .callout--right .goo__box { border-radius: 24px 0 24px 24px; }
.chip.is-open .callout--left .goo__box { border-radius: 0 24px 24px 24px; }
.chip.is-open .callout--right.callout--down .goo__box { border-radius: 24px 24px 0 24px; }
.chip.is-open .callout--left.callout--down .goo__box { border-radius: 24px 24px 24px 0; }

/* arrow bubble (content + blob): a droplet that buds out of the text bubble
   and flows into place under the pointer, staying joined by a liquid neck */
.chip__hover .callout__cta,
.goo__cta {
	border-radius: 50%;
	transform: translate(var(--cx, 0px), var(--cy, 0px)) scale(0.35);
	transition: transform 0.45s cubic-bezier(0.5, 0, 0.3, 1),
		border-radius 0.45s ease;
}
.chip.is-open .chip__hover .callout__cta,
.chip.is-open .goo__cta {
	transform: none;
	transition: transform 0.9s var(--ease-gentle) 0.04s,
		border-radius 0.18s ease-out;
}
.chip.is-open .callout--right .goo__cta { border-radius: 32px 32px 32px 0; }
.chip.is-open .callout--left .goo__cta { border-radius: 32px 32px 0 32px; }
.chip.is-open .callout--right.callout--down .goo__cta { border-radius: 0 32px 32px 32px; }
.chip.is-open .callout--left.callout--down .goo__cta { border-radius: 32px 0 32px 32px; }
.chip__hover .callout__cta .icon16 {
	opacity: 0;
	transition: opacity 0.15s ease;
}
.chip.is-open .chip__hover .callout__cta .icon16 {
	opacity: 1;
	transition: opacity 0.35s ease 0.3s;
}
.chip__hover .callout__box {
	color: rgba(255, 255, 255, 0);
	transition-property: transform, border-radius, color;
}
.chip.is-open .chip__hover .callout__box {
	color: var(--white);
	transition: transform 0.85s var(--ease-gentle),
		border-radius 0.18s ease-out,
		color 0.25s ease 0.05s;
}

/* anchor dot drips in last */
.chip__hover .callout__dot {
	opacity: 0;
	transform: scale(0);
	transition: opacity 0.15s ease, transform 0.25s ease-in;
}
.chip.is-open .chip__hover .callout__dot {
	opacity: 1;
	transform: none;
	transition: opacity 0.3s ease 0.3s, transform 0.8s var(--ease-jelly) 0.3s;
}

/* script helpers: measure final geometry / jump to the start pose without animating */
.chip--measure .chip__hover .callout__box,
.chip--measure .chip__hover .callout__cta,
.chip--measure .goo__box,
.chip--measure .goo__cta {
	transform: none !important;
	transition: none !important;
}
.chip--prep .chip__hover .callout__box,
.chip--prep .chip__hover .callout__cta,
.chip--prep .goo__box,
.chip--prep .goo__cta {
	transition: none !important;
}
.chip__label {
	position: relative;
	max-width: 160px;
	padding: 8px 16px;
	border-radius: 321341px;
	background: var(--brand-blue);
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.56px;
	text-transform: uppercase;
	color: var(--white);
}
.chip__c {
	position: absolute;
	width: 4px;
	height: 4px;
	background: url("../assets/corner-dot.svg") center / 100% 100% no-repeat;
}
.chip__c.tl {
	left: 0;
	top: 0;
}
.chip__c.tr {
	right: 0;
	top: 0;
}
.chip__c.bl {
	left: 0;
	bottom: 0;
}
.chip__c.br {
	right: 0;
	bottom: 0;
}
.chip--automesh {
	right: 63px;
	top: 40.6px;
}
.chip--pqvpn {
	left: 140px;
	top: 66.6px;
}
.chip--petalvault {
	left: 79px;
	top: 315.6px;
}
.chip--filesharing {
	right: 111px;
	top: 373px;
}

/* diagram text labels */
.diagram__label {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 500;
}
.diagram__label--core {
	left: 605px;
	top: 214px;
	width: 173px;
}
.diagram__label--white {
	left: 359px;
	top: 202px;
	width: 127px;
	color: var(--white);
}
.diagram__title {
	font-family: var(--font-mono);
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--black);
	white-space: nowrap;
}
.diagram__desc {
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--gray);
}
.diagram__label--white .diagram__title,
.diagram__label--white .diagram__desc {
	color: var(--white);
}

/* callout (Figma "accent card", hover state): text bubble + CTA bubble joined
   by concave connectors, with an anchor dot. Shown only while its chip is hovered. */
.callout {
	display: flex;
	align-items: flex-start;
}
.callout__col {
	display: flex;
	flex-direction: column;
	align-self: stretch;
}
.callout__col--dot {
	align-items: flex-end;
	justify-content: flex-end;
}
.callout__dot {
	width: 16px;
	height: 16px;
	border-radius: 111px;
	background: var(--black);
}
.callout__conn-top {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	height: 40px;
}
.callout__box {
	max-width: 200px;
	padding: 12px 24px;
	border-radius: 24px 0 24px 24px;
	background: var(--brand-blue);
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--white);
}
.callout__spacer {
	height: 14px;
}
.callout__col--cta {
	padding-bottom: 48px;
}
.callout__cta {
	position: relative;
	width: 41px;
	height: 41px;
	border-radius: 32px 32px 32px 0;
	background: var(--brand-blue);
}
.callout__cta .icon16 {
	position: absolute;
	left: calc(50% + 0.5px);
	top: calc(50% + 0.5px);
	transform: translate(-50%, -50%);
}
/* the concave connectors are 17px: 16px curve + 1px strip tucked under the
   neighbouring bubbles, which hides anti-aliasing seams at the joins */
.callout__conn-top img {
	margin: 0 -1px -1px 0;
}
.callout__col--cta > img {
	margin: -1px 0 0 -1px;
}
.callout--left .callout__conn-top img {
	margin: 0 0 -1px -1px;
}
.callout--left .callout__col--cta > img {
	margin: -1px -1px 0 0;
}

/* "left" variant: mirrored — CTA top-left, anchor dot bottom-right */
.callout--left {
	flex-direction: row-reverse;
}
.callout--left .callout__conn-top {
	justify-content: flex-start;
}
.callout--left .callout__conn-top img,
.callout--left .callout__col--cta > img {
	transform: scaleX(-1);
}
.callout--left .callout__col--cta > img {
	align-self: flex-end;
}
.callout--left .callout__box {
	border-radius: 0 24px 24px 24px;
}
.callout--left .callout__cta {
	border-radius: 32px 32px 0 32px;
}

/* "down" variants: the same shapes mirrored vertically — CTA at the bottom
   corner, anchor dot at the top (used when the pointer enters below the text) */
.callout--down .callout__col:not(.callout__col--dot),
.callout--down .callout__col--cta {
	flex-direction: column-reverse;
}
.callout--down .callout__col--dot {
	justify-content: flex-start;
}
.callout--down .callout__conn-top {
	align-items: flex-start;
}
.callout--down .callout__col--cta {
	padding-bottom: 0;
	padding-top: 48px;
}
.callout--right.callout--down .callout__box { border-radius: 24px 24px 0 24px; }
.callout--left.callout--down .callout__box  { border-radius: 24px 24px 24px 0; }
.callout--right.callout--down .callout__cta { border-radius: 0 32px 32px 32px; }
.callout--left.callout--down .callout__cta  { border-radius: 32px 0 32px 32px; }
.callout--right.callout--down .callout__conn-top img,
.callout--right.callout--down .callout__col--cta > img {
	transform: scaleY(-1);
}
.callout--left.callout--down .callout__conn-top img,
.callout--left.callout--down .callout__col--cta > img {
	transform: scale(-1, -1);
}
.callout--right.callout--down .callout__conn-top img  { margin: -1px -1px 0 0; }
.callout--right.callout--down .callout__col--cta > img { margin: 0 0 -1px -1px; }
.callout--left.callout--down .callout__conn-top img   { margin: -1px 0 0 -1px; }
.callout--left.callout--down .callout__col--cta > img  { margin: 0 -1px -1px 0; }

/* ==========================================================================
   The Proof
   ========================================================================== */

.proof {
	background: var(--bg);
}
.proof__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 80px;
}
.proof__blobs {
	position: absolute;
	top: -125px;
	bottom: -125px;
	left: 50%;
	width: 1440px;
	transform: translateX(-50%);
	pointer-events: none;
}
.proof__head {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 0 8px;
}
.proof__heading {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.proof__intro {
	flex-shrink: 0;
	width: 337px;
	text-align: right;
}

.proof__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 392px;
	align-items: end;
}
.proof__empty {
	height: 392px;
}

.glass-card {
	display: flex;
	flex-direction: column;
	padding: 8px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px var(--blue-36); /* Figma inside stroke */
}
.glass-card__inner {
	display: flex;
	flex-direction: column;
	gap: 100px;
	height: 376px;
	padding: 24px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--white-32);
	-webkit-backdrop-filter: blur(100px);
	backdrop-filter: blur(100px);
}
/* Figma Card typ=4 hover variant (instant): solid white glass, the dot becomes
   a 48px blue ↗ button and the label's underline is hidden */
@media (hover: hover) {
	.glass-card:hover .glass-card__inner {
		background: #ffffff;
	}
	.glass-card:hover .label-line {
		visibility: hidden;
	}
	.glass-card:hover .card-btn {
		width: 48px;
		height: 48px;
	}
	.glass-card:hover .card-btn svg {
		display: block;
	}
}
.glass-card:focus-visible {
	outline: none;
}
.glass-card:focus-visible .glass-card__inner {
	background: #ffffff;
}
.glass-card:focus-visible .label-line {
	visibility: hidden;
}
.glass-card:focus-visible .card-btn {
	width: 48px;
	height: 48px;
}
.glass-card:focus-visible .card-btn svg {
	display: block;
}
.glass-card__top {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}
.glass-card__label {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	overflow: hidden;
}
.label-text {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--brand-blue);
	white-space: nowrap;
}
.label-line {
	position: relative;
	width: 44px;
	height: 0;
}
.label-line img {
	position: absolute;
	left: 0;
	top: -2px;
	width: 44px;
	height: 4px;
}
.glass-card__body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* ==========================================================================
   Choose your path
   ========================================================================== */

.paths__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 80px;
}
.paths__head {
	display: flex;
	align-items: flex-start;
	padding: 0 8px;
}
.paths__head > * {
	flex: 1 1 0;
	min-width: 0;
}
.paths__title {
	text-align: right;
}

.paths__cards {
	display: flex;
	align-items: flex-start;
	height: 441px;
}
.path-card {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 64px;
	height: 440px;
	padding: 32px;
	overflow: hidden;
}
/* Figma path Card "Variant2" (hover, Smart Animate 0.05s ease-in-out): a brand-blue
   panel inset 8px, white icon and copy, and a 48px white ↗ button */
.path-card::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 16px;
	background: var(--brand-blue);
	opacity: 0;
	transition: opacity 0.05s ease-in-out;
}
/* Figma "tite 32" on these cards: Manrope Regular, line-height 1.24 */
.path-card .title-32 {
	font-weight: 400;
	line-height: 1.24;
}
.path-card .title-32,
.path-card .body-16,
.path-card__link {
	transition: color 0.05s ease-in-out;
}
/* Figma "link": 160 × 32, label + 25px ↗ arrow, brand blue */
.path-card__link {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	width: 160px;
	height: 32px;
	font-weight: 500;
	font-size: 14px;
	line-height: normal;
	color: var(--brand-blue);
}
.path-card__arrow {
	flex: none;
	width: 25px;
	height: 25px;
	margin-left: auto;
	background: currentColor;
	-webkit-mask: url("../assets/arrow-ne-25.svg") center / 100% 100% no-repeat;
	mask: url("../assets/arrow-ne-25.svg") center / 100% 100% no-repeat;
	transition: transform 0.25s ease;
}
.path-card__text {
	position: relative;
}
@media (hover: hover) {
	.path-card:hover::before {
		opacity: 1;
	}
	.path-card:hover .title-32,
	.path-card:hover .body-16,
	.path-card:hover .path-card__link {
		color: #ffffff;
	}
	.path-card:hover .path-card__arrow {
		transform: translate(2px, -2px);
	}
	.path-card:hover .path-card__icon img {
		filter: brightness(0) invert(1);
	}
	.path-card:hover .path-card__dot {
		right: 24px;
		top: 24px;
		width: 48px;
		height: 48px;
		background: #ffffff;
	}
	.path-card:hover .path-card__dot svg {
		display: block;
	}
}
.path-card:focus-visible {
	outline: none;
}
.path-card:focus-visible::before {
	opacity: 1;
}
.path-card:focus-visible .title-32,
.path-card:focus-visible .body-16,
.path-card:focus-visible .path-card__link {
	color: #ffffff;
}
.path-card:focus-visible .path-card__icon img {
	filter: brightness(0) invert(1);
}
.path-card:focus-visible .path-card__dot {
	right: 24px;
	top: 24px;
	width: 48px;
	height: 48px;
	background: #ffffff;
}
.path-card:focus-visible .path-card__dot svg {
	display: block;
}
.path-card__icon {
	position: relative;
	flex-shrink: 0;
	width: 160px;
	height: 160px;
}
.path-card__icon img {
	width: 160px;
	height: 160px;
}
.path-card__icon--clip {
	overflow: hidden;
}
.path-card__icon--clip img {
	position: absolute;
	left: calc(50% + 0.5px);
	top: 50%;
	width: 157px;
	height: 160px;
	transform: translate(-50%, -50%);
}
.path-card__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.path-card__dot {
	position: absolute;
	right: 16px;
	top: 16px;
}

/* ==========================================================================
   Responsive — tablet & mobile (< 1024px)
   No mobile frame exists in Figma; this re-flows the desktop design:
   stacked columns, 16–24px gutters, scaled hero art and diagram.
   ========================================================================== */

@media (max-width: 1023px) {
	/* ---------- hero ---------- */
	.hero__frame {
		height: auto;
		padding: 0 calc(var(--gutter) - 8px);
	}
	.hero__stage {
		top: auto;
		bottom: 0;
		transform: translateX(-50%) scale(var(--hero-s));
	}
	.hero__content {
		min-width: 0;
		height: auto;
		padding: 64px 0 calc(243px * var(--hero-s) + 72px);
	}
	.hero__text {
		width: 100%;
	}
	.hero__lead {
		width: auto;
		max-width: 465px;
	}
	.hero__eyebrow p {
		font-size: 13px;
		letter-spacing: 0.78px;
		white-space: normal;
		text-align: center;
	}
	.hero__title {
		font-size: clamp(44px, 11.5vw, 72px);
		letter-spacing: -0.02em;
		white-space: normal;
	}
	.hero__scroll {
		bottom: 16px;
	}

	/* the idea */
	.idea {
		height: auto;
	}
	.idea__row {
		flex-direction: column;
		gap: 32px;
	}
	.idea__copy {
		flex: none;
		width: 100%;
		max-width: 560px;
		gap: 24px;
		padding: 0 8px;
	}
	.idea__heading {
		gap: 16px;
	}
	.idea__visual {
		width: 100%;
		min-width: 0;
		height: auto;
		padding: 0;
	}
	/* --k (fit-to-width scale), --t and --tw (label enlargement, so text stays
	   ~11-12px on screen once the diagram is scaled) are set by the script */
	.diagram {
		flex: none;
		height: calc(500px * var(--k, 0.45));
	}
	.diagram__stage {
		transform: translateX(-50%) scale(var(--k, 0.45));
		transform-origin: 50% 0;
	}
	.chip__label {
		max-width: none;
		padding: calc(8px * var(--t, 1)) calc(16px * var(--t, 1));
		font-size: calc(14px * var(--t, 1));
	}
	.diagram__title {
		font-size: calc(20px * var(--t, 1));
	}
	.diagram__desc {
		font-size: calc(14px * var(--t, 1));
		line-height: 1.35;
	}
	.diagram__label--core {
		left: auto;
		right: 74px;
		top: calc(214px - 101px * (var(--t, 1) - 1));
		width: calc(128px * var(--t, 1)); /* stays clear of the circle */
		text-align: right;
	}
	.diagram__label--core .diagram__title {
		white-space: normal;
	}
	.diagram__label--white {
		top: calc(202px - 32px * (var(--tw, 1) - 1));
		left: 340px;
		width: 172px;
	}
	.diagram__label--white .diagram__title {
		font-size: calc(17px * var(--tw, 1));
	}
	.diagram__label--white .diagram__desc {
		font-size: calc(15.5px * var(--tw, 1));
	}
	.chip--filesharing {
		top: calc(312px + 58px * (var(--t, 1) - 1));
	}
	.callout__box {
		max-width: none;
		padding: calc(12px * var(--t, 1)) calc(24px * var(--t, 1));
		font-size: calc(18px * var(--t, 1));
	}

	/* the proof */
	.proof__inner {
		gap: 32px;
	}
	.proof__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.proof__intro {
		width: auto;
		max-width: 420px;
		text-align: left;
	}
	.proof__grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: auto;
		align-items: stretch;
	}
	.proof__empty {
		display: none;
	}
	.glass-card__inner {
		height: 100%;
		min-height: 320px;
		gap: 56px;
	}
	.glass-card__body {
		gap: 24px;
	}

	/* choose your path */
	.paths__inner {
		gap: 24px;
	}
	.paths__head {
		flex-direction: column;
		gap: 16px;
	}
	.paths__spacer {
		display: none;
	}
	.paths__title {
		text-align: left;
	}
	.paths__cards {
		flex-direction: column;
		height: auto;
	}
	.path-card {
		flex: none;
		flex-direction: row;
		align-items: center;
		gap: 32px;
		width: 100%;
		height: auto;
		padding: 32px 40px 32px 8px;
		border-top: 1px solid var(--blue-36);
	}
	.path-card:last-child {
		border-bottom: 1px solid var(--blue-36);
	}
	.path-card__icon {
		transform: scale(0.75);
		transform-origin: 0 50%;
		margin-right: -40px;
	}
	.path-card__dot {
		right: 8px;
		top: 32px;
	}
	.path-card::before {
		inset: 0 -8px;
	} /* hover panel keeps a margin around the copy */

	/* the blobs behind the proof cards are already heavily blurred, so the glass
	   blur adds little on small screens but costs a repaint every frame */
	.glass-card__inner {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* phones */
@media (max-width: 599px) {
	.hero__content {
		padding-top: 60px;
	}

	.proof__grid {
		grid-template-columns: 1fr;
	}
	.glass-card__inner {
		min-height: 0;
		gap: 48px;
	}

	.path-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 28px 8px 32px;
	}
	.path-card__icon {
		transform-origin: 0 0;
		margin: 0 0 -40px;
	}
	.path-card__dot {
		top: 28px;
	}
}

/* very narrow phones */
@media (max-width: 374px) {
	.btn-accent .btn-detail--left {
		padding-left: 16px;
	}
	.btn-accent .btn-detail--right {
		padding-right: 16px;
	}
}

/* looping animations pause while their section is off-screen (class set by the script) */
.is-offscreen .hero__ring,
.is-offscreen .hero__pulse,
.is-offscreen .hero__scroll-pulse {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	/* hold every looping animation on its first (Rest / Default) state */
	.hero__ring,
	.hero__pulse {
		animation: none;
	}
	.hero__scroll-pulse {
		animation: none;
		opacity: 0.8;
	}
}
