/*
Theme Name: Aisamay
Theme URI: https://aisamay.com
Author: Aisamay
Author URI: https://aisamay.com
Description: Lightweight, futuristic single-page theme for Aisamay — enterprise software, AI agents, CRM, mobile and web development. No plugins, no jQuery, no external requests.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aisamay
Tags: one-column, custom-colors, custom-menu, responsive-layout
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* Core palette */
	--ink: #111844;
	--indigo: #4b5694;
	--steel: #7288ae;
	--cream: #eae0cf;

	/* Derived depth steps */
	--ink-deep: #0a0f2e;
	--ink-soft: #17205a;
	--ink-line: rgba(114, 136, 174, 0.18);
	--ink-line-strong: rgba(114, 136, 174, 0.38);

	/* Text */
	--text: #eae0cf;
	--text-dim: rgba(234, 224, 207, 0.66);
	--text-faint: rgba(234, 224, 207, 0.42);

	/* Surfaces */
	--surface: rgba(75, 86, 148, 0.14);
	--surface-hi: rgba(75, 86, 148, 0.24);
	--glass-border: rgba(234, 224, 207, 0.1);

	/* Type */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
		"Liberation Mono", monospace;

	/* Fluid type scale */
	--fs-display: clamp(2.5rem, 7vw, 5.5rem);
	--fs-h2: clamp(1.9rem, 4.2vw, 3.25rem);
	--fs-h3: clamp(1.15rem, 1.9vw, 1.4rem);
	--fs-lead: clamp(1.02rem, 1.7vw, 1.28rem);
	--fs-body: 1rem;
	--fs-small: 0.875rem;
	--fs-label: 0.75rem;

	/* Rhythm */
	--section-y: clamp(5rem, 11vw, 9rem);
	--gutter: clamp(1.25rem, 5vw, 3rem);
	--maxw: 1200px;
	--radius: 18px;
	--radius-sm: 12px;

	/* Motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur: 0.6s;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	background: var(--ink-deep);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

p {
	margin: 0;
}

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

img,
svg {
	max-width: 100%;
	display: block;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--steel);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--steel);
	color: var(--ink-deep);
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	position: relative;
	padding-block: var(--section-y);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--cream);
	color: var(--ink-deep);
	font-weight: 600;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Eyebrow label — small monospace tag above section headings */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1.25rem;
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--steel);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.section-head {
	max-width: 62ch;
	margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.section-head h2 {
	font-size: var(--fs-h2);
	margin-bottom: 1.1rem;
}

.section-head p {
	font-size: var(--fs-lead);
	color: var(--text-dim);
}

.grad-text {
	background: linear-gradient(100deg, var(--cream) 20%, var(--steel) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.95rem 1.9rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
		background-color 0.35s var(--ease), border-color 0.35s var(--ease),
		color 0.35s var(--ease);
}

/* Inline SVGs carry no intrinsic size, so pin it or the icon fills the button. */
.btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	transition: transform 0.35s var(--ease);
}

.btn:hover svg {
	transform: translateX(4px);
}

.btn-primary {
	background: var(--cream);
	color: var(--ink-deep);
	box-shadow: 0 8px 30px -10px rgba(234, 224, 207, 0.5);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 44px -12px rgba(234, 224, 207, 0.65);
}

.btn-ghost {
	background: transparent;
	border-color: var(--ink-line-strong);
	color: var(--text);
}

.btn-ghost:hover {
	transform: translateY(-3px);
	border-color: var(--steel);
	background: var(--surface);
}

/* ==========================================================================
   5. Background atmosphere
   ========================================================================== */

.bg-field {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--ink-deep);
}

/* Faint engineering grid */
.bg-field::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--ink-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: 0.35;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(
		ellipse 80% 60% at 50% 0%,
		#000 20%,
		transparent 75%
	);
}

/* Drifting glow orbs */
.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	will-change: transform;
}

.orb-1 {
	width: 46vw;
	height: 46vw;
	max-width: 620px;
	max-height: 620px;
	top: -14vw;
	left: -10vw;
	background: radial-gradient(circle, var(--indigo), transparent 68%);
	animation: drift-a 26s var(--ease) infinite alternate;
}

.orb-2 {
	width: 40vw;
	height: 40vw;
	max-width: 540px;
	max-height: 540px;
	top: 38%;
	right: -14vw;
	background: radial-gradient(circle, var(--steel), transparent 68%);
	opacity: 0.32;
	animation: drift-b 32s var(--ease) infinite alternate;
}

.orb-3 {
	width: 36vw;
	height: 36vw;
	max-width: 460px;
	max-height: 460px;
	bottom: -8vw;
	left: 22%;
	background: radial-gradient(circle, var(--ink-soft), transparent 70%);
	opacity: 0.6;
	animation: drift-a 38s var(--ease) infinite alternate-reverse;
}

@keyframes drift-a {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(6vw, 5vh, 0) scale(1.12);
	}
}

@keyframes drift-b {
	from {
		transform: translate3d(0, 0, 0) scale(1.08);
	}
	to {
		transform: translate3d(-7vw, -6vh, 0) scale(1);
	}
}

/* ==========================================================================
   6. Header / nav
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
		border-color 0.4s var(--ease), padding 0.4s var(--ease);
	border-bottom: 1px solid transparent;
	padding-block: 1.25rem;
}

.site-header.is-stuck {
	padding-block: 0.7rem;
	background: rgba(10, 15, 46, 0.78);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom-color: var(--ink-line);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: 0.01em;
	flex-shrink: 0;
}

.brand-mark {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	transition: transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
	transform: rotate(90deg);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 2.1rem;
}

/* Plain nav links only — the CTA is a button and keeps its own colours. */
.nav-links a:not(.nav-cta) {
	position: relative;
	font-size: 0.925rem;
	color: var(--text-dim);
	transition: color 0.3s var(--ease);
}

.nav-links a:not(.nav-cta)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 100%;
	height: 1px;
	background: var(--steel);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s var(--ease);
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).is-active {
	color: var(--text);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).is-active::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav-cta {
	padding: 0.65rem 1.4rem;
	font-size: 0.9rem;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ink-line-strong);
	border-radius: 10px;
	background: var(--surface);
	cursor: pointer;
	position: relative;
}

.nav-toggle span {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1.5px;
	background: var(--cream);
	border-radius: 2px;
	transform: translateX(-50%);
	transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span:nth-child(1) {
	top: 16px;
}
.nav-toggle span:nth-child(2) {
	top: 21.5px;
}
.nav-toggle span:nth-child(3) {
	top: 27px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateX(-50%) translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateX(-50%) translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 860px) {
	.nav-toggle {
		display: block;
	}

	.nav-links {
		position: fixed;
		inset: 0 0 auto 0;
		top: 0;
		flex-direction: column;
		justify-content: center;
		gap: 1.75rem;
		height: 100dvh;
		padding: 6rem var(--gutter) 3rem;
		background: rgba(10, 15, 46, 0.96);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
			visibility 0.4s;
	}

	.nav-links.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-links a:not(.nav-cta) {
		font-size: 1.5rem;
		color: var(--text);
	}

	.nav-cta {
		margin-top: 0.5rem;
		padding: 0.9rem 2.2rem;
		font-size: 1rem;
	}
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-block: 8rem 5rem;
}

.hero-inner {
	max-width: 900px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 2rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--ink-line-strong);
	border-radius: 999px;
	background: var(--surface);
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.pulse {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--steel);
	flex-shrink: 0;
}

.pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--steel);
	animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	70%,
	100% {
		transform: scale(3.2);
		opacity: 0;
	}
}

.hero h1 {
	font-size: var(--fs-display);
	font-weight: 600;
	margin-bottom: 1.75rem;
}

.hero h1 .line {
	display: block;
	overflow: hidden;
	/* Room for descenders, which the overflow clip would otherwise cut. */
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
}

.hero h1 .line > span {
	display: block;
}

/*
 * Hero entrance animations, like the scroll reveals, only take effect while
 * .js-reveal is set. Without it the hero renders plainly and immediately
 * rather than depending on an animation to become visible at all.
 */
.js-reveal .hero h1 .line > span {
	transform: translateY(105%);
	animation: rise 1s var(--ease-out) forwards;
}

.js-reveal .hero h1 .line:nth-child(1) > span {
	animation-delay: 0.1s;
}
.js-reveal .hero h1 .line:nth-child(2) > span {
	animation-delay: 0.22s;
}

@keyframes rise {
	to {
		transform: translateY(0);
	}
}

.hero-lead {
	max-width: 60ch;
	margin-bottom: 2.75rem;
	font-size: var(--fs-lead);
	color: var(--text-dim);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.js-reveal .hero-lead {
	opacity: 0;
	animation: fade-up 0.9s var(--ease-out) 0.45s forwards;
}

.js-reveal .hero-actions {
	opacity: 0;
	animation: fade-up 0.9s var(--ease-out) 0.6s forwards;
}

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Marquee of capabilities under the hero */
.hero-strip {
	margin-top: clamp(4rem, 9vw, 7rem);
	padding-top: 2rem;
	border-top: 1px solid var(--ink-line);
}

.js-reveal .hero-strip {
	opacity: 0;
	animation: fade-up 0.9s var(--ease-out) 0.8s forwards;
}

.hero-strip-label {
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 1.25rem;
}

.hero-strip ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.75rem;
}

.hero-strip li {
	padding: 0.45rem 1rem;
	border: 1px solid var(--ink-line);
	border-radius: 999px;
	background: var(--surface);
	font-size: var(--fs-small);
	color: var(--text-dim);
	transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
		transform 0.35s var(--ease);
}

.hero-strip li:hover {
	border-color: var(--steel);
	color: var(--text);
	transform: translateY(-2px);
}

.scroll-hint {
	position: absolute;
	left: 50%;
	bottom: 2rem;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.js-reveal .scroll-hint {
	opacity: 0;
	animation: fade-up 1s var(--ease-out) 1.1s forwards;
}

.scroll-hint::after {
	content: "";
	width: 1px;
	height: 42px;
	background: linear-gradient(var(--steel), transparent);
	animation: scroll-line 2.2s var(--ease) infinite;
	transform-origin: top;
}

@keyframes scroll-line {
	0% {
		transform: scaleY(0);
		opacity: 0;
	}
	40% {
		transform: scaleY(1);
		opacity: 1;
	}
	100% {
		transform: scaleY(1);
		opacity: 0;
	}
}

@media (max-width: 700px) {
	.scroll-hint {
		display: none;
	}
	.hero-actions .btn {
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   8. Services
   ========================================================================== */

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.25rem;
}

/* First card spans two columns on wide screens for an editorial rhythm */
@media (min-width: 980px) {
	.services-grid {
		grid-template-columns: repeat(6, 1fr);
	}
	.service-card:nth-child(1) {
		grid-column: span 3;
	}
	.service-card:nth-child(2) {
		grid-column: span 3;
	}
	.service-card:nth-child(3),
	.service-card:nth-child(4),
	.service-card:nth-child(5) {
		grid-column: span 2;
	}
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: clamp(1.6rem, 3vw, 2.25rem);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	background: linear-gradient(
		160deg,
		var(--surface-hi),
		rgba(17, 24, 68, 0.35) 70%
	);
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

/* Cursor-tracking sheen, positioned by JS custom properties */
.service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(
		420px circle at var(--mx, 50%) var(--my, 0%),
		rgba(114, 136, 174, 0.22),
		transparent 65%
	);
	opacity: 0;
	transition: opacity 0.45s var(--ease);
}

.service-card:hover {
	transform: translateY(-6px);
	border-color: var(--ink-line-strong);
}

.service-card:hover::before {
	opacity: 1;
}

.service-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--ink-line-strong);
	border-radius: 14px;
	background: var(--surface);
	color: var(--steel);
	transition: color 0.45s var(--ease), border-color 0.45s var(--ease),
		transform 0.45s var(--ease);
}

.service-card:hover .service-icon {
	color: var(--cream);
	border-color: var(--steel);
	transform: translateY(-2px) scale(1.04);
}

.service-icon svg {
	width: 24px;
	height: 24px;
}

.service-card h3 {
	font-size: var(--fs-h3);
}

.service-tagline {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--steel);
}

.service-card p.service-desc {
	font-size: 0.95rem;
	color: var(--text-dim);
}

.service-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.service-tags span {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	background: rgba(114, 136, 174, 0.14);
	color: var(--text-faint);
}

/* ==========================================================================
   9. Why / stats
   ========================================================================== */

.why-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 900px) {
	.why-layout {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.why-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.why-item {
	display: flex;
	gap: 1.15rem;
	padding: 1.4rem 1.25rem;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.why-item:hover {
	background: var(--surface);
	border-color: var(--glass-border);
}

.why-num {
	flex-shrink: 0;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--steel);
	padding-top: 0.35rem;
}

.why-item h3 {
	font-size: 1.08rem;
	margin-bottom: 0.4rem;
}

.why-item p {
	font-size: 0.93rem;
	color: var(--text-dim);
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.stat {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	background: linear-gradient(160deg, var(--surface-hi), transparent 75%);
}

.stat-num {
	display: block;
	font-size: clamp(2.1rem, 5vw, 3rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: var(--fs-small);
	color: var(--text-dim);
}

/* ==========================================================================
   10. Process
   ========================================================================== */

.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	counter-reset: step;
}

.step {
	position: relative;
	padding-top: 2.5rem;
	counter-increment: step;
}

/* Connector rail */
.step::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 0;
	right: -1.5rem;
	height: 1px;
	background: var(--ink-line);
}

.step:last-child::before {
	right: 0;
}

.step::after {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 1px solid var(--steel);
	background: var(--ink-deep);
	transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step.is-visible::after {
	background: var(--steel);
	box-shadow: 0 0 0 5px rgba(114, 136, 174, 0.16);
}

.step-num {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	letter-spacing: 0.16em;
	color: var(--steel);
	margin-bottom: 0.75rem;
}

.step h3 {
	font-size: 1.15rem;
	margin-bottom: 0.55rem;
}

.step p {
	font-size: 0.93rem;
	color: var(--text-dim);
}

@media (max-width: 640px) {
	.step::before {
		right: 0;
	}
}

/* ==========================================================================
   11. Contact
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 900px) {
	.contact-layout {
		grid-template-columns: 0.9fr 1.1fr;
		align-items: start;
	}
}

.contact-aside h2 {
	font-size: var(--fs-h2);
	margin-bottom: 1.1rem;
}

.contact-aside p {
	font-size: var(--fs-lead);
	color: var(--text-dim);
	margin-bottom: 2rem;
}

.contact-email {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.4rem;
	border: 1px solid var(--ink-line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 1.02rem;
	font-weight: 500;
	transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
		transform 0.4s var(--ease);
}

.contact-email:hover {
	border-color: var(--steel);
	background: var(--surface-hi);
	transform: translateY(-2px);
}

.contact-email svg {
	width: 19px;
	height: 19px;
	color: var(--steel);
	flex-shrink: 0;
}

.contact-form {
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	background: linear-gradient(160deg, var(--surface-hi), rgba(17, 24, 68, 0.4) 75%);
}

.field {
	margin-bottom: 1.25rem;
}

.field label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: var(--fs-small);
	font-weight: 500;
	color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
	width: 100%;
	padding: 0.85rem 1.05rem;
	border: 1px solid var(--ink-line-strong);
	border-radius: var(--radius-sm);
	background: rgba(10, 15, 46, 0.55);
	color: var(--text);
	font-size: 0.95rem;
	transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
		box-shadow 0.3s var(--ease);
}

.field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237288ae' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 16px;
	padding-right: 2.6rem;
	cursor: pointer;
}

.field select option {
	background: var(--ink-deep);
	color: var(--text);
}

.field textarea {
	min-height: 130px;
	resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
	outline: none;
	border-color: var(--steel);
	background: rgba(10, 15, 46, 0.75);
	box-shadow: 0 0 0 3px rgba(114, 136, 174, 0.15);
}

/* Honeypot — hidden from humans, visible to naive bots */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 1.75rem;
}

.form-note {
	font-size: 0.8rem;
	color: var(--text-faint);
}

.form-msg {
	margin-bottom: 1.5rem;
	padding: 0.9rem 1.15rem;
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	border: 1px solid;
}

.form-msg.is-ok {
	border-color: rgba(114, 136, 174, 0.5);
	background: rgba(114, 136, 174, 0.14);
	color: var(--text);
}

.form-msg.is-err {
	border-color: rgba(224, 122, 122, 0.5);
	background: rgba(224, 122, 122, 0.12);
	color: #f0c9c9;
}

.btn[aria-busy="true"] {
	opacity: 0.65;
	pointer-events: none;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--ink-line);
	padding-block: 3rem 2.25rem;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding-bottom: 2.25rem;
}

.footer-tagline {
	font-size: 0.9rem;
	color: var(--text-faint);
	max-width: 34ch;
	margin-top: 0.6rem;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.footer-nav a {
	font-size: 0.9rem;
	color: var(--text-dim);
	transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
	color: var(--text);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--ink-line);
	font-size: 0.82rem;
	color: var(--text-faint);
}

/* ==========================================================================
   13. Scroll reveal
   ========================================================================== */

/*
 * Content is visible by default. The hidden starting state applies only
 * while .js-reveal is on <html>, which the inline head script adds and a
 * watchdog removes if the theme script never takes over. A failure in the
 * script therefore shows the page rather than hiding it.
 */
.js-reveal .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
	transition-delay: var(--reveal-delay, 0s);
}

.js-reveal .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   14. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	.hero h1 .line > span {
		transform: none;
	}

	.hero-lead,
	.hero-actions,
	.hero-strip,
	.scroll-hint {
		opacity: 1;
	}
}

/* ==========================================================================
   15. WordPress admin bar offset
   ========================================================================== */

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* ==========================================================================
   16. Legal content (policy pages)
   ========================================================================== */

.legal {
	max-width: 72ch;
}

.legal .eyebrow {
	margin-bottom: 1rem;
}

.legal h1 {
	font-size: var(--fs-h2);
	margin-bottom: 0.75rem;
}

.legal .legal-updated {
	display: block;
	margin-bottom: 2.5rem;
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	color: var(--text-faint);
}

.legal h2 {
	font-size: var(--fs-h3);
	margin-top: 2.75rem;
	margin-bottom: 1rem;
}

.legal p {
	color: var(--text-dim);
	margin-bottom: 1rem;
}

.legal ul {
	margin-bottom: 1rem;
}

.legal li {
	position: relative;
	padding-left: 1.4rem;
	color: var(--text-dim);
	margin-bottom: 0.6rem;
}

.legal li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--steel);
}

.legal a {
	color: var(--cream);
	text-decoration: underline;
	text-underline-offset: 2px;
}
