/* DNS Design Group — supplemental styles (beyond theme.json tokens). */

:root {
	/* Fonts in use. Defaults are the theme families; functions.php
	   (dns_font_role_css) overrides these with whatever the client picks in
	   Appearance → Editor → Styles → Typography (Headings / Text), so
	   heading-style text that isn't an <h*> tag follows that choice too.
	   Real headings get their font from Styles directly (no font-family here). */
	--dns-font-heading: var(--wp--preset--font-family--heading);
	--dns-font-body: var(--wp--preset--font-family--body);
	--dns-radius: 6px;
	--dns-radius-card: 10px;
	--dns-shadow: 0 18px 40px -24px rgba(33, 28, 23, 0.45);
	--dns-shadow-sm: 0 1px 2px rgba(33, 28, 23, 0.05);
	--dns-shadow-card: 0 6px 22px rgba(33, 28, 23, 0.07); /* canonical --shadow-card */
	--dns-shadow-lift: 0 16px 40px rgba(33, 28, 23, 0.12); /* canonical --shadow-lift (card hover) */
	--dns-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); /* canonical --ease-out */
	--dns-shadow-media: 0 24px 60px rgba(33, 28, 23, 0.16);
	--dns-radius-pill: 999px;
	/* canonical --border-hairline (warm tan) from DNS Home.dc.html */
	--dns-hairline: #E0D7C9;
	/* structural dividers (proof columns, credentials rule) — cool ink alpha */
	--dns-divider: rgba(33, 28, 23, 0.12);
	--dns-text-body: #3A332B;
	--dns-niebla-ink: #7C8E90; /* Variant-1 ghost shade: definition where pale Niebla would vanish */
	--dns-niebla-bg: rgba(182, 195, 196, 0.1);
	--dns-niebla-border: rgba(182, 195, 196, 0.35);
	--dns-sage-fill: #CBD3BC; /* canonical --sage-pale / --accent-soft-tint */
	--dns-on-dark: #F1EAE0; /* canonical --text-on-dark */
	--dns-on-dark-muted: #B9AE9F; /* canonical --text-muted-on-dark */
	--dns-on-dark-border: rgba(241, 234, 224, 0.16); /* canonical --border-on-dark */
}

/* No -webkit-font-smoothing override: the decoded design (DNS Home.dc.html)
   renders with the browser default, which is heavier/darker than `antialiased`.
   Matching it keeps the serif quotes as dark as the approved mockup. */
body {
	text-rendering: optimizeLegibility;
}

/* --- Section inner wrapper (canonical: max 1200 + gutter, content = 1104 @ wide) ---
   Sections are alignfull groups with their own L/R padding zeroed (so WP's
   root-padding-aware alignment doesn't double up); this wrapper supplies the
   single --gutter and centers content. */
.dns-container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Narrow section headers (eyebrow + heading), left-aligned within the gutter. */
.dns-section-head {
	max-width: 760px;
}

/* Tighter measure for page-header bands (canonical services band = 56ch), so
   the headline wraps to a compact left-aligned column instead of one wide line. */
.dns-section-head--narrow {
	max-width: 56ch;
}

/* Slightly tighter, more confident display headings */
h1, h2 {
	text-wrap: balance;
}

/* --- Site header --- */
.dns-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 246, 239, 0.86);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--dns-hairline);
}

/* logo + nav row: fixed 80px bar height */
.dns-header__inner {
	min-height: 80px;
	padding-inline: clamp(1.25rem, 4vw, 3rem); /* --gutter, matches .dns-container */
}

.dns-header .wp-block-site-logo img {
	height: 44px;
	width: auto;
}

.wp-block-template-part .wp-block-site-title a {
	text-decoration: none;
}

/* nav links + CTA sit in one row with a 34px rhythm */
.dns-nav {
	gap: 34px;
}

.dns-nav .wp-block-navigation-item__content {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--contrast);
	transition: color 160ms ease-out;
}

/* nav links fade ink -> niebla on hover */
.dns-nav .wp-block-navigation-item__content:hover,
.dns-nav .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--primary);
}

/* active nav item (current page) — niebla, slightly bolder */
.dns-nav .current-menu-item .wp-block-navigation-item__content,
.dns-nav .wp-block-navigation-item__content[aria-current] {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* --- Mobile header + hamburger overlay (core overlay kicks in < 600px) ---
   backdrop-filter on .dns-header makes it the containing block for core's
   position:fixed overlay, clipping the open menu to the 80px bar. Drop the
   blur on mobile (opaque cream instead) so the overlay covers the viewport. */
@media (max-width: 599px) {
	.dns-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--wp--preset--color--base);
	}

	.dns-header__inner {
		min-height: 68px;
		gap: 12px;
	}

	.dns-header .wp-block-site-logo img {
		height: 38px;
	}

	/* logo | CTA | hamburger — hamburger pinned to the far right */
	.dns-nav {
		gap: 14px;
	}

	.dns-nav > .wp-block-navigation {
		order: 2;
	}

	.dns-header .wp-block-button__link {
		padding: 9px 14px;
		font-size: 13px;
		white-space: nowrap;
	}

	.dns-header .wp-block-navigation__responsive-container-open svg {
		width: 28px;
		height: 28px;
	}

	/* open overlay: full-screen cream sheet, left-aligned stacked links */
	.dns-header .wp-block-navigation__responsive-container.is-menu-open {
		background-color: var(--wp--preset--color--base) !important;
		color: var(--wp--preset--color--contrast) !important;
		padding: 22px clamp(1.25rem, 4vw, 3rem) 40px;
		/* nav block is right-justified for desktop; left-align the stacked sheet */
		--navigation-layout-justification-setting: flex-start;
		--navigation-layout-justify: flex-start;
		text-align: left;
	}

	.dns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 56px;
		align-items: flex-start;
	}

	.dns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		--navigation-layout-justification-setting: flex-start; /* ul carries items-justified-right */
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.dns-header .is-menu-open .wp-block-navigation-item {
		width: 100%;
		border-bottom: 1px solid var(--dns-hairline);
	}

	.dns-header .is-menu-open .wp-block-navigation-item__content {
		display: block;
		padding: 16px 0;
		font-family: var(--dns-font-heading);
		font-size: 24px;
		font-weight: 500;
		color: var(--wp--preset--color--contrast);
	}

	.dns-header .is-menu-open .wp-block-navigation-item__content[aria-current] {
		color: var(--dns-niebla-ink);
	}

	.dns-header .is-menu-open .wp-block-navigation__responsive-container-close svg {
		width: 28px;
		height: 28px;
	}
}

/* The header CTA is the small size (11px 22px / 14px), distinct from the
   larger hero buttons (16px 32px / 16px) defined via theme.json. */
.dns-header .wp-block-button__link {
	padding: 11px 22px;
	font-size: 14px;
	transition: background-color 160ms ease-out;
}

/* CTA deepens niebla -> niebla-hover (#A6B5B7 = primary-dark) */
.dns-header .wp-block-button__link:hover,
.dns-header .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--primary-dark);
}

/* Keep filled + outline buttons the exact same height (equal borders),
   and give the outline a clean ink border. */
.wp-block-button .wp-block-button__link {
	border: 1px solid transparent;
}
/* Match core's own selector so this wins on source order, and force the
   same padding as the filled button (core outline injects 0.667em/1.333em,
   which otherwise makes the outline button shorter). */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
	padding: 16px 32px;
}

/* --- Eyebrow label --- */
.dns-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

/* Section eyebrows carry a small 9px sage square before the text. */
.dns-eyebrow--bullet::before {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	background: var(--wp--preset--color--primary); /* Niebla Azul — matches the logo's blue-grey square */
}

.dns-eyebrow--muted {
	color: var(--wp--preset--color--muted);
}

/* A quiet, sentence-case helper note (e.g. "Drag to reveal…") */
.dns-note {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* Medium CTA (15px 30px / 15px) — between the large hero button and the
   small header button. Used for the before/after "Browse the portfolio". */
.wp-block-button.dns-cta-sm > .wp-block-button__link {
	padding: 15px 30px;
	font-size: 15px;
	box-shadow: var(--dns-shadow-sm);
}

/* --- Reusable section type scale (canonical tokens from DNS Home.dc.html) --- */
.dns-h1 {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--page-heading); /* --fs-h1 */
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--contrast);
	text-wrap: balance;
}

.dns-h2 {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--section-heading); /* --fs-h2 */
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--contrast);
	text-wrap: balance;
}

.dns-h3 {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--sub-heading); /* --fs-h3 */
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

.dns-lead {
	font-size: var(--wp--preset--font-size--lead); /* --fs-lead */
	line-height: 1.6;
	color: var(--dns-text-body);
}

.dns-prose {
	font-size: var(--wp--preset--font-size--body); /* --fs-body */
	line-height: 1.65;
	color: var(--dns-text-body);
}

/* --- Hero --- */
/* Display headline: --fs-display, balanced lines (no width cap — balance does the wrapping). */
.dns-hero__headline {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--display); /* --fs-display */
	line-height: 1.04; /* --lh-tight */
	letter-spacing: -0.02em; /* --tracking-display */
	text-wrap: balance;
}

/* Hero lead: readable measure capped at 40ch (only the lead is capped). */
.dns-hero__lead {
	font-size: var(--wp--preset--font-size--lead); /* --fs-lead */
	line-height: 1.55;
	color: var(--dns-text-body);
	max-width: 40ch;
}

.dns-hero__media {
	position: relative;
	aspect-ratio: 5 / 6;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--dns-radius-card);
	box-shadow: var(--dns-shadow);
	background: linear-gradient(150deg, var(--wp--preset--color--surface-deep), var(--wp--preset--color--surface));
	overflow: hidden;
}

.dns-hero__media-note {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* Hero photo fills the framed media box (cropped to its portrait shape).
   The photo is a core/image block (client-swappable via Replace): the
   <figure> carries .dns-hero__img and is pinned to the frame; the <img>
   inside fills it. Doubled class beats core's `.wp-block-image img
   { height:auto }` and constrained-layout max-width/margins. */
.wp-block-image.dns-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0 !important;
}

.wp-block-image.dns-hero__img img {
	width: 100%;
	/* !important: the block editor forces img height with !important; without
	   this the photo stops short of its frame in wp-admin (front end unaffected). */
	height: 100% !important;
	object-fit: cover;
	display: block;
}

/* The wrapper is the positioning context; the image clips inside .dns-hero__media,
   while the stat card can overhang the wrapper's edge. */
.dns-hero__media-wrap {
	position: relative;
}

/* Floating credibility card — overhangs the image's bottom-left corner */
.dns-hero__stat {
	position: absolute;
	left: -1.5rem;
	bottom: 2rem;
	max-width: 15rem;
	padding: 1.1rem 1.4rem;
	background: var(--wp--preset--color--white);
	border-radius: var(--dns-radius);
	box-shadow: 0 18px 38px -18px rgba(33, 28, 23, 0.55);
}

.dns-hero__stat-num {
	margin: 0;
	font-family: var(--dns-font-heading);
	font-size: 1.9rem;
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

.dns-hero__stat-label {
	margin: 0.35rem 0 0;
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast);
}

/* On stacked mobile the stat has no neighboring column to overhang into, so its
   desktop -1.5rem overhang clips ~4px past the left gutter — pull it flush. */
@media (max-width: 781px) {
	.dns-hero__stat {
		left: 0;
	}
}

/* --- Hero media: placeholder-first "locked frame" (Holiday Lighting) --- */
/* An intentional stand-in (no real dusk photography yet): reads as a labeled
   placeholder — diagonal hatch + a monospace caption pinned bottom-left — not a
   broken image or a repurposed interior photo. Reconciled 1:1 from the approved
   DNS Holiday Lighting.dc.html hero; export tokens mapped to the theme's own
   (--sand → surface-deep, --border-hairline → --dns-hairline, --shadow-media →
   --dns-shadow-media, --radius-lg → --dns-radius-card). Modifier only — layers
   over shared .dns-hero__media so the Home hero (real image) is untouched. Swap
   the whole media group for an image block at content stage. */
.dns-hero__media--frame {
	aspect-ratio: 4 / 5; /* portrait, matches the mock (shared media is 5/6) */
	align-items: flex-end;
	justify-content: flex-start;
	border: 1px solid var(--dns-hairline);
	box-shadow: var(--dns-shadow-media);
	background: var(--wp--preset--color--surface-deep)
		repeating-linear-gradient(135deg, rgba(33, 28, 23, 0.05) 0, rgba(33, 28, 23, 0.05) 1px, transparent 1px, transparent 11px);
}

.dns-hero__frame-note {
	margin: 22px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted); /* taupe */
	background: var(--wp--preset--color--base); /* cream chip */
	border: 1px solid var(--dns-hairline);
	border-radius: 4px; /* --radius-sm */
	padding: 8px 12px;
	max-width: 30ch;
}

/* Media leads on mobile (mock: .hero__media { order: -1 }). Applied at WP's own
   column-stacking breakpoint so it only reorders once the columns are stacked. */
@media (max-width: 781px) {
	.dns-hero__cols > .wp-block-column:last-child {
		order: -1;
	}
}

/* --- Cards / project grid (canonical: DNS Portfolio.dc.html .dns-card) --- */
.dns-card {
	position: relative; /* anchor for the stretched title link */
	background: var(--wp--preset--color--white);
	border-radius: var(--dns-radius); /* 6px = --radius-md */
	overflow: hidden;
	box-shadow: var(--dns-shadow-card);
	transition: transform 280ms var(--dns-ease-out, ease), box-shadow 280ms var(--dns-ease-out, ease);
	height: 100%;
}

.dns-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--dns-shadow-lift);
}

/* --- Home services: 2×2 grid of numbered cards --- */
.dns-services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
	margin-top: 46px;
}

/* grid items: kill WP flow-layout's injected margin-block-start on 2nd+ cards */
.dns-services-grid > * {
	margin: 0;
}

@media (max-width: 640px) {
	.dns-services-grid {
		grid-template-columns: 1fr;
	}
}

.dns-service-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--dns-radius); /* 6px = --radius-md */
	box-shadow: var(--dns-shadow-card);
	padding: 2rem; /* --space-6 */
	transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

/* design-system Card lift */
.dns-service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(33, 28, 23, 0.1);
}

.dns-service-card .dns-h3 {
	margin: 10px 0 8px;
}

.dns-service-card__body {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.62;
	color: var(--dns-text-body);
	margin: 0;
}

/* Numbered service card */
.dns-service-num {
	margin: 0;
	font-family: var(--dns-font-heading);
	font-size: 17px;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	line-height: 1;
}

/* ============================================================
   Services page — alternating image + copy rows
   (canonical: DNS Services (standalone-src).dc.html .svc-row)
   ============================================================ */

/* Vertical rhythm between the four service rows (grid just spaces them). */
.dns-srows {
	display: grid;
	gap: clamp(4rem, 9vw, 8rem);
}

/* Each row is a 2-col WP columns flex. DOM order encodes the visual order, so
   no CSS reversing is needed on desktop: plain .dns-srow = copy then photo
   (copy left / photo right); .dns-srow--flip = photo then copy. Kill the
   block-gap margin WP injects on 2nd+ rows inside the grid. */
.dns-srow.wp-block-columns {
	gap: clamp(2.5rem, 6vw, 6rem);
	margin: 0;
}

/* Framed photo: locked 4:3 so client self-edits can't drift the layout; the
   image eases in slightly on hover (canonical .svc-media / .svc-img). */
.dns-srow__media {
	border-radius: var(--dns-radius-card); /* --radius-lg 10px */
	overflow: hidden;
	box-shadow: var(--dns-shadow-media);
	aspect-ratio: 4 / 3;
}

/* The frame is the core/image <figure> (client-swappable via Replace). */
.wp-block-image.dns-srow__media {
	margin: 0;
}

/* Row 03 (Holiday) carries a portrait photo; give just that row a 3:4 frame so
   the full vertical scene shows instead of being center-cropped to landscape. */
.dns-srow--portrait .dns-srow__media {
	aspect-ratio: 3 / 4;
}

.wp-block-image.dns-srow__media img {
	width: 100%;
	/* !important: the block editor forces img height with !important; without
	   this the photo stops short of its frame in wp-admin (front end unaffected). */
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 520ms var(--dns-ease-out);
}

.wp-block-image.dns-srow__media:hover img {
	transform: scale(1.04);
}

/* Oversized serif index number, niebla. */
.dns-srow__num {
	margin: 0;
	font-family: var(--dns-font-heading);
	font-weight: 500;
	font-size: clamp(56px, 7vw, 84px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--primary);
}

.dns-srow__body {
	font-size: var(--wp--preset--font-size--lead); /* --fs-lead */
	line-height: 1.62;
	color: var(--dns-text-body);
	max-width: 44ch;
	margin: 20px 0 0;
}

/* Stacked (WP columns collapse at 781px): photo always rides on top of its
   copy, whichever side it sits on at desktop. */
@media (max-width: 781px) {
	.dns-srow__col-media {
		order: -1;
	}
}

/* --- About: intro band ("Who We Are") --- */
/* Lead capped at 52ch (canonical .intro-lead) — the reused .dns-lead is
   uncapped, so scope the measure to the intro copy column only. */
.dns-about-intro__copy .dns-lead {
	max-width: 52ch;
}

/* --- About: founder blocks (canonical: DNS About.dc.html .founder-row) --- */
/* Same alternating logic as .dns-srow (DOM order = visual order, no CSS
   reversing), but with portrait frames and a name/role/bio instead of a number.
   The intro photo reuses the same .dns-founder__media frame, per the export. */
.dns-founders {
	display: grid;
	gap: clamp(4rem, 9vw, 8rem);
}

.dns-founder.wp-block-columns {
	gap: clamp(2.5rem, 6vw, 6rem);
	margin: 0;
}

/* Portrait frame, locked 4:5 so client self-edits can't drift the layout. */
.dns-founder__media {
	border-radius: var(--dns-radius-card);
	overflow: hidden;
	box-shadow: var(--dns-shadow-media);
	aspect-ratio: 4 / 5;
}

/* The frame is the core/image <figure> (client-swappable via Replace). */
.wp-block-image.dns-founder__media {
	margin: 0;
}

.wp-block-image.dns-founder__media img {
	width: 100%;
	/* !important: the block editor forces img height with !important; without
	   this the photo stops short of its frame in wp-admin (front end unaffected). */
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 520ms var(--dns-ease-out);
}

/* Photo eases in slightly on hover (canonical .founder-media:hover .founder-img
   in DNS About.dc.html) — intro + Debbie; Joe's placeholder has no photo. */
.wp-block-image.dns-founder__media:hover img {
	transform: scale(1.03);
}

/* Keep faces in frame on portrait headshots (Debbie's). Survives a Replace. */
.wp-block-image.dns-founder__media--focus-top img {
	object-position: 50% 30%;
}

/* Joe's placeholder: an intentional locked frame, not a broken image — warm
   sand with a faint diagonal hatch, hairline border, and a label chip pinned
   bottom-left. Swapped for a real banner-free headshot at content stage. */
.dns-founder__media--placeholder {
	box-shadow: none;
	background-color: var(--wp--preset--color--surface-deep);
	background-image: repeating-linear-gradient(135deg, rgba(33, 28, 23, 0.05) 0, rgba(33, 28, 23, 0.05) 1px, transparent 1px, transparent 11px);
	border: 1px solid var(--dns-hairline);
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}

.dns-founder__chip {
	margin: 22px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--dns-hairline);
	border-radius: 4px; /* --radius-sm */
	padding: 6px 11px;
}

/* One-line role label: uppercase, tracked, niebla, under the serif name. */
.dns-founder__role {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.dns-founder__bio {
	font-size: var(--wp--preset--font-size--lead); /* --fs-lead */
	line-height: 1.62;
	color: var(--dns-text-body);
	max-width: 50ch;
	margin: 22px 0 0;
}

/* Stacked (WP columns collapse at 781px): portrait always rides on top of its
   copy, whichever side it sits on at desktop. */
@media (max-width: 781px) {
	.dns-founder__col-media {
		order: -1;
	}
}

/* --- About: "how we work" reassurance band --- */
/* Three quiet points, each on a 2px sage top-rule — calm and confident, not a
   feature list. */
.dns-how__point {
	padding-top: 24px;
	border-top: 2px solid var(--wp--preset--color--secondary);
}

.dns-how__title {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--card-title); /* --fs-h4 */
	letter-spacing: normal; /* no tracking on the small point titles (overrides the theme.json global heading -0.01em) */
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

.dns-how__body {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.62;
	color: var(--dns-text-body);
	margin: 10px 0 0;
}

/* --- Trust row --- */
.dns-trust__label {
	font-family: var(--dns-font-heading);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--card-title);
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

.dns-trust__body {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	color: var(--dns-text-body);
	margin: 8px 0 0;
}

/* Vertical dividers between the three proof columns */
.dns-trust .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--dns-divider);
	padding-left: clamp(1.5rem, 4vw, 3.5rem);
}

/* Stacked (≤781px, WP column collapse): those vertical dividers would become
   orphaned left rules with a dangling ~24px indent on the 2nd/3rd items — drop
   them; the column block-gap supplies the vertical rhythm instead. */
@media (max-width: 781px) {
	.dns-trust .wp-block-column + .wp-block-column {
		border-left: 0;
		padding-left: 0;
	}
}

.dns-credentials {
	gap: 14px 26px;
	border-top: 1px solid var(--dns-divider);
	padding-top: 28px;
}

.dns-credentials p {
	margin: 0;
}

.dns-credentials__text {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.dns-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--dns-hairline);
	border-radius: 4px;
	background: var(--wp--preset--color--base);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

/* --- Design + Build contrast cards --- */
/* Right column stacks the two cards with an 18px gap. */
.dns-contrast-stack {
	display: grid;
	gap: 18px;
}

.dns-contrast {
	border-radius: var(--dns-radius); /* 6px = --radius-md */
	padding: 24px 26px;
}

/* "usual way": dashed + muted, to feel fragmented */
.dns-contrast--usual {
	background: var(--wp--preset--color--base);
	border: 1px dashed rgba(33, 28, 23, 0.22);
}

/* "DNS way": solid white, elevated */
.dns-contrast--dns {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--dns-hairline);
	box-shadow: var(--dns-shadow-card);
}

/* Card micro-labels (12px uppercase), distinct from section eyebrows */
.dns-contrast__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin: 0 0 16px;
}

.dns-contrast--usual .dns-contrast__label {
	color: var(--wp--preset--color--muted);
}

.dns-contrast__label--dns {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--wp--preset--color--primary);
}

.dns-contrast__label--dns::before {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--secondary); /* sage */
}

.dns-flow {
	align-items: center;
	gap: 12px;
	color: var(--wp--preset--color--muted);
	font-size: 14.5px;
	font-weight: 500;
}

.dns-flow p {
	margin: 0;
}

.dns-flow__arrow {
	color: var(--wp--preset--color--muted);
	font-size: 1.05rem;
}

/* neutral pills (Designer, Contractor) */
.dns-chip {
	display: inline-block;
	padding: 9px 15px;
	border-radius: 4px;
	font-size: 14.5px;
	font-weight: 500;
	background: rgba(33, 28, 23, 0.05);
	color: var(--wp--preset--color--muted);
}

/* "You, in the middle" — niebla tint */
.dns-chip--you {
	background: var(--dns-niebla-bg);
	color: var(--dns-niebla-ink);
}

/* the single confident sage pill in the DNS card */
.dns-chip--team {
	padding: 11px 20px;
	background: var(--dns-sage-fill); /* #CBD3BC = --sage-pale */
	color: var(--wp--preset--color--contrast);
	font-size: 15px;
	font-weight: 600;
}

.dns-contrast__caption {
	font-size: 13.5px;
	line-height: 1.55;
	margin: 16px 0 0;
	color: var(--wp--preset--color--muted);
}

.dns-contrast__caption--dns {
	color: var(--dns-text-body);
}

/* --- Numbered process steps (canonical: DNS Home.dc.html .step) --- */
.dns-step {
	border-top: 2px solid var(--wp--preset--color--secondary); /* sage #8E9C84 — column top-rule */
	padding-top: 24px;
}

.dns-step__num {
	font-family: var(--dns-font-heading); /* Fraunces */
	font-weight: 500;
	font-size: 38px;
	color: var(--wp--preset--color--primary); /* niebla */
	letter-spacing: -0.02em;
	line-height: 1;
}

.dns-step__title {
	font-weight: 500;
	font-size: 19px;
	color: var(--wp--preset--color--contrast); /* ink #211C17 */
	margin: 14px 0 7px;
}

.dns-step__body {
	font-size: 14px;
	line-height: 1.55;
	color: var(--dns-text-body);
	margin: 0;
}

/* Holiday Lighting steps grid: real 4 → 2×2 → 1 grid (the shared .dns-step is
   used via wp:columns elsewhere, which only does 4 → 1; this honors the mock's
   2×2 tablet stage). Reuses the .dns-step* item styling above. The margin reset
   neutralizes the WP flow-layout block-gap so only the grid gap spaces the rows. */
.dns-hl-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 48px;
}
.dns-hl-steps > .dns-step {
	margin-block-start: 0;
}
@media (max-width: 900px) {
	.dns-hl-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.dns-hl-steps { grid-template-columns: 1fr; }
}

/* Holiday creds line: same sage-dot device as .dns-contact-cred, but the mock
   sets it in normal body weight with no tracking (Contact's is 600 / 0.04em). */
.dns-contact-cred.dns-hl-cred {
	font-weight: 400;
	letter-spacing: normal;
}

/* --- Process page: five EXPANDED steps (canonical: DNS Process.dc.html .pr-steps) ---
   Sibling of .dns-hl-steps (4-col), but 5 → 3 → 2 → 1 to match the mock's stages.
   Reuses the shared .dns-step* item styling; the margin reset neutralizes the WP
   flow-layout block-gap so only the grid gap spaces items. */
.dns-process-steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 22px;
	margin-top: 52px;
	align-items: start;
}
.dns-process-steps > .dns-step {
	margin-block-start: 0;
}
@media (max-width: 1100px) {
	.dns-process-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.dns-process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.dns-process-steps { grid-template-columns: 1fr; }
}

/* The expanded step's "What we do" / "What you do" pair: a quiet taupe
   micro-eyebrow, smaller and softer than the niebla .dns-eyebrow. */
.dns-process-step__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--muted); /* taupe */
	margin: 0;
}

/* --- Process page: "who this is for" FILTER band (canonical: .pr-fit) ---
   Two white cards side by side, stacking on mobile. Cards reuse .dns-contact-card. */
.dns-process-fit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 46px;
	align-items: start;
}
@media (max-width: 900px) {
	.dns-process-fit { grid-template-columns: 1fr; }
}

/* Hairline-separated qualifier rows inside each card. */
.dns-process-fit__list {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}
.dns-process-fit__list li {
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--dns-text-body);
	padding: 14px 0;
	border-top: 1px solid var(--dns-hairline);
}

/* Warm closing line under the "not your team" list. */
.dns-process-fit__note {
	margin: 22px 0 0;
	font-size: 14.5px;
	line-height: 1.6;
	font-style: italic;
	color: var(--wp--preset--color--muted);
}

/* The "not your team" column reads quieter: its eyebrow dot is taupe, not sage. */
.dns-process-fit__col--pass .dns-eyebrow--bullet::before {
	background: var(--wp--preset--color--muted);
}

/* --- Before / After feature: slider | copy, real grid (canonical 1.25fr/1fr) --- */
.dns-ba-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

/* grid items: kill WP flow-layout's injected margin-block-start on 2nd child */
.dns-ba-grid > * {
	margin: 0;
}

@media (max-width: 768px) {
	.dns-ba-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Before / After reveal slider --- */
.dns-ba {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--dns-radius-card); /* --radius-lg 10px */
	box-shadow: var(--dns-shadow-media);
	cursor: ew-resize;
	user-select: none;
	touch-action: none;
	background: var(--wp--preset--color--surface);
}

/* The Home feature shows a tall, portrait crop. */
.dns-ba--portrait .dns-ba {
	aspect-ratio: 3 / 4;
}

.dns-ba img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.dns-ba__after {
	clip-path: inset(0 0 0 var(--dns-ba-pos, 50%));
}

.dns-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--dns-ba-pos, 50%);
	width: 2px;
	background: var(--wp--preset--color--base); /* cream */
	transform: translateX(-1px);
	box-shadow: 0 0 0 1px rgba(33, 28, 23, 0.08);
	pointer-events: none;
}

.dns-ba__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background-color: var(--wp--preset--color--base); /* cream */
	box-shadow: var(--dns-shadow-card);
	/* Two outward-pointing chevrons, clearly separated (◄  ►) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16' fill='none' stroke='%237C8E90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 3 1 8 6 13'/%3E%3Cpolyline points='22 3 27 8 22 13'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
}

/* Labels: cream pills, top corners. Before = taupe, After = niebla. */
.dns-ba__label {
	position: absolute;
	top: 16px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--wp--preset--color--base); /* cream */
	border-radius: var(--dns-radius-pill, 999px);
	box-shadow: var(--dns-shadow-sm);
}

.dns-ba__label--before { left: 16px; color: var(--wp--preset--color--muted); }
.dns-ba__label--after { right: 16px; color: var(--wp--preset--color--primary); }

/* Placeholder panels (before real before/after photos arrive) */
.dns-ba__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}
.dns-ba__placeholder::before {
	content: "Photo coming soon";
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.dns-ba__placeholder--before { background: var(--wp--preset--color--surface-deep); }
.dns-ba__placeholder--after { background: var(--wp--preset--color--surface); }

/* --- Testimonial quote cards (canonical: DNS Home.dc.html figure.card) --- */
.dns-quote {
	height: 100%;
	background: var(--wp--preset--color--white);
	border-radius: 6px; /* --radius-md */
	box-shadow: var(--dns-shadow-card);
}

.dns-quote__text {
	font-family: var(--dns-font-heading); /* Fraunces */
	font-weight: 400;
	font-size: clamp(20px, 2.2vw, 25px);
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--contrast); /* ink */
	margin: 0;
}

.dns-quote__cite {
	margin-top: 24px;
	font-size: 14.5px;
	color: var(--wp--preset--color--muted); /* taupe */
}

.dns-quote__name {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.dns-project-story {
	font-size: var(--wp--preset--font-size--lead); /* --fs-lead */
	line-height: 1.62;
	color: var(--dns-text-body);
	margin-top: 1rem;
}

/* --- Closing CTA: dark band, inverted white button (canonical: DNS Home.dc.html #consult) --- */
/* Centered inner container (760px via the block's contentSize). text-align here
   centers the inline-flex eyebrow as well as the heading/lead/button. */
.dns-cta {
	text-align: center;
}

/* Eyebrow tints to pale sage on the dark band (square stays --secondary sage). */
.dns-cta .dns-eyebrow--on-dark {
	color: var(--dns-sage-fill); /* #CBD3BC --accent-soft-tint */
}

/* Heading + lead use the on-dark text tokens (warmer than plain cream). */
.dns-cta .dns-h1 {
	color: var(--dns-on-dark); /* #F1EAE0 */
}

.dns-cta__lead {
	font-size: var(--wp--preset--font-size--lead); /* --fs-lead */
	line-height: 1.55;
	color: var(--dns-on-dark-muted); /* #B9AE9F */
	max-width: 48ch; /* canonical --cta-lead measure */
	margin-inline: auto;
}

/* Inverted white button: ink text, 4px radius, 16/34 padding. */
.dns-cta .wp-block-button__link {
	padding: 16px 34px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px; /* --radius-sm */
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast); /* ink */
}
.dns-cta .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface);
}

/* --- Header / main flush --- */
/* The sticky header and the first content band meet flush — drop the root
   block-gap WP inserts between the header template-part and <main>. (Invisible
   on the cream home hero, but a visible cream strip above any colored first
   band like the Services greige header.) */
.wp-site-blocks > main {
	margin-block-start: 0;
}

/* --- Full-bleed section bands sit flush --- */
/* Post content is a constrained flow, so WP injects a block-gap margin between
   each sibling band. Full-bleed section bands carry their own vertical padding
   for rhythm and must butt flush against each other — otherwise the page
   background shows through as a strip wherever two adjacent bands differ in
   color (e.g. the About warm-sand "how we work" band meeting the dark CTA).
   Constrained children (stray paragraphs, cards) keep their normal spacing. */
.wp-block-post-content > .wp-block-group.alignfull {
	margin-block-start: 0;
}

/* --- Footer --- */
/* CTA band flows straight into the footer (no cream root-gap between them) */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Dark footer uses the dedicated reversed (white wordmark + blue-grey square) logo,
   NOT a CSS invert of the pale logo — inverting whitens the square and swallows
   the N. Stylesheet-relative URL resolves on any host. 2959×1485 → ~104px @ 52h. */
.dns-footer__logo {
	display: block;
	width: 104px;
	height: 52px;
	background-image: url(../brand/dns-logo-reversed.png);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
}

/* Brand-column tagline: muted on-dark, 30ch measure (canonical DNS Home.dc.html) */
.dns-footer__tagline {
	font-size: 14px;
	line-height: 1.6;
	color: var(--dns-on-dark-muted); /* #B9AE9F */
	margin: 20px 0 0;
	max-width: 30ch;
}

/* Link-column headers reuse the uppercase eyebrow treatment, pale-sage on dark */
.dns-footer__heading {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dns-sage-fill); /* #CBD3BC --accent-soft-tint */
	margin: 0 0 16px;
}

.dns-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dns-footer__links li {
	margin: 0 0 4px;
}

/* inline-block + vertical padding lifts each link to a ≥24px touch target
   (was ~17px); the reduced li margin keeps the column's overall rhythm. */
.dns-footer__links a {
	display: inline-block;
	padding-block: 5px;
	color: var(--dns-on-dark); /* #F1EAE0 */
	text-decoration: none;
	font-size: 14.5px;
}

.dns-footer__links a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Two-column footer (Services + Visit removed per client, 2026-10-21): brand
   left, Company links as a single right-aligned row so the band doesn't leave
   a wide empty gutter. Overrides core's flex-grow:1 on unsized columns. */
@media (min-width: 782px) {
	.dns-footer__cols {
		justify-content: space-between;
	}

	.dns-footer__cols > .wp-block-column.dns-footer__nav {
		flex: 0 1 auto;
		text-align: right;
	}

	.dns-footer__nav .dns-footer__links {
		justify-content: flex-end;
	}
}

.dns-footer__nav .dns-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
}

.dns-footer__nav .dns-footer__links li {
	margin: 0;
}

/* Tight legal band: on-dark hairline above, 22px rhythm, 13px muted text */
.dns-footer__bottom p {
	font-size: 13px;
	color: var(--dns-on-dark-muted); /* #B9AE9F */
	margin: 0;
}

/* ============================================================
   Portfolio archive (Our Work) + room-type filtered archives
   ============================================================ */

/* The greige hero band meets the sticky header flush — drop the default
   block-gap WP inserts between the header and <main> on these templates.
   Scoped by body class so the Home page keeps its existing top spacing. */
.post-type-archive-project main,
.tax-room_type main,
.single-project main {
	margin-block-start: 0;
}

/* Centered hero copy block (canonical --container-narrow). text-align centers
   the inline-flex eyebrow (which ignores its own text-align) as well as the
   heading, lead, and filter chips. The heading sits on one line at this width;
   the lead is capped to a readable measure so it wraps tighter. */
.dns-portfolio-head {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.dns-portfolio-head .dns-lead {
	max-width: 52ch;
	margin-inline: auto;
}

/* The archive query-title renders the room-type name on filtered views. */
.dns-portfolio-head .wp-block-query-title {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--page-heading);
	line-height: 1.12;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

/* Card media is the positioning context for the before/after badge, and
   clips the gentle zoom-on-hover. */
.dns-card__media {
	position: relative;
	line-height: 0;
	overflow: hidden;
}

.dns-card__media .wp-block-post-featured-image,
.dns-card__media img {
	margin: 0;
	display: block;
	width: 100%;
}

/* Finished photo eases in slightly as the whole card is hovered. */
.dns-card__media img {
	transition: transform 520ms var(--dns-ease-out);
}

.dns-card:hover .dns-card__media img {
	transform: scale(1.045);
}

/* "Before / After" badge — signals the reveal lives one click in, the
   differentiator DFW Improved and most comps don't show. */
.dns-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 6px 12px;
	background: rgba(250, 246, 239, 0.94); /* cream, slightly translucent */
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: var(--dns-radius-pill);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	box-shadow: var(--dns-shadow-sm);
}

.dns-card__badge::before {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--secondary); /* sage */
}

.dns-card__body {
	padding: 22px 24px 26px;
}

/* Room-type label above the title (core/post-terms — resolves per-post in the
   query loop). Sits above the stretched card link (z-index) so the room stays
   a working filter link while the rest of the card opens the project. */
.dns-card .wp-block-post-terms {
	position: relative;
	z-index: 2;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.dns-card .wp-block-post-terms a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.dns-card .wp-block-post-terms a:hover {
	text-decoration: underline;
}

.dns-card .wp-block-post-title {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--sub-heading); /* --fs-h3 */
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-top: 9px;
}

.dns-card .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: color 160ms var(--dns-ease-out);
}

.dns-card:hover .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
}

/* Stretch the title's link across the whole card so the entire card is one
   click target (matches the approved single-anchor card). The room label is
   plain text, so there's no nested-link conflict. */
.dns-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* --- Portfolio room filter chips (server-side, no JS) --- */
.dns-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 34px;
}

.dns-filter__chip {
	padding: 11px 22px;
	border-radius: var(--dns-radius-pill);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--dns-hairline);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: var(--dns-transition-hover, all 160ms ease);
}

.dns-filter__chip:hover {
	border-color: var(--dns-niebla-ink);
	color: var(--dns-niebla-ink);
}

.dns-filter__chip.is-active,
.dns-filter__chip.is-active:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
}

/* Responsive grid: 3-up → 2-up tablet → 1-up phone (canonical breakpoints).
   columnCount renders an inline grid-template-columns on .dns-portfolio-grid,
   so these overrides need !important. */
@media (max-width: 980px) {
	.dns-portfolio-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 620px) {
	.dns-portfolio-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ============================================================
   Single project
   ============================================================ */

.dns-back-link {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0;
}

.dns-back-link a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 160ms var(--dns-ease-out);
}

.dns-back-link a:hover {
	color: var(--wp--preset--color--primary);
}

/* Project title — display size (canonical: DNS Project.dc.html h1 --fs-display). */
.dns-project-title {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--display); /* --fs-display */
	line-height: 1.04; /* --lh-tight */
	letter-spacing: -0.02em; /* --tracking-display */
	text-wrap: balance;
	margin-top: 14px;
}

/* Room eyebrow above the title uses the shared .dns-eyebrow / --bullet. */

/* Two-column body: story/content left, sticky facts card right. */
.dns-project-body {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

.dns-project-body > * {
	margin: 0;
}

@media (max-width: 900px) {
	.dns-project-body {
		grid-template-columns: 1fr;
	}
	.dns-facts {
		position: static;
	}
}

/* Story headline (canonical: DNS Project.dc.html h2 --fs-h2). */
.dns-story__headline {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--section-heading); /* --fs-h2 */
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--contrast);
	text-wrap: balance;
	margin: 18px 0 0;
}

.dns-story .dns-project-story {
	margin-top: 22px;
}

/* "Project at a glance" facts card. */
.dns-facts {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--dns-hairline);
	border-radius: var(--dns-radius); /* 6px = --radius-md */
	box-shadow: var(--dns-shadow-card);
	padding: 2rem; /* --space-6 */
	position: sticky;
	top: 104px; /* clears the 80px sticky header + breathing room */
}

.dns-facts__title {
	font-family: var(--dns-font-heading);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--card-title); /* --fs-h4 */
	letter-spacing: -0.01em;
	margin: 0;
}

.dns-facts__list {
	margin: 22px 0 0;
}

.dns-facts__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--dns-hairline);
}

.dns-facts__row:last-child {
	border-bottom: 1px solid var(--dns-hairline);
}

.dns-facts__key {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.dns-facts__val {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-align: right;
	color: var(--wp--preset--color--contrast);
}

.dns-facts__val a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Full-width contextual CTA inside the facts card. */
.dns-facts__cta {
	margin-top: 24px;
}

.dns-facts__cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box; /* theme has no global reset — keep width incl. padding */
	padding: 15px 24px;
	border-radius: var(--dns-radius-sm, 4px);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	text-decoration: none;
	box-shadow: var(--dns-shadow-sm);
	transition: background-color 160ms var(--dns-ease-out);
}

.dns-facts__cta a:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* ============================================================
   Contact page — reassurance rail + form card
   (canonical: DNS Contact.dc.html)
   ============================================================ */

/* Intro band ("Start Your Project") text column — a narrow, left-aligned
   measure (canonical 54ch), tighter than the shared 760px .dns-section-head.
   The lead caps a hair narrower still (50ch) so it wraps under the heading. */
.dns-contact-intro {
	max-width: 54ch;
}

.dns-contact-intro .dns-lead {
	max-width: 50ch;
}

/* Two-column body: narrower reassurance rail (left) + wider form card (right),
   canonical 0.82fr / 1.18fr. Kill the block-gap WP injects between the two
   grid children (they're laid out by the grid, not flow). */
.dns-contact-grid {
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	gap: clamp(3rem, 7vw, 6.5rem);
	align-items: start;
}

.dns-contact-grid > * {
	margin: 0;
}

/* On mobile the FORM stacks above the rail — the form is the action (DOM order
   is rail-then-card, so pull the card first). The two-up field rows also
   collapse to one column at this breakpoint. */
@media (max-width: 900px) {
	.dns-contact-grid {
		grid-template-columns: 1fr;
		gap: clamp(2.5rem, 7vw, 4rem);
	}
	.dns-contact-grid .dns-contact-card {
		order: -1;
	}
	.dns-contact-row {
		grid-template-columns: 1fr;
	}
}

/* Rail: three points on sage top-rules (reuses .dns-how__point/__title/__body),
   stacked with a 26px rhythm. */
.dns-contact-points {
	display: grid;
	gap: clamp(1.75rem, 3vw, 2.5rem);
	margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

/* Contact rail points sit on a 22px sage top-rule (canonical) — a hair tighter
   than the shared About "how we work" band (.dns-how__point = 24px), so scope
   the override to the rail instead of touching the shared class. */
.dns-contact-points .dns-how__point {
	padding-top: 22px;
}

/* Quiet credentials line with a small round sage dot — present, not shouted. */
.dns-contact-cred {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: clamp(2rem, 4vw, 2.75rem) 0 0;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted); /* taupe = --text-muted on light */
}

.dns-contact-cred::before {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--secondary); /* sage */
}

/* Form card — white, soft shadow, hairline border, generous padding (canonical
   --radius-lg 10px). Distinct from .dns-card (6px + hover lift + overflow clip,
   which would crop the inputs' focus rings). */
.dns-contact-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--dns-hairline);
	border-radius: var(--dns-radius-card); /* 10px = --radius-lg */
	box-shadow: var(--dns-shadow-card);
	padding: clamp(1.75rem, 3.5vw, 3rem);
}

/* --- Fields --- */
/* Direct child only — the project-type field also wraps the chip <label>s, and
   we don't want the field-label treatment leaking onto the chips. */
.dns-contact-field > label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 8px;
}

/* "(optional)" tag — quieter than the label */
.dns-contact-field .opt {
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	text-transform: none;
	letter-spacing: 0;
}

/* Required asterisk — niebla ghost shade (stays readable at 1 glyph) */
.dns-contact-req {
	color: var(--dns-niebla-ink);
}

.dns-contact-field input,
.dns-contact-field textarea {
	width: 100%;
	box-sizing: border-box; /* theme has no global reset — keep width incl. padding */
	font-family: var(--dns-font-body);
	font-size: 15px;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base); /* cream */
	border: 1px solid var(--dns-hairline);
	border-radius: var(--dns-radius); /* 6px = --radius-md */
	padding: 13px 15px;
	transition: all 160ms var(--dns-ease-out); /* --transition-hover */
}

.dns-contact-field textarea {
	resize: vertical;
	min-height: 128px;
	line-height: 1.6;
}

.dns-contact-field input::placeholder,
.dns-contact-field textarea::placeholder {
	color: var(--wp--preset--color--muted);
}

.dns-contact-field input:focus,
.dns-contact-field textarea:focus {
	outline: none;
	border-color: var(--dns-niebla-ink);
	box-shadow: 0 0 0 3px rgba(182, 195, 196, 0.35);
}

/* Two-up rows (Name/Email, Phone/Timeline) — collapse to one column on mobile. */
/* Contact form slot: only ever visible in the block editor (on the front end
   dns_contact_form_slot() replaces it with the live form). Tells the client
   what the box is instead of showing an empty hole. */
.dns-contact-form-slot.wp-block-spacer {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	padding: 2rem;
	border: 1px dashed var(--dns-hairline);
	border-radius: var(--dns-radius-card);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	text-align: center;
}

.dns-contact-form-slot.wp-block-spacer::before {
	content: "The contact form appears here on the live site. It's managed automatically.";
}

.dns-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 22px;
}

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

/* --- Project-type qualifier chips --- */
/* Real radios, styled labels, so the self-selection filter degrades to a plain
   radio group with no JS (placeholder-first / the site stays gated until
   launch). Namespaced .dns-contact-chip — the site already has a .dns-chip
   (design+build neutral pills). */
.dns-contact-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dns-contact-chip {
	position: relative; /* containing block for the visually-hidden input overlay */
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 18px;
	border: 1px solid var(--dns-hairline);
	border-radius: var(--dns-radius-pill); /* 999px */
	background: var(--wp--preset--color--base); /* cream */
	font-size: 14.5px;
	font-weight: 500;
	color: var(--dns-text-body);
	cursor: pointer;
	transition: all 160ms var(--dns-ease-out);
}

/* Visually hide the real control, keep it in the a11y tree + focusable. It
   overlays its chip (inset:0) so it can't inherit the .dns-contact-field
   `width:100%` and balloon to viewport width — which pushed the whole contact
   page sideways on mobile (610px @ 390, 1305px @ 768). */
.dns-contact-chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.dns-contact-chip:hover {
	border-color: var(--wp--preset--color--secondary); /* sage */
}

.dns-contact-chip .chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--dns-sage-fill); /* #CBD3BC pale sage */
	transition: background-color 160ms var(--dns-ease-out);
}

/* Selected: 1.5px niebla-ghost border + a soft niebla outer glow + niebla-ghost
   dot, on white (canonical). */
.dns-contact-chip:has(input:checked) {
	border: 1.5px solid var(--dns-niebla-ink);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 3px rgba(182, 195, 196, 0.35);
}

.dns-contact-chip:has(input:checked) .chip-dot {
	background: var(--dns-niebla-ink);
}

.dns-contact-chip:has(input:focus-visible) {
	outline: 2px solid var(--dns-niebla-ink);
	outline-offset: 2px;
}

/* --- Submit --- */
.dns-contact-submit {
	width: 100%;
	box-sizing: border-box;
	margin-top: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
	border: none;
	border-radius: 4px; /* --radius-sm */
	font-family: var(--dns-font-body);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 160ms var(--dns-ease-out);
}

.dns-contact-submit span {
	font-size: 18px;
	line-height: 1;
}

.dns-contact-submit:hover,
.dns-contact-submit:focus {
	background: var(--wp--preset--color--primary-dark);
}

/* Muted no-obligation line, centered under the button. */
.dns-contact-note {
	font-size: 13px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	margin: 16px 0 0;
	text-align: center;
}

/* Honeypot — moved off-screen (NOT display:none, so bots that skip hidden
   fields still fill it), kept out of the a11y tree via aria-hidden in markup. */
.dns-contact-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Post-submit states (rendered inside the card) --- */
/* Thank-you replaces the form after a successful send. */
.dns-contact-success__title {
	margin-top: 14px;
}

.dns-contact-success__body {
	margin: 16px 0 0;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.65;
	color: var(--dns-text-body);
	max-width: 46ch;
}

/* Error notice sits above the (still-populated) form — niebla-tinted. */
.dns-contact-error {
	margin: 0 0 22px;
	padding: 13px 16px;
	border-radius: var(--dns-radius);
	background: var(--dns-niebla-bg);
	border: 1px solid var(--dns-niebla-border);
	color: var(--dns-niebla-ink);
	font-size: 14.5px;
	line-height: 1.5;
}
