/* Delta Engineering Services — Blueprint Technical design system */

:root {
	--de-ink: #101a30;
	--de-ink-soft: #4c5670;
	--de-paper: #f5f4f0;
	--de-paper-raised: #ffffff;
	--de-line: #1f439322;
	--de-line-soft: #1f439314;
	--de-brand: #1f4393;
	--de-brand-dark: #0d1626;
	--de-accent: #c85a28;
}

.de-blueprint-bg {
	background-image:
		linear-gradient(var(--de-line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--de-line-soft) 1px, transparent 1px);
	background-size: 32px 32px;
}

.de-root {
	background: var(--de-paper);
	font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
	color: var(--de-ink);
}
.de-root a { text-decoration: none; }
.de-root h1, .de-root h2, .de-root h3 { font-family: "Archivo Expanded", sans-serif; font-weight: 800; }

/* ---------- nav ---------- */
.de-nav {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 40px;
	border-bottom: 1px solid var(--de-line);
	position: relative;
	flex-wrap: wrap;
	gap: 14px;
}
/* rem here is relative to the site's root font-size, set to 10px by lib.css
   (so 1rem = 10px) — 20rem = 200px, up from the old fixed 170px logo. */
.de-nav-logo img { width: 20rem; height: auto; display: block; }
.de-nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: none; border: 1px solid var(--de-line); border-radius: 3px;
	cursor: pointer; padding: 0;
}
.de-nav-toggle span { width: 18px; height: 2px; background: var(--de-ink); margin: 0 auto; display: block; }
.de-nav-links { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.de-nav-links > a {
	color: #2b364e; font-weight: 500; font-size: 14.5px;
	display: inline-flex; align-items: center; gap: 5px;
}
.de-nav-links > a:hover { color: var(--de-brand); }
.de-nav-dropdown { position: relative; }
.de-nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; color: #2b364e; font-weight: 500; font-size: 14.5px; }
.de-nav-dropdown-toggle svg { width: 9px; height: 9px; }
/* top:100% with no margin keeps the menu's own box flush against the
   toggle link, so the mouse never crosses a gap that belongs to neither
   element while moving from the link into the menu -- a margin-top gap
   there was previously closing the menu mid-hover, before a click could
   land on a submenu item. The old visual gap is recreated with padding-top
   instead, which is still inside the hoverable box. */
.de-nav-dropdown-menu {
	display: none; position: absolute; top: 100%; left: 0;
	background: #fff; border: 1px solid var(--de-line); border-radius: 4px;
	box-shadow: 0 12px 28px rgba(16, 26, 48, 0.12);
	min-width: 260px; padding: 20px 8px 8px; z-index: 200;
}
.de-nav-dropdown:hover .de-nav-dropdown-menu,
.de-nav-dropdown:focus-within .de-nav-dropdown-menu { display: block; }
.de-nav-dropdown-menu a {
	display: block; padding: 10px 14px; border-radius: 3px;
	font-size: 14px; color: #2b364e; font-weight: 500;
}
.de-nav-dropdown-menu a:hover { background: var(--de-line-soft); color: var(--de-brand); }
.de-nav-cta {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13.5px;
	background: var(--de-ink); color: #fff; padding: 11px 18px; border-radius: 3px;
	white-space: nowrap;
}
/* .de-nav-links > a has higher specificity than .de-nav-cta alone (the phone
   button lives inside .de-nav-links), so without this it silently wins and
   repaints the CTA text/icon back to dark navy on the CTA's own dark background. */
.de-nav-links > a.de-nav-cta,
.de-nav-links > a.de-nav-cta:hover { color: #fff; }
.de-nav-cta svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- hero ---------- */
.de-hero { padding: 64px 40px 0; }
.de-hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; max-width: 1240px; margin: 0 auto; padding-bottom: 56px; }
.de-eyebrow {
	font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--de-brand); font-weight: 600; margin-bottom: 16px;
	display: flex; align-items: center; gap: 10px;
}
.de-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--de-brand); display: inline-block; }
.de-hero h1 {
	font-size: 50px; line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 22px;
	text-wrap: balance; color: #0d1626; max-width: 620px;
}
.de-hero h1 em { font-style: normal; color: var(--de-brand); }
.de-hero-sub { font-size: 17px; line-height: 1.6; color: var(--de-ink-soft); max-width: 480px; margin: 0 0 30px; }
.de-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.de-btn-primary, .de-btn-outline {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px;
	border-radius: 3px; cursor: pointer;
}
.de-btn-primary { background: var(--de-accent); color: #fff; padding: 14px 24px; border: 1.5px solid var(--de-accent); }
.de-btn-primary:hover { background: #a94a1e; border-color: #a94a1e; }
.de-btn-outline { border: 1.5px solid var(--de-brand); color: var(--de-brand); padding: 12.5px 20px; transition: background 0.15s, color 0.15s; }
.de-btn-outline:hover { background: var(--de-brand); color: #fff; }
.de-stat-rail { border-left: 1.5px solid #1f439333; padding-left: 24px; display: flex; flex-direction: column; gap: 26px; padding-top: 4px; }
.de-stat .n { font-family: "IBM Plex Mono", monospace; font-size: 30px; font-weight: 600; color: var(--de-brand); font-variant-numeric: tabular-nums; }
/* Dimension-line tick under each stat, echoing a measurement annotation on a drawing */
.de-stat .n::after {
	content: ""; display: block; width: 30px; height: 6px; margin: 7px 0 1px; opacity: 0.55;
	background:
		linear-gradient(var(--de-brand), var(--de-brand)) left center/1.5px 6px no-repeat,
		linear-gradient(var(--de-brand), var(--de-brand)) right center/1.5px 6px no-repeat,
		linear-gradient(var(--de-brand), var(--de-brand)) center/100% 1.5px no-repeat;
}
.de-stat .l { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: #5a6478; margin-top: 3px; }

/* ---------- proof strip ---------- */
/* A continuous left-to-right marquee: two identical copies of the row sit
   side by side in a track twice the viewport's width; animating the track
   from translateX(-50%) to translateX(0) moves content rightward and loops
   seamlessly the instant the second copy lines up with the first. */
.de-proof-strip { background: var(--de-ink); color: #eef1f6; padding: 18px 0; overflow: hidden; }
.de-proof-track { display: flex; width: max-content; animation: de-proof-scroll 26s linear infinite; }
.de-proof-row {
	display: flex; align-items: center; flex-shrink: 0; white-space: nowrap;
	gap: 20px; padding: 0 20px;
	font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: #b9c2d6;
}
.de-proof-row b { color: #fff; font-weight: 600; }
.de-proof-sep { color: #4a5573; }
@keyframes de-proof-scroll {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.de-proof-track { animation: none; }
}

/* ---------- section shell ---------- */
.de-section { padding: 80px 40px; }
.de-section-head { max-width: 640px; margin: 0 auto 48px; }
.de-section-eyebrow {
	font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--de-brand); font-weight: 600; margin-bottom: 12px;
}
.de-section h2 { font-size: 32px; line-height: 1.14; margin: 0 0 12px; color: #0d1626; text-wrap: balance; }
.de-section-sub { font-size: 15.5px; line-height: 1.6; color: var(--de-ink-soft); max-width: 520px; }
.de-section-sub a { color: var(--de-brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- services ---------- */
.de-services-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.de-svc-card {
	background: var(--de-paper-raised); border: 1px solid #e4e1d7; border-radius: 4px; padding: 28px 26px;
	display: flex; flex-direction: column; gap: 15px;
}
.de-svc-icon { width: 44px; height: 44px; border-radius: 4px; background: var(--de-line-soft); display: flex; align-items: center; justify-content: center; }
.de-svc-icon svg { width: 22px; height: 22px; stroke: var(--de-brand); }
.de-svc-card h3 { font-size: 17px; margin: 0; color: #14203a; }
.de-svc-card p { font-size: 14px; line-height: 1.55; color: #57607a; margin: 0; flex-grow: 1; }
/* Spans the full grid row so a trailing CTA card never sits alone,
   stranded next to empty grid cells, when the card count doesn't divide
   evenly by the 3-column grid. */
.de-svc-card-cta {
	grid-column: 1 / -1;
	flex-direction: row; align-items: center; justify-content: space-between; gap: 24px;
}
@media (max-width: 767px) {
	.de-svc-card-cta { flex-direction: column; align-items: flex-start; }
}
.de-svc-link { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; font-weight: 600; color: var(--de-brand); display: inline-flex; align-items: center; gap: 6px; }
.de-svc-link svg { width: 12px; height: 12px; }

/* ---------- about ---------- */
.de-about { background: var(--de-ink); color: #eef1f6; }
.de-about-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.de-about .de-section-eyebrow { color: #7fa0d9; }
.de-about h2 { color: #fff; }
.de-about-copy { font-size: 15.5px; line-height: 1.7; color: #b9c2d6; margin: 0 0 26px; max-width: 480px; }
.de-about-copy b { color: #fff; }
.de-about-link { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13px; color: #c9dbff; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.de-about-link svg { width: 12px; height: 12px; flex-shrink: 0; }
.de-about-diagram {
	border: 1px solid #2c3a58; border-radius: 6px; padding: 30px;
	background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
	background-size: 24px 24px;
}
.de-diagram-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #2c3a58; gap: 12px; }
.de-diagram-row:last-child { border-bottom: none; }
.de-diagram-row .k { font-size: 13px; color: #8b96ac; }
.de-diagram-row .v { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: #fff; font-weight: 600; text-align: right; }

/* ---------- projects ---------- */
.de-proj-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px; }
.de-proj-card { position: relative; border-radius: 4px; overflow: hidden; background: var(--de-ink); }
.de-proj-card img { width: 100%; height: 380px; object-fit: cover; display: block; opacity: 0.92; }
/* Corner registration marks, like crop marks on a drawing sheet framing the photo */
.de-proj-card::after {
	content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: 0.75;
	background-image:
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
	background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
	background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
	background-repeat: no-repeat;
}
.de-proj-tag {
	position: absolute; top: 14px; left: 14px;
	font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
	background: var(--de-paper); color: var(--de-ink); padding: 5px 10px; border-radius: 2px;
}
.de-proj-cap {
	position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 16px 14px;
	background: linear-gradient(transparent, #0b1120e6 65%);
	color: #fff; font-weight: 600; font-size: 14.5px;
}
.de-proj-cap span { display: block; font-weight: 400; font-size: 12px; color: #b9c2d6; margin-top: 3px; font-family: "IBM Plex Mono", monospace; }

.de-notable-list { max-width: 1240px; margin: 40px auto 0; border-top: 1px solid #e4e1d7; padding-top: 28px; }
.de-notable-list h4 { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #5a6478; margin: 0 0 16px; }
.de-notable-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed #d8d4c6; font-size: 14px; flex-wrap: wrap; }
.de-notable-row:last-child { border-bottom: none; }
.de-notable-row .name { color: #2b364e; }
.de-notable-row .loc { font-family: "IBM Plex Mono", monospace; color: #7a8296; font-size: 12.5px; white-space: nowrap; }

/* ---------- cta band ---------- */
.de-cta-band { background: var(--de-accent); color: #fff; padding: 56px 40px; }
.de-cta-band-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.de-cta-band h2 { color: #fff; margin: 0 0 8px; font-size: 27px; }
.de-cta-band p { margin: 0; color: #ffe4d6; font-size: 15px; }
.de-cta-band .de-btn-primary { background: var(--de-ink); border-color: var(--de-ink); }
.de-cta-band .de-btn-primary:hover { background: #08101f; border-color: #08101f; }

/* ---------- footer ---------- */
.de-footer { background: var(--de-brand-dark); color: #b9c2d6; padding: 56px 40px 24px; }
.de-foot-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 38px; border-bottom: 1px solid #26314a; }
.de-foot-logo { width: 18rem; height: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.de-footer h5 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #6d7794; margin: 0 0 12px; }
.de-footer p { font-size: 13.5px; line-height: 1.65; margin: 0 0 6px; color: #b9c2d6; }
.de-footer a { color: #cfd7e8; }
.de-footer a:hover { color: #fff; }
.de-foot-bottom { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; padding-top: 22px; font-size: 12.5px; color: #6d7794; flex-wrap: wrap; gap: 10px; }
.de-foot-bottom a { color: #8b96ac; margin-left: 18px; }

/* ---------- page banner (service pages) ---------- */
.de-banner { padding: 44px 40px 50px; }
.de-banner-inner { max-width: 1240px; margin: 0 auto; }
.de-crumbs { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #6c7690; margin-bottom: 16px; }
.de-crumbs a { color: #6c7690; }
.de-crumbs a:hover { color: var(--de-brand); }
.de-crumbs .cur { color: var(--de-brand); }
.de-banner h1 { font-size: 38px; margin: 0 0 12px; color: #0d1626; text-wrap: balance; }
.de-banner p { font-size: 15.5px; line-height: 1.6; color: var(--de-ink-soft); max-width: 620px; margin: 0; }
.de-banner p a { color: var(--de-brand); text-decoration: underline; text-underline-offset: 2px; }

.de-intro { padding: 0 40px 80px; }
.de-intro-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.de-intro-grid img { width: 100%; border-radius: 4px; display: block; }
.de-intro-copy p { font-size: 15.5px; line-height: 1.75; color: #364059; margin: 0 0 18px; }
.de-intro-copy p a { color: var(--de-brand); text-decoration: underline; text-underline-offset: 2px; }
.de-intro-stats { display: flex; gap: 28px; margin-top: 24px; border-top: 1px solid var(--de-line); padding-top: 22px; flex-wrap: wrap; }
.de-intro-stats .n { font-family: "IBM Plex Mono", monospace; font-size: 22px; font-weight: 600; color: var(--de-brand); }
.de-intro-stats .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6478; margin-top: 2px; }

/* ---------- content block (alternating text/image) ---------- */
.de-block { padding: 64px 40px; }
.de-block-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.de-block-grid.de-reverse > :first-child { order: 2; }
.de-block-grid img { width: 100%; border-radius: 4px; display: block; }
.de-block h3 { font-family: "Archivo Expanded", sans-serif; font-weight: 700; font-size: 24px; margin: 0 0 14px; color: #0d1626; }
.de-block p { font-size: 15px; line-height: 1.75; color: #364059; margin: 0 0 14px; }
.de-block-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.de-block-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: #364059; }
.de-block-list li::before { content: ""; width: 6px; height: 6px; background: var(--de-brand); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.de-block-full { max-width: 800px; margin: 0 auto; }

/* ---------- gallery ---------- */
.de-gallery { padding: 0 40px 64px; }
.de-gallery-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.de-gallery-grid.de-gallery-2 { grid-template-columns: 1fr 1fr; }
.de-gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 4px; }
.de-gallery-cap { text-align: center; font-size: 13px; color: #57607a; margin-top: 10px; font-weight: 500; }

.de-spec { background: var(--de-ink); color: #eef1f6; padding: 76px 40px; }
.de-spec-inner { max-width: 1240px; margin: 0 auto; }
.de-spec h2 { color: #fff; max-width: 560px; }
.de-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.de-spec-grid.de-spec-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 767px) { .de-spec-grid.de-spec-grid-3 { grid-template-columns: 1fr; } }
.de-spec-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #26314a; }
.de-spec-tick { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #7fa0d9; padding-top: 2px; }
.de-spec-row p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #dbe1ee; }

/* ---------- location switch (header nav: ?loc=canada / ?loc=india, site-wide) ---------- */
.de-nav-loc-label { padding: 10px 14px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a92a6; }
.de-loc-switch { display: inline-flex; border: 1.5px solid var(--de-line); border-radius: 999px; padding: 3px; gap: 2px; margin: 8px 14px 6px; }
.de-loc-switch a { display: inline-flex; padding: 6px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #5a6478; text-decoration: none; transition: background 0.15s, color 0.15s; }
.de-loc-switch a:hover { background: none; color: var(--de-brand); }
.de-loc-switch a.active { background: var(--de-ink); color: #fff; }
.de-loc-switch a.active:hover { color: #fff; }
.de-nav-loc-sep { height: 1px; background: var(--de-line); margin: 4px 14px 8px; }

/* ---------- featured projects (location-scoped proof, per discipline) ---------- */
.de-proj-feat { padding: 72px 40px; }
.de-proj-feat-inner { max-width: 1240px; margin: 0 auto; }
.de-proj-feat h2 { font-size: 30px; line-height: 1.15; margin: 0 0 4px; color: #0d1626; }
.de-proj-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.de-proj-card { background: var(--de-paper-raised); border: 1px solid var(--de-line); border-radius: 6px; padding: 22px 24px; }
.de-proj-card .cat { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--de-brand); font-weight: 600; }
.de-proj-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #333c4d; }
.de-proj-feat-foot { margin-top: 30px; }
.de-proj-feat-foot .de-about-link { color: var(--de-brand); }

/* ---------- contact ---------- */
.de-contact-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.de-contact-info h3 { font-family: "Archivo Expanded", sans-serif; font-weight: 700; font-size: 20px; margin: 0 0 18px; color: #0d1626; }
.de-contact-info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--de-line); }
.de-contact-info-row:first-of-type { border-top: none; }
.de-contact-info-row .icon { width: 34px; height: 34px; border-radius: 4px; background: var(--de-line-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.de-contact-info-row .icon svg { width: 17px; height: 17px; stroke: var(--de-brand); }
.de-contact-info-row .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: #5a6478; margin-bottom: 3px; }
.de-contact-info-row .v { font-size: 14.5px; color: #2b364e; line-height: 1.5; }
.de-contact-info-row a.v { color: #2b364e; }
.de-contact-info-row a.v:hover { color: var(--de-brand); }
.de-form-card { background: var(--de-paper-raised); border: 1px solid #e4e1d7; border-radius: 6px; padding: 34px; }
.de-form-card h3 { font-family: "Archivo Expanded", sans-serif; font-weight: 700; font-size: 20px; margin: 0 0 8px; color: #0d1626; }
.de-form-card > p { font-size: 14.5px; color: var(--de-ink-soft); margin: 0 0 24px; line-height: 1.55; }
.de-form-field { margin-bottom: 18px; }
.de-form-field label { display: block; font-size: 12.5px; font-weight: 600; color: #2b364e; margin-bottom: 7px; }
.de-form-field input, .de-form-field textarea, .de-form-field select {
	width: 100%; border: 1.5px solid #d8d4c6; border-radius: 3px; padding: 12px 14px;
	font-family: "Public Sans", sans-serif; font-size: 14.5px; color: var(--de-ink);
	background: var(--de-paper); resize: vertical;
}
.de-form-field input:focus, .de-form-field textarea:focus, .de-form-field select:focus { outline: none; border-color: var(--de-brand); background: #fff; }
.de-form-submit {
	background: var(--de-accent); color: #fff; font-weight: 600; font-size: 14.5px;
	padding: 14px 28px; border-radius: 3px; border: none; cursor: pointer; font-family: "Public Sans", sans-serif;
}
.de-form-submit:hover { background: #a94a1e; }
.de-form-result { font-size: 15px; color: #2b364e; }
.de-form-result a { font-weight: 600; }

/* ---------- legal ---------- */
.de-legal { padding: 64px 40px 96px; }
.de-legal-inner { max-width: 800px; margin: 0 auto; }
.de-legal-inner h2 { font-family: "Archivo Expanded", sans-serif; font-weight: 700; font-size: 19px; margin: 36px 0 12px; color: #0d1626; }
.de-legal-inner h2:first-child { margin-top: 0; }
.de-legal-inner p { font-size: 15px; line-height: 1.75; color: #364059; margin: 0 0 16px; }
.de-legal-inner ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.de-legal-inner ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: #364059; }
.de-legal-inner ul li::before { content: ""; width: 6px; height: 6px; background: var(--de-brand); border-radius: 50%; margin-top: 8px; flex-shrink: 0; }

/* ---------- message state ---------- */
.de-message { padding: 96px 40px; text-align: center; }
.de-message-icon {
	width: 64px; height: 64px; border-radius: 50%; background: var(--de-line-soft);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.de-message-icon svg { width: 30px; height: 30px; stroke: var(--de-brand); }
.de-message h1 { font-family: "Archivo Expanded", sans-serif; font-weight: 800; font-size: 32px; margin: 0 0 12px; color: #0d1626; }
.de-message p { font-size: 16px; color: var(--de-ink-soft); margin: 0 0 28px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------- accordion ---------- */
.de-accordion { max-width: 900px; margin: 0 auto; }
/* .panel is added only so Bootstrap's collapse.js (hardcoded to `.panel > .in`) can
   find sibling panels to auto-close; neutralize its default card styling here. */
.de-accordion-item.panel {
	background: transparent; border: none; border-radius: 0; box-shadow: none; margin-bottom: 0;
	border-bottom: 1px solid var(--de-line);
}
.de-accordion-item.panel:first-child { border-top: 1px solid var(--de-line); }
.de-accordion-toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 4px; font-family: "Archivo Expanded", sans-serif; font-weight: 700;
	font-size: 17px; color: #0d1626; cursor: pointer;
}
.de-accordion-toggle:hover { color: var(--de-brand); }
.de-accordion-toggle .chev { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--de-brand); transition: transform 0.2s; transform: rotate(180deg); }
.de-accordion-toggle.collapsed .chev { transform: rotate(0deg); }
.de-accordion-body.collapse:not(.in) { display: none; }
.de-accordion-body-inner { padding: 0 4px 28px; }
.de-accordion-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.de-accordion-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: #364059; }
.de-accordion-list li::before { content: ""; width: 6px; height: 6px; background: var(--de-brand); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }

/* ---------- photo gallery ---------- */
/* .gallery-section is kept as a class hook so the existing hover-zoom
   overlay (elements.css, brand-blue already) keeps working unchanged. */
.de-photo-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; }
.de-photo-item .content-image-block { display: block; width: 100%; height: 280px; border-radius: 4px; }
.de-photo-item .content-image-block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.de-photo-item.de-photo-wide { grid-column: 1 / -1; }
.de-photo-item.de-photo-wide .content-image-block { height: 360px; }
.de-photo-cap { text-align: center; font-size: 14px; font-weight: 600; color: #2b364e; margin-top: 12px; line-height: 1.4; }
.de-photo-cap span { display: block; font-weight: 400; font-size: 12.5px; color: #7a8296; margin-top: 2px; font-family: "IBM Plex Mono", monospace; }

/* Replace the old theme's 3D rotateX flip + Font Awesome search glyph with a
   plain fade + subtle zoom, and a clean stroke-icon button matching the rest
   of the site's iconography. Same specificity as elements.css, loaded after
   it, so this wins without touching the shared content-image-block markup
   (still needed for the Magnific Popup lightbox hook). */
.gallery-section .content-image-block img { transition: transform 0.45s ease; }
.gallery-section .content-image-block:hover img { transform: scale(1.045); }
.gallery-section .content-image-block::before {
	background-color: rgba(16, 26, 48, 0.78);
	transform: none;
	transition: opacity 0.25s ease;
}
.gallery-section .content-image-block:hover::before {
	transform: none;
}
.gallery-section .content-block-hover {
	top: 0; height: 100%;
	display: flex; align-items: center; justify-content: center;
	transform: none;
}
.gallery-section .content-image-block:hover .content-block-hover {
	top: 0;
	transform: none;
}
.gallery-section .content-block-hover a {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
	transition: border-color 0.2s, background 0.2s;
}
.gallery-section .content-block-hover a:hover {
	border-color: #fff; background: rgba(255, 255, 255, 0.08);
}
.gallery-section .content-block-hover a i {
	display: none;
}
.gallery-section .content-block-hover a::before {
	content: "";
	width: 21px; height: 21px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	background-size: contain; background-repeat: no-repeat;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.de-hero-grid, .de-about-grid, .de-intro-grid { grid-template-columns: 1fr; }
	.de-stat-rail { flex-direction: row; border-left: none; border-top: 1.5px solid #1f439333; padding: 20px 0 0; gap: 32px; }
	.de-services-grid { grid-template-columns: repeat(2, 1fr); }
	.de-proj-grid { grid-template-columns: 1fr 1fr; }
	.de-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
	.de-contact-grid { grid-template-columns: 1fr; }
	.de-form-card { padding: 24px; }
	.de-block-grid { grid-template-columns: 1fr; }
	.de-block-grid.de-reverse > :first-child { order: 0; }
	.de-gallery-grid, .de-gallery-grid.de-gallery-2 { grid-template-columns: 1fr; }
	.de-photo-grid { grid-template-columns: 1fr; }
	.de-block, .de-gallery { padding-left: 20px; padding-right: 20px; }
	.de-nav { padding: 14px 16px; gap: 10px; }
	.de-nav-toggle { display: flex; }
	.de-nav-links {
		display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px;
		order: 3; padding-top: 14px; border-top: 1px solid var(--de-line); margin-top: 14px;
	}
	.de-nav-links.is-open { display: flex; }
	.de-nav-links > a, .de-nav-dropdown { width: 100%; }
	.de-nav-dropdown-menu { position: static; box-shadow: none; border: none; margin-top: 4px; padding-left: 12px; display: none; }
	.de-nav-dropdown.is-open .de-nav-dropdown-menu { display: block; }
	.de-nav-links .de-nav-cta { justify-content: center; margin-top: 10px; }

	.de-hero, .de-section, .de-about, .de-cta-band, .de-footer, .de-banner, .de-intro, .de-spec { padding-left: 20px; padding-right: 20px; }
	.de-hero h1 { font-size: 34px; }
	.de-hero-sub { font-size: 15.5px; }
	.de-section h2, .de-spec h2 { font-size: 25px; }
	.de-banner h1 { font-size: 28px; }
	.de-services-grid { grid-template-columns: 1fr; }
	.de-proj-grid { grid-template-columns: 1fr; }
	.de-proj-card img { height: 260px; }
	.de-foot-grid { grid-template-columns: 1fr; }
	.de-spec-grid { grid-template-columns: 1fr; }
	.de-cta-band-inner { flex-direction: column; align-items: flex-start; }
	.de-notable-row { flex-direction: column; gap: 3px; }
	.de-foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
	.de-foot-bottom span { display: flex; gap: 16px; }
	.de-foot-bottom a { margin-left: 0; }
}
