/* ==========================================================================
   Naoris — shared foundation: tokens, reset, layout grid, type, buttons,
   navigation items and shared decorative components. Loaded by every page.
   ========================================================================== */

:root {
	/* colors (Figma styles) */
	--black: #111111;
	--white: #ffffff;
	--brand-blue: #1e5aff;
	--brand-blue-secondary: #003ad8;
	--blue-light: #9fb9ff;
	--gray: #646c81;
	--bg: #f5f7fb;
	--blue-36: rgba(148, 172, 216, 0.36);
	--white-12: rgba(255, 255, 255, 0.12);
	--white-32: rgba(255, 255, 255, 0.32);
	--brand-blue-32: rgba(30, 90, 255, 0.32);

	/* fonts */
	--font-sans: "Manrope", system-ui, sans-serif;
	--font-mono: "Space Grotesk", system-ui, sans-serif;

	--pill: 564.667px;

	/* Figma: section content fills the width up to 1600px, then stays centred.
	   Side inset of a full-width section (56px at 1440px); "%" resolves
	   against the section's containing block (the page) where it is used. */
	--page-x: max(56px, calc(50% - 800px));
	/* same for content inside an 8px-inset rounded panel (48px at 1440px) */
	--panel-x: max(48px, calc(50% - 800px));

	/* Figma "Gentle" spring (stiffness 100, damping 15, mass 1 → ~1.02s) */
	--ease-gentle: cubic-bezier(0.2, 0.9, 0.3, 1);
	/* softer, wobblier spring for the liquid chip morph (~12% overshoot) */
	--ease-jelly: cubic-bezier(0.3, 1.4, 0.5, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
	:root {
		--ease-gentle: linear(0, 0.1004 5%, 0.307 10%, 0.5266 15%, 0.7129 20%, 0.8507 25%, 0.9414 30%, 0.9942 35%, 1.0196 40%, 1.028 45%, 1.0269 50%, 1.0216 55%, 1.0153 60%, 1.0053 70%, 1.0005 80%, 0.9992 90%, 1);
		--ease-jelly: linear(0, 0.1179 5%, 0.3723 10%, 0.6473 15%, 0.875 20%, 1.028 25%, 1.1062 30%, 1.1263 35%, 1.1106 40%, 1.078 45%, 1.0436 50%, 0.9961 60%, 0.9841 70%, 0.9903 80%, 0.9982 90%, 1);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-family: var(--font-sans);
	color: var(--black);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: none;
}

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

h1,
h2,
h3 {
	font-weight: inherit;
}

/* Full-width page. From 1024px to 1439px a small script scales the 1440px
   layout down (CSS zoom); below 1024px the responsive layout at the end of
   this file takes over. */
.page {
	position: relative;
	width: 100%;
	background: var(--white);
	overflow-x: clip;
}
@media (min-width: 1024px) {
	.page {
		min-width: 1440px;
	}
}

/* vertical grid lines (Figma "grid" instances), drawn in CSS: the outer
   pair stays 56px from the screen edges, the column lines follow the thirds
   of the (max 1600px, centred) content */
.vgrid {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 56px;
	right: 56px;
	border-left: 1px solid var(--blue-36);
	border-right: 1px solid var(--blue-36);
	pointer-events: none;
}
.vgrid--3::before,
.vgrid--4::before,
.vgrid--4::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--blue-36);
}
/* = 100% / 3 and 200% / 3 while the content fills the guide box */
.vgrid--3::before,
.vgrid--4::before {
	left: calc(50% - min(100%, 1600px) / 6);
}
.vgrid--4::after {
	left: calc(50% + min(100%, 1600px) / 6);
}

/* white 12% guides inset 48px inside dark rounded panels */
.vgrid--inner {
	left: 48px;
	right: 48px;
	border-color: var(--white-12);
}

/* element positioned from the centre of a 1424px-wide Figma frame */
.ctr {
	left: calc(50% - 712px + var(--x));
}

/* ---------- shared helpers ---------- */

/* full-bleed decorative layer (grid lines etc.) */
.layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* absolutely positioned image */
.abs {
	position: absolute;
	pointer-events: none;
}

/* box whose image bleeds outside it (blur filters) */
.bleed {
	position: absolute;
	pointer-events: none;
}
.bleed.rel {
	position: relative;
	flex: none;
}
.bleed > span {
	position: absolute;
}
.bleed img {
	width: 100%;
	height: 100%;
}

/* rotated-element bounding box (Figma rotation wrapper) */
.rot {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.rot > img {
	flex: none;
}

/* 16px arrow icon used in buttons */
.icon16 {
	position: relative;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}
.icon16__img {
	position: absolute;
	inset: -8.33% -9.63% -9.63% -8.33%;
}
.icon16__img img {
	width: 100%;
	height: 100%;
	transition: transform 0.25s ease;
}

/* horizontal guide line + corner dots */
.hline-grid {
	--gx: 56px; /* x of the vertical guide the corner dots sit on */
	--gy: 48px; /* y of the horizontal guide */
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: var(--gy) 0;
	border-radius: 12px;
	overflow: hidden;
	pointer-events: none;
}
.hline-grid--hero {
	--gx: 48px;
	--gy: 56px;
}
.hline {
	position: relative;
	width: 100%;
	height: 0;
	flex-shrink: 0;
}
.hline img {
	position: absolute;
	left: 0;
	top: -0.5px;
	width: 100%;
	height: 1px;
}
.grid-dot {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
}
.grid-dot--l {
	left: calc(var(--gx) - 2px);
	top: calc(var(--gy) - 2px);
}
.grid-dot--r {
	right: calc(var(--gx) - 2px);
	top: calc(var(--gy) - 2px);
}
.grid-dot--white {
	background: var(--white);
}
.grid-dot--blue {
	background: var(--brand-blue);
}
/* "both" variant: a second guide line --gy above the bottom edge, with dots */
.hline-grid--both {
	justify-content: space-between;
}
.grid-dot--bl {
	left: calc(var(--gx) - 2px);
	bottom: calc(var(--gy) - 2px);
}
.grid-dot--br {
	right: calc(var(--gx) - 2px);
	bottom: calc(var(--gy) - 2px);
}

/* typography */
.h2 {
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--black);
}
.body-20 {
	font-weight: 500;
	font-size: 20px;
	line-height: 1.32;
	color: var(--black);
}
.body-16 {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.32;
	color: var(--gray);
}
.body-14 {
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: var(--black);
}
.title-24 {
	font-weight: 600;
	font-size: 24px;
	line-height: 1.32;
	color: var(--black);
}
.title-32 {
	font-weight: 600;
	font-size: 32px;
	line-height: 1.32;
	color: var(--black);
}

/* eyebrow (variant 2 — dark text, blue dot) */
.eyebrow {
	position: relative;
	padding: 4px 0 4px 20px;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 14px;
	line-height: normal;
	letter-spacing: 1.12px;
	text-transform: uppercase;
	color: var(--black);
	white-space: nowrap;
}
.eyebrow__dot {
	position: absolute;
	left: 0;
	top: 8px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--brand-blue);
}
/* variant 2 on dark / blue backgrounds — white text, blue dot */
.eyebrow--light {
	color: var(--white);
}
/* default variant (on dark hero images) — 16px regular white text, white dot */
.eyebrow--hero {
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 0.96px;
	color: var(--white);
}
.eyebrow--hero .eyebrow__dot {
	top: 11px;
	background: var(--white);
}

.dot {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.dot--white {
	background: var(--white);
}

/* card "Buttons": a 16px brand-blue dot that becomes a 48px ↗ button in the
   cards' hover variants */
.card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	overflow: hidden;
	border-radius: 321px;
	background: var(--brand-blue);
}
.card-btn svg {
	display: none;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.card-btn--blue svg {
	stroke: #ffffff;
}
.card-btn--white svg {
	stroke: #111111;
}

/* ---------- buttons ---------- */

.btn-group {
	display: flex;
	align-items: center;
}

.btn-detail {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	flex-shrink: 0;
	background: var(--white);
	font-weight: 500;
	font-size: 14px;
	line-height: normal;
	color: var(--black);
	white-space: nowrap;
}
.btn-detail--left {
	padding-left: 20px;
	border-radius: var(--pill) 0 0 var(--pill);
}
.btn-detail--right {
	padding-right: 20px;
	border-radius: 0 var(--pill) var(--pill) 0;
}
.btn-detail .arrow {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.union {
	flex-shrink: 0;
	width: 103px;
	height: 48px;
}
.union--overlap {
	margin-right: -24px;
}

.btn-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 321px;
	background: var(--white);
}
.btn-icon:hover .icon16__img img,
.btn-tertiary:hover .icon16__img img {
	transform: translate(2px, -2px);
}

.btn-tertiary {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 36px;
	padding: 0 16px;
	flex-shrink: 0;
	border: 1px solid var(--black);
	border-radius: 321px;
	font-weight: 500;
	font-size: 14px;
	line-height: normal;
	color: var(--black);
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

/* ---------- navigation items ---------- */

.nav__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 31px;
	padding: 8px 12px;
	flex-shrink: 0;
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 12px;
	line-height: normal;
	letter-spacing: 0.48px;
	text-transform: uppercase;
	white-space: nowrap;
	transition: padding 0.05s ease-in-out;
}
/* Figma "Tab" hover variant: [ LABEL ] brackets, item widens by 14px each side */
.nav__item::before,
.nav__item::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 2.471px;
	height: 15.47px;
	margin-top: -7.735px;
	border: 0.77px solid currentColor;
	opacity: 0;
	transition: opacity 0.05s ease-in-out;
	pointer-events: none;
}
.nav__item::before {
	left: 15.53px;
	border-right: 0;
}
.nav__item::after {
	right: 15.53px;
	border-left: 0;
}
@media (hover: hover) {
	.nav__item:hover {
		padding-left: 26px;
		padding-right: 26px;
	}
	.nav__item:hover::before,
	.nav__item:hover::after {
		opacity: 1;
	}
}
.nav__item:focus-visible {
	padding-left: 26px;
	padding-right: 26px;
	outline: none;
}
.nav__item:focus-visible::before,
.nav__item:focus-visible::after {
	opacity: 1;
}

/* ==========================================================================
   Generic section
   ========================================================================== */

.section {
	position: relative;
	overflow: hidden;
	padding: 48px var(--page-x);
	background: var(--white);
}

/* "pattern dots": uniform 38.7657px grid of r=0.84px brand-blue dots, tiled so
   it covers any width while staying aligned to the 1440px design grid */
.pattern-dots {
	position: absolute;
	left: calc(50% - 720px - 38.7657px * 60);
	width: calc(1440px + 38.7657px * 120);
	background-image: radial-gradient(circle at 2.334px 0.843px, rgba(30, 90, 255, 0.32) 0.7px, rgba(30, 90, 255, 0) 1.1px);
	background-size: 38.7657px 38.7657px;
	pointer-events: none;
}

/* ==========================================================================
   Animated blobs — Figma "anim" component (1440 x 1200)
   Wrap in a positioned .blobs box; pages set its size / placement.
   ========================================================================== */

.blobs {
	position: absolute;
	pointer-events: none;
}
/* Figma "anim" component (1440 × 1200): Default → Variant2 → Variant3 →
   Variant4 → Default, Smart Animate 2s ease-in each (8s loop). Two brand-blue
   discs change position, size and layer blur (CSS blur = Figma radius ÷ 2). */
.blobs__stage {
	position: absolute;
	left: 0;
	top: 0;
	width: 1440px;
	height: 1200px;
	transform: scaleY(var(--blobs-sy, 1)); /* set by the script on stacked layouts */
	transform-origin: 0 0;
}
.blobs__blob {
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 50%;
	background: var(--brand-blue);
	will-change: transform, filter;
}
.blobs__blob--2 {
	transform: translate(603px, 409px);
	width: 555px;
	height: 555px;
	filter: blur(100px);
	animation: blob-2 8s infinite;
}
.blobs__blob--1 {
	transform: translate(407px, 314px);
	width: 391px;
	height: 391px;
	filter: blur(100px);
	animation: blob-1 8s infinite;
}
@keyframes blob-2 {
	0%,
	100% {
		transform: translate(603px, 409px);
		width: 555px;
		height: 555px;
		filter: blur(100px);
		animation-timing-function: ease-in;
	}
	25% {
		transform: translate(720px, 135px);
		width: 469px;
		height: 469px;
		filter: blur(100px);
		animation-timing-function: ease-in;
	}
	50% {
		transform: translate(521px, 151px);
		width: 699px;
		height: 699px;
		filter: blur(400px);
		animation-timing-function: ease-in;
	}
	75% {
		transform: translate(413px, 492px);
		width: 462px;
		height: 462px;
		filter: blur(100px);
		animation-timing-function: ease-in;
	}
}
@keyframes blob-1 {
	0%,
	100% {
		transform: translate(407px, 314px);
		width: 391px;
		height: 391px;
		filter: blur(100px);
		animation-timing-function: ease-in;
	}
	25% {
		transform: translate(0px, 370px);
		width: 833px;
		height: 833px;
		filter: blur(400px);
		animation-timing-function: ease-in;
	}
	50% {
		transform: translate(94px, 486px);
		width: 626px;
		height: 626px;
		filter: blur(100px);
		animation-timing-function: ease-in;
	}
	75% {
		transform: translate(720px, 132px);
		width: 720px;
		height: 720px;
		filter: blur(250px);
		animation-timing-function: ease-in;
	}
}

/* looping blobs pause while off-screen (class set by js/site.js) */
.blobs.is-offscreen .blobs__blob {
	animation-play-state: paused;
}

/* ==========================================================================
   "Contact Us" banner — shared section (Figma 23:885 / 24:714)
   Markup:
     <section class="contact-band" aria-label="Contact">
       <div class="blobs contact-band__blobs">…blobs__stage…</div>
       <a class="contact-band__link" href="contact.html">
         <span class="blobs contact-band__link-blobs">…blobs__stage…</span>
         <span class="contact-band__label">Contact Us</span>
         <img class="contact-band__arrow" src="assets/contact-arrow.svg" … />
       </a>
     </section>
   Both blob layers use the shared "anim" component above.
   ========================================================================== */

.contact-band {
	position: relative;
	display: flex;
	align-items: center;
	padding: 8px 56px;
	overflow: hidden;
	background: #023ad2;
}
.contact-band__blobs {
	left: 50%;
	top: 50%;
	width: 1440px;
	height: 1200px;
	transform: translate(-50%, -50%);
}
.contact-band__link {
	position: relative;
	flex: 0 1 1262px;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 81px 8px;
	overflow: hidden;
	isolation: isolate;
	background: var(--brand-blue-secondary);
	color: var(--white);
}
.contact-band__link-blobs {
	z-index: -1;
	left: -16px;
	top: 50%;
	width: 1358px;
	height: 1200px;
	transform: translateY(-50%);
}
.contact-band__label {
	font-weight: 300;
	font-size: 124px;
	line-height: 0.9;
	white-space: nowrap;
}
.contact-band__arrow {
	flex: none;
	width: 146px;
	height: 146px;
	transition: transform 0.3s var(--ease-gentle);
}
@media (hover: hover) {
	.contact-band__link:hover .contact-band__arrow {
		transform: translate(8px, -8px);
	}
}
.contact-band__link:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: -10px;
}
.contact-band__link:focus-visible .contact-band__arrow {
	transform: translate(8px, -8px);
}

/* ==========================================================================
   Responsive — shared (< 1024px)
   ========================================================================== */

@media (max-width: 1023px) {
	:root {
		--gutter: 24px;
		--section-y: 40px;
		--hero-s: 0.75; /* scale of the hero art-board */
	}

	/* guides follow the narrower gutter; inner column guides are dropped */
	.vgrid {
		left: var(--gutter);
		right: var(--gutter);
	}
	.vgrid--3::before,
	.vgrid--4::before,
	.vgrid--4::after {
		display: none;
	}
	.vgrid--inner {
		left: calc(var(--gutter) - 8px);
		right: calc(var(--gutter) - 8px);
	}
	.hline-grid {
		--gx: var(--gutter);
		--gy: var(--section-y);
	}
	.hline-grid--hero {
		--gx: calc(var(--gutter) - 8px);
		--gy: 40px;
	}

	/* type scale */
	.h2 {
		font-size: clamp(28px, 6.2vw, 40px);
	}
	.body-20 {
		font-size: 17px;
	}
	.title-24 {
		font-size: 22px;
	}
	.title-32 {
		font-size: 26px;
	}

	/* ---------- sections ---------- */
	.section {
		padding: var(--section-y) var(--gutter);
	}

	/* contact us banner */
	.contact-band {
		padding: 8px var(--gutter);
	}
	.contact-band__link {
		flex: 1 1 auto;
		padding: 56px 8px;
	}
	.contact-band__label {
		font-size: clamp(44px, 12vw, 124px);
	}
	.contact-band__arrow {
		width: clamp(44px, 12vw, 146px);
		height: clamp(44px, 12vw, 146px);
	}
}

@media (max-width: 599px) {
	:root {
		--gutter: 16px;
		--hero-s: 0.56;
	}

	.contact-band__link {
		padding: 40px 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.blobs__blob {
		animation: none;
	}
	* {
		transition: none !important;
	}
}
