/* The filled navigation appears only once the full hero has passed. */
.home .masthead { isolation:isolate; transition:none; }
.home .masthead.is-scrolled { background:transparent; box-shadow:none; }
.home .masthead::after { content:''; position:absolute; inset:0; z-index:-1; background:#fff; transform:scaleY(0); transform-origin:center bottom; transition:transform .65s cubic-bezier(.22,1,.36,1); pointer-events:none; }
.home .masthead.is-scrolled::after { transform:scaleY(1); box-shadow:0 1px 0 #17161415; }
.home .masthead.is-scrolled .masthead__inner { animation:nav-content-enter .6s cubic-bezier(.22,1,.36,1) .12s both; }
@keyframes nav-content-enter { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
/* Keep only the original compact trigger/socials over the hero. */
.home .masthead:not(.is-scrolled) .masthead__nav,
.home .masthead:not(.is-scrolled) .masthead__cta { display:none; }
.home .masthead:focus-within .masthead__inner { animation:none; }
@media(prefers-reduced-motion:reduce) {
 .home .masthead::after { transition:none; }
 .home .masthead.is-scrolled .masthead__inner { animation:none; }
}
/* Reference alignment: edge menu, inset studio mark, navigation, edge contact. */
@media(min-width:1101px) {
 .home .masthead.is-scrolled { height:104px; }
 .home .masthead.is-scrolled .masthead__inner {
  grid-template-columns:calc(19.5vw - 48px) clamp(160px,12.5vw,256px) minmax(0,1fr) 110px;
  grid-template-rows:1fr; height:104px; gap:24px; padding:12px 24px; align-items:center;
 }
 .home .masthead.is-scrolled .masthead__burger { grid-column:1; width:44px; min-width:44px; }
 .home .masthead.is-scrolled .masthead__burger > span { width:28px; }
 .home .masthead.is-scrolled .masthead__logo { grid-column:2; width:100%; }
 .home .masthead.is-scrolled .masthead__logo img { max-height:70px; }
 .home .masthead.is-scrolled .masthead__nav { grid-column:3; justify-content:center; gap:clamp(28px,3.1vw,64px); }
 .home .masthead.is-scrolled .masthead__nav a { font-size:12px; letter-spacing:.14em; font-weight:400; color:#555; }
 .home .masthead.is-scrolled .masthead__social { display:none; }
 .home .masthead.is-scrolled .masthead__cta {
  grid-column:4; width:110px; min-height:46px; padding:12px 16px; border:0; background:#ece7e1; color:#343432;
 }
 .home .masthead.is-scrolled .masthead__cta:hover { background:#ded7cc; }
}
@media(min-width:768px) and (max-width:1100px) {
 .home .masthead.is-scrolled .masthead__inner { grid-template-columns:44px 150px minmax(0,1fr) 100px; gap:20px; }
 .home .masthead.is-scrolled .masthead__social { display:none; }
 .home .masthead.is-scrolled .masthead__nav { gap:20px; }
 .home .masthead.is-scrolled .masthead__cta { grid-column:4; width:100px; background:#ece7e1; border:0; }
}
@media(max-width:767px) {
 .home .masthead.is-scrolled .masthead__cta { background:#ece7e1; border:0; }
}
@media(min-width:1101px) {
 .home .masthead.is-scrolled .masthead__nav { justify-content:space-between; gap:24px; padding-inline:6vw 14vw; }
}
