/* ==========================================================================
   Naoris — Contact page (Figma node 24:991)
   Needs css/base.css, css/header.css and css/footer.css loaded first.
   Class prefix "ct" = blocks of this page. The page uses the overlay header
   (<site-header overlay>), so the contact section runs under it.
   ========================================================================== */

:root {
	--grey-2: #b3bdd7;
}

/* ==========================================================================
   Contact section ("Connect")
   ========================================================================== */

.ct {
	position: relative;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h)); /* runs under the header */
	padding: 104px 64px 48px;
	background: var(--white);
}

/* "grid 2": two horizontal guides 48px inside a frame that starts at y=56,
   with a brand-blue dot on each corner (shared .hline-grid--both variant) */
.ct__grid {
	top: 56px;
}

/* "pattern bg": two thin circle outlines bleeding off the left edge */
.ct__arcs {
	position: absolute;
	inset: -1px 0 0 0;
	overflow: hidden;
	pointer-events: none;
}
.ct__arc {
	position: absolute;
}
.ct__arc--lg {
	left: -653px;
	top: 0;
	width: 1364px;
	height: 1364px;
}
.ct__arc--sm {
	left: -324px;
	top: 328px;
	width: 707px;
	height: 707px;
}
.ct__arc img {
	width: 100%;
	height: 100%;
}

.ct__layout {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center; /* wider than 1440px (Figma "CONTACT 2560", 38:1345):
	                            the 1312px heading + form block stays centred,
	                            guides and arcs stay on the screen edges */
	gap: 64px;
}

/* ---------- left: heading ---------- */

.ct__heading {
	position: relative;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	width: 624px;
}
.ct__title {
	position: relative;
	width: 100%;
	font-weight: 300;
	font-size: 124px;
	line-height: 0.9;
	text-transform: uppercase;
	color: var(--black);
}
.ct__title span {
	display: block;
}
.ct__title-r {
	text-align: right;
}

/* brand-blue orb (Ellipse 7, rotated 60°) behind "GET IN / TOUCH."
   Figma gives it a PROGRESSIVE layer blur, radius 4 → 100 between two points
   on the disc (sharp rim bottom-right, soft top-left). SVG export flattens that
   to a uniform radius-100 blur, so the disc is exported without a filter and
   the blur is rebuilt here: 5 copies blurred at increasing strength
   (CSS blur = Figma radius ÷ 2), each masked to a band along the Figma blur
   axis. The bands cross-fade linearly and are summed with plus-lighter, so
   their weights always add up to 1. Stops are px along the 688.8px gradient
   line of the 554.49px box (blur start 170.7px → end 669.8px). */
.ct__blob {
	right: -54.36px;
	bottom: -61.05px;
	width: 484.242px;
	height: 484.242px;
}
.ct__blob > .bleed {
	width: 354.49px;
	height: 354.49px;
	transform: rotate(60deg);
}
.ct__blob .bleed > span {
	inset: -28.21%;
	isolation: isolate;
}
.ct__blob .bleed > span > img {
	position: absolute;
	inset: 0;
	filter: blur(var(--b));
	mix-blend-mode: plus-lighter;
	-webkit-mask-image: linear-gradient(253.55deg, var(--m));
	mask-image: linear-gradient(253.55deg, var(--m));
}
.ct__blob-l0 {
	--b: 2px;
	--m: #000 170.7px, transparent 295.5px;
}
.ct__blob-l1 {
	--b: 14px;
	--m: transparent 170.7px, #000 295.5px, transparent 420.3px;
}
.ct__blob-l2 {
	--b: 26px;
	--m: transparent 295.5px, #000 420.3px, transparent 545px;
}
.ct__blob-l3 {
	--b: 38px;
	--m: transparent 420.3px, #000 545px, transparent 669.8px;
}
.ct__blob-l4 {
	--b: 50px;
	--m: transparent 545px, #000 669.8px;
}

.ct__intro {
	position: relative;
	width: 326px;
}

/* ---------- right: form + details ---------- */

.ct__main {
	position: relative;
	flex-shrink: 0;
	width: 624px;
	padding-top: 35px;
}

.ct-form {
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.ct-form__row {
	display: flex;
	align-items: flex-start;
	gap: 36px;
}
.ct-form__row > .ct-field {
	flex: 1 1 0;
	min-width: 0;
}

/* Figma "Input": legend row (label + required mark) over an underlined field */
.ct-field {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--grey-2);
	transition: border-color 0.2s ease;
}
.ct-field:focus-within {
	border-color: var(--brand-blue);
}
.ct-field__legend {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 14px; /* Figma "Legend row" is 14px tall (Input = 14 + 45 + 1 = 60) */
	font-weight: 500;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.24px;
	text-transform: uppercase;
	color: var(--black);
	white-space: nowrap;
}
.ct-field__legend img {
	flex-shrink: 0;
	width: 8px;
	height: 14px;
}
.ct-field__input {
	display: block;
	width: 100%;
	min-height: 45px;
	padding: 10px 0 12px;
	border: 0;
	border-radius: 0;
	background: none;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: var(--black);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
textarea.ct-field__input {
	resize: none;
	overflow: hidden;
	field-sizing: content; /* grows with the message where supported */
}

.ct-form__send {
	display: flex;
	align-items: center;
	gap: 48px;
}
.ct-form__note {
	flex: 1 1 0;
	min-width: 0;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: var(--gray);
}
.ct-form__note a,
.ct__detail-body a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 2px;
	transition: text-decoration-color 0.2s ease;
}
.ct-form__note a:hover,
.ct-form__note a:focus-visible,
.ct__detail-body a:hover,
.ct__detail-body a:focus-visible {
	text-decoration-color: currentColor;
}

/* Figma "Buttons" icon / blue / 80: brand-blue circle with a ↗ arrow */
.ct-send {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	padding: 24px;
	border: 0;
	border-radius: 321px;
	background: var(--brand-blue);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.ct-send img {
	flex: none;
	width: 24.356px;
	height: 31.0292px;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}
.ct-send:hover img,
.ct-send:focus-visible img {
	transform: translate(2px, -2px) rotate(45deg);
}
.ct-send:focus-visible {
	outline: 2px solid var(--brand-blue);
	outline-offset: 3px;
}

.ct__details {
	display: flex;
	align-items: flex-start;
	gap: 36px;
	padding-top: 72px;
}
.ct__detail {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 24px;
	text-align: right;
}
.ct__detail-label {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 14px;
	line-height: normal;
	letter-spacing: 1.12px;
	text-transform: uppercase;
	color: var(--brand-blue);
	white-space: nowrap;
}
.ct__detail-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	font-style: normal;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: var(--black);
}

/* ==========================================================================
   Responsive — tablet & mobile (< 1024px)
   ========================================================================== */

@media (max-width: 1023px) {
	.ct {
		padding: calc(var(--header-h) + var(--section-y)) var(--gutter) var(--section-y);
	}
	.ct__grid {
		top: var(--header-h);
	}
	.ct__layout {
		flex-direction: column;
		gap: 56px;
		padding: 0 8px;
	}

	.ct__heading {
		width: 100%;
		max-width: 624px;
		gap: 24px;
	}
	.ct__title {
		font-size: clamp(56px, 18vw, 124px);
	}
	.ct__blob {
		transform: scale(0.75);
		transform-origin: 100% 100%;
	}
	.ct__intro {
		width: auto;
		max-width: 326px;
	}

	.ct__main {
		width: 100%;
		padding-top: 0;
	}
	.ct-form__send {
		gap: 24px;
	}
	.ct__details {
		padding-top: 56px;
	}
}

/* phones */
@media (max-width: 599px) {
	.ct__blob {
		transform: scale(0.5);
	}
	.ct-form {
		gap: 28px;
	}
	.ct-form__row {
		flex-direction: column;
		gap: 28px;
	}
	.ct-form__row > .ct-field {
		flex: none;
		width: 100%;
	}
	.ct-form__note br {
		display: none; /* the design's line break orphans words on narrow screens
		                  (the markup keeps a space before it) */
	}
	.ct-send {
		width: 64px;
		height: 64px;
		padding: 16px;
	}
	.ct__details {
		flex-direction: column;
		gap: 32px;
		padding-top: 48px;
	}
	.ct__detail {
		width: 100%;
		align-items: flex-start;
		gap: 12px;
		text-align: left;
	}
}
