/*
Theme Name: Command Rooms
Theme URI: https://welchmarketing.co.uk
Author: Welch Marketing
Author URI: https://welchmarketing.co.uk
Description: Site for Command Rooms, the applied AI and software house for the security industry. Home of the Ace Data AI Agent. Built to Welch Standard, zero plugins required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: command-rooms
Tags: ai, technology, security, software, dark
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */

@font-face {
	font-family: 'Sora';
	src: url('assets/sora-var.woff2') format('woff2-variations');
	font-weight: 200 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('assets/inter-var.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'JetBrains Mono';
	src: url('assets/jetbrains-mono-var.woff2') format('woff2-variations');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {
	--void: #04060D;
	--deep: #070B16;
	--panel: #0B1120;
	--panel-2: #101A2E;
	--line: #1A2540;
	--hair: rgba(140, 190, 255, .09);

	--text: #E6F0FA;
	--muted: #8195AE;
	--dim: #556A85;

	--cyan: #3DDCF0;
	--cyan-soft: rgba(61, 220, 240, .14);
	--violet: #7C5CFF;
	--violet-soft: rgba(124, 92, 255, .16);
	--alert: #FF7A4D;

	--display: 'Sora', ui-sans-serif, system-ui, sans-serif;
	--body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--wrap: 1220px;
	--gut: clamp(20px, 5vw, 48px);
	--rail: 68px;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--void);
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1.08;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	background: var(--cyan);
	color: #041016;
	padding: 12px 20px;
	z-index: 999;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
	top: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

/* ==========================================================================
   4. Shared components
   ========================================================================== */

.tag {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cyan);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
}

.tag::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--cyan);
	transform: rotate(45deg);
	flex: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 26px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	border: 1px solid var(--line);
	color: var(--text);
	background: transparent;
	cursor: pointer;
	transition: border-color .25s, color .25s, background-color .25s, box-shadow .25s;
}

.btn span {
	transition: transform .25s;
}

.btn:hover {
	border-color: var(--cyan);
	color: var(--cyan);
	box-shadow: 0 0 0 1px var(--cyan-soft), 0 0 30px -8px var(--cyan-soft);
}

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

.btn--solid {
	background: var(--cyan);
	border-color: var(--cyan);
	color: #04121A;
	font-weight: 700;
}

.btn--solid:hover {
	background: #6BE9F8;
	border-color: #6BE9F8;
	color: #04121A;
}

.section {
	padding: clamp(78px, 10vw, 128px) 0;
	position: relative;
}

.section--deep {
	background: var(--deep);
	border-top: 1px solid var(--hair);
	border-bottom: 1px solid var(--hair);
}

.section__head {
	max-width: 740px;
	margin-bottom: 62px;
}

.section__head h2 {
	font-size: clamp(1.95rem, 4.2vw, 3.1rem);
	font-weight: 500;
}

.section__head p {
	color: var(--muted);
	margin-top: 24px;
	max-width: 640px;
}

/* ==========================================================================
   5. Rail
   ========================================================================== */

.rail {
	position: fixed;
	inset: 0 0 auto 0;
	height: var(--rail);
	z-index: 60;
	display: flex;
	align-items: center;
	background: rgba(4, 6, 13, .74);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--hair);
}

.rail__in {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -.02em;
	margin-right: auto;
}

.brand img {
	max-height: 34px;
	width: auto;
}

.brand__mark {
	width: 26px;
	height: 26px;
	flex: none;
	position: relative;
	border: 1px solid var(--cyan);
}

.brand__mark::before {
	content: '';
	position: absolute;
	inset: 6px;
	background: var(--cyan);
	box-shadow: 0 0 14px var(--cyan);
	animation: mark 3.4s ease-in-out infinite;
}

@keyframes mark {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: .35;
		transform: scale(.6);
	}
}

.nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--muted);
	transition: color .22s;
}

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

.rail .btn {
	padding: 11px 20px;
}

@media (max-width: 900px) {
	.nav {
		display: none;
	}
}

@media (max-width: 520px) {
	.rail .btn {
		padding: 10px 14px;
		font-size: 11px;
	}
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	padding: calc(var(--rail) + 86px) 0 clamp(70px, 9vw, 110px);
	overflow: hidden;
	isolation: isolate;
}

.hero__mesh,
.hero__grid {
	position: absolute;
	pointer-events: none;
	z-index: -1;
}

.hero__grid {
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(140, 190, 255, .07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(140, 190, 255, .07) 1px, transparent 1px);
	background-size: 54px 54px;
	mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.hero__mesh {
	inset: -260px -160px auto -160px;
	height: 900px;
	background:
		radial-gradient(620px 420px at 18% 22%, rgba(61, 220, 240, .17), transparent 68%),
		radial-gradient(560px 400px at 78% 8%, rgba(124, 92, 255, .18), transparent 66%);
	filter: blur(10px);
}

.hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	gap: clamp(40px, 5vw, 72px);
	align-items: center;
}

.hero h1 {
	font-size: clamp(2.5rem, 5.4vw, 4.15rem);
	font-weight: 500;
	letter-spacing: -.04em;
}

.hero h1 em {
	font-style: normal;
	background: linear-gradient(100deg, var(--cyan), var(--violet));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__lede {
	color: var(--muted);
	font-size: clamp(1.02rem, 1.4vw, 1.14rem);
	margin-top: 26px;
	max-width: 540px;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 38px;
}

.hero__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid var(--hair);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dim);
}

@media (max-width: 980px) {
	.hero__in {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   7. Signature: the detection feed
   ========================================================================== */

.feed {
	border: 1px solid var(--line);
	background: var(--panel);
	box-shadow: 0 40px 90px -50px rgba(61, 220, 240, .5);
}

.feed__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dim);
}

.feed__live {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--alert);
}

.feed__live i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--alert);
	animation: blink 1.6s steps(1) infinite;
}

@keyframes blink {

	0%,
	49% {
		opacity: 1;
	}

	50%,
	100% {
		opacity: .18;
	}
}

.feed__view {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(90% 70% at 50% 118%, rgba(61, 220, 240, .1), transparent 60%),
		linear-gradient(180deg, #0A1120 0%, #060A14 100%);
}

/* Perspective floor. */
.feed__floor {
	position: absolute;
	inset: 46% 0 0 0;
	background-image:
		repeating-linear-gradient(to right, rgba(140, 190, 255, .13) 0 1px, transparent 1px 64px),
		repeating-linear-gradient(to bottom, rgba(140, 190, 255, .13) 0 1px, transparent 1px 40px);
	transform: perspective(340px) rotateX(62deg);
	transform-origin: top center;
	mask-image: linear-gradient(to bottom, #000, transparent 72%);
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

/* Shelving silhouettes. */
.feed__shelf {
	position: absolute;
	bottom: 30%;
	background: linear-gradient(180deg, rgba(24, 38, 63, .96), rgba(10, 18, 32, .96));
	border-top: 1px solid rgba(140, 190, 255, .22);
}

.feed__shelf::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(to bottom, rgba(140, 190, 255, .11) 0 1px, transparent 1px 26%);
}

.feed__shelf--a {
	left: 4%;
	width: 22%;
	height: 34%;
}

.feed__shelf--b {
	right: 6%;
	width: 26%;
	height: 42%;
}

.feed__shelf--c {
	left: 36%;
	width: 16%;
	height: 24%;
	bottom: 36%;
	opacity: .75;
}

.scanline {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(to right, transparent, rgba(61, 220, 240, .75), transparent);
	filter: blur(.4px);
	animation: scan 5.5s cubic-bezier(.6, 0, .4, 1) infinite;
}

@keyframes scan {
	0% {
		top: -2%;
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		top: 102%;
		opacity: 0;
	}
}

.feed__view::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 46%;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(140, 190, 255, .2), transparent);
	pointer-events: none;
}

.feed__view::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
	pointer-events: none;
}

/* Figures under the boxes. */
.fig {
	position: absolute;
}

.fig::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 2%;
	width: 36%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #24374F;
	transform: translateX(-50%);
}

.fig::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 24%;
	width: 84%;
	height: 76%;
	background: linear-gradient(180deg, #24374F, #14223A);
	border-radius: 38% 38% 6% 6% / 24% 24% 4% 4%;
	transform: translateX(-50%);
}

.fig--1 {
	left: 14%;
	top: 40%;
	width: 15%;
	height: 34%;
}

.fig--2 {
	left: 44%;
	top: 46%;
	width: 13%;
	height: 30%;
}

.fig--3 {
	right: 13%;
	top: 34%;
	width: 18%;
	height: 40%;
}

/* Bounding boxes. */
.box {
	--c: var(--cyan);
	position: absolute;
	border: 1px solid rgba(61, 220, 240, .5);
	opacity: 0;
	animation: lock 5.5s ease-in-out infinite;
}

.box--alert {
	--c: var(--alert);
	border-color: rgba(255, 122, 77, .55);
}

.box::before,
.box::after {
	content: '';
	position: absolute;
	width: 13px;
	height: 13px;
	border: 2px solid var(--c);
}

.box::before {
	top: -1px;
	left: -1px;
	border-right: 0;
	border-bottom: 0;
}

.box::after {
	bottom: -1px;
	right: -1px;
	border-left: 0;
	border-top: 0;
}

.box__tag {
	position: absolute;
	top: -1px;
	left: -1px;
	transform: translateY(-100%);
	background: var(--c);
	color: #04121A;
	font-family: var(--mono);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 3px 7px;
	white-space: nowrap;
}

@keyframes lock {

	0%,
	8% {
		opacity: 0;
		transform: scale(1.06);
	}

	16%,
	86% {
		opacity: 1;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(1);
	}
}

.box--1 {
	left: 14%;
	top: 40%;
	width: 15%;
	height: 34%;
	animation-delay: .2s;
}

.box--2 {
	left: 44%;
	top: 46%;
	width: 13%;
	height: 30%;
	animation-delay: 1.1s;
}

.box--3 {
	right: 13%;
	top: 34%;
	width: 18%;
	height: 40%;
	animation-delay: 2s;
}

/* Event log. */
.feed__log {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	background: var(--void);
}

.feed__log li {
	display: grid;
	grid-template-columns: 62px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 11px 16px;
	border-bottom: 1px solid rgba(140, 190, 255, .06);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .04em;
	color: var(--muted);
	opacity: 0;
	animation: logIn .6s ease-out forwards;
}

.feed__log li:last-child {
	border-bottom: 0;
}

.feed__log li:nth-child(1) {
	animation-delay: .5s;
}

.feed__log li:nth-child(2) {
	animation-delay: 1.4s;
}

.feed__log li:nth-child(3) {
	animation-delay: 2.3s;
}

@keyframes logIn {
	from {
		opacity: 0;
		transform: translateX(-8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.feed__log time {
	color: var(--dim);
}

.feed__log .lvl {
	font-size: 9.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 3px 8px;
	border: 1px solid var(--line);
	color: var(--cyan);
}

.feed__log .lvl--alert {
	color: var(--alert);
	border-color: rgba(255, 122, 77, .4);
}

/* ==========================================================================
   8. Agent feature + pipeline
   ========================================================================== */

.agent {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(36px, 5vw, 76px);
	align-items: center;
}

.agent h2 {
	font-size: clamp(1.95rem, 4vw, 2.9rem);
	font-weight: 500;
}

.agent p {
	color: var(--muted);
	margin-top: 22px;
}

.agent__list {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
}

.agent__list li {
	position: relative;
	padding: 12px 0 12px 26px;
	border-bottom: 1px solid var(--hair);
	font-size: 15.5px;
	color: var(--muted);
}

.agent__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 20px;
	width: 7px;
	height: 7px;
	background: var(--cyan);
	transform: rotate(45deg);
}

.pipe {
	border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	padding: clamp(24px, 3vw, 36px);
	position: relative;
	overflow: hidden;
}

.pipe::before {
	content: '';
	position: absolute;
	inset: -40% -20% auto -20%;
	height: 300px;
	background: radial-gradient(closest-side, var(--violet-soft), transparent);
	pointer-events: none;
}

.pipe__label {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dim);
	margin-bottom: 26px;
	position: relative;
}

.node {
	position: relative;
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 18px;
	padding-bottom: 26px;
}

.node:last-child {
	padding-bottom: 0;
}

.node__dot {
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	background: var(--void);
	display: grid;
	place-items: center;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--cyan);
	position: relative;
	z-index: 2;
}

.node:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 21px;
	top: 42px;
	bottom: 0;
	width: 1px;
	background: var(--line);
}

.node:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 20px;
	top: 42px;
	width: 3px;
	height: 14px;
	background: var(--cyan);
	box-shadow: 0 0 10px var(--cyan);
	animation: flow 3.2s linear infinite;
}

.node:nth-child(3)::after {
	animation-delay: .35s;
}

.node:nth-child(4)::after {
	animation-delay: .7s;
}

.node:nth-child(5)::after {
	animation-delay: 1.05s;
}

@keyframes flow {
	0% {
		transform: translateY(0);
		opacity: 0;
	}

	20% {
		opacity: 1;
	}

	80% {
		opacity: 1;
	}

	100% {
		transform: translateY(calc(100% + 44px));
		opacity: 0;
	}
}

.node h4 {
	font-size: 1.02rem;
	font-weight: 600;
	margin-bottom: 5px;
	letter-spacing: -.01em;
}

.node p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
}

@media (max-width: 900px) {
	.agent {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   9. Capability grid
   ========================================================================== */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.cap {
	background: var(--void);
	padding: 34px clamp(22px, 2.4vw, 32px) 38px;
	position: relative;
	transition: background-color .3s;
}

.section--deep .cap {
	background: var(--deep);
}

.cap:hover {
	background: var(--panel);
}

.cap__no {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .2em;
	color: var(--cyan);
	display: block;
	margin-bottom: 20px;
}

.cap h3 {
	font-size: 1.13rem;
	font-weight: 600;
	letter-spacing: -.015em;
	margin-bottom: 12px;
}

.cap p {
	color: var(--muted);
	font-size: 14.8px;
	line-height: 1.6;
}

/* ==========================================================================
   10. Split feature (CommaBoard / integration)
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(36px, 5vw, 76px);
	align-items: center;
}

.split--flip .split__media {
	order: -1;
}

.split h2 {
	font-size: clamp(1.85rem, 3.6vw, 2.7rem);
	font-weight: 500;
}

.split p {
	color: var(--muted);
	margin-top: 22px;
}

.split .btn {
	margin-top: 32px;
}

/* Keyboard motif for CommaBoard. */
.keys {
	border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	padding: clamp(20px, 2.6vw, 30px);
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}

.key {
	aspect-ratio: 1 / .78;
	border: 1px solid var(--line);
	background: var(--void);
	display: grid;
	place-items: center;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .06em;
	color: var(--dim);
	text-align: center;
	padding: 4px;
	transition: color .25s, border-color .25s, box-shadow .25s, background-color .25s;
}

.key--lit {
	color: var(--cyan);
	border-color: rgba(61, 220, 240, .45);
	box-shadow: inset 0 0 22px -12px var(--cyan);
	background: rgba(61, 220, 240, .04);
}

.key--wide {
	grid-column: span 2;
}

.keys:hover .key {
	border-color: rgba(61, 220, 240, .3);
	color: var(--muted);
}

@media (max-width: 900px) {

	.split {
		grid-template-columns: 1fr;
	}

	.split--flip .split__media {
		order: 0;
	}
}

/* ==========================================================================
   11. Group strip
   ========================================================================== */

.group {
	border: 1px solid var(--line);
	background: var(--panel);
	padding: clamp(30px, 4vw, 48px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px 40px;
}

.group h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.7rem);
	font-weight: 500;
	max-width: 620px;
}

.group p {
	color: var(--muted);
	font-size: 15px;
	margin-top: 12px;
	max-width: 620px;
}

.group__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ==========================================================================
   12. Contact
   ========================================================================== */

.contact {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: clamp(40px, 6vw, 84px);
	align-items: start;
}

.contact h2 {
	font-size: clamp(1.95rem, 4vw, 2.9rem);
	font-weight: 500;
}

.contact__note {
	color: var(--muted);
	margin-top: 22px;
	max-width: 440px;
}

.dl {
	margin: 34px 0 0;
	border-top: 1px solid var(--line);
}

.dl__row {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.dl dt {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--dim);
	padding-top: 4px;
}

.dl dd {
	margin: 0;
	font-size: 15.5px;
}

.dl dd a:hover {
	color: var(--cyan);
}

/* Form. */
.form {
	border: 1px solid var(--line);
	background: var(--panel);
	padding: clamp(24px, 3vw, 38px);
}

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

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dim);
	margin-bottom: 8px;
}

.field input,
.field textarea {
	width: 100%;
	padding: 13px 15px;
	background: var(--void);
	border: 1px solid var(--line);
	color: var(--text);
	font-family: var(--body);
	font-size: 15px;
	transition: border-color .22s, box-shadow .22s;
}

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

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--cyan);
	box-shadow: 0 0 0 1px var(--cyan-soft);
}

.field--hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.form .btn {
	width: 100%;
	justify-content: center;
	margin-top: 8px;
}

.form__msg {
	padding: 13px 16px;
	border: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 12px;
	margin-bottom: 20px;
}

.form__msg--ok {
	border-color: rgba(61, 220, 240, .45);
	color: var(--cyan);
}

.form__msg--err {
	border-color: rgba(255, 122, 77, .45);
	color: var(--alert);
}

@media (max-width: 900px) {
	.contact {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.keys {
		grid-template-columns: repeat(3, 1fr);
	}

	.key {
		font-size: 10px;
	}

	.form__row {
		grid-template-columns: 1fr;
	}

	.dl__row {
		grid-template-columns: 1fr;
		gap: 5px;
	}
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.foot {
	border-top: 1px solid var(--hair);
	padding: 46px 0;
	font-size: 13.5px;
	color: var(--dim);
}

.foot__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.foot a:hover {
	color: var(--cyan);
}

.foot__reg {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--hair);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .08em;
}

/* ==========================================================================
   14. Interior pages
   ========================================================================== */

.page-head {
	padding: calc(var(--rail) + 74px) 0 0;
	position: relative;
}

.page-head h1 {
	font-size: clamp(2.1rem, 5vw, 3.3rem);
	font-weight: 500;
}

.entry {
	padding: 44px 0 clamp(70px, 9vw, 110px);
	max-width: 780px;
}

.entry h2 {
	font-size: 1.7rem;
	margin: 44px 0 16px;
	font-weight: 600;
}

.entry h3 {
	font-size: 1.25rem;
	margin: 34px 0 12px;
	font-weight: 600;
}

.entry p,
.entry li {
	color: var(--muted);
}

.entry a {
	color: var(--cyan);
	border-bottom: 1px solid var(--line);
}

.entry ul,
.entry ol {
	padding-left: 20px;
}

.entry li {
	margin-bottom: 8px;
}

.entry img {
	border: 1px solid var(--line);
	margin: 26px 0;
}

.entry blockquote {
	border-left: 2px solid var(--cyan);
	margin: 26px 0;
	padding-left: 22px;
	color: var(--text);
}

/* ==========================================================================
   15. Reveal + motion safety
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .75s cubic-bezier(.2, .7, .3, 1), transform .75s cubic-bezier(.2, .7, .3, 1);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {

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

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

	.box,
	.feed__log li {
		opacity: 1;
	}
}
