/* ==========================================================================
   DIMVIA — presentation rules
   Tokens come from theme.json (--wp--preset--*). This sheet only positions
   and decorates.

   SCOPE: desktop only for this pass (>= 1024px). Mobile/tablet is a separate
   pass — see the note at the bottom of the file.
   ========================================================================== */

:root {
	--dv-ink: var(--wp--preset--color--ink);
	--dv-ink-deep: var(--wp--preset--color--ink-deep);
	--dv-ivory: var(--wp--preset--color--ivory);
	--dv-ivory-warm: var(--wp--preset--color--ivory-warm);
	--dv-light: var(--wp--preset--color--text-light);
	--dv-charcoal: var(--wp--preset--color--charcoal);
	--dv-gold: var(--wp--preset--color--champagne);
	--dv-gold-deep: var(--wp--preset--color--champagne-deep);
	--dv-blush: var(--wp--preset--color--blush);

	--dv-hairline: rgba(199, 154, 85, 0.38);
	--dv-hairline-soft: rgba(23, 23, 23, 0.1);
	/* THE maximum content width (px, not rem: the root font size changes at
	   1024px). Every band's inner content, the header and the hero copy sit in
	   .dv-shell, which is this wide plus a gutter each side; backgrounds stay
	   full-bleed. Change it here only. */
	--dv-content-max: 1280px;
	--dv-shell: var(--dv-content-max);
	--dv-gutter: 40px;
	--dv-display: var(--wp--preset--font-family--display);
	--dv-body: var(--wp--preset--font-family--body);
}

/* WordPress puts `margin-block-start: var(--wp--style--block-gap)` on every
   direct child of .wp-site-blocks. Between two full-bleed dark bands that gap
   shows through as an ivory seam, so it is removed — each section here carries
   its own vertical rhythm. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

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

/* Gold, letterspaced, uppercase micro-label used above most headings. */
.dv-eyebrow {
	margin: 0;
	font-family: var(--dv-body);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--dv-gold);
}

/* Eyebrow preceded by a short hairline, as in the ABOUT ME / CTA blocks. */
.dv-eyebrow--ruled {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.dv-eyebrow--ruled::before {
	content: "";
	width: 46px;
	height: 1px;
	background: var(--dv-gold);
	flex: none;
}

/* Centred section heading with a hairline either side. */
.dv-secthead {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.75rem;
	margin: 0 0 0.5rem;
}

.dv-secthead::before,
.dv-secthead::after {
	content: "";
	height: 1px;
	width: clamp(48px, 9vw, 132px);
	background: var(--dv-hairline);
	flex: none;
}

.dv-secthead__text {
	margin: 0;
	font-family: var(--dv-display);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: var(--dv-charcoal);
}

.dv-sectsub {
	margin: 0 auto;
	max-width: 640px;
	text-align: center;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(23, 23, 23, 0.62);
}

/* The same two atoms on a dark band. */
.dv-secthead--light .dv-secthead__text {
	color: var(--dv-light);
}

.dv-secthead--light::before,
.dv-secthead--light::after {
	background: rgba(199, 154, 85, 0.55);
}

.dv-sectsub--light {
	color: rgba(245, 242, 236, 0.62);
}

/* Gold pill button with a trailing arrow. */
.dv-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.05rem 1.85rem;
	border: 0;
	border-radius: 2px;
	background: var(--dv-gold-deep);
	color: var(--dv-light);
	font-family: var(--dv-body);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.dv-btn:hover,
.dv-btn:focus-visible {
	background: var(--dv-gold);
	color: var(--dv-light);
}

.dv-btn .dv-icon {
	transition: transform 0.25s ease;
}

.dv-btn:hover .dv-icon {
	transform: translateX(3px);
}

/* Outlined variant used for the language control in the header. */
.dv-btn--ghost {
	background: rgba(7, 17, 22, 0.55);
	border: 1px solid rgba(245, 242, 236, 0.32);
	backdrop-filter: blur(2px);
	padding: 0.8rem 1.35rem;
	font-size: 0.75rem;
	letter-spacing: 0.16em;
}

.dv-btn--ghost:hover,
.dv-btn--ghost:focus-visible {
	background: rgba(7, 17, 22, 0.8);
	border-color: var(--dv-gold);
	color: var(--dv-light);
}

.dv-icon {
	display: block;
	flex: none;
}

/* --------------------------------------------------------------------------
   Logo lockup
   -------------------------------------------------------------------------- */

.dv-logo {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
}

/* The client's DV monogram, cropped from design/assets/logo-dimvia-full.png
   at 3x its display height. Gold and ivory, so it only works on the dark
   header and footer. */
.dv-logo__mark {
	display: block;
	flex: none;
	width: auto;
	height: 48px;
}

.dv-logo__text {
	display: block;
}

.dv-logo__word {
	display: block;
	font-family: var(--dv-display);
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dv-light);
}

.dv-logo__tag {
	display: block;
	margin-top: 0.4rem;
	font-family: var(--dv-body);
	font-size: 0.5625rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(245, 242, 236, 0.72);
}

/* On ivory backgrounds the lockup flips to gold + charcoal. */
.dv-logo--dark .dv-logo__word {
	color: var(--dv-charcoal);
}

.dv-logo--dark .dv-logo__tag {
	color: rgba(23, 23, 23, 0.6);
}

/* --------------------------------------------------------------------------
   Header — transparent, overlaid on the hero
   -------------------------------------------------------------------------- */

/* Solid by default so a page with no hero still has a legible header. */
.dv-header {
	position: relative;
	z-index: 10;
	padding-block: 1.55rem;
	background: var(--dv-ink-deep);
	border-bottom: 1px solid rgba(199, 154, 85, 0.2);
}

/* Every hero is dark and full-bleed, so wherever one exists the header is
   overlaid on it instead. Decided here rather than in PHP because the header
   renders before the hero and cannot look ahead; :has() does not care about
   document order. */
body:has(.dv-hero) .dv-header,
body:has(.dv-phero) .dv-header {
	position: absolute;
	inset: 0 0 auto;
	background: transparent;
	border-bottom: 0;
}

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

/* The lockup is the widest element and the language control the narrowest, so
   the nav is centred on the band rather than on the leftover space. */
.dv-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.dv-nav__list,
.dv-nav__sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dv-nav__list {
	display: flex;
	align-items: center;
	gap: 2.1rem;
}

.dv-nav__item {
	position: relative;
}

.dv-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-block: 0.55rem;
	font-family: var(--dv-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: rgba(245, 242, 236, 0.86);
	transition: color 0.2s ease;
}

/* Gold underline on the hovered/active item, as in design-02/-07/-10. */
.dv-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--dv-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.dv-nav__item:hover > .dv-nav__link,
.dv-nav__item:focus-within > .dv-nav__link,
.dv-nav__link[aria-current] {
	color: var(--dv-light);
}

.dv-nav__item:hover > .dv-nav__link::after,
.dv-nav__item:focus-within > .dv-nav__link::after,
.dv-nav__link[aria-current]::after {
	transform: scaleX(1);
}

.dv-nav__item--has-sub > .dv-nav__link .dv-icon {
	transition: transform 0.25s ease;
}

.dv-nav__item--has-sub:hover > .dv-nav__toggle .dv-icon,
.dv-nav__item--has-sub.is-open > .dv-nav__toggle .dv-icon {
	transform: rotate(180deg);
}

/* Disclosure button for the submenu: looks like the chevron that used to sit
   inside the link, but is a real control with its own state. */
.dv-nav__item--has-sub {
	display: flex;
	align-items: center;
}

.dv-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 0 0.15rem;
	padding: 0.55rem 0.3rem;
	background: none;
	border: 0;
	color: rgba(245, 242, 236, 0.86);
	cursor: pointer;
}

.dv-nav__item--has-sub:hover > .dv-nav__toggle,
.dv-nav__item--has-sub.is-open > .dv-nav__toggle {
	color: var(--dv-light);
}

.dv-nav__item--has-sub:hover > .dv-nav__link::after,
.dv-nav__item--has-sub.is-open > .dv-nav__link::after {
	transform: scaleX(1);
}

/* Submenu. Opens on hover, or when the toggle button (dimvia.js) sets
   .is-open for keyboard / screen-reader users. */
.dv-nav__sub {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 2;
	transform: translate(-50%, 6px);
	min-width: 246px;
	margin-top: 0.8rem;
	padding: 0.5rem 0;
	background: rgba(7, 17, 22, 0.97);
	border: 1px solid rgba(199, 154, 85, 0.3);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Without this the 0.8rem gap between trigger and panel would close the menu
   halfway through the pointer's travel. */
.dv-nav__sub::before {
	content: "";
	position: absolute;
	inset: -0.9rem 0 100% 0;
}

.dv-nav__item--has-sub:hover .dv-nav__sub,
.dv-nav__item--has-sub.is-open .dv-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.dv-nav__sub a {
	display: block;
	padding: 0.7rem 1.4rem;
	font-family: var(--dv-body);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(245, 242, 236, 0.8);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.dv-nav__sub a:hover,
.dv-nav__sub a:focus-visible {
	color: var(--dv-gold);
	background: rgba(199, 154, 85, 0.08);
}

/* --------------------------------------------------------------------------
   Header language control - the bordered globe pill from design-13/-20,
   opening the dropdown the inner pages imply.
   -------------------------------------------------------------------------- */

.dv-lang {
	position: relative;
	flex: none;
}

.dv-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.72rem 1.1rem;
	background: rgba(7, 17, 22, 0.55);
	border: 1px solid rgba(245, 242, 236, 0.32);
	border-radius: 2px;
	backdrop-filter: blur(2px);
	color: var(--dv-light);
	font-family: var(--dv-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.dv-lang__toggle:hover,
.dv-lang__toggle:focus-visible {
	background: rgba(7, 17, 22, 0.8);
	border-color: var(--dv-gold);
}

.dv-lang__toggle .dv-icon--chevron-down {
	transition: transform 0.25s ease;
}

.dv-lang.is-open .dv-lang__toggle .dv-icon--chevron-down {
	transform: rotate(180deg);
}

.dv-lang__menu {
	position: absolute;
	top: calc(100% + 0.55rem);
	right: 0;
	z-index: 3;
	list-style: none;
	min-width: 200px;
	margin: 0;
	padding: 0.4rem 0;
	background: rgba(7, 17, 22, 0.97);
	border: 1px solid rgba(199, 154, 85, 0.3);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dv-lang.is-open .dv-lang__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dv-lang__menu a {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.65rem 1.2rem;
	font-family: var(--dv-body);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: rgba(245, 242, 236, 0.82);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.dv-lang__menu a:hover,
.dv-lang__menu a:focus-visible {
	color: var(--dv-gold);
	background: rgba(199, 154, 85, 0.08);
}

.dv-lang__menu a[aria-current] {
	color: var(--dv-light);
}

/* --------------------------------------------------------------------------
   Mobile menu — burger in the header bar, full-screen panel under it.
   Hidden on desktop; the media query at the end of this file turns it on.
   -------------------------------------------------------------------------- */

.dv-burger,
.dv-mnav {
	display: none;
}

/* Same pill as the language control, so the two sit together as one pair. */
.dv-burger {
	flex: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(7, 17, 22, 0.55);
	border: 1px solid rgba(245, 242, 236, 0.32);
	border-radius: 2px;
	backdrop-filter: blur(2px);
	color: var(--dv-light);
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.dv-burger:hover,
.dv-burger:focus-visible {
	background: rgba(7, 17, 22, 0.8);
	border-color: var(--dv-gold);
}

.dv-burger__bar {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.dv-burger__bar:nth-child(1) { top: 15px; }
.dv-burger__bar:nth-child(2) { top: 21px; }
.dv-burger__bar:nth-child(3) { top: 27px; }

/* Open: the three bars fold into a cross. */
.dv-header.is-menu-open .dv-burger__bar:nth-child(1) {
	top: 21px;
	transform: rotate(45deg);
}

.dv-header.is-menu-open .dv-burger__bar:nth-child(2) {
	opacity: 0;
}

.dv-header.is-menu-open .dv-burger__bar:nth-child(3) {
	top: 21px;
	transform: rotate(-45deg);
}

/* The panel lives inside the header's stacking context, under the bar, so
   the logo, language pill and the cross stay visible and usable on top. */
.dv-mnav {
	position: fixed;
	inset: 0;
	z-index: 1;
	overflow-y: auto;
	padding: 7.5rem 0 3rem;
	background: var(--dv-ink-deep);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.dv-header__inner {
	position: relative;
	z-index: 2;
}

.dv-header.is-menu-open .dv-mnav {
	opacity: 1;
	visibility: visible;
}

/* Nothing behind the panel should scroll while it is open. */
html.dv-menu-open {
	overflow: hidden;
}

/* The header's "About me" / "How it works" links are in-page anchors: glide to
   them instead of jumping. Not for people who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.dv-mnav__list,
.dv-mnav__sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dv-mnav__item {
	border-bottom: 1px solid rgba(199, 154, 85, 0.18);
}

.dv-mnav__link {
	display: block;
	padding: 1.15rem 0;
	font-family: var(--dv-display);
	font-size: 1.6rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.15;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--dv-light);
	transition: color 0.2s ease;
}

.dv-mnav__link:hover,
.dv-mnav__link:focus-visible {
	color: var(--dv-gold);
}

.dv-mnav__sub {
	margin: -0.35rem 0 1.15rem;
	padding-left: 1rem;
	border-left: 1px solid rgba(199, 154, 85, 0.45);
}

.dv-mnav__sub a {
	display: block;
	padding: 0.55rem 0;
	font-family: var(--dv-body);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(245, 242, 236, 0.78);
	transition: color 0.2s ease;
}

.dv-mnav__sub a:hover,
.dv-mnav__sub a:focus-visible {
	color: var(--dv-gold);
}

/* Logged-in visitors get WordPress's admin bar pinned to the top of the
   viewport. The overlaid header (and the fixed panel) start at the very top,
   so without this the bar covers the logo. 32px desktop, 46px below 783px —
   WordPress's own breakpoints. */
body.admin-bar:has(.dv-hero) .dv-header,
body.admin-bar:has(.dv-phero) .dv-header,
body.admin-bar .dv-mnav {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar:has(.dv-hero) .dv-header,
	body.admin-bar:has(.dv-phero) .dv-header,
	body.admin-bar .dv-mnav {
		top: 46px;
	}
}

.dv-flag {
	display: block;
	flex: none;
	border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.dv-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 620px;
	padding-block: 9.5rem 5rem;
	/* Hero-only palette (the client's spec): champagne gold and a deep
	   green-black. The global --dv-gold / --dv-ink are untouched. */
	--dv-hero-gold: #d9a64f;
	--dv-hero-ink: 6, 27, 25;
	background-color: rgb(var(--dv-hero-ink));
	overflow: hidden;
}

/* The photo (1371x1148) is pinned to the right edge at its own proportions,
   as tall as the band, and its left edge dissolves into the ink so the copy
   sits on the dark -- the layout of the client's mock-up. On a narrow screen
   the box is capped at the screen width and the photo is cropped from the
   left (the couple and the house stay in frame). */
.dv-hero__media {
	position: absolute;
	inset: 0 0 0 auto;
	z-index: -2;
	height: 100%;
	aspect-ratio: 1371 / 1148;
	max-width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%);
	mask-image: linear-gradient(90deg, transparent 0, #000 20%);
}

.dv-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 50%;
	display: block;
}

/* Wide screens: the band grows with the width but never taller than the
   screen, and the photo grows with it (it is 1371px wide natively, so it is
   only scaled up past ~2500px). */
@media (min-width: 1600px) {
	.dv-hero {
		/* border-box so the 9.5rem/5rem padding counts towards the cap and
		   the band never ends up taller than the screen. Floor = the default
		   620px + padding, so there's no jump at 1600px. */
		box-sizing: border-box;
		min-height: min(max(50vw, calc(620px + 14.5rem)), 100svh);
	}
}

/* Two overlays: a horizontal ramp so the copy sits on near-black and fades out
   over the photo, and a soft top veil so the header lockup stays legible over
   the sky. */
.dv-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			90deg,
			rgba(var(--dv-hero-ink), 0.92) 0%,
			rgba(var(--dv-hero-ink), 0.78) 30%,
			rgba(var(--dv-hero-ink), 0.3) 46%,
			rgba(var(--dv-hero-ink), 0) 62%
		),
		linear-gradient(180deg, rgba(var(--dv-hero-ink), 0.55) 0%, rgba(var(--dv-hero-ink), 0) 26%);
}

/* Phones and portrait tablets are too narrow for copy beside the photo, so
   they stack: the photo (couple, house, keys; only a little sky trimmed) across
   the top, its bottom dissolving into the ink, and the copy underneath,
   overlapping the lowest part of it. */
@media (max-width: 900px) {
	.dv-hero {
		align-items: flex-end;
		min-height: 0;
		padding-top: 70vw;
		padding-bottom: 2.75rem;
	}

	.dv-hero__media {
		inset: 0 0 auto 0;
		height: auto;
		aspect-ratio: 1371 / 1000;
		-webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
	}

	.dv-hero__media img {
		object-position: 50% 85%;
	}

	.dv-hero::before {
		background: linear-gradient(180deg, rgba(var(--dv-hero-ink), 0.5) 0%, rgba(var(--dv-hero-ink), 0) 22%);
	}
}

.dv-hero__inner {
	width: 100%;
	/* A flex item: without this, one long word in the title stretched the
	   whole block past the screen and the hero's overflow:hidden clipped it. */
	min-width: 0;
}

.dv-hero__copy {
	max-width: 44rem;
}

/* One heading, three block lines; the middle one is gold. */
.dv-hero__title {
	margin: 0;
	font-family: var(--dv-display);
	font-size: clamp(2.5rem, 4.6vw, 4.25rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f5f2ec;
	text-shadow: 0 2px 18px rgba(var(--dv-hero-ink), 0.55);
}

.dv-hero__title span {
	display: block;
}

.dv-hero__title .dv-hero__accent {
	color: var(--dv-hero-gold);
}

.dv-hero__rule {
	display: block;
	width: 11rem;
	height: 1px;
	margin: 2rem 0 1.75rem;
	background: linear-gradient(90deg, var(--dv-hero-gold), rgba(217, 166, 79, 0));
}

.dv-hero__lead,
.dv-hero__note {
	margin: 0;
	max-width: 29rem;
	text-shadow: 0 1px 12px rgba(7, 17, 22, 0.6);
}

.dv-hero__lead {
	font-size: clamp(1.05rem, 1.45vw, 1.25rem);
	font-weight: 400;
	line-height: 1.55;
	color: #f5f2ec;
}

.dv-hero__note {
	margin-top: 1rem;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.6;
	color: var(--dv-hero-gold);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.dv-section {
	padding-block: 5.25rem;
}

.dv-section--ivory {
	background: var(--dv-ivory);
	color: var(--dv-charcoal);
}

.dv-section--ivory-warm {
	background: var(--dv-ivory-warm);
	color: var(--dv-charcoal);
}

.dv-section--ink {
	background: var(--dv-ink);
	color: var(--dv-light);
}

.dv-section__head {
	margin-bottom: 3.5rem;
}

/* --------------------------------------------------------------------------
   "How I can help" — three columns divided by hairlines
   -------------------------------------------------------------------------- */

.dv-services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.dv-service {
	padding-inline: 2.75rem;
	text-align: center;
}

.dv-service + .dv-service {
	border-left: 1px solid var(--dv-hairline);
}

.dv-service__disc {
	width: 104px;
	height: 104px;
	margin: 0 auto 1.9rem;
	border-radius: 50%;
	background: var(--dv-blush);
	color: var(--dv-gold-deep);
	display: grid;
	place-items: center;
}

.dv-service__disc .dv-icon {
	width: 46px;
	height: 46px;
	stroke-width: 1.1;
}

.dv-service__title {
	margin: 0 0 1rem;
	font-family: var(--dv-display);
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--dv-charcoal);
}

/* The title is a link to the service page: underlined, gold on hover. */
.dv-service__title a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	text-decoration-color: var(--dv-gold);
	transition: color 0.2s ease;
}

.dv-service__title a:hover,
.dv-service__title a:focus-visible {
	color: var(--dv-gold-deep);
}

.dv-service__text {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(23, 23, 23, 0.78);
}

/* --------------------------------------------------------------------------
   About me — round portrait in a gold ring, dark copy panel on the right
   -------------------------------------------------------------------------- */

.dv-about {
	display: grid;
	grid-template-columns: 0.86fr 1.14fr;
	background: var(--dv-ink);
	color: var(--dv-light);
}

.dv-about__media {
	display: grid;
	place-items: center;
	padding: 3.5rem clamp(2rem, 4vw, 3.5rem);
}

/* The client's photo is a circle on a white square. Shown whole, as supplied:
   the ring sits a few px off the photo, and clip-path trims the anti-aliased
   white rim the JPEG has round the circle. */
.dv-about__frame {
	display: block;
	width: min(100%, 26rem);
	padding: 0.6rem;
	border: 1px solid rgba(199, 154, 85, 0.55);
	border-radius: 50%;
}

.dv-about__frame img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	clip-path: circle(49.4%);
}

.dv-about__body {
	padding: 4.25rem clamp(2.5rem, 5vw, 5rem) 3.5rem 3.75rem;
	max-width: 41rem;
}

.dv-about__title {
	margin: 1.15rem 0 1.6rem;
	font-family: var(--dv-display);
	font-size: 2.125rem;
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--dv-light);
}

.dv-about__body p:not(.dv-eyebrow) {
	margin: 0 0 1.15rem;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.8;
	color: rgba(245, 242, 236, 0.88);
}

/* Script signature. Marck Script is the chosen face because it is the only
   free script on Google Fonts with full Ukrainian Cyrillic — the UA mock-up
   signs "Ірина". */
.dv-sig {
	margin: 1.6rem 0 0;
	text-align: right;
}

.dv-sig__name {
	font-family: var(--wp--preset--font-family--signature);
	font-size: 2.5rem;
	line-height: 1;
	color: var(--dv-gold);
}

.dv-sig__rule {
	display: block;
	margin: 0.35rem 0 0 auto;
	width: 132px;
	height: 1px;
	background: var(--dv-gold);
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Process — four numbered steps divided by hairlines
   -------------------------------------------------------------------------- */

.dv-process {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	/* Semantic <ol> — strip the list furniture, keep the order for a11y. */
	margin: 0;
	padding: 0;
	list-style: none;
}

.dv-step {
	padding-inline: 2rem;
}

.dv-step + .dv-step {
	border-left: 1px solid var(--dv-hairline-soft);
}

.dv-step__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.dv-step__num {
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: var(--dv-blush);
	color: var(--dv-charcoal);
	display: grid;
	place-items: center;
	font-family: var(--dv-display);
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1;
}

.dv-step__title {
	margin: 0;
	font-family: var(--dv-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--dv-charcoal);
}

.dv-step__text {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(23, 23, 23, 0.72);
}

/* --------------------------------------------------------------------------
   Closing CTA band
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Language band (design-03 / design-04)
   -------------------------------------------------------------------------- */

.dv-lb {
	position: relative;
	isolation: isolate;
	background: var(--dv-ink-deep);
	padding-block: 3.9rem 4.1rem;
	overflow: hidden;
	text-align: center;
}

.dv-lb .dv-sectsub--light {
	margin-top: 0.85rem;
}

.dv-langpanel {
	display: flex;
	justify-content: center;
	gap: 1.6rem;
	margin-top: 2.1rem;
}

/* Equal-width outlined buttons, side by side, regardless of label length -
   the mock-up sets each at roughly a third of the shell. */
.dv-langpanel__btn {
	flex: 0 1 300px;
	display: inline-flex;
	align-items: center;
	gap: 0.95rem;
	padding: 1.05rem 1.6rem;
	background: rgba(11, 21, 26, 0.6);
	border: 1px solid rgba(199, 154, 85, 0.55);
	border-radius: 2px;
	color: var(--dv-light);
	font-family: var(--dv-body);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.dv-langpanel__btn:hover,
.dv-langpanel__btn:focus-visible {
	background: rgba(199, 154, 85, 0.12);
	border-color: var(--dv-gold);
	color: var(--dv-light);
}

/* Pushes the arrow to the far edge so the pair reads as one control. */
.dv-langpanel__name {
	flex: 1 1 auto;
	text-align: left;
}

.dv-langpanel__btn .dv-icon {
	transition: transform 0.25s ease;
}

.dv-langpanel__btn:hover .dv-icon {
	transform: translateX(3px);
}

.dv-lb__foot {
	margin: 1.9rem 0 0;
	font-family: var(--dv-body);
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(245, 242, 236, 0.52);
}

.dv-cta {
	position: relative;
	isolation: isolate;
	background: var(--dv-ink);
	color: var(--dv-light);
	padding-block: 3.6rem;
	overflow: hidden;
}

/* Faint botanical motif bleeding off the left edge, as in the mock-up. */
.dv-cta__motif {
	position: absolute;
	inset: 0 auto 0 0;
	z-index: -1;
	width: 340px;
	opacity: 0.16;
	pointer-events: none;
}

.dv-cta__motif img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	display: block;
}

.dv-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
}

.dv-cta__title {
	margin: 0.9rem 0 0.6rem;
	font-family: var(--dv-display);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dv-light);
}

.dv-cta__text {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 300;
	color: rgba(245, 242, 236, 0.85);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

/* Short pages (the booking page) would otherwise leave an ivory strip under
   the footer on a tall screen; keep the footer on the bottom edge. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

/* ...and on that page let the form's band fill the space down to the footer,
   so a tall screen (iPad portrait) shows one warm band, not a second, lighter
   strip of bare <main> under it. */
.wp-site-blocks > main:has(> .dv-book) {
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main > .dv-book {
	flex: 1 0 auto;
}

.dv-footer {
	background: var(--dv-ink-deep);
	color: var(--dv-light);
	padding-block: 2.5rem 1.75rem;
}

.dv-footer__top {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	padding-bottom: 1.9rem;
}

/* Contacts + socials as one block, so that when the row runs out of room the
   icons wrap under the contacts rather than under the logo. */
.dv-footer__reach {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2.25rem;
	margin-left: 1.5rem;
	padding-left: 2.5rem;
	border-left: 1px solid rgba(245, 242, 236, 0.16);
}

.dv-footer__contacts {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 2.25rem;
}

.dv-contact {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.875rem;
	font-weight: 300;
	color: rgba(245, 242, 236, 0.9);
	text-decoration: none;
	white-space: nowrap;
}

.dv-contact .dv-icon {
	color: var(--dv-gold);
	width: 19px;
	height: 19px;
}

.dv-contact:hover {
	color: var(--dv-light);
}

/* No margin-left:auto: the growing contacts block pushes the icons to the end
   of the row while they share it, and once they wrap they start on the left,
   under the contacts. */
.dv-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.15rem;
}

.dv-footer__social a {
	color: rgba(245, 242, 236, 0.82);
	transition: color 0.2s ease;
}

.dv-footer__social a:hover {
	color: var(--dv-gold);
}

.dv-footer__social .dv-icon {
	width: 22px;
	height: 22px;
}

.dv-footer__legal {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(245, 242, 236, 0.14);
}

.dv-footer__legal p {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(245, 242, 236, 0.6);
}

/* The client's regulatory wording. Kept quiet like the rest of the legal
   line, but wide enough that five statements stay a short block. */
.dv-footer__disclosures {
	display: grid;
	gap: 0.45rem;
	max-width: 110ch;
}

.dv-footer__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;
}

.dv-footer__side .dv-footer__policy {
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1.7;
	color: rgba(245, 242, 236, 0.82);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.dv-footer__side .dv-footer__policy:hover,
.dv-footer__side .dv-footer__policy:focus-visible {
	color: var(--dv-gold);
}

.dv-footer__copy {
	text-align: right;
	white-space: nowrap;
}

/* Once the legal row wraps, the link and the copyright line start on the left. */
@media (max-width: 1023px) {
	.dv-footer__side {
		align-items: flex-start;
	}

	.dv-footer__copy {
		text-align: left;
	}
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.dv-skip {
	position: absolute;
	left: -9999px;
}

.dv-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--dv-ivory);
	color: var(--dv-charcoal);
}

:where(a, button):focus-visible {
	outline: 2px solid var(--dv-gold);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Back to top

   One treatment for the whole site. The page alternates ivory and ink bands,
   and gold is the one colour the spec puts on both -- every hairline and icon
   in the design already relies on that -- so a gold ring with a gold arrow
   reads correctly against either without needing to know which band it is
   over.

   The fill is the same translucent ink surface as the language pill in the
   header, not a transparent one. A gold ring alone was measured against all
   four backgrounds the button can cross and it failed over the About portrait:
   gold on light warm hair has almost no contrast. This surface disappears into
   the dark bands -- where you see exactly the ring and arrow and nothing else
   -- and gives the ring something to sit on over ivory and over photographs.
   Adaptive without needing a scroll observer.
   -------------------------------------------------------------------------- */

.dv-totop {
	position: fixed;
	right: 2rem;
	bottom: 2rem;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--dv-gold);
	border-radius: 50%;
	background: rgba(7, 17, 22, 0.55);
	backdrop-filter: blur(3px);
	color: var(--dv-gold);
	cursor: pointer;

	/* Hidden until dimvia.js says otherwise. visibility, not display, so the
	   fade works -- and it also keeps the button out of the tab order while
	   it is invisible, which display:none would do but opacity alone would
	   not. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity 0.3s ease,
		transform 0.3s ease,
		visibility 0.3s,
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
}

.dv-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Fills solid gold on hover, as every other outlined control in the theme
   does. */
.dv-totop:hover,
.dv-totop:focus-visible {
	background: var(--dv-gold-deep);
	border-color: var(--dv-gold);
	color: var(--dv-light);
}

.dv-totop .dv-icon {
	transition: transform 0.25s ease;
}

.dv-totop:hover .dv-icon {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.dv-totop,
	.dv-totop .dv-icon {
		transition-duration: 0.01ms;
	}
}

/* --------------------------------------------------------------------------
   NOT YET DONE: narrow viewports.
   This pass is desktop-only by agreement. The rule below is a stop-gap so a
   narrow window degrades to a single column instead of scrolling sideways —
   it is not the mobile design.
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.dv-services,
	.dv-process,
	.dv-about {
		grid-template-columns: 1fr;
	}

	.dv-about__media {
		padding: 3rem 1.5rem 0;
	}

	.dv-about__frame {
		width: min(100%, 20rem);
	}

	.dv-service + .dv-service,
	.dv-step + .dv-step {
		border-left: 0;
		border-top: 1px solid var(--dv-hairline);
	}

	/* Services stacked: even space either side of each hairline (they were
	   touching the text), capped and centred like the process list below. */
	.dv-services {
		max-width: 34rem;
		margin-inline: auto;
	}

	.dv-service {
		padding: 2.25rem 0;
	}

	.dv-service:first-child {
		padding-top: 0;
	}

	.dv-service:last-child {
		padding-bottom: 0;
	}

	.dv-service__disc {
		width: 88px;
		height: 88px;
		margin-bottom: 1.4rem;
	}

	.dv-service__disc .dv-icon {
		width: 38px;
		height: 38px;
	}

	/* Process stacked as a list: number on the left, title + text beside it,
	   even space either side of each hairline. Capped and centred so the
	   lines don't run wider than the copy on a tablet. */
	.dv-process {
		max-width: 34rem;
		margin-inline: auto;
	}

	.dv-step {
		display: grid;
		grid-template-columns: 42px 1fr;
		column-gap: 1.25rem;
		padding: 1.5rem 0;
	}

	.dv-step:first-child {
		padding-top: 0;
	}

	.dv-step:last-child {
		padding-bottom: 0;
	}

	.dv-step__head {
		display: contents;
	}

	.dv-step__num {
		grid-row: 1 / span 2;
	}

	.dv-step__title {
		grid-column: 2;
		align-self: center;
		min-height: 42px;
		display: flex;
		align-items: center;
	}

	.dv-step__text {
		grid-column: 2;
		margin-top: 0.15rem;
	}

	.dv-cta__inner,
	.dv-footer__top,
	.dv-footer__legal {
		flex-wrap: wrap;
	}

	.dv-nav {
		display: none;
	}

	/* Language band: the two buttons stack, full width of the shell. */
	.dv-langpanel {
		flex-direction: column;
		gap: 1rem;
	}

	.dv-langpanel__btn {
		flex: 0 0 auto;
	}

	.dv-burger,
	.dv-mnav {
		display: block;
	}

	.dv-header__inner {
		gap: 0.75rem;
	}

	/* Logo left; the language pill and the burger together on the right. */
	.dv-header__inner > .dv-lang {
		margin-left: auto;
	}

	.dv-footer__top {
		row-gap: 1.75rem;
	}

	.dv-footer__reach {
		flex-basis: 100%;
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	.dv-footer__contacts {
		flex-wrap: wrap;
		row-gap: 1rem;
	}
}

/* Phones: logo + language pill + burger must fit in ~390px (at the desktop
   sizes the burger was pushed ~30px past the right edge), and the hero copy
   must fit too. One 20px gutter for every band, so the hero text lines up
   with the logo. */
@media (max-width: 600px) {
	:root {
		--dv-gutter: 20px;
	}

	/* Long Ukrainian words ("НЕРУХОМОСТІ.", "СТРАХУВАННЯ") at a fixed 48px are
	   wider than a phone's text column. Scale with the screen instead. */
	.dv-hero__title {
		font-size: clamp(1.75rem, 8vw, 2.75rem);
		overflow-wrap: break-word;
		letter-spacing: 0.015em;
	}

	/* The hairlines either side of a section heading leave too little room for
	   a long unbreakable word ("STRAIGHTFORWARD"), which pushed the home page
	   wider than the screen. Drop them and let the type scale with the width. */
	.dv-secthead::before,
	.dv-secthead::after {
		display: none;
	}

	.dv-secthead__text {
		font-size: clamp(1.25rem, 6.4vw, 1.75rem);
	}

	.dv-footer__contacts {
		flex-basis: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.9rem;
	}

	.dv-header .dv-logo {
		gap: 0.6rem;
	}

	.dv-header .dv-logo__mark {
		height: 40px;
	}

	.dv-header .dv-logo__word {
		font-size: 1.3rem;
		letter-spacing: 0.16em;
	}

	.dv-header .dv-lang__toggle {
		padding: 0.72rem 0.8rem;
	}

	.dv-header .dv-lang__toggle .dv-icon--chevron-down {
		display: none;
	}
}

/* The tagline must stay on ONE line: the hero reserves only the one-line
   header height, so a wrapped second line hangs over the photo. Tighter
   tracking makes it fit beside the language pill and burger from 431px
   (English) / 480px (Ukrainian, a longer wording); narrower than that it is
   hidden. */
@media (max-width: 600px) {
	.dv-header .dv-logo__tag {
		letter-spacing: 0.05em;
		white-space: nowrap;
	}
}

/* Ukrainian wording is wider still: it wrapped up to ~616px even before. */
@media (min-width: 601px) and (max-width: 640px) {
	:lang(uk) .dv-header .dv-logo__tag {
		letter-spacing: 0.1em;
		white-space: nowrap;
	}
}

@media (max-width: 430px) {
	.dv-header .dv-logo__tag {
		display: none;
	}
}

@media (max-width: 479px) {
	:lang(uk) .dv-header .dv-logo__tag {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Desktop scale (>= 1024px)

   The client found the desktop site about 150% too big. Everything on this
   sheet is already in rem, so one rule does most of the work: the root font
   size is 12px (75%) from 1024px up, which takes ~25% off every rem-sized
   heading, padding, margin, gap, icon disc and hero band at once. Below 1024px
   nothing here applies, so phones and tablets are untouched. No zoom, no
   transform: real CSS pixels, real layout.

   Three things a root scale cannot do, handled below:
   1. TEXT FLOORS. Scaled copy would be 11px, so reading text is pinned to
      px minimums (14px body, 13px secondary, 12px captions/nav/buttons, 11px
      micro labels and legal). Headings take the full 25%.
   2. PX SIZES (shell, icon discs, hero band, header logo, photo column...)
      do not follow rem and are reduced by hand, ~25%.
   3. TAP TARGETS keep their previous size (header pills, nav links, socials).
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	html {
		font-size: 75%;
	}

	.dv-about {
		padding-inline: max(var(--dv-gutter), calc((100% - var(--dv-shell)) / 2));
	}

	:root {
		--dv-gutter: 32px;
	}

	/* Elements that inherit from <body> without their own size (theme.json asks
	   for 1rem, which would now be 12px). */
	body {
		font-size: 14px;
	}

	/* ---- type floors ---------------------------------------------------- */
	.dv-eyebrow,
	.dv-sectsub,
	.dv-lb__foot,
	.dv-footer__legal p {
		font-size: 11px;
	}

	.dv-btn,
	.dv-btn--ghost,
	.dv-nav__link,
	.dv-nav__sub a,
	.dv-lang__toggle,
	.dv-lang__menu a,
	.dv-crumbs {
		font-size: 12px;
	}

	.dv-logo__tag {
		font-size: 9px;
	}

	.dv-service__text,
	.dv-about__body p:not(.dv-eyebrow),
	.dv-cta__text,
	.dv-langpanel__btn {
		font-size: 14px;
	}

	.dv-langpanel__btn {
		font-size: 13px;
	}

	.dv-step__title {
		font-size: 14px;
	}

	.dv-step__text,
	.dv-contact {
		font-size: 13px;
	}

	/* ---- header --------------------------------------------------------- */
	.dv-logo__mark {
		height: 38px;
	}

	.dv-nav__link {
		padding-block: 8.8px;
	}

	.dv-nav__toggle {
		padding-block: 8.8px;
	}

	.dv-nav__sub {
		min-width: 190px;
	}

	.dv-nav__sub a {
		padding: 0.9rem 1.4rem;
	}

	.dv-lang__toggle {
		padding: 11.5px 16px;
	}

	.dv-lang__menu {
		min-width: 170px;
	}

	.dv-lang__menu a {
		padding: 0.85rem 1.4rem;
	}

	.dv-lang__toggle .dv-flag {
		width: 15px;
		height: 15px;
	}

	.dv-btn {
		padding: 1.2rem 2rem;
	}

	.dv-btn .dv-icon,
	.dv-lang__toggle .dv-icon--globe {
		width: 14px;
		height: 14px;
	}

	.dv-nav__toggle .dv-icon,
	.dv-lang__toggle .dv-icon--chevron-down {
		width: 11px;
		height: 11px;
	}

	.dv-eyebrow--ruled::before {
		width: 36px;
	}

	.dv-secthead::before,
	.dv-secthead::after {
		width: clamp(36px, 6.75vw, 100px);
	}

	/* ---- hero ----------------------------------------------------------- */
	/* ~525px at 1440 wide (was 639): 58% of a 900px screen, so the start of
	   "How I can help" shows under it. Border-box, so the padding (header
	   clearance on top) counts towards the height. */
	.dv-hero {
		box-sizing: border-box;
		min-height: 525px;
		padding-block: 7.5rem 3.5rem;
	}

	/* Wide screens: the band grows with the width (33vw: ~634px at 1920, was
	   768) but never past 72% of the screen. */
	@media (min-width: 1600px) {
		.dv-hero {
			min-height: min(max(33vw, 525px), 72svh);
		}
	}

	.dv-hero__copy {
		max-width: 48rem;
	}

	.dv-hero__title {
		font-size: clamp(34px, 3.1vw, 48px);
	}

	.dv-hero__rule {
		margin: 1.5rem 0 1.3rem;
	}

	/* ---- section rhythm (second pass, ~20% less air) -------------------- */
	.dv-section {
		padding-block: 4.2rem;
	}

	.dv-section__head {
		margin-bottom: 2.75rem;
	}

	.dv-service__disc {
		margin-bottom: 1.5rem;
	}

	.dv-lb {
		padding-block: 4rem;
	}

	.dv-lb .dv-sectsub--light {
		margin-top: 0.6rem;
	}

	.dv-langpanel {
		margin-top: 1.6rem;
	}

	.dv-lb__foot {
		margin-top: 1.4rem;
	}

	.dv-about__media {
		padding-block: 2.5rem;
	}

	.dv-about__body {
		padding-block: 3.4rem 2.8rem;
	}

	.dv-about__title {
		margin-block: 0.9rem 1.25rem;
	}

	.dv-about__body p:not(.dv-eyebrow) {
		margin-bottom: 0.9rem;
	}

	.dv-sig {
		margin-top: 1.25rem;
	}

	.dv-step__head {
		margin-bottom: 0.65rem;
	}

	.dv-cta__title {
		margin-block: 0.7rem 0.5rem;
	}

	.dv-footer {
		padding-block: 2.1rem 1.4rem;
	}

	.dv-footer__top {
		padding-bottom: 1.4rem;
	}

	.dv-footer__legal {
		padding-top: 1.1rem;
	}

	.dv-hero__lead,
	.dv-hero__note {
		max-width: 36rem;
	}

	.dv-hero__lead {
		font-size: clamp(14px, 1.1vw, 17px);
	}

	.dv-hero__note {
		font-size: clamp(14px, 1vw, 16px);
	}

	/* ---- home sections -------------------------------------------------- */
	.dv-service__disc {
		width: 78px;
		height: 78px;
	}

	.dv-service__disc .dv-icon {
		width: 35px;
		height: 35px;
	}

	.dv-about__body {
		max-width: 50rem;
	}

	.dv-about__frame {
		width: min(100%, 27rem);
	}

	.dv-sig__rule {
		width: 100px;
	}

	.dv-step__num {
		width: 34px;
		height: 34px;
	}

	.dv-langpanel__btn {
		flex-basis: 240px;
	}

	.dv-langpanel__btn .dv-flag {
		width: 20px;
		height: 20px;
	}

	.dv-cta__motif {
		width: 255px;
	}

	/* ---- footer --------------------------------------------------------- */
	.dv-contact .dv-icon {
		width: 16px;
		height: 16px;
	}

	/* 22px icons are already the smallest comfortable target: unchanged, and
	   their spacing kept. */
	.dv-footer__social {
		gap: 1.5rem;
	}

	.dv-totop {
		right: 1.75rem;
		bottom: 1.75rem;
		width: 44px;
		height: 44px;
	}
}

/* --------------------------------------------------------------------------
   Desktop hero photo (>= 1024px) — shared by the home hero and the Protection
   hero (dimvia-pages.css reuses --dv-hero-fade for its own box).
   The photo is pinned to the right edge and the top/bottom of the band, and
   dissolves into the ink over a wide, eased ramp (a mask, not baked into the
   JPEG), so the dark strip under the copy turns gradually into the photo
   instead of ending at a hard edge. The box is wider than the old one and the
   photo is cropped slightly (a little roof/sky and wall) so it scales up
   ~20% (0.57x of natural at 1440). hero-family-wide.jpg = the photo plus a
   soft, darkened margin on its left, so the dissolve happens on the margin and
   the keys and the couple stay whole.
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	.dv-hero__media,
	.dv-phero--low .dv-phero__media {
		--dv-fade-w: 38%;
		-webkit-mask-image: linear-gradient(
			90deg,
			transparent 0,
			rgba(0, 0, 0, 0.08) calc(var(--dv-fade-w) * 0.2),
			rgba(0, 0, 0, 0.3) calc(var(--dv-fade-w) * 0.4),
			rgba(0, 0, 0, 0.64) calc(var(--dv-fade-w) * 0.62),
			rgba(0, 0, 0, 0.9) calc(var(--dv-fade-w) * 0.82),
			#000 var(--dv-fade-w)
		);
		mask-image: linear-gradient(
			90deg,
			transparent 0,
			rgba(0, 0, 0, 0.08) calc(var(--dv-fade-w) * 0.2),
			rgba(0, 0, 0, 0.3) calc(var(--dv-fade-w) * 0.4),
			rgba(0, 0, 0, 0.64) calc(var(--dv-fade-w) * 0.62),
			rgba(0, 0, 0, 0.9) calc(var(--dv-fade-w) * 0.82),
			#000 var(--dv-fade-w)
		);
	}

	.dv-hero__media {
		aspect-ratio: 1841 / 928;
		/* 64% at 1024px (as before, so the copy keeps its dark ground), growing
		   to the full 76% by ~1280px. */
		max-width: min(76%, calc(64% + (100vw - 1024px) * 0.6));
	}

	.dv-hero__media img {
		object-position: 100% 78%;
	}

	/* The ramp under the copy, shared by both heroes (Protection sets the same
	   ink on itself). Longer than before so it meets the wider photo fade. */
	.dv-hero::before,
	.dv-phero--low::before {
		background:
			linear-gradient(
				90deg,
				rgba(var(--dv-hero-ink), 0.92) 0%,
				rgba(var(--dv-hero-ink), 0.84) 28%,
				rgba(var(--dv-hero-ink), 0.55) 40%,
				rgba(var(--dv-hero-ink), 0.2) 52%,
				rgba(var(--dv-hero-ink), 0) 64%
			),
			linear-gradient(180deg, rgba(var(--dv-hero-ink), 0.55) 0%, rgba(var(--dv-hero-ink), 0) 26%);
	}
}

/* --------------------------------------------------------------------------
   Large screens (>= 1920px): 2K / 4K monitors at 100% zoom

   The desktop scale above (root 75%) looks lost on a 2560 or 3840 wide
   screen, so from 1920px the whole UI is 1.5x the 1024-1919 desktop size.
   One variable drives it: --dv-scale. The root font size is 75% x scale, so
   every rem-sized thing (headings, paddings, gaps, hero band) follows, and
   every px value of the desktop scale (type floors, icons, discs, logo,
   tap targets) is written below as calc(<desktop px> * var(--dv-scale)).
   The content width grows too, but less than the type, so line length and the
   column layout stay as they are at 1440:
     1920 -> 1700px, 2560 -> 1900px, 3440 -> 2180px, 3840+ -> 2300px (cap).
   Page-specific px sizes are in the same tier at the end of dimvia-pages.css.
   1024-1919 and below are not touched by anything in this tier.
   -------------------------------------------------------------------------- */

@media (min-width: 1920px) {
	:root {
		--dv-scale: 1.5;
		--dv-content-max: clamp(1700px, calc(1700px + (100vw - 1920px) * 0.3125), 2300px);
		--wp--style--global--wide-size: var(--dv-content-max);
		--dv-gutter: calc(32px * var(--dv-scale));
	}

	html {
		font-size: calc(75% * var(--dv-scale));
	}

	body {
		font-size: calc(14px * var(--dv-scale));
	}

	/* ---- type floors ---------------------------------------------------- */
	.dv-eyebrow,
	.dv-sectsub,
	.dv-lb__foot,
	.dv-footer__legal p {
		font-size: calc(11px * var(--dv-scale));
	}

	.dv-btn,
	.dv-btn--ghost,
	.dv-nav__link,
	.dv-nav__sub a,
	.dv-lang__toggle,
	.dv-lang__menu a,
	.dv-crumbs {
		font-size: calc(12px * var(--dv-scale));
	}

	.dv-logo__tag {
		font-size: calc(9px * var(--dv-scale));
	}

	.dv-service__text,
	.dv-about__body p:not(.dv-eyebrow),
	.dv-cta__text,
	.dv-step__title {
		font-size: calc(14px * var(--dv-scale));
	}

	.dv-langpanel__btn,
	.dv-step__text,
	.dv-contact {
		font-size: calc(13px * var(--dv-scale));
	}

	.dv-sectsub {
		max-width: calc(640px * var(--dv-scale));
	}

	/* ---- header --------------------------------------------------------- */
	.dv-logo__mark {
		height: calc(38px * var(--dv-scale));
	}

	.dv-nav__link,
	.dv-nav__toggle {
		padding-block: calc(8.8px * var(--dv-scale));
	}

	.dv-nav__sub {
		min-width: calc(190px * var(--dv-scale));
	}

	.dv-lang__toggle {
		padding: calc(11.5px * var(--dv-scale)) calc(16px * var(--dv-scale));
	}

	.dv-lang__menu {
		min-width: calc(170px * var(--dv-scale));
	}

	.dv-lang__toggle .dv-flag {
		width: calc(15px * var(--dv-scale));
		height: calc(15px * var(--dv-scale));
	}

	.dv-btn .dv-icon,
	.dv-lang__toggle .dv-icon--globe {
		width: calc(14px * var(--dv-scale));
		height: calc(14px * var(--dv-scale));
	}

	.dv-nav__toggle .dv-icon,
	.dv-lang__toggle .dv-icon--chevron-down {
		width: calc(11px * var(--dv-scale));
		height: calc(11px * var(--dv-scale));
	}

	.dv-eyebrow--ruled::before {
		width: calc(36px * var(--dv-scale));
	}

	.dv-secthead::before,
	.dv-secthead::after {
		width: clamp(calc(36px * var(--dv-scale)), 6.75vw, calc(100px * var(--dv-scale)));
	}

	/* ---- hero ----------------------------------------------------------- */
	.dv-hero {
		min-height: min(max(36vw, calc(525px * var(--dv-scale))), 72svh);
	}

	.dv-hero__title {
		font-size: clamp(calc(34px * var(--dv-scale)), 4.65vw, calc(48px * var(--dv-scale)));
	}

	.dv-hero__lead {
		font-size: clamp(calc(14px * var(--dv-scale)), 1.65vw, calc(17px * var(--dv-scale)));
	}

	.dv-hero__note {
		font-size: clamp(calc(14px * var(--dv-scale)), 1.5vw, calc(16px * var(--dv-scale)));
	}

	/* ---- home sections -------------------------------------------------- */
	.dv-service__disc {
		width: calc(78px * var(--dv-scale));
		height: calc(78px * var(--dv-scale));
	}

	.dv-service__disc .dv-icon {
		width: calc(35px * var(--dv-scale));
		height: calc(35px * var(--dv-scale));
	}

	.dv-sig__rule {
		width: calc(100px * var(--dv-scale));
	}

	.dv-step__num {
		width: calc(34px * var(--dv-scale));
		height: calc(34px * var(--dv-scale));
	}

	.dv-langpanel__btn {
		flex-basis: calc(240px * var(--dv-scale));
	}

	.dv-langpanel__btn .dv-flag {
		width: calc(20px * var(--dv-scale));
		height: calc(20px * var(--dv-scale));
	}

	.dv-cta__motif {
		width: calc(255px * var(--dv-scale));
	}

	/* ---- footer --------------------------------------------------------- */
	.dv-contact .dv-icon {
		width: calc(16px * var(--dv-scale));
		height: calc(16px * var(--dv-scale));
	}

	.dv-footer__social .dv-icon {
		width: calc(22px * var(--dv-scale));
		height: calc(22px * var(--dv-scale));
	}

	.dv-totop {
		width: calc(44px * var(--dv-scale));
		height: calc(44px * var(--dv-scale));
	}
}
