/* Babble "Stay in touch" sign up, concept B (Arch window) on Sand.
   Everything is scoped to .bab-nl and written in px, because the site root is 62.5%. */

.bab-nl {
	--nl-ground: #F2EAE0;       /* Sand 40 */
	--nl-ink: #012D3E;          /* Navy */
	--nl-head: #3B4F3F;         /* Dark olive */
	--nl-btn-bg: #FE9C61;       /* Peach */
	--nl-btn-fg: #004C65;
	--nl-btn-hover: #DD8941;
	--nl-err: #A3172B;
	--nl-alert-bg: rgba(1, 45, 62, .05);
	--nl-frame: #FBF9F8;        /* Sand 20 */
	--nl-shadow: rgba(40, 30, 10, .35);
	--nl-heading: "Lateef", serif;
	--nl-labelf: "Space Mono", monospace;
	--nl-body: "Hanken Grotesk", sans-serif;
	--nl-ease: cubic-bezier(.16, 1, .3, 1);
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--nl-ground); color: var(--nl-ink);
	font: 400 16px/1.75 var(--nl-body);
	-webkit-font-smoothing: antialiased;
}
.bab-nl *, .bab-nl *::before, .bab-nl *::after { box-sizing: border-box; }
.bab-nl img, .bab-nl svg, .bab-nl video { display: block; max-width: 100%; }
.bab-nl p { margin: 0; }
.bab-nl a { color: inherit; }

.bab-nl-grid {
	max-width: 1320px; margin: 0 auto; padding: clamp(88px, 10vw, 150px) 5%;
	display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: center;
}
.bab-nl .bab-nl-label { font: 400 14px/1.4 var(--nl-labelf); letter-spacing: .1em; text-transform: uppercase; color: var(--nl-ink); }
.bab-nl .bab-nl-title {
	margin: 20px 0 0; font-family: var(--nl-heading); font-weight: 300; text-wrap: balance;
	font-size: clamp(64px, 7.4vw, 104px); line-height: .86; letter-spacing: -.015em; color: var(--nl-head);
}
.bab-nl .bab-nl-title b { font-weight: 600; }
.bab-nl .bab-nl-pitch { margin-top: 26px; font-size: 20px; line-height: 1.55; max-width: 44ch; }

.bab-nl-form { margin-top: 44px; max-width: 640px; }
.bab-nl-line { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }

.bab-nl-field { position: relative; display: grid; gap: 6px; }
.bab-nl .bab-nl-field label { font: 400 13px/1.4 var(--nl-labelf); letter-spacing: .1em; text-transform: uppercase; color: var(--nl-ink); }
.bab-nl .bab-nl-field input {
	width: 100%; margin: 0; color: var(--nl-ink); background: transparent; border-radius: 0; box-shadow: none;
	appearance: none; -webkit-appearance: none;
	border: 0; border-bottom: 2px solid var(--nl-ink); padding: 4px 0 10px;
	font: 400 clamp(30px, 3vw, 40px)/1.1 var(--nl-heading);
	transition: border-color .25s ease;
}
.bab-nl .bab-nl-field input:focus { outline: none; border-bottom-width: 3px; padding-bottom: 9px; }
.bab-nl .bab-nl-field.is-invalid input { border-bottom-color: var(--nl-err); border-bottom-width: 3px; }
.bab-nl .bab-nl-err { display: none; font: 700 14px/1.4 var(--nl-body); gap: 8px; align-items: baseline; }
.bab-nl .bab-nl-field.is-invalid .bab-nl-err { display: flex; }
.bab-nl .bab-nl-err::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--nl-err); transform: translateY(-1px); }

.bab-nl .bab-nl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	font: 400 16px/1 var(--nl-labelf); letter-spacing: .1em; text-transform: uppercase;
	border-radius: 100px; padding: 16px 26px; cursor: pointer; border: 1px solid transparent;
	transition: all .25s ease; white-space: nowrap; text-decoration: none;
	background: var(--nl-btn-bg); color: var(--nl-btn-fg);
}
.bab-nl .bab-nl-btn:hover { background: var(--nl-btn-hover); }
.bab-nl .bab-nl-btn:focus-visible { outline: 2px solid var(--nl-ink); outline-offset: 4px; }
.bab-nl-arrow { width: 26px; height: 16px; transition: transform .25s ease; }
.bab-nl-btn:hover .bab-nl-arrow { transform: translateX(4px); }
.bab-nl-btn[aria-busy="true"] { cursor: progress; }
.bab-nl-btn[aria-busy="true"] .bab-nl-arrow { display: none; }
.bab-nl-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: bab-nl-spin .8s linear infinite; }
.bab-nl-btn[aria-busy="true"] .bab-nl-spin { display: block; }
@keyframes bab-nl-spin { to { transform: rotate(360deg); } }

.bab-nl-step2 { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--nl-ease); }
.bab-nl-in { overflow: hidden; min-height: 0; }
.bab-nl.is-open .bab-nl-step2 { grid-template-rows: 1fr; }
.bab-nl-step2-grid { display: grid; gap: 22px; padding-top: 34px; opacity: 0; transform: translateY(-10px); transition: opacity .5s ease .15s, transform .6s var(--nl-ease) .15s; }
.bab-nl.is-open .bab-nl-step2-grid { opacity: 1; transform: none; }
.bab-nl .bab-nl-kicker { font: 400 13px/1.4 var(--nl-labelf); letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 14px; align-items: center; }
.bab-nl-kicker span { border: 1px solid var(--nl-ink); border-radius: 100px; padding: 5px 11px 4px; }
.bab-nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bab-nl .bab-nl-row .bab-nl-field input { font-size: clamp(26px, 2.4vw, 32px); }
.bab-nl-send { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.bab-nl.is-open .bab-nl-line .bab-nl-next { visibility: hidden; }

.bab-nl .bab-nl-alert { display: none; font-size: 15px; line-height: 1.5; padding: 12px 16px; border-radius: 12px; background: var(--nl-alert-bg); border: 1.5px solid var(--nl-err); }
.bab-nl .bab-nl-alert.is-shown { display: block; }
.bab-nl .bab-nl-small { margin-top: 22px; max-width: 52ch; font-size: 13px; line-height: 1.5; }
.bab-nl-small a { text-underline-offset: 3px; }
.bab-nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bab-nl [tabindex="-1"]:focus { outline: none; }

.bab-nl-done { display: none; margin-top: 36px; }
.bab-nl.is-done .bab-nl-form, .bab-nl.is-done .bab-nl-pitch { display: none; }
.bab-nl.is-done .bab-nl-done { display: grid; gap: 22px; justify-items: start; animation: bab-nl-up .7s var(--nl-ease) both; }
.bab-nl .bab-nl-done p { font-size: 20px; max-width: 42ch; }
.bab-nl .bab-nl-outline { background: transparent; border: 1.5px solid var(--nl-ink); color: var(--nl-ink); }
.bab-nl .bab-nl-outline:hover { background: var(--nl-ink); color: var(--nl-ground); }
.bab-nl .bab-nl-again { background: none; border: 0; color: var(--nl-ink); text-decoration: underline; text-underline-offset: 4px; font: 400 15px/1 var(--nl-body); padding: 6px 0; cursor: pointer; }
@keyframes bab-nl-up { from { opacity: 0; transform: translateY(16px); } }

.bab-nl-window-wrap { position: relative; }
.bab-nl-window {
	position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 20px 20px; overflow: hidden;
	background: #012D3E; box-shadow: 0 34px 60px -30px var(--nl-shadow);
}
.bab-nl-window video { width: 100%; height: 100%; object-fit: cover; }
.bab-nl-window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 10px var(--nl-frame); }
.bab-nl-sh { position: absolute; z-index: 0; pointer-events: none; transition: transform 1s var(--nl-ease); }
.bab-nl-w1 { width: 36%; left: -24%; top: 22%; }
.bab-nl-w2 { width: 34%; right: -12%; top: -6%; transform: rotate(14deg); }
.bab-nl-w3 { width: 24%; right: -16%; bottom: 8%; }
.bab-nl.is-done .bab-nl-w1 { transform: translateY(-14px) rotate(-6deg); }
.bab-nl.is-done .bab-nl-w2 { transform: rotate(4deg) scale(1.06); }

.bab-nl-roundel { position: absolute; z-index: 2; left: -9%; bottom: -6%; width: clamp(128px, 12vw, 168px); aspect-ratio: 1; }
.bab-nl-roundel svg { width: 100%; height: 100%; animation: bab-nl-turn 36s linear infinite; }
.bab-nl-roundel img { position: absolute; inset: 30%; width: 40%; }
@keyframes bab-nl-turn { to { transform: rotate(360deg); } }

.bab-nl-deco { position: absolute; pointer-events: none; z-index: -1; }
.bab-nl-d1 { width: clamp(180px, 20vw, 300px); left: -80px; bottom: -90px; }

@media (max-width: 900px) {
	.bab-nl-grid { grid-template-columns: 1fr; padding: 64px 16px 96px; gap: 48px; }
	.bab-nl-window-wrap { order: -1; width: min(420px, 78%); justify-self: center; }
	.bab-nl-window { aspect-ratio: 1; }
	.bab-nl-roundel { left: -14%; bottom: -10%; width: 116px; }
	.bab-nl-line { grid-template-columns: 1fr; }
	.bab-nl .bab-nl-line .bab-nl-next { justify-self: stretch; }
	.bab-nl.is-open .bab-nl-line .bab-nl-next { display: none; }
	.bab-nl-row { grid-template-columns: 1fr; }
	.bab-nl .bab-nl-send .bab-nl-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.bab-nl *, .bab-nl *::before, .bab-nl *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
