/* DOVEMATRIX v8: responsive augmented-ui shapes, vendor stylesheet unchanged. */
.dm-panel,.dm-nav,.dm-action{--aug-border-bg:var(--color-1ce8f3);--aug-border-all:1.5px;--aug-inlay-bg:var(--color-041218);--aug-inlay-all:0px;}
.dm-panel{position:relative;isolation:isolate;}
.dm-panel--large{--aug-tl:16px;--aug-tr:16px;--aug-bl:16px;--aug-br:16px;}
.dm-panel--card{--aug-tl:12px;--aug-br:12px;--aug-border-all:1.5px;}
.dm-panel--archive{--aug-border-bg:var(--color-5379ff);--aug-tl:16px;--aug-tr:16px;--aug-bl:16px;--aug-br:16px;}
.dm-panel--footer{--aug-tl:14px;--aug-br:14px;--aug-border-all:1.5px;}
.dm-nav{--aug-border-bg:var(--color-278c99);--aug-border-all:1px;--aug-inlay-bg:var(--color-06131a);--aug-tl:9px;--aug-br:9px;position:relative;transform:none!important;border:0!important;}
.dm-nav span{transform:none!important;}
.dm-nav:hover,.dm-nav[aria-current=page]{--aug-border-bg:var(--color-1ce8f3);}
.hero.dm-panel,.card.dm-panel,.footer.dm-panel,.interior.dm-panel{border:0!important;clip-path:none!important;overflow:visible;background:var(--color-transparent);box-shadow:none;}
/* The library owns both pseudo-elements. Never override their backgrounds,
   clip paths, display, or geometry. Those overrides caused solid cyan wedges. */
.dm-corner-light { display:none !important; }
.hero.dm-panel,.card.dm-panel,.footer.dm-panel,.interior.dm-panel {
  background:var(--color-transparent) !important;
}
/* Button geometry matches mockup's chamfered action controls. */
.dm-action{--aug-tl:11px;--aug-br:11px;--aug-border-all:2px;--aug-inlay-bg:var(--color-031219);position:relative;border:0!important;clip-path:none!important;background:var(--color-transparent)!important;min-height:47px;}
.dm-action:hover{--aug-border-bg:var(--color-a2ffff);--aug-inlay-bg:var(--color-08303a);}
.dm-action>span{position:relative;z-index:1;}
/* Footer uses two content regions, with the graphic stripe in its own column. */
.footer.dm-panel{display:grid;grid-template-columns:68px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;min-height:76px;padding:18px 35px;}
.footer.dm-panel>.footer-stripes{display:block;width:60px;height:25px;transform:skew(-28deg);background:repeating-linear-gradient(90deg,var(--color-20e9f2) 0 12px,var(--color-transparent) 12px 20px);position:relative;z-index:2;}
.footer.dm-panel>.footer-statement{position:relative;z-index:2;min-width:0;white-space:normal;}
.footer.dm-panel>em{position:relative;z-index:2;min-width:0;max-width:none;border-left:1px solid var(--color-62858d);padding-left:24px;}
/* Brand text wraps naturally only where necessary. */
.brandtag{max-width:600px;white-space:normal;text-wrap:pretty;}
@media(max-width:1100px){.footer.dm-panel{grid-template-columns:56px minmax(0,1fr);gap:16px;}.footer.dm-panel>em{grid-column:2;border-left:0;padding-left:0;}}
@media(max-width:680px){.dm-panel--large{--aug-tl:16px;--aug-tr:14px;--aug-bl:14px;--aug-br:16px;}.dm-panel--card{--aug-tl:12px;--aug-br:12px;}.dm-panel--footer{--aug-tl:15px;--aug-br:15px;}.dm-nav{--aug-tl:6px;--aug-br:6px;}.footer.dm-panel{padding:20px 24px;grid-template-columns:1fr;gap:12px;}.footer.dm-panel>.footer-stripes{width:56px;}.footer.dm-panel>em{grid-column:auto;}.brandtag{font-size:.65rem;letter-spacing:.08em;}}

/* V9: clip the OUTSIDE of each panel at the same fixed-pixel cuts used by
   augmented-ui. This removes cyan corner fills without shrinking the cuts.
   augmented-ui still draws the fine diagonal border and dark inlay. */
.hero.dm-panel.dm-panel--large,
.interior.dm-panel.dm-panel--archive {
  clip-path: polygon(
    var(--aug-tl) 0, calc(100% - var(--aug-tr)) 0,
    100% var(--aug-tr), 100% calc(100% - var(--aug-br)),
    calc(100% - var(--aug-br)) 100%, var(--aug-bl) 100%,
    0 calc(100% - var(--aug-bl)), 0 var(--aug-tl)
  ) !important;
}
.card.dm-panel.dm-panel--card,
.footer.dm-panel.dm-panel--footer {
  clip-path: polygon(
    var(--aug-tl) 0, 100% 0,
    100% calc(100% - var(--aug-br)),
    calc(100% - var(--aug-br)) 100%,
    0 100%, 0 var(--aug-tl)
  ) !important;
}
/* Keep the dark inlay beneath content; no solid-color pseudo-element overlays. */
.dm-panel { --aug-inlay-bg: var(--color-041218); }

/* V16: one consistent chamfer specification for every panel.
   Use cyan for archive/about instead of the previous blue. */
.dm-panel--large,.dm-panel--archive,.dm-panel--card,.dm-panel--footer {
  --aug-tl:20px; --aug-tr:20px; --aug-bl:20px; --aug-br:21px;
}
.dm-panel--archive { --aug-border-bg:var(--cyan); }
@media (max-width:680px) {
  .dm-panel--large,.dm-panel--archive,.dm-panel--card,.dm-panel--footer {
    --aug-tl:20px; --aug-tr:20px; --aug-bl:20px; --aug-br:21px;
  }
}
/* Keep the card image inside its larger top-left cut without adding a border. */
.categories .card.dm-panel img {
  clip-path:polygon(21px 0,100% 0,100% 100%,0 100%,0 21px);
}

/* V19 — branding and gallery components. Augmented UI owns the bevel geometry. */
.brand { flex:0 1 auto; }
.brand > div { min-width:0; }
.logo { width:120px; height:120px; max-width:none; object-fit:contain; }
.brandtag { font-size:.83em; line-height:1.4; letter-spacing:.025em; max-width:49em; text-wrap:balance; }
.masthead { gap:clamp(16px,2vw,32px); }
.nav { flex-shrink:0; }
/* Restore natural typography at tablet widths without overflowing the header. */
@media(max-width:1200px){.logo{width:100px;height:100px;}.brandtag{max-width:54em;}}
@media(max-width:680px){.logo{width:64px;height:64px;}.brandtag{font-size:.65em;max-width:100%;}}
/* V20: Works cards share the exact Home category card component. */
.works-grid .card.dm-panel.dm-panel--card {
  padding:2px;
  background:var(--color-041119);
  border:0!important;
  overflow:hidden;
  --aug-border-bg:var(--cyan);
  --aug-border-all:1.5px;
  --aug-inlay-bg:var(--color-041218);
}
.works-grid .card.dm-panel.dm-panel--card img {
  display:block;
  position:relative;
  z-index:1;
  width:calc(100% - 4px);
  margin:2px 2px 0;
  height:175px;
  aspect-ratio:auto;
  object-fit:cover;
  border:0;
  outline:0;
  box-shadow:none;
  clip-path:polygon(21px 0,100% 0,100% 100%,0 100%,0 21px);
}
.works-grid .card.dm-panel.dm-panel--card .work-meta,
.works-grid .card.dm-panel.dm-panel--card h2,
.works-grid .card.dm-panel.dm-panel--card p {
  position:relative;
  z-index:1;
  margin-left:13px;
  margin-right:13px;
}
.works-grid .card.dm-panel.dm-panel--card .work-meta { margin-top:12px; margin-bottom:8px; }
.works-grid .card.dm-panel.dm-panel--card h2 {
  font-size:clamp(.86rem,1.15vw,1.16rem);
  line-height:1.35;
  letter-spacing:.015em;
  margin-bottom:7px;
}
.works-grid .card.dm-panel.dm-panel--card p {
  font-size:.86rem;
  color:var(--color-b6cbd3);
  margin-bottom:16px;
}
.works-grid .card.dm-panel.dm-panel--card:hover { filter:brightness(1.22); transform:translateY(-3px); }
.works-grid .card.dm-panel.dm-panel--card:focus-visible {
  outline:3px solid var(--color-fff)!important;
  outline-offset:4px!important;
  --aug-border-bg:var(--color-fff);
}
.works-grid .card.dm-panel.dm-panel--card[hidden] {display:none!important;}
.filter-options .filter-chip {
  --aug-tl:9px;--aug-br:9px;
  --aug-border-all:1px;--aug-border-bg:var(--color-397584);
  --aug-inlay-bg:var(--color-04151c);--aug-inlay-all:0px;
  position:relative;isolation:isolate;
  border:0!important;clip-path:none!important;background:var(--color-transparent)!important;
  color:var(--color-dceaf0);min-height:44px;
}
.filter-options .filter-chip:hover {--aug-border-bg:var(--color-7befff);--aug-inlay-bg:var(--color-11313c);}
.filter-options .filter-chip.is-active {--aug-border-bg:var(--color-10d9e9);--aug-inlay-bg:var(--color-10d9e9);color:var(--color-001318);}

@media(prefers-reduced-motion:reduce){.dm-work-tile{transition:none!important;}}

/* V20: coherent active filter and keyboard focus */
.filter-options .filter-chip.is-active { --aug-inlay-bg:var(--color-10d9e9); --aug-border-bg:var(--color-10d9e9); color:var(--color-001318); }


/* V21 — Works filter layout and high-contrast focus, scoped to Works only. */
.works-grid .card.dm-panel.dm-panel--card:focus-visible {
  border:2px solid var(--color-white)!important;
  outline:3px solid var(--color-white)!important;
  outline-offset:4px!important;
  --aug-border-bg:var(--color-fff);
  --aug-border-all:2px;
}
/* The augmented border is the visible silhouette, including clipped corners. */
.filter-console .filter-options .filter-chip {
  box-sizing:border-box;
  flex:0 0 auto;
  min-height:44px;
  padding:10px 13px;
  --aug-border-all:1.5px;
  --aug-border-bg:var(--color-397584);
  --aug-inlay-bg:var(--color-04151c);
  --aug-inlay-all:0px;
}
.filter-console .filter-options .filter-chip:hover {
  --aug-border-bg:var(--color-7befff);
  --aug-inlay-bg:var(--color-11313c);
}
.filter-console .filter-options .filter-chip.is-active {
  --aug-border-bg:var(--color-10d9e9);
  --aug-inlay-bg:var(--color-10d9e9);
  color:var(--color-001318);
}
.filter-console 
/* Keep controls together; the decorative caption must not steal a mobile row. */
@media(max-width:800px) {
  .filter-console {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;}
  .filter-console .filter-caption {display:none;}
  .filter-console .filter-options {min-width:0;gap:8px;}
  .filter-console .filter-count {justify-self:end;}
}
@media(max-width:540px) {
  .filter-console {grid-template-columns:minmax(0,1fr);}
  .filter-console .filter-options {width:100%;}
  .filter-console .filter-count {justify-self:start;}
}

/* V22 — Works filter controls: match Home action-link chamfer geometry.
   A two-layer clipped background draws the border without clipping focus. */
.filter-console .filter-options .filter-chip {
  --chip-cut:9px;
  appearance:none;
  position:relative;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:44px;
  padding:10px 14px;
  border:0!important;
  border-radius:0;
  clip-path:none!important;
  background:var(--color-transparent)!important;
  color:var(--color-dceaf0);
  box-shadow:none!important;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  font:600 .78rem var(--font-display);
  line-height:1.3;
}
.filter-console .filter-options .filter-chip::before,
.filter-console .filter-options .filter-chip::after {
  content:"";
  display:block;
  position:absolute;
  pointer-events:none;
  clip-path:polygon(var(--chip-cut) 0,100% 0,100% calc(100% - var(--chip-cut)),calc(100% - var(--chip-cut)) 100%,0 100%,0 var(--chip-cut));
}
.filter-console .filter-options .filter-chip::before {
  inset:0;
  z-index:-2;
  background:var(--color-397584);
}
.filter-console .filter-options .filter-chip::after {
  inset:1.5px;
  z-index:-1;
  background:var(--color-04151c);
}
.filter-console .filter-options .filter-chip:hover::before {background:var(--color-7befff);}
.filter-console .filter-options .filter-chip:hover::after {background:var(--color-11313c);}
.filter-console .filter-options .filter-chip.is-active {color:var(--color-001318);}
.filter-console .filter-options .filter-chip.is-active::before,
.filter-console .filter-options .filter-chip.is-active::after {background:var(--color-10d9e9);}
.filter-console 
@media(max-width:1100px){
  .filter-console .filter-caption{display:none;}
}

/* v32: single authoritative Works-filter keyboard focus treatment.
   Pseudo-element borders follow the same chamfer as the normal chips.
   No square CSS outline; selection remains independent of keyboard focus. */
.filter-console .filter-options .filter-chip:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  clip-path: none !important;
  background: var(--color-transparent) !important;
}
.filter-console .filter-options .filter-chip:focus-visible::before {
  background: var(--color-e9fdff) !important;
  filter: drop-shadow(0 0 3px var(--color-rgba-24-224-239-55));
}
.filter-console .filter-options .filter-chip:focus-visible::after {
  inset: 3px;
  background: var(--color-10313b) !important;
}
.filter-console .filter-options .filter-chip.is-active:focus-visible::after {
  background: var(--color-10d9e9) !important;
}
.filter-console .filter-options .filter-chip:not(.is-active):focus-visible {
  color: var(--color-f4feff);
}
.filter-console .filter-options .filter-chip.is-active:focus-visible {
  color: var(--color-001318);
}

/* v36: semantic branding, archive contrast, responsive filtering */
.brandtag{text-transform:uppercase;}
.archive-code{color:var(--color-829ca8);}
@media(max-width:1100px){.filter-console .filter-caption{display:none;}}
.filter-options{flex-wrap:wrap;min-width:0;}
.filter-chip[aria-pressed="true"]{background:var(--color-10d9e9);color:var(--color-001318);border-color:var(--color-10d9e9);}
@media(max-width:620px){.archive-code{display:inline-block;float:none;margin-left:12px;margin-top:8px;}}

/* v62 — Keep established chamfer geometry; refine interaction contrast. */
/* Projects: the existing clipped outer background is the border layer.
   The inner ::after remains dark, so hover/focus never invert the article. */
.project-entry,
.project-entry:is(:hover,:focus-within) {
  background:var(--color-1ce8f3) !important;
  outline:none !important;
  box-shadow:none !important;
}
.project-entry::after {background:linear-gradient(110deg,var(--color-061a22),var(--color-031016)) !important;}
/* v63: Projects only — brighter cyan on hover and keyboard focus,
   using the same clipped outer border layer (no white outlines). */
.project-entry:hover,
.project-entry:has(.project-image:focus-visible) {
  background:var(--color-66faff) !important;
}
/* Keep the image and CTA free of white hover/focus outlines. */
.project-entry .project-image:is(:hover,:focus-visible),
.project-entry:is(:hover,:focus-within) .project-copy .site-cta {
  outline:none !important;
  box-shadow:none !important;
  filter:none !important;
}
/* Preserve v61 left-to-right cyan CTA fill, including on keyboard focus. */
.project-entry:has(.project-image:focus-visible) .project-copy .site-cta {
  background:var(--color-1ce8f3) !important;
}
.project-entry:has(.project-image:focus-visible) .project-copy .site-cta::before {
  background:var(--color-041218) !important;
}
.project-entry:has(.project-image:focus-visible) .project-copy .site-cta::after {
  inset:1.5px !important;
  clip-path:polygon(9.5px 0,100% 0,100% calc(100% - 9.5px),calc(100% - 9.5px) 100%,0 100%,0 9.5px) !important;
}
/* Home / Works: cyan inversion remains; raise border by only 1px,
   using augmented-ui border variables rather than changing box dimensions. */
.categories .card.dm-panel:is(:hover,:focus-visible),
.works-grid .card.dm-panel.dm-panel--card:is(:hover,:focus-visible) {
  --aug-border-all:2.5px !important;
  --aug-border-bg:var(--color-1ce8f3) !important;
  --aug-inlay-bg:var(--color-1ce8f3) !important;
}
/* Concepts: same cyan inversion, minimal border emphasis, stable geometry. */
#concepts-grid .concept-card-link:is(:hover,:focus-visible) {
  --aug-border-all:2.5px !important;
  --aug-border-bg:var(--color-1ce8f3) !important;
  --aug-inlay-bg:var(--color-1ce8f3) !important;
}
#concepts-grid .concept-card-link:is(:hover,:focus-visible) .concept-open {
  background:var(--color-041218) !important;
  color:var(--color-fff) !important;
}
#concepts-grid .concept-card-link:is(:hover,:focus-visible) .concept-open::before {
  background:var(--color-041218) !important;
}

/* v64 — Projects only: match navigation's accessible muted/bright cyan
   border states. The project article's clipped background is its border;
   the inset ::after supplies the dark interior. No rectangular outlines. */
.project-index .project-entry {
  background: var(--color-237c89) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background-color 150ms ease !important;
}
.project-index .project-entry:hover,
.project-index .project-entry:has(.project-image:focus-visible) {
  background: var(--color-1ce8f3) !important;
  outline: none !important;
  box-shadow: none !important;
}
.project-index .project-entry::after {
  background: linear-gradient(110deg,var(--color-061a22),var(--color-031016)) !important;
}
/* Keep the image and button free of white focus/hover borders. */
.project-index .project-entry .project-image:is(:hover,:focus-visible),
.project-index .project-entry:is(:hover,:focus-within) .project-copy .site-cta {
  outline: none !important;
  box-shadow: none !important;
}
/* The focus border is on the article, following its existing clipped shape. */
.project-index .project-entry:has(.project-image:focus-visible) .project-copy .site-cta {
  background: var(--color-1ce8f3) !important;
}
.project-index .project-entry:has(.project-image:focus-visible) .project-copy .site-cta::before {
  background: var(--color-041218) !important;
}
.project-index .project-entry:has(.project-image:focus-visible) .project-copy .site-cta::after {
  inset: 1.5px !important;
  clip-path: polygon(9.5px 0,100% 0,100% calc(100% - 9.5px),calc(100% - 9.5px) 100%,0 100%,0 9.5px) !important;
}
@media (prefers-reduced-motion: reduce) {
  .project-index .project-entry { transition-duration: 0.01ms !important; }
}

/* v65 — Works cards ONLY. Match the verified Works filter-chip color system.
   Preserve augmented-ui clipped corners and stable dimensions. */
.works-grid .card.dm-panel.dm-panel--card {
  --aug-border-bg: var(--color-397584) !important;
  --aug-inlay-bg: var(--color-04151c) !important;
  --aug-border-all: 1.5px !important;
  background-color: var(--color-04151c) !important;
  color: var(--color-dceaf0) !important;
  filter: none !important;
  transform: none !important;
}
.works-grid .card.dm-panel.dm-panel--card:is(:hover,:focus-visible) {
  --aug-border-bg: var(--color-7befff) !important;
  --aug-inlay-bg: var(--color-10d9e9) !important;
  --aug-border-all: 2.5px !important;
  background-color: var(--color-10d9e9) !important;
  color: var(--color-001318) !important;
  filter: none !important;
  transform: none !important;
}
.works-grid .card.dm-panel.dm-panel--card:is(:hover,:focus-visible) :is(h2,p,.work-meta,.work-meta span) {
  color: var(--color-001318) !important;
}
/* Match the filter's near-white focus edge, using augmented-ui rather
   than a rectangular outline that would obscure chamfered corners. */
.works-grid .card.dm-panel.dm-panel--card:focus-visible {
  --aug-border-bg: var(--color-e9fdff) !important;
  --aug-border-all: 3px !important;
  outline: none !important;
  box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .works-grid .card.dm-panel.dm-panel--card {transition:none !important;}
}

/* v99: responsive archive toolbar, after legacy overrides. */
.shell {width:min(3000px,calc(100% - 38px));}
.filter-console {display:flex;align-items:center;flex-wrap:wrap;gap:12px;}
.filter-console .filter-caption {display:block;flex:none;}
.filter-console .filter-options {flex:1 1 auto;width:auto;min-width:0;}
.works-search-row {display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0;}
.works-search-row .works-search-label {margin:0;width:auto;white-space:nowrap;}
.works-search-row .filter-count {margin:0;white-space:nowrap;}
.work-acronym {color:var(--color-b8dbe5);font-size:1rem;line-height:1.6;margin:0 0 16px;}
.work-acronym strong {color:var(--cyan);}
@media (max-width:1549px) {
 .filter-console .filter-options {flex:1 1 0;}
 .works-search-row {flex:1 0 100%;margin:0;}
 .works-search-row .works-search-label {flex:1;min-width:0;justify-content:flex-start;}
 .works-search-row .works-search-frame {flex:1;width:auto;min-width:0;} .works-search-row .works-search {flex:1;width:100%;min-width:0;max-width:none;}
 .search-label-extra {display:none;}
}
@media (max-width:1100px) {
 .filter-console .filter-caption {flex:1 0 100%;}
 .filter-console .filter-options {flex:1 0 100%;}
}
@media (max-width:680px) {.shell {width:calc(100% - 22px);}}
@media (max-width:380px) {.works-search-row {flex-wrap:wrap;} .works-search-row .works-search-label {flex:1 0 100%;} .works-search-row .filter-count {margin-left:auto;}}

/* Shared chamfered search field: stable dimensions on focus. */
.works-search-frame {padding:1px;background:#858585;}
.works-search-frame .works-search {background:#080808;color:#fff;font-size:1rem;min-height:44px;padding:8px 12px;}
.works-search-frame .works-search::placeholder {color:#aaa;opacity:1;}
.works-search-frame:focus-within {padding:1px;background:#fff;}
.works-search-frame .works-search:focus-visible {box-shadow:inset 0 0 0 2px #fff;outline:none;}
@media(forced-colors:active){.works-search-frame,.works-search-frame .works-search{clip-path:none}.works-search-frame .works-search{border:1px solid ButtonText}.works-search-frame .works-search:focus-visible{outline:2px solid Highlight;outline-offset:-3px}}
