/* NYCASTINGCOUCH primary header - centered crest dissolve + GPU-smoothed down-left final lock R6 - 2026-08-29 */
.mast{
  background:#fff;
  border-bottom-color:#9d6b2f;
}
.brand-title-a11y{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.brand-sequence{
  --crest-start-left:110px;
  --crest-start-top:22px;
  --crest-start-size:152px;
  --crest-final-left:48px;
  --crest-final-top:38px;
  --crest-final-size:97px;
  --crest-final-x:-62px;
  --crest-final-y:16px;
  --crest-final-scale:.638158;
  --crest-gap:18px;
  position:relative;
  display:block;
  box-sizing:border-box;
  width:clamp(620px,55vw,880px);
  height:198px;
  max-width:100%;
  line-height:0;
}
.brand-logo-link{
  position:relative;
  z-index:2;
  display:block;
  box-sizing:border-box;
  width:372px;
  max-width:100%;
  padding:12px;
  overflow:hidden;
  line-height:0;
  text-decoration:none;
  border:2px solid #170904;
  background:
    radial-gradient(circle at 11px 11px,#e5c984 0 2px,#6f431f 3px 6px,transparent 7px),
    radial-gradient(circle at calc(100% - 11px) 11px,#e5c984 0 2px,#6f431f 3px 6px,transparent 7px),
    radial-gradient(circle at 11px calc(100% - 11px),#e5c984 0 2px,#6f431f 3px 6px,transparent 7px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px),#e5c984 0 2px,#6f431f 3px 6px,transparent 7px),
    repeating-linear-gradient(96deg,#261006 0 5px,#533019 5px 10px,#7d4c25 10px 12px,#3b1b0a 12px 18px,#9a6935 18px 20px,#321508 20px 27px);
  box-shadow:
    0 0 0 2px #b38a4c,
    0 0 0 4px #2a1207,
    0 7px 15px rgba(26,13,5,.24),
    inset 0 2px 2px rgba(255,224,164,.55),
    inset 0 -3px 4px rgba(12,4,1,.72);
  opacity:1;
  transform:translateZ(0);
  backface-visibility:hidden;
  transition:opacity .68s cubic-bezier(.37,0,.63,1);
  will-change:opacity;
}
.brand-logo-link::before,
.brand-logo-link::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:4;
}
.brand-logo-link::before{
  inset:4px;
  border:2px ridge #c5a15d;
  box-shadow:inset 0 0 0 2px #3b1b0a;
}
.brand-logo-link::after{
  inset:8px;
  border:1px solid #140803;
  box-shadow:0 0 0 1px #b88f4d,inset 0 0 8px rgba(0,0,0,.8);
}
.brand-oil-stage{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  aspect-ratio:2 / 1;
  overflow:hidden;
  background:#05070b;
  box-shadow:
    inset 0 0 0 1px #d0b06c,
    inset 0 0 18px rgba(0,0,0,.92);
}
.brand-oil-stage::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center,transparent 52%,rgba(1,2,3,.28) 100%),
    linear-gradient(115deg,rgba(255,232,180,.05),transparent 26%,transparent 72%,rgba(0,0,0,.18));
  box-shadow:inset 0 0 20px rgba(0,0,0,.68);
}
.brand-logo-video{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center bottom;
  background:#05070b;
  filter:saturate(.90) contrast(1.08) brightness(.94);
  opacity:1;
}
.brand-resolved-lock{
  position:absolute;
  inset:0;
  z-index:6;
  display:block;
  box-sizing:border-box;
  color:#173452;
  text-decoration:none;
  pointer-events:none;
}
.brand-resolved-crest{
  position:absolute;
  left:var(--crest-start-left);
  top:var(--crest-start-top);
  display:block;
  width:var(--crest-start-size);
  height:var(--crest-start-size);
  object-fit:contain;
  opacity:0;
  filter:drop-shadow(0 4px 6px rgba(23,52,82,.22));
  transform:translate3d(0,0,0) scale(1);
  transform-origin:top left;
  backface-visibility:hidden;
  transition:opacity .12s linear;
  will-change:opacity,transform;
}
.brand-resolved-wordmark{
  position:absolute;
  left:calc(var(--crest-final-left) + var(--crest-final-size) + var(--crest-gap));
  right:0;
  top:var(--crest-final-top);
  display:flex;
  height:var(--crest-final-size);
  min-width:0;
  align-items:center;
  color:#173452;
  font-family:"Playfair Display",Didot,"Bodoni MT",Georgia,serif;
  font-size:44px;
  font-weight:700;
  font-style:normal;
  line-height:.94;
  letter-spacing:.02em;
  white-space:nowrap;
  text-transform:uppercase;
  text-shadow:0 1px 0 rgba(157,107,47,.20);
  opacity:0;
  transition:opacity .6s cubic-bezier(.4,0,.2,1);
  will-change:opacity;
}
.brand-sequence.brand-crest-locked .brand-resolved-crest{
  opacity:1;
}
.brand-sequence.brand-crest-travelling .brand-resolved-crest{
  transform:translate3d(var(--crest-final-x),var(--crest-final-y),0) scale(var(--crest-final-scale));
  transition:
    opacity .12s linear,
    transform 1.05s cubic-bezier(.22,.61,.36,1);
}
.brand-sequence.brand-frame-leaving .brand-logo-link{
  opacity:0;
  pointer-events:none;
}
.brand-sequence.brand-frame-leaving .brand-resolved-lock{
  pointer-events:auto;
}
.brand-sequence.brand-wordmark-visible .brand-resolved-wordmark{
  opacity:1;
}
.mcounts{color:#59636f}
.mcounts b{color:#173452}
.mcaution{color:#8c2d20}
@media(max-width:1239px) and (min-width:881px){
  .brand-sequence{width:min(62vw,640px);height:198px;--crest-gap:17px}
  .brand-logo-link{width:372px}
  .brand-resolved-wordmark{font-size:40px;letter-spacing:.018em}
}
@media(max-width:880px){
  .brand-sequence{width:100%;height:182px;--crest-gap:16px}
  .brand-logo-link{width:340px;padding:10px;top:20px}
  .brand-logo-link::before{inset:3px}
  .brand-logo-link::after{inset:7px}
  .brand-resolved-wordmark{font-size:36px;letter-spacing:.014em}
}
@media(max-width:480px){
  .brand-sequence{height:135px;--crest-gap:12px}
  .brand-logo-link{width:232px;padding:9px}
  .brand-resolved-wordmark{font-size:clamp(18px,5.2vw,21px);letter-spacing:.004em}
}
@media(min-width:881px){
  .mast{align-items:center}
  .mright{padding-bottom:0}
}
@media(prefers-reduced-motion:reduce){
  .brand-sequence{
    --crest-start-left:0px!important;
    --crest-start-top:6px!important;
    --crest-start-size:82px!important;
    --crest-final-left:0px!important;
    --crest-final-top:6px!important;
    --crest-final-size:82px!important;
    --crest-gap:9px!important;
    height:94px!important;
  }
  .brand-logo-link{display:none}
  .brand-resolved-lock{pointer-events:auto}
  .brand-resolved-crest,
  .brand-resolved-wordmark{opacity:1;transition:none}
  .brand-resolved-wordmark{font-size:24px}
}
