/* [design-preview:yd-seal] Shared YD seal mark (outline, ink by day, cream at night); fixed size and position on every page. Home retains words; interior pages use the symbol. */
/* Shared home/case-study brand: one responsive identity. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
.masthead .brand,.case-brand .brand{display:inline-flex;align-items:center;gap:clamp(10px,1.04vw,20px);font:600 clamp(18px,1.25vw,24px)/1.2 'DM Sans',sans-serif;letter-spacing:-.6px;white-space:nowrap;color:var(--ink,#282d2f);text-decoration:none}
/* [design-preview:fixed-brand-mark] One logo size on every page and screen width. --brand-mark-size is owned here and in styles/site.css :root; tests/brand-size.cjs keeps them equal. */
:root{--brand-mark-size:56px;--brand-inset:24px}
@media(max-width:600px){:root{--brand-inset:12px}}
.brand .brand-mark{display:block;flex:none;width:var(--brand-mark-size);height:var(--brand-mark-size)}

.brand .brand-mark img{display:block;width:100%;height:100%;object-fit:contain}

.case-brand{display:flex;align-items:center;justify-content:space-between}
.case-brand .brand{align-self:flex-start}

@media(max-width:600px){
.masthead .brand{font-size:16px}
.case-brand .brand{font-size:16px}

}
body:not([data-page=home]) .masthead .brand-name{display:none}
/* [design-approved:stable-brand-position] Identical header geometry across routes and case studies; neutralize home-only wide composition zoom. */
body .masthead{padding:8px 4vw!important;min-height:60px!important;height:auto!important;box-sizing:border-box;align-items:center;position:sticky;top:0;z-index:100}
body .case-brand{padding:var(--brand-inset) var(--brand-inset) 8px!important;min-height:0!important;height:auto!important;box-sizing:border-box;align-items:center;position:sticky;top:0;z-index:100}

@media(max-width:600px){
body .masthead{padding:10px 16px!important;min-height:64px!important}
}
