/* DFS 2026 redesign, option 1 "Familiar, refreshed": inner pages (D1-C).
   Services, single service, Markets, Our Work, Brands, brand archives, About, Locations.
   Builds on dfs-tokens.css + dfs-base.css (.dfs-container, .dfs-section(--alt), .dfs-btn, .dfs-reveal,
   .dfs-page-hero, .dfs-textlink, .screen-reader-text, focus ring). Fonts and sizes come only from the tokens.
   Look: the live site's centred section headings and photo tiles, made lighter, squarer and calmer.
   Signature: the label plate. Every tile, block and panel has a 3px rule along the top of its text plate:
   blue at rest, orange on hover. Selected controls (market, filter, state) fill blue with an orange base rule. */

.dfs-pages {
  --dfs-p-line: var(--dfs-line);
  --dfs-p-tint: var(--dfs-surface);
  --dfs-p-muted: var(--dfs-ink-70);
  --dfs-p-rule: inset 0 3px 0 var(--dfs-blue);
  --dfs-p-rule-hot: inset 0 3px 0 var(--dfs-orange);
  --dfs-p-base-hot: inset 0 -3px 0 var(--dfs-orange);
  --dfs-p-gap: clamp(24px, 4vw, 56px);
  --dfs-p-accent: var(--dfs-font-accent, "Bruno Ace SC", sans-serif); /* small accents only (counts, labels) */
  --dfs-p-lift: 0 22px 36px -26px color-mix(in srgb, var(--dfs-navy) 55%, transparent);
  display: block;
}
.dfs-pages [hidden] { display: none !important; }

/* ---------- Type ---------- */
.dfs-pages h2.is-long { font-size: var(--dfs-fs-h3); }
.dfs-pages h3.is-long { font-size: var(--dfs-fs-h4); }
.dfs-prose { max-width: 70ch; line-height: 1.6; }
.dfs-prose > * { margin: 0; }
.dfs-prose > * + * { margin-top: 1em; }
.dfs-prose ul, .dfs-prose ol { padding-left: 1.25em; }
.dfs-prose li + li { margin-top: .35em; }
.dfs-prose li::marker { color: var(--dfs-orange); }
.dfs-prose h4, .dfs-prose h5, .dfs-prose h6 { font-family: var(--dfs-font-display); font-size: var(--dfs-fs-h6); color: var(--dfs-blue); }
.dfs-prose a { color: var(--dfs-blue); text-underline-offset: .2em; }
.dfs-prose--columns { max-width: none; columns: 2 34ch; column-gap: var(--dfs-p-gap); }
.dfs-prose--columns > * { break-inside: avoid; }
.dfs-pages .wp-video { width: 100% !important; }
.dfs-pages video, .dfs-pages iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--dfs-radius); background: var(--dfs-navy); }

/* Centred section intro, as on the live site: heading, short text, optional actions. */
.dfs-intro { max-width: 880px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.dfs-intro > :last-child { margin-bottom: 0; }
.dfs-intro h2 { margin: 0 0 .4em; }
.dfs-intro .dfs-prose { margin-inline: auto; }
.dfs-intro__lead { margin: 0; font-size: 1.15em; line-height: 1.5; color: var(--dfs-navy); }
.dfs-intro__lead .dfs-textlink { white-space: nowrap; }
.dfs-intro__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.dfs-intro--flush { margin-bottom: 0; }
.dfs-count { margin: 0; font-family: var(--dfs-p-accent); font-size: 14px; letter-spacing: .04em; color: var(--dfs-blue); }

/* ---------- Layout helpers ---------- */
.dfs-section--tight { padding-block: calc(var(--dfs-section-y) * .6); }
.dfs-btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.dfs-btnrow--links { gap: 12px 28px; } /* one button followed by text links */
.dfs-btnrow--center { justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Photo tiles (services) ---------- */
.dfs-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dfs-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dfs-tiles > li { display: flex; }
.dfs-tile {
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius);
  transition: transform var(--dfs-dur) var(--dfs-ease-out), box-shadow var(--dfs-dur) var(--dfs-ease-out);
}
.dfs-tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--dfs-p-tint); }
.dfs-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dfs-dur-slow) var(--dfs-ease-out); }
.dfs-tile__plate {
  flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px;
  box-shadow: var(--dfs-p-rule); transition: box-shadow var(--dfs-dur-fast) linear;
}
.dfs-pages .dfs-tile__title { margin: 0; font-family: var(--dfs-font-display); font-size: var(--dfs-fs-h5); line-height: 1.15; color: var(--dfs-blue); }
.dfs-tile__title a { color: inherit; text-decoration: none; }
.dfs-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole tile is the link */
.dfs-tile__title a:focus-visible { outline: none; }
.dfs-tile:focus-within { outline: 3px solid var(--dfs-orange); outline-offset: 3px; }
.dfs-tile__text { margin: 10px 0 0; line-height: 1.5; color: var(--dfs-p-muted); }
.dfs-tile__more {
  margin-top: auto; padding-top: 16px; color: var(--dfs-navy);
  text-decoration: underline 2px var(--dfs-orange); text-underline-offset: .4em;
}
.dfs-tile:hover, .dfs-tile:focus-within { transform: translateY(-4px); box-shadow: var(--dfs-p-lift); }
.dfs-tile:hover .dfs-tile__plate, .dfs-tile:focus-within .dfs-tile__plate { box-shadow: var(--dfs-p-rule-hot); }
.dfs-tile:hover .dfs-tile__media img { transform: scale(1.05); }

/* ---------- Single service ---------- */
.dfs-svc-intro { display: grid; gap: var(--dfs-p-gap); align-items: center; }
.dfs-svc-intro.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dfs-svc-intro__text h2 { margin-bottom: .5em; }
.dfs-svc-intro__media { margin: 0; }
.dfs-svc-intro__media .dfs-imgrow { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dfs-svc-intro__media--single img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--dfs-radius); }

/* Photo row from an ACF repeater (service photos, brand groups). */
.dfs-imgrow { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.dfs-imgrow__item { margin: 0; }
.dfs-imgrow__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--dfs-radius); background: var(--dfs-p-tint); }
.dfs-imgrow__item a { display: block; color: var(--dfs-blue); text-decoration: none; }
.dfs-imgrow__item span { display: block; margin-top: 8px; font-family: var(--dfs-font-display); font-size: 1.1em; line-height: 1.2; }
.dfs-imgrow__item a:hover span { color: var(--dfs-navy); text-decoration: underline 2px var(--dfs-orange); text-underline-offset: .3em; }
.dfs-imgrow__item a img { transition: transform var(--dfs-dur) var(--dfs-ease-out); }
.dfs-imgrow__item a:hover img { transform: translateY(-3px); }

/* Detail plates: the long service sections, open and side by side instead of stacked. */
.dfs-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dfs-facts > li { display: flex; }
.dfs-facts > li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd last plate takes the full row */
.dfs-fact { width: 100%; overflow: hidden; background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius); }
.dfs-fact__img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.dfs-fact__body { height: 100%; padding: clamp(24px, 3vw, 40px); box-shadow: var(--dfs-p-rule); }
.dfs-pages .dfs-fact__title { margin: 0 0 .6em; font-size: var(--dfs-fs-h4); line-height: 1.15; }
.dfs-pages .dfs-fact__title.is-long { font-size: var(--dfs-fs-h5); }
.dfs-media { max-width: 960px; margin: clamp(24px, 3vw, 40px) auto 0; }
.dfs-media:first-child { margin-top: 0; }

/* ---------- Information block: photo half + text plate half (markets, service bands, CTAs) ---------- */
.dfs-block {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius);
}
.dfs-block__media { position: relative; margin: 0; min-height: 340px; background: var(--dfs-p-tint); }
.dfs-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dfs-block__body { padding: clamp(28px, 4vw, 56px); box-shadow: var(--dfs-p-rule); }
.dfs-pages .dfs-block__title { margin: 0 0 .5em; font-size: var(--dfs-fs-h3); line-height: 1.1; }
.dfs-pages .dfs-block__title.is-long { font-size: var(--dfs-fs-h4); }
.dfs-block--flip .dfs-block__media { order: 2; }
.dfs-block--text { grid-template-columns: minmax(0, 1fr); text-align: center; }
.dfs-block--text .dfs-prose { margin-inline: auto; }
.dfs-block--text .dfs-btnrow { justify-content: center; }

/* ---------- Markets: market tiles are the tabs, the chosen market's block sits below ---------- */
.dfs-markets__tabs { list-style: none; margin: 0 0 clamp(20px, 2.5vw, 32px); padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dfs-markets__tabs li { display: flex; }
.dfs-markets__tab {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius);
  color: var(--dfs-navy); font-size: 1.05em; line-height: 1.2; text-decoration: none;
  transition: background-color var(--dfs-dur-fast) linear, border-color var(--dfs-dur-fast) linear, color var(--dfs-dur-fast) linear;
}
.dfs-markets__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dfs-p-tint); }
.dfs-markets__icon img { width: 28px; height: 28px; object-fit: contain; }
.dfs-markets__tab:hover { border-color: var(--dfs-blue); color: var(--dfs-blue); }
.dfs-markets__tab[aria-selected="true"] { background: var(--dfs-blue); border-color: var(--dfs-blue); color: var(--dfs-white); box-shadow: var(--dfs-p-base-hot); }
.dfs-markets__tab[aria-selected="true"] .dfs-markets__icon { background: var(--dfs-white); }
.dfs-markets__panels { position: relative; display: grid; gap: 24px; }
.dfs-markets.is-enhanced .dfs-markets__panel { animation: dfs-pages-in var(--dfs-dur) var(--dfs-ease-out) both; }
.dfs-markets__label { margin: 0 0 12px; font-family: var(--dfs-p-accent); font-size: 14px; letter-spacing: .04em; color: var(--dfs-blue); }
.dfs-markets__lead { margin: 0 0 1em; font-size: 1.1em; line-height: 1.5; color: var(--dfs-navy); max-width: 70ch; }
/* Outgoing panel / team card (set by dfs-pages.js) sits on top and fades while the new one comes in underneath. */
.dfs-pages .is-leaving { position: absolute; inset: 0 0 auto 0; z-index: 1; pointer-events: none; animation: dfs-pages-out var(--dfs-dur-fast) var(--dfs-ease-in-out) both; }
@keyframes dfs-pages-out { to { opacity: 0; } }
@keyframes dfs-pages-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Our Work strip (Markets page): photos with label plates, slow marquee. */
.dfs-work-teaser { overflow: hidden; }
.dfs-strip {
  --dfs-strip-gap: 16px;
  display: flex; gap: var(--dfs-strip-gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.dfs-strip__track { flex: none; display: flex; gap: var(--dfs-strip-gap); list-style: none; margin: 0; padding: 0; animation: dfs-pages-marquee 70s linear infinite; }
.dfs-strip:hover .dfs-strip__track, .dfs-strip:focus-within .dfs-strip__track { animation-play-state: paused; }
.dfs-strip__item { flex: none; width: clamp(240px, 24vw, 320px); }
.dfs-strip__item a { display: block; overflow: hidden; background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius); color: var(--dfs-blue); text-decoration: none; }
.dfs-strip__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dfs-dur-slow) var(--dfs-ease-out); }
.dfs-strip__item a:hover img, .dfs-strip__item a:focus-visible img { transform: scale(1.05); }
.dfs-strip__label { position: relative; display: block; padding: 12px 16px 14px; font-family: var(--dfs-font-display); font-size: 1.15em; line-height: 1.2; box-shadow: var(--dfs-p-rule); background: var(--dfs-white); transition: box-shadow var(--dfs-dur-fast) linear; }
.dfs-strip__item a:hover .dfs-strip__label, .dfs-strip__item a:focus-visible .dfs-strip__label { box-shadow: var(--dfs-p-rule-hot); }
@keyframes dfs-pages-marquee { to { transform: translateX(calc(-100% - var(--dfs-strip-gap))); } }

/* ---------- Our Work page ---------- */
.dfs-work__filter-label { margin: 0 0 12px; text-align: center; color: var(--dfs-p-muted); }
.dfs-chips { list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dfs-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius);
  color: var(--dfs-navy); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dfs-dur-fast) linear, border-color var(--dfs-dur-fast) linear, color var(--dfs-dur-fast) linear;
}
.dfs-chip:hover { border-color: var(--dfs-blue); color: var(--dfs-blue); }
.dfs-chip[aria-current="true"] { background: var(--dfs-blue); border-color: var(--dfs-blue); color: var(--dfs-white); box-shadow: var(--dfs-p-base-hot); }
.dfs-work__grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transition: opacity .3s var(--dfs-ease);
}
.dfs-work__grid[aria-busy="true"] { opacity: .45; }
.dfs-work__item { margin: 0; aspect-ratio: 4 / 3; }
.dfs-work__open {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--dfs-radius); background: var(--dfs-p-tint); cursor: zoom-in; text-align: left;
}
.dfs-work__open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dfs-dur-slow) var(--dfs-ease-out); }
.dfs-work__open:hover img, .dfs-work__open:focus-visible img { transform: scale(1.04); }
.dfs-work__caption {
  position: absolute; inset: auto 0 0 0; padding: 10px 14px 12px; background: var(--dfs-white); color: var(--dfs-navy);
  box-shadow: var(--dfs-p-rule-hot); font-size: .95em; line-height: 1.3;
  opacity: 0; transform: translateY(100%); transition: opacity var(--dfs-dur) var(--dfs-ease-out), transform var(--dfs-dur) var(--dfs-ease-out);
}
.dfs-work__open:hover .dfs-work__caption, .dfs-work__open:focus-visible .dfs-work__caption { opacity: 1; transform: none; }
.dfs-work__caption:empty { display: none; }
.dfs-work__empty { margin: 0; padding: 32px; text-align: center; background: var(--dfs-p-tint); border-radius: var(--dfs-radius); }
.dfs-work__more { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 899px) { .dfs-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 599px) { /* 13 filters: one swipeable row instead of six wrapped rows */
  .dfs-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--dfs-gutter) * -1); padding: 2px var(--dfs-gutter) 10px; scrollbar-width: thin; }
  .dfs-chips li { flex: none; }
}

/* Lightbox */
.dfs-lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 64px clamp(16px, 7vw, 96px);
  border: 0; background: color-mix(in srgb, var(--dfs-navy) 95%, transparent); color: var(--dfs-white);
}
.dfs-lightbox[open] { display: grid; place-items: center; }
.dfs-lightbox::backdrop { background: color-mix(in srgb, var(--dfs-navy) 60%, transparent); }
.dfs-lightbox :focus-visible { outline-color: var(--dfs-white); }
.dfs-lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 16px; width: min(100%, 1400px); }
.dfs-lightbox__img { display: block; width: 100%; height: calc(100dvh - 180px); max-width: none; object-fit: contain; }
.dfs-lightbox__caption { text-align: center; }
.dfs-lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 50%; background: var(--dfs-white); color: var(--dfs-navy);
  font-size: 30px; line-height: 1; cursor: pointer; transition: background-color var(--dfs-dur-fast) linear;
}
.dfs-lightbox__btn:hover { background: var(--dfs-tan); }
.dfs-lightbox__btn--prev { left: clamp(8px, 2vw, 24px); top: 50%; translate: 0 -50%; }
.dfs-lightbox__btn--next { right: clamp(8px, 2vw, 24px); top: 50%; translate: 0 -50%; }
.dfs-lightbox__btn--close { right: clamp(8px, 2vw, 24px); top: 12px; font-size: 26px; }

/* ---------- About ---------- */
.dfs-story .dfs-prose--columns { max-width: 1040px; margin-inline: auto; }
.dfs-pullquote { max-width: 900px; margin: 0 auto; text-align: center; }
.dfs-pullquote blockquote { margin: 0; }
.dfs-pullquote blockquote p { margin: 0; font-family: var(--dfs-font-display); font-size: var(--dfs-fs-h4); line-height: 1.3; color: var(--dfs-blue); }
.dfs-pullquote figcaption { margin-top: 24px; font-family: var(--dfs-p-accent); font-size: 14px; letter-spacing: .04em; color: var(--dfs-navy); }
.dfs-pullquote figcaption::before { content: ""; display: block; width: 48px; height: 3px; margin: 0 auto 16px; background: var(--dfs-orange); }

/* ---------- Locations ---------- */
.dfs-states__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dfs-states__btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 18px;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius);
  color: var(--dfs-navy); font-size: 1.05em; line-height: 1.2; cursor: pointer;
  transition: background-color var(--dfs-dur-fast) linear, border-color var(--dfs-dur-fast) linear, color var(--dfs-dur-fast) linear;
}
.dfs-states__btn:hover { border-color: var(--dfs-blue); color: var(--dfs-blue); }
.dfs-states__btn[aria-expanded="true"] { background: var(--dfs-blue); border-color: var(--dfs-blue); color: var(--dfs-white); box-shadow: var(--dfs-p-base-hot); }
.dfs-states__icon { position: relative; flex: none; width: 12px; height: 12px; }
.dfs-states__icon::before, .dfs-states__icon::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: currentColor; transition: transform var(--dfs-dur) var(--dfs-ease-out); }
.dfs-states__icon::after { transform: rotate(90deg); }
.dfs-states__btn[aria-expanded="true"] .dfs-states__icon::after { transform: rotate(0deg); }
.dfs-states__stage {
  padding: clamp(20px, 3vw, 40px); min-height: 420px;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius); box-shadow: var(--dfs-p-rule);
}
.dfs-states__stack { position: relative; height: 100%; }
.dfs-states__map { margin: 0; display: grid; place-items: center; height: 100%; }
.dfs-states__map img { max-height: 480px; width: auto; }
.dfs-states.is-enhanced :is(.dfs-states__map, .dfs-states__panel) { animation: dfs-pages-in var(--dfs-dur) var(--dfs-ease-out) both; }
.dfs-states:not(.is-enhanced) .dfs-states__panel + .dfs-states__panel { margin-top: 40px; }
.dfs-pages .dfs-states__title { margin-bottom: .6em; font-size: var(--dfs-fs-h4); text-align: center; }
.dfs-pages .dfs-states__title.is-long { font-size: var(--dfs-fs-h5); }

.dfs-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.dfs-person { padding: 16px 0; border-top: 1px solid var(--dfs-p-line); }
.dfs-person p { margin: 0; }
.dfs-person__name { font-family: var(--dfs-font-display); font-size: 1.25em; line-height: 1.2; color: var(--dfs-blue); }
.dfs-person__role { margin-top: 2px; color: var(--dfs-p-muted); }
.dfs-person__phone { display: inline-block; margin-top: 6px; color: var(--dfs-navy); text-decoration: underline 2px var(--dfs-orange); text-underline-offset: .3em; }
.dfs-person__phone:hover { color: var(--dfs-blue); }
.dfs-person__meta { margin: 10px 0 0; font-size: .92em; }
.dfs-person__meta div + div { margin-top: 6px; }
.dfs-person__meta dt { color: var(--dfs-navy); }
.dfs-person__meta dd { margin: 0; color: var(--dfs-p-muted); }
.dfs-people--row { gap: 16px; }
.dfs-people--row .dfs-person { padding: 22px; background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius); box-shadow: var(--dfs-p-rule); }

/* ---------- Brands ---------- */
.dfs-logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.dfs-logos + .dfs-logos { margin-top: 12px; }
.dfs-logos__item > a, .dfs-logos__item > span {
  display: grid; place-items: center; height: 100%; aspect-ratio: 3 / 2; padding: 16px 20px;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius); text-decoration: none;
  transition: border-color var(--dfs-dur-fast) linear, transform var(--dfs-dur) var(--dfs-ease-out), box-shadow var(--dfs-dur) var(--dfs-ease-out);
}
.dfs-logos__item img { max-height: 56px; width: auto; object-fit: contain; }
.dfs-logos__item > a:hover, .dfs-logos__item > a:focus-visible { border-color: var(--dfs-blue); transform: translateY(-3px); box-shadow: var(--dfs-p-lift); }
.dfs-logos__name { font-family: var(--dfs-font-display); font-size: 1.2em; color: var(--dfs-blue); text-align: center; }
.dfs-logos--main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dfs-logos--main .dfs-logos__item > a, .dfs-logos--main .dfs-logos__item > span { aspect-ratio: 16 / 9; box-shadow: var(--dfs-p-rule); }
.dfs-logos--main .dfs-logos__item > a:hover { box-shadow: var(--dfs-p-rule-hot), var(--dfs-p-lift); }
.dfs-logos--main .dfs-logos__item img { max-height: 80px; }
.dfs-logos--compact { grid-template-columns: repeat(auto-fit, minmax(120px, 170px)); justify-content: center; margin-top: 28px; }
.dfs-logos--compact .dfs-logos__item img { max-height: 44px; }

.dfs-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dfs-group {
  display: flex; flex-direction: column; padding: clamp(22px, 2.5vw, 32px);
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius); box-shadow: var(--dfs-p-rule);
}
.dfs-pages .dfs-group__title { margin: 0 0 .6em; font-size: var(--dfs-fs-h4); line-height: 1.15; }
.dfs-pages .dfs-group__title.is-long { font-size: var(--dfs-fs-h5); }
.dfs-group .dfs-imgrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dfs-group__foot { margin-top: auto; padding-top: 24px; }

/* Brand archive */
.dfs-brand-intro { display: grid; gap: var(--dfs-p-gap); align-items: center; }
.dfs-brand-intro.has-logo { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); }
.dfs-brand-intro__logo {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 28px;
  background: var(--dfs-white); border: 1px solid var(--dfs-p-line); border-radius: var(--dfs-radius); box-shadow: var(--dfs-p-rule);
}
.dfs-brand-intro__logo img { max-height: 96px; width: auto; object-fit: contain; }
.dfs-brand-intro .dfs-intro__lead { max-width: 64ch; }
.dfs-brand-intro__label { margin: 24px 0 10px; color: var(--dfs-p-muted); }
.dfs-brand-intro .dfs-chips { justify-content: flex-start; margin: 0; }
.dfs-see-all { margin: clamp(28px, 3vw, 40px) 0 0; text-align: center; }
.dfs-pages--brand ul.products.dfs-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); } /* 4/3/2 columns: 12 cards fill full rows */
@media (max-width: 599px) { .dfs-pages--brand ul.products.dfs-grid > li:nth-child(n + 7) { display: none; } } /* phones: 6, then "See all" */

/* Accordion (brand "About" + spec sheets; native <details>) */
.dfs-accordion { max-width: 960px; margin-inline: auto; border-top: 1px solid var(--dfs-p-line); }
.dfs-accordion__item { border-bottom: 1px solid var(--dfs-p-line); }
.dfs-accordion__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; cursor: pointer; list-style: none; }
.dfs-accordion__item > summary::-webkit-details-marker { display: none; }
.dfs-accordion__item > summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2px solid var(--dfs-orange); border-bottom: 2px solid var(--dfs-orange);
  transform: translateY(-3px) rotate(45deg); transition: transform var(--dfs-dur) var(--dfs-ease-out);
}
.dfs-accordion__item[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.dfs-pages .dfs-accordion__title { margin: 0; font-size: var(--dfs-fs-h4); line-height: 1.2; transition: color var(--dfs-dur-fast) linear; }
.dfs-accordion__item > summary:hover .dfs-accordion__title { color: var(--dfs-navy); }
.dfs-accordion__body { padding: 0 4px 28px; }
.dfs-js .dfs-accordion__item[open] > .dfs-accordion__body { animation: dfs-pages-in var(--dfs-dur) var(--dfs-ease-out) both; }
@supports (interpolate-size: allow-keywords) {
  .dfs-accordion { interpolate-size: allow-keywords; }
  .dfs-accordion__item::details-content { height: 0; overflow: clip; transition: height var(--dfs-dur) var(--dfs-ease-in-out), content-visibility var(--dfs-dur) allow-discrete; }
  .dfs-accordion__item[open]::details-content { height: auto; }
}
.dfs-about > :first-child { margin-top: 0; }
.dfs-pages .dfs-about__title { margin: 1.6em 0 .5em; font-size: var(--dfs-fs-h5); }
.dfs-files { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 32px; }
.dfs-files li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--dfs-p-line); }
.dfs-files a { display: flex; align-items: flex-start; gap: 10px; color: var(--dfs-blue); text-decoration: none; }
.dfs-files a::before { content: "PDF"; flex: none; padding: 2px 6px; border-radius: 3px; background: var(--dfs-navy); color: var(--dfs-white); font-size: 11px; line-height: 1.6; }
.dfs-files a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .dfs-markets__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .dfs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dfs-svc-intro.has-media, .dfs-block, .dfs-facts { grid-template-columns: minmax(0, 1fr); }
  .dfs-block__media { min-height: 0; aspect-ratio: 16 / 9; }
  .dfs-block--flip .dfs-block__media { order: 0; }
  .dfs-logos--main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dfs-tiles--3 { grid-template-columns: minmax(0, 1fr); }
  .dfs-markets__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dfs-markets__tab { gap: 8px; padding: 8px; font-size: 1em; }
  .dfs-markets__icon { width: 36px; height: 36px; }
  .dfs-markets__icon img { width: 22px; height: 22px; }
  .dfs-brand-intro.has-logo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dfs-brand-intro__logo { max-width: 280px; }
  .dfs-states__stage { min-height: 0; }
  .dfs-states__stage, .dfs-states__panel { scroll-margin-top: calc(var(--dfs-sticky-h, 80px) + 16px); }
  .dfs-markets__panel { scroll-margin-top: calc(var(--dfs-sticky-h, 80px) + 16px); }
}
@media (max-width: 599px) {
  /* Phones: tiles turn into compact rows (photo left, plate right) so four services fit on about one screen. */
  .dfs-tiles, .dfs-tiles--3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dfs-tile { flex-direction: row; }
  .dfs-tile__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 128px; }
  .dfs-tile__plate { padding: 14px 16px; box-shadow: inset 3px 0 0 var(--dfs-blue); }
  .dfs-tile:hover .dfs-tile__plate, .dfs-tile:focus-within .dfs-tile__plate { box-shadow: inset 3px 0 0 var(--dfs-orange); }
  .dfs-tile__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95em; }
  .dfs-tile__more { padding-top: 8px; }
  .dfs-prose--columns { columns: 1; }
  .dfs-intro__actions .dfs-btn, .dfs-block .dfs-btnrow .dfs-btn { flex: 1 1 auto; }
  .dfs-states__list { justify-content: flex-start; }
  .dfs-states__btn { padding-inline: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dfs-pages *, .dfs-pages *::before, .dfs-pages *::after { animation: none !important; transition: none !important; }
  .dfs-accordion__item::details-content { transition: none !important; } /* Separate rule: unknown pseudo-elements void a whole selector list. */
  .dfs-tile:hover, .dfs-tile:focus-within, .dfs-logos__item > a:hover { transform: none; }
  .dfs-strip { overflow-x: auto; scrollbar-width: thin; -webkit-mask-image: none; mask-image: none; padding-inline: var(--dfs-gutter); }
  .dfs-strip__track[aria-hidden="true"] { display: none; }
}
