.contact {
	background-color: var(--paper);
	color: var(--black);
	min-height: 62vh;
	display: flex;
	flex-direction: column;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 44px;
	flex: 1;
}

@media (min-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr auto;
		row-gap: 40px;
		align-items: start;
	}
}

.contact-intro {
	display: flex;
	flex-direction: column;
}

.contact-portrait {
	width: 190px;
	height: 250px;
	object-fit: cover;
	filter: grayscale(1);
	border: 2px solid var(--black);
	transform: rotate(-2deg);
	margin-bottom: 26px;
}

@media (min-width: 1024px) {
	.contact-grid {
		grid-template-columns: 1.2fr 0.8fr;
		column-gap: 48px;
		align-items: center;
	}
	.contact-intro {
		flex-direction: row;
		align-items: center;
		gap: 28px;
	}
	.contact-portrait {
		width: 220px;
		height: 290px;
		margin-bottom: 0;
	}
}

.contact-copy {
	flex: 1;
	min-width: 0;
}

.contact-left h2 {
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(1.8rem, 4.5vw, 2.7rem);
	line-height: 1;
	margin-bottom: 18px;
}

.contact-left .blurb {
	font-family: var(--mono);
	font-size: 0.82rem;
	max-width: 42ch;
	margin-bottom: 0;
	line-height: 1.6;
}

.contact-left .blurb + .blurb {
	margin-top: 10px;
}

.btn {
	padding: 14px 28px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	transition:
		background 0.3s ease,
		color 0.3s ease;
}

.btn-solid {
	background: var(--black);
	color: var(--white);
}

.btn-solid:hover {
	background: var(--hot-red);
}

.contact-right {
	border-left: 4px solid var(--black);
	padding-left: 22px;
}

.query .q-label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	opacity: 0.7;
	margin-bottom: 14px;
}

.q-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.q-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.query input,
.query textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	padding: 8px 0;
	font-family: var(--mono);
	font-size: 0.74rem;
	text-transform: uppercase;
	color: var(--black);
	transition: border-color 0.25s ease;
}

.query textarea {
	display: block;
	line-height: 1.55;
	resize: none;
	overflow-y: auto;
}

.query input::placeholder,
.query textarea::placeholder {
	color: rgba(0, 0, 0, 0.4);
	letter-spacing: 0.04em;
}

.query input:focus,
.query textarea:focus {
	border-color: var(--black);
}

.q-submit {
	display: block;
	width: 100%;
	margin-top: 20px;
}

.q-submit:disabled {
	opacity: 0.45;
	cursor: default;
}

@media (hover: none) and (pointer: coarse) {
	.query input,
	.query textarea {
		font-size: 16px;
	}
}

.q-note {
	font-family: var(--mono);
	font-size: 0.62rem;
	color: var(--hot-red);
	margin-top: 10px;
	min-height: 1em;
}

.q-note.is-ok {
	color: var(--ink);
}

.q-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.contact-links {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 18px;
	border-top: 1px solid var(--black);
	padding-top: 20px;
}

@media (min-width: 768px) {
	.contact-links {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 30px;
	}
	.contact-links .copyright {
		text-align: right;
	}
}

.socials {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.socials a,
.socials button {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: var(--black);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.9rem;
	overflow-wrap: anywhere;
	transition: color 0.25s ease;
}

.socials button {
	position: relative;
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
}

.socials a:hover,
.socials button:hover {
	color: var(--hot-red);
}

.socials svg {
	width: 18px;
	height: 18px;
}

.copy-tip {
	position: absolute;
	left: 0;
	bottom: calc(100% + 9px);
	padding: 4px 8px;
	background: var(--black);
	color: var(--white);
	font-family: var(--mono);
	font-size: 0.58rem;
	letter-spacing: 0.08em;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.copy-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 10px;
	border: 5px solid transparent;
	border-top-color: var(--black);
}

.copy-tip.is-on {
	opacity: 1;
	transform: translateY(0);
}

.copyright {
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	opacity: 0.5;
	line-height: 1.7;
}

.copyright a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.copyright a:hover {
	color: var(--hot-red);
}


.fab {
	position: fixed;
	bottom: 22px;
	right: 22px;
	z-index: 50;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--black);
	color: var(--white);
	border: 1px solid var(--gray-500);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	pointer-events: none;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease,
		background 0.25s ease;
}

.fab.show {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.fab:hover {
	background: var(--hot-red);
}

.fab:active {
	transform: scale(0.92);
}

.fab svg {
	width: 22px;
	height: 22px;
}
