/* Rework of https://antigravity.google/ using modern CSS */
/* See https://brm.us/antigravity for details */
@layer reset, tokens, base, components, layout, moderncss, util, compatibility;

@layer moderncss {
	
	@layer misc {
		/* To make the bouncy scroll effect work when the page is shown in an iframe and when the user is already at the edges and nudging the scroller */
		:root {
			overscroll-behavior-y: contain;
		}
	}
	
	@layer layout {
		
		/* Draw a particles ring in the background of the welcome screen */
		/* I am using Houdini PaintWorklets for this */
		@layer ring-particles {
			@supports (background: paint(something)) {
				@layer particles {
					#welcome {
						--ring-radius: 100;
						--ring-thickness: 600;
						--particle-count: 80;
						--particle-rows: 25;
						--particle-size: 2;
						--particle-color: navy;

						--particle-min-alpha: 0.1;
						--particle-max-alpha: 1.0;

						--seed: 200;

						background-image: paint(ring-particles);
					}
				}
				
				@layer animation {
					@property --animation-tick { syntax: '<number>'; inherits: false; initial-value: 0; }
					@property --ring-radius { syntax: '<number> | auto'; inherits: false; initial-value: auto; }
					@keyframes ripple { 0% { --animation-tick: 0; } 100% { --animation-tick: 1; } }
					@keyframes ring { 0% { --ring-radius: 150; } 100% { --ring-radius: 250; } }
					#welcome {
						animation: ripple 6s linear infinite, ring 6s ease-in-out infinite alternate;
					}
				}
				
				@layer follow-mouse {				
					@property --ring-x { syntax: '<number>'; inherits: false; initial-value: 50; }
					@property --ring-y { syntax: '<number>'; inherits: false; initial-value: 50; }
					@property --ring-interactive { syntax: '<number>'; inherits: false; initial-value: 0; }
					
					#welcome {
						/* @NOTE: Requires JS until the CSSWG resolves on https://github.com/w3c/csswg-drafts/issues/6733 */
						transition: --ring-x 3s ease,
												--ring-y 3s ease;
						
						/* @NOTE: This still feels uncanny, so I’m disabling it for now. It could be solved by having something like an animation-speed available. */
						/* transition-duration: if(
							style(--ring-interactive: 1): 0.25s;
							else: 3s;
						); */
					
					}
				}
			}
		}
		
		/* Draw some dynamic noise behind some of the screens */
		/* I am using Houdini PaintWorklets for this */
		@layer speckled-backgrounds {
			@supports (background: paint(something)) {
				#beforeyougo .card,
				#who > div {
			    --extra-confettiNumber: 250;
  			  --extra-confettiLengthVariance: 1;
			    --extra-confettiWeightVariance: 1;
    			background-image: paint(extra-confetti);
				}
			}
		}
		
		@layer product {
			/* @TODO: Move `container-type: inline-size` for centered sticky using cqi to here, as that is modern CSS */
		}
	}
	
	@layer components {
		@layer button {
			
			/* Buttons in .dark containers have inverted colors */
			@scope (.dark) {
				button {
					color: var(--theme-surface-on-surface);
					background: var(--theme-primary-on-primary);
					border: 1px solid var(--theme-outline-variant);

					&:hover,
					&:focus-visible {
						background: var(--theme-button-secondary-hover);
					}
					
					&.secondary {						
						color: var(--theme-surface-surface);
				    background: var(--theme-nav-button-hover);
			
						&:hover,
						&:focus-visible {
							background: var(--theme-button-secondary-inverse-hover);
						}
					}
				}
			}
		}
		
		@layer navbar {	
			/* Anchor the mobile nav underneath the header */
			@layer mobile {
				@media (width < 930px) {
					header {
						anchor-name: --header;
					}
					
					header nav {
						position: fixed;
						inset: auto;
						top: 0; /* Undo non-modern-CSS styling */
						position-anchor: --header;
						position-area: bottom;
						justify-self: stretch;
						align-self: stretch;
					}
				}
			}
			
			/* Animate-in the nav on mobile when showing */
			@layer mobile {
				@media (width < 930px) {
					header nav {
						transition: opacity .15s ease-in;
						@starting-style {
							opacity: 0;
						}
					}
				}
			}
			
			/* Don’t scroll page when menu is open */
			@media (width < 930px) {
				header:has(.menu-checkbox:checked) {
					&,
					& nav {
						overflow: auto;
						overscroll-behavior: contain;
					}
				}
			}
			
			/* Hidey bar – http://brm.us/hidey-bar-2 */
			@layer hidey-bar {
				html {
					container-type: scroll-state;
				}
				.header-wrapper:not(.header-wrapper:has(.menu-checkbox:checked)) {
					transition: translate 0.25s;
					translate: 0 0;

					@container scroll-state(scrolled: bottom) {
						translate: 0 -100%;
					}
				}
			}
		}
		
		@layer carousel {
			@layer scroll-snapping {
				@layer base-setup {
					@supports (scroll-padding-inline: 3rem) {
						.carousel {
							scroll-padding-inline: 3rem;
							scroll-snap-type: x mandatory;

							> * {
								scroll-snap-align: start;
							}

							/* @NOTE: On the orignal page the last item also snaps to the left */
							/* To get this working, I’d manually add some padding to the right */
							/* Defining that “some” is tricky and requires manual calculation */
							/* Here I am calculating 40vi (because the entries are 60vi) minus gap */
							/* So maybe we should have `auto` on scroll-padding do something? */
							@media (width >= 930px) {
								padding-inline: 3rem calc(40vi - 3rem);
							}
						}
					}
				}
				
				@layer snapped-effects {
					/* @note: The typewriter effect is done with scroll-triggered animations, but could as well be done with snapped state queries */	
					
					.carousel > * {
						container-type: scroll-state;
						
						@supports (container-type: scroll-state) {
							/* The images */
							> figure {
								opacity: .25;								
								transition: opacity .5s ease;

								@container scroll-state(snapped: x) {
									opacity: 1;
								}
							}
							
							/* The bylines */
							> *:not(figure) {
								transition: opacity .5s ease, translate .5s ease;
								transition-delay: 0s;
								opacity: 0;			
								translate: 0 calc(0.5rem * (sibling-index() - 1)) 0;

								@container scroll-state(snapped: x) {
									transition-delay: 0.2s; /* NOTE: It feels like CSS snapped is triggering while it’s still scrolling, so we delay it a bit */
									opacity: 1;
									translate: 0 0 0;
								}
							}
						}
					}
				}
			}
			
			@layer niceties {
				.carousel {
					scrollbar-width: none;
					overscroll-behavior-x: contain;
				}
			}
			
			@layer scroll-buttons {
				/* @note: https://chrome.dev/carousel-configurator/ really helps here */
				.carousel {
					position: relative;
					scroll-behavior: smooth;
					anchor-name: --carousel;
				
					&::scroll-button(*) {
						position: fixed;
						position-anchor: --carousel;
						position-visibility: always;
						font-family: "Material Symbols Outlined";
						
						color: var(--theme-surface-on-surface);
						background: var(--theme-tonal-tonal);
						border: none;
						block-size: 2em;
						font-size: 1.3em;
						inline-size: 2.5em;
						display: flex;
						align-items: center;
						justify-content: center;
						cursor: pointer;
						border-radius: 999px;
						
						transition: opacity 0.25s ease;
					}
					
					/* @note: We currently can’t nest this inside `&::scroll-button(*)` because of how CSS Nesting works */
					&::scroll-button(*):hover {
						background: #eff0f3;
					}
					&::scroll-button(*):disabled {
						cursor: not-allowed;
						opacity: 0.25;
					}

					/* @note: We deviate from the antigravity site here, because CSS carousel does not offer a wrapper around both scroll buttons … */
					&::scroll-button(left) {
						translate: -50% 0;
						content: 'arrow_back' / 'Previous';
					}
					&::scroll-button(right) {
						translate: 50% 0;
						content: 'arrow_forward' / 'Next';
					}
					
					@media (width < 930px) {
						&::scroll-button(left),
						&::scroll-button(right) {
							position-area: center center;
							align-self: end;
						}
					}
					
					@media (width >= 930px) {
						&::scroll-button(left),
						&::scroll-button(right) {
							position-area: center center;
							align-self: start;
							justify-self: start;
							/* Magic numbers … these rely on the flex-basis of the slides + the aspect-ratio of the photos. Nasty, but it works. */
							left: calc(60vi - 1em);
							top: calc((60vi + 1em) * 9 / 16);
						}
					}
				}
			}
		}
	}
	
	@layer animations {
		@layer revealing-welcome-items {
			#welcome {
				svg, .cta {
					transition: translate 0.5s ease, opacity 0.5s ease;
					@starting-style {
						translate: 0 50% 0;
						opacity: 0;
					}
				}
			}
		}
		
		@layer scroll-triggered-typewriter-effect {
			@supports (timeline-trigger-name: --t) {
				
				/* @ref https://codepen.io/bramus/pen/JjwxLNM */
				@keyframes blink {
					from { opacity: 0; }
				}
				@keyframes text {
					from { background-size: 0 }
				}
				
				/* Typewriter effect */
				.typewriter {
					background: 
						/* highlight text */
						linear-gradient(90deg, var(--typewriter-text-color, var(--theme-surface-on-surface)) 0 0) 0 / calc(var(--n, 100) * 1ch) no-repeat 
						/* faded text */
						transparent;
					-webkit-background-clip: text;
					background-clip: text;
					color: transparent;
					animation: text 2s ease-in both;

					&::after {
						content: "|";
						--hdr-gradient: linear-gradient(
							in oklch,
							oklch(80% .3 34),
							oklch(90% .3 200)
						);
						--sdr-gradient: linear-gradient(#ff4700, #0ff);

						background: var(--hdr-gradient);
						background-clip: text;
						color: transparent;

						/* The delay is manually calculated to make the animation only start after the typewriter itself has finished */
						animation: blink 0.2s 1.4s ease infinite alternate both;
					}
				}
				
				/* Typewriter Trigger in product section */
				#product *:has(> .typewriter) {
					timeline-trigger: --t view() cover 30% cover 1000%;
					trigger-scope: --t;
					
					.typewriter {					
						animation-trigger: --t play-once;
						&::after {
							animation-trigger: --t play-once;
							animation-delay: 1.6s;
						}
					}
				}
				
				/* Typewriter Trigger in Carousel */
				.carousel > * {
					timeline-trigger: --t view(inline)
						entry 90% exit 50%;
					trigger-scope: --t;
					
					.typewriter {
						--typewriter-text-color: white;
						animation-trigger: --t play-forwards reset;
						animation-duration: 1.5s;
						
						&::after {
							animation-trigger: --t play-forwards reset;
							animation-delay: 0.9s;
						}
					}
				}
				
				/* Typewriter Trigger in Before You Go */
				#beforeyougo > .card {
					timeline-trigger: --t view() cover 30% cover 1000%;
					trigger-scope: --t;
					
					.typewriter {
						--typewriter-text-color: white;
						animation-trigger: --t play-once;
						animation-duration: 2s;
						
						&::after {
							animation-trigger: --t play-once;
							animation-delay: 1s;
						}
					}
				}
			}
		}
		
		@layer moving-icons {
			@layer slide-in {
				@keyframes slide-in { from { translate: 100% 0 0; } }
				#product .icons {
					timeline-trigger: --t view() cover 30% cover 1000%;
					trigger-scope: --t;				
					animation: slide-in 1s ease both;
					animation-trigger: --t play-once;
				}
			}
			@layer wobble {
				@keyframes wobble {
					from {
						translate: 0 75%;
					}
					to {
						translate: 0 -75%;
					}
				}

				#product .icon {
					/* @NOTE: If we had support for random(), we could even randomize the animation distance per element */
					animation: wobble 4s ease infinite alternate;
					animation-delay: calc(mod(sibling-index(), 5) * -1s);
				}
			}
		}
		
		@layer product-features {
			/* Scroll-triggered fading of the text + images */
			@supports (timeline-trigger-name: --t) {
				@keyframes fade-a-bit {
					from { opacity: 0.3; }
					to { opacity: 1; }
				}

				@keyframes fake-clip-it {
					to { scale: 100% 0%; }
				}
				
				@keyframes fade-in {
					from { opacity: 0; }
				}

				@media (width >= 930px) {
					#features .feature {
						timeline-trigger: --t view() entry 100% cover 50%;
						trigger-scope: --t;

						h3 {
							animation: fade-a-bit 500ms ease both;
							animation-trigger: --t play-forwards play-backwards;
						}

						p {
							position: relative;

							&::after {
								content: '';
								position: absolute;
								bottom: 0;
								left: 0;
								right: 0;
								height: 100%;
								transform-origin: 0 100%;
								background: white;
								animation: fake-clip-it 500ms ease both;
								animation-trigger: --t play-forwards play-backwards;
							}
						}
						
						/* Exclude the first one, because that one is always visible */
						img:not(.feature:first-child img) {
							animation: fade-in 500ms ease both;
							animation-trigger: --t play-forwards play-backwards; /* TODO: Don’t fade out the underlying ones */
						}
					}
				}
			}

			/* @TODO: Scroll-Driven unclipping of the image-wrapper (on the first image) */
		}
		
		@layer scroll-driven-animations {
			/* @note: We also check for range support. See https://brm.us/sda-feature-detection for details */
			@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
				@keyframes scale-up {
					from {
						scale: 0.85;
					}
				}
				#beforeyougo .card {
					animation: scale-up linear both;
					animation-timeline: view();
					animation-range: entry 50% entry 100%;
				}
			}
		}
	}
}

@layer components {
	@layer button {
		button {
			background: var(--theme-primary-primary);
   		color: var(--theme-primary-on-primary);
			border: 0px;
			border-radius: 999px;
			padding: 0.6em 1.5em;
			
			display: flex;
			flex-direction: row;
			justify-content: center;
			align-items: center;
			gap: 0.4rem;
			
			font-size: 0.9em;
			
			cursor: pointer;
			transition: .15s background ease-out;
			
			&:hover,
			&:focus-visible {
				background: var(--theme-button-states-primary-hovered);
			}
			
			&:has(span + .material-symbols-outlined) {
				padding-inline-end: 1em;
			}
			
			&:has(.material-symbols-outlined + span) {
				padding-inline-start: 1em;
			}
			
			&.secondary {
				color: var(--theme-surface-on-surface);
				background: var(--theme-secondary-button);
				border: 1px solid var(--theme-outline-variant);
				
				&:hover,
				&:focus-visible {
					background: var(--theme-button-secondary-hover);
				}
			}
		}
	}
	
	@layer navbar {
		@layer shared {
			nav ul {
				list-style: none;
				margin: 0;
				padding: 0;
			}
			
			.menu-checkbox {
				display: none;
			}
			
			nav a {
				color: var(--theme-surface-on-surface);
				transition: .15s color ease-out, .15s background ease-out;
				text-decoration: none;

				&:hover,
				&:focus-visible {
					color: #000;
					background: var(--theme-button-states-hovered);
				}
			}
		}
		@layer mobile {
			@media (width < 930px) {
				.menu-button {
					cursor: pointer;
					width: 3.5em;
					border-radius: 999px;
					text-align: center;
					place-content: center;
					
					transition: .15s background ease-out;

					&:hover,
					&:focus-visible {
						background: var(--theme-button-states-hovered);
					}
				}
				nav {
					display: none;
				}
			
				nav li {
					font-size: 1.85em;
					font-weight: 350;
					border-bottom: 1px solid var(--theme-surface-surface-container-higher);
					
					&:first-child {
						border-top: 1px solid var(--theme-surface-surface-container-higher);
					}
				}
			
				nav a {
					display: block;

					padding-inline: 3rem;
					padding-block: 1.5rem;
				}
				
				/* When the menu toggle is checked */
				.menu-checkbox:checked {
					/* Show the nav */
					& ~ nav {
						position: fixed;
						inset: 0;
						top: 2.75em; /* This is a guess for how tall the topbar is */
						display: block;
						background: var(--palette-grey-0);
					}
					
					/* Show the proper icon in the button */
					& ~ .menu-button {
						[data-show-when="closed"] {
							display: none !important;
						}
					}
					
					/* Colorize the button differently */
					& ~ .menu-button {
						background: var(--theme-primary-primary);
				    color: var(--theme-primary-on-primary);
						
						&:hover,
						&:focus-visible {
							background: var(--theme-button-states-primary-hovered);
						}
					}
				}
				
				/* When the menu toggle is not checked */
				.menu-checkbox:not(:checked) {
						/* Show the proper icon in the button */
						& ~ .menu-button {
						[data-show-when="open"] {
							display: none !important;
						}
					}
				}
				
				/* Hide the download button */
				header button {
					display: none;
				}
			}
		}
		
		/* Large Menu */
		@layer large {
			@media (width >= 930px) {
				nav ul {
					display: flex;
					flex-direction: row;
					gap: 0.2rem;
					align-self: flex-start;
				}
				
				nav a {			
					padding: 0.6em 1.2em;
					border-radius: 999px;
					color: var(--theme-surface-on-surface-variant);
					white-space: nowrap;
					
					&:hover,
					&:focus-visible {
						color: #000;
						background: var(--theme-nav-button-hover);
					}
				}
				.menu-button {
					display: none;
				}
			}
		}
	}
	
	@layer card {
		.card {
			border-radius: 2em;
			
			&.dark {
				background: var(--theme-primary-primary);
	   		color: var(--theme-surface-surface);
			}
		}
	}
}

@layer layout {
	@layer grid {
		body {
			margin: 0;
			display: grid;
			grid-template-columns:
				[fullbleed-start]
				3rem
				[main-start]
				1fr
				[main-end]
				3rem
				[fullbleed-end];
			grid-auto-rows: min-content;
		}
		
		body > * {
			grid-column: fullbleed;
		}
	}
	
	@layer navigation {
		.header-wrapper {
			position: fixed;
			top: 0;
			left: 0;
			right: 0;
			
			background: var(--theme-surface-surface);
			z-index: 1;
		}
		
		header {
			display: flex;
			flex-direction: row;
			gap: 2rem;
			align-items: center;
			
			padding-inline: 3rem; /* @TODO: Figure out if we can subgrid for this */
			padding-block: 0.5rem;
			
			button,
			.menu-button {
				margin-left: auto;
			}
		}
	}
	
	@layer welcome {
		#welcome {
			h1 svg {
				height: 1em;
				width: auto;
				display: block;
				margin: 0 auto;
			}
			
			p {
				font-size: 4.5em;
				text-align: center;
				font-weight: 500;
				
				color:  var(--theme-surface-on-surface);
				
				span {
					display: block;
					font-size: 0.7em;
					color: var(--theme-surface-on-surface-variant);
				}
			}
			
			.cta {
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;
				gap: 0.3em;
				justify-content: center;
				
				width: 90%;
				margin: 0 auto;
				
				button {
					font-size: 1.15em;
				}
			}
		}
	}
	
	@layer video {
		#video {
			padding: 0 1em;
			
			iframe {
				width: 100%;
				height: auto;
				aspect-ratio: 16/9;
				max-height: 75vh;
				
				border-radius: 2em;
				overflow: clip;
			}
		}
	}
	
	@layer product {
		#product {
			
			display: grid;
			grid-template-columns: subgrid;

			> *:not(.icons) {
				grid-column: main;
			}
			
			.icons {
				grid-column: fullbleed;
			}
			
			.icons {
				height: max(24em, 40vb);
				
				display: flex;
				flex-direction: row;
				gap: 0.5rem;
				align-items: center;
				
				overflow-x: clip;
				
				.icon {
					flex: 0 0 clamp(4rem, 10vw, 6rem);
					aspect-ratio: 1;
					border-radius: 50%;
					
					background: #b7bfd917;
			    border: 1px solid var(--theme-outline-variant);
			    backdrop-filter: blur(5px);
					
					display: grid;
					place-content: center;
					
					span {
						font-size: 2em !important;
					}
				}
			}
		}
		
		#features {

			.feature {
				padding-bottom: 2rem; /* @note: if only we had `gap: x y;` */
				
				h3 {
					font-weight: 350;
					font-size: 1.25em;
					line-height: 1.1;
					margin-block-end: 1rem;
				}
				
				img {
					border-radius: 2em;
				}
				
				p {
					font-weight: 300;
					line-height: 1.2;
					color: var(--theme-surface-on-surface-variant);
				}
			}
			
			
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			grid-auto-rows: auto;
			gap: 2rem;
			
		
			@media (width >= 930px) {
				position: relative;
				
				.img-wrapper {
					position: absolute;
					right: 0;
					top: 0;
					bottom: 0;
					width: 50%;
					container-type: inline-size;
				}
				
				img {
					position: sticky;
					width: 100cqi;
					height: auto;
					top: calc((100svb - 100cqi) / 2);
				}
				
				.feature {
					padding-block: 15vb;
					grid-column: 1;
					
					display: grid;
					place-content: center;
					
					p {
						width: 60%;
						max-width: 60ch;
						text-wrap: pretty;
					}
				}
			}
		}
	}
	
	@layer developers {
		#developers {
			width: 100%;
			border-top: 1px solid var(--theme-outline-variant);
			margin-top: 2em;
			padding-top: 2em;
		
			display: grid;
			grid-template-columns: subgrid;

			> *:not(.carousel) {
				grid-column: main;
			}
			
			.intro {
				color: var(--theme-surface-on-surface-variant);
				font-size: 1.1em;
				line-height: 1.2;
				font-weight: 320;
				padding: 0.5rem 0;
				
				@media (width >= 930px) {
					width: calc(30vw - 1.5rem); /* TODO: This magic value is not entirely 100% accurate. Maybe if we used a cols layout throughout the site it would work nicely */
					margin-left: auto;
				}
			}
			
			.carousel {
				grid-column: fullbleed;
				padding-inline: 3rem;
				width: 100%;
				
				overflow-x: scroll;
				
				display: flex;
				gap: 2rem;
				
				.developer {
					flex: 0 0 100%;
					overflow: clip;
					
					@media (width >= 930px) {
						flex-basis: 60vi;
					}
					
					figure {
						display: grid;
						place-items: center;
						> * {
					    grid-area: 1 / 1;
						}
						
						figcaption {
							color: white;
							font-size: 2em;
						}
					}
					
					img {
						border-radius: 2em;
					}
					
					h3 {
						font-weight: 350;
						font-size: 1.25em;
						line-height: 1.1;
						margin-block-end: 0.5rem;
					}
					
					p {
						width: 40%;
						text-wrap: pretty;
						color: var(--theme-surface-on-surface-variant);
						letter-spacing: 0.05rem;
						font-weight: 300;
					}
					
					a {
						display: flex;
						flex-direction: row;
						align-items: center;
						gap: 0.25em;
						
						color: var(--theme-surface-on-surface-variant);
				    text-decoration: none;
						font-weight: 300;
						
						transition: gap 0.15s ease-in;
						
						&:hover,
						&:focus-visible {
							gap: 0.5em;
						}
						
						&::after {
							font-family: 'Material Symbols Outlined';
							font-weight: normal;
							font-style: normal;
							font-size: 24px;
							line-height: 1;
							letter-spacing: normal;
							text-transform: none;
							display: inline-block;
							white-space: nowrap;
							word-wrap: normal;
							direction: ltr;
							-webkit-font-feature-settings: 'liga';
							font-feature-settings: 'liga';
							-webkit-font-smoothing: antialiased;
							
							content: "\f46a";
						}
					}
				}
			}
		}
	}
	
	@layer who {
		#who {
			display: flex;
			flex-direction: column;
    	align-items: center;
			text-align: center;
			
			@media (width >= 930px) {
				flex-direction: row;
				justify-content: space-around;
			}
			
			> div {
				height: 40vh;
				
				display: grid;
				place-content: center;
				gap: 1em;
			
				@media (width >= 930px) {
					height: 80vh;
				}
			}
			
			h3 {
				font-weight: 400;
				font-size: 1.75em;
		    line-height: 1.1;
				
				@media (width >= 930px) {
					font-size: 2.5em;
				}
				
				span {
					color: var(--theme-surface-on-surface-variant);
				}
			}
			
			button {
				font-size: 1.15em;
				justify-self: center;
			}
		}
	}
	
	@layer beforeyougo {
		#beforeyougo {
			display: grid;
			grid-template-columns: subgrid;
			
			height: min-content;

			> * {
				grid-column: main;
			}
			
			.card {
				width: 100%;
				height: auto;
				aspect-ratio: 4/3;
				max-height: 80vh;
				
				display: grid;
				padding: 4em;
				gap: 1rem;
				
				align-content: center;	
			}	
			
			p {
				font-size: 2em;
				text-wrap: pretty;
				margin: 0;
				max-width: 20ch;
				
				@media (width > 930px) {
					font-size: 3em;
				}
			}
			
			.buttons {
				display: flex;
				flex-direction: column;
				gap: 0.25rem;
				font-size: 1.2em;
				align-items: start;
				
				@media (width > 930px) {
					flex-direction: row;
				}
			}
		}
	}
}

@layer base {
	html {
		background: var(--theme-surface-surface);
		font-family: "Google Sans Flex", sans-serif;
		font-weight: 400;
		
		font-size: 16px;
		
		color: var(--theme-surface-on-surface);
	}
	
	section {
		/* Make sections fullheight */
		min-height: 100dvh;
		
		&.center {
			/* Center their contents */
			place-content: safe center;
			justify-items: center;
		}
	}

	h2 {
		font-size: 2.5em;
		font-weight: 350;
		margin: 0.5rem 0;
		line-height: 1;

		@media (width >= 930px) {
			width: 50%;
			max-width: 25ch;
		}
	}
	
	p {
		color: var(--theme-surface-on-surface-variant);
	}
	
	@scope (.dark) {
		p {
			color: var(--theme-surface-surface);
		}
	}
}

@layer reset {
	html, body {
		height: 100%;
	}
	
	* {
		box-sizing: border-box;
	}
	
	img {
		max-width: 100%;
		height: auto;
	}
	
	ul[class] {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	
	input, textarea, select, button {
		font-family: inherit;
		font-size: inherit;
	}
	
	a:focus-visible,
	button:focus-visible {
		outline-offset: 0.2rem;
	}
	
	figure {
		margin: 0;
	}
}

@layer util {
	.sr-only {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border-width: 0;
	}
	
	.not-sr-only {
		position: static;
		width: auto;
		height: auto;
		padding: 0;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}
}

@layer tokens {
	@layer colors {
		:root {
			--palette-grey-900: #2F3034;
			--palette-grey-800: #45474D;
			--palette-grey-50: #E6EAF0;
			--palette-grey-0: #FFFFFF;
			--palette-grey-1000: #212226;
			--palette-grey-20: #EFF2F7;
			--palette-grey-1200: #121317;
			--palette-grey-1100: #18191D;
			--palette-grey-10: #F8F9FC;
			--palette-grey-100: #E1E6EC;
			--palette-grey-200: #CDD4DC;
			--palette-grey-300: #B2BBC5;
			--palette-grey-400: #B7BFD9;
			--palette-grey-600: #AAB1CC4D;
			--palette-grey-1000-12: #dedfe2;
			--palette-grey-50-20: #414347;
			--palette-grey-15: #F0F1F5;
			--palette-grey-0-rgb: 255, 255, 255;
			--palette-grey-50-rgb: 230, 234, 240;
			--palette-grey-400-rgb: 183, 191, 217;
			--palette-grey-600-rgb: 170, 177, 204;
			--palette-grey-1000-rgb: 33, 34, 38;
			--palette-grey-1200-rgb: 18, 19, 23;
			--theme-surface-surface: var(--palette-grey-0);
			--theme-surface-on-surface: var(--palette-grey-1200);
			--theme-surface-on-surface-variant: var(--palette-grey-800);
			--theme-surface-surface-container: var(--palette-grey-10);
			--theme-surface-surface-container-high: var(--palette-grey-20);
			--theme-surface-surface-container-higher: var(--palette-grey-50);
			--theme-surface-surface-container-highest: var(--palette-grey-100);
			--theme-surface-inverse-surface: var(--palette-grey-1200);
			--theme-surface-inverse-on-surface: var(--palette-grey-10);
			--theme-surface-inverse-on-surface-variant: var(--palette-grey-300);
			--theme-surface-overlay: rgba(var(--palette-grey-0-rgb), .95);
			--theme-surface-overlay-low: rgba(var(--palette-grey-0-rgb), .12);
			--theme-surface-overlay-high: rgba(var(--palette-grey-0-rgb), .24);
			--theme-surface-overlay-higher: rgba(var(--palette-grey-0-rgb), .72);
			--theme-surface-overlay-highest: rgba(var(--palette-grey-0-rgb), .95);
			--theme-surface-transparent: rgba(var(--palette-grey-0-rgb), 0);
			--theme-inverse-surface-overlay: rgba(var(--palette-grey-1200-rgb), .01);
			--theme-inverse-surface-overlay-high: rgba(var(--palette-grey-1200-rgb), .24);
			--theme-inverse-surface-overlay-higher: rgba(var(--palette-grey-1200-rgb), .72);
			--theme-inverse-surface-overlay-highest: rgba(var(--palette-grey-1200-rgb), .95);
			--theme-inverse-surface: var(--palette-grey-1200);
			--theme-outline: rgba(var(--palette-grey-1000-rgb), .12);
			--theme-outline-variant: rgba(var(--palette-grey-1000-rgb), .06);
			--theme-inverse-outline: rgba(var(--palette-grey-50-rgb), .12);
			--theme-inverse-outline-variant: rgba(var(--palette-grey-50-rgb), .06);
			--theme-outline-inverse-outline-variant: rgba(230, 234, 240, .06);
			--theme-outline-outline-variant: rgba(33, 34, 38, .06);
			--theme-primary-primary: var(--theme-surface-on-surface);
			--theme-primary-on-primary: var(--theme-surface-surface);
			--theme-tonal-tonal: var(--theme-surface-surface-container);
			--theme-tonal-on-tonal: var(--theme-surface-on-surface);
			--theme-outlined-outlined: var(--theme-surface-surface-transparent);
			--theme-outlined-on-outlined: var(--theme-surface-on-surface);
			--theme-protected-protected: var(--theme-surface-surface-container);
			--theme-protected-on-protected: var(--theme-surface-on-surface);
			--theme-text-text: var(--theme-surface-surface-transparent);
			--theme-text-on-text: var(--theme-surface-on-surface);
			--theme-text-link-states-enabled: var(--theme-surface-on-surface-variant);
			--theme-text-link-states-hovered: var(--palette-grey-1000);
			--theme-text-link-states-focused: var(--palette-grey-1100);
			--theme-text-link-states-pressed: var(--palette-grey-1000);
			--theme-text-link-states-disabled: #6A6A71;
			--theme-button-states-primary-enabled: var(--theme-primary-primary);
			--theme-button-states-primary-disabled: var(--palette-grey-10);
			--theme-button-states-primary-hovered: var(--palette-grey-900);
			--theme-button-states-primary-pressed: rgba(var(--palette-grey-50-rgb), .12);
			--theme-button-states-primary-focused: rgba(var(--palette-grey-50-rgb), .2);
			--theme-button-states-primary-on-disabled: rgba(var(--palette-grey-1000-rgb), .2);
			--theme-secondary-button: rgba(var(--palette-grey-400-rgb), .1);
			--theme-button-secondary-hover: var(--palette-grey-15);
			--theme-button-secondary-inverse-hover: rgba(var(--palette-grey-600-rgb), .3);
			--theme-button-states-tonal-enabled: var(--theme-tonal-tonal);
			--theme-button-states-tonal-disabled: var(--palette-grey-10);
			--theme-button-states-protected-enabled: var(--theme-protected-protected);
			--theme-button-states-protected-hovered: var(--palette-grey-20);
			--theme-button-states-protected-disabled: var(--palette-grey-100);
			--theme-button-states-outlined-enabled: var(--theme-outlined-outlined);
			--theme-button-states-disabled: var(--palette-grey-100);
			--theme-button-states-on-disabled: #6A6A71;
			--theme-button-states-hovered: rgba(var(--palette-grey-1000-rgb), .04);
			--theme-button-states-pressed: rgba(var(--palette-grey-1000-rgb), .06);
			--theme-button-states-focused: rgba(var(--palette-grey-1000-rgb), .12);
			--theme-button-states-disabled-transparent: rgba(var(--palette-grey-50-rgb), 0);
			--theme-nav-button: rgba(var(--palette-grey-400-rgb), .09);
			--theme-nav-button-hover: rgba(var(--palette-grey-400-rgb), .2);
			--divider: var(--theme-outline-outline-variant);
			--theme-surface: var(--theme-surface-surface);
			--theme-surface-soft: var(--theme-surface-surface-container);
			--theme-border: var(--theme-outline-outline-variant);
			--theme-text: var(--theme-surface-on-surface);
			--theme-text-muted: var(--theme-surface-on-surface-variant);
			--theme-primary: var(--theme-primary-primary);
			--theme-primary-on: var(--theme-primary-on-primary);
			--theme-secondary: var(--theme-secondary-button);
			--theme-accent-a: #2f6fff;
			--theme-accent-b: #00b95c;
			--radius-pill: 999px;
			--radius-lg: 1.5rem;
			--radius-xl: 2rem;
			--max-content: 1200px;
			--header-height: 4rem;
		}
	}
		
	@layer animations {
		:root {
			--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
			--ease-in-cubic: cubic-bezier(.55, .055, .675, .19);
			--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
			--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
			--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
			--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
			--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
			--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
			--ease-out-quart: cubic-bezier(.165, .84, .44, 1);
			--ease-out-quint: cubic-bezier(.23, 1, .32, 1);
			--ease-out-expo: cubic-bezier(.19, 1, .22, 1);
			--ease-out-circ: cubic-bezier(.075, .82, .165, 1);
			--ease-in-out-quad: cubic-bezier(.455, .03, .515, .955);
			--ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
			--ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);
			--ease-in-out-quint: cubic-bezier(.86, 0, .07, 1);
			--ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
			--ease-in-out-circ: cubic-bezier(.785, .135, .15, .86);
			--ease-out-back: cubic-bezier(.34, 1.85, .64, 1);
		}
	}
}

@layer compatibility {
	html,
	body {
		margin: 0;
		padding: 0;
		background: var(--theme-surface);
		color: var(--theme-text);
	}

	body.site-shell {
		display: block;
		min-height: 100%;
	}

	a {
		color: inherit;
		text-decoration: none;
	}

	main {
		margin-top: calc(var(--header-height) + 1.5rem);
	}

	.section {
		max-width: var(--max-content);
		margin-inline: auto;
		margin-bottom: 4rem;
	}

	.hero {
		min-height: 72vh;
		display: grid;
		align-content: center;
		gap: 1.25rem;
		position: relative;
		overflow: clip;
	}

	.hero::before {
		content: "";
		position: absolute;
		inset: -25% -30% auto;
		height: 38rem;
		z-index: -1;
		border-radius: 100%;
		background: radial-gradient(circle at center, rgba(47, 111, 255, 0.16), rgba(0, 185, 92, 0.09) 35%, transparent 70%);
		filter: blur(20px);
	}

	.hero::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background-image: radial-gradient(rgba(18, 19, 23, 0.07) 0.7px, transparent 0.7px);
		background-size: 11px 11px;
		opacity: 0.12;
		pointer-events: none;
	}

	@keyframes compatibility-fade-rise {
		from {
			opacity: 0;
			transform: translateY(18px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.hero > * {
		animation: compatibility-fade-rise 0.55s ease both;
	}

	.hero > *:nth-child(2) {
		animation-delay: 0.08s;
	}

	.hero > *:nth-child(3) {
		animation-delay: 0.16s;
	}

	.hero > *:nth-child(4) {
		animation-delay: 0.24s;
	}

	[data-ring-interactive] {
		--ring-radius: 100;
		--ring-thickness: 600;
		--particle-count: 80;
		--particle-rows: 25;
		--particle-size: 2;
		--particle-color: navy;
		--particle-min-alpha: 0.1;
		--particle-max-alpha: 1;
		--seed: 200;
		animation: ripple 6s linear infinite, ring 6s ease-in-out infinite alternate;
		transition: --ring-x 3s ease, --ring-y 3s ease;
	}

	@supports (background: paint(something)) {
		[data-ring-interactive] {
			background-image: paint(ring-particles);
		}
	}

	.eyebrow {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		width: fit-content;
		padding: 0.35rem 0.8rem;
		border-radius: var(--radius-pill);
		border: 1px solid var(--theme-border);
		background: var(--theme-surface-soft);
		font-size: 0.875rem;
		color: var(--theme-text-muted);
	}

	.grid-two {
		display: grid;
		gap: 1rem;
		grid-template-columns: 1fr;
	}

	.stack {
		display: grid;
		gap: 1rem;
	}

	.card {
		border: 1px solid var(--theme-border);
		background: var(--theme-surface-soft);
		border-radius: var(--radius-xl);
		padding: 1.25rem;
	}

	.visual {
		border: 1px solid var(--theme-border);
		border-radius: var(--radius-xl);
		overflow: hidden;
		background: #fff;
	}

	.visual img {
		width: 100%;
		display: block;
	}

	.button-row {
		display: flex;
		flex-wrap: wrap;
		gap: 0.6rem;
		margin-top: 0.6rem;
	}

	a.button,
	button.button {
		border: 0;
		padding: 0.65rem 1.15rem;
		border-radius: var(--radius-pill);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		cursor: pointer;
		background: var(--theme-primary);
		color: var(--theme-primary-on);
		font-weight: 500;
	}

	a.button.secondary,
	button.button.secondary {
		border: 1px solid var(--theme-border);
		background: var(--theme-secondary);
		color: var(--theme-text);
	}

	@scope (.dark) {
		a.button,
		button.button {
			color: var(--theme-text);
			background: var(--theme-primary-on);
			border: 1px solid var(--theme-border);
		}

		a.button.secondary,
		button.button.secondary {
			color: var(--theme-surface);
			background: rgba(183, 191, 217, 0.2);
		}
	}

	a.button,
	a.button.secondary,
	button.button,
	button.button.secondary {
		transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	}

	a.button:hover,
	a.button:focus-visible,
	a.button.secondary:hover,
	a.button.secondary:focus-visible,
	button.button:hover,
	button.button:focus-visible,
	button.button.secondary:hover,
	button.button.secondary:focus-visible {
		transform: translateY(-1px);
		box-shadow: 0 10px 24px rgba(18, 19, 23, 0.12);
	}

	.metrics {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.metric {
		border: 1px solid var(--theme-border);
		border-radius: var(--radius-lg);
		padding: 0.8rem;
		background: #fff;
	}

	.metric strong {
		font-size: 1.4rem;
		display: block;
	}

	.icon-ribbon {
		display: flex;
		flex-wrap: wrap;
		gap: 0.75rem;
		align-items: center;
		justify-content: center;
	}

	.icon-chip {
		border: 1px solid var(--theme-border);
		background: rgba(183, 191, 217, 0.12);
		border-radius: 999px;
		padding: 0.5rem 0.95rem;
		color: var(--theme-text-muted);
		animation: wobble 4s ease-in-out infinite alternate;
	}

	label {
		color: var(--theme-text);
		font-weight: 500;
	}

	input,
	select,
	textarea {
		width: 100%;
		margin-top: 0.35rem;
		border: 1px solid var(--theme-border);
		border-radius: 0.8rem;
		padding: 0.7rem 0.8rem;
		font: inherit;
		color: var(--theme-text);
		background: #fff;
	}

	textarea {
		resize: vertical;
	}

	input:focus-visible,
	select:focus-visible,
	textarea:focus-visible {
		outline: 2px solid rgba(47, 111, 255, 0.45);
		outline-offset: 0;
	}

	.form-status {
		border: 1px solid transparent;
		border-radius: 0.8rem;
		padding: 0.75rem 0.9rem;
		margin-top: 0.8rem;
		font-size: 0.95rem;
		display: none;
	}

	.form-status.is-visible {
		display: block;
	}

	.form-status.is-loading {
		background: #edf3ff;
		border-color: #cfe0ff;
		color: #1e4ba8;
	}

	.form-status.is-success {
		background: #ebf9f0;
		border-color: #ccefd9;
		color: #11703b;
	}

	.form-status.is-error {
		background: #ffefef;
		border-color: #ffcfcf;
		color: #9f1f1f;
	}

	.carousel {
		display: flex;
		gap: 1rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 3rem;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		margin-inline: -2rem;
		padding-inline: 2rem;
		position: relative;
		anchor-name: --carousel;
	}

	.carousel::-webkit-scrollbar {
		display: none;
	}

	.carousel > * {
		flex: 0 0 calc(50% - 0.5rem);
		scroll-snap-align: start;
		container-type: scroll-state;
	}

	.carousel-button {
		position: fixed;
		position-anchor: --carousel;
		position-visibility: always;
		font-family: "Material Symbols Outlined";
		font-size: 1.5rem;
		background: var(--theme-primary);
		color: var(--theme-primary-on);
		border: none;
		width: 2.8em;
		height: 2.8em;
		border-radius: var(--radius-pill);
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		transition: transform 0.2s ease, box-shadow 0.2s ease;
		z-index: 5;
	}

	.carousel-button:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 20px rgba(18, 19, 23, 0.15);
	}

	.carousel-button[aria-label="Scroll left"] {
		position-area: start center;
		left: 1rem;
	}

	.carousel-button[aria-label="Scroll right"] {
		position-area: end center;
		right: 1rem;
	}

	.carousel-button[aria-label="Scroll left"]::before {
		content: "chevron_left";
	}

	.carousel-button[aria-label="Scroll right"]::before {
		content: "chevron_right";
	}

	footer.section {
		border-top: 1px solid var(--theme-border);
		padding: 2rem 0 3rem;
		color: var(--theme-text-muted);
		min-height: auto;
	}

	.site-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 10;
		border-bottom: 1px solid var(--theme-border);
		background: rgba(255, 255, 255, 0.92);
		backdrop-filter: blur(10px);
		transition: transform 0.25s ease;
	}

	.site-header.is-hidden {
		transform: translateY(-100%);
	}

	.header-wrapper.is-hidden {
		translate: 0 -100%;
		transition: translate 0.25s ease;
	}

	.site-header .inner {
		height: var(--header-height);
		max-width: var(--max-content);
		margin-inline: auto;
		display: flex;
		align-items: center;
		gap: 0.7rem;
		padding-inline: 1rem;
	}

	.brand {
		font-weight: 600;
		letter-spacing: 0.01em;
		white-space: nowrap;
	}

	.nav-toggle {
		display: none;
	}

	.nav-button {
		margin-left: auto;
		width: 2.5rem;
		height: 2.5rem;
		border-radius: var(--radius-pill);
		border: 1px solid var(--theme-border);
		display: grid;
		place-items: center;
		cursor: pointer;
		font-family: "Material Symbols Outlined";
		font-size: 1.5rem;
		color: var(--theme-text);
		background: transparent;
		transition: background 0.2s ease;
	}

	.nav-button:hover {
		background: var(--theme-secondary);
	}

	.nav-button::before {
		content: "dehaze";
	}

	.nav-toggle:checked ~ .nav-button::before {
		content: "close";
	}

	.nav-menu {
		display: none;
		margin: 0;
		padding: 0.8rem 0.9rem 1rem;
		list-style: none;
		border-top: 1px solid var(--theme-border);
		background: var(--theme-surface);
	}

	.nav-menu > li {
		margin: 0.15rem 0;
	}

	.nav-link,
	.product-label {
		display: block;
		padding: 0.55rem 0.8rem;
		border-radius: var(--radius-pill);
	}

	.nav-link.is-active,
	.product-label.is-active {
		background: var(--theme-secondary);
		color: var(--theme-text);
		font-weight: 600;
	}

	.nav-link:hover,
	.product-label:hover {
		background: var(--theme-secondary);
	}

	.product-menu {
		margin: 0.25rem 0 0 0;
		padding: 0.2rem 0 0.2rem 0.7rem;
		list-style: none;
	}

	.product-menu a {
		display: block;
		padding: 0.35rem 0.8rem;
		border-radius: var(--radius-pill);
		color: var(--theme-text-muted);
	}

	.product-menu a:hover {
		background: var(--theme-secondary);
		color: var(--theme-text);
	}

	.nav-toggle:checked ~ .nav-menu {
		display: block;
	}

	.cta-nav {
		display: none;
		margin-left: auto;
	}

	@supports (container-type: scroll-state) {
		html {
			container-type: scroll-state;
		}

		.site-header:not(:has(.nav-toggle:checked)) {
			transform: translateY(0);

			@container scroll-state(scrolled: bottom) {
				transform: translateY(-100%);
			}
		}
	}

	@media (min-width: 930px) {
		.grid-two {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

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

		.carousel > * {
			flex: 0 0 calc(33.333% - 0.667rem);
		}

		.nav-button {
			display: none;
		}

		.site-header .inner {
			gap: 1.2rem;
		}

		.nav-menu {
			display: flex;
			align-items: center;
			gap: 0.2rem;
			border-top: 0;
			padding: 0;
			background: transparent;
			margin-left: 1rem;
		}

		.nav-menu > li {
			position: relative;
		}

		.product-menu {
			position: absolute;
			left: 0;
			top: 2.35rem;
			min-width: 14rem;
			padding: 0.4rem;
			border: 1px solid var(--theme-border);
			border-radius: 1rem;
			background: #fff;
			opacity: 0;
			visibility: hidden;
			transform: translateY(6px);
			transition: opacity 0.2s ease, transform 0.2s ease;
		}

		.has-product:hover .product-menu,
		.has-product:focus-within .product-menu {
			opacity: 1;
			visibility: visible;
			transform: translateY(0);
		}

		.cta-nav {
			display: inline-flex;
		}
	}

	@media (max-width: 929px) {
		.site-header {
			anchor-name: --header;
		}

		.site-header .inner {
			align-items: flex-start;
			flex-wrap: wrap;
		}

		.nav-menu {
			position: fixed;
			inset: auto 0 0;
			top: 0;
			position-anchor: --header;
			position-area: bottom;
			justify-self: stretch;
			align-self: stretch;
			max-height: calc(100dvh - var(--header-height));
			overflow: auto;
			overscroll-behavior: contain;
			transition: opacity 0.15s ease-in;
		}

		.nav-toggle:checked ~ .nav-menu {
			display: block;

			@starting-style {
				opacity: 0;
			}
		}

		.site-header:has(.nav-toggle:checked),
		.site-header:has(.nav-toggle:checked) .nav-menu {
			overflow: auto;
			overscroll-behavior: contain;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.hero > *,
		.icon-chip,
		.typewriter,
		.typewriter::after,
		[data-ring-interactive] {
			animation: none !important;
			transition: none !important;
		}
	}

	/* Keep the developers carousel content centered regardless of scroll-button sizing rules. */
	#developers {
		min-height: auto;
	}

	#developers > div:first-child {
		max-width: 72rem;
		margin-inline: auto;
		text-align: center;
	}

	#developers .carousel {
		width: min(var(--max-content), 100%);
		margin-inline: auto;
		padding-inline: 0;
		scroll-padding-inline: 0;
		justify-content: flex-start;
		gap: 1.5rem;
	}

	/* Keep native CSS carousel controls just below the image row. */
	#developers .carousel::scroll-button(left),
	#developers .carousel::scroll-button(right) {
		position-area: center center;
		align-self: start;
		top: calc((min(60vi, 44rem) * 9 / 16) + 2.75rem);
	}

	#developers .carousel .developer {
		flex: 0 0 min(60vi, 44rem);
		max-width: min(60vi, 44rem);
		scroll-snap-stop: always;
	}

	#developers .carousel .developer h3,
	#developers .carousel .developer p,
	#developers .carousel .developer a {
		margin-inline: auto;
		text-align: center;
	}

	#developers .carousel .developer p {
		width: min(34ch, 100%);
	}

	#developers .carousel .developer a {
		justify-content: center;
	}

	@media (max-width: 929px) {
		#developers .carousel::scroll-button(left),
		#developers .carousel::scroll-button(right) {
			top: calc(56vw + 1.5rem);
		}

		#developers .carousel .developer {
			flex: 0 0 100%;
			max-width: 100%;
		}
	}
}

.site-footer {
	border-top: 1px solid var(--theme-outline-variant, #d7e0ed);
	background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
	padding: 2.5rem 1.25rem 2rem;
	margin-top: 2rem;
}

.deep-dive-teaser {
	min-height: auto;
	padding: 0 1.25rem;
	margin-top: 1.25rem;
}

.deep-dive-teaser .teaser-shell {
	width: min(1080px, 100%);
	margin: 0 auto;
	border: 1px solid var(--theme-outline-variant, #d7e0ed);
	background: linear-gradient(135deg, #f4f8ff 0%, #eefcf6 100%);
	border-radius: 1rem;
	padding: 1.15rem 1.25rem;
	display: grid;
	gap: 0.45rem;
}

.deep-dive-teaser .teaser-kicker {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2f6fff;
}

.deep-dive-teaser h3 {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--theme-surface-on-surface, #121317);
}

.deep-dive-teaser p {
	margin: 0;
	font-size: 0.94rem;
	color: var(--theme-surface-on-surface-variant, #45474d);
}

.deep-dive-teaser .teaser-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.25rem;
}

.deep-dive-teaser .teaser-links a {
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 600;
	padding: 0.38rem 0.7rem;
	border-radius: 999px;
	border: 1px solid #c8d8ff;
	background: rgba(255, 255, 255, 0.9);
	color: #1f4ea8;
}

.deep-dive-teaser .teaser-links a:hover,
.deep-dive-teaser .teaser-links a:focus-visible {
	background: #ffffff;
	border-color: #9fc0ff;
	color: #153a7f;
}

.site-footer .footer-grid {
	max-width: min(1080px, 100%);
	margin: 0 auto;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer h4 {
	margin: 0 0 0.85rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--theme-surface-on-surface, #121317);
}

.site-footer a {
	display: block;
	text-decoration: none;
	font-size: 0.93rem;
	line-height: 1.7;
	color: var(--theme-surface-on-surface-variant, #45474d);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: #2f6fff;
	text-decoration: underline;
}

.site-footer .footer-note {
	max-width: min(1080px, 100%);
	margin: 1.4rem auto 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(205, 212, 220, 0.7);
	font-size: 0.86rem;
	color: var(--theme-surface-on-surface-variant, #45474d);
}

@media (max-width: 860px) {
	.site-footer .footer-grid {
		grid-template-columns: 1fr;
	}

	.deep-dive-teaser .teaser-shell {
		padding: 1rem;
	}
}