/* =====================================================================
   Status pages — 404.php ("Missed a spot.") and page-thank-you.php.
   One dark stage: the default banner image at low opacity under a gold
   glow, content centred on top. Large sizes use the laptop scale tokens
   (--fs / --sp, global.css :root).
   ===================================================================== */

.dk-status {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 100svh;
	padding-block: calc(210 * var(--sp)) calc(120 * var(--sp));
	background: var(--bg-dark);
	color: var(--text-white-75);
	text-align: center;
}

.dk-status__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.dk-status__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .2;
}

/* Gold glow from the top, fading to the page colour at the bottom. */
.dk-status::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 45% at 50% 18%, var(--gold-16), transparent 70%),
		linear-gradient(180deg, rgba(11, 11, 12, .35) 0%, var(--bg-dark) 92%);
}

.dk-status__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.dk-status__title {
	margin: calc(22 * var(--sp)) 0 0;
	color: var(--text-white);
}

.dk-status__text {
	max-width: 640px;
	margin: 18px auto 0;
	color: var(--text-white-75);
}

.dk-status__text p {
	margin: 0;
}

.dk-status__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin-block-start: calc(40 * var(--sp));
}

.dk-status__help {
	margin: calc(50 * var(--sp)) 0 0;
	color: var(--text-white-55);
}

.dk-status__help a {
	color: var(--gold-primary);
	text-decoration: none;
}

.dk-status__help a:hover,
.dk-status__help a:focus-visible {
	text-decoration: underline;
}

.dk-status__help > * + * {
	margin-inline-start: 6px;
}

.dk-status__hours {
	display: block;
	margin-block-start: 6px;
}

/* ---- 404 ---- */

.dk-404__code {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .06em;
	margin: calc(34 * var(--sp)) 0 0;
	font: 400 calc(260 * var(--fs))/.8 var(--font-display);
}

.dk-404__wheel {
	width: .66em;
	height: .66em;
	margin-inline: .04em;
	filter: drop-shadow(0 12px 28px rgba(201, 161, 74, .3));
	animation: dk-404-roll 6s linear infinite;
}

/* Anticlockwise. */
@keyframes dk-404-roll {
	to {
		transform: rotate(-360deg);
	}
}

.dk-404__search {
	display: flex;
	align-items: center;
	width: min(100%, 520px);
	margin-block-start: calc(34 * var(--sp));
	padding: 6px 6px 6px 24px;
	border: 1px solid var(--line-white-08);
	border-radius: var(--radius-pill);
	background: var(--glass-white-04);
	transition: border-color .25s ease;
}

.dk-404__search:focus-within {
	border-color: var(--gold-45);
}

.dk-404__search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--text-white);
	font: 400 16px/1.4 var(--font-body);
	outline: none;
}

.dk-404__search-input::placeholder {
	color: var(--text-white-45);
}

.dk-404__search-btn {
	display: grid;
	place-items: center;
	flex: 0 0 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--gold-gradient-btn);
	color: var(--text-dark);
	cursor: pointer;
}

.dk-404__next {
	width: 100%;
	margin-block-start: calc(80 * var(--sp));
}

.dk-404__services {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.dk-404__service {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--line-white-08);
	border-radius: var(--radius-md);
	background: var(--bg-dark-card);
	transition: border-color .3s ease, transform .3s ease;
}

.dk-404__service::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(11, 11, 12, .9) 100%);
}

.dk-404__service-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.dk-404__service-name {
	position: absolute;
	inset-inline: 12px;
	inset-block-end: 12px;
	z-index: 1;
	color: var(--text-white);
	font: 400 22px/1 var(--font-display);
	letter-spacing: .04em;
	text-align: start;
}

.dk-404__service:hover,
.dk-404__service:focus-visible {
	border-color: var(--gold-45);
	transform: translateY(-4px);
}

.dk-404__service:hover .dk-404__service-img,
.dk-404__service:focus-visible .dk-404__service-img {
	transform: scale(1.06);
}

/* ---- Thank You ---- */

.dk-thanks__check {
	width: calc(112 * var(--sp));
	height: calc(112 * var(--sp));
	margin-block-end: calc(26 * var(--sp));
	filter: drop-shadow(0 10px 30px rgba(201, 161, 74, .35));
}

.dk-thanks__ring {
	stroke-dasharray: 340;
	stroke-dashoffset: 340;
	transform: rotate(-90deg);
	transform-origin: 60px 60px;
	animation: dk-thanks-draw .9s cubic-bezier(.65, 0, .35, 1) .15s forwards;
}

.dk-thanks__tick {
	stroke-dasharray: 70;
	stroke-dashoffset: 70;
	animation: dk-thanks-draw .5s cubic-bezier(.65, 0, .35, 1) .9s forwards;
}

@keyframes dk-thanks-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.dk-thanks__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	width: min(100%, 1040px);
	margin: calc(60 * var(--sp)) 0 0;
	padding: 0;
	list-style: none;
}

.dk-thanks__step {
	position: relative;
	padding: 30px 26px 28px;
	border: 1px solid var(--line-white-08);
	border-radius: var(--radius-lg);
	background: var(--glass-white-04);
	backdrop-filter: blur(8px);
	text-align: start;
}

.dk-thanks__step-icon img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 14px;
}

.dk-thanks__step-num {
	position: absolute;
	inset-block-start: 26px;
	inset-inline-end: 26px;
	color: var(--gold-45);
	font: 400 34px/1 var(--font-display);
}

.dk-thanks__step-title {
	margin: 20px 0 8px;
	color: var(--text-white);
}

.dk-thanks__step-text {
	margin: 0;
	color: var(--text-white-65);
}

@media (prefers-reduced-motion: reduce) {
	.dk-404__wheel {
		animation: none;
	}

	.dk-thanks__ring,
	.dk-thanks__tick {
		animation: none;
		stroke-dashoffset: 0;
	}
}

@media (max-width: 991.98px) {
	.dk-404__services {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.dk-thanks__steps {
		grid-template-columns: minmax(0, 1fr);
		max-width: 520px;
	}
}

@media (max-width: 575.98px) {
	.dk-status {
		padding-block: calc(190 * var(--sp)) calc(80 * var(--sp));
	}

	.dk-404__code {
		font-size: calc(150 * var(--fs));
	}

	.dk-404__services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dk-404__service-name {
		font-size: 20px;
	}
}
