/* Tech Consults 2026 — site styles */

:root {
	color-scheme: light;
	--paper: #ffffff;
	--panel: #f1f3f5;
	--ink: #14202e;
	--ink-2: #2b3b4e;
	--steel: #4b5866;
	--rule: #d6dbe1;
	--field: #8a96a3;
	--gold: #e6a71f;
	--gold-hover: #f0b73f;
	--gold-deep: #7a5200;
	--night: #14202e;
	--night-rule: #34465c;
	--on-night: #eef1f5;
	--on-night-2: #b3bec9;

	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
	--section: clamp(64px, 9vw, 128px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; max-width: 65ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 750; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); font-stretch: 118%; line-height: 1.05; letter-spacing: -.02em; }
h3 { font-size: 1.1875rem; font-stretch: 106%; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.night :focus-visible { outline-color: var(--gold); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--steel); }
.on-night-muted { color: var(--on-night-2); }

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-weight: 650;
}
.skip-link:focus { top: 12px; }

/* Calvert pattern colors (Maryland gold and black) */
.cg { fill: var(--gold); }
.ck { fill: var(--ink); }

/* Type */
.display {
	font-size: clamp(2.75rem, 7.4vw, 6rem);
	font-stretch: 125%;
	font-weight: 800;
	line-height: .96;
	letter-spacing: -.03em;
}
.page-title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--ink-2); max-width: 50ch; margin-top: 28px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px;
	border: 2px solid var(--ink); border-radius: var(--radius);
	background: var(--ink); color: #fff;
	font: inherit; font-weight: 650; font-stretch: 104%; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; touch-action: manipulation;
	transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--panel); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.text-link { display: inline-block; font-weight: 650; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: .3em; padding-block: 8px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); } }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; padding-block: 8px; }
.brand-mark { width: 30px; height: 30px; border-radius: 3px; }
.brand-name { font-weight: 800; font-stretch: 120%; font-size: 1.1875rem; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 550; font-size: 1rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-link:hover { border-bottom-color: var(--rule); }
.nav-link[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav .btn { margin-left: 12px; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
	.js .menu-toggle {
		display: inline-flex; align-items: center; gap: 10px;
		min-height: 44px; padding: 0 14px;
		background: transparent; color: var(--ink);
		border: 1.5px solid var(--rule); border-radius: var(--radius);
		font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
	}
	.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
	.menu-icon { position: relative; }
	.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; transition: transform .18s var(--ease); }
	.menu-icon::before { top: -6px; }
	.menu-icon::after { top: 6px; }
	.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
	.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

	.header-inner { flex-wrap: wrap; }
	.site-nav { flex-wrap: wrap; width: 100%; padding-bottom: 12px; }
	.js .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 20px; }
	.js .site-nav.is-open { display: flex; }
	.js .nav-link { border-bottom: 1px solid var(--rule); min-height: 52px; font-size: 1.125rem; }
	.js .nav-link[aria-current="page"] { border-bottom: 1px solid var(--rule); box-shadow: inset 4px 0 0 var(--gold); padding-left: 16px; }
	.site-nav .btn { margin: 16px 0 0; }
}

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 112px) clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
	.hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: end; }
}
.calvert { width: 100%; aspect-ratio: 3 / 1; border-radius: var(--radius); }
@media (min-width: 960px) { .calvert { aspect-ratio: 3 / 4; } }
.calvert .bend { animation: bend-in 1s var(--ease) .2s both; }
@keyframes bend-in { from { transform: translate(-150px, -200px); } to { transform: translate(0, 0); } }
.facts { margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.facts dt { color: var(--steel); }
.facts dd { margin: 0; font-weight: 600; }

/* Sections */
.section { padding-block: var(--section); }
.section-panel { background: var(--panel); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head h2 + p { margin-top: 20px; }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
	.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
	.split-head { position: sticky; top: 120px; align-self: start; }
}
.split-head h2 + p { margin-top: 20px; }

/* Services list */
.svc-list { list-style: none; border-top: 1px solid var(--rule); }
.svc { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; row-gap: 6px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.svc .icon { grid-row: span 2; }
.svc p { margin: 0; color: var(--steel); }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.icon svg { width: 26px; height: 26px; }
.section-panel .icon { background: var(--paper); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; display: grid; gap: 36px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.step { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 20px; }
.step::before {
	content: counter(step);
	display: block; margin-bottom: 14px;
	font-size: 2.75rem; font-weight: 800; font-stretch: 125%; line-height: 1;
	color: var(--gold-deep);
	font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--steel); }

/* Night band (AnomIQ) */
.night { background: var(--night); color: var(--on-night); }
.night h2 { margin-bottom: 20px; }
.night .btn-gold { margin-top: 12px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 600; font-size: 1rem; color: var(--on-night); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(230, 167, 31, .22); }
.loop { list-style: none; border-left: 2px solid var(--night-rule); margin-left: 6px; }
.loop li { position: relative; padding: 0 0 28px 28px; color: var(--on-night-2); }
.loop li:last-child { padding-bottom: 0; }
.loop li::before { content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.loop strong { display: block; color: var(--on-night); font-size: 1.25rem; font-stretch: 112%; font-weight: 700; margin-bottom: 2px; }
.fineprint { margin-top: 28px; font-size: .9375rem; color: var(--on-night-2); }

/* Three columns */
.three { display: grid; gap: 36px; }
@media (min-width: 768px) { .three { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.three > div { border-top: 1px solid var(--rule); padding-top: 20px; }
.three h3 { margin-bottom: 10px; }
.three .icon { margin-bottom: 16px; }

/* CTA */
.cta { background: var(--panel); padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.cta-inner { display: grid; gap: 32px; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 72px; } }
.cta-title { font-size: clamp(2rem, 4.4vw, 3.5rem); font-stretch: 122%; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-mail { font-weight: 600; overflow-wrap: anywhere; padding-block: 8px; }

/* Inner page hero */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-hero .lede { margin-bottom: 0; }

/* Prose block */
.prose p { color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

/* Fact sheet */
.sheet { border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.sheet h2 { font-size: 1.375rem; font-stretch: 112%; margin-bottom: 16px; }
.sheet dl { margin: 0; }
.sheet dl div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); }
@media (min-width: 560px) { .sheet dl div { grid-template-columns: 10rem 1fr; gap: 16px; } }
.sheet dt { color: var(--steel); }
.sheet dd { margin: 0; font-weight: 600; }
.sheet .note { margin: 16px 0 0; font-size: .9375rem; color: var(--steel); }

.checklist { list-style: none; margin-top: 8px; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 12px; height: 7px; border-left: 2.5px solid var(--gold-deep); border-bottom: 2.5px solid var(--gold-deep); transform: rotate(-45deg); }

.notice { margin-top: 48px; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--panel); color: var(--ink-2); font-size: 1rem; max-width: none; }

/* Contact */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }
.contact-list { list-style: none; border-top: 1px solid var(--rule); margin-top: 32px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact-list .label { display: block; color: var(--steel); font-size: .9375rem; }
.contact-list .value { font-weight: 650; overflow-wrap: anywhere; }
.form-card { background: var(--panel); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.field { display: grid; gap: 8px; margin-top: 22px; }
.field label { font-weight: 600; font-size: 1rem; }
.field .req { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--paper); border: 1.5px solid var(--field); border-radius: var(--radius);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: .9375rem; margin: 0; }
.form-actions { margin-top: 28px; }
.form-status { margin: 16px 0 0; font-size: 1rem; color: var(--ink-2); }
.form-note { margin: 16px 0 0; font-size: .9375rem; color: var(--steel); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; } }
.footer-name { font-weight: 800; font-stretch: 120%; font-size: 1.25rem; margin-bottom: 8px; }
.footer-about p { font-size: 1rem; }
.footer-heading { font-size: 1rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.footer-links { list-style: none; font-size: 1rem; }
.footer-links li { padding: 4px 0; }
.footer-links a { display: inline-block; padding-block: 6px; overflow-wrap: anywhere; }
.footer-legal { margin-top: 40px; padding-block: 24px 32px; border-top: 1px solid var(--rule); }
.footer-legal p { margin: 0; font-size: .875rem; color: var(--steel); max-width: none; }

/* Generic page and 404 */
.entry { padding-block: var(--section); }
.entry h1 { margin-bottom: 32px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Additions */
.cta-note { margin-top: 20px; }
.prose-title { margin-bottom: 24px; }
.night .lede, .night .muted { color: var(--on-night-2); }
.btn-ghost-night { background: transparent; color: var(--on-night); border-color: var(--on-night-2); }
.btn-ghost-night:hover { background: var(--night-rule); border-color: var(--on-night); }
.night .actions .btn-gold { margin-top: 0; }
