/* =========================================================================
   DimensionNest homepage
   -------------------------------------------------------------------------
   Colour tokens come from :root in site.css (the site's Kadence palette).

   Every colour on a heading or link is set on the element itself, never only
   inherited. Kadence styles h1-h6 and a directly from its global palette,
   and a rule that targets the element always beats an inherited value.
   ========================================================================= */

.dn-home {
	--dn-radius: 18px;
	--dn-radius-sm: 12px;
	--dn-ease: cubic-bezier(0.22, 0.68, 0.2, 1);
	--dn-shell: 1440px;
	--dn-gutter: var(--dnp-gutter, clamp(18px, 4vw, 48px));
	--dn-card-shadow: 0 1px 2px rgba(31, 41, 51, 0.04), 0 10px 28px -14px rgba(31, 41, 51, 0.16);
	--dn-card-shadow-hover: 0 2px 4px rgba(31, 41, 51, 0.05), 0 22px 44px -18px rgba(31, 41, 51, 0.28);

	color: rgba(211, 217, 212, 0.82);
	background: #0b1118;
	overflow-x: clip;
}

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

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

/* =========================================================================
   Buttons
   ========================================================================= */

.dn-home a.dn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 50px;
	padding: 0 1.75em;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 0.22s var(--dn-ease),
		border-color 0.22s var(--dn-ease),
		color 0.22s var(--dn-ease),
		transform 0.22s var(--dn-ease),
		box-shadow 0.22s var(--dn-ease);
}

.dn-home a.dn-btn:hover,
.dn-home a.dn-btn:focus-visible {
	transform: translateY(-2px);
}

.dn-home a.dn-btn--solid,
.dn-home a.dn-btn--solid:visited {
	background: var(--dnp-brand);
	color: #fff;
	box-shadow: 0 10px 24px -12px rgba(18, 78, 102, 0.7);
}

.dn-home a.dn-btn--solid:hover,
.dn-home a.dn-btn--solid:focus-visible {
	background: var(--dnp-brand-hi);
	color: #fff;
}

/* Mist on dark: the primary button on the hero and the closing strip.
   Teal is the accent everywhere else, but on #212A31 a teal pill has almost
   no edge contrast (1.7:1), so on dark grounds the light pill leads. */
.dn-home a.dn-btn--light,
.dn-home a.dn-btn--light:visited {
	background: var(--dnp-mist);
	color: var(--dnp-ink);
	box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
}

.dn-home a.dn-btn--light:hover,
.dn-home a.dn-btn--light:focus-visible {
	background: #fff;
	color: var(--dnp-ink);
}

/* White outline, for use on the dark hero. */
.dn-home a.dn-btn--ghost-light,
.dn-home a.dn-btn--ghost-light:visited {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.dn-home a.dn-btn--ghost-light:hover,
.dn-home a.dn-btn--ghost-light:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* Ink outline, for use on light sections. */
.dn-home a.dn-btn--outline,
.dn-home a.dn-btn--outline:visited {
	border-color: var(--dnp-ink);
	background: transparent;
	color: var(--dnp-ink);
}

.dn-home a.dn-btn--outline:hover,
.dn-home a.dn-btn--outline:focus-visible {
	background: var(--dnp-ink);
	color: #fff;
}

.dn-home a:focus-visible,
.dn-home button:focus-visible {
	outline: 2px solid var(--dnp-brand);
	outline-offset: 3px;
}

/* =========================================================================
   Hero
   ========================================================================= */

.dn-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	/* Full viewport: the header floats over the top of the hero rather than
	   sitting above it, so the padding clears it instead. */
	min-height: 620px;
	min-height: clamp(620px, 100vh, 1080px);
	min-height: clamp(620px, 100svh, 1080px);
	padding:
		calc(var(--dnp-header-h, 78px) + clamp(40px, 8vh, 96px))
		var(--dn-gutter)
		clamp(72px, 11vh, 128px);
	overflow: hidden;
	background: var(--dnp-ink);
	color: #fff;
	text-align: center;
}

.dn-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.dn-hero__poster,
.dn-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* The video is never faded. Before its first frame it is transparent by
   nature and the poster shows through; after that it simply covers it. */
.dn-hero__video {
	display: block;
}

/* The tower sits in the middle of the frame, which is also where centred
   copy sits, so the scrim is darkest in the middle and lighter at the sides:
   the reverse of a vignette. */
.dn-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 62% 58% at 50% 52%, rgba(33, 42, 49, 0.6) 0%, rgba(33, 42, 49, 0.32) 72%, rgba(33, 42, 49, 0.18) 100%),
		linear-gradient(180deg, rgba(33, 42, 49, 0.62) 0%, rgba(33, 42, 49, 0.14) 26%, rgba(33, 42, 49, 0.12) 70%, rgba(33, 42, 49, 0.62) 100%);
}

.dn-hero__content {
	position: relative;
	width: 100%;
	max-width: 940px;
	margin-inline: auto;
}

.dn-hero__eyebrow {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35em 0.6em;
	margin: 0 0 clamp(18px, 3vh, 28px);
	padding: 0.6em 1.15em;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(33, 42, 49, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: clamp(0.68rem, 1.6vw, 0.8rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.dn-hero__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dnp-mist);
	box-shadow: 0 0 0 4px rgba(211, 217, 212, 0.22);
}

.dn-hero__sep {
	color: rgba(255, 255, 255, 0.55);
}

.dn-hero .dn-hero__title {
	max-width: 16ch;
	margin: 0 auto;
	padding: 0;
	color: #fff;
	font-size: clamp(2.2rem, 6.4vw, 5rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.03em;
	text-align: center;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(33, 42, 49, 0.55);
}

.dn-hero .dn-hero__lede {
	max-width: 60ch;
	margin: clamp(18px, 3vh, 28px) auto 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	line-height: 1.65;
	text-align: center;
	text-shadow: 0 1px 14px rgba(33, 42, 49, 0.6);
}

.dn-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: clamp(26px, 4vh, 40px);
}

@media (max-width: 479px) {
	.dn-hero__actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 320px;
		margin-inline: auto;
	}

	.dn-hero__sep {
		display: none;
	}
}

/* Pause control. Hidden in the HTML and revealed by the script, because a
   button that does nothing without JS is worse than no button. */
.dn-hero__toggle {
	position: absolute;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(14px, 3vw, 28px);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(33, 42, 49, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s var(--dn-ease), border-color 0.2s var(--dn-ease);
}

.dn-hero__toggle[hidden] {
	display: none;
}

.dn-hero__toggle:hover {
	border-color: #fff;
	background: rgba(33, 42, 49, 0.75);
}

.dn-hero__toggle-icon {
	width: 18px;
	height: 18px;
}

.dn-hero__toggle-icon--play,
.dn-hero__toggle.is-paused .dn-hero__toggle-icon--pause {
	display: none;
}

.dn-hero__toggle.is-paused .dn-hero__toggle-icon--play {
	display: block;
}

.dn-hero__toggle-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Reduced motion, without needing JS: the video does not show and the
   still poster stands in. The script can opt back in if asked. */
@media (prefers-reduced-motion: reduce) {
	.dn-hero__video:not(.is-opted-in) {
		display: none;
	}
}

/* Hand-over from the hero to the dark page: the hero's last strip fades
   into the page base, under the pause button (z-index 2) and well below
   the buttons, so the video meets the next section without a line. */
.dn-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: clamp(70px, 11vw, 160px);
	background: linear-gradient(180deg, rgba(11, 17, 24, 0) 0%, rgba(11, 17, 24, 0.75) 60%, #0b1118 100%);
	pointer-events: none;
}

/* =========================================================================
   Sections
   ========================================================================= */

.dn-section {
	padding-block: clamp(60px, 9vw, 112px);
}

/* The homepage header is fixed, so in-page jumps must stop short of it. */
.dn-home section[id] {
	scroll-margin-top: var(--dnp-header-h, 78px);
}

/* =========================================================================
   Dark sections (everything after the hero)
   -------------------------------------------------------------------------
   The base colour is matched to the background of the two section clips
   (sampled at about #091017 to #161d26), so the videos dissolve into the
   page instead of sitting in visible boxes.

   Palette: ink #212A31, slate #2E3944, teal #124E66, steel #748D92,
   mist #D3D9D4. One shade is derived for small accent text on dark:
   #5C9DB3, a lighter teal, because #124E66 text on this base is under 2:1.
   ========================================================================= */

.dn-home {
	--dk-base: #0b1118;
	--dk-deep: #070b10;
	--dk-raise: #111922;
	--dk-raise-2: #17212b;
	--dk-line: rgba(211, 217, 212, 0.1);
	--dk-line-2: rgba(211, 217, 212, 0.18);
	--dk-head: #f4f7f5;
	--dk-text: rgba(211, 217, 212, 0.82);
	--dk-muted: rgba(211, 217, 212, 0.62);
	--dk-accent: #5c9db3;
	--dk-glow: rgba(18, 78, 102, 0.55);
	--dk-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Shared type ------------------------------------------------------- */

.dn-home .dn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	color: var(--dk-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.3;
	text-transform: uppercase;
}

.dn-eyebrow__line {
	display: inline-block;
	width: 34px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--dk-accent));
}

.dn-eyebrow--center .dn-eyebrow__line:last-child {
	background: linear-gradient(90deg, var(--dk-accent), transparent);
}

.dn-home .dn-display {
	margin: 0;
	color: var(--dk-head);
	font-size: clamp(2.1rem, 4.2vw, 3.5rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-transform: none;
	text-wrap: balance;
}

/* A soft silver gradient on the headline where supported; the solid colour
   above stays as the fallback. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.dn-home .dn-display {
		background: linear-gradient(180deg, #ffffff 20%, #b9c6c3 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

.dn-home .dn-lead {
	max-width: 58ch;
	margin: 22px 0 0;
	color: var(--dk-text);
	font-size: clamp(1rem, 1.35vw, 1.12rem);
	line-height: 1.75;
}

.dn-home .dn-display--center,
.dn-home .dn-lead--center {
	margin-inline: auto;
	text-align: center;
}

.dn-head {
	max-width: 760px;
	margin: 0 auto clamp(48px, 6vw, 80px);
	text-align: center;
}

.dn-home a.dn-textlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--dk-line-2);
	color: var(--dk-head);
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.3s var(--dn-ease), gap 0.3s var(--dn-ease);
}

.dn-home a.dn-textlink:hover,
.dn-home a.dn-textlink:focus-visible {
	gap: 12px;
	border-color: var(--dk-accent);
	color: #fff;
}

/* Light outline button for dark sections. */
.dn-home a.dn-btn--outline,
.dn-home a.dn-btn--outline:visited {
	border-color: var(--dk-line-2);
	background: transparent;
	color: var(--dk-head);
}

.dn-home a.dn-btn--outline:hover,
.dn-home a.dn-btn--outline:focus-visible {
	border-color: var(--dnp-mist);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

/* --- Scroll reveals -----------------------------------------------------
   Hidden only when the <html> element carries .js, which the inline flag in
   header.php sets before first paint. No JS: everything is simply there.
   If JS is present but home.js never runs, the keyframe below reveals
   everything after 4 seconds; home.js cancels it by adding .dn-rv-on.
   ------------------------------------------------------------------------ */

.js .dn-rv {
	opacity: 0;
	transform: translate3d(var(--rv-x, 0), var(--rv-y, 36px), 0) scale(var(--rv-s, 1));
	filter: blur(8px);
	transition:
		opacity 0.9s var(--dn-ease) var(--rv-delay, 0ms),
		transform 1.2s var(--dk-ease-out) var(--rv-delay, 0ms),
		filter 0.9s var(--dn-ease) var(--rv-delay, 0ms);
}

.js .dn-rv[data-rv="left"] {
	--rv-x: -90px;
	--rv-y: 0;
}

.js .dn-rv[data-rv="right"] {
	--rv-x: 90px;
	--rv-y: 0;
}

/* The four subjects float in from the edges of the screen itself. */
.js .dn-rv[data-rv-far][data-rv="left"] {
	--rv-x: -45vw;
	--rv-s: 0.92;
}

.js .dn-rv[data-rv-far][data-rv="right"] {
	--rv-x: 45vw;
	--rv-s: 0.92;
}

.js .dn-rv.is-in {
	opacity: 1;
	transform: none;
	filter: none;
}

.js:not(.dn-rv-on) .dn-rv {
	animation: dn-rv-failsafe 0.6s ease 4s forwards;
}

@keyframes dn-rv-failsafe {
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

/* --- Section video ----------------------------------------------------- */

.dn-vid__poster,
.dn-vid {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* The video fades in over its poster only once frames are playing, so the
   swap from still to motion is invisible. */
.dn-vid {
	opacity: 0;
	transition: opacity 0.9s var(--dn-ease);
}

.dn-vid.is-playing {
	opacity: 1;
}

/* =========================================================================
   Section 2: infrastructure
   ========================================================================= */

.dn-infra {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	min-height: clamp(640px, 56.25vw, 1080px);
	overflow: hidden;
	background: var(--dk-base);
	color: var(--dk-text);
}

.dn-infra__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--dk-base);
}

/* The building must stay in the middle third whatever the copy height, so
   the clip keeps its own proportions and is centred; its navy edges match
   the page base, so the letterbox never shows. */
.dn-infra .dn-vid__poster,
.dn-infra .dn-vid {
	object-fit: contain;
}

/* The top fade starts from the hero's bottom tone, so hero and section meet
   without a seam; the bottom fade hands over to the page base. */
.dn-infra__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, var(--dk-base) 0%, rgba(11, 17, 24, 0) 18%, rgba(11, 17, 24, 0) 72%, var(--dk-base) 100%),
		linear-gradient(90deg, rgba(11, 17, 24, 0.55) 0%, rgba(11, 17, 24, 0) 30%, rgba(11, 17, 24, 0) 70%, rgba(11, 17, 24, 0.5) 100%);
}

.dn-infra__inner {
	display: grid;
	/* The building spans roughly 30% to 67% of the clip's width, so the
	   middle column is kept clear and the copy sits in the outer 27%. */
	grid-template-columns: minmax(0, 27fr) minmax(0, 46fr) minmax(0, 27fr);
	align-items: center;
	width: 100%;
	max-width: 1680px;
	margin-inline: auto;
	padding: clamp(88px, 8vw, 130px) var(--dn-gutter);
}

.dn-infra__side {
	max-width: 400px;
}

.dn-infra__side--right {
	justify-self: end;
	padding: clamp(24px, 2.4vw, 34px);
	border: 1px solid var(--dk-line);
	border-radius: 24px;
	background: linear-gradient(160deg, rgba(23, 33, 43, 0.82), rgba(11, 17, 24, 0.7));
	box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.dn-home .dn-infra__side .dn-display {
	font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.dn-ticks {
	display: grid;
	gap: 12px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.dn-ticks li {
	position: relative;
	margin: 0;
	padding-left: 30px;
	color: var(--dk-head);
	font-size: 0.98rem;
	line-height: 1.5;
}

.dn-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(92, 157, 179, 0.5);
	border-radius: 50%;
	background: rgba(18, 78, 102, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d3d9d4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.dn-figures {
	display: grid;
	gap: 0;
	margin: 0;
}

.dn-figure {
	padding: 18px 0;
	border-top: 1px solid var(--dk-line);
}

.dn-figure:first-child {
	padding-top: 4px;
	border-top: 0;
}

.dn-home .dn-figure dt {
	margin: 0;
	color: var(--dk-head);
	font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.dn-home .dn-figure dd {
	margin: 6px 0 0;
	color: var(--dk-muted);
	font-size: 0.93rem;
	line-height: 1.55;
}

@media (max-width: 1199px) {
	.dn-infra {
		display: block;
		min-height: 0;
	}

	/* The clip becomes a full-width band on top; copy stacks beneath it. */
	.dn-infra__media {
		position: relative;
		inset: auto;
		z-index: 0;
		aspect-ratio: 16 / 9;
		max-height: 70vh;
		width: 100%;
	}

	.dn-infra__shade {
		background: linear-gradient(180deg, var(--dk-base) 0%, rgba(11, 17, 24, 0) 22%, rgba(11, 17, 24, 0) 70%, var(--dk-base) 100%);
	}

	.dn-infra__inner {
		grid-template-columns: 1fr;
		gap: 28px;
		max-width: 760px;
		padding-top: 12px;
		padding-bottom: clamp(56px, 10vw, 88px);
	}

	.dn-infra__gap {
		display: none;
	}

	.dn-infra__side,
	.dn-infra__side--right {
		max-width: none;
		justify-self: stretch;
	}
}

/* =========================================================================
   Section 3: real estate (60 / 40)
   ========================================================================= */

.dn-estate {
	position: relative;
	padding-block: clamp(80px, 10vw, 150px);
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 85% 40%, rgba(18, 78, 102, 0.28) 0%, transparent 70%),
		var(--dk-base);
	color: var(--dk-text);
}

.dn-estate__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
	gap: clamp(36px, 5vw, 88px);
	align-items: center;
}

.dn-points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.dn-point {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--dk-line);
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(23, 33, 43, 0.6), rgba(11, 17, 24, 0.2));
	transition: border-color 0.35s var(--dn-ease), background-color 0.35s var(--dn-ease);
}

.dn-point:hover {
	border-color: rgba(92, 157, 179, 0.45);
}

.dn-point__num {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(92, 157, 179, 0.45);
	border-radius: 50%;
	color: var(--dk-accent);
	font-size: 0.82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.dn-point__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dn-point__body strong {
	color: var(--dk-head);
	font-size: 1rem;
	line-height: 1.35;
}

.dn-point__body span {
	color: var(--dk-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.dn-estate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.dn-estate__frame {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border: 1px solid var(--dk-line-2);
	border-radius: 28px;
	background: #0b0f15;
	box-shadow:
		0 0 0 8px rgba(255, 255, 255, 0.02),
		0 40px 90px -40px rgba(0, 0, 0, 0.95),
		0 0 120px -30px rgba(18, 78, 102, 0.6);
}

.dn-estate__glow {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 15, 21, 0) 60%, rgba(11, 15, 21, 0.7) 100%),
		radial-gradient(120% 80% at 50% 0%, rgba(92, 157, 179, 0.12) 0%, transparent 60%);
	pointer-events: none;
}

@media (max-width: 899px) {
	.dn-estate__grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 599px) {
	.dn-points {
		grid-template-columns: 1fr;
	}

	.dn-estate__actions {
		flex-direction: column;
		align-items: stretch;
	}
}

/* =========================================================================
   Section 4: the four subjects (alternating track)
   ========================================================================= */

.dn-subjects {
	position: relative;
	padding-block: clamp(80px, 10vw, 150px);
	overflow: hidden;
	background:
		linear-gradient(rgba(211, 217, 212, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
		linear-gradient(90deg, rgba(211, 217, 212, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
		var(--dk-base);
	color: var(--dk-text);
}

/* Fade the blueprint grid out at the top and bottom edges. */
.dn-subjects::before,
.dn-subjects::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	height: 180px;
	pointer-events: none;
}

.dn-subjects::before {
	top: 0;
	background: linear-gradient(180deg, var(--dk-base), transparent);
}

.dn-subjects::after {
	bottom: 0;
	background: linear-gradient(0deg, var(--dk-base), transparent);
}

.dn-subjects > .dn-shell {
	position: relative;
	z-index: 1;
}

.dn-track {
	position: relative;
	display: grid;
	gap: clamp(18px, 2vw, 28px);
	max-width: 1120px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

/* The spine. */
.dn-track::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
	background: linear-gradient(180deg, transparent, rgba(92, 157, 179, 0.55) 12%, rgba(92, 157, 179, 0.55) 88%, transparent);
	box-shadow: 0 0 18px rgba(92, 157, 179, 0.35);
}

.dn-track__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin: 0;
}

/* Each card sits a little lower than the one before it, so the track reads
   as a descending zig-zag rather than two columns. */
.dn-track__item + .dn-track__item {
	margin-top: clamp(-40px, -3vw, -12px);
}

.dn-track__node {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 16px;
	height: 16px;
	border: 2px solid var(--dk-accent);
	border-radius: 50%;
	background: var(--dk-base);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 6px rgba(92, 157, 179, 0.12), 0 0 22px rgba(92, 157, 179, 0.6);
}

.dn-track__node::after {
	content: "";
	position: absolute;
	inset: -10px;
	border: 1px solid rgba(92, 157, 179, 0.4);
	border-radius: 50%;
	animation: dn-pulse 3.2s ease-out infinite;
}

@keyframes dn-pulse {
	0% { transform: scale(0.6); opacity: 0.9; }
	100% { transform: scale(1.8); opacity: 0; }
}

.dn-home a.dn-subject {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 480px;
	padding: clamp(26px, 2.8vw, 38px);
	border: 1px solid var(--dk-line);
	border-radius: 26px;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(18, 78, 102, 0.32) 0%, transparent 55%),
		linear-gradient(160deg, var(--dk-raise-2), var(--dk-raise));
	box-shadow: 0 36px 80px -46px rgba(0, 0, 0, 0.95);
	color: var(--dk-text);
	text-decoration: none;
	transition:
		opacity 0.9s var(--dn-ease) var(--rv-delay, 0ms),
		transform 1.4s var(--dk-ease-out) var(--rv-delay, 0ms),
		filter 0.9s var(--dn-ease) var(--rv-delay, 0ms),
		border-color 0.35s var(--dn-ease),
		box-shadow 0.35s var(--dn-ease);
}

.dn-track__item--left .dn-subject {
	grid-column: 1;
	justify-self: end;
	margin-right: clamp(36px, 4.5vw, 64px);
}

.dn-track__item--right .dn-subject {
	grid-column: 2;
	justify-self: start;
	margin-left: clamp(36px, 4.5vw, 64px);
}

/* A short connector from the spine to each card. */
.dn-subject::before {
	content: "";
	position: absolute;
	top: 50%;
	width: clamp(36px, 4.5vw, 64px);
	height: 1px;
	background: linear-gradient(90deg, rgba(92, 157, 179, 0.6), rgba(92, 157, 179, 0.1));
}

.dn-track__item--left .dn-subject::before {
	left: 100%;
	transform: scaleX(-1);
}

.dn-track__item--right .dn-subject::before {
	right: 100%;
}

.dn-home a.dn-subject:hover,
.dn-home a.dn-subject:focus-visible {
	border-color: rgba(92, 157, 179, 0.5);
	box-shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(18, 78, 102, 0.7);
}

/* After arriving, each card drifts gently, out of step with its neighbours.
   Uses the separate translate property, so it never fights the reveal. */
.js .dn-subject.is-in {
	animation: dn-float 7s ease-in-out infinite;
}

.dn-track__item:nth-child(2) .dn-subject.is-in { animation-delay: -1.6s; }
.dn-track__item:nth-child(3) .dn-subject.is-in { animation-delay: -3.2s; }
.dn-track__item:nth-child(4) .dn-subject.is-in { animation-delay: -4.8s; }

@keyframes dn-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -9px; }
}

.dn-subject__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.dn-subject__num {
	color: transparent;
	font-size: clamp(2.6rem, 4vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	-webkit-text-stroke: 1px rgba(211, 217, 212, 0.35);
}

.dn-subject__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(92, 157, 179, 0.4);
	border-radius: 18px;
	background: rgba(18, 78, 102, 0.3);
	color: var(--dnp-mist);
}

.dn-subject__svg {
	width: 28px;
	height: 28px;
}

.dn-subject__title {
	color: var(--dk-head);
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.dn-subject__text {
	color: var(--dk-muted);
	font-size: 0.98rem;
	line-height: 1.65;
}

.dn-subject__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	color: var(--dk-accent);
	font-size: 0.9rem;
	font-weight: 700;
}

.dn-subject__arrow {
	transition: transform 0.3s var(--dn-ease);
}

.dn-subject:hover .dn-subject__arrow {
	transform: translateX(5px);
}

@media (max-width: 899px) {
	.dn-track::before {
		left: 18px;
	}

	.dn-track__item {
		grid-template-columns: 1fr;
		padding-left: 52px;
	}

	.dn-track__item + .dn-track__item {
		margin-top: 0;
	}

	.dn-track__node {
		left: 18px;
	}

	.dn-track__item--left .dn-subject,
	.dn-track__item--right .dn-subject {
		grid-column: 1;
		justify-self: stretch;
		max-width: none;
		margin: 0;
	}

	.dn-track__item--left .dn-subject::before,
	.dn-track__item--right .dn-subject::before {
		left: auto;
		right: 100%;
		width: 34px;
		transform: none;
	}

	/* From the screen edge is too far on a phone; shorten the flight. */
	.js .dn-rv[data-rv-far][data-rv="left"] {
		--rv-x: -70px;
	}

	.js .dn-rv[data-rv-far][data-rv="right"] {
		--rv-x: 70px;
	}
}

/* =========================================================================
   Section 5: converter tools
   ========================================================================= */

.dn-tools {
	position: relative;
	padding-block: clamp(60px, 8vw, 120px);
	overflow: hidden;
	background: var(--dk-base);
	color: var(--dk-text);
}

.dn-tools__glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(1100px, 90vw);
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(18, 78, 102, 0.55), transparent);
	filter: blur(30px);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.dn-tools__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 4vw, 64px);
	align-items: center;
	padding: clamp(28px, 4.5vw, 64px);
	border: 1px solid var(--dk-line-2);
	border-radius: 32px;
	background:
		radial-gradient(80% 120% at 0% 0%, rgba(18, 78, 102, 0.35) 0%, transparent 60%),
		linear-gradient(160deg, rgba(23, 33, 43, 0.9), rgba(11, 17, 24, 0.92));
	box-shadow: 0 50px 120px -60px rgba(0, 0, 0, 1);
}

.dn-tools__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.dn-tools__facts li {
	margin: 0;
	color: var(--dk-muted);
	font-size: 0.9rem;
}

.dn-tools__facts strong {
	display: block;
	color: var(--dk-head);
	font-size: 1.5rem;
	letter-spacing: -0.02em;
}

.dn-tools__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dn-tools__grid li {
	margin: 0;
}

.dn-home a.dn-tool {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--dk-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.025);
	color: var(--dk-head);
	text-decoration: none;
	transition: border-color 0.3s var(--dn-ease), background-color 0.3s var(--dn-ease), transform 0.3s var(--dn-ease);
}

.dn-home a.dn-tool:hover,
.dn-home a.dn-tool:focus-visible {
	border-color: rgba(92, 157, 179, 0.5);
	background: rgba(18, 78, 102, 0.22);
	transform: translateY(-3px);
}

.dn-tool__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(18, 78, 102, 0.35);
	color: var(--dnp-mist);
}

.dn-tool__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dn-tool__text strong {
	font-size: 0.98rem;
	line-height: 1.3;
}

.dn-tool__text span {
	color: var(--dk-muted);
	font-size: 0.8rem;
}

.dn-tool__arrow {
	color: var(--dk-accent);
	font-weight: 700;
	transition: transform 0.3s var(--dn-ease);
}

.dn-tool:hover .dn-tool__arrow {
	transform: translateX(4px);
}

@media (max-width: 1023px) {
	.dn-tools__panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 559px) {
	.dn-tools__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Centred copy: infrastructure, real estate and the tools intro
   ========================================================================= */

.dn-infra__side,
.dn-estate__copy,
.dn-tools__intro {
	text-align: center;
}

.dn-infra__side--left {
	justify-self: center;
}

/* Eyebrows get a matching line on the right so the label sits centred
   between two rules, like the subjects heading. */
.dn-infra .dn-eyebrow::after,
.dn-estate .dn-eyebrow::after,
.dn-tools .dn-eyebrow::after {
	content: "";
	display: inline-block;
	width: 34px;
	height: 1px;
	background: linear-gradient(90deg, var(--dk-accent), transparent);
}

.dn-infra .dn-lead,
.dn-estate .dn-lead,
.dn-tools .dn-lead {
	margin-inline: auto;
}

/* The tick list is centred as a block; its lines stay left-aligned so the
   ticks form a clean column. */
.dn-infra .dn-ticks {
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	text-align: left;
}

.dn-home .dn-point {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.dn-home .dn-point__body {
	align-items: center;
}

.dn-estate__actions,
.dn-tools__facts {
	justify-content: center;
}

/* =========================================================================
   Editor overflow content, and the hand-over to the footer
   ========================================================================= */

.dn-home .dn-section--editor {
	padding-block: clamp(48px, 6vw, 80px);
	background: var(--dk-base);
}

.dn-section--editor .dn-prose {
	max-width: 760px;
	color: var(--dk-text);
	line-height: 1.75;
}

.dn-home .dn-section--editor :is(h2, h3, h4) {
	color: var(--dk-head);
}

/* On the homepage only, the footer rises out of the page base instead of
   starting with a hard edge. */
.dnp-overlay-header .dnp-footer {
	background: linear-gradient(180deg, var(--dk-base, #0b1118) 0%, var(--dnp-ink) 240px);
	border-top: 1px solid rgba(211, 217, 212, 0.06);
}

/* =========================================================================
   Motion preferences
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	.dn-home *,
	.dn-home *::before,
	.dn-home *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js .dn-rv {
		opacity: 1;
		transform: none;
		filter: none;
	}
}
