/* The catalogue is a native extension of the existing DUSTDEZIGN shell.
   Poster contents stay intact; no fixed section heights or scroll pinning. */
html.dd-static body[data-dd-route] #page-container .dd-work-page .dd-work-section:not(.dd-work-hero) {
  padding: clamp(32px, 5vw, 72px) 0 !important;
}

html.dd-static body[data-dd-route] #page-container .dd-work-page .dd-work-row {
  display: block !important;
  padding: 0 !important;
}

html.dd-static body[data-dd-route] #page-container .dd-work-page .dd-work-column {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.dd-work-page :is(p, figure, dl) { margin: 0; }
.dd-work-page :is(button, a) { -webkit-tap-highlight-color: transparent; }
.dd-work-page button { font: inherit; cursor: pointer; }
.dd-work-page :is(a, button):focus-visible { outline: 2px solid #f1f0ec; outline-offset: 5px; }
.dd-work-page .dd-work-dictionary { margin: 0 !important; }
.dd-work-page .dd-work-dictionary .def { max-width: 40rem; }

.dd-portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
}
.dd-portfolio-controls[hidden] { display: none; }
.dd-portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-work-page .dd-portfolio-filters button,
.dd-work-page .dd-work-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding: 13px 19px;
  border: 1px solid var(--dd-table-line);
  border-radius: 0;
  background: #000;
  color: #dededb;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}
.dd-work-page .dd-portfolio-filters button[aria-pressed="true"] { background: #f1f0ec; border-color: #f1f0ec; color: #101010; }
.dd-work-page .dd-portfolio-filters button:hover { border-color: #d5d5d2; }
.dd-filter-status { flex: 0 0 auto; color: #969693; font-size: 12px; }
.dd-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px var(--dd-panel-gap); opacity: 1; transition: opacity 220ms ease; }
.dd-project-grid.is-filtering { opacity: 0; }
.dd-project-grid > .dd-project-card {
  display: flex;
  flex-direction: column;
  flex-basis: auto;
  height: auto;
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--dd-table-line);
  border-radius: 0;
  background: #000;
}
.dd-project-card[hidden] { display: none !important; }
.dd-project-link { display: flex; flex: 1; flex-direction: column; min-width: 0; color: inherit; }
.dd-project-poster { flex: 0 0 auto; aspect-ratio: 3 / 4; overflow: hidden; background: #ededeb; }
.dd-project-poster > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dd-project-poster--sample { display: flex; flex-direction: column; justify-content: space-between; color: #141414; padding: 20px 0; }
.dd-sample-top { display: flex; justify-content: space-between; gap: 8px; padding: 0 18px; font-size: 8px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.dd-sample-image { flex: 1; min-height: 0; display: flex; align-items: center; padding: 24px 0; }
.dd-sample-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dd-sample-title { display: flex; flex-direction: column; gap: 6px; padding: 0 18px; }
.dd-sample-title span { font-size: 9px; line-height: 1.5; letter-spacing: .055em; }
.dd-sample-title span:first-child { text-transform: uppercase; }
.dd-sample-title strong { font-weight: 600; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.1; letter-spacing: -.035em; }
.dd-project-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
  border-top: 1px solid var(--dd-table-line);
}
.dd-project-eyebrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #8d8d8b; font-size: 9px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.dd-project-eyebrow span:last-child { flex: 0 0 auto; white-space: nowrap; }
html.dd-static body[data-dd-route] #page-container .dd-work-page .dd-project-caption h3 { width: 100%; max-width: none !important; padding: 0; margin: 12px 0 5px; color: #f4f4f1 !important; font-size: clamp(21px, 2vw, 25px) !important; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.dd-project-caption p { color: #adadaa; font-size: 14px; line-height: 1.6; }
.dd-project-action { display: block; margin-top: auto; padding-top: 18px; color: #7f7f7c; font-size: 12px; }
.dd-project-link .dd-project-action { color: #dfdfdc; }
.dd-project-link .dd-project-action span { display: inline-block; margin-left: 8px; transition: transform 350ms var(--dd-ease); }
.dd-project-link:hover .dd-project-action span { transform: translate(3px, -3px); }
.dd-work-page .dd-work-note { margin-top: 28px; color: #7e7e7c; font-size: 12px; line-height: 1.7; }

.dd-project-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 64px); }
.dd-project-intro > .dd-work-dictionary { grid-column: 2; grid-row: 1; align-self: end; }
.dd-project-intro > .dd-project-cover { grid-column: 1; grid-row: 1 / span 2; }
.dd-project-story { grid-column: 2; grid-row: 2; align-self: start; padding-top: 48px; }
.dd-project-intro--supplemental > .dd-project-cover { grid-row: 1; }
.dd-project-intro--supplemental > .dd-project-story { grid-row: 1; padding-top: 0; }
.dd-work-kicker { display: block; color: #82827f; font-size: 10px; letter-spacing: .11em; line-height: 1.6; text-transform: uppercase; }
html.dd-static body[data-dd-route] #page-container .dd-work-page :is(.dd-project-story, .dd-project-section-heading) h2 { max-width: none !important; margin: 20px 0 28px; padding: 0; color: #f4f4f1 !important; font-size: clamp(32px, 3.8vw, 49px) !important; font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-align: left; }
.dd-project-story p { color: #b6b6b2; font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.dd-project-story p + p { margin-top: 18px; }
.dd-work-text-link { display: inline-block; margin-top: 32px; color: #dededb; font-size: 13px; }
.dd-work-text-link span { margin-left: 12px; }
.dd-project-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dd-panel-gap); }
.dd-project-specs > div { border: 1px solid var(--dd-table-line); padding: 26px 24px; min-width: 0; }
.dd-project-specs dt { color: #858583; font-size: 10px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.dd-project-specs dd { margin: 20px 0 0; font-size: 18px; line-height: 1.4; letter-spacing: -.015em; }
.dd-project-section-heading { margin-bottom: 40px; }
html.dd-static body[data-dd-route] #page-container .dd-work-page .dd-project-section-heading h2 { margin: 0; text-align: center !important; }
.dd-vehicle-viewer { display: flex; flex-direction: column; min-height: clamp(350px, 42vw, 510px); padding: 24px 28px; border: 1px solid var(--dd-table-line); scroll-margin-top: 110px; background: #000; }
.dd-viewer-top, .dd-viewer-bottom { display: flex; justify-content: space-between; gap: 20px; color: #797976; font-size: 10px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.dd-viewer-center { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; padding: 48px 0; text-align: center; }
.dd-viewer-symbol { font-family: "DD TimeCraft", Georgia, serif; color: #72726e; font-size: 36px; }
html.dd-static body[data-dd-route] #page-container .dd-work-page .dd-viewer-center h3 { max-width: none !important; margin: 24px 0 16px; padding: 0; color: #f4f4f1 !important; font-size: clamp(28px, 3.2vw, 40px) !important; font-weight: 400; line-height: 1.15; letter-spacing: -.025em; }
.dd-viewer-center p { max-width: 36rem; color: #8e8e8a; font-size: 14px; line-height: 1.7; }
.dd-project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--dd-panel-gap); }
.dd-project-artwork { min-width: 0; }
.dd-work-page .dd-artwork-open { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: #ededeb; text-align: left; }
.dd-artwork-open img { display: block; width: 100%; height: auto; aspect-ratio: 2500 / 3334; object-fit: contain; }
.dd-artwork-zoom { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; background: #000; color: #fff; opacity: 0; transition: opacity 300ms ease; }
.dd-artwork-open:is(:hover, :focus-visible) .dd-artwork-zoom { opacity: 1; }
.dd-project-artwork figcaption { padding: 13px 0 0; color: #8d8d89; font-size: 11px; letter-spacing: .055em; }
.dd-project-return { margin-top: 56px; text-align: center; }
.dd-work-page .dd-work-button:hover { background: #f1f0ec; color: #101010; border-color: #f1f0ec; }

.dd-artwork-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 20px 24px; border: 0; background: #000; color: #eee; }
.dd-artwork-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; }
.dd-artwork-dialog::backdrop { background: rgba(0,0,0,.92); }
.dd-artwork-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.dd-artwork-dialog-bar p { margin: 0; }
.dd-artwork-dialog button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--dd-table-line); background: #000; color: #eee; font: inherit; cursor: pointer; }
.dd-artwork-close span { margin-left: 16px; }
.dd-artwork-dialog-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.dd-artwork-dialog-controls { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 12px; }
html.dd-artwork-opened { overflow: hidden; }

@media (max-width: 980px) {
  .dd-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd-portfolio-controls { align-items: flex-start; flex-direction: column; gap: 14px; }
  .dd-project-intro { grid-template-columns: 1fr; row-gap: 28px; }
  .dd-project-intro > .dd-work-dictionary { grid-column: 1; grid-row: 1; }
  .dd-project-intro > .dd-project-cover { grid-column: 1; grid-row: 2; }
  .dd-project-story { grid-column: 1; grid-row: 3; padding-top: 4px; }
  .dd-project-intro--supplemental > .dd-project-cover { grid-row: 1; }
  .dd-project-intro--supplemental > .dd-project-story { grid-row: 2; padding-top: 4px; }
  .dd-project-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dd-project-caption { padding: 20px 18px 22px; }
  .dd-project-story p { font-size: 16px; line-height: 1.65; }
  .dd-work-page .dd-portfolio-filters button { padding: 12px 14px; font-size: 10px; }
  .dd-project-gallery { grid-template-columns: 1fr; }
  .dd-project-specs > div { padding: 22px 18px; }
  .dd-project-specs dd { font-size: 16px; }
  .dd-vehicle-viewer { padding: 20px; }
  .dd-viewer-top, .dd-viewer-bottom { flex-wrap: wrap; gap: 8px; font-size: 9px; }
  .dd-viewer-center p br { display: none; }
  .dd-artwork-zoom { opacity: 1; }
}
@media (max-width: 540px) {
  .dd-project-grid { grid-template-columns: 1fr; }
  .dd-sample-title strong { font-size: 30px; }
  .dd-sample-top, .dd-sample-title { padding-left: 24px; padding-right: 24px; }
  .dd-project-specs { grid-template-columns: 1fr; gap: 16px; }
  .dd-project-specs > div { display: grid; grid-template-columns: 1fr 1.5fr; align-items: baseline; gap: 16px; }
  .dd-project-specs dd { margin: 0; }
  .dd-project-eyebrow { font-size: 10px; }
  .dd-artwork-dialog { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-work-page *, .dd-artwork-dialog * { transition: none !important; animation: none !important; }
}
